File manager - Edit - /home/premiey/www/wp-includes/images/media/settings.tar
Back
build/772.js 0000666 00000112364 15165313625 0006542 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[772],{8914:(e,t,l)=>{l.d(t,{Z:()=>r});var s=l(270),a=l(2902);const r=(0,s.Ue)(((e,t)=>({actionIndex:-1,progress:0,attemptCount:0,refreshTests:!1,actionsList:[],setAttemptCount:t=>{e((e=>({attemptCount:t})))},setProgress:t=>{e((e=>({progress:t})))},setActionsList:t=>{e((e=>({actionsList:t})))},setActionsListItem:(t,l)=>{e((0,a.ZP)((e=>{e.actionsList[t]=l})))},setActionsListProperty:(t,l,s)=>{e((0,a.ZP)((e=>{e.actionsList[t][l]=s})))},setRefreshTests:t=>{e((e=>({refreshTests:t})))},setActionIndex:t=>{e((e=>({actionIndex:t})))}})))},4531:(e,t,l)=>{l.d(t,{Z:()=>r});var s=l(9307),a=l(2919);const r=e=>{let t=e.lines;return t||(t=4),e.error&&(t=0),(0,s.createElement)("div",{className:"rsssl-placeholder"},e.error&&(0,s.createElement)(a.Z,{error:e.error}),Array.from({length:t}).map(((e,t)=>(0,s.createElement)("div",{className:"rsssl-placeholder-line",key:"placeholder-"+t}))))}},1789:(e,t,l)=>{l.d(t,{Z:()=>s});const s=(0,l(270).Ue)(((e,t)=>({licenseStatus:rsssl_settings.licenseStatus,setLicenseStatus:t=>e((e=>({licenseStatus:t})))})))},6772:(e,t,l)=>{l.r(t),l.d(t,{default:()=>f});var s=l(9307);l(4531);const a=()=>(0,s.createElement)("div",{className:"rsssl-wizard-settings rsssl-column-2 rsssl-settings-placeholder"},(0,s.createElement)("div",{className:"rsssl-grid-item"},(0,s.createElement)("div",{className:"rsssl-grid-item-content"},(0,s.createElement)("div",{className:"rsssl-settings-block-intro"}))),(0,s.createElement)("div",{className:"rsssl-grid-item-footer"})),r=(e,t)=>{let l=t.length;for(let s=0;s<l;s++)if(t[s]==e)return!0;return!1};var c=l(9950),n=l(5902),i=l(5736),m=l(8473),o=l(4559),h=l(2485),d=l(1789);const g=e=>{const{fields:t}=(0,o.Z)(),{licenseStatus:a}=(0,d.Z)(),{selectedSubMenuItem:r,subMenu:g}=(0,h.Z)(),[p,w]=(0,s.useState)(null);(0,s.useEffect)((()=>{Promise.all([l.e(516),l.e(967)]).then(l.bind(l,7967)).then((e=>{let{default:t}=e;w((()=>t))}))}),[]);let u,f="https://really-simple-ssl.com/pro/?mtm_campaign=fallback&mtm_source=free&mtm_content=upgrade",v=[];for(const l of t)l.group_id===e.group&&v.push(l);for(const e of g.menu_items)if(e.id===r?u=e:e.menu_items&&(u=e.menu_items.filter((e=>e.id===r))[0]),u)break;for(const t of g.menu_items)if(t.id===r&&t.hasOwnProperty("groups")){let l=t.groups.filter((t=>t.id===e.group));l.length>0&&(u=l[0])}if(!u)return(0,s.createElement)(s.Fragment,null);let C=u.premium_text?u.premium_text:(0,i.__)("Learn more about %sPremium%s","really-simple-ssl");rsssl_settings.pro_plugin_active&&(C="empty"===a||"deactivated"===a?rsssl_settings.messageInactive:rsssl_settings.messageInvalid,rsssl_settings.pro_incompatible&&(C=(0,i.__)("You are using an incompatible version of Really Simple SSL pro. Please update to the latest version.","really-simple-ssl")));let E=("valid"!==a||rsssl_settings.pro_incompatible)&&u.premium,x=!rsssl_settings.networkwide_active&&u.networkwide_required;f=u.upgrade?u.upgrade:f;let M=u.helpLink_text?u.helpLink_text:(0,i.__)("Instructions","really-simple-ssl"),z=(0,n.Z)("main"),_=E||x?"rsssl-disabled":"";return(0,s.createElement)("div",{className:"rsssl-grid-item rsssl-"+u.id+" "+_},u.title&&(0,s.createElement)("div",{className:"rsssl-grid-item-header"},(0,s.createElement)("h3",{className:"rsssl-h4"},u.title),u.helpLink&&"letsencrypt"!==z&&(0,s.createElement)("div",{className:"rsssl-grid-item-controls"},(0,s.createElement)(c.Z,{target:"_blank",className:"rsssl-helplink",text:M,url:u.helpLink})),"letsencrypt"===z&&(0,s.createElement)("div",{className:"rsssl-grid-item-controls"},(0,s.createElement)("a",{href:"#",className:"rsssl-helplink",onClick:e=>(e=>{e.preventDefault(),m.Kr("reset").then((e=>{window.location.href=window.location.href.replace(/#letsencrypt.*/,"&r="+ +new Date+"#letsencrypt/le-system-status")}))})(e)},(0,i.__)("Reset Let's Encrypt","really-simple-ssl")))),(0,s.createElement)("div",{className:"rsssl-grid-item-content"},u.intro&&(0,s.createElement)("div",{className:"rsssl-settings-block-intro"},u.intro),p&&v.map(((e,t)=>(0,s.createElement)(p,{key:"selectedFields-"+t,index:t,field:e,fields:v})))),E&&!x&&(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-task-status rsssl-premium"},(0,i.__)("Upgrade","really-simple-ssl")),(0,s.createElement)("span",null,rsssl_settings.pro_plugin_active&&(0,s.createElement)("span",null,C," ",(0,s.createElement)("a",{className:"rsssl-locked-link",href:"#settings/license"},(0,i.__)("Check license","really-simple-ssl"))),!rsssl_settings.pro_plugin_active&&(0,s.createElement)(c.Z,{target:"_blank",text:C,url:f})))),x&&(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-task-status rsssl-warning"},(0,i.__)("Network feature","really-simple-ssl")),(0,s.createElement)("span",null,(0,i.__)("This feature is only available networkwide.","really-simple-ssl"),(0,s.createElement)(c.Z,{target:"_blank",text:(0,i.__)("Network settings","really-simple-ssl"),url:rsssl_settings.network_link})))))};var p=l(3882);const w=e=>{let t=e.help;t.title||(t.title=t.text,t.text=!1);let l=e.noticesExpanded?"open":"",a=t.url&&-1!==t.url.indexOf("really-simple-ssl.com")?"_blank":"_self";return(0,s.createElement)("div",{key:e.index},t.title&&t.text&&(0,s.createElement)("details",{key:e.index,className:"rsssl-wizard-help-notice rsssl-"+t.label.toLowerCase(),open:l},(0,s.createElement)("summary",null,t.title," ",(0,s.createElement)(p.Z,{name:"chevron-down"})),(0,s.createElement)("div",{key:1,dangerouslySetInnerHTML:{__html:t.text}}),t.url&&(0,s.createElement)("div",{key:2,className:"rsssl-help-more-info"},(0,s.createElement)("a",{target:a,href:t.url},(0,i.__)("More info","really-simple-ssl")))),t.title&&!t.text&&(0,s.createElement)("div",{key:e.index,className:"rsssl-wizard-help-notice rsssl-"+t.label.toLowerCase()},(0,s.createElement)("p",null,t.title)))};var u=l(8914);const f=()=>{const[e,t]=(0,s.useState)(!0),{progress:l,fieldsLoaded:c,saveFields:n,fields:m,nextButtonDisabled:d}=(0,o.Z)(),{subMenuLoaded:p,subMenu:f,selectedSubMenuItem:v,selectedMainMenuItem:C,nextMenuItem:E,previousMenuItem:x}=(0,h.Z)(),{setRefreshTests:M}=(0,u.Z)(),z=async e=>{!e&&(()=>{const{menu_items:e}=f;for(const t of e)if(t.id===v&&t.tests_only)return!0;return!1})()?M(!0):await n(!0,!0)},{menu_items:_}=f;if(!p||!c||0===_.length)return(0,s.createElement)(a,null);let b=m.filter((e=>e.menu_id===v)),y=[];for(const e of b)r(e.group_id,y)||y.push(e.group_id);let L=[];for(const e of l.notices){let t=!1;if(e.show_with_options&&(t=b.filter((t=>e.show_with_options.includes(t.id))).length>0),t||e.menu_id===v){let t={};t.title=!!e.output.title&&e.output.title,t.label=e.output.label,t.id=e.id,t.text=e.output.msg,t.url=e.output.url,t.linked_field=e.show_with_option,L.push(t)}}for(const e of b.filter((e=>e.help&&!e.conditionallyDisabled))){let t=e.help;0===L.filter((e=>e.id&&e.id===t.id)).length&&L.push(e.help)}let H=d?`#${C}/${v}`:`#${C}/${E}`,V=(0,i.__)("Save","really-simple-ssl");for(const e of _)e.id===v&&e.tests_only&&(V=(0,i.__)("Refresh","really-simple-ssl"));return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"rsssl-wizard-settings"},y.map(((e,t)=>(0,s.createElement)(g,{key:"settingsGroup-"+t,index:t,group:e,fields:b}))),(0,s.createElement)("div",{className:"rsssl-grid-item-footer"},v!==_[0].id&&(0,s.createElement)("a",{className:"button button-secondary",href:`#${C}/${x}`},(0,i.__)("Previous","complianz-gdpr")),(0,s.createElement)("button",{className:"button button-primary",onClick:e=>z(!1)},V),v!==_[_.length-1].id&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("a",{disabled:d,className:"button button-primary",href:H,onClick:e=>z(!0)},(0,i.__)("Save and Continue","complianz-gdpr"))))),(0,s.createElement)("div",{className:"rsssl-wizard-help"},(0,s.createElement)("div",{className:"rsssl-help-header"},(0,s.createElement)("div",{className:"rsssl-help-title rsssl-h4"},(0,i.__)("Notifications","really-simple-ssl")),(0,s.createElement)("div",{className:"rsssl-help-control",onClick:()=>{t(!e)}},!e&&(0,i.__)("Expand all","really-simple-ssl"),e&&(0,i.__)("Collapse all","really-simple-ssl"))),L.map(((t,l)=>(0,s.createElement)(w,{key:l,noticesExpanded:e,index:l,help:t,fieldId:t.id})))))}},3882:(e,t,l)=>{l.d(t,{Z:()=>n});var s=l(7462),a=l(9307),r=l(7557),c=l(9610);const n=e=>{const{name:t,color:l,size:n}=e,i=t||"bullet",m=l||"black",o=n||15,h={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)","red-faded":"var(--rsp-red-faded)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)","red-warning":"var(--rsp-red-faded)"};let d="";"bullet"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"}))}),"circle"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"check"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"warning"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))}),"error"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"}))}),"times"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"}))}),"circle-check"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"}))}),"circle-times"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"}))}),"chevron-up"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"}))}),"chevron-down"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"}))}),"chevron-right"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"}))}),"chevron-left"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"}))}),"plus"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"}))}),"minus"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"}))}),"sync"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"}))}),"sync-error"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"}))}),"shortcode"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"}))}),"file"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"}))}),"file-disabled"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"}))}),"file-download"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"}))}),"calendar"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"}))}),"calendar-error"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"}))}),"help"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"}))}),"copy"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"}))}),"info"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"}))}),"info-open"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"}))}),"list"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"}))}),"empty"===i&&(d={html:(0,a.createElement)("svg",{height:o,width:o,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"})}),"external-link"===i&&(d={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("path",{fill:h[m],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"}))}),"shield"===i&&(d={html:(0,a.createElement)("svg",{height:o,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"},(0,a.createElement)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,a.createElement)("g",null,(0,a.createElement)("g",null,(0,a.createElement)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,a.createElement)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})),(0,a.createElement)("g",null,(0,a.createElement)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"}))))}),"file-search"===i&&(d={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:o,fill:"none",viewBox:"0 0 384 512"},(0,a.createElement)("path",{d:"M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"})),viewBox:"0 0 24 24"}),"download"===i&&(d={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:o,fill:"none",viewBox:"0 0 512 512"},(0,a.createElement)("path",{d:"M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"})),viewBox:"0 0 24 24"}),"satellite-dish"===i&&(d={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",color:h[m],height:o,viewBox:"0 0 512 512"},(0,a.createElement)("path",{d:"M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})),viewBox:"0 0 24 24"}),"rotate-light"===i&&(d={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",color:h[m],height:o,viewBox:"0 0 512 512"},(0,a.createElement)("path",{d:"M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"})),viewBox:"0 0 24 24"}),"rotate-exclamation-light"===i&&(d={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("defs",null,(0,a.createElement)("style",null,`\n .fa-secondary {\n opacity: 0.4;\n color: ${h[m]};\n }\n `)),(0,a.createElement)("path",{className:"fa-primary",d:"M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"}),(0,a.createElement)("path",{className:"fa-secondary",d:"M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"})),viewBox:"0 0 24 24"}),"radar-duotone"===i&&(d={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("defs",null,(0,a.createElement)("style",null,`\n .fa-secondary {\n color: ${h[m]} !important;\n } \n `)),(0,a.createElement)("path",{className:"fa-primary",d:"M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"}),(0,a.createElement)("path",{className:"fa-secondary",d:"M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"})),viewBox:"0 0 24 24"}),"satellite-dish-duotone"===i&&(d={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:o},(0,a.createElement)("defs",null,(0,a.createElement)("style",null,`\n .fa-secondary {\n color: ${h[m]} !important;\n } \n `)),(0,a.createElement)("path",{className:"fa-primary",d:"M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"}),(0,a.createElement)("path",{className:"fa-secondary",d:"M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"})),viewBox:"0 0 24 24"}),"spinner"===i&&(d={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",height:"20"},(0,a.createElement)("defs",null,(0,a.createElement)("style",null,"\n .fa-secondary {\n opacity: 0.4;\n }\n ")),(0,a.createElement)("path",{className:"fa-primary",d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"}),(0,a.createElement)("path",{className:"fa-secondary",d:"M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"})),viewBox:"0 0 22 22"});const g=(0,c.ZP)((e=>{let{className:t,...l}=e;return(0,a.createElement)(r.Z,(0,s.Z)({},l,{classes:{popper:t}}))}))((e=>{let{theme:t}=e;return{"& .MuiTooltip-tooltip":{padding:"10px 20px",fontWeight:"340",fontSize:"var(--rsp-fs-200)",fontFamily:"unset",backgroundColor:"var(--rsp-black)"}}}));return(0,a.createElement)(g,{arrow:!0,enterDelay:200,title:e.tooltip,placement:"bottom"},(0,a.createElement)("div",{className:"rsssl-icon rsssl-icon-"+i},d.html))}}}]); build/557.js 0000666 00000267124 15165313625 0006550 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[557],{1068:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(5042),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=(0,r.Z)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},5042:(e,t,n)=>{function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:()=>r})},3562:(e,t,n)=>{n.d(t,{T:()=>se,w:()=>ae});var r=n(9196),o=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,a=String.fromCharCode,s=Object.assign;function l(e){return e.trim()}function c(e,t,n){return e.replace(t,n)}function u(e,t){return e.indexOf(t)}function p(e,t){return 0|e.charCodeAt(t)}function f(e,t,n){return e.slice(t,n)}function d(e){return e.length}function m(e){return e.length}function h(e,t){return t.push(e),e}var g=1,y=1,b=0,v=0,x=0,w="";function k(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:g,column:y,length:a,return:""}}function O(e,t){return s(k("",null,null,"",null,null,0),e,{length:-e.length},t)}function E(){return x=v>0?p(w,--v):0,y--,10===x&&(y=1,g--),x}function P(){return x=v<b?p(w,v++):0,y++,10===x&&(y=1,g++),x}function Z(){return p(w,v)}function T(){return v}function S(e,t){return f(w,e,t)}function A(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 R(e){return g=y=1,b=d(w=e),v=0,[]}function C(e){return w="",e}function j(e){return l(S(v-1,M(91===e?e+2:40===e?e+1:e)))}function $(e){for(;(x=Z())&&x<33;)P();return A(e)>2||A(x)>3?"":" "}function _(e,t){for(;--t&&P()&&!(x<48||x>102||x>57&&x<65||x>70&&x<97););return S(e,T()+(t<6&&32==Z()&&32==P()))}function M(e){for(;P();)switch(x){case e:return v;case 34:case 39:34!==e&&39!==e&&M(x);break;case 40:41===e&&M(e);break;case 92:P()}return v}function L(e,t){for(;P()&&e+x!==57&&(e+x!==84||47!==Z()););return"/*"+S(t,v-1)+"*"+a(47===e?e:P())}function I(e){for(;!A(Z());)P();return S(e,v)}var N="-ms-",D="-moz-",W="-webkit-",B="comm",F="rule",H="decl",z="@keyframes";function K(e,t){for(var n="",r=m(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function q(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case H:return e.return=e.return||e.value;case B:return"";case z:return e.return=e.value+"{"+K(e.children,r)+"}";case F:e.value=e.props.join(",")}return d(n=K(e.children,r))?e.return=e.value+"{"+n+"}":""}function U(e){return C(V("",null,null,null,[""],e=R(e),0,[0],e))}function V(e,t,n,r,o,i,s,l,f){for(var m=0,g=0,y=s,b=0,v=0,x=0,w=1,k=1,O=1,S=0,A="",R=o,C=i,M=r,N=A;k;)switch(x=S,S=P()){case 40:if(108!=x&&58==p(N,y-1)){-1!=u(N+=c(j(S),"&","&\f"),"&\f")&&(O=-1);break}case 34:case 39:case 91:N+=j(S);break;case 9:case 10:case 13:case 32:N+=$(x);break;case 92:N+=_(T()-1,7);continue;case 47:switch(Z()){case 42:case 47:h(X(L(P(),T()),t,n),f);break;default:N+="/"}break;case 123*w:l[m++]=d(N)*O;case 125*w:case 59:case 0:switch(S){case 0:case 125:k=0;case 59+g:-1==O&&(N=c(N,/\f/g,"")),v>0&&d(N)-y&&h(v>32?Y(N+";",r,n,y-1):Y(c(N," ","")+";",r,n,y-2),f);break;case 59:N+=";";default:if(h(M=G(N,t,n,m,g,o,l,A,R=[],C=[],y),i),123===S)if(0===g)V(N,t,M,M,R,i,y,l,C);else switch(99===b&&110===p(N,3)?100:b){case 100:case 108:case 109:case 115:V(e,M,M,r&&h(G(e,M,M,0,0,o,l,A,o,R=[],y),C),o,C,y,l,r?R:C);break;default:V(N,M,M,M,[""],C,0,l,C)}}m=g=v=0,w=O=1,A=N="",y=s;break;case 58:y=1+d(N),v=x;default:if(w<1)if(123==S)--w;else if(125==S&&0==w++&&125==E())continue;switch(N+=a(S),S*w){case 38:O=g>0?1:(N+="\f",-1);break;case 44:l[m++]=(d(N)-1)*O,O=1;break;case 64:45===Z()&&(N+=j(P())),b=Z(),g=y=d(A=N+=I(T())),S++;break;case 45:45===x&&2==d(N)&&(w=0)}}return i}function G(e,t,n,r,o,a,s,u,p,d,h){for(var g=o-1,y=0===o?a:[""],b=m(y),v=0,x=0,w=0;v<r;++v)for(var O=0,E=f(e,g+1,g=i(x=s[v])),P=e;O<b;++O)(P=l(x>0?y[O]+" "+E:c(E,/&\f/g,y[O])))&&(p[w++]=P);return k(e,t,n,0===o?F:u,p,d,h)}function X(e,t,n){return k(e,t,n,B,a(x),f(e,2,-2),0)}function Y(e,t,n,r){return k(e,t,n,H,f(e,0,r),f(e,r+1,-1),r)}var J=function(e,t,n){for(var r=0,o=0;r=o,o=Z(),38===r&&12===o&&(t[n]=1),!A(o);)P();return S(e,v)},Q=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Q.get(n))&&!r){Q.set(e,!0);for(var o=[],i=function(e,t){return C(function(e,t){var n=-1,r=44;do{switch(A(r)){case 0:38===r&&12===Z()&&(t[n]=1),e[n]+=J(v-1,t,n);break;case 2:e[n]+=j(r);break;case 4:if(44===r){e[++n]=58===Z()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=a(r)}}while(r=P());return e}(R(e),t))}(t,o),s=n.props,l=0,c=0;l<i.length;l++)for(var u=0;u<s.length;u++,c++)e.props[c]=o[l]?i[l].replace(/&\f/g,s[u]):s[u]+" "+i[l]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^p(e,0)?(((t<<2^p(e,0))<<2^p(e,1))<<2^p(e,2))<<2^p(e,3):0}(e,t)){case 5103:return W+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+D+e+N+e+e;case 6828:case 4268:return W+e+N+e+e;case 6165:return W+e+N+"flex-"+e+e;case 5187:return W+e+c(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return W+e+N+"flex-item-"+c(e,/flex-|-self/,"")+e;case 4675:return W+e+N+"flex-line-pack"+c(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+N+c(e,"shrink","negative")+e;case 5292:return W+e+N+c(e,"basis","preferred-size")+e;case 6060:return W+"box-"+c(e,"-grow","")+W+e+N+c(e,"grow","positive")+e;case 4554:return W+c(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return c(c(c(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return c(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return c(c(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return c(e,/(.+)-inline(.+)/,W+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-t>6)switch(p(e,t+1)){case 109:if(45!==p(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+D+(108==p(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?ne(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==p(e,t+1))break;case 6444:switch(p(e,d(e)-3-(~u(e,"!important")&&10))){case 107:return c(e,":",":"+W)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(45===p(e,14)?"inline-":"")+"box$3$1"+W+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(p(e,t+11)){case 114:return W+e+N+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+N+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+N+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+N+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=ne(e.value,e.length);break;case z:return K([O(e,{value:c(e.value,"@","@"+W)})],r);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return K([O(e,{props:[c(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return K([O(e,{props:[c(t,/:(plac\w+)/,":"+W+"input-$1")]}),O(e,{props:[c(t,/:(plac\w+)/,":-moz-$1")]}),O(e,{props:[c(t,/:(plac\w+)/,N+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,a=e.stylisPlugins||re,s={},l=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,p,f,d=[q,(f=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&f(e)})],h=(u=[ee,te].concat(a,d),p=m(u),function(e,t,n,r){for(var o="",i=0;i<p;i++)o+=u[i](e,t,n,r)||"";return o});i=function(e,t,n,r){c=n,K(U(e?e+"{"+t.styles+"}":t.styles),h),r&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new o({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return g.sheet.hydrate(l),g},ie=(n(1095),n(7278),r.createContext("undefined"!=typeof HTMLElement?oe({key:"css"}):null));ie.Provider;var ae=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(ie);return e(t,o,n)}))},se=r.createContext({})},1095:(e,t,n)=>{n.d(t,{O:()=>m});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(5042),i=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},c=(0,o.Z)((function(e){return s(e)?e:e.replace(i,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(a,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||s(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=p(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":l(a)&&(r+=c(i)+":"+u(i,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=p(e,t,a);switch(i){case"animation":case"animationName":r+=c(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var f=0;f<a.length;f++)l(a[f])&&(r+=c(i)+":"+u(i,a[f])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=f,i=n(e);return f=o,p(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var f,d=/label:\s*([^\s;\n{]+)\s*(;|$)/g,m=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";f=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=p(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=p(n,t,e[a]),r&&(o+=i[a]);d.lastIndex=0;for(var s,l="";null!==(s=d.exec(o));)l+="-"+s[1];var c=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)}(o)+l;return{name:c,styles:o,next:f}}},7278:(e,t,n)=>{n.d(t,{L:()=>i});var r=n(9196),o=!!r.useInsertionEffect&&r.useInsertionEffect,i=o||function(e){return e()};o||r.useLayoutEffect},7557:(e,t,n)=>{n.d(t,{Z:()=>$t});var r=n(3366),o=n(7462),i=n(9196),a=n(6010);function s(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}function l(e,t,n){return void 0===e||"string"==typeof e?t:(0,o.Z)({},t,{ownerState:(0,o.Z)({},t.ownerState,n)})}var c=n(1796),u=n(9610),p=n(4869),f=n(3562);const d=function(e=null){const t=i.useContext(f.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},m=(0,p.Z)(),h=function(e=m){return d(e)};var g=n(8794),y=n(606);function b(){const e=h(g.Z);return e[y.Z]||e}function v(e,t){const n=(0,o.Z)({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=(0,o.Z)({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?i&&Object.keys(i)?(n[r]=(0,o.Z)({},a),Object.keys(i).forEach((e=>{n[r][e]=v(i[e],a[e])}))):n[r]=a:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function x(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?v(t.components[n].defaultProps,r):r}function w({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=h(n);return r&&(o=o[r]||o),x({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:g.Z,themeId:y.Z})}const k=n(8320).Z;var O=n(8052);function E(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function P(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Z(...e){return i.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{P(e,t)}))}),e)}const T=Z;var S=n(5893);const A=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function R(e){return`scale(${e}, ${e**2})`}const C={entering:{opacity:1,transform:R(1)},entered:{opacity:1,transform:"none"}},j="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),$=i.forwardRef((function(e,t){const{addEndListener:n,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:p,onEntering:f,onExit:d,onExited:m,onExiting:h,style:g,timeout:y="auto",TransitionComponent:v=O.ZP}=e,x=(0,r.Z)(e,A),w=i.useRef(),k=i.useRef(),P=b(),Z=i.useRef(null),$=T(Z,s.ref,t),_=e=>t=>{if(e){const n=Z.current;void 0===t?e(n):e(n,t)}},M=_(f),L=_(((e,t)=>{(e=>{e.scrollTop})(e);const{duration:n,delay:r,easing:o}=E({style:g,timeout:y,easing:l},{mode:"enter"});let i;"auto"===y?(i=P.transitions.getAutoHeightDuration(e.clientHeight),k.current=i):i=n,e.style.transition=[P.transitions.create("opacity",{duration:i,delay:r}),P.transitions.create("transform",{duration:j?i:.666*i,delay:r,easing:o})].join(","),u&&u(e,t)})),I=_(p),N=_(h),D=_((e=>{const{duration:t,delay:n,easing:r}=E({style:g,timeout:y,easing:l},{mode:"exit"});let o;"auto"===y?(o=P.transitions.getAutoHeightDuration(e.clientHeight),k.current=o):o=t,e.style.transition=[P.transitions.create("opacity",{duration:o,delay:n}),P.transitions.create("transform",{duration:j?o:.666*o,delay:j?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=R(.75),d&&d(e)})),W=_(m);return i.useEffect((()=>()=>{clearTimeout(w.current)}),[]),(0,S.jsx)(v,(0,o.Z)({appear:a,in:c,nodeRef:Z,onEnter:L,onEntered:I,onEntering:M,onExit:D,onExited:W,onExiting:N,addEndListener:e=>{"auto"===y&&(w.current=setTimeout(e,k.current||0)),n&&n(Z.current,e)},timeout:"auto"===y?null:y},x,{children:(e,t)=>i.cloneElement(s,(0,o.Z)({style:(0,o.Z)({opacity:0,transform:R(.75),visibility:"exited"!==e||c?void 0:"hidden"},C[e],g,s.props.style),ref:$},t))}))}));$.muiSupportAuto=!0;const _=$,M="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function L(e){return e&&e.ownerDocument||document}function I(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function N(e){return e instanceof I(e).Element||e instanceof Element}function D(e){return e instanceof I(e).HTMLElement||e instanceof HTMLElement}function W(e){return"undefined"!=typeof ShadowRoot&&(e instanceof I(e).ShadowRoot||e instanceof ShadowRoot)}var B=Math.max,F=Math.min,H=Math.round;function z(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function K(){return!/^((?!chrome|android).)*safari/i.test(z())}function q(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&D(e)&&(o=e.offsetWidth>0&&H(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&H(r.height)/e.offsetHeight||1);var a=(N(e)?I(e):window).visualViewport,s=!K()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,p=r.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function U(e){var t=I(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function V(e){return e?(e.nodeName||"").toLowerCase():null}function G(e){return((N(e)?e.ownerDocument:e.document)||window.document).documentElement}function X(e){return q(G(e)).left+U(e).scrollLeft}function Y(e){return I(e).getComputedStyle(e)}function J(e){var t=Y(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Q(e,t,n){void 0===n&&(n=!1);var r,o,i=D(t),a=D(t)&&function(e){var t=e.getBoundingClientRect(),n=H(t.width)/e.offsetWidth||1,r=H(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=G(t),l=q(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==V(t)||J(s))&&(c=(r=t)!==I(r)&&D(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:U(r)),D(t)?((u=q(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=X(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function ee(e){var t=q(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function te(e){return"html"===V(e)?e:e.assignedSlot||e.parentNode||(W(e)?e.host:null)||G(e)}function ne(e){return["html","body","#document"].indexOf(V(e))>=0?e.ownerDocument.body:D(e)&&J(e)?e:ne(te(e))}function re(e,t){var n;void 0===t&&(t=[]);var r=ne(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=I(r),a=o?[i].concat(i.visualViewport||[],J(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(re(te(a)))}function oe(e){return["table","td","th"].indexOf(V(e))>=0}function ie(e){return D(e)&&"fixed"!==Y(e).position?e.offsetParent:null}function ae(e){for(var t=I(e),n=ie(e);n&&oe(n)&&"static"===Y(n).position;)n=ie(n);return n&&("html"===V(n)||"body"===V(n)&&"static"===Y(n).position)?t:n||function(e){var t=/firefox/i.test(z());if(/Trident/i.test(z())&&D(e)&&"fixed"===Y(e).position)return null;var n=te(e);for(W(n)&&(n=n.host);D(n)&&["html","body"].indexOf(V(n))<0;){var r=Y(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var se="top",le="bottom",ce="right",ue="left",pe="auto",fe=[se,le,ce,ue],de="start",me="end",he="viewport",ge="popper",ye=fe.reduce((function(e,t){return e.concat([t+"-"+de,t+"-"+me])}),[]),be=[].concat(fe,[pe]).reduce((function(e,t){return e.concat([t,t+"-"+de,t+"-"+me])}),[]),ve=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function xe(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var we={placement:"bottom",modifiers:[],strategy:"absolute"};function ke(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Oe(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?we:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},we,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:N(e)?re(e):e.contextElement?re(e.contextElement):[],popper:re(t)};var a,c,f=function(e){var t=xe(e);return ve.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),c=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return s.orderedModifiers=f.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r});l.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(ke(t,n)){s.rects={reference:Q(t,ae(n),"fixed"===s.options.strategy),popper:ee(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,l=void 0===a?{}:a,p=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:p,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),c=!0}};if(!ke(e,t))return u;function p(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Ee={passive:!0};function Pe(e){return e.split("-")[0]}function Ze(e){return e.split("-")[1]}function Te(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Se(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Pe(o):null,a=o?Ze(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case se:t={x:s,y:n.y-r.height};break;case le:t={x:s,y:n.y+n.height};break;case ce:t={x:n.x+n.width,y:l};break;case ue:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Te(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case de:t[c]=t[c]-(n[u]/2-r[u]/2);break;case me:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var Ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Re(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,f=a.x,d=void 0===f?0:f,m=a.y,h=void 0===m?0:m,g="function"==typeof u?u({x:d,y:h}):{x:d,y:h};d=g.x,h=g.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),v=ue,x=se,w=window;if(c){var k=ae(n),O="clientHeight",E="clientWidth";k===I(n)&&"static"!==Y(k=G(n)).position&&"absolute"===s&&(O="scrollHeight",E="scrollWidth"),(o===se||(o===ue||o===ce)&&i===me)&&(x=le,h-=(p&&k===w&&w.visualViewport?w.visualViewport.height:k[O])-r.height,h*=l?1:-1),o!==ue&&(o!==se&&o!==le||i!==me)||(v=ce,d-=(p&&k===w&&w.visualViewport?w.visualViewport.width:k[E])-r.width,d*=l?1:-1)}var P,Z=Object.assign({position:s},c&&Ae),T=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:H(n*o)/o||0,y:H(r*o)/o||0}}({x:d,y:h},I(n)):{x:d,y:h};return d=T.x,h=T.y,l?Object.assign({},Z,((P={})[x]=b?"0":"",P[v]=y?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",P)):Object.assign({},Z,((t={})[x]=b?h+"px":"",t[v]=y?d+"px":"",t.transform="",t))}var Ce={left:"right",right:"left",bottom:"top",top:"bottom"};function je(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ce[e]}))}var $e={start:"end",end:"start"};function _e(e){return e.replace(/start|end/g,(function(e){return $e[e]}))}function Me(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&W(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ie(e,t,n){return t===he?Le(function(e,t){var n=I(e),r=G(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=K();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+X(e),y:l}}(e,n)):N(t)?function(e,t){var n=q(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Le(function(e){var t,n=G(e),r=U(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=B(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=B(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+X(e),l=-r.scrollTop;return"rtl"===Y(o||n).direction&&(s+=B(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(G(e)))}function Ne(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function De(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function We(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?he:c,p=n.elementContext,f=void 0===p?ge:p,d=n.altBoundary,m=void 0!==d&&d,h=n.padding,g=void 0===h?0:h,y=Ne("number"!=typeof g?g:De(g,fe)),b=f===ge?"reference":ge,v=e.rects.popper,x=e.elements[m?b:f],w=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=re(te(e)),n=["absolute","fixed"].indexOf(Y(e).position)>=0&&D(e)?ae(e):e;return N(n)?t.filter((function(e){return N(e)&&Me(e,n)&&"body"!==V(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Ie(e,n,r);return t.top=B(o.top,t.top),t.right=F(o.right,t.right),t.bottom=F(o.bottom,t.bottom),t.left=B(o.left,t.left),t}),Ie(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(N(x)?x:x.contextElement||G(e.elements.popper),l,u,a),k=q(e.elements.reference),O=Se({reference:k,element:v,strategy:"absolute",placement:o}),E=Le(Object.assign({},v,O)),P=f===ge?E:k,Z={top:w.top-P.top+y.top,bottom:P.bottom-w.bottom+y.bottom,left:w.left-P.left+y.left,right:P.right-w.right+y.right},T=e.modifiersData.offset;if(f===ge&&T){var S=T[o];Object.keys(Z).forEach((function(e){var t=[ce,le].indexOf(e)>=0?1:-1,n=[se,le].indexOf(e)>=0?"y":"x";Z[e]+=S[n]*t}))}return Z}function Be(e,t,n){return B(e,F(t,n))}function Fe(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function He(e){return[se,ce,le,ue].some((function(t){return e[t]>=0}))}var ze=Oe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=I(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,Ee)})),s&&l.addEventListener("resize",n.update,Ee),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Ee)})),s&&l.removeEventListener("resize",n.update,Ee)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Se({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:Pe(t.placement),variation:Ze(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Re(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Re(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];D(o)&&V(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});D(r)&&V(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=be.reduce((function(e,n){return e[n]=function(e,t,n){var r=Pe(e),o=[ue,se].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ue,ce].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,g=t.options.placement,y=Pe(g),b=l||(y!==g&&m?function(e){if(Pe(e)===pe)return[];var t=je(e);return[_e(e),t,_e(t)]}(g):[je(g)]),v=[g].concat(b).reduce((function(e,n){return e.concat(Pe(n)===pe?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?be:l,u=Ze(r),p=u?s?ye:ye.filter((function(e){return Ze(e)===u})):fe,f=p.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=We(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Pe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:u,rootBoundary:p,padding:c,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,w=t.rects.popper,k=new Map,O=!0,E=v[0],P=0;P<v.length;P++){var Z=v[P],T=Pe(Z),S=Ze(Z)===de,A=[se,le].indexOf(T)>=0,R=A?"width":"height",C=We(t,{placement:Z,boundary:u,rootBoundary:p,altBoundary:f,padding:c}),j=A?S?ce:ue:S?le:se;x[R]>w[R]&&(j=je(j));var $=je(j),_=[];if(i&&_.push(C[T]<=0),s&&_.push(C[j]<=0,C[$]<=0),_.every((function(e){return e}))){E=Z,O=!1;break}k.set(Z,_)}if(O)for(var M=function(e){var t=v.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return E=t,"break"},L=m?3:1;L>0&&"break"!==M(L);L--);t.placement!==E&&(t.modifiersData[r]._skip=!0,t.placement=E,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,m=n.tetherOffset,h=void 0===m?0:m,g=We(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),y=Pe(t.placement),b=Ze(t.placement),v=!b,x=Te(y),w="x"===x?"y":"x",k=t.modifiersData.popperOffsets,O=t.rects.reference,E=t.rects.popper,P="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,Z="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(k){if(i){var A,R="y"===x?se:ue,C="y"===x?le:ce,j="y"===x?"height":"width",$=k[x],_=$+g[R],M=$-g[C],L=d?-E[j]/2:0,I=b===de?O[j]:E[j],N=b===de?-E[j]:-O[j],D=t.elements.arrow,W=d&&D?ee(D):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=H[R],K=H[C],q=Be(0,O[j],W[j]),U=v?O[j]/2-L-q-z-Z.mainAxis:I-q-z-Z.mainAxis,V=v?-O[j]/2+L+q+K+Z.mainAxis:N+q+K+Z.mainAxis,G=t.elements.arrow&&ae(t.elements.arrow),X=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Y=null!=(A=null==T?void 0:T[x])?A:0,J=$+V-Y,Q=Be(d?F(_,$+U-Y-X):_,$,d?B(M,J):M);k[x]=Q,S[x]=Q-$}if(s){var te,ne="x"===x?se:ue,re="x"===x?le:ce,oe=k[w],ie="y"===w?"height":"width",pe=oe+g[ne],fe=oe-g[re],me=-1!==[se,ue].indexOf(y),he=null!=(te=null==T?void 0:T[w])?te:0,ge=me?pe:oe-O[ie]-E[ie]-he+Z.altAxis,ye=me?oe+O[ie]+E[ie]-he-Z.altAxis:fe,be=d&&me?function(e,t,n){var r=Be(e,t,n);return r>n?n:r}(ge,oe,ye):Be(d?ge:pe,oe,d?ye:fe);k[w]=be,S[w]=be-oe}t.modifiersData[r]=S}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Pe(n.placement),l=Te(s),c=[ue,ce].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ne("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:De(e,fe))}(o.padding,n),p=ee(i),f="y"===l?se:ue,d="y"===l?le:ce,m=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],h=a[l]-n.rects.reference[l],g=ae(i),y=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,b=m/2-h/2,v=u[f],x=y-p[c]-u[d],w=y/2-p[c]/2+b,k=Be(v,w,x),O=l;n.modifiersData[r]=((t={})[O]=k,t.centerOffset=k-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Me(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=We(t,{elementContext:"reference"}),s=We(t,{altBoundary:!0}),l=Fe(a,r),c=Fe(s,o,i),u=He(l),p=He(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),Ke=n(1850);const qe=i.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,s]=i.useState(null),l=Z(i.isValidElement(n)?n.ref:null,t);if(M((()=>{o||s(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),M((()=>{if(a&&!o)return P(t,a),()=>{P(t,null)}}),[t,a,o]),o){if(i.isValidElement(n)){const e={ref:l};return i.cloneElement(n,e)}return(0,S.jsx)(i.Fragment,{children:n})}return(0,S.jsx)(i.Fragment,{children:a?Ke.createPortal(n,a):a})})),Ue=e=>e,Ve=(()=>{let e=Ue;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ue}}})(),Ge={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Xe(e,t,n="Mui"){const r=Ge[t];return r?`${n}-${r}`:`${Ve.generate(e)}-${t}`}function Ye(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Xe(e,t,n)})),r}function Je(e){return Xe("MuiPopper",e)}function Qe(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}Ye("MuiPopper",["root"]);const et=["elementType","externalSlotProps","ownerState"],tt={disableDefaultClasses:!1},nt=i.createContext(tt),rt=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],ot=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function it(e){return"function"==typeof e?e():e}const at={},st=i.forwardRef((function(e,t){var n;const{anchorEl:c,children:u,direction:p,disablePortal:f,modifiers:d,open:m,placement:h,popperOptions:g,popperRef:y,slotProps:b={},slots:v={},TransitionProps:x}=e,w=(0,r.Z)(e,rt),k=i.useRef(null),O=Z(k,t),E=i.useRef(null),P=Z(E,y),T=i.useRef(P);M((()=>{T.current=P}),[P]),i.useImperativeHandle(y,(()=>E.current),[]);const A=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(h,p),[R,C]=i.useState(A),[j,$]=i.useState(it(c));i.useEffect((()=>{E.current&&E.current.forceUpdate()})),i.useEffect((()=>{c&&$(it(c))}),[c]),M((()=>{if(!j||!m)return;let e=[{name:"preventOverflow",options:{altBoundary:f}},{name:"flip",options:{altBoundary:f}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=d&&(e=e.concat(d)),g&&null!=g.modifiers&&(e=e.concat(g.modifiers));const t=ze(j,k.current,(0,o.Z)({placement:A},g,{modifiers:e}));return T.current(t),()=>{t.destroy(),T.current(null)}}),[j,f,d,m,g,A]);const _={placement:R};null!==x&&(_.TransitionProps=x);const L=s({root:["root"]},function(e){const{disableDefaultClasses:t}=i.useContext(nt);return n=>t?"":e(n)}(Je)),I=null!=(n=v.root)?n:"div",N=function(e){var t;const{elementType:n,externalSlotProps:i,ownerState:s}=e,c=(0,r.Z)(e,et),u=function(e,t){return"function"==typeof e?e(t):e}(i,s),{props:p,internalRef:f}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:s}=e;if(!t){const e=(0,a.Z)(null==i?void 0:i.className,null==r?void 0:r.className,s,null==n?void 0:n.className),t=(0,o.Z)({},null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),l=(0,o.Z)({},n,i,r);return e.length>0&&(l.className=e),Object.keys(t).length>0&&(l.style=t),{props:l,internalRef:void 0}}const l=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}((0,o.Z)({},i,r)),c=Qe(r),u=Qe(i),p=t(l),f=(0,a.Z)(null==p?void 0:p.className,null==n?void 0:n.className,s,null==i?void 0:i.className,null==r?void 0:r.className),d=(0,o.Z)({},null==p?void 0:p.style,null==n?void 0:n.style,null==i?void 0:i.style,null==r?void 0:r.style),m=(0,o.Z)({},p,n,u,c);return f.length>0&&(m.className=f),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:p.ref}}((0,o.Z)({},c,{externalSlotProps:u})),d=Z(f,null==u?void 0:u.ref,null==(t=e.additionalProps)?void 0:t.ref);return l(n,(0,o.Z)({},p,{ref:d}),s)}({elementType:I,externalSlotProps:b.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:L.root});return(0,S.jsx)(I,(0,o.Z)({},N,{children:"function"==typeof u?u(_):u}))})),lt=i.forwardRef((function(e,t){const{anchorEl:n,children:a,container:s,direction:l="ltr",disablePortal:c=!1,keepMounted:u=!1,modifiers:p,open:f,placement:d="bottom",popperOptions:m=at,popperRef:h,style:g,transition:y=!1,slotProps:b={},slots:v={}}=e,x=(0,r.Z)(e,ot),[w,k]=i.useState(!0);if(!u&&!f&&(!y||w))return null;let O;if(s)O=s;else if(n){const e=it(n);O=e&&void 0!==e.nodeType?L(e).body:L(null).body}const E=f||!u||y&&!w?void 0:"none",P=y?{in:f,onEnter:()=>{k(!1)},onExited:()=>{k(!0)}}:void 0;return(0,S.jsx)(qe,{disablePortal:c,container:O,children:(0,S.jsx)(st,(0,o.Z)({anchorEl:n,direction:l,disablePortal:c,modifiers:p,ref:t,open:y?!w:f,placement:d,popperOptions:m,popperRef:h,slotProps:b,slots:v},x,{style:(0,o.Z)({position:"fixed",top:0,left:0,display:E},g),TransitionProps:P,children:a}))})})),ct=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],ut=(0,u.ZP)(lt,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pt=i.forwardRef((function(e,t){var n;const i=d(),a=w({props:e,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:u,container:p,disablePortal:f,keepMounted:m,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:x,slots:k,slotProps:O}=a,E=(0,r.Z)(a,ct),P=null!=(n=null==k?void 0:k.root)?n:null==c?void 0:c.Root,Z=(0,o.Z)({anchorEl:s,container:p,disablePortal:f,keepMounted:m,modifiers:h,open:g,placement:y,popperOptions:b,popperRef:v,transition:x},E);return(0,S.jsx)(ut,(0,o.Z)({as:l,direction:null==i?void 0:i.direction,slots:{root:P},slotProps:null!=O?O:u},Z,{ref:t}))}));let ft=0;const dt=i.useId;let mt,ht=!0,gt=!1;const yt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function bt(e){e.metaKey||e.altKey||e.ctrlKey||(ht=!0)}function vt(){ht=!1}function xt(){"hidden"===this.visibilityState&>&&(ht=!0)}const wt=function(){const e=i.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",bt,!0),t.addEventListener("mousedown",vt,!0),t.addEventListener("pointerdown",vt,!0),t.addEventListener("touchstart",vt,!0),t.addEventListener("visibilitychange",xt,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ht||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!yt[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(gt=!0,window.clearTimeout(mt),mt=window.setTimeout((()=>{gt=!1}),100),t.current=!1,!0)},ref:e}};function kt(e){return Xe("MuiTooltip",e)}const Ot=Ye("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Et=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],Pt=(0,u.ZP)(pt,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>(0,o.Z)({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ot.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ot.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ot.arrow}`]:(0,o.Z)({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ot.arrow}`]:(0,o.Z)({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Zt=(0,u.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${k(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>(0,o.Z)({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,c.Fq)(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(16/14,Math.round(114285.71428571428)/1e5+"em"),fontWeight:e.typography.fontWeightRegular},{[`.${Ot.popper}[data-popper-placement*="left"] &`]:(0,o.Z)({transformOrigin:"right center"},t.isRtl?(0,o.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):(0,o.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ot.popper}[data-popper-placement*="right"] &`]:(0,o.Z)({transformOrigin:"left center"},t.isRtl?(0,o.Z)({marginRight:"14px"},t.touch&&{marginRight:"24px"}):(0,o.Z)({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ot.popper}[data-popper-placement*="top"] &`]:(0,o.Z)({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ot.popper}[data-popper-placement*="bottom"] &`]:(0,o.Z)({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})}))),Tt=(0,u.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,c.Fq)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let St=!1,At=null,Rt={x:0,y:0};function Ct(e,t){return n=>{t&&t(n),e(n)}}const jt=i.forwardRef((function(e,t){var n,c,u,p,f,d,m,h,g,y,v,x,O,E,P,Z,A,R,C;const j=w({props:e,name:"MuiTooltip"}),{arrow:$=!1,children:L,components:I={},componentsProps:N={},describeChild:D=!1,disableFocusListener:W=!1,disableHoverListener:B=!1,disableInteractive:F=!1,disableTouchListener:H=!1,enterDelay:z=100,enterNextDelay:K=0,enterTouchDelay:q=700,followCursor:U=!1,id:V,leaveDelay:G=0,leaveTouchDelay:X=1500,onClose:Y,onOpen:J,open:Q,placement:ee="bottom",PopperComponent:te,PopperProps:ne={},slotProps:re={},slots:oe={},title:ie,TransitionComponent:ae=_,TransitionProps:se}=j,le=(0,r.Z)(j,Et),ce=b(),ue="rtl"===ce.direction,[pe,fe]=i.useState(),[de,me]=i.useState(null),he=i.useRef(!1),ge=F||U,ye=i.useRef(),be=i.useRef(),ve=i.useRef(),xe=i.useRef(),[we,ke]=function({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=i.useRef(void 0!==e),[a,s]=i.useState(t);return[o?e:a,i.useCallback((e=>{o||s(e)}),[])]}({controlled:Q,default:!1,name:"Tooltip",state:"open"});let Oe=we;const Ee=function(e){if(void 0!==dt){const t=dt();return null!=e?e:t}return function(e){const[t,n]=i.useState(e),r=e||t;return i.useEffect((()=>{null==t&&(ft+=1,n(`mui-${ft}`))}),[t]),r}(e)}(V),Pe=i.useRef(),Ze=i.useCallback((()=>{void 0!==Pe.current&&(document.body.style.WebkitUserSelect=Pe.current,Pe.current=void 0),clearTimeout(xe.current)}),[]);i.useEffect((()=>()=>{clearTimeout(ye.current),clearTimeout(be.current),clearTimeout(ve.current),Ze()}),[Ze]);const Te=e=>{clearTimeout(At),St=!0,ke(!0),J&&!Oe&&J(e)},Se=function(e){const t=i.useRef(e);return M((()=>{t.current=e})),i.useCallback(((...e)=>(0,t.current)(...e)),[])}((e=>{clearTimeout(At),At=setTimeout((()=>{St=!1}),800+G),ke(!1),Y&&Oe&&Y(e),clearTimeout(ye.current),ye.current=setTimeout((()=>{he.current=!1}),ce.transitions.duration.shortest)})),Ae=e=>{he.current&&"touchstart"!==e.type||(pe&&pe.removeAttribute("title"),clearTimeout(be.current),clearTimeout(ve.current),z||St&&K?be.current=setTimeout((()=>{Te(e)}),St?K:z):Te(e))},Re=e=>{clearTimeout(be.current),clearTimeout(ve.current),ve.current=setTimeout((()=>{Se(e)}),G)},{isFocusVisibleRef:Ce,onBlur:je,onFocus:$e,ref:_e}=wt(),[,Me]=i.useState(!1),Le=e=>{je(e),!1===Ce.current&&(Me(!1),Re(e))},Ie=e=>{pe||fe(e.currentTarget),$e(e),!0===Ce.current&&(Me(!0),Ae(e))},Ne=e=>{he.current=!0;const t=L.props;t.onTouchStart&&t.onTouchStart(e)},De=Ae,We=Re;i.useEffect((()=>{if(Oe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Se(e)}}),[Se,Oe]);const Be=T(L.ref,_e,fe,t);ie||0===ie||(Oe=!1);const Fe=i.useRef(),He={},ze="string"==typeof ie;D?(He.title=Oe||!ze||B?null:ie,He["aria-describedby"]=Oe?Ee:null):(He["aria-label"]=ze?ie:null,He["aria-labelledby"]=Oe&&!ze?Ee:null);const Ke=(0,o.Z)({},He,le,L.props,{className:(0,a.Z)(le.className,L.props.className),onTouchStart:Ne,ref:Be},U?{onMouseMove:e=>{const t=L.props;t.onMouseMove&&t.onMouseMove(e),Rt={x:e.clientX,y:e.clientY},Fe.current&&Fe.current.update()}}:{}),qe={};H||(Ke.onTouchStart=e=>{Ne(e),clearTimeout(ve.current),clearTimeout(ye.current),Ze(),Pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",xe.current=setTimeout((()=>{document.body.style.WebkitUserSelect=Pe.current,Ae(e)}),q)},Ke.onTouchEnd=e=>{L.props.onTouchEnd&&L.props.onTouchEnd(e),Ze(),clearTimeout(ve.current),ve.current=setTimeout((()=>{Se(e)}),X)}),B||(Ke.onMouseOver=Ct(De,Ke.onMouseOver),Ke.onMouseLeave=Ct(We,Ke.onMouseLeave),ge||(qe.onMouseOver=De,qe.onMouseLeave=We)),W||(Ke.onFocus=Ct(Ie,Ke.onFocus),Ke.onBlur=Ct(Le,Ke.onBlur),ge||(qe.onFocus=Ie,qe.onBlur=Le));const Ue=i.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(de),options:{element:de,padding:4}}];return null!=(e=ne.popperOptions)&&e.modifiers&&(t=t.concat(ne.popperOptions.modifiers)),(0,o.Z)({},ne.popperOptions,{modifiers:t})}),[de,ne]),Ve=(0,o.Z)({},j,{isRtl:ue,arrow:$,disableInteractive:ge,placement:ee,PopperComponentProp:te,touch:he.current}),Ge=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return s({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${k(i.split("-")[0])}`],arrow:["arrow"]},kt,t)})(Ve),Xe=null!=(n=null!=(c=oe.popper)?c:I.Popper)?n:Pt,Ye=null!=(u=null!=(p=null!=(f=oe.transition)?f:I.Transition)?p:ae)?u:_,Je=null!=(d=null!=(m=oe.tooltip)?m:I.Tooltip)?d:Zt,Qe=null!=(h=null!=(g=oe.arrow)?g:I.Arrow)?h:Tt,et=l(Xe,(0,o.Z)({},ne,null!=(y=re.popper)?y:N.popper,{className:(0,a.Z)(Ge.popper,null==ne?void 0:ne.className,null==(v=null!=(x=re.popper)?x:N.popper)?void 0:v.className)}),Ve),tt=l(Ye,(0,o.Z)({},se,null!=(O=re.transition)?O:N.transition),Ve),nt=l(Je,(0,o.Z)({},null!=(E=re.tooltip)?E:N.tooltip,{className:(0,a.Z)(Ge.tooltip,null==(P=null!=(Z=re.tooltip)?Z:N.tooltip)?void 0:P.className)}),Ve),rt=l(Qe,(0,o.Z)({},null!=(A=re.arrow)?A:N.arrow,{className:(0,a.Z)(Ge.arrow,null==(R=null!=(C=re.arrow)?C:N.arrow)?void 0:R.className)}),Ve);return(0,S.jsxs)(i.Fragment,{children:[i.cloneElement(L,Ke),(0,S.jsx)(Xe,(0,o.Z)({as:null!=te?te:pt,placement:ee,anchorEl:U?{getBoundingClientRect:()=>({top:Rt.y,left:Rt.x,right:Rt.x,bottom:Rt.y,width:0,height:0})}:pe,popperRef:Fe,open:!!pe&&Oe,id:Ee,transition:!0},qe,et,{popperOptions:Ue,children:({TransitionProps:e})=>(0,S.jsx)(Ye,(0,o.Z)({timeout:ce.transitions.duration.shorter},e,tt,{children:(0,S.jsxs)(Je,(0,o.Z)({},nt,{children:[ie,$?(0,S.jsx)(Qe,(0,o.Z)({},rt,{ref:me})):null]}))}))}))]})})),$t=jt},8794:(e,t,n)=>{n.d(t,{Z:()=>I});var r=n(7462),o=n(3366),i=n(1387),a=n(9766),s=n(4869),l=n(8010),c=n(6523),u=n(1796);const p={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},d={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},m={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},h={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},v=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:p.white,default:p.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:p.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:p.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.$n)(e.main,o):"dark"===t&&(e.dark=(0,u._j)(e.main,i)))}const O=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],E={textTransform:"uppercase"},P='"Roboto", "Helvetica", "Arial", sans-serif';function Z(e,t){const n="function"==typeof t?t(e):t,{fontFamily:i=P,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:p=700,htmlFontSize:f=16,allVariants:d,pxToRem:m}=n,h=(0,o.Z)(n,O),g=s/14,y=m||(e=>e/f*g+"rem"),b=(e,t,n,o,a)=>{return(0,r.Z)({fontFamily:i,fontWeight:e,fontSize:y(t),lineHeight:n},i===P?{letterSpacing:(s=o/t,Math.round(1e5*s)/1e5+"em")}:{},a,d);var s},v={h1:b(l,96,1.167,-1.5),h2:b(l,60,1.2,-.5),h3:b(c,48,1.167,0),h4:b(c,34,1.235,.25),h5:b(c,24,1.334,0),h6:b(u,20,1.6,.15),subtitle1:b(c,16,1.75,.15),subtitle2:b(u,14,1.57,.1),body1:b(c,16,1.5,.15),body2:b(c,14,1.43,.15),button:b(u,14,1.75,.4,E),caption:b(c,12,1.66,.4),overline:b(c,12,2.66,1,E),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.Z)((0,r.Z)({htmlFontSize:f,pxToRem:y,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:p},v),h,{clone:!1})}function T(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const S=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],A=["duration","easing","delay"],R={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},C={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function j(e){return`${Math.round(e)}ms`}function $(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function _(e){const t=(0,r.Z)({},R,e.easing),n=(0,r.Z)({},C,e.duration);return(0,r.Z)({getAutoHeightDuration:$,create:(e=["all"],r={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;return(0,o.Z)(r,A),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof i?i:j(i)} ${a} ${"string"==typeof s?s:j(s)}`)).join(",")}},e,{easing:t,duration:n})}const M={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},L=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];const I=function(e={},...t){const{mixins:n={},palette:O={},transitions:E={},typography:P={}}=e,T=(0,o.Z)(e,L);if(e.vars)throw new Error((0,i.Z)(18));const A=function(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.Z)(e,v),c=e.primary||function(e="light"){return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),O=e.secondary||function(e="light"){return"dark"===e?{main:d[200],light:d[50],dark:d[400]}:{main:d[500],light:d[300],dark:d[700]}}(t),E=e.error||function(e="light"){return"dark"===e?{main:m[500],light:m[300],dark:m[700]}:{main:m[700],light:m[400],dark:m[800]}}(t),P=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),Z=e.success||function(e="light"){return"dark"===e?{main:b[400],light:b[300],dark:b[700]}:{main:b[800],light:b[500],dark:b[900]}}(t),T=e.warning||function(e="light"){return"dark"===e?{main:h[400],light:h[300],dark:h[700]}:{main:"#ed6c02",light:h[500],dark:h[900]}}(t);function S(e){return(0,u.mi)(e,w.text.primary)>=n?w.text.primary:x.text.primary}const A=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,i.Z)(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error((0,i.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return k(e,"light",o,s),k(e,"dark",a,s),e.contrastText||(e.contrastText=S(e.main)),e},R={dark:w,light:x};return(0,a.Z)((0,r.Z)({common:(0,r.Z)({},p),mode:t,primary:A({color:c,name:"primary"}),secondary:A({color:O,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:A({color:E,name:"error"}),warning:A({color:T,name:"warning"}),info:A({color:P,name:"info"}),success:A({color:Z,name:"success"}),grey:f,contrastThreshold:n,getContrastText:S,augmentColor:A,tonalOffset:s},R[t]),l)}(O),R=(0,s.Z)(e);let C=(0,a.Z)(R,{mixins:(j=R.breakpoints,$=n,(0,r.Z)({toolbar:{minHeight:56,[j.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[j.up("sm")]:{minHeight:64}}},$)),palette:A,shadows:S.slice(),typography:Z(A,P),transitions:_(E),zIndex:(0,r.Z)({},M)});var j,$;return C=(0,a.Z)(C,T),C=t.reduce(((e,t)=>(0,a.Z)(e,t)),C),C.unstable_sxConfig=(0,r.Z)({},l.Z,null==T?void 0:T.unstable_sxConfig),C.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},C}()},606:(e,t,n)=>{n.d(t,{Z:()=>r});const r="$$material"},9610:(e,t,n)=>{n.d(t,{ZP:()=>A});var r=n(3366),o=n(7462),i=n(9196),a=n(1068),s=n(3562),l=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},c=n(1095),u=n(7278),p=a.Z,f=function(e){return"theme"!==e},d=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:f},m=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},h=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return l(t,n,r),(0,u.L)((function(){return function(e,t,n){l(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},g=function e(t,n){var r,a,l=t.__emotion_real===t,u=l&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var p=m(t,n,l),f=p||d(u),g=!f("as");return function(){var y=arguments,b=l&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&b.push("label:"+r+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{b.push(y[0][0]);for(var v=y.length,x=1;x<v;x++)b.push(y[x],y[0][x])}var w=(0,s.w)((function(e,t,n){var r,o,l,m,y=g&&e.as||u,v="",x=[],w=e;if(null==e.theme){for(var k in w={},e)w[k]=e[k];w.theme=i.useContext(s.T)}"string"==typeof e.className?(r=t.registered,o=x,l=e.className,m="",l.split(" ").forEach((function(e){void 0!==r[e]?o.push(r[e]+";"):m+=e+" "})),v=m):null!=e.className&&(v=e.className+" ");var O=(0,c.O)(b.concat(x),t.registered,w);v+=t.key+"-"+O.name,void 0!==a&&(v+=" "+a);var E=g&&void 0===p?d(y):f,P={};for(var Z in e)g&&"as"===Z||E(Z)&&(P[Z]=e[Z]);return P.className=v,P.ref=n,i.createElement(i.Fragment,null,i.createElement(h,{cache:t,serialized:O,isStringTag:"string"==typeof y}),i.createElement(y,P))}));return w.displayName=void 0!==r?r:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=u,w.__emotion_styles=b,w.__emotion_forwardProp=p,Object.defineProperty(w,"toString",{value:function(){return"."+a}}),w.withComponent=function(t,r){return e(t,(0,o.Z)({},n,r,{shouldForwardProp:m(w,r,!0)})).apply(void 0,b)},w}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){g[e]=g(e)}));var y=n(4869),b=n(8320);const v=["variant"];function x(e){return 0===e.length}function w(e){const{variant:t}=e,n=(0,r.Z)(e,v);let o=t||"";return Object.keys(n).sort().forEach((t=>{o+="color"===t?x(o)?e[t]:(0,b.Z)(e[t]):`${x(o)?t:(0,b.Z)(t)}${(0,b.Z)(e[t].toString())}`})),o}var k=n(6523);const O=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function E(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const P=(0,y.Z)();function Z({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}var T=n(8794);const S=function(e={}){const{themeId:t,defaultTheme:n=P,rootShouldForwardProp:i=E,slotShouldForwardProp:a=E}=e,s=e=>(0,k.Z)((0,o.Z)({},e,{theme:Z((0,o.Z)({},e,{defaultTheme:n,themeId:t}))}));return s.__mui_systemSx=!0,(e,l={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=e.__emotion_styles.filter((e=>!(null!=e&&e.__mui_systemSx))))})(e);const{name:c,slot:u,skipVariantsResolver:p,skipSx:f,overridesResolver:d}=l,m=(0,r.Z)(l,O),h=void 0!==p?p:u&&"Root"!==u||!1,y=f||!1;let b=E;"Root"===u?b=i:u?b=a:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(b=void 0);const v=function(e,t){return g(e,t)}(e,(0,o.Z)({shouldForwardProp:b,label:void 0},m)),x=(r,...i)=>{const a=i?i.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e((0,o.Z)({},r,{theme:Z((0,o.Z)({},r,{defaultTheme:n,themeId:t}))})):e)):[];let l=r;c&&d&&a.push((e=>{const r=Z((0,o.Z)({},e,{defaultTheme:n,themeId:t})),i=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(c,r);if(i){const t={};return Object.entries(i).forEach((([n,i])=>{t[n]="function"==typeof i?i((0,o.Z)({},e,{theme:r})):i})),d(e,t)}return null})),c&&!h&&a.push((e=>{const r=Z((0,o.Z)({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[w(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=w(e.props);r[t]=e.style})),r})(c,r),r,c)})),y||a.push(s);const u=a.length-i.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");l=[...r,...e],l.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(l=e=>r((0,o.Z)({},e,{theme:Z((0,o.Z)({},e,{defaultTheme:n,themeId:t}))})));const p=v(l,...a);return e.muiName&&(p.muiName=e.muiName),p};return v.withConfig&&(x.withConfig=v.withConfig),x}}({themeId:n(606).Z,defaultTheme:T.Z,rootShouldForwardProp:e=>E(e)&&"classes"!==e}),A=S},5408:(e,t,n)=>{n.d(t,{L7:()=>s,VO:()=>r,W8:()=>a,k9:()=>i});const r={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${r[e]}px)`};function i(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const e=i.breakpoints||o;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=i.breakpoints||o;return Object.keys(t).reduce(((o,i)=>{if(-1!==Object.keys(e.values||r).indexOf(i))o[e.up(i)]=n(t[i],i);else{const e=i;o[e]=t[e]}return o}),{})}return n(t)}function a(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function s(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}},1796:(e,t,n)=>{n.d(t,{$n:()=>p,Fq:()=>c,_j:()=>u,mi:()=>l});var r=n(1387);function o(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let o,a=e.substring(t+1,e.length-1);if("color"===n){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error((0,r.Z)(10,o))}else a=a.split(",");return a=a.map((e=>parseFloat(e))),{type:n,values:a,colorSpace:o}}function a(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,s=r*Math.min(o,1-o),l=(e,t=(e+n/30)%12)=>o-s*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),a({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=i(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,a(e)}function u(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function p(e,t){if(e=i(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return a(e)}},4869:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(7462),o=n(3366),i=n(9766);const a=["values","unit","step"],s={borderRadius:4};var l=n(2605),c=n(6523),u=n(8010);const p=["breakpoints","palette","spacing","shape"],f=function(e={},...t){const{breakpoints:n={},palette:f={},spacing:d,shape:m={}}=e,h=(0,o.Z)(e,p),g=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,s=(0,o.Z)(e,a),l=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})})(t),c=Object.keys(l);function u(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function p(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-i/100}${n})`}function f(e,r){const o=c.indexOf(r);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==o&&"number"==typeof t[c[o]]?t[c[o]]:r)-i/100}${n})`}return(0,r.Z)({keys:c,values:l,up:u,down:p,between:f,only:function(e){return c.indexOf(e)+1<c.length?f(e,c[c.indexOf(e)+1]):u(e)},not:function(e){const t=c.indexOf(e);return 0===t?u(c[1]):t===c.length-1?p(c[t]):f(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},s)}(n),y=function(e=8){if(e.mui)return e;const t=(0,l.hB)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(d);let b=(0,i.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},f),spacing:y,shape:(0,r.Z)({},s,m)},h);return b=t.reduce(((e,t)=>(0,i.Z)(e,t)),b),b.unstable_sxConfig=(0,r.Z)({},u.Z,null==h?void 0:h.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},b}},7730:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9766);const o=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},2605:(e,t,n)=>{n.d(t,{hB:()=>m,eI:()=>d,NA:()=>h,e6:()=>y,o3:()=>b});var r=n(5408),o=n(4844),i=n(7730);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return e=>(void 0===t[e]&&(t[e]=(e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})(e)),t[e])}(),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],p=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...p];function d(e,t,n,r){var i;const a=null!=(i=(0,o.DW)(e,t,!1))?i:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function m(e){return d(e,"spacing",8)}function h(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function g(e,t){const n=m(e.theme);return Object.keys(e).map((o=>function(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=h(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.k9)(e,a,i)}(e,t,o,n))).reduce(i.Z,{})}function y(e){return g(e,u)}function b(e){return g(e,p)}function v(e){return g(e,f)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=p,v.propTypes={},v.filterProps=f},4844:(e,t,n)=>{n.d(t,{DW:()=>i,Jq:()=>a,ZP:()=>s});var r=n(8320),o=n(5408);function i(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:i(e,n)||r,t&&(o=t(o,r,e)),o}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.k9)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"==typeof e&&(o=a(u,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},8010:(e,t,n)=>{n.d(t,{Z:()=>C});var r=n(2605),o=n(4844),i=n(7730);const a=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,i.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n};var s=n(5408);function l(e){return"number"!=typeof e?e:`${e}px solid`}const c=(0,o.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,o.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),p=(0,o.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),f=(0,o.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),d=(0,o.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),m=(0,o.ZP)({prop:"borderColor",themeKey:"palette"}),h=(0,o.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,o.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,o.ZP)({prop:"borderBottomColor",themeKey:"palette"}),b=(0,o.ZP)({prop:"borderLeftColor",themeKey:"palette"}),v=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};v.propTypes={},v.filterProps=["borderRadius"],a(c,u,p,f,d,m,h,g,y,b,v);const x=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};x.propTypes={},x.filterProps=["gap"];const w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};w.propTypes={},w.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};function O(e,t){return"grey"===t?t:e}function E(e){return e<=1&&0!==e?100*e+"%":e}k.propTypes={},k.filterProps=["rowGap"],a(x,w,k,(0,o.ZP)({prop:"gridColumn"}),(0,o.ZP)({prop:"gridRow"}),(0,o.ZP)({prop:"gridAutoFlow"}),(0,o.ZP)({prop:"gridAutoColumns"}),(0,o.ZP)({prop:"gridAutoRows"}),(0,o.ZP)({prop:"gridTemplateColumns"}),(0,o.ZP)({prop:"gridTemplateRows"}),(0,o.ZP)({prop:"gridTemplateAreas"}),(0,o.ZP)({prop:"gridArea"})),a((0,o.ZP)({prop:"color",themeKey:"palette",transform:O}),(0,o.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:O}),(0,o.ZP)({prop:"backgroundColor",themeKey:"palette",transform:O}));const P=(0,o.ZP)({prop:"width",transform:E}),Z=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||s.VO[t]||E(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};Z.filterProps=["maxWidth"];const T=(0,o.ZP)({prop:"minWidth",transform:E}),S=(0,o.ZP)({prop:"height",transform:E}),A=(0,o.ZP)({prop:"maxHeight",transform:E}),R=(0,o.ZP)({prop:"minHeight",transform:E}),C=((0,o.ZP)({prop:"size",cssProperty:"width",transform:E}),(0,o.ZP)({prop:"size",cssProperty:"height",transform:E}),a(P,Z,T,S,A,R,(0,o.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:v},color:{themeKey:"palette",transform:O},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:O},backgroundColor:{themeKey:"palette",transform:O},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:k},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:Z},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},6523:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(8320),o=n(7730),i=n(4844),a=n(5408),s=n(8010);const l=function(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:p,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const d=(0,i.DW)(n,u)||{};return f?f(s):(0,a.k9)(s,t,(t=>{let n=(0,i.Jq)(d,p,t);return t===n&&"string"==typeof t&&(n=(0,i.Jq)(d,p,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.Z;function u(n){let r=n;if("function"==typeof n)r=n(l);else if("object"!=typeof n)return n;if(!r)return null;const i=(0,a.W8)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i="function"==typeof(s=r[n])?s(l):s;var s;if(null!=i)if("object"==typeof i)if(c[n])u=(0,o.Z)(u,e(n,i,l,c));else{const e=(0,a.k9)({theme:l},i,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,i)?u=(0,o.Z)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.Z)(u,e(n,i,l,c))})),(0,a.L7)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}();l.filterProps=["sx"];const c=l},8320:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(1387);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},9766:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(7462);function o(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function i(e){if(!o(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function a(e,t,n={clone:!0}){const s=n.clone?(0,r.Z)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?s[r]=a(e[r],t[r],n):n.clone?s[r]=o(t[r])?i(t[r]):t[r]:s[r]=t[r])})),s}},1387:(e,t,n)=>{function r(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:()=>r})},6010:(e,t,n)=>{function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}n.d(t,{Z:()=>o});const o=function(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}},7418:e=>{var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},8052:(e,t,n)=>{n.d(t,{ZP:()=>y});var r=n(3366),o=n(1721),i=n(9196),a=n.n(i),s=n(1850),l=n.n(s);var c=n(220),u="unmounted",p="exited",f="entering",d="entered",m="exiting",h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=p,r.appearStatus=f):o=d:o=t.unmountOnExit||t.mountOnEnter?u:p,r.state={status:o},r.nextCallback=null,r}(0,o.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===u?{status:p}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==f&&n!==d&&(t=f):n!==f&&n!==d||(t=m)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===f){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:u})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[l().findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),c=r?s.appear:s.enter;e||n?(this.props.onEnter(i,a),this.safeSetState({status:f},(function(){t.props.onEntering(i,a),t.onTransitionEnd(c,(function(){t.safeSetState({status:d},(function(){t.props.onEntered(i,a)}))}))}))):this.safeSetState({status:d},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:l().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:m},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:p},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:p},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===u)return null;var t=this.props,n=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,r.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(c.Z.Provider,{value:null},"function"==typeof n?n(e,o):a().cloneElement(a().Children.only(n),o))},t}(a().Component);function g(){}h.contextType=c.Z,h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},h.UNMOUNTED=u,h.EXITED=p,h.ENTERING=f,h.ENTERED=d,h.EXITING=m;const y=h},220:(e,t,n)=>{n.d(t,{Z:()=>o});var r=n(9196);const o=n.n(r)().createContext(null)},5251:(e,t,n)=>{n(7418);var r=n(9196),o=60103;if("function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},5893:(e,t,n)=>{e.exports=n(5251)},7462:(e,t,n)=>{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:()=>r})},1721:(e,t,n)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:()=>o})},3366:(e,t,n)=>{function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,{Z:()=>r})}}]); build/516.js 0000666 00000573440 15165313625 0006544 0 ustar 00 (globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[516],{9895:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(5987),o=n(7462),i=n(9196),a=n(6010),s=n(4670),l=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=e.square,d=void 0!==u&&u,f=e.elevation,p=void 0===f?1:f,h=e.variant,g=void 0===h?"elevation":h,m=(0,r.Z)(e,["classes","className","component","square","elevation","variant"]);return i.createElement(c,(0,o.Z)({className:(0,a.Z)(n.root,s,"outlined"===g?n.outlined:n["elevation".concat(p)],!d&&n.rounded),ref:t},m))}));const c=(0,s.Z)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),(0,o.Z)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(l)},6234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9196),o=n(1850),i=n(4236),a=n(7294),s="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;const l=r.forwardRef((function(e,t){var n=e.children,l=e.container,c=e.disablePortal,u=void 0!==c&&c,d=e.onRendered,f=r.useState(null),p=f[0],h=f[1],g=(0,a.Z)(r.isValidElement(n)?n.ref:null,t);return s((function(){u||h(function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(l)||document.body)}),[l,u]),s((function(){if(p&&!u)return(0,i.Z)(t,p),function(){(0,i.Z)(t,null)}}),[t,p,u]),s((function(){d&&(p||u)&&d()}),[d,p,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:g}):n:p?o.createPortal(n,p):p}))},1898:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ot});var r=n(7462),o=n(5987),i=n(9196),a=n(6010),s=n(288);function l(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var c=i.createContext();const u=c;var d=n(4670),f=n(3871),p=n(7294);function h(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this;clearTimeout(t),t=setTimeout((function(){e.apply(a,o)}),n)}return r.clear=function(){clearTimeout(t)},r}function g(e,t){return parseInt(e[t],10)||0}var m="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const b=i.forwardRef((function(e,t){var n=e.onChange,a=e.rows,s=e.rowsMax,l=e.rowsMin,c=e.maxRows,u=e.minRows,d=void 0===u?1:u,f=e.style,b=e.value,y=(0,o.Z)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),w=c||s,x=a||l||d,C=i.useRef(null!=b).current,S=i.useRef(null),R=(0,p.Z)(t,S),E=i.useRef(null),k=i.useRef(0),P=i.useState({}),O=P[0],A=P[1],Z=i.useCallback((function(){var t=S.current,n=window.getComputedStyle(t),r=E.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var o=n["box-sizing"],i=g(n,"padding-bottom")+g(n,"padding-top"),a=g(n,"border-bottom-width")+g(n,"border-top-width"),s=r.scrollHeight-i;r.value="x";var l=r.scrollHeight-i,c=s;x&&(c=Math.max(Number(x)*l,c)),w&&(c=Math.min(Number(w)*l,c));var u=(c=Math.max(c,l))+("border-box"===o?i+a:0),d=Math.abs(c-s)<=1;A((function(e){return k.current<20&&(u>0&&Math.abs((e.outerHeightStyle||0)-u)>1||e.overflow!==d)?(k.current+=1,{overflow:d,outerHeightStyle:u}):e}))}),[w,x,e.placeholder]);return i.useEffect((function(){var e=h((function(){k.current=0,Z()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[Z]),m((function(){Z()})),i.useEffect((function(){k.current=0}),[b]),i.createElement(i.Fragment,null,i.createElement("textarea",(0,r.Z)({value:b,onChange:function(e){k.current=0,C||Z(),n&&n(e)},ref:R,rows:x,style:(0,r.Z)({height:O.outerHeightStyle,overflow:O.overflow?"hidden":null},f)},y)),i.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:E,tabIndex:-1,style:(0,r.Z)({},v,f)}))}));function y(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(y(e.value)&&""!==e.value||t&&y(e.defaultValue)&&""!==e.defaultValue)}var x="undefined"==typeof window?i.useEffect:i.useLayoutEffect,C=i.forwardRef((function(e,t){var n=e["aria-describedby"],d=e.autoComplete,h=e.autoFocus,g=e.classes,m=e.className,v=(e.color,e.defaultValue),y=e.disabled,C=e.endAdornment,S=(e.error,e.fullWidth),R=void 0!==S&&S,E=e.id,k=e.inputComponent,P=void 0===k?"input":k,O=e.inputProps,A=void 0===O?{}:O,Z=e.inputRef,I=(e.margin,e.multiline),M=void 0!==I&&I,T=e.name,D=e.onBlur,j=e.onChange,$=e.onClick,N=e.onFocus,F=e.onKeyDown,L=e.onKeyUp,H=e.placeholder,_=e.readOnly,z=e.renderSuffix,W=e.rows,B=e.rowsMax,V=e.rowsMin,G=e.maxRows,q=e.minRows,U=e.startAdornment,K=e.type,Y=void 0===K?"text":K,J=e.value,X=(0,o.Z)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),Q=null!=A.value?A.value:J,ee=i.useRef(null!=Q).current,te=i.useRef(),ne=i.useCallback((function(e){}),[]),re=(0,p.Z)(A.ref,ne),oe=(0,p.Z)(Z,re),ie=(0,p.Z)(te,oe),ae=i.useState(!1),se=ae[0],le=ae[1],ce=i.useContext(c),ue=l({props:e,muiFormControl:ce,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ue.focused=ce?ce.focused:se,i.useEffect((function(){!ce&&y&&se&&(le(!1),D&&D())}),[ce,y,se,D]);var de=ce&&ce.onFilled,fe=ce&&ce.onEmpty,pe=i.useCallback((function(e){w(e)?de&&de():fe&&fe()}),[de,fe]);x((function(){ee&&pe({value:Q})}),[Q,pe,ee]),i.useEffect((function(){pe(te.current)}),[]);var he=P,ge=(0,r.Z)({},A,{ref:ie});return"string"!=typeof he?ge=(0,r.Z)({inputRef:ie,type:Y},ge,{ref:null}):M?!W||G||q||B||V?(ge=(0,r.Z)({minRows:W||q,rowsMax:B,maxRows:G},ge),he=b):he="textarea":ge=(0,r.Z)({type:Y},ge),i.useEffect((function(){ce&&ce.setAdornedStart(Boolean(U))}),[ce,U]),i.createElement("div",(0,r.Z)({className:(0,a.Z)(g.root,g["color".concat((0,f.Z)(ue.color||"primary"))],m,ue.disabled&&g.disabled,ue.error&&g.error,R&&g.fullWidth,ue.focused&&g.focused,ce&&g.formControl,M&&g.multiline,U&&g.adornedStart,C&&g.adornedEnd,"dense"===ue.margin&&g.marginDense),onClick:function(e){te.current&&e.currentTarget===e.target&&te.current.focus(),$&&$(e)},ref:t},X),U,i.createElement(u.Provider,{value:null},i.createElement(he,(0,r.Z)({"aria-invalid":ue.error,"aria-describedby":n,autoComplete:d,autoFocus:h,defaultValue:v,disabled:ue.disabled,id:E,onAnimationStart:function(e){pe("mui-auto-fill-cancel"===e.animationName?te.current:{value:"x"})},name:T,placeholder:H,readOnly:_,required:ue.required,rows:W,value:Q,onKeyDown:F,onKeyUp:L},ge,{className:(0,a.Z)(g.input,A.className,ue.disabled&&g.disabled,M&&g.inputMultiline,ue.hiddenLabel&&g.inputHiddenLabel,U&&g.inputAdornedStart,C&&g.inputAdornedEnd,"search"===Y&&g.inputTypeSearch,"dense"===ue.margin&&g.inputMarginDense),onBlur:function(e){D&&D(e),A.onBlur&&A.onBlur(e),ce&&ce.onBlur?ce.onBlur(e):le(!1)},onChange:function(e){if(!ee){var t=e.target||te.current;if(null==t)throw new Error((0,s.Z)(1));pe({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];A.onChange&&A.onChange.apply(A,[e].concat(r)),j&&j.apply(void 0,[e].concat(r))},onFocus:function(e){ue.disabled?e.stopPropagation():(N&&N(e),A.onFocus&&A.onFocus(e),ce&&ce.onFocus?ce.onFocus(e):le(!0))}}))),C,z?z((0,r.Z)({},ue,{startAdornment:U})):null)}));const S=(0,d.Z)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},i={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:(0,r.Z)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(C);var R=i.forwardRef((function(e,t){var n=e.disableUnderline,s=e.classes,l=e.fullWidth,c=void 0!==l&&l,u=e.inputComponent,d=void 0===u?"input":u,f=e.multiline,p=void 0!==f&&f,h=e.type,g=void 0===h?"text":h,m=(0,o.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(S,(0,r.Z)({classes:(0,r.Z)({},s,{root:(0,a.Z)(s.root,!n&&s.underline),underline:null}),fullWidth:c,inputComponent:d,multiline:p,ref:t,type:g},m))}));R.muiName="Input";const E=(0,d.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(R);var k=i.forwardRef((function(e,t){var n=e.disableUnderline,s=e.classes,l=e.fullWidth,c=void 0!==l&&l,u=e.inputComponent,d=void 0===u?"input":u,f=e.multiline,p=void 0!==f&&f,h=e.type,g=void 0===h?"text":h,m=(0,o.Z)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return i.createElement(S,(0,r.Z)({classes:(0,r.Z)({},s,{root:(0,a.Z)(s.root,!n&&s.underline),underline:null}),fullWidth:c,inputComponent:d,multiline:p,ref:t,type:g},m))}));k.muiName="Input";const P=(0,d.Z)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(k);var O=n(4942),A=n(8920),Z=i.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,l=e.label,c=e.labelWidth,u=e.notched,d=e.style,p=(0,o.Z)(e,["children","classes","className","label","labelWidth","notched","style"]),h="rtl"===(0,A.Z)().direction?"right":"left";if(void 0!==l)return i.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,className:(0,a.Z)(n.root,s),ref:t,style:d},p),i.createElement("legend",{className:(0,a.Z)(n.legendLabelled,u&&n.legendNotched)},l?i.createElement("span",null,l):i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var g=c>0?.75*c+8:.01;return i.createElement("fieldset",(0,r.Z)({"aria-hidden":!0,style:(0,r.Z)((0,O.Z)({},"padding".concat((0,f.Z)(h)),8),d),className:(0,a.Z)(n.root,s),ref:t},p),i.createElement("legend",{className:n.legend,style:{width:u?g:.01}},i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))}));const I=(0,d.Z)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(Z);var M=i.forwardRef((function(e,t){var n=e.classes,s=e.fullWidth,l=void 0!==s&&s,c=e.inputComponent,u=void 0===c?"input":c,d=e.label,f=e.labelWidth,p=void 0===f?0:f,h=e.multiline,g=void 0!==h&&h,m=e.notched,v=e.type,b=void 0===v?"text":v,y=(0,o.Z)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return i.createElement(S,(0,r.Z)({renderSuffix:function(e){return i.createElement(I,{className:n.notchedOutline,label:d,labelWidth:p,notched:void 0!==m?m:Boolean(e.startAdornment||e.filled||e.focused)})},classes:(0,r.Z)({},n,{root:(0,a.Z)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:u,multiline:g,ref:t,type:b},y))}));M.muiName="Input";const T=(0,d.Z)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(M);function D(){return i.useContext(u)}var j=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=(e.color,e.component),d=void 0===u?"label":u,p=(e.disabled,e.error,e.filled,e.focused,e.required,(0,o.Z)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),h=l({props:e,muiFormControl:D(),states:["color","required","focused","disabled","error","filled"]});return i.createElement(d,(0,r.Z)({className:(0,a.Z)(s.root,s["color".concat((0,f.Z)(h.color||"primary"))],c,h.disabled&&s.disabled,h.error&&s.error,h.filled&&s.filled,h.focused&&s.focused,h.required&&s.required),ref:t},p),n,h.required&&i.createElement("span",{"aria-hidden":!0,className:(0,a.Z)(s.asterisk,h.error&&s.error)}," ","*"))}));const $=(0,d.Z)((function(e){return{root:(0,r.Z)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(j);var N=i.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.disableAnimation,u=void 0!==c&&c,d=(e.margin,e.shrink),f=(e.variant,(0,o.Z)(e,["classes","className","disableAnimation","margin","shrink","variant"])),p=D(),h=d;void 0===h&&p&&(h=p.filled||p.focused||p.adornedStart);var g=l({props:e,muiFormControl:p,states:["margin","variant"]});return i.createElement($,(0,r.Z)({"data-shrink":h,className:(0,a.Z)(n.root,s,p&&n.formControl,!u&&n.animated,h&&n.shrink,"dense"===g.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[g.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},f))}));const F=(0,d.Z)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(N);function L(e,t){return i.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var H=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.color,d=void 0===c?"primary":c,p=e.component,h=void 0===p?"div":p,g=e.disabled,m=void 0!==g&&g,v=e.error,b=void 0!==v&&v,y=e.fullWidth,x=void 0!==y&&y,C=e.focused,S=e.hiddenLabel,R=void 0!==S&&S,E=e.margin,k=void 0===E?"none":E,P=e.required,O=void 0!==P&&P,A=e.size,Z=e.variant,I=void 0===Z?"standard":Z,M=(0,o.Z)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),T=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){if(L(t,["Input","Select"])){var n=L(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),D=T[0],j=T[1],$=i.useState((function(){var e=!1;return n&&i.Children.forEach(n,(function(t){L(t,["Input","Select"])&&w(t.props,!0)&&(e=!0)})),e})),N=$[0],F=$[1],H=i.useState(!1),_=H[0],z=H[1],W=void 0!==C?C:_;m&&W&&z(!1);var B=i.useCallback((function(){F(!0)}),[]),V={adornedStart:D,setAdornedStart:j,color:d,disabled:m,error:b,filled:N,focused:W,fullWidth:x,hiddenLabel:R,margin:("small"===A?"dense":void 0)||k,onBlur:function(){z(!1)},onEmpty:i.useCallback((function(){F(!1)}),[]),onFilled:B,onFocus:function(){z(!0)},registerEffect:void 0,required:O,variant:I};return i.createElement(u.Provider,{value:V},i.createElement(h,(0,r.Z)({className:(0,a.Z)(s.root,l,"none"!==k&&s["margin".concat((0,f.Z)(k))],x&&s.fullWidth),ref:t},M),n))}));const _=(0,d.Z)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(H);var z=i.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,u=e.component,d=void 0===u?"p":u,f=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,(0,o.Z)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),p=l({props:e,muiFormControl:D(),states:["variant","margin","disabled","error","filled","focused","required"]});return i.createElement(d,(0,r.Z)({className:(0,a.Z)(s.root,("filled"===p.variant||"outlined"===p.variant)&&s.contained,c,p.disabled&&s.disabled,p.error&&s.error,p.filled&&s.filled,p.focused&&s.focused,p.required&&s.required,"dense"===p.margin&&s.marginDense),ref:t},f)," "===n?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));const W=(0,d.Z)((function(e){return{root:(0,r.Z)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(z);var B=n(5835),V=n(1037),G=n(1002);function q(e){return e&&e.ownerDocument||document}n(5122);var U=n(1850);function K(e){return q(e).defaultView||window}var Y=n(2568),J=n(159),X=n(3869),Q=n(6234),ee=n(5192),te=n(2781),ne=n(5671),re=n(3144),oe=n(2982);function ie(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function ae(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function se(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function le(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4?arguments[4]:void 0,i=[t,n].concat((0,oe.Z)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===i.indexOf(e)&&-1===a.indexOf(e.tagName)&&ae(e,o)}))}function ce(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}var ue=function(){function e(){(0,ne.Z)(this,e),this.modals=[],this.containers=[]}return(0,re.Z)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ae(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);le(t,e.mountNode,e.modalRef,r,!0);var o=ce(this.containers,(function(e){return e.container===t}));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=ce(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=function(e,t){var n,r=[],o=[],i=e.container;if(!t.disableScrollLock){if(function(e){var t=q(e);return t.body===e?K(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(i)){var a=ie();r.push({value:i.style.paddingRight,key:"padding-right",el:i}),i.style["padding-right"]="".concat(se(i)+a,"px"),n=q(i).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){o.push(e.style.paddingRight),e.style.paddingRight="".concat(se(e)+a,"px")}))}var s=i.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:i;r.push({value:l.style.overflow,key:"overflow",el:l}),l.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){o[t]?e.style.paddingRight=o[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=ce(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&ae(e.modalRef,!0),le(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var o=r.modals[r.modals.length-1];o.modalRef&&ae(o.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();const de=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,o=e.disableEnforceFocus,a=void 0!==o&&o,s=e.disableRestoreFocus,l=void 0!==s&&s,c=e.getDoc,u=e.isEnabled,d=e.open,f=i.useRef(),h=i.useRef(null),g=i.useRef(null),m=i.useRef(),v=i.useRef(null),b=i.useCallback((function(e){v.current=U.findDOMNode(e)}),[]),y=(0,p.Z)(t.ref,b),w=i.useRef();return i.useEffect((function(){w.current=d}),[d]),!w.current&&d&&"undefined"!=typeof window&&(m.current=c().activeElement),i.useEffect((function(){if(d){var e=q(v.current);r||!v.current||v.current.contains(e.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex",-1),v.current.focus());var t=function(){null!==v.current&&(e.hasFocus()&&!a&&u()&&!f.current?v.current&&!v.current.contains(e.activeElement)&&v.current.focus():f.current=!1)},n=function(t){!a&&u()&&9===t.keyCode&&e.activeElement===v.current&&(f.current=!0,t.shiftKey?g.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var o=setInterval((function(){t()}),50);return function(){clearInterval(o),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,a,l,u,d]),i.createElement(i.Fragment,null,i.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),i.cloneElement(t,{ref:y}),i.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))};var fe={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}};const pe=i.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,l=(0,o.Z)(e,["invisible","open"]);return s?i.createElement("div",(0,r.Z)({"aria-hidden":!0,ref:t},l,{style:(0,r.Z)({},fe.root,a?fe.invisible:{},l.style)})):null}));var he=new ue;const ge=i.forwardRef((function(e,t){var n=(0,J.Z)(),a=(0,X.Z)({name:"MuiModal",props:(0,r.Z)({},e),theme:n}),s=a.BackdropComponent,l=void 0===s?pe:s,c=a.BackdropProps,u=a.children,d=a.closeAfterTransition,f=void 0!==d&&d,h=a.container,g=a.disableAutoFocus,m=void 0!==g&&g,v=a.disableBackdropClick,b=void 0!==v&&v,y=a.disableEnforceFocus,w=void 0!==y&&y,x=a.disableEscapeKeyDown,C=void 0!==x&&x,S=a.disablePortal,R=void 0!==S&&S,E=a.disableRestoreFocus,k=void 0!==E&&E,P=a.disableScrollLock,O=void 0!==P&&P,A=a.hideBackdrop,Z=void 0!==A&&A,I=a.keepMounted,M=void 0!==I&&I,T=a.manager,D=void 0===T?he:T,j=a.onBackdropClick,$=a.onClose,N=a.onEscapeKeyDown,F=a.onRendered,L=a.open,H=(0,o.Z)(a,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),_=i.useState(!0),z=_[0],W=_[1],B=i.useRef({}),V=i.useRef(null),G=i.useRef(null),K=(0,p.Z)(G,t),ne=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(a),re=function(){return q(V.current)},oe=function(){return B.current.modalRef=G.current,B.current.mountNode=V.current,B.current},ie=function(){D.mount(oe(),{disableScrollLock:O}),G.current.scrollTop=0},se=(0,ee.Z)((function(){var e=function(e){return e="function"==typeof e?e():e,U.findDOMNode(e)}(h)||re().body;D.add(oe(),e),G.current&&ie()})),le=i.useCallback((function(){return D.isTopModal(oe())}),[D]),ce=(0,ee.Z)((function(e){V.current=e,e&&(F&&F(),L&&le()?ie():ae(G.current,!0))})),ue=i.useCallback((function(){D.remove(oe())}),[D]);if(i.useEffect((function(){return function(){ue()}}),[ue]),i.useEffect((function(){L?se():ne&&f||ue()}),[L,ue,ne,f,se]),!M&&!L&&(!ne||z))return null;var fe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:te.Z}),ge={};return void 0===u.props.tabIndex&&(ge.tabIndex=u.props.tabIndex||"-1"),ne&&(ge.onEnter=(0,Y.Z)((function(){W(!1)}),u.props.onEnter),ge.onExited=(0,Y.Z)((function(){W(!0),f&&ue()}),u.props.onExited)),i.createElement(Q.Z,{ref:ce,container:h,disablePortal:R},i.createElement("div",(0,r.Z)({ref:K,onKeyDown:function(e){"Escape"===e.key&&le()&&(N&&N(e),C||(e.stopPropagation(),$&&$(e,"escapeKeyDown")))},role:"presentation"},H,{style:(0,r.Z)({},fe.root,!L&&z?fe.hidden:{},H.style)}),Z?null:i.createElement(l,(0,r.Z)({open:L,onClick:function(e){e.target===e.currentTarget&&(j&&j(e),!b&&$&&$(e,"backdropClick"))}},c)),i.createElement(de,{disableEnforceFocus:w,disableAutoFocus:m,disableRestoreFocus:k,getDoc:re,isEnabled:le,open:L},i.cloneElement(u,ge))))}));var me=n(8052);function ve(e,t){var n=e.timeout,r=e.style,o=void 0===r?{}:r;return{duration:o.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:o.transitionDelay}}function be(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var ye={entering:{opacity:1,transform:be(1)},entered:{opacity:1,transform:"none"}},we=i.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,s=void 0!==a&&a,l=e.in,c=e.onEnter,u=e.onEntered,d=e.onEntering,f=e.onExit,h=e.onExited,g=e.onExiting,m=e.style,v=e.timeout,b=void 0===v?"auto":v,y=e.TransitionComponent,w=void 0===y?me.ZP:y,x=(0,o.Z)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),C=i.useRef(),S=i.useRef(),R=(0,A.Z)(),E=R.unstable_strictMode&&!s,k=i.useRef(null),P=(0,p.Z)(n.ref,t),O=(0,p.Z)(E?k:void 0,P),Z=function(e){return function(t,n){if(e){var r=E?[k.current,t]:[t,n],o=(0,V.Z)(r,2),i=o[0],a=o[1];void 0===a?e(i):e(i,a)}}},I=Z(d),M=Z((function(e,t){!function(e){e.scrollTop}(e);var n,r=ve({style:m,timeout:b},{mode:"enter"}),o=r.duration,i=r.delay;"auto"===b?(n=R.transitions.getAutoHeightDuration(e.clientHeight),S.current=n):n=o,e.style.transition=[R.transitions.create("opacity",{duration:n,delay:i}),R.transitions.create("transform",{duration:.666*n,delay:i})].join(","),c&&c(e,t)})),T=Z(u),D=Z(g),j=Z((function(e){var t,n=ve({style:m,timeout:b},{mode:"exit"}),r=n.duration,o=n.delay;"auto"===b?(t=R.transitions.getAutoHeightDuration(e.clientHeight),S.current=t):t=r,e.style.transition=[R.transitions.create("opacity",{duration:t,delay:o}),R.transitions.create("transform",{duration:.666*t,delay:o||.333*t})].join(","),e.style.opacity="0",e.style.transform=be(.75),f&&f(e)})),$=Z(h);return i.useEffect((function(){return function(){clearTimeout(C.current)}}),[]),i.createElement(w,(0,r.Z)({appear:!0,in:l,nodeRef:E?k:void 0,onEnter:M,onEntered:T,onEntering:I,onExit:j,onExited:$,onExiting:D,addEndListener:function(e,t){var n=E?e:t;"auto"===b&&(C.current=setTimeout(n,S.current||0))},timeout:"auto"===b?null:b},x),(function(e,t){return i.cloneElement(n,(0,r.Z)({style:(0,r.Z)({opacity:0,transform:be(.75),visibility:"exited"!==e||l?void 0:"hidden"},ye[e],m,n.props.style),ref:O},t))}))}));we.muiSupportAuto=!0;const xe=we;var Ce=n(9895);function Se(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Re(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Ee(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function ke(e){return"function"==typeof e?e():e}var Pe=i.forwardRef((function(e,t){var n=e.action,s=e.anchorEl,l=e.anchorOrigin,c=void 0===l?{vertical:"top",horizontal:"left"}:l,u=e.anchorPosition,d=e.anchorReference,f=void 0===d?"anchorEl":d,p=e.children,g=e.classes,m=e.className,v=e.container,b=e.elevation,y=void 0===b?8:b,w=e.getContentAnchorEl,x=e.marginThreshold,C=void 0===x?16:x,S=e.onEnter,R=e.onEntered,E=e.onEntering,k=e.onExit,P=e.onExited,O=e.onExiting,A=e.open,Z=e.PaperProps,I=void 0===Z?{}:Z,M=e.transformOrigin,T=void 0===M?{vertical:"top",horizontal:"left"}:M,D=e.TransitionComponent,j=void 0===D?xe:D,$=e.transitionDuration,N=void 0===$?"auto":$,F=e.TransitionProps,L=void 0===F?{}:F,H=(0,o.Z)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),_=i.useRef(),z=i.useCallback((function(e){if("anchorPosition"===f)return u;var t=ke(s),n=(t&&1===t.nodeType?t:q(_.current).body).getBoundingClientRect(),r=0===e?c.vertical:"center";return{top:n.top+Se(n,r),left:n.left+Re(n,c.horizontal)}}),[s,c.horizontal,c.vertical,u,f]),W=i.useCallback((function(e){var t=0;if(w&&"anchorEl"===f){var n=w(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}}return t}),[c.vertical,f,w]),B=i.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:Se(e,T.vertical)+t,horizontal:Re(e,T.horizontal)}}),[T.horizontal,T.vertical]),V=i.useCallback((function(e){var t=W(e),n={width:e.offsetWidth,height:e.offsetHeight},r=B(n,t);if("none"===f)return{top:null,left:null,transformOrigin:Ee(r)};var o=z(t),i=o.top-r.vertical,a=o.left-r.horizontal,l=i+n.height,c=a+n.width,u=K(ke(s)),d=u.innerHeight-C,p=u.innerWidth-C;if(i<C){var h=i-C;i-=h,r.vertical+=h}else if(l>d){var g=l-d;i-=g,r.vertical+=g}if(a<C){var m=a-C;a-=m,r.horizontal+=m}else if(c>p){var v=c-p;a-=v,r.horizontal+=v}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:Ee(r)}}),[s,f,z,W,B,C]),G=i.useCallback((function(){var e=_.current;if(e){var t=V(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[V]),J=i.useCallback((function(e){_.current=U.findDOMNode(e)}),[]);i.useEffect((function(){A&&G()})),i.useImperativeHandle(n,(function(){return A?{updatePosition:function(){G()}}:null}),[A,G]),i.useEffect((function(){if(A){var e=h((function(){G()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[A,G]);var X=N;"auto"!==N||j.muiSupportAuto||(X=void 0);var Q=v||(s?q(ke(s)).body:void 0);return i.createElement(ge,(0,r.Z)({container:Q,open:A,ref:t,BackdropProps:{invisible:!0},className:(0,a.Z)(g.root,m)},H),i.createElement(j,(0,r.Z)({appear:!0,in:A,onEnter:S,onEntered:R,onExit:k,onExited:P,onExiting:O,timeout:X},L,{onEntering:(0,Y.Z)((function(e,t){E&&E(e,t),G()}),L.onEntering)}),i.createElement(Ce.Z,(0,r.Z)({elevation:y,ref:J},I,{className:(0,a.Z)(g.paper,I.className)}),p)))}));const Oe=(0,d.Z)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(Pe),Ae=i.createContext({});var Ze=i.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"ul":c,d=e.dense,f=void 0!==d&&d,p=e.disablePadding,h=void 0!==p&&p,g=e.subheader,m=(0,o.Z)(e,["children","classes","className","component","dense","disablePadding","subheader"]),v=i.useMemo((function(){return{dense:f}}),[f]);return i.createElement(Ae.Provider,{value:v},i.createElement(u,(0,r.Z)({className:(0,a.Z)(s.root,l,f&&s.dense,!h&&s.padding,g&&s.subheader),ref:t},m),g,n))}));const Ie=(0,d.Z)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(Ze);function Me(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Te(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function De(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function je(e,t,n,r,o,i){for(var a=!1,s=o(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&De(s,i)&&!l)return void s.focus();s=o(e,s,n)}}var $e="undefined"==typeof window?i.useEffect:i.useLayoutEffect;const Ne=i.forwardRef((function(e,t){var n=e.actions,a=e.autoFocus,s=void 0!==a&&a,l=e.autoFocusItem,c=void 0!==l&&l,u=e.children,d=e.className,f=e.disabledItemsFocusable,h=void 0!==f&&f,g=e.disableListWrap,m=void 0!==g&&g,v=e.onKeyDown,b=e.variant,y=void 0===b?"selectedMenu":b,w=(0,o.Z)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),x=i.useRef(null),C=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});$e((function(){s&&x.current.focus()}),[s]),i.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var r="".concat(ie(),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,x.current.style.width="calc(100% + ".concat(r,")")}return x.current}}}),[]);var S=i.useCallback((function(e){x.current=U.findDOMNode(e)}),[]),R=(0,p.Z)(S,t),E=-1;i.Children.forEach(u,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===y&&e.props.selected||-1===E)&&(E=t))}));var k=i.Children.map(u,(function(e,t){if(t===E){var n={};return c&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===y&&(n.tabIndex=0),i.cloneElement(e,n)}return e}));return i.createElement(Ie,(0,r.Z)({role:"menu",ref:R,className:d,onKeyDown:function(e){var t=x.current,n=e.key,r=q(t).activeElement;if("ArrowDown"===n)e.preventDefault(),je(t,r,m,h,Me);else if("ArrowUp"===n)e.preventDefault(),je(t,r,m,h,Te);else if("Home"===n)e.preventDefault(),je(t,null,m,h,Me);else if("End"===n)e.preventDefault(),je(t,null,m,h,Te);else if(1===n.length){var o=C.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);var s=r&&!o.repeating&&De(r,o);o.previousKeyMatched&&(s||je(t,r,!1,h,Me,o))?e.preventDefault():o.previousKeyMatched=!1}v&&v(e)},tabIndex:s?0:-1},w),k)}));var Fe=n(4236),Le={vertical:"top",horizontal:"right"},He={vertical:"top",horizontal:"left"},_e=i.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,l=e.children,c=e.classes,u=e.disableAutoFocusItem,d=void 0!==u&&u,f=e.MenuListProps,p=void 0===f?{}:f,h=e.onClose,g=e.onEntering,m=e.open,v=e.PaperProps,b=void 0===v?{}:v,y=e.PopoverClasses,w=e.transitionDuration,x=void 0===w?"auto":w,C=e.TransitionProps,S=(C=void 0===C?{}:C).onEntering,R=(0,o.Z)(C,["onEntering"]),E=e.variant,k=void 0===E?"selectedMenu":E,P=(0,o.Z)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),O=(0,A.Z)(),Z=s&&!d&&m,I=i.useRef(null),M=i.useRef(null),T=-1;i.Children.map(l,(function(e,t){i.isValidElement(e)&&(e.props.disabled||("menu"!==k&&e.props.selected||-1===T)&&(T=t))}));var D=i.Children.map(l,(function(e,t){return t===T?i.cloneElement(e,{ref:function(t){M.current=U.findDOMNode(t),(0,Fe.Z)(e.ref,t)}}):e}));return i.createElement(Oe,(0,r.Z)({getContentAnchorEl:function(){return M.current},classes:y,onClose:h,TransitionProps:(0,r.Z)({onEntering:function(e,t){I.current&&I.current.adjustStyleForScrollbar(e,O),g&&g(e,t),S&&S(e,t)}},R),anchorOrigin:"rtl"===O.direction?Le:He,transformOrigin:"rtl"===O.direction?Le:He,PaperProps:(0,r.Z)({},b,{classes:(0,r.Z)({},b.classes,{root:c.paper})}),open:m,ref:t,transitionDuration:x},P),i.createElement(Ne,(0,r.Z)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),h&&h(e,"tabKeyDown"))},actions:I,autoFocus:s&&(-1===T||d),autoFocusItem:Z,variant:k},p,{className:(0,a.Z)(c.list,p.className)}),D))}));const ze=(0,d.Z)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(_e);var We=n(2775);function Be(e,t){return"object"===(0,G.Z)(t)&&null!==t?e===t:String(e)===String(t)}const Ve=i.forwardRef((function(e,t){var n=e["aria-label"],l=e.autoFocus,c=e.autoWidth,u=e.children,d=e.classes,h=e.className,g=e.defaultValue,m=e.disabled,v=e.displayEmpty,b=e.IconComponent,y=e.inputRef,x=e.labelId,C=e.MenuProps,S=void 0===C?{}:C,R=e.multiple,E=e.name,k=e.onBlur,P=e.onChange,O=e.onClose,A=e.onFocus,Z=e.onOpen,I=e.open,M=e.readOnly,T=e.renderValue,D=e.SelectDisplayProps,j=void 0===D?{}:D,$=e.tabIndex,N=(e.type,e.value),F=e.variant,L=void 0===F?"standard":F,H=(0,o.Z)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),_=(0,We.Z)({controlled:N,default:g,name:"Select"}),z=(0,V.Z)(_,2),W=z[0],B=z[1],G=i.useRef(null),U=i.useState(null),K=U[0],Y=U[1],J=i.useRef(null!=I).current,X=i.useState(),Q=X[0],ee=X[1],te=i.useState(!1),ne=te[0],re=te[1],oe=(0,p.Z)(t,y);i.useImperativeHandle(oe,(function(){return{focus:function(){K.focus()},node:G.current,value:W}}),[K,W]),i.useEffect((function(){l&&K&&K.focus()}),[l,K]),i.useEffect((function(){if(K){var e=q(K).getElementById(x);if(e){var t=function(){getSelection().isCollapsed&&K.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[x,K]);var ie,ae,se=function(e,t){e?Z&&Z(t):O&&O(t),J||(ee(c?null:K.clientWidth),re(e))},le=i.Children.toArray(u),ce=function(e){return function(t){var n;if(R||se(!1,t),R){n=Array.isArray(W)?W.slice():[];var r=W.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),W!==n&&(B(n),P&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:E}}),P(t,e)))}},ue=null!==K&&(J?I:ne);delete H["aria-invalid"];var de=[],fe=!1;(w({value:W})||v)&&(T?ie=T(W):fe=!0);var pe=le.map((function(e){if(!i.isValidElement(e))return null;var t;if(R){if(!Array.isArray(W))throw new Error((0,s.Z)(2));(t=W.some((function(t){return Be(t,e.props.value)})))&&fe&&de.push(e.props.children)}else(t=Be(W,e.props.value))&&fe&&(ae=e.props.children);return i.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ce(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));fe&&(ie=R?de.join(", "):ae);var he,ge=Q;!c&&J&&K&&(ge=K.clientWidth),he=void 0!==$?$:m?null:0;var me=j.id||(E?"mui-component-select-".concat(E):void 0);return i.createElement(i.Fragment,null,i.createElement("div",(0,r.Z)({className:(0,a.Z)(d.root,d.select,d.selectMenu,d[L],h,m&&d.disabled),ref:Y,tabIndex:he,role:"button","aria-disabled":m?"true":void 0,"aria-expanded":ue?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[x,me].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){M||-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),se(!0,e))},onMouseDown:m||M?null:function(e){0===e.button&&(e.preventDefault(),K.focus(),se(!0,e))},onBlur:function(e){!ue&&k&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:W,name:E}}),k(e))},onFocus:A},j,{id:me}),function(e){return null==e||"string"==typeof e&&!e.trim()}(ie)?i.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ie),i.createElement("input",(0,r.Z)({value:Array.isArray(W)?W.join(","):W,name:E,ref:G,"aria-hidden":!0,onChange:function(e){var t=le.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=le[t];B(n.props.value),P&&P(e,n)}},tabIndex:-1,className:d.nativeInput,autoFocus:l},H)),i.createElement(b,{className:(0,a.Z)(d.icon,d["icon".concat((0,f.Z)(L))],ue&&d.iconOpen,m&&d.disabled)}),i.createElement(ze,(0,r.Z)({id:"menu-".concat(E||""),anchorEl:K,open:ue,onClose:function(e){se(!1,e)}},S,{MenuListProps:(0,r.Z)({"aria-labelledby":x,role:"listbox",disableListWrap:!0},S.MenuListProps),PaperProps:(0,r.Z)({},S.PaperProps,{style:(0,r.Z)({minWidth:ge},null!=S.PaperProps?S.PaperProps.style:null)})}),pe))})),Ge=(0,n(5209).Z)(i.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qe=i.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.disabled,c=e.IconComponent,u=e.inputRef,d=e.variant,p=void 0===d?"standard":d,h=(0,o.Z)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return i.createElement(i.Fragment,null,i.createElement("select",(0,r.Z)({className:(0,a.Z)(n.root,n.select,n[p],s,l&&n.disabled),disabled:l,ref:u||t},h)),e.multiple?null:i.createElement(c,{className:(0,a.Z)(n.icon,n["icon".concat((0,f.Z)(p))],l&&n.disabled)}))}));var Ue=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Ke=i.createElement(E,null),Ye=i.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,c=void 0===s?Ge:s,u=e.input,d=void 0===u?Ke:u,f=e.inputProps,p=(e.variant,(0,o.Z)(e,["children","classes","IconComponent","input","inputProps","variant"])),h=l({props:e,muiFormControl:D(),states:["variant"]});return i.cloneElement(d,(0,r.Z)({inputComponent:qe,inputProps:(0,r.Z)({children:n,classes:a,IconComponent:c,variant:h.variant,type:void 0},f,d?d.props.inputProps:{}),ref:t},p))}));Ye.muiName="Select",(0,d.Z)(Ue,{name:"MuiNativeSelect"})(Ye);var Je=Ue,Xe=i.createElement(E,null),Qe=i.createElement(P,null),et=i.forwardRef((function e(t,n){var a=t.autoWidth,s=void 0!==a&&a,c=t.children,u=t.classes,d=t.displayEmpty,f=void 0!==d&&d,p=t.IconComponent,h=void 0===p?Ge:p,g=t.id,m=t.input,v=t.inputProps,b=t.label,y=t.labelId,w=t.labelWidth,x=void 0===w?0:w,C=t.MenuProps,S=t.multiple,R=void 0!==S&&S,E=t.native,k=void 0!==E&&E,P=t.onClose,O=t.onOpen,A=t.open,Z=t.renderValue,I=t.SelectDisplayProps,M=t.variant,j=void 0===M?"standard":M,$=(0,o.Z)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),N=k?qe:Ve,F=l({props:t,muiFormControl:D(),states:["variant"]}).variant||j,L=m||{standard:Xe,outlined:i.createElement(T,{label:b,labelWidth:x}),filled:Qe}[F];return i.cloneElement(L,(0,r.Z)({inputComponent:N,inputProps:(0,r.Z)({children:c,IconComponent:h,variant:F,type:void 0,multiple:R},k?{id:g}:{autoWidth:s,displayEmpty:f,labelId:y,MenuProps:C,onClose:P,onOpen:O,open:A,renderValue:Z,SelectDisplayProps:(0,r.Z)({id:g},I)},v,{classes:v?(0,B.Z)({baseClasses:u,newClasses:v.classes,Component:e}):u},m?m.props.inputProps:{}),ref:n},$))}));et.muiName="Select";const tt=(0,d.Z)(Je,{name:"MuiSelect"})(et);var nt={standard:E,filled:P,outlined:T},rt=i.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,l=void 0!==s&&s,c=e.children,u=e.classes,d=e.className,f=e.color,p=void 0===f?"primary":f,h=e.defaultValue,g=e.disabled,m=void 0!==g&&g,v=e.error,b=void 0!==v&&v,y=e.FormHelperTextProps,w=e.fullWidth,x=void 0!==w&&w,C=e.helperText,S=e.hiddenLabel,R=e.id,E=e.InputLabelProps,k=e.inputProps,P=e.InputProps,O=e.inputRef,A=e.label,Z=e.multiline,I=void 0!==Z&&Z,M=e.name,T=e.onBlur,D=e.onChange,j=e.onFocus,$=e.placeholder,N=e.required,L=void 0!==N&&N,H=e.rows,z=e.rowsMax,B=e.maxRows,V=e.minRows,G=e.select,q=void 0!==G&&G,U=e.SelectProps,K=e.type,Y=e.value,J=e.variant,X=void 0===J?"standard":J,Q=(0,o.Z)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","maxRows","minRows","select","SelectProps","type","value","variant"]),ee={};if("outlined"===X&&(E&&void 0!==E.shrink&&(ee.notched=E.shrink),A)){var te,ne=null!==(te=null==E?void 0:E.required)&&void 0!==te?te:L;ee.label=i.createElement(i.Fragment,null,A,ne&&" *")}q&&(U&&U.native||(ee.id=void 0),ee["aria-describedby"]=void 0);var re=C&&R?"".concat(R,"-helper-text"):void 0,oe=A&&R?"".concat(R,"-label"):void 0,ie=nt[X],ae=i.createElement(ie,(0,r.Z)({"aria-describedby":re,autoComplete:n,autoFocus:l,defaultValue:h,fullWidth:x,multiline:I,name:M,rows:H,rowsMax:z,maxRows:B,minRows:V,type:K,value:Y,id:R,inputRef:O,onBlur:T,onChange:D,onFocus:j,placeholder:$,inputProps:k},ee,P));return i.createElement(_,(0,r.Z)({className:(0,a.Z)(u.root,d),disabled:m,error:b,fullWidth:x,hiddenLabel:S,ref:t,required:L,color:p,variant:X},Q),A&&i.createElement(F,(0,r.Z)({htmlFor:R,id:oe},E),A),q?i.createElement(tt,(0,r.Z)({"aria-describedby":re,id:R,labelId:oe,value:Y,input:ae},U),c):ae,C&&i.createElement(W,(0,r.Z)({id:re},y),C))}));const ot=(0,d.Z)({root:{}},{name:"MuiTextField"})(rt)},9693:(e,t,n)=>{"use strict";n.d(t,{$n:()=>m,Fq:()=>h,H3:()=>d,U1:()=>p,_4:()=>f,_j:()=>g,mi:()=>u,oo:()=>i,tB:()=>l,ve:()=>s,vq:()=>a,wy:()=>c});var r=n(288);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){if(0===e.indexOf("#"))return e;var t=l(e).values;return"#".concat(t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})).join(""))}function s(e){var t=(e=l(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",u.push(t[3])),c({type:s,values:u})}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(i(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error((0,r.Z)(3,e));var o=e.substring(t+1,e.length-1).split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)}))}}function c(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function u(e,t){var n=d(e),r=d(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function d(e){var t="hsl"===(e=l(e)).type?l(s(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return d(e)>.5?g(e,t):m(e,t)}function p(e,t){return h(e,t)}function h(e,t){return e=l(e),t=o(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,c(e)}function g(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return c(e)}function m(e,t){if(e=l(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return c(e)}},2920:(e,t,n)=>{"use strict";n.d(t,{A:()=>q,Z:()=>U});var r=n(5987),o=n(5953),i=n(7462),a=["xs","sm","md","lg","xl"],s=n(4942);function l(e,t,n){var r;return(0,i.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,i.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,s.Z)({},e.up("sm"),(0,i.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,s.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,s.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}var c=n(288);const u={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},f={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};var b=n(9693),y={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,b.$n)(e.main,o):"dark"===t&&(e.dark=(0,b._j)(e.main,i)))}function C(e){return Math.round(1e5*e)/1e5}function S(e){return C(e)}var R={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function k(e,t){var n="function"==typeof t?t(e):t,a=n.fontFamily,s=void 0===a?E:a,l=n.fontSize,c=void 0===l?14:l,u=n.fontWeightLight,d=void 0===u?300:u,f=n.fontWeightRegular,p=void 0===f?400:f,h=n.fontWeightMedium,g=void 0===h?500:h,m=n.fontWeightBold,v=void 0===m?700:m,b=n.htmlFontSize,y=void 0===b?16:b,w=n.allVariants,x=n.pxToRem,k=(0,r.Z)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),P=c/14,O=x||function(e){return"".concat(e/y*P,"rem")},A=function(e,t,n,r,o){return(0,i.Z)({fontFamily:s,fontWeight:e,fontSize:O(t),lineHeight:n},s===E?{letterSpacing:"".concat(C(r/t),"em")}:{},o,w)},Z={h1:A(d,96,1.167,-1.5),h2:A(d,60,1.2,-.5),h3:A(p,48,1.167,0),h4:A(p,34,1.235,.25),h5:A(p,24,1.334,0),h6:A(g,20,1.6,.15),subtitle1:A(p,16,1.75,.15),subtitle2:A(g,14,1.57,.1),body1:A(p,16,1.5,.15),body2:A(p,14,1.43,.15),button:A(g,14,1.75,.4,R),caption:A(p,12,1.66,.4),overline:A(p,12,2.66,1,R)};return(0,o.Z)((0,i.Z)({htmlFontSize:y,pxToRem:O,round:S,fontFamily:s,fontSize:c,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:g,fontWeightBold:v},Z),k,{clone:!1})}function P(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const O=["none",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4};var Z=n(1037),I=n(1002),M={xs:0,sm:600,md:960,lg:1280,xl:1920},T={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(M[e],"px)")}};const D=function(e,t){return t?(0,o.Z)(e,t,{clone:!1}):e};var j,$,N={m:"margin",p:"padding"},F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},L={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},H=(j=function(e){if(e.length>2){if(!L[e])return[e];e=L[e]}var t=e.split(""),n=(0,Z.Z)(t,2),r=n[0],o=n[1],i=N[r],a=F[o]||"";return Array.isArray(a)?a.map((function(e){return i+e})):[i+a]},$={},function(e){return void 0===$[e]&&($[e]=j(e)),$[e]}),_=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function z(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function W(e){var t=z(e.theme);return Object.keys(e).map((function(n){if(-1===_.indexOf(n))return null;var r=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}(t,n),e}),{})}}(H(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||T;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,I.Z)(t)){var o=e.theme.breakpoints||T;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(D,{})}W.propTypes={},W.filterProps=_;var B=n(3291),V=n(2781);function G(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,s=e.mixins,C=void 0===s?{}:s,S=e.palette,R=void 0===S?{}:S,E=e.spacing,P=e.typography,Z=void 0===P?{}:P,I=(0,r.Z)(e,["breakpoints","mixins","palette","spacing","typography"]),M=function(e){var t=e.primary,n=void 0===t?{light:f[300],main:f[500],dark:f[700]}:t,a=e.secondary,s=void 0===a?{light:p.A200,main:p.A400,dark:p.A700}:a,l=e.error,C=void 0===l?{light:h[300],main:h[500],dark:h[700]}:l,S=e.warning,R=void 0===S?{light:g[300],main:g[500],dark:g[700]}:S,E=e.info,k=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,P=e.success,O=void 0===P?{light:v[300],main:v[500],dark:v[700]}:P,A=e.type,Z=void 0===A?"light":A,I=e.contrastThreshold,M=void 0===I?3:I,T=e.tonalOffset,D=void 0===T?.2:T,j=(0,r.Z)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function $(e){return(0,b.mi)(e,w.text.primary)>=M?w.text.primary:y.text.primary}var N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,i.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error((0,c.Z)(4,t));if("string"!=typeof e.main)throw new Error((0,c.Z)(5,JSON.stringify(e.main)));return x(e,"light",n,D),x(e,"dark",r,D),e.contrastText||(e.contrastText=$(e.main)),e},F={dark:w,light:y};return(0,o.Z)((0,i.Z)({common:u,type:Z,primary:N(n),secondary:N(s,"A400","A200","A700"),error:N(C),warning:N(R),info:N(k),success:N(O),grey:d,contrastThreshold:M,getContrastText:$,augmentColor:N,tonalOffset:D},F[Z]),j)}(R),T=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,o=e.unit,s=void 0===o?"px":o,l=e.step,c=void 0===l?5:l,u=(0,r.Z)(e,["values","unit","step"]);function d(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function f(e,t){var r=a.indexOf(t);return r===a.length-1?d(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[a[r+1]]?n[a[r+1]]:t)-c/100).concat(s,")")}return(0,i.Z)({keys:a,values:n,up:d,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:f,only:function(e){return f(e,e)},width:function(e){return n[e]}},u)}(n),D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=z({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(E),j=(0,o.Z)({breakpoints:T,direction:"ltr",mixins:l(T,D,C),overrides:{},palette:M,props:{},shadows:O,typography:k(M,Z),spacing:D,shape:A,transitions:B.ZP,zIndex:V.Z},I),$=arguments.length,N=new Array($>1?$-1:0),F=1;F<$;F++)N[F-1]=arguments[F];return N.reduce((function(e,t){return(0,o.Z)(e,t)}),j)}function q(){return G.apply(void 0,arguments)}const U=G},9700:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(2920).Z)()},3291:(e,t,n)=>{"use strict";n.d(t,{Ui:()=>o,ZP:()=>s,x9:()=>i});var r=n(5987),o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},i={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(e){return"".concat(Math.round(e),"ms")}const s={easing:o,duration:i,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?i.standard:n,l=t.easing,c=void 0===l?o.easeInOut:l,u=t.delay,d=void 0===u?0:u;return(0,r.Z)(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:a(s)," ").concat(c," ").concat("string"==typeof d?d:a(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},8920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(159),o=(n(9196),n(9700));function i(){return(0,r.Z)()||o.Z}},4670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(7462),o=n(5987),i=n(9196),a=n.n(i),s=n(8679),l=n.n(s),c=n(3914),u=n(3869),d=n(159);var f=n(9700);const p=function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var i=t.defaultTheme,s=t.withTheme,f=void 0!==s&&s,p=t.name,h=(0,o.Z)(t,["defaultTheme","withTheme","name"]),g=p,m=(0,c.Z)(e,(0,r.Z)({defaultTheme:i,Component:n,name:p||n.displayName,classNamePrefix:g},h)),v=a().forwardRef((function(e,t){e.classes;var s,l=e.innerRef,c=(0,o.Z)(e,["classes","innerRef"]),h=m((0,r.Z)({},n.defaultProps,e)),g=c;return("string"==typeof p||f)&&(s=(0,d.Z)()||i,p&&(g=(0,u.Z)({theme:s,name:p,props:c})),f&&!g.theme&&(g.theme=s)),a().createElement(n,(0,r.Z)({ref:l||t,classes:h},g))}));return l()(v,n),v}}(e,(0,r.Z)({defaultTheme:f.Z},t))}},2781:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},3871:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(288);function o(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},2568:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,{Z:()=>r})},5209:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7462),o=n(9196),i=n.n(o),a=n(5987),s=n(6010),l=n(4670),c=n(3871),u=o.forwardRef((function(e,t){var n=e.children,i=e.classes,l=e.className,u=e.color,d=void 0===u?"inherit":u,f=e.component,p=void 0===f?"svg":f,h=e.fontSize,g=void 0===h?"medium":h,m=e.htmlColor,v=e.titleAccess,b=e.viewBox,y=void 0===b?"0 0 24 24":b,w=(0,a.Z)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return o.createElement(p,(0,r.Z)({className:(0,s.Z)(i.root,l,"inherit"!==d&&i["color".concat((0,c.Z)(d))],"default"!==g&&"medium"!==g&&i["fontSize".concat((0,c.Z)(g))]),focusable:"false",viewBox:y,color:m,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:t},w),n,v?o.createElement("title",null,v):null)}));u.muiName="SvgIcon";const d=(0,l.Z)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(u);function f(e,t){var n=function(t,n){return i().createElement(d,(0,r.Z)({ref:n},t),e)};return n.muiName=d.muiName,i().memo(i().forwardRef(n))}},4236:(e,t,n)=>{"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},2775:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9196);function o(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),i=r.useState(n),a=i[0],s=i[1];return[o?t:a,r.useCallback((function(e){o||s(e)}),[])]}},5192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9196),o="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},7294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9196),o=n(4236);function i(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){(0,o.Z)(e,n),(0,o.Z)(t,n)}}),[e,t])}},341:(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")}},5122:(e,t,n)=>{"use strict";n(341)},6975:(e,t,n)=>{"use strict";n.d(t,{NU:()=>p,ZP:()=>h});var r,o=n(7462),i=n(5987),a=n(9196),s=n.n(a),l=n(5034),c=n(4013),u=n(246),d=(0,c.Ue)((0,u.Z)()),f={disableGeneration:!1,generateClassName:(0,l.Z)(),jss:d,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},p=s().createContext(f);function h(e){var t=e.children,n=e.injectFirst,a=void 0!==n&&n,l=e.disableGeneration,d=void 0!==l&&l,f=(0,i.Z)(e,["children","injectFirst","disableGeneration"]),h=s().useContext(p),g=(0,o.Z)({},h,{disableGeneration:d},f);if(!g.jss.options.insertionPoint&&a&&"undefined"!=typeof window){if(!r){var m=document.head;r=document.createComment("mui-inject-first"),m.insertBefore(r,m.firstChild)}g.jss=(0,c.Ue)({plugins:(0,u.Z)().plugins,insertionPoint:r})}return s().createElement(p.Provider,{value:g},t)}},7076:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"},5034:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7076),o=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,i=e.productionPrefix,a=void 0===i?"jss":i,s=e.seed,l=void 0===s?"":s,c=""===l?"":"".concat(l,"-"),u=0,d=function(){return u+=1};return function(e,t){var i=t.options.name;if(i&&0===i.indexOf("Mui")&&!t.options.link&&!n){if(-1!==o.indexOf(e.key))return"Mui-".concat(e.key);var s="".concat(c).concat(i,"-").concat(e.key);return t.options.theme[r.Z]&&""===l?"".concat(s,"-").concat(d()):s}return"".concat(c).concat(a).concat(d())}}},3869:(e,t,n)=>{"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}n.d(t,{Z:()=>r})},246:(e,t,n)=>{"use strict";n.d(t,{Z:()=>De});var r=n(4013),o=Date.now(),i="fnValues"+o,a="fnStyle"+ ++o;const s=function(){return{onCreateRule:function(e,t,n){if("function"!=typeof t)return null;var o=(0,r.JH)(e,{},n);return o[a]=t,o},onProcessStyle:function(e,t){if(i in t||a in t)return e;var n={};for(var r in e){var o=e[r];"function"==typeof o&&(delete e[r],n[r]=o)}return t[i]=n,e},onUpdate:function(e,t,n,r){var o=t,s=o[a];s&&(o.style=s(e)||{});var l=o[i];if(l)for(var c in l)o.prop(c,l[c](e),r)}}};var l=n(7462),c="@global",u=function(){function e(e,t,n){for(var o in this.type="global",this.at=c,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new r.RB((0,l.Z)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),d=function(){function e(e,t,n){this.type="global",this.at=c,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,l.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),f=/\s*,\s*/g;function p(e,t){for(var n=e.split(f),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}const h=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===c)return new u(e,t,n);if("@"===e[0]&&"@global "===e.substr(0,8))return new d(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[c]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,l.Z)({},n,{selector:p(i,e.selector)}));delete r[c]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===c){var i=p(o.substr(7),e.selector);t.addRule(i,r[o],(0,l.Z)({},n,{selector:i})),delete r[o]}}(e,t))}}};var g=/\s*,\s*/g,m=/&/g,v=/\$([\w-]+)/g;const b=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(g),r=e.split(g),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(m,a):a+" "+l}return o}function n(e,t,n){if(n)return(0,l.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,l.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,c=o,u=c.options.parent;for(var d in r){var f=-1!==d.indexOf("&"),p="@"===d[0];if(f||p){if(a=n(c,u,a),f){var h=t(d,c.selector);s||(s=e(u,i)),h=h.replace(v,s);var g=c.key+"-"+d;"replaceRule"in u?u.replaceRule(g,r[d],(0,l.Z)({},a,{selector:h})):u.addRule(g,r[d],(0,l.Z)({},a,{selector:h}))}else p&&u.addRule(d,{},a).addRule(c.key,r[d],{selector:c.selector});delete r[d]}}return r}}};var y=/[A-Z]/g,w=/^ms-/,x={};function C(e){return"-"+e.toLowerCase()}const S=function(e){if(x.hasOwnProperty(e))return x[e];var t=e.replace(y,C);return x[e]=w.test(t)?"-"+t:t};function R(e){var t={};for(var n in e)t[0===n.indexOf("--")?n:S(n)]=e[n];return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(R):t.fallbacks=R(e.fallbacks)),t}const E=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=R(e[t]);return e}return R(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=S(t);return t===r?e:(n.prop(r,e),null)}}};var k=r.HZ&&CSS?CSS.px:"px",P=r.HZ&&CSS?CSS.ms:"ms",O=r.HZ&&CSS?CSS.percent:"%";function A(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Z=A({"animation-delay":P,"animation-duration":P,"background-position":k,"background-position-x":k,"background-position-y":k,"background-size":k,border:k,"border-bottom":k,"border-bottom-left-radius":k,"border-bottom-right-radius":k,"border-bottom-width":k,"border-left":k,"border-left-width":k,"border-radius":k,"border-right":k,"border-right-width":k,"border-top":k,"border-top-left-radius":k,"border-top-right-radius":k,"border-top-width":k,"border-width":k,"border-block":k,"border-block-end":k,"border-block-end-width":k,"border-block-start":k,"border-block-start-width":k,"border-block-width":k,"border-inline":k,"border-inline-end":k,"border-inline-end-width":k,"border-inline-start":k,"border-inline-start-width":k,"border-inline-width":k,"border-start-start-radius":k,"border-start-end-radius":k,"border-end-start-radius":k,"border-end-end-radius":k,margin:k,"margin-bottom":k,"margin-left":k,"margin-right":k,"margin-top":k,"margin-block":k,"margin-block-end":k,"margin-block-start":k,"margin-inline":k,"margin-inline-end":k,"margin-inline-start":k,padding:k,"padding-bottom":k,"padding-left":k,"padding-right":k,"padding-top":k,"padding-block":k,"padding-block-end":k,"padding-block-start":k,"padding-inline":k,"padding-inline-end":k,"padding-inline-start":k,"mask-position-x":k,"mask-position-y":k,"mask-size":k,height:k,width:k,"min-height":k,"max-height":k,"min-width":k,"max-width":k,bottom:k,left:k,top:k,right:k,inset:k,"inset-block":k,"inset-block-end":k,"inset-block-start":k,"inset-inline":k,"inset-inline-end":k,"inset-inline-start":k,"box-shadow":k,"text-shadow":k,"column-gap":k,"column-rule":k,"column-rule-width":k,"column-width":k,"font-size":k,"font-size-delta":k,"letter-spacing":k,"text-decoration-thickness":k,"text-indent":k,"text-stroke":k,"text-stroke-width":k,"word-spacing":k,motion:k,"motion-offset":k,outline:k,"outline-offset":k,"outline-width":k,perspective:k,"perspective-origin-x":O,"perspective-origin-y":O,"transform-origin":O,"transform-origin-x":O,"transform-origin-y":O,"transform-origin-z":O,"transition-delay":P,"transition-duration":P,"vertical-align":k,"flex-basis":k,"shape-margin":k,size:k,gap:k,grid:k,"grid-gap":k,"row-gap":k,"grid-row-gap":k,"grid-column-gap":k,"grid-template-rows":k,"grid-template-columns":k,"grid-auto-rows":k,"grid-auto-columns":k,"box-shadow-x":k,"box-shadow-y":k,"box-shadow-blur":k,"box-shadow-spread":k,"font-line-height":k,"text-shadow-x":k,"text-shadow-y":k,"text-shadow-blur":k});function I(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=I(e,t[r],n);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=I(o,t[o],n);else for(var i in t)t[i]=I(e+"-"+i,t[i],n);else if("number"==typeof t&&!1===isNaN(t)){var a=n[e]||Z[e];return!a||0===t&&a===k?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}const M=function(e){void 0===e&&(e={});var t=A(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=I(r,e[r],t);return e},onChangeValue:function(e,n){return I(n,e,t)}}};var T=n(3827),D=n(2982),j="",$="",N="",F="",L=T.Z&&"ontouchstart"in document.documentElement;if(T.Z){var H={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},_=document.createElement("p").style;for(var z in H)if(z+"Transform"in _){j=z,$=H[z];break}"Webkit"===j&&"msHyphens"in _&&(j="ms",$=H.ms,F="edge"),"Webkit"===j&&"-apple-trailing-word"in _&&(N="apple")}var W=j,B=$,V=N,G=F,q=L,U={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===W?"-webkit-"+e:B+e)}},K={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===W?B+"print-"+e:e)}},Y=/[-\s]+(.)?/g;function J(e,t){return t?t.toUpperCase():""}function X(e){return e.replace(Y,J)}function Q(e){return X("-"+e)}var ee,te={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===W){var n="mask-image";if(X(n)in t)return e;if(W+Q(n)in t)return B+e}return e}},ne={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==V||q?e:B+e)}},re={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:B+e)}},oe={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:B+e)}},ie={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===W||"ms"===W&&"edge"!==G?B+e:e)}},ae={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===W||"ms"===W||"apple"===V?B+e:e)}},se={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===W?"WebkitColumn"+Q(e)in t&&B+"column-"+e:"Moz"===W&&"page"+Q(e)in t&&"page-"+e)}},le={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===W)return e;var n=e.replace("-inline","");return W+Q(n)in t&&B+n}},ce={supportedProperty:function(e,t){return X(e)in t&&e}},ue={supportedProperty:function(e,t){var n=Q(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:W+n in t?B+e:"Webkit"!==W&&"Webkit"+n in t&&"-webkit-"+e}},de={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===W?""+B+e:e)}},fe={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===W?B+"scroll-chaining":e)}},pe={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},he={supportedProperty:function(e,t){var n=pe[e];return!!n&&W+Q(n)in t&&B+n}},ge={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},me=Object.keys(ge),ve=function(e){return B+e},be={supportedProperty:function(e,t,n){var r=n.multiple;if(me.indexOf(e)>-1){var o=ge[e];if(!Array.isArray(o))return W+Q(o)in t&&B+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(W+Q(o[0])in t))return!1;return o.map(ve)}return!1}},ye=[U,K,te,ne,re,oe,ie,ae,se,le,ce,ue,de,fe,he,be],we=ye.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),xe=ye.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,D.Z)(t.noPrefill)),e}),[]),Ce={};if(T.Z){ee=document.createElement("p");var Se=window.getComputedStyle(document.documentElement,"");for(var Re in Se)isNaN(Re)||(Ce[Se[Re]]=Se[Re]);xe.forEach((function(e){return delete Ce[e]}))}function Ee(e,t){if(void 0===t&&(t={}),!ee)return e;if(null!=Ce[e])return Ce[e];"transition"!==e&&"transform"!==e||(t[e]=e in ee.style);for(var n=0;n<we.length&&(Ce[e]=we[n](e,ee.style,t),!Ce[e]);n++);try{ee.style[e]=""}catch(e){return!1}return Ce[e]}var ke,Pe={},Oe={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ae=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ze(e,t,n){return"var"===t?"var":"all"===t?"all":"all"===n?", all":(t?Ee(t):", "+Ee(n))||t||n}function Ie(e,t){var n=t;if(!ke||"content"===e)return t;if("string"!=typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Pe[r])return Pe[r];try{ke.style[e]=n}catch(e){return Pe[r]=!1,!1}if(Oe[e])n=n.replace(Ae,Ze);else if(""===ke.style[e]&&("-ms-flex"===(n=B+n)&&(ke.style[e]="-ms-flexbox"),ke.style[e]=n,""===ke.style[e]))return Pe[r]=!1,!1;return ke.style[e]="",Pe[r]=n,Pe[r]}T.Z&&(ke=document.createElement("p"));const Me=function(){function e(t){for(var n in t){var o=t[n];if("fallbacks"===n&&Array.isArray(o))t[n]=o.map(e);else{var i=!1,a=Ee(n);a&&a!==n&&(i=!0);var s=!1,l=Ie(a,(0,r.EK)(o));l&&l!==o&&(s=!0),(i||s)&&(i&&delete t[n],t[a||n]=l||o)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===W?e:"@"+B+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Ie(t,(0,r.EK)(e))||e}}},Te=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};function De(){return{plugins:[s(),h(),b(),E(),M(),"undefined"==typeof window?null:Me(),Te()]}}},3914:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(5987),o=n(7462),i=n(9196),a=n.n(i),s=n(4013),l=n(5835);const c={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};var u=n(159),d=n(6975),f=-1e9,p=n(5953);const h={};function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,i=t.classNamePrefix,g=t.Component,m=t.defaultTheme,v=void 0===m?h:m,b=(0,r.Z)(t,["name","classNamePrefix","Component","defaultTheme"]),y=function(e){var t="function"==typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(e){throw e}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],s=(0,o.Z)({},i);return Object.keys(a).forEach((function(e){s[e]=(0,p.Z)(s[e],a[e])})),s},options:{}}}(e),w=n||i||"makeStyles";return y.options={index:f+=1,name:n,meta:w,classNamePrefix:w},function(){var e,t,r,i,f,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},h=(0,u.Z)()||v,m=(0,o.Z)({},a().useContext(d.NU),b),w=a().useRef(),x=a().useRef();e=function(){var e={name:n,state:{},stylesCreator:y,stylesOptions:m,theme:h};return function(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,u=e.name;if(!i.disableGeneration){var d=c.get(i.sheetsManager,a,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},c.set(i.sheetsManager,a,r,d));var f=(0,o.Z)({},a.options,i,{theme:r,flip:"boolean"==typeof i.flip?i.flip:"rtl"===r.direction});f.generateId=f.serverGenerateClassName||f.generateClassName;var p=i.sheetsRegistry;if(0===d.refs){var h;i.sheetsCache&&(h=c.get(i.sheetsCache,a,r));var g=a.create(r,u);h||((h=i.jss.createStyleSheet(g,(0,o.Z)({link:!1},f))).attach(),i.sheetsCache&&c.set(i.sheetsCache,a,r,h)),p&&p.add(h),d.staticSheet=h,d.dynamicStyles=(0,s._$)(g)}if(d.dynamicStyles){var m=i.jss.createStyleSheet(d.dynamicStyles,(0,o.Z)({link:!0},f));m.update(t),m.attach(),n.dynamicSheet=m,n.classes=(0,l.Z)({baseClasses:d.staticSheet.classes,newClasses:m.classes}),p&&p.add(m)}else n.classes=d.staticSheet.classes;d.refs+=1}}(e,p),x.current=!1,w.current=e,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=c.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(c.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(e)}},t=[h,y],i=a().useRef([]),f=a().useMemo((function(){return{}}),t),i.current!==f&&(i.current=f,r=e()),a().useEffect((function(){return function(){r&&r()}}),[f]),a().useEffect((function(){x.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(w.current,p),x.current=!0}));var C=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=(0,l.Z)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(w.current,p.classes,g);return C}}},5835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(7462);function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var o=(0,r.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(o[e]="".concat(t[e]," ").concat(n[e]))})),o}},3800:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9196);const o=n.n(r)().createContext(null)},159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9196),o=n.n(r),i=n(3800);function a(){return o().useContext(i.Z)}},5953:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7462),o=n(1002);function i(e){return e&&"object"===(0,o.Z)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},o=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e?o[r]=a(e[r],t[r],n):o[r]=t[r])})),o}},288:(e,t,n)=>{"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:()=>r})},8679:(e,t,n)=>{"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!(i[v]||r&&r[v]||g&&g[v]||s&&s[v])){var b=f(n,v);try{c(t,v,b)}catch(e){}}}}return t}},6103:(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,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=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,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=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,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case l:return e;default:return t}}case o:return t}}}function C(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return C(e)||x(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},3827:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var 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};const o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType},4013:(e,t,n)=>{"use strict";n.d(t,{EK:()=>p,HZ:()=>me,JH:()=>d,RB:()=>U,Ue:()=>ge,_$:()=>ve,xE:()=>J});var r=n(7462),o=n(3827),i=n(3144),a=n(1721),s=n(7326),l=n(3366),c={}.constructor;function u(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(u);if(e.constructor!==c)return e;var t={};for(var n in e)t[n]=u(e[n]);return t}function d(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=u(t);return r.plugins.onCreateRule(e,o,n)||(e[0],null)}var f=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},p=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=f(e[n]," ");else t=f(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function h(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function g(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function m(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=h(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var m=d[f];null!=m&&(r&&(r+=l),r+=g(f+":"+c+p(m)+";",i))}}else for(var v in a){var b=a[v];null!=b&&(r&&(r+=l),r+=g(v+":"+c+p(b)+";",i))}for(var y in t){var w=t[y];null!=w&&"fallbacks"!==y&&(r&&(r+=l),r+=g(y+":"+c+p(w)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),g(""+e+c+"{"+r,--i)+g("}",i)):r}var v=/([[\].#*$><+~=|^:(),"'`\s])/g,b="undefined"!=typeof CSS&&CSS.escape,y=function(e){return b?b(e):e.replace(v,"\\$1")},w=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),x=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,l=r.sheet,c=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=c((0,s.Z)((0,s.Z)(o)),l),o.selectorText="."+y(o.id)),o}(0,a.Z)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!=typeof n?e[t]=n:Array.isArray(n)&&(e[t]=p(n))}return e},n.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return m(this.selectorText,this.style,n)},(0,i.Z)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;n&&t&&(t.setSelector(n,e)||t.replaceRule(n,this))}},get:function(){return this.selectorText}}]),t}(w),C={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new x(e,t,n)}},S={indent:1,children:!0},R=/@([\w-]+)/,E=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var o=e.match(R);for(var i in this.at=o?o[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new U((0,r.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=S);var t=h(e).linebreak;if(null==e.indent&&(e.indent=S.indent),null==e.children&&(e.children=S.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),k=/@container|@media|@supports\s+/,P={onCreateRule:function(e,t,n){return k.test(e)?new E(e,t,n):null}},O={indent:1,children:!0},A=/@keyframes\s+([\w-]+)/,Z=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var o=e.match(A);o&&o[1]?this.name=o[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,s=n.generateId;for(var l in this.id=!1===i?this.name:y(s(this,a)),this.rules=new U((0,r.Z)({},n,{parent:this})),t)this.rules.add(l,t[l],(0,r.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=O);var t=h(e).linebreak;if(null==e.indent&&(e.indent=O.indent),null==e.children&&(e.children=O.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),I=/@keyframes\s+/,M=/\$([\w-]+)/g,T=function(e,t){return"string"==typeof e?e.replace(M,(function(e,n){return n in t?t[n]:e})):e},D=function(e,t,n){var r=e[t],o=T(r,n);o!==r&&(e[t]=o)},j={onCreateRule:function(e,t,n){return"string"==typeof e&&I.test(e)?new Z(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&D(e,"animation-name",n.keyframes),"animation"in e&&D(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return T(e,r.keyframes);default:return e}}},$=function(e){function t(){return e.apply(this,arguments)||this}return(0,a.Z)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=t&&t.options.link?(0,r.Z)({},e,{allowEmpty:!0}):e;return m(this.key,this.style,n)},t}(w),N={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new $(e,t,n):null}},F=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=h(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=m(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return m(this.at,this.style,e)},e}(),L=/@font-face/,H={onCreateRule:function(e,t,n){return L.test(e)?new F(e,t,n):null}},_=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return m(this.key,this.style,e)},e}(),z={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new _(e,t,n):null}},W=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),B={"@charset":!0,"@import":!0,"@namespace":!0},V=[C,P,j,N,H,z,{onCreateRule:function(e,t,n){return e in B?new W(e,t,n):null}}],G={process:!0},q={force:!0,process:!0},U=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var o=this.options,i=o.parent,a=o.sheet,s=o.jss,l=o.Renderer,c=o.generateId,u=o.scoped,f=(0,r.Z)({classes:this.classes,parent:i,sheet:a,jss:s,Renderer:l,generateId:c,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=t,p in this.classes&&(f.selector="."+y(this.classes[p]));var h=d(p,t,f);if(!h)return null;this.register(h);var g=void 0===f.index?this.index.length:f.index;return this.index.splice(g,0,h),h},t.replace=function(e,t,n){var o=this.get(e),i=this.index.indexOf(o);o&&this.remove(o);var a=n;return-1!==i&&(a=(0,r.Z)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof x?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Z&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof x?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Z&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=G);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,q)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=h(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),K=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,r.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new U(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),Y=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),J=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,l.Z)(t,["attached"]),o=h(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},(0,i.Z)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),X=new J,Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";null==Q[ee]&&(Q[ee]=0);var te=Q[ee]++,ne=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+te+o+t:i+n.key+"-"+te+(o?"-"+o:"")+"-"+t}},re=function(e){var t;return function(){return t||(t=e()),t}},oe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ie=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=p(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},ae=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},se=function(e,t){return e.selectorText=t,e.selectorText===t},le=re((function(){return document.querySelector("head")}));var ce=re((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ue=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[n]},de=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},fe=function(){function e(e){this.getPropertyValue=oe,this.setProperty=ie,this.removeProperty=ae,this.setSelector=se,this.hasInsertedRules=!1,this.cssRules=[],e&&X.add(e),this.sheet=e;var t,n=this.sheet?this.sheet.options:{},r=n.media,o=n.meta,i=n.element;this.element=i||((t=document.createElement("style")).textContent="\n",t),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),o&&this.element.setAttribute("data-meta",o);var a=ce();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=function(e){var t=X.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"==typeof r){var o=function(e){for(var t=le(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"==typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else le().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=de(n,t);if(!1===(o=ue(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=de(n,t),l=ue(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof K&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),pe=0,he=function(){function e(e){this.id=pe++,this.version="10.10.0",this.plugins=new Y,this.options={id:{minify:!1},createGenerateId:ne,Renderer:o.Z?fe:null,plugins:[]},this.generateId=ne({minify:!1});for(var t=0;t<V.length;t++)this.plugins.use(V[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,r.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!=typeof n&&(n=0===X.index?0:X.index+1);var o=new K(e,(0,r.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(o),o},t.removeStyleSheet=function(e){return e.detach(),X.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"==typeof e)return this.createRule(void 0,e,t);var o=(0,r.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});o.generateId||(o.generateId=this.generateId),o.classes||(o.classes={}),o.keyframes||(o.keyframes={});var i=d(e,t,o);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),ge=function(e){return new he(e)},me="object"==typeof CSS&&null!=CSS&&"number"in CSS;function ve(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=ve(r);i&&(t||(t={}),t[n]=i)}}return t}ge()},44:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9196),o=n(1256);function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a,s=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}(r),l=i(r),c=i(o);function u(e,t){return e[t]}function d(e,t){return t.split(".").reduce(((e,t)=>{const n=t.match(/[^\]\\[.]+/g);if(n&&n.length>1)for(let t=0;t<n.length;t++)return e[n[t]][n[t+1]];return e[t]}),e)}function f(e=[],t,n=0){return[...e.slice(0,n),t,...e.slice(n)]}function p(e=[],t,n="id"){const r=e.slice(),o=u(t,n);return o?r.splice(r.findIndex((e=>u(e,n)===o)),1):r.splice(r.findIndex((e=>e===t)),1),r}function h(e){return e.map(((e,t)=>{const n=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(n.id=t+1),n}))}function g(e,t){return Math.ceil(e/t)}function m(e,t){return Math.min(e,t)}!function(e){e.ASC="asc",e.DESC="desc"}(a||(a={}));const v=()=>null;function b(e,t=[],n=[]){let r={},o=[...n];return t.length&&t.forEach((t=>{if(!t.when||"function"!=typeof t.when)throw new Error('"when" must be defined in the conditional style object and must be function');t.when(e)&&(r=t.style||{},t.classNames&&(o=[...o,...t.classNames]),"function"==typeof t.style&&(r=t.style(e)||{}))})),{style:r,classNames:o.join(" ")}}function y(e,t=[],n="id"){const r=u(e,n);return r?t.some((e=>u(e,n)===r)):t.some((t=>t===e))}function w(e,t){return t?e.findIndex((e=>x(e.id,t))):-1}function x(e,t){return e==t}function C(e,t){const n=!e.toggleOnSelectedRowsChange;switch(t.type){case"SELECT_ALL_ROWS":{const{keyField:n,rows:r,rowCount:o,mergeSelections:i}=t,a=!e.allSelected,s=!e.toggleOnSelectedRowsChange;if(i){const t=a?[...e.selectedRows,...r.filter((t=>!y(t,e.selectedRows,n)))]:e.selectedRows.filter((e=>!y(e,r,n)));return Object.assign(Object.assign({},e),{allSelected:a,selectedCount:t.length,selectedRows:t,toggleOnSelectedRowsChange:s})}return Object.assign(Object.assign({},e),{allSelected:a,selectedCount:a?o:0,selectedRows:a?r:[],toggleOnSelectedRowsChange:s})}case"SELECT_SINGLE_ROW":{const{keyField:r,row:o,isSelected:i,rowCount:a,singleSelect:s}=t;return s?i?Object.assign(Object.assign({},e),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:1,allSelected:!1,selectedRows:[o],toggleOnSelectedRowsChange:n}):i?Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length>0?e.selectedRows.length-1:0,allSelected:!1,selectedRows:p(e.selectedRows,o,r),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},e),{selectedCount:e.selectedRows.length+1,allSelected:e.selectedRows.length+1===a,selectedRows:f(e.selectedRows,o),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:r,selectedRows:o,totalRows:i,mergeSelections:a}=t;if(a){const t=[...e.selectedRows,...o.filter((t=>!y(t,e.selectedRows,r)))];return Object.assign(Object.assign({},e),{selectedCount:t.length,allSelected:!1,selectedRows:t,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},e),{selectedCount:o.length,allSelected:o.length===i,selectedRows:o,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:n}=t;return Object.assign(Object.assign({},e),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:n})}case"SORT_CHANGE":{const{sortDirection:r,selectedColumn:o,clearSelectedOnSort:i}=t;return Object.assign(Object.assign(Object.assign({},e),{selectedColumn:o,sortDirection:r,currentPage:1}),i&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:r,paginationServer:o,visibleOnly:i,persistSelectedOnPageChange:a}=t,s=o&&a,l=o&&!a||i;return Object.assign(Object.assign(Object.assign(Object.assign({},e),{currentPage:r}),s&&{allSelected:!1}),l&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:n,page:r}=t;return Object.assign(Object.assign({},e),{currentPage:r,rowsPerPage:n})}}}const S=o.css` pointer-events: none; opacity: 0.4; `,R=c.default.div` position: relative; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; max-width: 100%; ${({disabled:e})=>e&&S}; ${({theme:e})=>e.table.style}; `,E=o.css` position: sticky; position: -webkit-sticky; /* Safari */ top: 0; z-index: 1; `,k=c.default.div` display: flex; width: 100%; ${({fixedHeader:e})=>e&&E}; ${({theme:e})=>e.head.style}; `,P=c.default.div` display: flex; align-items: stretch; width: 100%; ${({theme:e})=>e.headRow.style}; ${({dense:e,theme:t})=>e&&t.headRow.denseStyle}; `,O=(e,...t)=>o.css` @media screen and (max-width: ${599}px) { ${o.css(e,...t)} } `,A=(e,...t)=>o.css` @media screen and (max-width: ${959}px) { ${o.css(e,...t)} } `,Z=(e,...t)=>o.css` @media screen and (max-width: ${1280}px) { ${o.css(e,...t)} } `,I=c.default.div` position: relative; display: flex; align-items: center; box-sizing: border-box; line-height: normal; ${({theme:e,headCell:t})=>e[t?"headCells":"cells"].style}; ${({noPadding:e})=>e&&"padding: 0"}; `,M=c.default(I)` flex-grow: ${({button:e,grow:t})=>0===t||e?0:t||1}; flex-shrink: 0; flex-basis: 0; max-width: ${({maxWidth:e})=>e||"100%"}; min-width: ${({minWidth:e})=>e||"100px"}; ${({width:e})=>e&&o.css` min-width: ${e}; max-width: ${e}; `}; ${({right:e})=>e&&"justify-content: flex-end"}; ${({button:e,center:t})=>(t||e)&&"justify-content: center"}; ${({compact:e,button:t})=>(e||t)&&"padding: 0"}; /* handle hiding cells */ ${({hide:e})=>e&&"sm"===e&&O` display: none; `}; ${({hide:e})=>e&&"md"===e&&A` display: none; `}; ${({hide:e})=>e&&"lg"===e&&Z` display: none; `}; ${({hide:e})=>e&&Number.isInteger(e)&&(e=>(t,...n)=>o.css` @media screen and (max-width: ${e}px) { ${o.css(t,...n)} } `)(e)` display: none; `}; `,T=o.css` div:first-child { white-space: ${({wrapCell:e})=>e?"normal":"nowrap"}; overflow: ${({allowOverflow:e})=>e?"visible":"hidden"}; text-overflow: ellipsis; } `,D=c.default(M).attrs((e=>({style:e.style})))` ${({renderAsCell:e})=>!e&&T}; ${({theme:e,isDragging:t})=>t&&e.cells.draggingStyle}; ${({cellStyle:e})=>e}; `;var j=s.memo((function({id:e,column:t,row:n,rowIndex:r,dataTag:o,isDragging:i,onDragStart:a,onDragOver:l,onDragEnd:c,onDragEnter:u,onDragLeave:f}){const{style:p,classNames:h}=b(n,t.conditionalCellStyles,["rdt_TableCell"]);return s.createElement(D,{id:e,"data-column-id":t.id,role:"cell",className:h,"data-tag":o,cellStyle:t.style,renderAsCell:!!t.cell,allowOverflow:t.allowOverflow,button:t.button,center:t.center,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,width:t.width,wrapCell:t.wrap,style:p,isDragging:i,onDragStart:a,onDragOver:l,onDragEnd:c,onDragEnter:u,onDragLeave:f},!t.cell&&s.createElement("div",{"data-tag":o},function(e,t,n,r){if(!t)return null;if("string"!=typeof t&&"function"!=typeof t)throw new Error("selector must be a . delimited string eg (my.property) or function (e.g. row => row.field");return n&&"function"==typeof n?n(e,r):t&&"function"==typeof t?t(e,r):d(e,t)}(n,t.selector,t.format,r)),t.cell&&t.cell(n,r,t,e))})),$=s.memo((function({name:e,component:t="input",componentOptions:n={style:{}},indeterminate:r=!1,checked:o=!1,disabled:i=!1,onClick:a=v}){const l=t,c="input"!==l?n.style:(e=>Object.assign(Object.assign({fontSize:"18px"},!e&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(i),u=s.useMemo((()=>function(e,...t){let n;return Object.keys(e).map((t=>e[t])).forEach(((r,o)=>{const i=e;"function"==typeof r&&(n=Object.assign(Object.assign({},i),{[Object.keys(e)[o]]:r(...t)}))})),n||e}(n,r)),[n,r]);return s.createElement(l,Object.assign({type:"checkbox",ref:e=>{e&&(e.indeterminate=r)},style:c,onClick:i?v:a,name:e,"aria-label":e,checked:o,disabled:i},u,{onChange:v}))}));const N=c.default(I)` flex: 0 0 48px; min-width: 48px; justify-content: center; align-items: center; user-select: none; white-space: nowrap; `;function F({name:e,keyField:t,row:n,rowCount:r,selected:o,selectableRowsComponent:i,selectableRowsComponentProps:a,selectableRowsSingle:l,selectableRowDisabled:c,onSelectedRow:u}){const d=!(!c||!c(n));return s.createElement(N,{onClick:e=>e.stopPropagation(),className:"rdt_TableCell",noPadding:!0},s.createElement($,{name:e,component:i,componentOptions:a,checked:o,"aria-checked":o,onClick:()=>{u({type:"SELECT_SINGLE_ROW",row:n,isSelected:o,keyField:t,rowCount:r,singleSelect:l})},disabled:d}))}const L=c.default.button` display: inline-flex; align-items: center; user-select: none; white-space: nowrap; border: none; background-color: transparent; ${({theme:e})=>e.expanderButton.style}; `;function H({disabled:e=!1,expanded:t=!1,expandableIcon:n,id:r,row:o,onToggled:i}){const a=t?n.expanded:n.collapsed;return s.createElement(L,{"aria-disabled":e,onClick:()=>i&&i(o),"data-testid":`expander-button-${r}`,disabled:e,"aria-label":t?"Collapse Row":"Expand Row",role:"button",type:"button"},a)}const _=c.default(I)` white-space: nowrap; font-weight: 400; min-width: 48px; ${({theme:e})=>e.expanderCell.style}; `;function z({row:e,expanded:t=!1,expandableIcon:n,id:r,onToggled:o,disabled:i=!1}){return s.createElement(_,{onClick:e=>e.stopPropagation(),noPadding:!0},s.createElement(H,{id:r,row:e,expanded:t,expandableIcon:n,disabled:i,onToggled:o}))}const W=c.default.div` width: 100%; box-sizing: border-box; ${({theme:e})=>e.expanderRow.style}; ${({extendedRowStyle:e})=>e}; `;var B,V,G,q=s.memo((function({data:e,ExpanderComponent:t,expanderComponentProps:n,extendedRowStyle:r,extendedClassNames:o}){const i=["rdt_ExpanderRow",...o.split(" ").filter((e=>"rdt_TableRow"!==e))].join(" ");return s.createElement(W,{className:i,extendedRowStyle:r},s.createElement(t,Object.assign({data:e},n)))}));t.Direction=void 0,(B=t.Direction||(t.Direction={})).LTR="ltr",B.RTL="rtl",B.AUTO="auto",t.Alignment=void 0,(V=t.Alignment||(t.Alignment={})).LEFT="left",V.RIGHT="right",V.CENTER="center",t.Media=void 0,(G=t.Media||(t.Media={})).SM="sm",G.MD="md",G.LG="lg";const U=o.css` &:hover { ${({highlightOnHover:e,theme:t})=>e&&t.rows.highlightOnHoverStyle}; } `,K=o.css` &:hover { cursor: pointer; } `,Y=c.default.div.attrs((e=>({style:e.style})))` display: flex; align-items: stretch; align-content: stretch; width: 100%; box-sizing: border-box; ${({theme:e})=>e.rows.style}; ${({dense:e,theme:t})=>e&&t.rows.denseStyle}; ${({striped:e,theme:t})=>e&&t.rows.stripedStyle}; ${({highlightOnHover:e})=>e&&U}; ${({pointerOnHover:e})=>e&&K}; ${({selected:e,theme:t})=>e&&t.rows.selectedHighlightStyle}; `;function J({columns:e=[],conditionalRowStyles:t=[],defaultExpanded:n=!1,defaultExpanderDisabled:r=!1,dense:o=!1,expandableIcon:i,expandableRows:a=!1,expandableRowsComponent:l,expandableRowsComponentProps:c,expandableRowsHideExpander:d,expandOnRowClicked:f=!1,expandOnRowDoubleClicked:p=!1,highlightOnHover:h=!1,id:g,expandableInheritConditionalStyles:m,keyField:y,onRowClicked:w=v,onRowDoubleClicked:C=v,onRowMouseEnter:S=v,onRowMouseLeave:R=v,onRowExpandToggled:E=v,onSelectedRow:k=v,pointerOnHover:P=!1,row:O,rowCount:A,rowIndex:Z,selectableRowDisabled:I=null,selectableRows:M=!1,selectableRowsComponent:T,selectableRowsComponentProps:D,selectableRowsHighlight:$=!1,selectableRowsSingle:N=!1,selected:L,striped:H=!1,draggingColumnId:_,onDragStart:W,onDragOver:B,onDragEnd:V,onDragEnter:G,onDragLeave:U}){const[K,J]=s.useState(n);s.useEffect((()=>{J(n)}),[n]);const X=s.useCallback((()=>{J(!K),E(!K,O)}),[K,E,O]),Q=P||a&&(f||p),ee=s.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(w(O,e),!r&&a&&f&&X())}),[r,f,a,X,w,O]),te=s.useCallback((e=>{e.target&&"allowRowEvents"===e.target.getAttribute("data-tag")&&(C(O,e),!r&&a&&p&&X())}),[r,p,a,X,C,O]),ne=s.useCallback((e=>{S(O,e)}),[S,O]),re=s.useCallback((e=>{R(O,e)}),[R,O]),oe=u(O,y),{style:ie,classNames:ae}=b(O,t,["rdt_TableRow"]),se=$&&L,le=m?ie:{},ce=H&&Z%2==0;return s.createElement(s.Fragment,null,s.createElement(Y,{id:`row-${g}`,role:"row",striped:ce,highlightOnHover:h,pointerOnHover:!r&&Q,dense:o,onClick:ee,onDoubleClick:te,onMouseEnter:ne,onMouseLeave:re,className:ae,selected:se,style:ie},M&&s.createElement(F,{name:`select-row-${oe}`,keyField:y,row:O,rowCount:A,selected:L,selectableRowsComponent:T,selectableRowsComponentProps:D,selectableRowDisabled:I,selectableRowsSingle:N,onSelectedRow:k}),a&&!d&&s.createElement(z,{id:oe,expandableIcon:i,expanded:K,row:O,onToggled:X,disabled:r}),e.map((e=>e.omit?null:s.createElement(j,{id:`cell-${e.id}-${oe}`,key:`cell-${e.id}-${oe}`,dataTag:e.ignoreRowClick||e.button?null:"allowRowEvents",column:e,row:O,rowIndex:Z,isDragging:x(_,e.id),onDragStart:W,onDragOver:B,onDragEnd:V,onDragEnter:G,onDragLeave:U})))),a&&K&&s.createElement(q,{key:`expander-${oe}`,data:O,extendedRowStyle:le,extendedClassNames:ae,ExpanderComponent:l,expanderComponentProps:c}))}const X=c.default.span` padding: 2px; color: inherit; flex-grow: 0; flex-shrink: 0; ${({sortActive:e})=>e?"opacity: 1":"opacity: 0"}; ${({sortDirection:e})=>"desc"===e&&"transform: rotate(180deg)"}; `,Q=({sortActive:e,sortDirection:t})=>l.default.createElement(X,{sortActive:e,sortDirection:t},"▲"),ee=c.default(M)` ${({button:e})=>e&&"text-align: center"}; ${({theme:e,isDragging:t})=>t&&e.headCells.draggingStyle}; `,te=o.css` cursor: pointer; span.__rdt_custom_sort_icon__ { i, svg { transform: 'translate3d(0, 0, 0)'; ${({sortActive:e})=>e?"opacity: 1":"opacity: 0"}; color: inherit; font-size: 18px; height: 18px; width: 18px; backface-visibility: hidden; transform-style: preserve-3d; transition-duration: 95ms; transition-property: transform; } &.asc i, &.asc svg { transform: rotate(180deg); } } ${({sortActive:e})=>!e&&o.css` &:hover, &:focus { opacity: 0.7; span, span.__rdt_custom_sort_icon__ * { opacity: 0.7; } } `}; `,ne=c.default.div` display: inline-flex; align-items: center; justify-content: inherit; height: 100%; width: 100%; outline: none; user-select: none; overflow: hidden; ${({disabled:e})=>!e&&te}; `,re=c.default.div` overflow: hidden; white-space: nowrap; text-overflow: ellipsis; `;var oe=s.memo((function({column:e,disabled:t,draggingColumnId:n,selectedColumn:r={},sortDirection:o,sortIcon:i,sortServer:l,pagination:c,paginationServer:u,persistSelectedOnSort:d,selectableRowsVisibleOnly:f,onSort:p,onDragStart:h,onDragOver:g,onDragEnd:m,onDragEnter:v,onDragLeave:b}){s.useEffect((()=>{"string"==typeof e.selector&&console.error(`Warning: ${e.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)}),[]);const[y,w]=s.useState(!1),C=s.useRef(null);if(s.useEffect((()=>{C.current&&w(C.current.scrollWidth>C.current.clientWidth)}),[y]),e.omit)return null;const S=()=>{if(!e.sortable&&!e.selector)return;let t=o;x(r.id,e.id)&&(t=o===a.ASC?a.DESC:a.ASC),p({type:"SORT_CHANGE",sortDirection:t,selectedColumn:e,clearSelectedOnSort:c&&u&&!d||l||f})},R=e=>s.createElement(Q,{sortActive:e,sortDirection:o}),E=()=>s.createElement("span",{className:[o,"__rdt_custom_sort_icon__"].join(" ")},i),k=!(!e.sortable||!x(r.id,e.id)),P=!e.sortable||t,O=e.sortable&&!i&&!e.right,A=e.sortable&&!i&&e.right,Z=e.sortable&&i&&!e.right,I=e.sortable&&i&&e.right;return s.createElement(ee,{"data-column-id":e.id,className:"rdt_TableCol",headCell:!0,allowOverflow:e.allowOverflow,button:e.button,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,center:e.center,width:e.width,draggable:e.reorder,isDragging:x(e.id,n),onDragStart:h,onDragOver:g,onDragEnd:m,onDragEnter:v,onDragLeave:b},e.name&&s.createElement(ne,{"data-column-id":e.id,"data-sort-id":e.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:P?void 0:S,onKeyPress:P?void 0:e=>{"Enter"===e.key&&S()},sortActive:!P&&k,disabled:P},!P&&I&&E(),!P&&A&&R(k),"string"==typeof e.name?s.createElement(re,{title:y?e.name:void 0,ref:C,"data-column-id":e.id},e.name):e.name,!P&&Z&&E(),!P&&O&&R(k)))}));const ie=c.default(I)` flex: 0 0 48px; justify-content: center; align-items: center; user-select: none; white-space: nowrap; font-size: unset; `;function ae({headCell:e=!0,rowData:t,keyField:n,allSelected:r,mergeSelections:o,selectedRows:i,selectableRowsComponent:a,selectableRowsComponentProps:l,selectableRowDisabled:c,onSelectAllRows:u}){const d=i.length>0&&!r,f=c?t.filter((e=>!c(e))):t,p=0===f.length,h=Math.min(t.length,f.length);return s.createElement(ie,{className:"rdt_TableCol",headCell:e,noPadding:!0},s.createElement($,{name:"select-all-rows",component:a,componentOptions:l,onClick:()=>{u({type:"SELECT_ALL_ROWS",rows:f,rowCount:h,mergeSelections:o,keyField:n})},checked:r,indeterminate:d,disabled:p}))}function se(e=t.Direction.AUTO){const n="object"==typeof window,[r,o]=s.useState(!1);return s.useEffect((()=>{if(n)if("auto"!==e)o("rtl"===e);else{const e=!(!window.document||!window.document.createElement),t=document.getElementsByTagName("BODY")[0],n=document.getElementsByTagName("HTML")[0],r="rtl"===t.dir||"rtl"===n.dir;o(e&&r)}}),[e,n]),r}const le=c.default.div` display: flex; align-items: center; flex: 1 0 auto; height: 100%; color: ${({theme:e})=>e.contextMenu.fontColor}; font-size: ${({theme:e})=>e.contextMenu.fontSize}; font-weight: 400; `,ce=c.default.div` display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; `,ue=c.default.div` position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: inherit; z-index: 1; align-items: center; justify-content: space-between; display: flex; ${({rtl:e})=>e&&"direction: rtl"}; ${({theme:e})=>e.contextMenu.style}; ${({theme:e,visible:t})=>t&&e.contextMenu.activeStyle}; `;function de({contextMessage:e,contextActions:t,contextComponent:n,selectedCount:r,direction:o}){const i=se(o),a=r>0;return n?s.createElement(ue,{visible:a},s.cloneElement(n,{selectedCount:r})):s.createElement(ue,{visible:a,rtl:i},s.createElement(le,null,((e,t,n)=>{if(0===t)return null;const r=1===t?e.singular:e.plural;return n?`${t} ${e.message||""} ${r}`:`${t} ${r} ${e.message||""}`})(e,r,i)),s.createElement(ce,null,t))}const fe=c.default.div` position: relative; box-sizing: border-box; overflow: hidden; display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; ${({theme:e})=>e.header.style} `,pe=c.default.div` flex: 1 0 auto; color: ${({theme:e})=>e.header.fontColor}; font-size: ${({theme:e})=>e.header.fontSize}; font-weight: 400; `,he=c.default.div` flex: 1 0 auto; display: flex; align-items: center; justify-content: flex-end; > * { margin-left: 5px; } `,ge=({title:e,actions:t=null,contextMessage:n,contextActions:r,contextComponent:o,selectedCount:i,direction:a,showMenu:l=!0})=>s.createElement(fe,{className:"rdt_TableHeader",role:"heading","aria-level":1},s.createElement(pe,null,e),t&&s.createElement(he,null,t),l&&s.createElement(de,{contextMessage:n,contextActions:r,contextComponent:o,direction:a,selectedCount:i}));function me(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 ve={left:"flex-start",right:"flex-end",center:"center"},be=c.default.header` position: relative; display: flex; flex: 1 1 auto; box-sizing: border-box; align-items: center; padding: 4px 16px 4px 24px; width: 100%; justify-content: ${({align:e})=>ve[e]}; flex-wrap: ${({wrapContent:e})=>e?"wrap":"nowrap"}; ${({theme:e})=>e.subHeader.style} `,ye=e=>{var{align:t="right",wrapContent:n=!0}=e,r=me(e,["align","wrapContent"]);return s.createElement(be,Object.assign({align:t,wrapContent:n},r))},we=c.default.div` display: flex; flex-direction: column; `,xe=c.default.div` position: relative; width: 100%; border-radius: inherit; ${({responsive:e,fixedHeader:t})=>e&&o.css` overflow-x: auto; // hidden prevents vertical scrolling in firefox when fixedHeader is disabled overflow-y: ${t?"auto":"hidden"}; min-height: 0; `}; ${({fixedHeader:e=!1,fixedHeaderScrollHeight:t="100vh"})=>e&&o.css` max-height: ${t}; -webkit-overflow-scrolling: touch; `}; ${({theme:e})=>e.responsiveWrapper.style}; `,Ce=c.default.div` position: relative; box-sizing: border-box; width: 100%; height: 100%; ${e=>e.theme.progress.style}; `,Se=c.default.div` position: relative; width: 100%; ${({theme:e})=>e.tableWrapper.style}; `,Re=c.default(I)` white-space: nowrap; ${({theme:e})=>e.expanderCell.style}; `,Ee=c.default.div` box-sizing: border-box; width: 100%; height: 100%; ${({theme:e})=>e.noData.style}; `,ke=()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},l.default.createElement("path",{d:"M7 10l5 5 5-5z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),Pe=c.default.select` cursor: pointer; height: 24px; max-width: 100%; user-select: none; padding-left: 8px; padding-right: 24px; box-sizing: content-box; font-size: inherit; color: inherit; border: none; background-color: transparent; appearance: none; direction: ltr; flex-shrink: 0; &::-ms-expand { display: none; } &:disabled::-ms-expand { background: #f60; } option { color: initial; } `,Oe=c.default.div` position: relative; flex-shrink: 0; font-size: inherit; color: inherit; margin-top: 1px; svg { top: 0; right: 0; color: inherit; position: absolute; fill: currentColor; width: 24px; height: 24px; display: inline-block; user-select: none; pointer-events: none; } `,Ae=e=>{var{defaultValue:t,onChange:n}=e,r=me(e,["defaultValue","onChange"]);return s.createElement(Oe,null,s.createElement(Pe,Object.assign({onChange:n,defaultValue:t},r)),s.createElement(ke,null))},Ze={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return l.default.createElement("div",null,"To add an expander pass in a component instance via ",l.default.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:l.default.createElement((()=>l.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),l.default.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"}))),null),expanded:l.default.createElement((()=>l.default.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},l.default.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),l.default.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"}))),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:l.default.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:l.default.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:t.Alignment.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:l.default.createElement((()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),l.default.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"}))),null),paginationIconLastPage:l.default.createElement((()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),l.default.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))),null),paginationIconNext:l.default.createElement((()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),paginationIconPrevious:l.default.createElement((()=>l.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},l.default.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),l.default.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:t.Direction.AUTO,onChangePage:v,onChangeRowsPerPage:v,onRowClicked:v,onRowDoubleClicked:v,onRowMouseEnter:v,onRowMouseLeave:v,onRowExpandToggled:v,onSelectedRowsChange:v,onSort:v,onColumnOrderChange:v},Ie={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},Me=c.default.nav` display: flex; flex: 1 1 auto; justify-content: flex-end; align-items: center; box-sizing: border-box; padding-right: 8px; padding-left: 8px; width: 100%; ${({theme:e})=>e.pagination.style}; `,Te=c.default.button` position: relative; display: block; user-select: none; border: none; ${({theme:e})=>e.pagination.pageButtonsStyle}; ${({isRTL:e})=>e&&"transform: scale(-1, -1)"}; `,De=c.default.div` display: flex; align-items: center; border-radius: 4px; white-space: nowrap; ${O` width: 100%; justify-content: space-around; `}; `,je=c.default.span` flex-shrink: 1; user-select: none; `,$e=c.default(je)` margin: 0 24px; `,Ne=c.default(je)` margin: 0 4px; `;var Fe=s.memo((function({rowsPerPage:e,rowCount:t,currentPage:n,direction:r=Ze.direction,paginationRowsPerPageOptions:o=Ze.paginationRowsPerPageOptions,paginationIconLastPage:i=Ze.paginationIconLastPage,paginationIconFirstPage:a=Ze.paginationIconFirstPage,paginationIconNext:l=Ze.paginationIconNext,paginationIconPrevious:c=Ze.paginationIconPrevious,paginationComponentOptions:u=Ze.paginationComponentOptions,onChangeRowsPerPage:d=Ze.onChangeRowsPerPage,onChangePage:f=Ze.onChangePage}){const p=(()=>{const e="object"==typeof window;function t(){return{width:e?window.innerWidth:void 0,height:e?window.innerHeight:void 0}}const[n,r]=s.useState(t);return s.useEffect((()=>{if(!e)return()=>null;function n(){r(t())}return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),n})(),h=se(r),m=p.width&&p.width>599,v=g(t,e),b=n*e,y=b-e+1,w=1===n,x=n===v,C=Object.assign(Object.assign({},Ie),u),S=n===v?`${y}-${t} ${C.rangeSeparatorText} ${t}`:`${y}-${b} ${C.rangeSeparatorText} ${t}`,R=s.useCallback((()=>f(n-1)),[n,f]),E=s.useCallback((()=>f(n+1)),[n,f]),k=s.useCallback((()=>f(1)),[f]),P=s.useCallback((()=>f(g(t,e))),[f,t,e]),O=s.useCallback((e=>d(Number(e.target.value),n)),[n,d]),A=o.map((e=>s.createElement("option",{key:e,value:e},e)));C.selectAllRowsItem&&A.push(s.createElement("option",{key:-1,value:t},C.selectAllRowsItemText));const Z=s.createElement(Ae,{onChange:O,defaultValue:e,"aria-label":C.rowsPerPageText},A);return s.createElement(Me,{className:"rdt_Pagination"},!C.noRowsPerPage&&m&&s.createElement(s.Fragment,null,s.createElement(Ne,null,C.rowsPerPageText),Z),m&&s.createElement($e,null,S),s.createElement(De,null,s.createElement(Te,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":w,onClick:k,disabled:w,isRTL:h},a),s.createElement(Te,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":w,onClick:R,disabled:w,isRTL:h},c),!m&&Z,s.createElement(Te,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":x,onClick:E,disabled:x,isRTL:h},l),s.createElement(Te,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":x,onClick:P,disabled:x,isRTL:h},i)))}));const Le=(e,t)=>{const n=s.useRef(!0);s.useEffect((()=>{n.current?n.current=!1:e()}),t)};var He=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===_e}(e)}(e)},_e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ze(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Ge((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function We(e,t,n){return e.concat(t).map((function(e){return ze(e,n)}))}function Be(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function Ve(e,t){try{return t in e}catch(e){return!1}}function Ge(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||We,n.isMergeableObject=n.isMergeableObject||He,n.cloneUnlessOtherwiseSpecified=ze;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Be(e).forEach((function(t){r[t]=ze(e[t],n)})),Be(t).forEach((function(o){(function(e,t){return Ve(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,o)||(Ve(e,o)&&n.isMergeableObject(t[o])?r[o]=function(e,t){if(!t.customMerge)return Ge;var n=t.customMerge(e);return"function"==typeof n?n:Ge}(o,n)(e[o],t[o],n):r[o]=ze(t[o],n))})),r}(e,t,n):ze(t,n)}Ge.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return Ge(e,n,t)}),{})};var qe=Ge;const Ue={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},Ke={default:Ue,light:Ue,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function Ye(e,t,n,r){const[o,i]=s.useState((()=>h(e))),[l,c]=s.useState(""),u=s.useRef("");Le((()=>{i(h(e))}),[e]);const d=s.useCallback((e=>{var t,n,r;const{attributes:i}=e.target,a=null===(t=i.getNamedItem("data-column-id"))||void 0===t?void 0:t.value;a&&(u.current=(null===(r=null===(n=o[w(o,a)])||void 0===n?void 0:n.id)||void 0===r?void 0:r.toString())||"",c(u.current))}),[o]),f=s.useCallback((e=>{var n;const{attributes:r}=e.target,a=null===(n=r.getNamedItem("data-column-id"))||void 0===n?void 0:n.value;if(a&&u.current&&a!==u.current){const e=w(o,u.current),n=w(o,a),r=[...o];r[e]=o[n],r[n]=o[e],i(r),t(r)}}),[t,o]),p=s.useCallback((e=>{e.preventDefault()}),[]),g=s.useCallback((e=>{e.preventDefault()}),[]),m=s.useCallback((e=>{e.preventDefault(),u.current="",c("")}),[]),v=function(e=!1){return e?a.ASC:a.DESC}(r),b=s.useMemo((()=>o[w(o,null==n?void 0:n.toString())]||{}),[n,o]);return{tableColumns:o,draggingColumnId:l,handleDragStart:d,handleDragEnter:f,handleDragOver:p,handleDragLeave:g,handleDragEnd:m,defaultSortDirection:v,defaultSortColumn:b}}var Je=s.memo((function(e){const{data:t=Ze.data,columns:n=Ze.columns,title:r=Ze.title,actions:i=Ze.actions,keyField:l=Ze.keyField,striped:c=Ze.striped,highlightOnHover:f=Ze.highlightOnHover,pointerOnHover:p=Ze.pointerOnHover,dense:h=Ze.dense,selectableRows:v=Ze.selectableRows,selectableRowsSingle:b=Ze.selectableRowsSingle,selectableRowsHighlight:w=Ze.selectableRowsHighlight,selectableRowsNoSelectAll:x=Ze.selectableRowsNoSelectAll,selectableRowsVisibleOnly:S=Ze.selectableRowsVisibleOnly,selectableRowSelected:E=Ze.selectableRowSelected,selectableRowDisabled:O=Ze.selectableRowDisabled,selectableRowsComponent:A=Ze.selectableRowsComponent,selectableRowsComponentProps:Z=Ze.selectableRowsComponentProps,onRowExpandToggled:M=Ze.onRowExpandToggled,onSelectedRowsChange:T=Ze.onSelectedRowsChange,expandableIcon:D=Ze.expandableIcon,onChangeRowsPerPage:j=Ze.onChangeRowsPerPage,onChangePage:$=Ze.onChangePage,paginationServer:N=Ze.paginationServer,paginationServerOptions:F=Ze.paginationServerOptions,paginationTotalRows:L=Ze.paginationTotalRows,paginationDefaultPage:H=Ze.paginationDefaultPage,paginationResetDefaultPage:_=Ze.paginationResetDefaultPage,paginationPerPage:z=Ze.paginationPerPage,paginationRowsPerPageOptions:W=Ze.paginationRowsPerPageOptions,paginationIconLastPage:B=Ze.paginationIconLastPage,paginationIconFirstPage:V=Ze.paginationIconFirstPage,paginationIconNext:G=Ze.paginationIconNext,paginationIconPrevious:q=Ze.paginationIconPrevious,paginationComponent:U=Ze.paginationComponent,paginationComponentOptions:K=Ze.paginationComponentOptions,responsive:Y=Ze.responsive,progressPending:X=Ze.progressPending,progressComponent:Q=Ze.progressComponent,persistTableHead:ee=Ze.persistTableHead,noDataComponent:te=Ze.noDataComponent,disabled:ne=Ze.disabled,noTableHead:re=Ze.noTableHead,noHeader:ie=Ze.noHeader,fixedHeader:se=Ze.fixedHeader,fixedHeaderScrollHeight:le=Ze.fixedHeaderScrollHeight,pagination:ce=Ze.pagination,subHeader:ue=Ze.subHeader,subHeaderAlign:de=Ze.subHeaderAlign,subHeaderWrap:fe=Ze.subHeaderWrap,subHeaderComponent:pe=Ze.subHeaderComponent,noContextMenu:he=Ze.noContextMenu,contextMessage:me=Ze.contextMessage,contextActions:ve=Ze.contextActions,contextComponent:be=Ze.contextComponent,expandableRows:ke=Ze.expandableRows,onRowClicked:Pe=Ze.onRowClicked,onRowDoubleClicked:Oe=Ze.onRowDoubleClicked,onRowMouseEnter:Ae=Ze.onRowMouseEnter,onRowMouseLeave:Ie=Ze.onRowMouseLeave,sortIcon:Me=Ze.sortIcon,onSort:Te=Ze.onSort,sortFunction:De=Ze.sortFunction,sortServer:je=Ze.sortServer,expandableRowsComponent:$e=Ze.expandableRowsComponent,expandableRowsComponentProps:Ne=Ze.expandableRowsComponentProps,expandableRowDisabled:He=Ze.expandableRowDisabled,expandableRowsHideExpander:_e=Ze.expandableRowsHideExpander,expandOnRowClicked:ze=Ze.expandOnRowClicked,expandOnRowDoubleClicked:We=Ze.expandOnRowDoubleClicked,expandableRowExpanded:Be=Ze.expandableRowExpanded,expandableInheritConditionalStyles:Ve=Ze.expandableInheritConditionalStyles,defaultSortFieldId:Ge=Ze.defaultSortFieldId,defaultSortAsc:Ue=Ze.defaultSortAsc,clearSelectedRows:Je=Ze.clearSelectedRows,conditionalRowStyles:Xe=Ze.conditionalRowStyles,theme:Qe=Ze.theme,customStyles:et=Ze.customStyles,direction:tt=Ze.direction,onColumnOrderChange:nt=Ze.onColumnOrderChange,className:rt}=e,{tableColumns:ot,draggingColumnId:it,handleDragStart:at,handleDragEnter:st,handleDragOver:lt,handleDragLeave:ct,handleDragEnd:ut,defaultSortDirection:dt,defaultSortColumn:ft}=Ye(n,nt,Ge,Ue),[{rowsPerPage:pt,currentPage:ht,selectedRows:gt,allSelected:mt,selectedCount:vt,selectedColumn:bt,sortDirection:yt,toggleOnSelectedRowsChange:wt},xt]=s.useReducer(C,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:ft,toggleOnSelectedRowsChange:!1,sortDirection:dt,currentPage:H,rowsPerPage:z,selectedRowsFlag:!1,contextMessage:Ze.contextMessage}),{persistSelectedOnSort:Ct=!1,persistSelectedOnPageChange:St=!1}=F,Rt=!(!N||!St&&!Ct),Et=ce&&!X&&t.length>0,kt=U||Fe,Pt=s.useMemo((()=>((e={},t="default",n="default")=>{const r=Ke[t]?t:n;return qe({table:{style:{color:(o=Ke[r]).text.primary,backgroundColor:o.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:o.text.primary,backgroundColor:o.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:o.background.default,minHeight:"52px"}},head:{style:{color:o.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:o.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:o.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:o.context.background,fontSize:"18px",fontWeight:400,color:o.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:o.text.primary,backgroundColor:o.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:o.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:o.selected.text,backgroundColor:o.selected.default,borderBottomColor:o.background.default}},highlightOnHoverStyle:{color:o.highlightOnHover.text,backgroundColor:o.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:o.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:o.background.default},stripedStyle:{color:o.striped.text,backgroundColor:o.striped.default}},expanderRow:{style:{color:o.text.primary,backgroundColor:o.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:o.button.default,fill:o.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:o.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:o.button.hover},"&:focus":{outline:"none",backgroundColor:o.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:o.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:o.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:o.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:o.button.default,fill:o.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:o.button.disabled,fill:o.button.disabled},"&:hover:not(:disabled)":{backgroundColor:o.button.hover},"&:focus":{outline:"none",backgroundColor:o.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:o.text.primary,backgroundColor:o.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:o.text.primary,backgroundColor:o.background.default}}},e);var o})(et,Qe)),[et,Qe]),Ot=s.useMemo((()=>Object.assign({},"auto"!==tt&&{dir:tt})),[tt]),At=s.useMemo((()=>{if(je)return t;if((null==bt?void 0:bt.sortFunction)&&"function"==typeof bt.sortFunction){const e=bt.sortFunction,n=yt===a.ASC?e:(t,n)=>-1*e(t,n);return[...t].sort(n)}return function(e,t,n,r){return t?r&&"function"==typeof r?r(e.slice(0),t,n):e.slice(0).sort(((e,r)=>{let o,i;if("string"==typeof t?(o=d(e,t),i=d(r,t)):(o=t(e),i=t(r)),"asc"===n){if(o<i)return-1;if(o>i)return 1}if("desc"===n){if(o>i)return-1;if(o<i)return 1}return 0})):e}(t,null==bt?void 0:bt.selector,yt,De)}),[je,bt,yt,t,De]),Zt=s.useMemo((()=>{if(ce&&!N){const e=ht*pt,t=e-pt;return At.slice(t,e)}return At}),[ht,ce,N,pt,At]),It=s.useCallback((e=>{xt(e)}),[]),Mt=s.useCallback((e=>{xt(e)}),[]),Tt=s.useCallback((e=>{xt(e)}),[]),Dt=s.useCallback(((e,t)=>Pe(e,t)),[Pe]),jt=s.useCallback(((e,t)=>Oe(e,t)),[Oe]),$t=s.useCallback(((e,t)=>Ae(e,t)),[Ae]),Nt=s.useCallback(((e,t)=>Ie(e,t)),[Ie]),Ft=s.useCallback((e=>xt({type:"CHANGE_PAGE",page:e,paginationServer:N,visibleOnly:S,persistSelectedOnPageChange:St})),[N,St,S]),Lt=s.useCallback((e=>{const t=g(L||Zt.length,e),n=m(ht,t);N||Ft(n),xt({type:"CHANGE_ROWS_PER_PAGE",page:n,rowsPerPage:e})}),[ht,Ft,N,L,Zt.length]);if(ce&&!N&&At.length>0&&0===Zt.length){const e=g(At.length,pt),t=m(ht,e);Ft(t)}Le((()=>{T({allSelected:mt,selectedCount:vt,selectedRows:gt.slice(0)})}),[wt]),Le((()=>{Te(bt,yt,At.slice(0))}),[bt,yt]),Le((()=>{$(ht,L||At.length)}),[ht]),Le((()=>{j(pt,ht)}),[pt]),Le((()=>{Ft(H)}),[H,_]),Le((()=>{if(ce&&N&&L>0){const e=g(L,pt),t=m(ht,e);ht!==t&&Ft(t)}}),[L]),s.useEffect((()=>{xt({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Je})}),[b,Je]),s.useEffect((()=>{if(!E)return;const e=At.filter((e=>E(e))),t=b?e.slice(0,1):e;xt({type:"SELECT_MULTIPLE_ROWS",keyField:l,selectedRows:t,totalRows:At.length,mergeSelections:Rt})}),[t,E]);const Ht=S?Zt:At,_t=St||b||x;return s.createElement(o.ThemeProvider,{theme:Pt},!ie&&(!!r||!!i)&&s.createElement(ge,{title:r,actions:i,showMenu:!he,selectedCount:vt,direction:tt,contextActions:ve,contextComponent:be,contextMessage:me}),ue&&s.createElement(ye,{align:de,wrapContent:fe},pe),s.createElement(xe,Object.assign({responsive:Y,fixedHeader:se,fixedHeaderScrollHeight:le,className:rt},Ot),s.createElement(Se,null,X&&!ee&&s.createElement(Ce,null,Q),s.createElement(R,{disabled:ne,className:"rdt_Table",role:"table"},!re&&(!!ee||At.length>0&&!X)&&s.createElement(k,{className:"rdt_TableHead",role:"rowgroup",fixedHeader:se},s.createElement(P,{className:"rdt_TableHeadRow",role:"row",dense:h},v&&(_t?s.createElement(I,{style:{flex:"0 0 48px"}}):s.createElement(ae,{allSelected:mt,selectedRows:gt,selectableRowsComponent:A,selectableRowsComponentProps:Z,selectableRowDisabled:O,rowData:Ht,keyField:l,mergeSelections:Rt,onSelectAllRows:Mt})),ke&&!_e&&s.createElement(Re,null),ot.map((e=>s.createElement(oe,{key:e.id,column:e,selectedColumn:bt,disabled:X||0===At.length,pagination:ce,paginationServer:N,persistSelectedOnSort:Ct,selectableRowsVisibleOnly:S,sortDirection:yt,sortIcon:Me,sortServer:je,onSort:It,onDragStart:at,onDragOver:lt,onDragEnd:ut,onDragEnter:st,onDragLeave:ct,draggingColumnId:it}))))),!At.length&&!X&&s.createElement(Ee,null,te),X&&ee&&s.createElement(Ce,null,Q),!X&&At.length>0&&s.createElement(we,{className:"rdt_TableBody",role:"rowgroup"},Zt.map(((e,t)=>{const n=u(e,l),r=function(e=""){return"number"!=typeof e&&(!e||0===e.length)}(n)?t:n,o=y(e,gt,l),i=!!(ke&&Be&&Be(e)),a=!!(ke&&He&&He(e));return s.createElement(J,{id:r,key:r,keyField:l,"data-row-id":r,columns:ot,row:e,rowCount:At.length,rowIndex:t,selectableRows:v,expandableRows:ke,expandableIcon:D,highlightOnHover:f,pointerOnHover:p,dense:h,expandOnRowClicked:ze,expandOnRowDoubleClicked:We,expandableRowsComponent:$e,expandableRowsComponentProps:Ne,expandableRowsHideExpander:_e,defaultExpanderDisabled:a,defaultExpanded:i,expandableInheritConditionalStyles:Ve,conditionalRowStyles:Xe,selected:o,selectableRowsHighlight:w,selectableRowsComponent:A,selectableRowsComponentProps:Z,selectableRowDisabled:O,selectableRowsSingle:b,striped:c,onRowExpandToggled:M,onRowClicked:Dt,onRowDoubleClicked:jt,onRowMouseEnter:$t,onRowMouseLeave:Nt,onSelectedRow:Tt,draggingColumnId:it,onDragStart:at,onDragOver:lt,onDragEnd:ut,onDragEnter:st,onDragLeave:ct})})))))),Et&&s.createElement("div",null,s.createElement(kt,{onChangePage:Ft,onChangeRowsPerPage:Lt,rowCount:L||At.length,currentPage:ht,rowsPerPage:pt,direction:tt,paginationRowsPerPageOptions:W,paginationIconLastPage:B,paginationIconFirstPage:V,paginationIconNext:G,paginationIconPrevious:q,paginationComponentOptions:K})))}));t.STOP_PROP_TAG="allowRowEvents",t.createTheme=function(e="default",t,n="default"){return Ke[e]||(Ke[e]=qe(Ke[n],t||{})),Ke[e]=qe(Ke[e],t||{}),Ke[e]},t.default=Je,t.defaultThemes=Ke},9921:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");n=Symbol.for("react.module.reference"),t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===s||e===a||e===f||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case g:case h:case l:return e;default:return t}}case o:return t}}}},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},7839:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9196);const o=function(e,t){var n,o=(n=(0,r.useRef)(!0)).current?(n.current=!1,!0):n.current;(0,r.useEffect)((function(){if(!o)return e()}),t)}},6774:e=>{e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},1256:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>He,StyleSheetConsumer:()=>oe,StyleSheetContext:()=>re,StyleSheetManager:()=>ue,ThemeConsumer:()=>Me,ThemeContext:()=>Ie,ThemeProvider:()=>Te,__PRIVATE__:()=>We,createGlobalStyle:()=>Fe,css:()=>we,default:()=>Be,isStyledComponent:()=>w,keyframes:()=>Le,useTheme:()=>ze,version:()=>C,withTheme:()=>_e});var r=n(9864),o=n(9196),i=n.n(o),a=n(6774),s=n.n(a);const l=function(e){function t(e,r,l,c,f){for(var p,h,g,m,w,C=0,S=0,R=0,E=0,k=0,M=0,D=g=p=0,$=0,N=0,F=0,L=0,H=l.length,_=H-1,z="",W="",B="",V="";$<H;){if(h=l.charCodeAt($),$===_&&0!==S+E+R+C&&(0!==S&&(h=47===S?10:47),E=R=C=0,H++,_++),0===S+E+R+C){if($===_&&(0<N&&(z=z.replace(d,"")),0<z.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:z+=l.charAt($)}h=59}switch(h){case 123:for(p=(z=z.trim()).charCodeAt(0),g=1,L=++$;$<H;){switch(h=l.charCodeAt($)){case 123:g++;break;case 125:g--;break;case 47:switch(h=l.charCodeAt($+1)){case 42:case 47:e:{for(D=$+1;D<_;++D)switch(l.charCodeAt(D)){case 47:if(42===h&&42===l.charCodeAt(D-1)&&$+2!==D){$=D+1;break e}break;case 10:if(47===h){$=D+1;break e}}$=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;$++<_&&l.charCodeAt($)!==h;);}if(0===g)break;$++}if(g=l.substring(L,$),0===p&&(p=(z=z.replace(u,"").trim()).charCodeAt(0)),64===p){switch(0<N&&(z=z.replace(d,"")),h=z.charCodeAt(1)){case 100:case 109:case 115:case 45:N=r;break;default:N=I}if(L=(g=t(r,N,g,h,f+1)).length,0<T&&(w=s(3,g,N=n(I,z,F),r,O,P,L,h,f,c),z=N.join(""),void 0!==w&&0===(L=(g=w.trim()).length)&&(h=0,g="")),0<L)switch(h){case 115:z=z.replace(x,a);case 100:case 109:case 45:g=z+"{"+g+"}";break;case 107:g=(z=z.replace(v,"$1 $2"))+"{"+g+"}",g=1===Z||2===Z&&i("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=z+g,112===c&&(W+=g,g="")}else g=""}else g=t(r,n(r,z,F),g,c,f+1);B+=g,g=F=N=D=p=0,z="",h=l.charCodeAt(++$);break;case 125:case 59:if(1<(L=(z=(0<N?z.replace(d,""):z).trim()).length))switch(0===D&&(p=z.charCodeAt(0),45===p||96<p&&123>p)&&(L=(z=z.replace(" ",":")).length),0<T&&void 0!==(w=s(1,z,r,e,O,P,W.length,c,f,c))&&0===(L=(z=w.trim()).length)&&(z="\0\0"),p=z.charCodeAt(0),h=z.charCodeAt(1),p){case 0:break;case 64:if(105===h||99===h){V+=z+l.charAt($);break}default:58!==z.charCodeAt(L-1)&&(W+=o(z,p,h,z.charCodeAt(2)))}F=N=D=p=0,z="",h=l.charCodeAt(++$)}}switch(h){case 13:case 10:47===S?S=0:0===1+p&&107!==c&&0<z.length&&(N=1,z+="\0"),0<T*j&&s(0,z,r,e,O,P,W.length,c,f,c),P=1,O++;break;case 59:case 125:if(0===S+E+R+C){P++;break}default:switch(P++,m=l.charAt($),h){case 9:case 32:if(0===E+C+S)switch(k){case 44:case 58:case 9:case 32:m="";break;default:32!==h&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+S+C&&(N=F=1,m="\f"+m);break;case 108:if(0===E+S+C+A&&0<D)switch($-D){case 2:112===k&&58===l.charCodeAt($-3)&&(A=k);case 8:111===M&&(A=M)}break;case 58:0===E+S+C&&(D=$);break;case 44:0===S+R+E+C&&(N=1,m+="\r");break;case 34:case 39:0===S&&(E=E===h?0:0===E?h:E);break;case 91:0===E+S+R&&C++;break;case 93:0===E+S+R&&C--;break;case 41:0===E+S+C&&R--;break;case 40:0===E+S+C&&(0===p&&(2*k+3*M==533||(p=1)),R++);break;case 64:0===S+R+E+C+D+g&&(g=1);break;case 42:case 47:if(!(0<E+C+R))switch(S){case 0:switch(2*h+3*l.charCodeAt($+1)){case 235:S=47;break;case 220:L=$,S=42}break;case 42:47===h&&42===k&&L+2!==$&&(33===l.charCodeAt(L+2)&&(W+=l.substring(L,$+1)),m="",S=0)}}0===S&&(z+=m)}M=k,k=h,$++}if(0<(L=W.length)){if(N=r,0<T&&void 0!==(w=s(2,W,N,e,O,P,L,c,f,c))&&0===(W=w).length)return V+W+B;if(W=N.join(",")+"{"+W+"}",0!=Z*A){switch(2!==Z||i(W,2)||(A=0),A){case 111:W=W.replace(y,":-moz-$1")+W;break;case 112:W=W.replace(b,"::-webkit-input-$1")+W.replace(b,"::-moz-$1")+W.replace(b,":-ms-input-$1")+W}A=0}}return V+W+B}function n(e,t,n){var o=t.trim().split(g);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<i;++s)for(var c=0;c<a;++c)t[l++]=r(e[c]+" ",o[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,n,r){var a=e+";",s=2*t+3*n+4*r;if(944===s){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===Z||2===Z&&i(l,1)?"-webkit-"+l+l:l}if(0===Z||2===Z&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(k,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return p.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===E.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+r&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),D(2!==t?r:r.replace(R,"$1"),n,t)}function a(e,t){var n=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(C," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,a,s,l,u){for(var d,f=0,p=t;f<T;++f)switch(d=M[f].call(c,e,p,n,r,o,i,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:p=d}if(p!==t)return p}function l(e){return void 0!==(e=e.prefix)&&(D=null,e?"function"!=typeof e?Z=1:(Z=2,D=e):Z=0),l}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<T){var o=s(-1,n,r,r,O,P,0,0,0,0);void 0!==o&&"string"==typeof o&&(n=o)}var i=t(I,r,n,0,0);return 0<T&&void 0!==(o=s(-2,i,r,r,O,P,i.length,0,0,0))&&(i=o),A=0,P=O=1,i}var u=/^\0+/g,d=/[\0\r\f]/g,f=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,g=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,y=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,C=/([\s\S]*?);/g,S=/-self|flex-/g,R=/[^]*?(:[rp][el]a[\w-]+)[^]*/,E=/stretch|:\s*\w+\-(?:conte|avail)/,k=/([^-])(image-set\()/,P=1,O=1,A=0,Z=1,I=[],M=[],T=0,D=null,j=0;return c.use=function e(t){switch(t){case void 0:case null:T=M.length=0;break;default:if("function"==typeof t)M[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else j=0|!!t}return e},c.set=l,void 0!==e&&l(e),c},c={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};var u=n(1068),d=n(8679),f=n.n(d);function p(){return(p=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)}var h=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,r.typeOf)(e)},m=Object.freeze([]),v=Object.freeze({});function b(e){return"function"==typeof e}function y(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var x="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="5.3.10",S="undefined"!=typeof window&&"HTMLElement"in window,R=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),E={};function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var P=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&k(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t},e}(),O=new Map,A=new Map,Z=1,I=function(e){if(O.has(e))return O.get(e);for(;A.has(Z);)Z++;var t=Z++;return O.set(e,t),A.set(t,e),t},M=function(e){return A.get(e)},T=function(e,t){t>=Z&&(Z=t+1),O.set(e,t),A.set(t,e)},D="style["+x+'][data-styled-version="5.3.10"]',j=new RegExp("^"+x+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),$=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},N=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,i=n.length;o<i;o++){var a=n[o].trim();if(a){var s=a.match(j);if(s){var l=0|parseInt(s[1],10),c=s[2];0!==l&&(T(c,l),$(e,c,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(a)}}},F=function(){return n.nc},L=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(x))return r}}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(x,"active"),r.setAttribute("data-styled-version","5.3.10");var a=F();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},H=function(){function e(e){var t=this.element=L(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}k(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),_=function(){function e(e){var t=this.element=L(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),z=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),W=S,B={isServer:!S,useCSSOMInjection:!R},V=function(){function e(e,t,n){void 0===e&&(e=v),void 0===t&&(t={}),this.options=p({},B,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&S&&W&&(W=!1,function(e){for(var t=document.querySelectorAll(D),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(x)&&(N(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(p({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new z(o):r?new H(o):new _(o),new P(e)));var e,t,n,r,o},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(I(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var i=M(o);if(void 0!==i){var a=e.names.get(i),s=t.getGroup(o);if(a&&s&&a.size){var l=x+".g"+o+'[id="'+i+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+l+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),G=/(a)(d)/gi,q=function(e){return String.fromCharCode(e+(e>25?39:97))};function U(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=q(t%52)+n;return(q(t%52)+n).replace(G,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return K(5381,e)};function J(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(b(n)&&!w(n))return!1}return!0}var X=Y("5.3.10"),Q=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&J(e),this.componentId=t,this.baseHash=K(X,t),this.baseStyle=n,V.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else{var i=be(this.rules,e,t,n).join(""),a=U(K(this.baseHash,i)>>>0);if(!t.hasNameForId(r,a)){var s=n(i,"."+a,void 0,r);t.insertRules(r,a,s)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=K(this.baseHash,n.hash),u="",d=0;d<l;d++){var f=this.rules[d];if("string"==typeof f)u+=f;else if(f){var p=be(f,e,t,n),h=Array.isArray(p)?p.join(""):p;c=K(c,h+d),u+=h}}if(u){var g=U(c>>>0);if(!t.hasNameForId(r,g)){var m=n(u,"."+g,void 0,r);t.insertRules(r,g,m)}o.push(g)}}return o.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function ne(e){var t,n,r,o,i=void 0===e?v:e,a=i.options,s=void 0===a?v:a,c=i.plugins,u=void 0===c?m:c,d=new l(s),f=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,l,c,u,d){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,i){return 0===r&&-1!==te.indexOf(i[n.length])||i.match(o)?e:"."+t};function g(e,i,a,s){void 0===s&&(s="&");var l=e.replace(ee,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=s,n=i,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),d(a||!i?"":i,c)}return d.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=f;return f=[],t}}])),g.hash=u.length?u.reduce((function(e,t){return t.name||k(15),K(e,t.name)}),5381).toString():"",g}var re=i().createContext(),oe=re.Consumer,ie=i().createContext(),ae=(ie.Consumer,new V),se=ne();function le(){return(0,o.useContext)(re)||ae}function ce(){return(0,o.useContext)(ie)||se}function ue(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],a=le(),l=(0,o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=(0,o.useMemo)((function(){return ne({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,o.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),i().createElement(re.Provider,{value:l},i().createElement(ie.Provider,{value:c},e.children))}var de=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=se);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return k(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=se),this.name+e.hash},e}(),fe=/([A-Z])/,pe=/([A-Z])/g,he=/^ms-/,ge=function(e){return"-"+e.toLowerCase()};function me(e){return fe.test(e)?e.replace(pe,ge).replace(he,"-ms-"):e}var ve=function(e){return null==e||!1===e||""===e};function be(e,t,n,r){if(Array.isArray(e)){for(var o,i=[],a=0,s=e.length;a<s;a+=1)""!==(o=be(e[a],t,n,r))&&(Array.isArray(o)?i.push.apply(i,o):i.push(o));return i}return ve(e)?"":w(e)?"."+e.styledComponentId:b(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:be(e(t),t,n,r):e instanceof de?n?(e.inject(n,r),e.getName(r)):e:g(e)?function e(t,n){var r,o,i=[];for(var a in t)t.hasOwnProperty(a)&&!ve(t[a])&&(Array.isArray(t[a])&&t[a].isCss||b(t[a])?i.push(me(a)+":",t[a],";"):g(t[a])?i.push.apply(i,e(t[a],a)):i.push(me(a)+": "+(r=a,(null==(o=t[a])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in c||r.startsWith("--")?String(o).trim():o+"px")+";")));return n?[n+" {"].concat(i,["}"]):i}(e):e.toString();var l}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function we(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(e)||g(e)?ye(be(h(m,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(be(h(e,n)))}new Set;var xe=function(e,t,n){return void 0===n&&(n=v),e.theme!==n.theme&&e.theme||t||n.theme},Ce=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Se=/(^-|-$)/g;function Re(e){return e.replace(Ce,"-").replace(Se,"")}var Ee=function(e){return U(Y(e)>>>0)};function ke(e){return"string"==typeof e&&!0}var Pe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Oe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ae(e,t,n){var r=e[n];Pe(t)&&Pe(r)?Ze(r,t):e[n]=t}function Ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,i=n;o<i.length;o++){var a=i[o];if(Pe(a))for(var s in a)Oe(s)&&Ae(e,a[s],s)}return e}var Ie=i().createContext(),Me=Ie.Consumer;function Te(e){var t=(0,o.useContext)(Ie),n=(0,o.useMemo)((function(){return function(e,t){return e?b(e)?e(t):Array.isArray(e)||"object"!=typeof e?k(8):t?p({},t,{},e):e:k(14)}(e.theme,t)}),[e.theme,t]);return e.children?i().createElement(Ie.Provider,{value:n},e.children):null}var De={};function je(e,t,n){var r=w(e),a=!ke(e),s=t.attrs,l=void 0===s?m:s,c=t.componentId,d=void 0===c?function(e,t){var n="string"!=typeof e?"sc":Re(e);De[n]=(De[n]||0)+1;var r=n+"-"+Ee("5.3.10"+n+De[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,h=t.displayName,g=void 0===h?function(e){return ke(e)?"styled."+e:"Styled("+y(e)+")"}(e):h,x=t.displayName&&t.componentId?Re(t.displayName)+"-"+t.componentId:t.componentId||d,C=r&&e.attrs?Array.prototype.concat(e.attrs,l).filter(Boolean):l,S=t.shouldForwardProp;r&&e.shouldForwardProp&&(S=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var R,E=new Q(n,x,r?e.componentStyle:void 0),k=E.isStatic&&0===l.length,P=function(e,t){return function(e,t,n,r){var i=e.attrs,a=e.componentStyle,s=e.defaultProps,l=e.foldedComponentIds,c=e.shouldForwardProp,d=e.styledComponentId,f=e.target,h=function(e,t,n){void 0===e&&(e=v);var r=p({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,i,a=e;for(t in b(a)&&(a=a(r)),a)r[t]=o[t]="className"===t?(n=o[t],i=a[t],n&&i?n+" "+i:n||i):a[t]})),[r,o]}(xe(t,(0,o.useContext)(Ie),s)||v,t,i),g=h[0],m=h[1],y=function(e,t,n,r){var o=le(),i=ce();return t?e.generateAndInjectStyles(v,o,i):e.generateAndInjectStyles(n,o,i)}(a,r,g),w=n,x=m.$as||t.$as||m.as||t.as||f,C=ke(x),S=m!==t?p({},t,{},m):t,R={};for(var E in S)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?R.as=S[E]:(c?c(E,u.Z,x):!C||(0,u.Z)(E))&&(R[E]=S[E]));return t.style&&m.style!==t.style&&(R.style=p({},t.style,{},m.style)),R.className=Array.prototype.concat(l,d,y!==d?y:null,t.className,m.className).filter(Boolean).join(" "),R.ref=w,(0,o.createElement)(x,R)}(R,e,t,k)};return P.displayName=g,(R=i().forwardRef(P)).attrs=C,R.componentStyle=E,R.displayName=g,R.shouldForwardProp=S,R.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,R.styledComponentId=x,R.target=r?e.target:e,R.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),i=r&&r+"-"+(ke(e)?e:Re(y(e)));return je(e,p({},o,{attrs:C,componentId:i}),n)},Object.defineProperty(R,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ze({},e.defaultProps,t):t}}),Object.defineProperty(R,"toString",{value:function(){return"."+R.styledComponentId}}),a&&f()(R,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),R}var $e=function(e){return function e(t,n,o){if(void 0===o&&(o=v),!(0,r.isValidElementType)(n))return k(1,String(n));var i=function(){return t(n,o,we.apply(void 0,arguments))};return i.withConfig=function(r){return e(t,n,p({},o,{},r))},i.attrs=function(r){return e(t,n,p({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},i}(je,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){$e[e]=$e(e)}));var Ne=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=J(e),V.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(be(this.rules,t,n,r).join(""),""),i=this.componentId+e;n.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&V.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Fe(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 a=we.apply(void 0,[e].concat(n)),s="sc-global-"+Ee(JSON.stringify(a)),l=new Ne(a,s);function c(e){var t=le(),n=ce(),r=(0,o.useContext)(Ie),i=(0,o.useRef)(t.allocateGSInstance(s)).current;return t.server&&u(i,e,t,r,n),(0,o.useLayoutEffect)((function(){if(!t.server)return u(i,e,t,r,n),function(){return l.removeStyles(i,t)}}),[i,e,t,r,n]),null}function u(e,t,n,r,o){if(l.isStatic)l.renderStyles(e,E,n,o);else{var i=p({},t,{theme:xe(t,r,c.defaultProps)});l.renderStyles(e,i,n,o)}}return i().memo(c)}function Le(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=we.apply(void 0,[e].concat(n)).join(""),i=Ee(o);return new de(i,o)}var He=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=F();return"<style "+[n&&'nonce="'+n+'"',x+'="true"','data-styled-version="5.3.10"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?k(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return k(2);var n=((t={})[x]="",t["data-styled-version"]="5.3.10",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=F();return r&&(n.nonce=r),[i().createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?k(2):i().createElement(ue,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return k(3)},e}(),_e=function(e){var t=i().forwardRef((function(t,n){var r=(0,o.useContext)(Ie),a=e.defaultProps,s=xe(t,r,a);return i().createElement(e,p({},t,{theme:s,ref:n}))}));return f()(t,e),t.displayName="WithTheme("+y(e)+")",t},ze=function(){return(0,o.useContext)(Ie)},We={StyleSheet:V,masterSheet:ae};const Be=$e},907:(e,t,n)=>{"use strict";function r(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}n.d(t,{Z:()=>r})},7326:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},5671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},3144:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9142);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.Z)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4942:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},5987:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3366);function o(e,t){if(null==e)return{};var n,o,i=(0,r.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},1037:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(181);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,_x,i,a=[],_n=!0,s=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(r=_x.call(n)).done)&&(a.push(r.value),a.length!==t);_n=!0);}catch(e){s=!0,o=e}finally{try{if(!_n&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return a}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(907),o=n(181);function i(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(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.")}()}},9142:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(1002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:(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)}n.d(t,{Z:()=>r})},181:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(907);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(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)?(0,r.Z)(e,t):void 0}}}}]); build/964.js 0000666 00000172051 15165313625 0006544 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[964],{9964:(e,t,n)=>{n.r(t),n.d(t,{createFilterOptions:()=>ft,default:()=>xt});var o=n(5987),r=n(4942),i=n(7462),a=n(9196),l=n.n(a),c=n(6010),s=n(4670),u="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,p=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(u&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),d=u&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),p))}};function f(e){return e&&"[object Function]"==={}.toString.call(e)}function h(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function m(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function g(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=h(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+o)?e:g(m(e))}function v(e){return e&&e.referenceNode?e.referenceNode:e}var b=u&&!(!window.MSInputMethodContext||!document.documentMode),y=u&&/MSIE 10/.test(navigator.userAgent);function x(e){return 11===e?b:10===e?y:b||y}function w(e){if(!e)return document.documentElement;for(var t=x(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===h(n,"position")?w(n):n:e?e.ownerDocument.documentElement:document.documentElement}function E(e){return null!==e.parentNode?E(e.parentNode):e}function C(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?e:t,r=n?t:e,i=document.createRange();i.setStart(o,0),i.setEnd(r,0);var a,l,c=i.commonAncestorContainer;if(e!==c&&t!==c||o.contains(r))return"BODY"===(l=(a=c).nodeName)||"HTML"!==l&&w(a.firstElementChild)!==a?w(c):c;var s=E(e);return s.host?C(s.host,t):C(e,E(t).host)}function k(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[t]}return e[t]}function O(e,t){var n="x"===t?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+o+"Width"])}function S(e,t,n,o){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],x(10)?parseInt(n["offset"+e])+parseInt(o["margin"+("Height"===e?"Top":"Left")])+parseInt(o["margin"+("Height"===e?"Bottom":"Right")]):0)}function T(e){var t=e.body,n=e.documentElement,o=x(10)&&getComputedStyle(n);return{height:S("Height",t,n,o),width:S("Width",t,n,o)}}var I=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),Z=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function R(e){return L({},e,{right:e.left+e.width,bottom:e.top+e.height})}function P(e){var t={};try{if(x(10)){t=e.getBoundingClientRect();var n=k(e,"top"),o=k(e,"left");t.top+=n,t.left+=o,t.bottom+=n,t.right+=o}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?T(e.ownerDocument):{},a=i.width||e.clientWidth||r.width,l=i.height||e.clientHeight||r.height,c=e.offsetWidth-a,s=e.offsetHeight-l;if(c||s){var u=h(e);c-=O(u,"x"),s-=O(u,"y"),r.width-=c,r.height-=s}return R(r)}function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=x(10),r="HTML"===t.nodeName,i=P(e),a=P(t),l=g(e),c=h(t),s=parseFloat(c.borderTopWidth),u=parseFloat(c.borderLeftWidth);n&&r&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=R({top:i.top-a.top-s,left:i.left-a.left-u,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!o&&r){var d=parseFloat(c.marginTop),f=parseFloat(c.marginLeft);p.top-=s-d,p.bottom-=s-d,p.left-=u-f,p.right-=u-f,p.marginTop=d,p.marginLeft=f}return(o&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=k(t,"top"),r=k(t,"left"),i=n?-1:1;return e.top+=o*i,e.bottom+=o*i,e.left+=r*i,e.right+=r*i,e}(p,t)),p}function M(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===h(e,"position"))return!0;var n=m(e);return!!n&&M(n)}function N(e){if(!e||!e.parentElement||x())return document.documentElement;for(var t=e.parentElement;t&&"none"===h(t,"transform");)t=t.parentElement;return t||document.documentElement}function F(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=r?N(e):C(e,v(t));if("viewport"===o)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,o=D(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:k(n),l=t?0:k(n,"left");return R({top:a-o.top+o.marginTop,left:l-o.left+o.marginLeft,width:r,height:i})}(a,r);else{var l=void 0;"scrollParent"===o?"BODY"===(l=g(m(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===o?e.ownerDocument.documentElement:o;var c=D(l,a,r);if("HTML"!==l.nodeName||M(a))i=c;else{var s=T(e.ownerDocument),u=s.height,p=s.width;i.top+=c.top-c.marginTop,i.bottom=u+c.top,i.left+=c.left-c.marginLeft,i.right=p+c.left}}var d="number"==typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function A(e){return e.width*e.height}function $(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=F(n,o,i,r),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(l).map((function(e){return L({key:e},l[e],{area:A(l[e])})})).sort((function(e,t){return t.area-e.area})),s=c.filter((function(e){var t=e.width,o=e.height;return t>=n.clientWidth&&o>=n.clientHeight})),u=s.length>0?s[0].key:c[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function H(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return D(n,o?N(t):C(t,v(n)),o)}function z(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),o=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+o,height:e.offsetHeight+n}}function B(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function V(e,t,n){n=n.split("-")[0];var o=z(e),r={width:o.width,height:o.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",l=i?"left":"top",c=i?"height":"width",s=i?"width":"height";return r[a]=t[a]+t[c]/2-o[c]/2,r[l]=n===l?t[l]-o[s]:t[B(l)],r}function W(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function U(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var o=W(e,(function(e){return e[t]===n}));return e.indexOf(o)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&f(n)&&(t.offsets.popper=R(t.offsets.popper),t.offsets.reference=R(t.offsets.reference),t=n(t,e))})),t}function q(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=H(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=$(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=V(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=U(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function j(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function K(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),o=0;o<t.length;o++){var r=t[o],i=r?""+r+n:e;if(void 0!==document.body.style[i])return i}return null}function Y(){return this.state.isDestroyed=!0,j(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[K("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function _(e){var t=e.ownerDocument;return t?t.defaultView:window}function X(e,t,n,o){var r="BODY"===e.nodeName,i=r?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),r||X(g(i.parentNode),t,n,o),o.push(i)}function G(e,t,n,o){n.updateBound=o,_(e).addEventListener("resize",n.updateBound,{passive:!0});var r=g(e);return X(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function J(){this.state.eventsEnabled||(this.state=G(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,_(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function ee(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function te(e,t){Object.keys(t).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ee(t[n])&&(o="px"),e.style[n]=t[n]+o}))}var ne=u&&/Firefox/i.test(navigator.userAgent);function oe(e,t,n){var o=W(e,(function(e){return e.name===t})),r=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));if(!r){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return r}var re=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ie=re.slice(3);function ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ie.indexOf(e),o=ie.slice(n+1).concat(ie.slice(0,n));return t?o.reverse():o}var le={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],o=t.split("-")[1];if(o){var r=e.offsets,i=r.reference,a=r.popper,l=-1!==["bottom","top"].indexOf(n),c=l?"left":"top",s=l?"width":"height",u={start:Z({},c,i[c]),end:Z({},c,i[c]+i[s]-a[s])};e.offsets.popper=L({},a,u[o])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,o=t.offset,r=e.placement,i=e.offsets,a=i.popper,l=i.reference,c=r.split("-")[0];return n=ee(+o)?[+o,0]:function(e,t,n,o){var r=[0,0],i=-1!==["right","left"].indexOf(o),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),l=a.indexOf(W(a,(function(e){return-1!==e.search(/,|\s/)})));a[l]&&-1===a[l].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,s=-1!==l?[a.slice(0,l).concat([a[l].split(c)[0]]),[a[l].split(c)[1]].concat(a.slice(l+1))]:[a];return(s=s.map((function(e,o){var r=(1===o?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,o){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+r[1],a=r[2];return i?0===a.indexOf("%")?R("%p"===a?n:o)[t]/100*i:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e}(e,r,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,o){ee(n)&&(r[t]+=n*("-"===e[o-1]?-1:1))}))})),r}(o,a,l,c),"left"===c?(a.top+=n[0],a.left-=n[1]):"right"===c?(a.top+=n[0],a.left+=n[1]):"top"===c?(a.left+=n[0],a.top-=n[1]):"bottom"===c&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||w(e.instance.popper);e.instance.reference===n&&(n=w(n));var o=K("transform"),r=e.instance.popper.style,i=r.top,a=r.left,l=r[o];r.top="",r.left="",r[o]="";var c=F(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=i,r.left=a,r[o]=l,t.boundaries=c;var s=t.priority,u=e.offsets.popper,p={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),Z({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(o=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),Z({},n,o)}};return s.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=L({},u,p[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,o=t.reference,r=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(r),l=a?"right":"bottom",c=a?"left":"top",s=a?"width":"height";return n[l]<i(o[c])&&(e.offsets.popper[c]=i(o[c])-n[s]),n[c]>i(o[l])&&(e.offsets.popper[c]=i(o[l])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!oe(e.instance.modifiers,"arrow","keepTogether"))return e;var o=t.element;if("string"==typeof o){if(!(o=e.instance.popper.querySelector(o)))return e}else if(!e.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],i=e.offsets,a=i.popper,l=i.reference,c=-1!==["left","right"].indexOf(r),s=c?"height":"width",u=c?"Top":"Left",p=u.toLowerCase(),d=c?"left":"top",f=c?"bottom":"right",m=z(o)[s];l[f]-m<a[p]&&(e.offsets.popper[p]-=a[p]-(l[f]-m)),l[p]+m>a[f]&&(e.offsets.popper[p]+=l[p]+m-a[f]),e.offsets.popper=R(e.offsets.popper);var g=l[p]+l[s]/2-m/2,v=h(e.instance.popper),b=parseFloat(v["margin"+u]),y=parseFloat(v["border"+u+"Width"]),x=g-e.offsets.popper[p]-b-y;return x=Math.max(Math.min(a[s]-m,x),0),e.arrowElement=o,e.offsets.arrow=(Z(n={},p,Math.round(x)),Z(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(j(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=F(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),o=e.placement.split("-")[0],r=B(o),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[o,r];break;case"clockwise":a=ae(o);break;case"counterclockwise":a=ae(o,!0);break;default:a=t.behavior}return a.forEach((function(l,c){if(o!==l||a.length===c+1)return e;o=e.placement.split("-")[0],r=B(o);var s=e.offsets.popper,u=e.offsets.reference,p=Math.floor,d="left"===o&&p(s.right)>p(u.left)||"right"===o&&p(s.left)<p(u.right)||"top"===o&&p(s.bottom)>p(u.top)||"bottom"===o&&p(s.top)<p(u.bottom),f=p(s.left)<p(n.left),h=p(s.right)>p(n.right),m=p(s.top)<p(n.top),g=p(s.bottom)>p(n.bottom),v="left"===o&&f||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,b=-1!==["top","bottom"].indexOf(o),y=!!t.flipVariations&&(b&&"start"===i&&f||b&&"end"===i&&h||!b&&"start"===i&&m||!b&&"end"===i&&g),x=!!t.flipVariationsByContent&&(b&&"start"===i&&h||b&&"end"===i&&f||!b&&"start"===i&&g||!b&&"end"===i&&m),w=y||x;(d||v||w)&&(e.flipped=!0,(d||v)&&(o=a[c+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=o+(i?"-"+i:""),e.offsets.popper=L({},e.offsets.popper,V(e.instance.popper,e.offsets.reference,e.placement)),e=U(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],o=e.offsets,r=o.popper,i=o.reference,a=-1!==["left","right"].indexOf(n),l=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=i[n]-(l?r[a?"width":"height"]:0),e.placement=B(t),e.offsets.popper=R(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!oe(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=W(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,o=t.y,r=e.offsets.popper,i=W(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,l,c=void 0!==i?i:t.gpuAcceleration,s=w(e.instance.popper),u=P(s),p={position:r.position},d=function(e,t){var n=e.offsets,o=n.popper,r=n.reference,i=Math.round,a=Math.floor,l=function(e){return e},c=i(r.width),s=i(o.width),u=-1!==["left","right"].indexOf(e.placement),p=-1!==e.placement.indexOf("-"),d=t?u||p||c%2==s%2?i:a:l,f=t?i:l;return{left:d(c%2==1&&s%2==1&&!p&&t?o.left-1:o.left),top:f(o.top),bottom:f(o.bottom),right:d(o.right)}}(e,window.devicePixelRatio<2||!ne),f="bottom"===n?"top":"bottom",h="right"===o?"left":"right",m=K("transform");if(l="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-u.height+d.bottom:d.top,a="right"===h?"HTML"===s.nodeName?-s.clientWidth+d.right:-u.width+d.right:d.left,c&&m)p[m]="translate3d("+a+"px, "+l+"px, 0)",p[f]=0,p[h]=0,p.willChange="transform";else{var g="bottom"===f?-1:1,v="right"===h?-1:1;p[f]=l*g,p[h]=a*v,p.willChange=f+", "+h}var b={"x-placement":e.placement};return e.attributes=L({},b,e.attributes),e.styles=L({},p,e.styles),e.arrowStyles=L({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return te(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&te(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,o,r){var i=H(r,t,e,n.positionFixed),a=$(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),te(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ce={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:le},se=function(){function e(t,n){var o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=d(this.update.bind(this)),this.options=L({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(L({},e.Defaults.modifiers,r.modifiers)).forEach((function(t){o.options.modifiers[t]=L({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return L({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&f(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return I(e,[{key:"update",value:function(){return q.call(this)}},{key:"destroy",value:function(){return Y.call(this)}},{key:"enableEventListeners",value:function(){return J.call(this)}},{key:"disableEventListeners",value:function(){return Q.call(this)}}]),e}();se.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,se.placements=re,se.Defaults=ce;const ue=se;var pe=n(159),de=n(6234),fe=n(2568),he=n(4236),me=n(7294);function ge(e){return"function"==typeof e?e():e}var ve="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,be={},ye=a.forwardRef((function(e,t){var n=e.anchorEl,r=e.children,l=e.container,c=e.disablePortal,s=void 0!==c&&c,u=e.keepMounted,p=void 0!==u&&u,d=e.modifiers,f=e.open,h=e.placement,m=void 0===h?"bottom":h,g=e.popperOptions,v=void 0===g?be:g,b=e.popperRef,y=e.style,x=e.transition,w=void 0!==x&&x,E=(0,o.Z)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),C=a.useRef(null),k=(0,me.Z)(C,t),O=a.useRef(null),S=(0,me.Z)(O,b),T=a.useRef(S);ve((function(){T.current=S}),[S]),a.useImperativeHandle(b,(function(){return O.current}),[]);var I=a.useState(!0),Z=I[0],L=I[1],R=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(m,(0,pe.Z)()),P=a.useState(R),D=P[0],M=P[1];a.useEffect((function(){O.current&&O.current.update()}));var N=a.useCallback((function(){if(C.current&&n&&f){O.current&&(O.current.destroy(),T.current(null));var e=function(e){M(e.placement)},t=(ge(n),new ue(ge(n),C.current,(0,i.Z)({placement:R},v,{modifiers:(0,i.Z)({},s?{}:{preventOverflow:{boundariesElement:"window"}},d,v.modifiers),onCreate:(0,fe.Z)(e,v.onCreate),onUpdate:(0,fe.Z)(e,v.onUpdate)})));T.current(t)}}),[n,s,d,f,R,v]),F=a.useCallback((function(e){(0,he.Z)(k,e),N()}),[k,N]),A=function(){O.current&&(O.current.destroy(),T.current(null))};if(a.useEffect((function(){return function(){A()}}),[]),a.useEffect((function(){f||w||A()}),[f,w]),!p&&!f&&(!w||Z))return null;var $={placement:D};return w&&($.TransitionProps={in:f,onEnter:function(){L(!1)},onExited:function(){L(!0),A()}}),a.createElement(de.Z,{disablePortal:s,container:l},a.createElement("div",(0,i.Z)({ref:F,role:"tooltip"},E,{style:(0,i.Z)({position:"fixed",top:0,left:0,display:f||!p||w?null:"none"},y)}),"function"==typeof r?r($):r))}));const xe=ye;var we=n(3871),Ee=a.forwardRef((function(e,t){var n=e.classes,r=e.className,l=e.color,s=void 0===l?"default":l,u=e.component,p=void 0===u?"li":u,d=e.disableGutters,f=void 0!==d&&d,h=e.disableSticky,m=void 0!==h&&h,g=e.inset,v=void 0!==g&&g,b=(0,o.Z)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return a.createElement(p,(0,i.Z)({className:(0,c.Z)(n.root,r,"default"!==s&&n["color".concat((0,we.Z)(s))],v&&n.inset,!m&&n.sticky,!f&&n.gutters),ref:t},b))}));const Ce=(0,s.Z)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(Ee);var ke=n(9895),Oe=n(9693),Se=n(1850),Te=n(5192),Ie=!0,Ze=!1,Le=null,Re={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pe(e){e.metaKey||e.altKey||e.ctrlKey||(Ie=!0)}function De(){Ie=!1}function Me(){"hidden"===this.visibilityState&&Ze&&(Ie=!0)}function Ne(e){var t,n,o,r=e.target;try{return r.matches(":focus-visible")}catch(e){}return Ie||(n=(t=r).type,!("INPUT"!==(o=t.tagName)||!Re[n]||t.readOnly)||"TEXTAREA"===o&&!t.readOnly||!!t.isContentEditable)}function Fe(){Ze=!0,window.clearTimeout(Le),Le=window.setTimeout((function(){Ze=!1}),100)}function Ae(){return{isFocusVisible:Ne,onBlurVisible:Fe,ref:a.useCallback((function(e){var t,n=Se.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Pe,!0),t.addEventListener("mousedown",De,!0),t.addEventListener("pointerdown",De,!0),t.addEventListener("touchstart",De,!0),t.addEventListener("visibilitychange",Me,!0))}),[])}}var $e=n(2982),He=n(3366),ze=n(7326),Be=n(1721),Ve=n(220);function We(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,a.isValidElement)(e)?t(e):e}(e)})),n}function Ue(e,t,n){return null!=n[t]?n[t]:e.props[t]}function qe(e,t,n){var o=We(e.children),r=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var l={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var s=r[c][o];l[r[c][o]]=n(s)}l[c]=n(c)}for(o=0;o<i.length;o++)l[i[o]]=n(i[o]);return l}(t,o);return Object.keys(r).forEach((function(i){var l=r[i];if((0,a.isValidElement)(l)){var c=i in t,s=i in o,u=t[i],p=(0,a.isValidElement)(u)&&!u.props.in;!s||c&&!p?s||!c||p?s&&c&&(0,a.isValidElement)(u)&&(r[i]=(0,a.cloneElement)(l,{onExited:n.bind(null,l),in:u.props.in,exit:Ue(l,"exit",e),enter:Ue(l,"enter",e)})):r[i]=(0,a.cloneElement)(l,{in:!1}):r[i]=(0,a.cloneElement)(l,{onExited:n.bind(null,l),in:!0,exit:Ue(l,"exit",e),enter:Ue(l,"enter",e)})}})),r}var je=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ke=function(e){function t(t,n){var o,r=(o=e.call(this,t,n)||this).handleExited.bind((0,ze.Z)(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}(0,Be.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,o,r=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,o=i,We(n.children,(function(e){return(0,a.cloneElement)(e,{onExited:o.bind(null,e),in:!0,appear:Ue(e,"appear",n),enter:Ue(e,"enter",n),exit:Ue(e,"exit",n)})}))):qe(e,r,i),firstRender:!1}},n.handleExited=function(e,t){var n=We(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,i.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=(0,He.Z)(e,["component","childFactory"]),r=this.state.contextValue,i=je(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?l().createElement(Ve.Z.Provider,{value:r},i):l().createElement(Ve.Z.Provider,{value:r},l().createElement(t,o,i))},t}(l().Component);Ke.propTypes={},Ke.defaultProps={component:"div",childFactory:function(e){return e}};const Ye=Ke;var _e="undefined"==typeof window?a.useEffect:a.useLayoutEffect;const Xe=function(e){var t=e.classes,n=e.pulsate,o=void 0!==n&&n,r=e.rippleX,i=e.rippleY,l=e.rippleSize,s=e.in,u=e.onExited,p=void 0===u?function(){}:u,d=e.timeout,f=a.useState(!1),h=f[0],m=f[1],g=(0,c.Z)(t.ripple,t.rippleVisible,o&&t.ripplePulsate),v={width:l,height:l,top:-l/2+i,left:-l/2+r},b=(0,c.Z)(t.child,h&&t.childLeaving,o&&t.childPulsate),y=(0,Te.Z)(p);return _e((function(){if(!s){m(!0);var e=setTimeout(y,d);return function(){clearTimeout(e)}}}),[y,s,d]),a.createElement("span",{className:g,style:v},a.createElement("span",{className:b}))};var Ge=a.forwardRef((function(e,t){var n=e.center,r=void 0!==n&&n,l=e.classes,s=e.className,u=(0,o.Z)(e,["center","classes","className"]),p=a.useState([]),d=p[0],f=p[1],h=a.useRef(0),m=a.useRef(null);a.useEffect((function(){m.current&&(m.current(),m.current=null)}),[d]);var g=a.useRef(!1),v=a.useRef(null),b=a.useRef(null),y=a.useRef(null);a.useEffect((function(){return function(){clearTimeout(v.current)}}),[]);var x=a.useCallback((function(e){var t=e.pulsate,n=e.rippleX,o=e.rippleY,r=e.rippleSize,i=e.cb;f((function(e){return[].concat((0,$e.Z)(e),[a.createElement(Xe,{key:h.current,classes:l,timeout:550,pulsate:t,rippleX:n,rippleY:o,rippleSize:r})])})),h.current+=1,m.current=i}),[l]),w=a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=t.pulsate,i=void 0!==o&&o,a=t.center,l=void 0===a?r||t.pulsate:a,c=t.fakeElement,s=void 0!==c&&c;if("mousedown"===e.type&&g.current)g.current=!1;else{"touchstart"===e.type&&(g.current=!0);var u,p,d,f=s?null:y.current,h=f?f.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(l||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(h.width/2),p=Math.round(h.height/2);else{var m=e.touches?e.touches[0]:e,w=m.clientX,E=m.clientY;u=Math.round(w-h.left),p=Math.round(E-h.top)}if(l)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(d+=1);else{var C=2*Math.max(Math.abs((f?f.clientWidth:0)-u),u)+2,k=2*Math.max(Math.abs((f?f.clientHeight:0)-p),p)+2;d=Math.sqrt(Math.pow(C,2)+Math.pow(k,2))}e.touches?null===b.current&&(b.current=function(){x({pulsate:i,rippleX:u,rippleY:p,rippleSize:d,cb:n})},v.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):x({pulsate:i,rippleX:u,rippleY:p,rippleSize:d,cb:n})}}),[r,x]),E=a.useCallback((function(){w({},{pulsate:!0})}),[w]),C=a.useCallback((function(e,t){if(clearTimeout(v.current),"touchend"===e.type&&b.current)return e.persist(),b.current(),b.current=null,void(v.current=setTimeout((function(){C(e,t)})));b.current=null,f((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return a.useImperativeHandle(t,(function(){return{pulsate:E,start:w,stop:C}}),[E,w,C]),a.createElement("span",(0,i.Z)({className:(0,c.Z)(l.root,s),ref:y},u),a.createElement(Ye,{component:null,exit:!0},d))}));const Je=(0,s.Z)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(a.memo(Ge));var Qe=a.forwardRef((function(e,t){var n=e.action,r=e.buttonRef,l=e.centerRipple,s=void 0!==l&&l,u=e.children,p=e.classes,d=e.className,f=e.component,h=void 0===f?"button":f,m=e.disabled,g=void 0!==m&&m,v=e.disableRipple,b=void 0!==v&&v,y=e.disableTouchRipple,x=void 0!==y&&y,w=e.focusRipple,E=void 0!==w&&w,C=e.focusVisibleClassName,k=e.onBlur,O=e.onClick,S=e.onFocus,T=e.onFocusVisible,I=e.onKeyDown,Z=e.onKeyUp,L=e.onMouseDown,R=e.onMouseLeave,P=e.onMouseUp,D=e.onTouchEnd,M=e.onTouchMove,N=e.onTouchStart,F=e.onDragLeave,A=e.tabIndex,$=void 0===A?0:A,H=e.TouchRippleProps,z=e.type,B=void 0===z?"button":z,V=(0,o.Z)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),W=a.useRef(null),U=a.useRef(null),q=a.useState(!1),j=q[0],K=q[1];g&&j&&K(!1);var Y=Ae(),_=Y.isFocusVisible,X=Y.onBlurVisible,G=Y.ref;function J(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x;return(0,Te.Z)((function(o){return t&&t(o),!n&&U.current&&U.current[e](o),!0}))}a.useImperativeHandle(n,(function(){return{focusVisible:function(){K(!0),W.current.focus()}}}),[]),a.useEffect((function(){j&&E&&!b&&U.current.pulsate()}),[b,E,j]);var Q=J("start",L),ee=J("stop",F),te=J("stop",P),ne=J("stop",(function(e){j&&e.preventDefault(),R&&R(e)})),oe=J("start",N),re=J("stop",D),ie=J("stop",M),ae=J("stop",(function(e){j&&(X(e),K(!1)),k&&k(e)}),!1),le=(0,Te.Z)((function(e){W.current||(W.current=e.currentTarget),_(e)&&(K(!0),T&&T(e)),S&&S(e)})),ce=function(){var e=Se.findDOMNode(W.current);return h&&"button"!==h&&!("A"===e.tagName&&e.href)},se=a.useRef(!1),ue=(0,Te.Z)((function(e){E&&!se.current&&j&&U.current&&" "===e.key&&(se.current=!0,e.persist(),U.current.stop(e,(function(){U.current.start(e)}))),e.target===e.currentTarget&&ce()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&ce()&&"Enter"===e.key&&!g&&(e.preventDefault(),O&&O(e))})),pe=(0,Te.Z)((function(e){E&&" "===e.key&&U.current&&j&&!e.defaultPrevented&&(se.current=!1,e.persist(),U.current.stop(e,(function(){U.current.pulsate(e)}))),Z&&Z(e),O&&e.target===e.currentTarget&&ce()&&" "===e.key&&!e.defaultPrevented&&O(e)})),de=h;"button"===de&&V.href&&(de="a");var fe={};"button"===de?(fe.type=B,fe.disabled=g):("a"===de&&V.href||(fe.role="button"),fe["aria-disabled"]=g);var he=(0,me.Z)(r,t),ge=(0,me.Z)(G,W),ve=(0,me.Z)(he,ge),be=a.useState(!1),ye=be[0],xe=be[1];a.useEffect((function(){xe(!0)}),[]);var we=ye&&!b&&!g;return a.createElement(de,(0,i.Z)({className:(0,c.Z)(p.root,d,j&&[p.focusVisible,C],g&&p.disabled),onBlur:ae,onClick:O,onFocus:le,onKeyDown:ue,onKeyUp:pe,onMouseDown:Q,onMouseLeave:ne,onMouseUp:te,onDragLeave:ee,onTouchEnd:re,onTouchMove:ie,onTouchStart:oe,ref:ve,tabIndex:g?-1:$},fe,V),u,we?a.createElement(Je,(0,i.Z)({ref:U,center:s},H)):null)}));const et=(0,s.Z)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Qe);var tt=a.forwardRef((function(e,t){var n=e.edge,r=void 0!==n&&n,l=e.children,s=e.classes,u=e.className,p=e.color,d=void 0===p?"default":p,f=e.disabled,h=void 0!==f&&f,m=e.disableFocusRipple,g=void 0!==m&&m,v=e.size,b=void 0===v?"medium":v,y=(0,o.Z)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return a.createElement(et,(0,i.Z)({className:(0,c.Z)(s.root,u,"default"!==d&&s["color".concat((0,we.Z)(d))],h&&s.disabled,"small"===b&&s["size".concat((0,we.Z)(b))],{start:s.edgeStart,end:s.edgeEnd}[r]),centerRipple:!0,focusRipple:!g,disabled:h,ref:t},y),a.createElement("span",{className:s.label},l))}));const nt=(0,s.Z)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:(0,Oe.Fq)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:(0,Oe.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:(0,Oe.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(tt);var ot=n(5209);const rt=(0,ot.Z)(a.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function it(e){return"Backspace"===e.key||"Delete"===e.key}var at=a.forwardRef((function(e,t){var n=e.avatar,r=e.classes,l=e.className,s=e.clickable,u=e.color,p=void 0===u?"default":u,d=e.component,f=e.deleteIcon,h=e.disabled,m=void 0!==h&&h,g=e.icon,v=e.label,b=e.onClick,y=e.onDelete,x=e.onKeyDown,w=e.onKeyUp,E=e.size,C=void 0===E?"medium":E,k=e.variant,O=void 0===k?"default":k,S=(0,o.Z)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),T=a.useRef(null),I=(0,me.Z)(T,t),Z=function(e){e.stopPropagation(),y&&y(e)},L=!(!1===s||!b)||s,R="small"===C,P=d||(L?et:"div"),D=P===et?{component:"div"}:{},M=null;if(y){var N=(0,c.Z)("default"!==p&&("default"===O?r["deleteIconColor".concat((0,we.Z)(p))]:r["deleteIconOutlinedColor".concat((0,we.Z)(p))]),R&&r.deleteIconSmall);M=f&&a.isValidElement(f)?a.cloneElement(f,{className:(0,c.Z)(f.props.className,r.deleteIcon,N),onClick:Z}):a.createElement(rt,{className:(0,c.Z)(r.deleteIcon,N),onClick:Z})}var F=null;n&&a.isValidElement(n)&&(F=a.cloneElement(n,{className:(0,c.Z)(r.avatar,n.props.className,R&&r.avatarSmall,"default"!==p&&r["avatarColor".concat((0,we.Z)(p))])}));var A=null;return g&&a.isValidElement(g)&&(A=a.cloneElement(g,{className:(0,c.Z)(r.icon,g.props.className,R&&r.iconSmall,"default"!==p&&r["iconColor".concat((0,we.Z)(p))])})),a.createElement(P,(0,i.Z)({role:L||y?"button":void 0,className:(0,c.Z)(r.root,l,"default"!==p&&[r["color".concat((0,we.Z)(p))],L&&r["clickableColor".concat((0,we.Z)(p))],y&&r["deletableColor".concat((0,we.Z)(p))]],"default"!==O&&[r.outlined,{primary:r.outlinedPrimary,secondary:r.outlinedSecondary}[p]],m&&r.disabled,R&&r.sizeSmall,L&&r.clickable,y&&r.deletable),"aria-disabled":!!m||void 0,tabIndex:L||y?0:void 0,onClick:b,onKeyDown:function(e){e.currentTarget===e.target&&it(e)&&e.preventDefault(),x&&x(e)},onKeyUp:function(e){e.currentTarget===e.target&&(y&&it(e)?y(e):"Escape"===e.key&&T.current&&T.current.blur()),w&&w(e)},ref:I},D,S),F||A,a.createElement("span",{className:(0,c.Z)(r.label,R&&r.labelSmall)},v),M)}));const lt=(0,s.Z)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=(0,Oe.Fq)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover, &:focus":{backgroundColor:(0,Oe._4)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:(0,Oe._4)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:(0,Oe._4)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:(0,Oe._4)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:(0,Oe._4)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:(0,Oe._4)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Oe.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Oe.Fq)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:(0,Oe.Fq)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:(0,Oe.Fq)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:(0,Oe.Fq)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:(0,Oe.Fq)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:(0,Oe.Fq)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:(0,Oe.Fq)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(at),ct=(0,ot.Z)(a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),st=(0,ot.Z)(a.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");var ut=n(1037),pt=n(2775);function dt(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function ft(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,o=e.ignoreCase,r=void 0===o||o,i=e.limit,a=e.matchFrom,l=void 0===a?"any":a,c=e.stringify,s=e.trim,u=void 0!==s&&s;return function(e,t){var o=t.inputValue,a=t.getOptionLabel,s=u?o.trim():o;r&&(s=s.toLowerCase()),n&&(s=dt(s));var p=e.filter((function(e){var t=(c||a)(e);return r&&(t=t.toLowerCase()),n&&(t=dt(t)),"start"===l?0===t.indexOf(s):t.indexOf(s)>-1}));return"number"==typeof i?p.slice(0,i):p}}function ht(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var mt=ft();function gt(e){e.anchorEl,e.open;var t=(0,o.Z)(e,["anchorEl","open"]);return a.createElement("div",t)}var vt=a.createElement(ct,{fontSize:"small"}),bt=a.createElement(st,null),yt=a.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,r=e.ChipProps,l=e.classes,s=e.className,u=(void 0===e.clearOnBlur&&e.freeSolo,e.clearOnEscape,e.clearText),p=void 0===u?"Clear":u,d=e.closeIcon,f=void 0===d?vt:d,h=e.closeText,m=void 0===h?"Close":h,g=(void 0===(e.debug,e.defaultValue)&&e.multiple,e.disableClearable),v=void 0!==g&&g,b=(e.disableCloseOnSelect,e.disabled),y=void 0!==b&&b,x=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),w=void 0!==x&&x,E=(e.filterOptions,e.filterSelectedOptions,e.forcePopupIcon),C=void 0===E?"auto":E,k=e.freeSolo,O=void 0!==k&&k,S=e.fullWidth,T=void 0!==S&&S,I=e.getLimitTagsText,Z=void 0===I?function(e){return"+".concat(e)}:I,L=(e.getOptionDisabled,e.getOptionLabel),R=void 0===L?function(e){return e}:L,P=(e.getOptionSelected,e.groupBy),D=(void 0===e.handleHomeEndKeys&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),M=void 0===D?-1:D,N=e.ListboxComponent,F=void 0===N?"ul":N,A=e.ListboxProps,$=e.loading,H=void 0!==$&&$,z=e.loadingText,B=void 0===z?"Loading…":z,V=e.multiple,W=void 0!==V&&V,U=e.noOptionsText,q=void 0===U?"No options":U,j=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),K=void 0===j?"Open":j,Y=(e.options,e.PaperComponent),_=void 0===Y?ke.Z:Y,X=e.PopperComponent,G=void 0===X?xe:X,J=e.popupIcon,Q=void 0===J?bt:J,ee=e.renderGroup,te=e.renderInput,ne=e.renderOption,oe=e.renderTags,re=(void 0===e.selectOnFocus&&e.freeSolo,e.size),ie=void 0===re?"medium":re,ae=(e.value,(0,o.Z)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),le=w?gt:G,ce=function(e){var t=e.autoComplete,n=void 0!==t&&t,o=e.autoHighlight,r=void 0!==o&&o,l=e.autoSelect,c=void 0!==l&&l,s=e.blurOnSelect,u=void 0!==s&&s,p=e.clearOnBlur,d=void 0===p?!e.freeSolo:p,f=e.clearOnEscape,h=void 0!==f&&f,m=e.componentName,g=void 0===m?"useAutocomplete":m,v=e.debug,b=void 0!==v&&v,y=e.defaultValue,x=void 0===y?e.multiple?[]:null:y,w=e.disableClearable,E=void 0!==w&&w,C=e.disableCloseOnSelect,k=void 0!==C&&C,O=e.disabledItemsFocusable,S=void 0!==O&&O,T=e.disableListWrap,I=void 0!==T&&T,Z=e.filterOptions,L=void 0===Z?mt:Z,R=e.filterSelectedOptions,P=void 0!==R&&R,D=e.freeSolo,M=void 0!==D&&D,N=e.getOptionDisabled,F=e.getOptionLabel,A=void 0===F?function(e){return e}:F,$=e.getOptionSelected,H=void 0===$?function(e,t){return e===t}:$,z=e.groupBy,B=e.handleHomeEndKeys,V=void 0===B?!e.freeSolo:B,W=e.id,U=e.includeInputInList,q=void 0!==U&&U,j=e.inputValue,K=e.multiple,Y=void 0!==K&&K,_=e.onChange,X=e.onClose,G=e.onHighlightChange,J=e.onInputChange,Q=e.onOpen,ee=e.open,te=e.openOnFocus,ne=void 0!==te&&te,oe=e.options,re=e.selectOnFocus,ie=void 0===re?!e.freeSolo:re,ae=e.value,le=function(e){var t=a.useState(e),n=t[0],o=t[1],r=e||n;return a.useEffect((function(){null==n&&o("mui-".concat(Math.round(1e5*Math.random())))}),[n]),r}(W),ce=A,se=a.useRef(!1),ue=a.useRef(!0),pe=a.useRef(null),de=a.useRef(null),fe=a.useState(null),me=fe[0],ge=fe[1],ve=a.useState(-1),be=ve[0],ye=ve[1],xe=r?0:-1,we=a.useRef(xe),Ee=(0,pt.Z)({controlled:ae,default:x,name:g}),Ce=(0,ut.Z)(Ee,2),ke=Ce[0],Oe=Ce[1],Se=(0,pt.Z)({controlled:j,default:"",name:g,state:"inputValue"}),Ie=(0,ut.Z)(Se,2),Ze=Ie[0],Le=Ie[1],Re=a.useState(!1),Pe=Re[0],De=Re[1],Me=(0,Te.Z)((function(e,t){var n;if(Y)n="";else if(null==t)n="";else{var o=ce(t);n="string"==typeof o?o:""}Ze!==n&&(Le(n),J&&J(e,n,"reset"))}));a.useEffect((function(){Me(null,ke)}),[ke,Me]);var Ne=(0,pt.Z)({controlled:ee,default:!1,name:g,state:"open"}),Fe=(0,ut.Z)(Ne,2),Ae=Fe[0],$e=Fe[1],He=!Y&&null!=ke&&Ze===ce(ke),ze=Ae,Be=ze?L(oe.filter((function(e){return!P||!(Y?ke:[ke]).some((function(t){return null!==t&&H(e,t)}))})),{inputValue:He?"":Ze,getOptionLabel:ce}):[],Ve=(0,Te.Z)((function(e){-1===e?pe.current.focus():me.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));a.useEffect((function(){Y&&be>ke.length-1&&(ye(-1),Ve(-1))}),[ke,Y,be,Ve]);var We=(0,Te.Z)((function(e){var t=e.event,n=e.index,o=e.reason,r=void 0===o?"auto":o;if(we.current=n,-1===n?pe.current.removeAttribute("aria-activedescendant"):pe.current.setAttribute("aria-activedescendant","".concat(le,"-option-").concat(n)),G&&G(t,-1===n?null:Be[n],r),de.current){var i=de.current.querySelector("[data-focus]");i&&i.removeAttribute("data-focus");var a=de.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var l=de.current.querySelector('[data-option-index="'.concat(n,'"]'));if(l&&(l.setAttribute("data-focus","true"),a.scrollHeight>a.clientHeight&&"mouse"!==r)){var c=l,s=a.clientHeight+a.scrollTop,u=c.offsetTop+c.offsetHeight;u>s?a.scrollTop=u-a.clientHeight:c.offsetTop-c.offsetHeight*(z?1.3:0)<a.scrollTop&&(a.scrollTop=c.offsetTop-c.offsetHeight*(z?1.3:0))}}else a.scrollTop=0}})),Ue=(0,Te.Z)((function(e){var t=e.event,o=e.diff,r=e.direction,i=void 0===r?"next":r,a=e.reason,l=void 0===a?"auto":a;if(ze){var c=function(e,t){if(!de.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===Be.length||"previous"===t&&-1===n)return-1;var o=de.current.querySelector('[data-option-index="'.concat(n,'"]')),r=!S&&o&&(o.disabled||"true"===o.getAttribute("aria-disabled"));if(!(o&&!o.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}(function(){var e=Be.length-1;if("reset"===o)return xe;if("start"===o)return 0;if("end"===o)return e;var t=we.current+o;return t<0?-1===t&&q?-1:I&&-1!==we.current||Math.abs(o)>1?0:e:t>e?t===e+1&&q?-1:I||Math.abs(o)>1?e:0:t}(),i);if(We({index:c,reason:l,event:t}),n&&"reset"!==o)if(-1===c)pe.current.value=Ze;else{var s=ce(Be[c]);pe.current.value=s,0===s.toLowerCase().indexOf(Ze.toLowerCase())&&Ze.length>0&&pe.current.setSelectionRange(Ze.length,s.length)}}})),qe=a.useCallback((function(){if(ze){var e=Y?ke[0]:ke;if(0!==Be.length&&null!=e){if(de.current)if(P||null==e)we.current>=Be.length-1?We({index:Be.length-1}):We({index:we.current});else{var t=Be[we.current];if(Y&&t&&-1!==ht(ke,(function(e){return H(t,e)})))return;var n=ht(Be,(function(t){return H(t,e)}));-1===n?Ue({diff:"reset"}):We({index:n})}}else Ue({diff:"reset"})}}),[0===Be.length,!Y&&ke,P,Ue,We,ze,Ze,Y]),je=(0,Te.Z)((function(e){(0,he.Z)(de,e),e&&qe()}));a.useEffect((function(){qe()}),[qe]);var Ke=function(e){Ae||($e(!0),Q&&Q(e))},Ye=function(e,t){Ae&&($e(!1),X&&X(e,t))},_e=function(e,t,n,o){ke!==t&&(_&&_(e,t,n,o),Oe(t))},Xe=a.useRef(!1),Ge=function(e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",r=t;if(Y){var i=ht(r=Array.isArray(ke)?ke.slice():[],(function(e){return H(t,e)}));-1===i?r.push(t):"freeSolo"!==n&&(r.splice(i,1),o="remove-option")}Me(e,r),_e(e,r,o,{option:t}),k||Ye(e,o),(!0===u||"touch"===u&&Xe.current||"mouse"===u&&!Xe.current)&&pe.current.blur()},Je=function(e,t){if(Y){Ye(e,"toggleInput");var n=be;-1===be?""===Ze&&"previous"===t&&(n=ke.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===ke.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===ke.length||"previous"===t&&-1===n)return-1;var o=me.querySelector('[data-tag-index="'.concat(n,'"]'));if(!o||o.hasAttribute("tabindex")&&!o.disabled&&"true"!==o.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),ye(n),Ve(n)}},Qe=function(e){se.current=!0,Le(""),J&&J(e,"","clear"),_e(e,Y?[]:null,"clear")},et=function(e){return function(t){switch(-1!==be&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(ye(-1),Ve(-1)),t.key){case"Home":ze&&V&&(t.preventDefault(),Ue({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ze&&V&&(t.preventDefault(),Ue({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ue({diff:-5,direction:"previous",reason:"keyboard",event:t}),Ke(t);break;case"PageDown":t.preventDefault(),Ue({diff:5,direction:"next",reason:"keyboard",event:t}),Ke(t);break;case"ArrowDown":t.preventDefault(),Ue({diff:1,direction:"next",reason:"keyboard",event:t}),Ke(t);break;case"ArrowUp":t.preventDefault(),Ue({diff:-1,direction:"previous",reason:"keyboard",event:t}),Ke(t);break;case"ArrowLeft":Je(t,"previous");break;case"ArrowRight":Je(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==we.current&&ze){var o=Be[we.current],r=!!N&&N(o);if(t.preventDefault(),r)return;Ge(t,o,"select-option"),n&&pe.current.setSelectionRange(pe.current.value.length,pe.current.value.length)}else M&&""!==Ze&&!1===He&&(Y&&t.preventDefault(),Ge(t,Ze,"create-option","freeSolo"));break;case"Escape":ze?(t.preventDefault(),t.stopPropagation(),Ye(t,"escape")):h&&(""!==Ze||Y&&ke.length>0)&&(t.preventDefault(),t.stopPropagation(),Qe(t));break;case"Backspace":if(Y&&""===Ze&&ke.length>0){var i=-1===be?ke.length-1:be,a=ke.slice();a.splice(i,1),_e(t,a,"remove-option",{option:ke[i]})}}e.onKeyDown&&e.onKeyDown(t)}},tt=function(e){De(!0),ne&&!se.current&&Ke(e)},nt=function(e){null===de.current||document.activeElement!==de.current.parentElement?(De(!1),ue.current=!0,se.current=!1,b&&""!==Ze||(c&&-1!==we.current&&ze?Ge(e,Be[we.current],"blur"):c&&M&&""!==Ze?Ge(e,Ze,"blur","freeSolo"):d&&Me(e,ke),Ye(e,"blur"))):pe.current.focus()},ot=function(e){var t=e.target.value;Ze!==t&&(Le(t),J&&J(e,t,"input")),""===t?E||Y||_e(e,null,"clear"):Ke(e)},rt=function(e){We({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},it=function(){Xe.current=!0},at=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));Ge(e,Be[t],"select-option"),Xe.current=!1},lt=function(e){return function(t){var n=ke.slice();n.splice(e,1),_e(t,n,"remove-option",{option:ke[e]})}},ct=function(e){Ae?Ye(e,"toggleInput"):Ke(e)},st=function(e){e.target.getAttribute("id")!==le&&e.preventDefault()},dt=function(){pe.current.focus(),ie&&ue.current&&pe.current.selectionEnd-pe.current.selectionStart==0&&pe.current.select(),ue.current=!1},ft=function(e){""!==Ze&&Ae||ct(e)},gt=M&&Ze.length>0;gt=gt||(Y?ke.length>0:null!==ke);var vt=Be;return z&&(new Map,vt=Be.reduce((function(e,t,n){var o=z(t);return e.length>0&&e[e.length-1].group===o?e[e.length-1].options.push(t):e.push({key:n,index:n,group:o,options:[t]}),e}),[])),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({"aria-owns":ze?"".concat(le,"-popup"):null,role:"combobox","aria-expanded":ze},e,{onKeyDown:et(e),onMouseDown:st,onClick:dt})},getInputLabelProps:function(){return{id:"".concat(le,"-label"),htmlFor:le}},getInputProps:function(){return{id:le,value:Ze,onBlur:nt,onFocus:tt,onChange:ot,onMouseDown:ft,"aria-activedescendant":ze?"":null,"aria-autocomplete":n?"both":"list","aria-controls":ze?"".concat(le,"-popup"):null,autoComplete:"off",ref:pe,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:Qe}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:ct}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:lt(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(le,"-popup"),"aria-labelledby":"".concat(le,"-label"),ref:je,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,o=(Y?ke:[ke]).some((function(e){return null!=e&&H(n,e)})),r=!!N&&N(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(le,"-option-").concat(t),onMouseOver:rt,onClick:at,onTouchStart:it,"data-option-index":t,"aria-disabled":r,"aria-selected":o}},id:le,inputValue:Ze,value:ke,dirty:gt,popupOpen:ze,focused:Pe||-1!==be,anchorEl:me,setAnchorEl:ge,focusedTag:be,groupedOptions:vt}}((0,i.Z)({},e,{componentName:"Autocomplete"})),se=ce.getRootProps,ue=ce.getInputProps,pe=ce.getInputLabelProps,de=ce.getPopupIndicatorProps,fe=ce.getClearProps,me=ce.getTagProps,ge=ce.getListboxProps,ve=ce.getOptionProps,be=ce.value,ye=ce.dirty,we=ce.id,Ee=ce.popupOpen,Oe=ce.focused,Se=ce.focusedTag,Ie=ce.anchorEl,Ze=ce.setAnchorEl,Le=ce.inputValue,Re=ce.groupedOptions;if(W&&be.length>0){var Pe=function(e){return(0,i.Z)({className:(0,c.Z)(l.tag,"small"===ie&&l.tagSizeSmall),disabled:y},me(e))};n=oe?oe(be,Pe):be.map((function(e,t){return a.createElement(lt,(0,i.Z)({label:R(e),size:ie},Pe({index:t}),r))}))}if(M>-1&&Array.isArray(n)){var De=n.length-M;!Oe&&De>0&&(n=n.splice(0,M)).push(a.createElement("span",{className:l.tag,key:n.length},Z(De)))}var Me=ee||function(e){return a.createElement("li",{key:e.key},a.createElement(Ce,{className:l.groupLabel,component:"div"},e.group),a.createElement("ul",{className:l.groupUl},e.children))},Ne=ne||R,Fe=function(e,t){var n=ve({option:e,index:t});return a.createElement("li",(0,i.Z)({},n,{className:l.option}),Ne(e,{selected:n["aria-selected"],inputValue:Le}))},Ae=!v&&!y,$e=(!O||!0===C)&&!1!==C;return a.createElement(a.Fragment,null,a.createElement("div",(0,i.Z)({ref:t,className:(0,c.Z)(l.root,s,Oe&&l.focused,T&&l.fullWidth,Ae&&l.hasClearIcon,$e&&l.hasPopupIcon)},se(ae)),te({id:we,disabled:y,fullWidth:!0,size:"small"===ie?"small":void 0,InputLabelProps:pe(),InputProps:{ref:Ze,className:l.inputRoot,startAdornment:n,endAdornment:a.createElement("div",{className:l.endAdornment},Ae?a.createElement(nt,(0,i.Z)({},fe(),{"aria-label":p,title:p,className:(0,c.Z)(l.clearIndicator,ye&&l.clearIndicatorDirty)}),f):null,$e?a.createElement(nt,(0,i.Z)({},de(),{disabled:y,"aria-label":Ee?m:K,title:Ee?m:K,className:(0,c.Z)(l.popupIndicator,Ee&&l.popupIndicatorOpen)}),Q):null)},inputProps:(0,i.Z)({className:(0,c.Z)(l.input,-1===Se&&l.inputFocused),disabled:y},ue())})),Ee&&Ie?a.createElement(le,{className:(0,c.Z)(l.popper,w&&l.popperDisablePortal),style:{width:Ie?Ie.clientWidth:null},role:"presentation",anchorEl:Ie,open:!0},a.createElement(_,{className:l.paper},H&&0===Re.length?a.createElement("div",{className:l.loading},B):null,0!==Re.length||O||H?null:a.createElement("div",{className:l.noOptions},q),Re.length>0?a.createElement(F,(0,i.Z)({className:l.listbox},ge(),A),Re.map((function(e,t){return P?Me({key:e.key,group:e.group,children:e.options.map((function(t,n){return Fe(t,e.index+n)}))}):Fe(e,t)}))):null)):null)}));const xt=(0,s.Z)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0},inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:(0,i.Z)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},(0,r.Z)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),(0,r.Z)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),(0,r.Z)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),(0,r.Z)(t,"&:active",{backgroundColor:e.palette.action.selected}),(0,r.Z)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(yt)}}]); build/187.js 0000666 00000076114 15165313625 0006544 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[187],{9187:(e,l,t)=>{t.r(l),t.d(l,{default:()=>n});var a=t(9307),c=t(5736),s=t(8473),r=t(3882),i=t(5097);const n=e=>{const{handleModal:l,modalData:t,setModalData:n,showModal:h,setIgnoredItemId:m,setFixedItemId:o,item:d}=(0,i.Z)(),[w,g]=(0,a.useState)(!1),C=()=>{l(!1,null,null)},v=(e,a)=>{let c=t.action;g(!0),s.SA(c,"refresh",t).then((e=>{let c={...t};c.description=e.msg,c.subtitle="",n(c),g(!1),e.success&&("ignore"===a&&!1!==d?m(d.id):o(d.id),l(!1,null))}))};if(!h)return(0,a.createElement)(a.Fragment,null);let f=w?"disabled":"",p=t.description;return Array.isArray(p)||(p=[p]),(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"rsssl-modal-backdrop",onClick:e=>C()}," "),(0,a.createElement)("div",{className:"rsssl-modal",id:"{id}"},(0,a.createElement)("div",{className:"rsssl-modal-header"},(0,a.createElement)("h2",{className:"modal-title"},t.title),(0,a.createElement)("button",{type:"button",className:"rsssl-modal-close","data-dismiss":"modal","aria-label":"Close",onClick:e=>C()},(0,a.createElement)(r.Z,{name:"times"}))),(0,a.createElement)("div",{className:"rsssl-modal-content"},t.subtitle&&(0,a.createElement)("div",{className:"rsssl-modal-subtitle"},t.subtitle),Array.isArray(p)&&p.map(((e,l)=>(0,a.createElement)("div",{key:"modalDescription-"+l,className:"rsssl-modal-description"},e)))),(0,a.createElement)("div",{className:"rsssl-modal-footer"},t.edit&&(0,a.createElement)("a",{href:t.edit,target:"_blank",className:"button button-secondary"},(0,c.__)("Edit","really-simple-ssl")),t.help&&(0,a.createElement)("a",{href:t.help,target:"_blank",className:"button rsssl-button-help"},(0,c.__)("Help","really-simple-ssl")),!t.ignored&&"ignore_url"===t.action&&(0,a.createElement)("button",{disabled:f,className:"button button-primary",onClick:e=>v(0,"ignore")},(0,c.__)("Ignore","really-simple-ssl")),"ignore_url"!==t.action&&(0,a.createElement)("button",{disabled:f,className:"button button-primary",onClick:e=>v(0,"fix")},(0,c.__)("Fix","really-simple-ssl")))))}},3882:(e,l,t)=>{t.d(l,{Z:()=>i});var a=t(7462),c=t(9307),s=t(7557),r=t(9610);const i=e=>{const{name:l,color:t,size:i}=e,n=l||"bullet",h=t||"black",m=i||15,o={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)","red-faded":"var(--rsp-red-faded)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)","red-warning":"var(--rsp-red-faded)"};let d="";"bullet"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"}))}),"circle"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"check"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"warning"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))}),"error"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"}))}),"times"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"}))}),"circle-check"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"}))}),"circle-times"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"}))}),"chevron-up"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"}))}),"chevron-down"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"}))}),"chevron-right"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"}))}),"chevron-left"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"}))}),"plus"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"}))}),"minus"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"}))}),"sync"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"}))}),"sync-error"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"}))}),"shortcode"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"}))}),"file"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"}))}),"file-disabled"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"}))}),"file-download"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"}))}),"calendar"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"}))}),"calendar-error"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"}))}),"help"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"}))}),"copy"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"}))}),"info"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"}))}),"info-open"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"}))}),"list"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"}))}),"empty"===n&&(d={html:(0,c.createElement)("svg",{height:m,width:m,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"})}),"external-link"===n&&(d={html:(0,c.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("path",{fill:o[h],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"}))}),"shield"===n&&(d={html:(0,c.createElement)("svg",{height:m,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"},(0,c.createElement)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,c.createElement)("g",null,(0,c.createElement)("g",null,(0,c.createElement)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,c.createElement)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})),(0,c.createElement)("g",null,(0,c.createElement)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,c.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,c.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,c.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,c.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,c.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"}))))}),"file-search"===n&&(d={html:(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:m,fill:"none",viewBox:"0 0 384 512"},(0,c.createElement)("path",{d:"M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"})),viewBox:"0 0 24 24"}),"download"===n&&(d={html:(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:m,fill:"none",viewBox:"0 0 512 512"},(0,c.createElement)("path",{d:"M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"})),viewBox:"0 0 24 24"}),"satellite-dish"===n&&(d={html:(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",color:o[h],height:m,viewBox:"0 0 512 512"},(0,c.createElement)("path",{d:"M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})),viewBox:"0 0 24 24"}),"rotate-light"===n&&(d={html:(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",color:o[h],height:m,viewBox:"0 0 512 512"},(0,c.createElement)("path",{d:"M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"})),viewBox:"0 0 24 24"}),"rotate-exclamation-light"===n&&(d={html:(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("defs",null,(0,c.createElement)("style",null,`\n .fa-secondary {\n opacity: 0.4;\n color: ${o[h]};\n }\n `)),(0,c.createElement)("path",{className:"fa-primary",d:"M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"}),(0,c.createElement)("path",{className:"fa-secondary",d:"M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"})),viewBox:"0 0 24 24"}),"radar-duotone"===n&&(d={html:(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("defs",null,(0,c.createElement)("style",null,`\n .fa-secondary {\n color: ${o[h]} !important;\n } \n `)),(0,c.createElement)("path",{className:"fa-primary",d:"M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"}),(0,c.createElement)("path",{className:"fa-secondary",d:"M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"})),viewBox:"0 0 24 24"}),"satellite-dish-duotone"===n&&(d={html:(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,c.createElement)("defs",null,(0,c.createElement)("style",null,`\n .fa-secondary {\n color: ${o[h]} !important;\n } \n `)),(0,c.createElement)("path",{className:"fa-primary",d:"M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"}),(0,c.createElement)("path",{className:"fa-secondary",d:"M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"})),viewBox:"0 0 24 24"}),"spinner"===n&&(d={html:(0,c.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",height:"20"},(0,c.createElement)("defs",null,(0,c.createElement)("style",null,"\n .fa-secondary {\n opacity: 0.4;\n }\n ")),(0,c.createElement)("path",{className:"fa-primary",d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"}),(0,c.createElement)("path",{className:"fa-secondary",d:"M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"})),viewBox:"0 0 22 22"});const w=(0,r.ZP)((e=>{let{className:l,...t}=e;return(0,c.createElement)(s.Z,(0,a.Z)({},t,{classes:{popper:l}}))}))((e=>{let{theme:l}=e;return{"& .MuiTooltip-tooltip":{padding:"10px 20px",fontWeight:"340",fontSize:"var(--rsp-fs-200)",fontFamily:"unset",backgroundColor:"var(--rsp-black)"}}}));return(0,c.createElement)(w,{arrow:!0,enterDelay:200,title:e.tooltip,placement:"bottom"},(0,c.createElement)("div",{className:"rsssl-icon rsssl-icon-"+n},d.html))}}}]); build/829.js 0000666 00000004702 15165313625 0006541 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[829],{3829:(e,s,t)=>{t.r(s),t.d(s,{default:()=>c});var m=t(9307);const l=()=>(0,m.createElement)("div",{className:"rsssl-wizard-menu rsssl-grid-item rsssl-menu-placeholder"},(0,m.createElement)("div",{className:"rsssl-grid-item-header"},(0,m.createElement)("h1",{className:"rsssl-h4"})),(0,m.createElement)("div",{className:"rsssl-grid-item-content"}));var a=t(5736),n=t(2485);const r=e=>{const{selectedSubMenuItem:s,selectedMainMenuItem:t,subMenu:l,menu:i}=(0,n.Z)();let u=s===e.menuItem.id;if(e.menuItem.menu_items)for(const t of e.menuItem.menu_items)t.id===s&&(u=!0);let c=u?" rsssl-active":"";c+=e.menuItem.featured?" rsssl-featured":"",c+=e.menuItem.premium&&!rsssl_settings.pro_plugin_active?" rsssl-premium":"";let d="#"+t+"/"+e.menuItem.id;return(0,m.createElement)(m.Fragment,null,e.menuItem.visible&&(0,m.createElement)("div",{className:"rsssl-menu-item"+c},(0,m.createElement)("a",{href:d},(0,m.createElement)("span",null,e.menuItem.title),e.menuItem.featured&&(0,m.createElement)(m.Fragment,null,(0,m.createElement)("span",{className:"rsssl-menu-item-beta-pill"},(0,a.__)("Beta","really-simple-ssl")))),e.menuItem.menu_items&&u&&(0,m.createElement)("div",{className:"rsssl-submenu-item"},e.menuItem.menu_items.map(((e,s)=>e.visible&&(0,m.createElement)(r,{key:"submenuItem"+s,menuItem:e}))))))},i=r;var u=t(1789);const c=()=>{const{subMenu:e,hasPremiumItems:s,subMenuLoaded:t}=(0,n.Z)(),{licenseStatus:r}=(0,u.Z)();return t?(0,m.createElement)("div",{className:"rsssl-wizard-menu rsssl-grid-item"},(0,m.createElement)("div",{className:"rsssl-grid-item-header"},(0,m.createElement)("h1",{className:"rsssl-h4"},e.title)),(0,m.createElement)("div",{className:"rsssl-grid-item-content"},(0,m.createElement)("div",{className:"rsssl-wizard-menu-items"},e.menu_items.map(((e,s)=>(0,m.createElement)(i,{key:"menuItem-"+s,menuItem:e}))),s&&!rsssl_settings.is_premium&&"valid"!==r&&(0,m.createElement)("div",{className:"rsssl-premium-menu-item"},(0,m.createElement)("div",null,(0,m.createElement)("a",{target:"_blank",href:rsssl_settings.upgrade_link,className:"button button-black"},(0,a.__)("Upgrade","really-simple-ssl")))))),(0,m.createElement)("div",{className:"rsssl-grid-item-footer"})):(0,m.createElement)(l,null)}},1789:(e,s,t)=>{t.d(s,{Z:()=>m});const m=(0,t(270).Ue)(((e,s)=>({licenseStatus:rsssl_settings.licenseStatus,setLicenseStatus:s=>e((e=>({licenseStatus:s})))})))}}]); build/index.asset.php 0000666 00000000273 15165313625 0010616 0 ustar 00 <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => 'ae9d976e6f1310b21df5'); build/688.js 0000666 00000177304 15165313625 0006555 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[688],{7688:(e,t,s)=>{s.r(t),s.d(t,{default:()=>B});var l=s(9307);const a=e=>{const t=!!e.block.footer&&e.block.footer,s=e.block;let a="rsssl-grid-item "+s.class+" rsssl-"+s.id;return(0,l.createElement)("div",{key:"block-"+s.id,className:a},(0,l.createElement)("div",{key:"header-"+s.id,className:"rsssl-grid-item-header"},s.header&&wp.element.createElement(s.header),!s.header&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h3",{className:"rsssl-grid-title rsssl-h4"},s.title),(0,l.createElement)("div",{className:"rsssl-grid-item-controls"}))),(0,l.createElement)("div",{key:"content-"+s.id,className:"rsssl-grid-item-content"},wp.element.createElement(e.block.content)),!t&&(0,l.createElement)("div",{key:"footer-"+s.id,className:"rsssl-grid-item-footer"}),t&&(0,l.createElement)("div",{key:"footer-"+s.id,className:"rsssl-grid-item-footer"},wp.element.createElement(t)))};var r=s(5736),n=s(2387);const c=()=>{const{setFilter:e,filter:t,fetchFilter:s,notices:a,error:c}=(0,n.Z)();(0,l.useEffect)((()=>{s()}),[]);const i=t=>{let s=t.target.getAttribute("data-filter");"all"!==s&&"remaining"!==s||e(s)};if(c)return(0,l.createElement)(l.Fragment,null);let o=0,m=0;return o=a.length,m=a.filter((function(e){return"open"===e.output.status||"warning"===e.output.status})).length,(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h3",{className:"rsssl-grid-title rsssl-h4"},(0,r.__)("Progress","really-simple-ssl")),(0,l.createElement)("div",{className:"rsssl-grid-item-controls"},(0,l.createElement)("div",{className:"rsssl-task-switcher-container rsssl-active-filter-"+t},(0,l.createElement)("span",{className:"rsssl-task-switcher rsssl-all-tasks",onClick:i,htmlFor:"rsssl-all-tasks","data-filter":"all"},(0,r.__)("All tasks","really-simple-ssl"),(0,l.createElement)("span",{className:"rsssl_task_count"},"(",o,")")),(0,l.createElement)("span",{className:"rsssl-task-switcher rsssl-remaining-tasks",onClick:i,htmlFor:"rsssl-remaining-tasks","data-filter":"remaining"},(0,r.__)("Remaining tasks","really-simple-ssl"),(0,l.createElement)("span",{className:"rsssl_task_count"},"(",m,")")))))};var i=s(3909);const o=e=>{const{percentageCompleted:t,progressText:s,filter:a,notices:c,progressLoaded:o,getProgressData:d,error:u}=(0,n.Z)();(0,l.useEffect)((()=>{d()}),[]);const g=()=>Object.assign({},{width:t+"%"});let h="";if(t<80&&(h+="rsssl-orange"),!o||u)return(0,l.createElement)("div",{className:"rsssl-progress-block"},(0,l.createElement)("div",{className:"rsssl-progress-bar"},(0,l.createElement)("div",{className:"rsssl-progress"},(0,l.createElement)("div",{className:"rsssl-bar rsssl-orange",style:g()}))),(0,l.createElement)("div",{className:"rsssl-progress-text"},(0,l.createElement)("h1",{className:"rsssl-progress-percentage"},"0%"),(0,l.createElement)("h5",{className:"rsssl-progress-text-span"},(0,r.__)("Loading...","really-simple-ssl"))),(0,l.createElement)("div",{className:"rsssl-scroll-container"},(0,l.createElement)("div",{className:"rsssl-task-element"},(0,l.createElement)("span",{className:"rsssl-task-status rsssl-loading"},(0,r.__)("Loading...","really-simple-ssl")),(0,l.createElement)("p",{className:"rsssl-task-message"},(0,r.__)("Loading...","really-simple-ssl")))));let p=c;return"remaining"===a&&(p=p.filter((function(e){return"open"===e.output.status}))),(0,l.createElement)("div",{className:"rsssl-progress-block"},(0,l.createElement)("div",{className:"rsssl-progress-bar"},(0,l.createElement)("div",{className:"rsssl-progress"},(0,l.createElement)("div",{className:"rsssl-bar "+h,style:g()}))),(0,l.createElement)("div",{className:"rsssl-progress-text"},(0,l.createElement)(m,{percentageCompleted:t}),(0,l.createElement)("h5",{className:"rsssl-progress-text-span"},s)),(0,l.createElement)("div",{className:"rsssl-scroll-container"},p.map(((e,t)=>(0,l.createElement)(i.Z,{key:"task-"+t,notice:e})))))},m=e=>{let{percentageCompleted:t}=e;const[s,a]=(0,l.useState)(0),r=(0,l.useRef)(0);return(0,l.useEffect)((()=>{const e=r.current,s=Date.now(),l=setInterval((()=>{const n=Date.now()-s,c=Math.min(n/1e3,1),i=(o=c,1-Math.pow(1-o,3));var o;const m=Math.min(e+(t-e)*i,t);c<1?(a(m),r.current=t):clearInterval(l)}),16);return()=>clearInterval(l)}),[t]),(0,l.createElement)("h1",{className:"rsssl-progress-percentage"},Math.round(s),"%")};var d=s(3882),u=s(4559),g=s(9810);const h=e=>{const{setShowOnBoardingModal:t}=(0,g.Z)(),{fields:s}=(0,u.Z)();let a=s.filter((e=>"redirect"===e.id))[0].value,n=s.filter((e=>"ssl_enabled"===e.id))[0].value,c=rsssl_settings.wpconfig_fix_required,i=s.filter((e=>"mixed_content_fixer"===e.id))[0].value,o="wp_redirect"===a||"htaccess"===a,m=n?(0,r.__)("SSL Activated","really-simple-ssl"):(0,r.__)("SSL not activated","really-simple-ssl"),h=n?"circle-check":"circle-times",p=n?"green":"red",v=o?"circle-check":"circle-times",f=o?"green":"red",E=i?"circle-check":"circle-times",w=i?"green":"red";return(0,l.createElement)(l.Fragment,null,!n&&(0,l.createElement)("button",{key:"activate-ssl-button",disabled:c,onClick:()=>t(!0),className:"button button-primary"},(0,r.__)("Activate SSL","really-simple-ssl")),rsssl_settings.pro_plugin_active&&(0,l.createElement)("span",{key:"progressFooterVersion",className:"rsssl-footer-left"},"Really Simple SSL Pro ",rsssl_settings.pro_version),!rsssl_settings.pro_plugin_active&&(0,l.createElement)("a",{key:"progressFooterGoPro",href:rsssl_settings.upgrade_link,target:"_blank",className:"button button-default"},(0,r.__)("Go Pro","really-simple-ssl")),(0,l.createElement)("div",{key:"progressFooterStatus",className:"rsssl-legend"},(0,l.createElement)(d.Z,{name:h,color:p}),(0,l.createElement)("div",null,m)),(0,l.createElement)("div",{key:"progressFooterMixed",className:"rsssl-legend"},(0,l.createElement)(d.Z,{name:E,color:w}),(0,l.createElement)("div",null,(0,r.__)("Mixed content","really-simple-ssl"))),(0,l.createElement)("div",{key:"progressFooterRedirect",className:"rsssl-legend"},(0,l.createElement)(d.Z,{name:v,color:f}),(0,l.createElement)("div",null,(0,r.__)("301 redirect","really-simple-ssl"))))},p=()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h3",{className:"rsssl-grid-title rsssl-h4"},(0,r.__)("Status","really-simple-ssl")),(0,l.createElement)("div",{className:"rsssl-grid-item-controls"},(0,l.createElement)("span",{className:"rsssl-header-html"}," ",(0,r.__)("Powered by Qualys","really-simple-ssl"))));var v=s(270),f=s(8473);const E=(0,v.Ue)(((e,t)=>({debug:!1,sslScanStatus:!1,sslData:!1,endpointData:[],dataLoaded:!1,clearCache:!1,requestActive:!1,intervalId:!1,setIntervalId:t=>e({intervalId:t}),setRequestActive:t=>e({requestActive:t}),setSslScanStatus:t=>e({sslScanStatus:t}),setClearCache:t=>e({clearCache:t}),setSslData:t=>e({sslData:t}),setEndpointData:t=>e({endpointData:t}),isLocalHost:()=>!t().debug&&-1!==window.location.host.indexOf("localhost"),host:()=>t().debug?"wordpress.org":window.location.host,fetchSslData:async()=>{f.Kw("ssltest_get").then((s=>{if(s.data.hasOwnProperty("host")){let l=t().processSslData(s.data);e({sslData:l,endpointData:l.endpointData,dataLoaded:!0})}}))},getSslLabsData:s=>{let l="";t().clearCache&&(e({clearCache:!1,sslData:!1}),l="&startNew=on");const a="https://api.ssllabs.com/api/v3/analyze?host="+t().host()+l;let r={};return r.url=a,f.Kw("ssltest_run",r).then((e=>!(!e||e.errors)&&JSON.parse(e)))},runSslTest:()=>{t().getSslLabsData().then((s=>{if(s.status&&"ERROR"===s.status)s=t().processSslData(s),e({sslData:s,sslScanStatus:"completed"}),clearInterval(t().intervalId);else if(s.endpoints&&s.endpoints.filter((e=>"Ready"===e.statusMessage)).length>0){let l=s.endpoints.filter((e=>"Ready"===e.statusMessage)),a=l[l.length-1].ipAddress;t().getEndpointData(a).then((l=>{let a=t().endpointData;if(Array.isArray(a)||(a=[]),!l.errors){let t=!1;a.length>0&&a.forEach((function(e,s){e.ipAddress===l.ipAddress&&(a[s]=l,t=!0)})),t||(a[a.length]=l),e({endpointData:a}),s.endpointData=a}s.errors||f.Kw("store_ssl_labs",s),s=t().processSslData(s),e({sslData:s,requestActive:!1})}))}else(s=t().processSslData(s)).errors||f.Kw("store_ssl_labs",s).then((e=>{})),e({sslData:s,requestActive:!1})}))},processSslData:t=>{let s=t.progress?t.progress:0,l=t.startTime?t.startTime:"",a=t.statusMessage?t.statusMessage:"",r=t.grade?t.grade:"?",n="";if(t.endpoints){let e=t.endpoints.filter((e=>"Ready"===e.statusMessage)),l=e.length,c=e[l-1],i=t.endpoints.filter((e=>"In progress"===e.statusMessage))[0],o=0;i&&(o=i.progress?i.progress:0,a=i.statusDetailsMessage,n=i.ipAddress),c&&(r=c.grade),s=(100*l+o)/t.endpoints.length}t.errors&&(r="?",a=t.errors[0].message,s=100);let c={};return s>=100&&e({sslScanStatus:"completed"}),c.grade=r,c.startTime=l,c.statusMessage=a,c.ipAddress=n,c.progress=s,t.summary=c,t},getEndpointData:e=>{const s="https://api.ssllabs.com/api/v3/getEndpointData?host="+t().host()+"&s="+e;let l={};return l.url=s,f.Kw("ssltest_run",l).then((e=>{if(e&&!e.errors)return JSON.parse(e)}))}}))),w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if("number"==typeof e&&(e.toString().length<13&&(e*=1e3),e=new Date(e)),!(e instanceof Date))return"-";let s={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3},l=new Intl.RelativeTimeFormat("en",{numeric:"auto"}),a=e-t;for(let e in s)if(Math.abs(a)>s[e]||"second"===e)return l.format(Math.round(a/s[e]),e)},C=e=>{let{className:t,content:s,id:a}=e;const[r,n]=(0,l.useState)(!1);let c=r?"rsssl-hover":"";return(0,l.createElement)("div",{key:a,className:"rsssl-score-container"},(0,l.createElement)("div",{onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),className:"rsssl-score-snippet "+t+" "+c},s))},_=e=>{const{dataLoaded:t,clearCache:s,endpointData:a,setEndpointData:n,sslData:c,setSslData:i,sslScanStatus:o,setSslScanStatus:m,isLocalHost:u,fetchSslData:g,runSslTest:h,intervalId:p,setIntervalId:v,requestActive:f,setRequestActive:_,setClearCache:y}=E(),b=(0,l.useRef)(!1);(0,l.useEffect)((()=>{t||g()}),[]);const N=()=>!c;(0,l.useEffect)((()=>{if(u())return;"active"===o&&c.summary&&c.summary.progress>=100&&(y(!0),b.current=!1,i(!1),n(!1)),"active"===o&&"ERROR"===c.status&&(y(!0),i(!1),n(!1));let e=c&&"READY"!==c.status,t="active"===o;s&&(e=!0);let l=c.errors||"ERROR"===c.status;if(f||l||!e&&!t)c&&"READY"===c.status&&(m("completed"),clearInterval(p));else if(m("active"),_(!0),!b.current){if(h(),!p){let e=setInterval((function(){h()}),4e3);v(e)}b.current=!0}}),[o,c]);const k=()=>{let e=0;return c&&c.summary.progress?e=c.summary.progress:0==e&&"active"===o&&(e=5),Object.assign({},{width:e+"%"})},S=(e,t,s)=>(0,l.createElement)(C,{className:e,content:t,id:s}),M=e=>{let t=0;return t=0==e?0:e<128?20:e<256?80:100,t};let x="rsssl-inactive",L=c?c.summary.progress:0,z=!!c&&c.summary.startTime,H="";z?((new Date).setTime(z),H=w(z)):H=(0,r.__)("No test started yet","really-simple-ssl");let D=!!c&&c.summary.statusMessage,V=c?c.summary.grade:"?";c&&"READY"===c.status&&(x=-1!==V.indexOf("A")?"rsssl-success":"rsssl-error"),N()&&(x="rsssl-inactive"),N();let Z="https://www.ssllabs.com/analyze.html?d="+encodeURIComponent(window.location.protocol+"//"+window.location.host),A=!1,F="",B="black";return u()?(A=!0,B="red",F=(0,r.__)("Not available on localhost","really-simple-ssl")):c&&(c.errors||"ERROR"===c.status)?(A=!0,B="red",F=D):c&&L<100&&(A=!0,B="orange",F=D),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-ssl-labs"},(0,l.createElement)("div",{className:"rsssl-gridblock-progress-container "+x},(0,l.createElement)("div",{className:"rsssl-gridblock-progress",style:k()})),(0,l.createElement)("div",{className:"rsssl-gridblock-progress",style:k()}),(0,l.createElement)("div",{className:"rsssl-ssl-labs-select "+x},(0,l.createElement)("div",{className:"rsssl-ssl-labs-select-item"},(()=>{let e="processing";return N()&&(e="inactive"),a&&a.length>0&&(e="success",a.forEach((function(t,s){t.details.protocols&&t.details.protocols.forEach((function(t,s){"1.1"===t.version&&(e="error")}))}))),(0,l.createElement)(l.Fragment,null,"inactive"===e&&S("rsssl-test-inactive","Protocol support","protocol"),"processing"===e&&S("rsssl-test-processing","Protocol support...","protocol"),"error"===e&&S("rsssl-test-error","Supports TLS 1.1","protocol"),"success"===e&&S("rsssl-test-success","No TLS 1.1","protocol"))})(),(()=>{let e="processing";return N()&&(e="inactive"),a&&a.length>0&&(e=a.filter((function(e){return e.details.hstsPolicy&&"present"!==e.details.hstsPolicy.status})).length>0?"error":"success"),(0,l.createElement)(l.Fragment,null,"inactive"===e&&S("rsssl-test-inactive","HSTS","hsts"),"processing"===e&&S("rsssl-test-processing","HSTS...","hsts"),"error"===e&&S("rsssl-test-error","No HSTS header","hsts"),"success"===e&&S("rsssl-test-success","HSTS header detected","hsts"))})(),(()=>{let e="processing";return N()&&(e="inactive"),a&&a.length>0&&(e=a.filter((function(e){return e.grade&&-1===e.grade.indexOf("A")})).length>0?"error":"success"),(0,l.createElement)(l.Fragment,null,"inactive"===e&&S("rsssl-test-inactive","Certificate","certificate"),"processing"===e&&S("rsssl-test-processing","Certificate...","certificate"),"error"===e&&!A&&S("rsssl-test-error","Certificate issue","certificate"),"success"===e&&S("rsssl-test-success","Valid certificate","certificate"))})(),(()=>{let e=0,t="rsssl-test-processing";if(N()&&(t="rsssl-test-inactive"),a&&a.length>0){let s=256,l=128;a.forEach((function(e,t){e.details.suites&&e.details.suites.forEach((function(e,t){e.list.forEach((function(e,t){s=e.cipherStrength<s?e.cipherStrength:s,l=e.cipherStrength>l?e.cipherStrength:l}))}))})),e=(M(s)+M(l))/2,e=Math.round(e),t=e>70?"rsssl-test-success":"rsssl-test-error"}return(0,l.createElement)(l.Fragment,null,S(t,(0,r.__)("Cipher strength","really-simple-ssl")+" "+e+"%","cipher"))})()),(0,l.createElement)("div",{className:"rsssl-ssl-labs-select-item"},N()?(0,l.createElement)("h2",{className:"big-number"},"?"):(0,l.createElement)("h2",{className:"big-number"},V),N()&&(0,l.createElement)("div",null))),(0,l.createElement)("div",{className:"rsssl-ssl-labs-list"},(0,l.createElement)("div",{className:"rsssl-ssl-labs-list-item"},(0,l.createElement)(d.Z,{name:"info",color:B}),(0,l.createElement)("p",{className:"rsssl-ssl-labs-list-item-text"},A&&F,!A&&(0,r.__)("What does my score mean?","really-simple-ssl")),(0,l.createElement)("a",{href:"https://really-simple-ssl.com/instructions/about-ssl-labs/",target:"_blank"},(0,r.__)("Read more","really-simple-ssl"))),(0,l.createElement)("div",{className:"rsssl-ssl-labs-list-item"},(0,l.createElement)(d.Z,{name:"list",color:"black"}),(0,l.createElement)("p",{className:"rsssl-ssl-labs-list-item-text"},(0,r.__)("Last check:","really-simple-ssl")),(0,l.createElement)("p",{className:"rsssl-ssl-labs-list-item-text"},H)),(0,l.createElement)("div",{className:"rsssl-ssl-labs-list-item"},(0,l.createElement)(d.Z,{name:"external-link",color:"black"}),(0,l.createElement)("a",{href:Z,target:"_blank"},(0,r.__)("View detailed report on Qualys SSL Labs","really-simple-ssl"))))))},y=()=>{const{sslScanStatus:e,setSslScanStatus:t,isLocalHost:s}=E();let a="active"===e||s();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("button",{disabled:a,onClick:e=>t("active"),className:"button button-default"},"paused"===e&&(0,r.__)("Continue SSL Health check","really-simple-ssl"),"paused"!==e&&(0,r.__)("Check SSL Health","really-simple-ssl")))};var b=s(9196);const N=()=>{const{fields:e,getFieldValue:t}=(0,u.Z)(),[s,a]=(0,b.useState)(!1);return(0,b.useEffect)((()=>{1==t("enable_vulnerability_scanner")&&a(!0)}),[e]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h3",{className:"rsssl-grid-title rsssl-h4"},s?(0,r.__)("Vulnerabilities","really-simple-ssl"):(0,r.__)("Hardening","really-simple-ssl")),(0,l.createElement)("div",{className:"rsssl-grid-item-controls"},(0,l.createElement)("span",{className:"rsssl-header-html"})))};var k=s(870);const S=()=>{const{vulnerabilities:e,vulnerabilityScore:t,updates:s,dataLoaded:a,riskNaming:n,vulnerabilityCount:c,capitalizeFirstLetter:i,fetchVulnerabilities:o}=(0,k.Z)(),{fields:m,getFieldValue:g}=(0,u.Z)(),[h,p]=(0,b.useState)(""),[v,f]=(0,b.useState)(""),[E,w]=(0,b.useState)(""),[C,_]=(0,b.useState)(0),[y,N]=(0,b.useState)(!1);(0,b.useEffect)((()=>{1==g("enable_vulnerability_scanner")&&N(!0)}),[m]),(0,b.useEffect)((()=>{a||o()}),[y]),(0,b.useEffect)((()=>{const t=1===e?(0,r.__)("vulnerability","really-simple-ssl"):(0,r.__)("vulnerabilities","really-simple-ssl");p(t);const l=1===s?(0,r.__)("update","really-simple-ssl"):(0,r.__)("updates","really-simple-ssl");f(l);const a=1===C?(0,r.__)("hardening feature","really-simple-ssl"):(0,r.__)("hardening features","really-simple-ssl");w(a)}),[e,s,C]),(0,b.useEffect)((()=>{if(m.length>0){let e=m.filter((e=>e.recommended));e=e.filter((e=>1!==e.value&&!0!==e.disabled)),_(e.length)}}),[m]),c();let S="rsssl-inactive",M=y?"rsp-success":"rsp-default",x="rsp-success",L="green",z="black";if(y||C>0||s>0){let e=t();e>=5?(M="rsp-critical",L="red"):e<4&&e>0&&(M="rsp-medium",L="yellow"),s>=5?(x="rsp-critical",z="red"):e<5&&e>0&&(x="rsp-medium",z="yellow"),e<C&&(e=C),e<s&&(e=s),S=0===e?"rsssl-success":e<5?"rsssl-warning":"rsssl-error"}const H={marginLeft:"0.3em"};return(0,l.createElement)(l.Fragment,null,a?(0,l.createElement)("div",{className:"rsssl-hardening"},(0,l.createElement)("div",{className:"rsssl-gridblock-progress"}),(0,l.createElement)("div",{className:"rsssl-hardening-select "+S},(0,l.createElement)("div",{className:"rsssl-hardening-select-item"},y?(0,l.createElement)(d.Z,{color:L,size:23,name:"radar-duotone"}):(0,l.createElement)(d.Z,{size:23,color:"red",name:"satellite-dish-duotone"}),(0,l.createElement)("h2",null,y?e:"?"),(0,l.createElement)("span",{className:"rsssl-badge "+M},i(h))),(0,l.createElement)("div",{className:"rsssl-hardening-select-item"},s?(0,l.createElement)(d.Z,{size:23,color:z,name:"rotate-exclamation-light"}):(0,l.createElement)(d.Z,{size:23,color:"black",name:"rotate-light"}),(0,l.createElement)("h2",null,s),(0,l.createElement)("span",{className:"rsssl-badge "+x},i(v)))),(0,l.createElement)("div",{className:"rsssl-hardening-list"},(()=>{if(C){let e="circle-check",t="green";return C>0&&(e="info",t="yellow"),C>=5&&(e="circle-times",t="red"),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{name:e,color:t}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("You have %s open %d","really-simple-ssl").replace("%s",C).replace("%d",E)),(0,l.createElement)("a",{href:"#settings/hardening"},(0,r.__)("Settings","really-simple-ssl"))))}return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{name:"circle-check",color:"green"}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("Hardening features are configured","really-simple-ssl")),(0,l.createElement)("a",{style:H,href:"#settings/vulnerabilities",target:"_blank"},(0,r.__)("What now","really-simple-ssl"),"?")))})(),y?(0,l.createElement)(l.Fragment,null):(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{name:"info",color:"yellow"}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"}," ",(0,r.__)("Enable vulnerability detection","really-simple-ssl")),(0,l.createElement)("a",{href:"#settings/vulnerabilities"},(0,r.__)("Enable","really-simple-ssl")))),(()=>{let s="circle-check",a="green";return t()>0&&(s="info",a="yellow"),t()>=5&&(s="circle-times",a="red"),y?e?(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{name:s,color:a}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("You have %s %d","really-simple-ssl").replace("%s",e).replace("%d",h)),(0,l.createElement)("a",{style:H,href:"#settings/vulnerabilities"},(0,r.__)("Learn more","really-simple-ssl")))):(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{name:"circle-check",color:"green"}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("You have %s %d","really-simple-ssl").replace("%d",h).replace("%s",e)))):(0,l.createElement)(l.Fragment,null)})(),(()=>{let e="circle-check",t="green";return s>0&&(e="info",t="yellow"),s>=5&&(e="circle-times",t="red"),s?(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{name:e,color:t}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("You have %s %d pending","really-simple-ssl").replace("%s",s).replace("%d",v)),(0,l.createElement)("a",{href:rsssl_settings.plugins_url+"?plugin_status=upgrade",style:H},i(v)))):(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{name:e,color:t}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("You have %s %d pending","really-simple-ssl").replace("%s",s).replace("%d",v))))})())):(0,l.createElement)("div",{className:"rsssl-hardening"},(0,l.createElement)("div",{className:"rsssl-gridblock-progress"}),(0,l.createElement)("div",{className:"rsssl-hardening-select"},(0,l.createElement)("div",{className:"rsssl-hardening-select-item"},(0,l.createElement)(d.Z,{size:23,color:"grey",name:"radar-duotone"}),(0,l.createElement)("h2",null,"0"),(0,l.createElement)("span",{className:"rsssl-badge rsp-default"},i(h))),(0,l.createElement)("div",{className:"rsssl-hardening-select-item"},(0,l.createElement)(d.Z,{size:23,color:"grey",name:"rotate-exclamation-light"}),(0,l.createElement)("h2",null,"0"),(0,l.createElement)("span",{className:"rsssl-badge rsp-default"},i(v)))),(0,l.createElement)("div",{className:"rsssl-hardening-list"},(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{color:"grey",name:"circle-check"}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("Loading...","really-simple-ssl"))),(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{color:"grey",name:"circle-check"}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("Loading...","really-simple-ssl"))),(0,l.createElement)("div",{className:"rsssl-hardening-list-item"},(0,l.createElement)(d.Z,{color:"grey",name:"circle-check"}),(0,l.createElement)("p",{className:"rsssl-hardening-list-item-text"},(0,r.__)("Loading...","really-simple-ssl"))))))},M=e=>{const{lastChecked:t}=(0,k.Z)(),{fields:s,getFieldValue:a}=(0,u.Z)(),[n,c]=(0,b.useState)(!1);return(0,b.useEffect)((()=>{1==a("enable_vulnerability_scanner")&&c(!0)}),[s]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)("a",{href:"#settings/vulnerabilities",className:"button button-default"},(0,r.__)("Settings","really-simple-ssl")),n?(0,l.createElement)("p",{className:"rsssl-small-text"},w(t)):null)},x=e=>{let{link:t,content:s}=e;return(0,l.createElement)("div",{className:"rsssl-tips-tricks-element"},(0,l.createElement)("a",{href:t,target:"_blank",title:"{content}"},(0,l.createElement)("div",{className:"rsssl-icon"},(0,l.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"15"},(0,l.createElement)("path",{fill:"var(--rsp-grey-300)",d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"}))),(0,l.createElement)("div",{className:"rsssl-tips-tricks-content"},s)))},L=()=>(0,l.createElement)("div",{className:"rsssl-tips-tricks-container"},[{content:"Definition: What is a Content Security Policy?",link:"https://really-simple-ssl.com/definition/What-is-a-Content-Security-Policy/"},{content:"Installing a Let's Encrypt certificate",link:"https://really-simple-ssl.com/install-ssl-certificate/"},{content:"Improve Security: (HSTS) HTTP Strict Transport Security",link:"https://really-simple-ssl.com/instructions/about-hsts/"},{content:"Improve Security: About vulnerabilities",link:"https://really-simple-ssl.com/instructions/about-vulnerabilities"},{content:"Instructions: Debugging with Really Simple SSL",link:"https://really-simple-ssl.com/instructions/debugging/"},{content:"Instructions: Configuring Hardening Features",link:"https://really-simple-ssl.com/instructions/about-hardening-features/"}].map(((e,t)=>(0,l.createElement)(x,{key:"trick-"+t,link:e.link,content:e.content})))),z=()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)("a",{href:"https://really-simple-ssl.com/knowledge-base-overview/",target:"_blank",className:"button button-secondary"},(0,r.__)("Documentation","really-simple-ssl"))),H=()=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)("h3",{className:"rsssl-grid-title rsssl-h4"},(0,r.__)("Other Plugins","really-simple-ssl")),(0,l.createElement)("div",{className:"rsssl-grid-item-controls"},(0,l.createElement)("span",{className:"rsssl-header-html"},(0,l.createElement)("a",{className:"rsp-logo",href:"https://really-simple-plugins.com/"},(0,l.createElement)("img",{src:rsssl_settings.plugin_url+"assets/img/really-simple-plugins.svg",alt:"Really Simple Plugins"})))));var D=s(4531);const V=(0,v.Ue)(((e,t)=>({error:!1,dataLoaded:!1,pluginData:[],updatePluginData:(s,l)=>{let a=t().pluginData;a.forEach((function(e,t){e.slug===s&&(a[t]=l)})),e((e=>({dataLoaded:!0,pluginData:a})))},getPluginData:e=>t().pluginData.filter((t=>t.slug===e))[0],fetchOtherPluginsData:async()=>{const{pluginData:t,error:s}=await f.Kw("otherpluginsdata").then((e=>{let t=[];t=e.plugins;let s=e.error;return s||t.forEach((function(e,s){t[s].pluginActionNice=Z(e.pluginAction)})),{pluginData:t,error:s}}));e((e=>({dataLoaded:!0,pluginData:t,error:s})))},pluginActions:(e,s,l)=>{l&&l.preventDefault();let a={};a.slug=e,a.pluginAction=s;let r=t().getPluginData(e);"download"===s?r.pluginAction="downloading":"activate"===s&&(r.pluginAction="activating"),r.pluginActionNice=Z(r.pluginAction),t().updatePluginData(e,r),"installed"!==s&&"upgrade-to-premium"!==s&&f.Kw("plugin_actions",a).then((s=>{r=s,t().updatePluginData(e,r),t().pluginActions(e,r.pluginAction)}))}}))),Z=e=>({download:(0,r.__)("Install","really-simple-ssl"),activate:(0,r.__)("Activate","really-simple-ssl"),activating:(0,r.__)("Activating...","really-simple-ssl"),downloading:(0,r.__)("Downloading...","really-simple-ssl"),"upgrade-to-premium":(0,r.__)("Downloading...","really-simple-ssl")}[e]),A=()=>{const{dataLoaded:e,pluginData:t,pluginActions:s,fetchOtherPluginsData:a,error:n}=V();return(0,l.useEffect)((()=>{e||a()}),[]),!e||n?(0,l.createElement)(D.Z,{lines:"3",error:n}):(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-other-plugins-container"},t.map(((e,t)=>((e,t)=>(0,l.createElement)("div",{key:"plugin"+t,className:"rsssl-other-plugins-element rsssl-"+e.slug},(0,l.createElement)("a",{href:e.wordpress_url,target:"_blank",title:e.title},(0,l.createElement)("div",{className:"rsssl-bullet"}),(0,l.createElement)("div",{className:"rsssl-other-plugins-content"},e.title)),(0,l.createElement)("div",{className:"rsssl-other-plugin-status"},"upgrade-to-premium"===e.pluginAction&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("a",{target:"_blank",href:e.upgrade_url},(0,r.__)("Upgrade","really-simple-ssl"))),"upgrade-to-premium"!==e.pluginAction&&"installed"!==e.pluginAction&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("a",{href:"#",onClick:t=>s(e.slug,e.pluginAction,t)},e.pluginActionNice)),"installed"===e.pluginAction&&(0,l.createElement)(l.Fragment,null,(0,r.__)("Installed","really-simple-ssl")))))(e,t)))))},F=e=>(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"rsssl-grid-item rsssl-column-2 rsssl-dashboard-placeholder"}),(0,l.createElement)("div",{className:"rsssl-grid-item rsssl-row-2 rsssl-dashboard-placeholder"}),(0,l.createElement)("div",{className:"rsssl-grid-item rsssl-row-2 rsssl-dashboard-placeholder"})),B=()=>{const{fieldsLoaded:e}=(0,u.Z)(),t=[{id:"progress",header:c,content:o,footer:h,class:" rsssl-column-2"},{id:"ssllabs",header:p,content:_,footer:y,class:"border-to-border"},{id:"wpvul",header:N,content:S,footer:M,class:"border-to-border"},{id:"tips_tricks",title:(0,r.__)("Tips & Tricks","really-simple-ssl"),content:L,footer:z,class:" rsssl-column-2"},{id:"other-plugins",header:H,content:A,class:" rsssl-column-2 no-border no-background"}];return(0,l.createElement)(l.Fragment,null,!e&&(0,l.createElement)(F,null),e&&t.map(((e,t)=>(0,l.createElement)(a,{key:"grid_"+t,block:e}))))}},2387:(e,t,s)=>{s.d(t,{Z:()=>r});var l=s(270),a=s(8473);const r=(0,l.Ue)(((e,t)=>({filter:"all",progressText:"",notices:[],error:!1,percentageCompleted:0,progressLoaded:!1,setFilter:t=>{sessionStorage.rsssl_task_filter=t,e((e=>({filter:t})))},fetchFilter:()=>{if("undefined"!=typeof Storage&&sessionStorage.rsssl_task_filter){let t=sessionStorage.rsssl_task_filter;e((e=>({filter:t})))}},getProgressData:async()=>{const{percentage:t,text:s,notices:l,error:r}=await a.SA("progressData","refresh").then((e=>e));e((e=>({notices:l,percentageCompleted:t,progressText:s,progressLoaded:!0,error:r})))},dismissNotice:async s=>{let l=t().notices;l=l.filter((function(e){return e.id!==s})),e((e=>({notices:l})));const{percentage:r}=await a.SA("dismiss_task",s);e({percentageCompleted:r})}})))},3909:(e,t,s)=>{s.d(t,{Z:()=>u});var l=s(9307),a=s(5736),r=s(3882),n=s(9818),c=s(8473),i=s(4064),o=s(4559),m=s(2387),d=s(2485);const u=e=>{const{dismissNotice:t}=(0,m.Z)(),{getField:s,setHighLightField:u,fetchFieldsData:g}=(0,o.Z)(),{setSelectedSubMenuItem:h}=(0,d.Z)();let p=e.notice,v="premium"===p.output.icon,f=p.output.url&&-1!==p.output.url.indexOf("really-simple-ssl.com");return(0,l.createElement)("div",{className:"rsssl-task-element"},(0,l.createElement)("span",{className:"rsssl-task-status rsssl-"+p.output.icon},p.output.label),(0,l.createElement)("p",{className:"rsssl-task-message",dangerouslySetInnerHTML:{__html:p.output.msg}}),f&&p.output.url&&(0,l.createElement)("a",{target:"_blank",href:p.output.url},(0,a.__)("More info","really-simple-ssl")),p.output.clear_cache_id&&(0,l.createElement)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(e=>{let t={};t.cache_id=e,c.Kw("clear_cache",t).then((e=>{(0,n.dispatch)("core/notices").createNotice("success",(0,a.__)("Re-started test","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_clear_cache",type:"snackbar",isDismissible:!0}).then((0,i.Z)(3e3)).then((e=>{(0,n.dispatch)("core/notices").removeNotice("rsssl_clear_cache")})),g()}))})(p.output.clear_cache_id)},(0,a.__)("Re-check","really-simple-ssl")),!v&&!f&&p.output.url&&(0,l.createElement)("a",{className:"rsssl-task-enable button button-secondary",href:p.output.url},(0,a.__)("View","really-simple-ssl")),!v&&p.output.highlight_field_id&&(0,l.createElement)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(async()=>{u(e.notice.output.highlight_field_id);let t=s(e.notice.output.highlight_field_id);await h(t.menu_id)})()},(0,a.__)("View","really-simple-ssl")),p.output.plusone&&(0,l.createElement)("span",{className:"rsssl-plusone"},"1"),p.output.dismissible&&"completed"!==p.output.status&&(0,l.createElement)("div",{className:"rsssl-task-dismiss"},(0,l.createElement)("button",{type:"button",onClick:e=>t(p.id)},(0,l.createElement)(r.Z,{name:"times"}))))}},4531:(e,t,s)=>{s.d(t,{Z:()=>r});var l=s(9307),a=s(2919);const r=e=>{let t=e.lines;return t||(t=4),e.error&&(t=0),(0,l.createElement)("div",{className:"rsssl-placeholder"},e.error&&(0,l.createElement)(a.Z,{error:e.error}),Array.from({length:t}).map(((e,t)=>(0,l.createElement)("div",{className:"rsssl-placeholder-line",key:"placeholder-"+t}))))}},870:(e,t,s)=>{s.d(t,{Z:()=>i});var l=s(9307),a=s(270),r=s(8473),n=s(5736),c=s(2902);s(9196);const i=(0,a.Ue)(((e,t)=>({dummyRiskData:[{id:"force_update",name:"Force Update",value:"l",description:(0,n.__)("Force update the plugin or theme","really-simple-ssl")},{id:"quarantine",name:"Quarantine",value:"m",description:(0,n.__)("Isolates the plugin or theme if no update can be performed","really-simple-ssl")}],riskData:[],riskLevels:{l:1,m:2,h:3,c:4},vulnerabilities:[],processing:!1,dataLoaded:!1,updates:0,HighestRisk:!1,lastChecked:"",vulEnabled:!1,riskNaming:{},introCompleted:!1,vulList:[],setDataLoaded:t=>e({dataLoaded:t}),updateRiskData:async(s,l)=>{e({processing:!0}),e((0,c.Uy)((e=>{let a=e.riskData.findIndex((e=>e.id===s));e.riskData[a].value=l,e.riskData=t().enforceCascadingRiskLevels(e.riskData)})));try{await r.Kw("vulnerabilities_measures_set",{riskData:t().riskData}),e({dataLoaded:!0,processing:!1})}catch(e){console.log(e)}},setIntroCompleted:t=>{e({introCompleted:t})},enforceCascadingRiskLevels:e=>{if(0===e.length)return e;let s=e.filter((e=>"force_update"===e.id))[0].value,l=e.filter((e=>"quarantine"===e.id))[0].value;s=t().riskLevels.hasOwnProperty(s)?t().riskLevels[s]:5,l=t().riskLevels.hasOwnProperty(l)?t().riskLevels[l]:5;let a=e.findIndex((e=>"quarantine"===e.id));l<s&&(e[a].value=Object.keys(t().riskLevels).find((e=>t().riskLevels[e]===s))),5===s&&(e[a].value="*");let r=s>0?s:0,n=Array.from(Array(r).keys()).map((e=>e));return n=n.map((e=>Object.keys(t().riskLevels).find((s=>t().riskLevels[s]===e)))),e[a].disabledRiskLevels=n,e},capitalizeFirstLetter:e=>e.charAt(0).toUpperCase()+e.slice(1),fetchFirstRun:async()=>{await r.Kw("vulnerabilities_scan_files")},fetchVulnerabilities:async()=>{let s={};try{const a=await r.Kw("hardening_data",s);let i=[],o=0;a.data.vulList&&(o=a.data.vulnerabilities,i=a.data.vulList,"object"==typeof i&&(i=Object.values(i)),i.forEach((function(e,t){let s=e.update_available?rsssl_settings.plugins_url+"?plugin_status=upgrade":"#settings/vulnerabilities";e.vulnerability_action=(0,l.createElement)("div",{className:"rsssl-vulnerability-action"},(0,l.createElement)("a",{className:"button",href:"https://really-simple-ssl.com/vulnerabilities/"+e.rss_identifier,target:"_blank"},(0,n.__)("Details","really-simple-ssl")),(0,l.createElement)("a",{disabled:!e.update_available,href:s,className:"button button-primary"},(0,n.__)("Update","really-simple-ssl")))})));let m=a.data.riskData;Array.isArray(m)||(m=[]),m=t().enforceCascadingRiskLevels(m),e((0,c.Uy)((e=>{e.vulnerabilities=o,e.vulList=i,e.updates=a.data.updates,e.dataLoaded=!0,e.riskNaming=a.data.riskNaming,e.lastChecked=a.data.lastChecked,e.vulEnabled=a.data.vulEnabled,e.riskData=m})))}catch(e){console.error(e)}},vulnerabilityCount:()=>{let e=t().vulList,s=[];return Object.keys(e).forEach((function(t){s.push(e[t])})),["c","h","m","l"].map((function(e){return{level:e,count:s.filter((function(t){return t.risk_level===e})).length}}))},vulnerabilityScore:()=>{let e=0,s=t().vulList;return Object.keys(s).forEach((function(t){"c"===s[t].risk_level?e=5:e<1&&(e=1)})),e},hardeningScore:()=>{let e=0,s=t().vulnerabilities;for(let t=0;t<s.length;t++)e+=s[t].hardening_score;return e},activateVulnerabilityScanner:async()=>{try{(await r.Kw("rsssl_scan_files")).request_success&&(async()=>{await t().fetchVulnerabilities()})()}catch(e){console.error(e)}}})))},3882:(e,t,s)=>{s.d(t,{Z:()=>c});var l=s(7462),a=s(9307),r=s(7557),n=s(9610);const c=e=>{const{name:t,color:s,size:c}=e,i=t||"bullet",o=s||"black",m=c||15,d={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)","red-faded":"var(--rsp-red-faded)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)","red-warning":"var(--rsp-red-faded)"};let u="";"bullet"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"}))}),"circle"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"check"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"warning"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))}),"error"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"}))}),"times"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"}))}),"circle-check"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"}))}),"circle-times"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"}))}),"chevron-up"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"}))}),"chevron-down"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"}))}),"chevron-right"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"}))}),"chevron-left"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"}))}),"plus"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"}))}),"minus"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"}))}),"sync"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"}))}),"sync-error"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"}))}),"shortcode"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"}))}),"file"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"}))}),"file-disabled"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"}))}),"file-download"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"}))}),"calendar"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"}))}),"calendar-error"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"}))}),"help"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"}))}),"copy"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"}))}),"info"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"}))}),"info-open"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"}))}),"list"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"}))}),"empty"===i&&(u={html:(0,a.createElement)("svg",{height:m,width:m,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"})}),"external-link"===i&&(u={html:(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("path",{fill:d[o],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"}))}),"shield"===i&&(u={html:(0,a.createElement)("svg",{height:m,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"},(0,a.createElement)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,a.createElement)("g",null,(0,a.createElement)("g",null,(0,a.createElement)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,a.createElement)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})),(0,a.createElement)("g",null,(0,a.createElement)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,a.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"}))))}),"file-search"===i&&(u={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:m,fill:"none",viewBox:"0 0 384 512"},(0,a.createElement)("path",{d:"M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"})),viewBox:"0 0 24 24"}),"download"===i&&(u={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:m,fill:"none",viewBox:"0 0 512 512"},(0,a.createElement)("path",{d:"M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"})),viewBox:"0 0 24 24"}),"satellite-dish"===i&&(u={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",color:d[o],height:m,viewBox:"0 0 512 512"},(0,a.createElement)("path",{d:"M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})),viewBox:"0 0 24 24"}),"rotate-light"===i&&(u={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",color:d[o],height:m,viewBox:"0 0 512 512"},(0,a.createElement)("path",{d:"M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"})),viewBox:"0 0 24 24"}),"rotate-exclamation-light"===i&&(u={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("defs",null,(0,a.createElement)("style",null,`\n .fa-secondary {\n opacity: 0.4;\n color: ${d[o]};\n }\n `)),(0,a.createElement)("path",{className:"fa-primary",d:"M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"}),(0,a.createElement)("path",{className:"fa-secondary",d:"M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"})),viewBox:"0 0 24 24"}),"radar-duotone"===i&&(u={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("defs",null,(0,a.createElement)("style",null,`\n .fa-secondary {\n color: ${d[o]} !important;\n } \n `)),(0,a.createElement)("path",{className:"fa-primary",d:"M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"}),(0,a.createElement)("path",{className:"fa-secondary",d:"M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"})),viewBox:"0 0 24 24"}),"satellite-dish-duotone"===i&&(u={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,a.createElement)("defs",null,(0,a.createElement)("style",null,`\n .fa-secondary {\n color: ${d[o]} !important;\n } \n `)),(0,a.createElement)("path",{className:"fa-primary",d:"M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"}),(0,a.createElement)("path",{className:"fa-secondary",d:"M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"})),viewBox:"0 0 24 24"}),"spinner"===i&&(u={html:(0,a.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",height:"20"},(0,a.createElement)("defs",null,(0,a.createElement)("style",null,"\n .fa-secondary {\n opacity: 0.4;\n }\n ")),(0,a.createElement)("path",{className:"fa-primary",d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"}),(0,a.createElement)("path",{className:"fa-secondary",d:"M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"})),viewBox:"0 0 22 22"});const g=(0,n.ZP)((e=>{let{className:t,...s}=e;return(0,a.createElement)(r.Z,(0,l.Z)({},s,{classes:{popper:t}}))}))((e=>{let{theme:t}=e;return{"& .MuiTooltip-tooltip":{padding:"10px 20px",fontWeight:"340",fontSize:"var(--rsp-fs-200)",fontFamily:"unset",backgroundColor:"var(--rsp-black)"}}}));return(0,a.createElement)(g,{arrow:!0,enterDelay:200,title:e.tooltip,placement:"bottom"},(0,a.createElement)("div",{className:"rsssl-icon rsssl-icon-"+i},u.html))}}}]); build/index.js 0000666 00000147715 15165313625 0007342 0 ustar 00 (()=>{var e,t,r,n,s={9669:(e,t,r)=>{e.exports=r(1609)},5448:(e,t,r)=>{"use strict";var n=r(4867),s=r(6026),i=r(4372),o=r(5327),a=r(4097),l=r(4109),u=r(7985),c=r(5061),d=r(5655),f=r(5263);e.exports=function(e){return new Promise((function(t,r){var p,m=e.data,h=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(p),e.signal&&e.signal.removeEventListener("abort",p)}n.isFormData(m)&&delete h["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(b+":"+w)}var S=a(e.baseURL,e.url);function _(){if(y){var n="getAllResponseHeaders"in y?l(y.getAllResponseHeaders()):null,i={data:g&&"text"!==g&&"json"!==g?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y};s((function(e){t(e),v()}),(function(e){r(e),v()}),i),y=null}}if(y.open(e.method.toUpperCase(),o(S,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=_:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(_)},y.onabort=function(){y&&(r(c("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){r(c("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(c(t,e,n.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},n.isStandardBrowserEnv()){var E=(e.withCredentials||u(S))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;E&&(h[e.xsrfHeaderName]=E)}"setRequestHeader"in y&&n.forEach(h,(function(e,t){void 0===m&&"content-type"===t.toLowerCase()?delete h[t]:y.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),g&&"json"!==g&&(y.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(p=function(e){y&&(r(!e||e&&e.type?new f("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(p),e.signal&&(e.signal.aborted?p():e.signal.addEventListener("abort",p))),m||(m=null),y.send(m)}))}},1609:(e,t,r)=>{"use strict";var n=r(4867),s=r(1849),i=r(321),o=r(7185),a=function e(t){var r=new i(t),a=s(i.prototype.request,r);return n.extend(a,i.prototype,r),n.extend(a,r),a.create=function(r){return e(o(t,r))},a}(r(5655));a.Axios=i,a.Cancel=r(5263),a.CancelToken=r(4972),a.isCancel=r(6502),a.VERSION=r(7288).version,a.all=function(e){return Promise.all(e)},a.spread=r(8713),a.isAxiosError=r(6268),e.exports=a,e.exports.default=a},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,r)=>{"use strict";var n=r(5263);function s(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},s.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,r)=>{"use strict";var n=r(4867),s=r(5327),i=r(782),o=r(3572),a=r(7185),l=r(4875),u=l.validators;function c(e){this.defaults=e,this.interceptors={request:new i,response:new i}}c.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&l.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,c=[];if(this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)})),!s){var d=[o,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(c),i=Promise.resolve(t);d.length;)i=i.then(d.shift(),d.shift());return i}for(var f=t;n.length;){var p=n.shift(),m=n.shift();try{f=p(f)}catch(e){m(e);break}}try{i=o(f)}catch(e){return Promise.reject(e)}for(;c.length;)i=i.then(c.shift(),c.shift());return i},c.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=a(this.defaults,e),s(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,r,n){return this.request(a(n||{},{method:e,url:t,data:r}))}})),e.exports=c},782:(e,t,r)=>{"use strict";var n=r(4867);function s(){this.handlers=[]}s.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},s.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},s.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=s},4097:(e,t,r)=>{"use strict";var n=r(1793),s=r(7303);e.exports=function(e,t){return e&&!n(t)?s(e,t):t}},5061:(e,t,r)=>{"use strict";var n=r(481);e.exports=function(e,t,r,s,i){var o=new Error(e);return n(o,t,r,s,i)}},3572:(e,t,r)=>{"use strict";var n=r(4867),s=r(8527),i=r(6502),o=r(5655),a=r(5263);function l(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=s.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=s.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=s.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,r,n,s){return e.config=t,r&&(e.code=r),e.request=n,e.response=s,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e}},7185:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){t=t||{};var r={};function s(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:s(void 0,e[r]):s(e[r],t[r])}function o(e){if(!n.isUndefined(t[e]))return s(void 0,t[e])}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:s(void 0,e[r]):s(void 0,t[r])}function l(r){return r in t?s(e[r],t[r]):r in e?s(void 0,e[r]):void 0}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||i,s=t(e);n.isUndefined(s)&&t!==l||(r[e]=s)})),r}},6026:(e,t,r)=>{"use strict";var n=r(5061);e.exports=function(e,t,r){var s=r.config.validateStatus;r.status&&s&&!s(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},8527:(e,t,r)=>{"use strict";var n=r(4867),s=r(5655);e.exports=function(e,t,r){var i=this||s;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},5655:(e,t,r)=>{"use strict";var n=r(4867),s=r(6016),i=r(481),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(l=r(5448)),l),transformRequest:[function(e,t){return s(t,"Accept"),s(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(a(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(0,JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||u.transitional,r=t&&t.silentJSONParsing,s=t&&t.forcedJSONParsing,o=!r&&"json"===this.responseType;if(o||s&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){u.headers[e]=n.merge(o)})),e.exports=u},7288:e=>{e.exports={version:"0.25.0"}},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},5327:(e,t,r)=>{"use strict";var n=r(4867);function s(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var o=[];n.forEach(t,(function(e,t){null!=e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(s(t)+"="+s(e))})))})),i=o.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,r)=>{"use strict";var n=r(4867);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,s,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(s)&&a.push("path="+s),n.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},6268:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},7985:(e,t,r)=>{"use strict";var n=r(4867);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function s(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=s(window.location.href),function(t){var r=n.isString(t)?s(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},6016:(e,t,r)=>{"use strict";var n=r(4867);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},4109:(e,t,r)=>{"use strict";var n=r(4867),s=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,o={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(o[t]&&s.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([r]):o[t]?o[t]+", "+r:r}})),o):o}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,r)=>{"use strict";var n=r(7288).version,s={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){s[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={};s.transitional=function(e,t,r){function s(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,o){if(!1===e)throw new Error(s(n," has been removed"+(t?" in "+t:"")));return t&&!i[n]&&(i[n]=!0,console.warn(s(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,o)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),s=n.length;s-- >0;){var i=n[s],o=t[i];if(o){var a=e[i],l=void 0===a||o(a,i,e);if(!0!==l)throw new TypeError("option "+i+" must be "+l)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:s}},4867:(e,t,r)=>{"use strict";var n=r(1849),s=Object.prototype.toString;function i(e){return Array.isArray(e)}function o(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===s.call(e)}function l(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==s.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===s.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}e.exports={isArray:i,isArrayBuffer:a,isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"[object FormData]"===s.call(e)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&a(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:u,isUndefined:o,isDate:function(e){return"[object Date]"===s.call(e)},isFile:function(e){return"[object File]"===s.call(e)},isBlob:function(e){return"[object Blob]"===s.call(e)},isFunction:c,isStream:function(e){return l(e)&&c(e.pipe)},isURLSearchParams:function(e){return"[object URLSearchParams]"===s.call(e)},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:d,merge:function e(){var t={};function r(r,n){u(t[n])&&u(r)?t[n]=e(t[n],r):u(r)?t[n]=e({},r):i(r)?t[n]=r.slice():t[n]=r}for(var n=0,s=arguments.length;n<s;n++)d(arguments[n],r);return t},extend:function(e,t,r){return d(t,(function(t,s){e[s]=r&&"function"==typeof t?n(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},2485:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(270),s=r(5902);const i=(0,n.Ue)(((e,t)=>({menu:[],subMenuLoaded:!1,previousMenuItem:!1,nextMenuItem:!1,selectedMainMenuItem:!1,selectedSubMenuItem:!1,hasPremiumItems:!1,subMenu:{title:" ",menu_items:[]},setSelectedSubMenuItem:async t=>{let r=c(t);e((e=>({selectedSubMenuItem:t,selectedMainMenuItem:r}))),window.location.hash=r+"/"+t},setSelectedMainMenuItem:t=>{e((e=>({selectedMainMenuItem:t}))),window.location.hash=t},fetchSelectedMainMenuItem:()=>{let t=(0,s.Z)("main")||"dashboard";e((e=>({selectedMainMenuItem:t})))},fetchSelectedSubMenuItem:async()=>{let t=(0,s.Z)("menu")||"general";e((e=>({selectedSubMenuItem:t})))},fetchMenuData:t=>{let r=rsssl_settings.menu;r=Object.values(r);const n=(0,s.Z)("main")||"dashboard";if(r=r.filter((e=>!e.default_hidden||n===e.id)),void 0!==t){let s=u(r,n);const i=d(s,t);s.menu_items=l(s.menu_items,t,i);const{nextMenuItem:o,previousMenuItem:c}=a(r,i,t),f=s.menu_items.filter((e=>!0===e.premium)).length>0;e((e=>({subMenuLoaded:!0,menu:r,nextMenuItem:o,previousMenuItem:c,selectedMainMenuItem:n,selectedSubMenuItem:i,subMenu:s,hasPremiumItems:f})))}else e((e=>({menu:r,selectedMainMenuItem:n})))},getDefaultSubMenuItem:async e=>{let r=t().subMenuLoaded;r||await t().fetchMenuData(e);let n=t().subMenu,i=r&&n.hasOwnProperty(0)?n[0].id:"general",o=(0,s.Z)("menu"),a=!1;for(const e in(void 0).menu.menu_items)n.hasOwnProperty(e)&&n[e].id===o&&(a=!0);return a||(o=!1),o||i}}))),o=(e,t,r)=>(t.forEach((t=>{t.visible&&(e.push(t.id),t.hasOwnProperty("menu_items")&&(t.menu_items=l(t.menu_items,r),o(e,t.menu_items,r)))})),e),a=(e,t,r)=>{let n,s;const i=[];o(i,e,r);const a=i.findIndex((e=>e===t));return-1!==a&&(n=i[0===a?"":a-1],f(n,e).hasOwnProperty("menu_items")&&(n=i[0===a?"":a-2]),s=i[a===i.length-1?"":a+1],n=n||i[0],s=s||i[i.length-1]),{nextMenuItem:s,previousMenuItem:n}},l=(e,t)=>{const r=e;for(const[n,s]of e.entries()){let e=t.filter((e=>e.menu_id===s.id));e=e.filter((e=>e.visible)),0!==e.length||s.hasOwnProperty("menu_items")?(r[n].visible=!0,s.hasOwnProperty("menu_items")&&(r[n].menu_items=l(s.menu_items,t))):r[n].visible=!1}return r},u=(e,t)=>{let r=[];for(const n in e)e.hasOwnProperty(n)&&e[n].id===t&&(r=e[n]);return r=p(r),r},c=e=>{let t=rsssl_settings.menu;for(const r in t){let n=t[r];if(n.id===e)return n.id;if(n.menu_items)for(const t in n.menu_items){let r=n.menu_items[t];if(r.id===e)return n.id;if(r.menu_items)for(const t in r.menu_items)if(r.menu_items[t].id===e)return n.id}}return!1},d=(e,t)=>{let r,n=e&&e.menu_items.hasOwnProperty(0)?e.menu_items[0].id:"general",i=o([],e.menu_items),a=(0,s.Z)("menu");r=i.filter((e=>e===a)),r||(a=!1);let l=a||n;if(0===t.filter((e=>e.menu_id===l)).length){let t=f(l,e.menu_items);t&&t.menu_items&&t.menu_items.hasOwnProperty(0)&&(l=t.menu_items[0].id)}return l},f=(e,t)=>{for(const r in t){let n=t[r];if(n.id===e)return n;if(n.menu_items){let t=f(e,n.menu_items);if(t)return t}}return!1},p=e=>{let t=e.menu_items;for(let[r,n]of e.menu_items.entries())n.visible=!0,n.hasOwnProperty("menu_items")&&(n=p(n)),t[r]=n;return e.menu_items=t,e.visible=!0,e}},5097:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=(0,r(270).Ue)(((e,t)=>({modalData:[],buttonsDisabled:!1,showModal:!1,ignoredItems:[],fixedItems:[],item:!1,setIgnoredItemId:r=>{let n=t().ignoredItems;n.push(r),e({ignoredItems:n})},setFixedItemId:r=>{let n=t().fixedItems;n.push(r),e({fixedItems:n})},handleModal:(t,r,n)=>{e({showModal:t,modalData:r,item:n})},setModalData:t=>{e({modalData:t})}})))},9810:(e,t,r)=>{"use strict";r.d(t,{Z:()=>c});var n=r(270),s=r(2902),i=r(8473),o=r(5736);const a=(0,n.Ue)(((e,t)=>({steps:[],currentStepIndex:0,currentStep:{},error:!1,networkProgress:0,networkActivationStatus:"",certificateValid:"",networkwide:!1,sslEnabled:!1,overrideSSL:!1,showOnboardingModal:!1,modalStatusLoaded:!1,dataLoaded:!1,processing:!1,email:"",includeTips:!1,sendTestEmail:!0,actionStatus:"",setIncludeTips:t=>{e((e=>({includeTips:t})))},setSendTestEmail:t=>{e((e=>({sendTestEmail:t})))},setEmail:t=>{e((e=>({email:t})))},setShowOnboardingModal:t=>{e((e=>({showOnboardingModal:t})))},setProcessing:t=>{e((e=>({processing:t})))},setOverrideSSL:t=>{e((e=>({overrideSSL:t})))},setNetworkActivationStatus:t=>{e((e=>({networkActivationStatus:t})))},setCurrentStepIndex:r=>{const n=t().steps[r];e((e=>({currentStepIndex:r,currentStep:n})))},dismissModal:()=>{e((e=>({showOnboardingModal:!1}))),i.Kw("dismiss_modal",{dismiss:!0}).then((e=>{}))},saveEmail:()=>{let r={};r.email=t().email,r.includeTips=t().includeTips,r.sendTestEmail=t().sendTestEmail,e((e=>({processing:!0}))),i.Kw("update_email",r).then((r=>{e((e=>({processing:!1}))),t().setCurrentStepIndex(t().currentStepIndex+1)}))},updateItemStatus:(r,n,i)=>{const o=t().currentStepIndex,a=t().steps[o].items.findIndex((e=>e.id===i));e((0,s.Uy)((e=>{let s=t().currentStep,i={...s},l=[...s.items],u={...s.items[a]};u.status=n,u.current_action=r,l[a]=u,i.items=l,e.steps[o]=i,e.currentStep=e.steps[o]})))},fetchOnboardingModalStatus:async()=>{i.Kw("get_modal_status").then((t=>{e({showOnboardingModal:!t.dismissed,modalStatusLoaded:!0})}))},setShowOnBoardingModal:t=>e((e=>({showOnboardingModal:t}))),actionHandler:async(r,n,s)=>{e({actionStatus:"processing"}),s.preventDefault(),t().updateItemStatus(n,"processing",r);let i=await u(n,r);t().updateItemStatus(i.action,i.status,r),"none"!==i.action&&"completed"!==i.action?(i=await u(i.action,r),t().updateItemStatus(i.action,i.status,r)):e({actionStatus:"completed"})},getSteps:async t=>{const{steps:r,networkActivationStatus:n,certificateValid:s,networkProgress:i,networkwide:o,overrideSSL:a,error:u,sslEnabled:c}=await l(t);let d=0;(c||o&&"completed"===n)&&(d=1),e({steps:r,currentStepIndex:d,currentStep:r[d],networkActivationStatus:n,certificateValid:s,networkProgress:i,networkwide:o,overrideSSL:a,sslEnabled:c,dataLoaded:!0,error:u}),"completed"===n&&e({networkProgress:100})},refreshSSLStatus:t=>{t.preventDefault(),e({processing:!0}),e((0,s.Uy)((e=>{const t=e.steps.findIndex((e=>"activate_ssl"===e.id)),r=e.steps[t];r.items.forEach((function(e,t){"error"===e.status&&(r.items[t].status="processing",r.items[t].title=(0,o.__)("Re-checking SSL certificate, please wait...","really-simple-ssl"))})),e.steps[t]=r}))),setTimeout((async function(){const{steps:t,certificateValid:r,error:n}=await l(!0);e({steps:t,certificateValid:r,processing:!1,error:n})}),1e3)},activateSSLNetworkWide:()=>{t().networkProgress>=100?e({sslEnabled:!0,networkActivationStatus:"completed"}):(e((()=>({processing:!0}))),i.SA("activate_ssl_networkwide").then((t=>{t.success&&(e({networkProgress:t.progress,processing:!1}),t.progress>=100&&e({sslEnabled:!0,networkActivationStatus:"completed"}))})))}}))),l=e=>{let t={};return t.forceRefresh=e,i.Kw("onboarding_data",t).then((e=>{let t=e.steps,r=e.ssl_enabled;return{steps:t,networkActivationStatus:e.network_activation_status,certificateValid:e.certificate_valid,networkProgress:e.network_progress,networkwide:e.networkwide,overrideSSL:e.ssl_detection_overridden,error:e.error,sslEnabled:r}}))},u=(e,t)=>{let r={};r.id=t;let n={};return i.Kw(e,r).then((async e=>e.success?(n.action=e.next_action,n.status="success",n):(n.action="failed",n.status="error",n))).catch((e=>(n.action="failed",n.status="error",n)))},c=a},4559:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n=r(270),s=r(2902),i=r(8473),o=r(4064),a=r(5736),l=r(9818);const u=(0,n.Ue)(((e,t)=>({fieldsLoaded:!1,error:!1,fields:[],changedFields:[],progress:[],nextButtonDisabled:!1,refreshTests:!1,highLightField:"",setHighLightField:t=>{e((e=>({highLightField:t})))},setRefreshTests:t=>e((e=>({refreshTests:t}))),handleNextButtonDisabled:t=>e((e=>({nextButtonDisabled:t}))),setChangedField:(t,r)=>{e((0,s.Uy)((e=>{const n=e.changedFields.findIndex((e=>e.id===t));-1!==n&&e.changedFields.splice(n,1);let s={};s.id=t,s.value=r,e.changedFields.push(s)})))},showSavedSettingsNotice:e=>{f(e)},updateField:(t,r)=>{e((0,s.Uy)((e=>{let n=e.fields.findIndex((e=>e.id===t));-1!==n&&(e.fields[n].value=r)})))},updateFieldAttribute:(t,r,n)=>{e((0,s.Uy)((e=>{let s=e.fields.findIndex((e=>e.id===t));-1!==s&&(e.fields[s][r]=n)})))},updateSubField:(t,r,n)=>{e((0,s.Uy)((e=>{let s=e.fields.findIndex((e=>e.id===t)),i=e.fields[s].value;Array.isArray(i)||(i=[]);let o=i.findIndex((e=>e.id===r));-1!==o&&(e.fields[s].updateItemId=r,e.fields[s].value[o].value=n,e.fields[s].value=i.map((e=>{const{deleteControl:t,valueControl:r,statusControl:n,...s}=e;return s})))})))},addHelpNotice:(r,n,s,i,o)=>{let a={};a.label=n,a.text=s,o&&(a.url=o),i&&(a.title=i);let l=t().fields,u=[],c=!1;l.forEach((function(e,t){let n={...e};e.id!==r||e.help||(c=!0,n.help=a),u.push(n)})),c&&e({fields:u})},fieldAlreadyEnabled:e=>{let r=t().changedFields.filter((t=>t.id===e)).length>0,n=t().getFieldValue(e);return!r&&n},getFieldValue:e=>{let r=t().fields.filter((t=>t.id===e))[0];return!!r&&r.value},getField:e=>t().fields.filter((t=>t.id===e))[0]||!1,saveFields:(r,n)=>{let o=void 0===r||r;n=void 0===n||n;let a=t().fields;a=a.filter((e=>"banner"!==e.data_target));let l=t().changedFields,u=t().progress,c=[];for(const e of a){let t=l.filter((t=>t.id===e.id)).length>0,r="select"===e.type||"radio"===e.type;(t||e.never_saved&&!e.disabled&&r)&&c.push(e)}c.length>0&&i.aj(c).then((t=>{u=t.progress,a=t.fields,e((0,s.Uy)((e=>{e.changedFields=[],e.fields=a,e.progress=u,e.refreshTests=o})))})),n&&f()},updateFieldsData:r=>{let n=t().fields;n=d(n);const i=c(n,r);e((0,s.Uy)((e=>{e.fields=n,e.nextButtonDisabled=i})))},fetchFieldsData:async t=>{const{fields:r,progress:n,error:s}=await i.VN().then((e=>({fields:e.fields,progress:e.progress,error:e.error}))).catch((e=>{console.error(e)}));let o=d(r),a=o.filter((e=>e.menu_id===t));e({fieldsLoaded:!0,fields:o,selectedFields:a,progress:n,error:s})}}))),c=(e,t)=>{let r=[];for(const n of e)n.menu_id===t&&r.push(n);return r.filter((e=>e.required&&!e.conditionallyDisabled&&(0==e.value.length||!e.value))).length>0},d=e=>{let t=[];return e&&Array.isArray(e)?(e.forEach((function(r,n){let s=!(r.hasOwnProperty("react_conditions")&&!p(r.react_conditions,e,r.id)),i=!r.conditionallyDisabled;const o={...r};o.conditionallyDisabled=!s,o.visible=!(!s&&("letsencrypt"===o.type||"hide"===o.condition_action)),t.push(o),!i&&o.enabled&&"learningmode"!==r.type&&set().setChangedField(r.id,r.value)})),t):[]},f=e=>{void 0===e&&(e=(0,a.__)("Settings Saved","really-simple-ssl")),(0,l.dispatch)("core/notices").createNotice("success",e,{__unstableHTML:!0,id:"rsssl_settings_saved",type:"snackbar",isDismissible:!1}).then((0,o.Z)(2e3)).then((e=>{(0,l.dispatch)("core/notices").removeNotice("rsssl_settings_saved")}))},p=(e,t,r)=>{let n="OR"===e[0].relation?"OR":"AND",s="AND"===n;for(const i in e)if(e.hasOwnProperty(i)){let o="AND"===n,a=e[i];if(a.hasOwnProperty("relation"))o=p(a,t,r);else{for(let e in a){let r=0===e.indexOf("!");if(a.hasOwnProperty(e)){let r=a[e];e=e.replace("!","");let n=t.filter((t=>t.id===e));if(n.hasOwnProperty(0)){let e=n[0],t=e.value;if("text_checkbox"===e.type)o=t.hasOwnProperty("show")&&t.show==r;else if("checkbox"===e.type)o=t==r;else if("multicheckbox"===e.type){o=!1;let e=t;if(0===e.length)o=!1;else for(const t of Object.keys(e))if(Array.isArray(r)||(r=[r]),r.includes(e[t])){o=!0;break}}else o="radio"===e.type?Array.isArray(r)?r.includes(t):r===t:!0===r?1===t||"1"===t||!0===t:!1===r?0===t||"0"===t||!1===t:-1!==r.indexOf("EMPTY")?0===t.length:String(t).toLowerCase()===r.toLowerCase()}}r&&(o=!o),s="AND"===n?s&&o:s||o}s="AND"===n?s&&o:s||o}}return s?1:0}},2254:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(9307),s=r(5609),i=r(9818);const o=window.wp.notices,a=()=>{const e=(0,i.useSelect)((e=>e(o.store).getNotices().filter((e=>"snackbar"===e.type))),[]);if(void 0===e)return(0,n.createElement)(n.Fragment,null);const{removeNotice:t}=(0,i.useDispatch)(o.store);return(0,n.createElement)(s.SnackbarList,{className:"edit-site-notices",notices:e,onRemove:t})}},2919:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(9307),s=r(5736),i=r(9950);const o=e=>{e.error&&(console.log("errors detected during the loading of the settings page"),console.log(e.error));let t=!1,r=(0,s.__)("Please check if security settings on the server or a plugin is blocking the requests from Really Simple SSL.","really-simple-ssl"),o=!1;return e.error&&(o=e.error.message,"string"!=typeof o&&(o=JSON.stringify(o)),"rest_no_route"===e.error.code?t=(0,s.__)("The Really Simple SSL Rest API is disabled.","really-simple-ssl")+" "+r:"404"===e.error.data.status?t=(0,s.__)("The Really Simple SSL Rest API returned a not found.","really-simple-ssl")+" "+r:"403"===e.error.data.status&&(t=(0,s.__)("The Really Simple SSL Rest API returned a 403 forbidden error.","really-simple-ssl")+" "+r),o.length>100&&(o=o.substring(0,100)+"...")),(0,n.createElement)(n.Fragment,null,e.error&&(0,n.createElement)("div",{className:"rsssl-rest-error-message"},(0,n.createElement)("h3",null,(0,s.__)("A problem was detected during the loading of the settings","really-simple-ssl")),t&&(0,n.createElement)("p",null,t),(0,n.createElement)("div",null,(0,n.createElement)("p",null,(0,s.__)("The request returned the following errors:","really-simple-ssl")),(0,n.createElement)("ul",null,e.error.code&&(0,n.createElement)("li",null,(0,s.__)("Response code:","really-simple-ssl")," ",e.error.code),e.error.data.status&&(0,n.createElement)("li",null,(0,s.__)("Status code:","really-simple-ssl")," ",e.error.data.status),o&&(0,n.createElement)("li",null,(0,s.__)("Server response:","really-simple-ssl")," ",o))),(0,n.createElement)(i.Z,{className:"button button-default",target:"_blank",text:(0,s.__)("More information","really-simple-ssl"),url:"https://really-simple-ssl.com/instructions/how-to-debug-a-blank-settings-page-in-really-simple-ssl/"})))}},9950:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(9307);const s=e=>{let t="",r="",s="";if(-1!==e.text.indexOf("%s")){let n=e.text.split(/%s/);t=n[0],s=n[1],r=n[2]}else s=e.text;let i=e.className?e.className:"rsssl-link";return(0,n.createElement)(n.Fragment,null,t," ",(0,n.createElement)("a",{className:i,target:e.target,href:e.url},s),r)}},8473:(e,t,r)=>{"use strict";r.d(t,{Kr:()=>S,Kw:()=>_,SA:()=>w,VN:()=>y,aj:()=>b});var n=r(5902),s=r(9669),i=r.n(s),o=r(6989),a=r.n(o);const l=()=>"&nonce="+rsssl_settings.rsssl_nonce+"&token="+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),u=()=>-1!==rsssl_settings.site_url.indexOf("?"),c=(e,t)=>new Promise((function(r,n){let s=p("ajax"),i=new XMLHttpRequest;i.open("POST",s),i.onload=function(){let e;try{e=JSON.parse(i.response)}catch(e){r(m(i.response,500,"invalid_data"))}i.status>=200&&i.status<300?r(e):r(m(i.response,i.status,i.statusText))},i.onerror=function(){r(m(i.response,i.status,i.statusText))};let o={};o.path=e,o.data=t,o=JSON.stringify(o,d),i.setRequestHeader("Content-Type","application/json; charset=UTF-8"),i.send(o)})),d=(e,t)=>e?e&&e.includes("Control")?void 0:"object"==typeof t?JSON.parse(JSON.stringify(t,d)):t:t,f=e=>new Promise((function(t,r){let n=p("ajax");n+="&rest_action="+e.replace("?","&");let s=new XMLHttpRequest;s.open("GET",n),s.onload=function(){let e;try{e=JSON.parse(s.response)}catch(e){t(m(s.response,500,"invalid_data"))}s.status>=200&&s.status<300?(e.hasOwnProperty("request_success")||t(m(s.response,500,"invalid_data")),t(e)):t(m(s.response,s.status,s.statusText))},s.onerror=function(){t(m(s.response,s.status,s.statusText))},s.send()})),p=e=>{let t;return t=void 0===e?rsssl_settings.site_url:rsssl_settings.admin_ajax_url,"https:"===window.location.protocol&&-1===t.indexOf("https://")?t.replace("http://","https://"):t},m=(e,t,r)=>{let n={},s={},i={};return i.status=t,s.code=r,s.data=i,s.message=e,n.error=s,n},h=e=>{if(u()){let t={headers:{"X-WP-Nonce":rsssl_settings.nonce}};return i().get(p()+e,t).then((t=>t.data.request_success?t.data:f(e))).catch((t=>f(e)))}return a()({path:e}).then((t=>t.request_success?t:f(e))).catch((t=>f(e)))},g=(e,t)=>{if(u()){let r={headers:{"X-WP-Nonce":rsssl_settings.nonce}};return i().post(p()+e,t,r).then((e=>e.data)).catch((r=>c(e,t)))}return a()({path:e,method:"POST",data:t}).catch((r=>c(e,t)))},v=()=>-1!==rsssl_settings.site_url.indexOf("?")?"&":"?",y=()=>{let e=(0,n.Z)("main");return h("reallysimplessl/v1/fields/get"+v()+e+l())},b=e=>{let t=(0,n.Z)("main"),r={nonce:rsssl_settings.rsssl_nonce};return e.push(r),g("reallysimplessl/v1/fields/set"+v()+t,e)},w=(e,t,r)=>(t||(t=!1),r||(r=!1),r=encodeURIComponent(JSON.stringify(r)),h("reallysimplessl/v1/tests/"+e+v()+"state="+t+l()+"&data="+r)),S=(e,t)=>h("reallysimplessl/v1/tests/"+e+v()+"letsencrypt=1&id="+t+l()),_=(e,t)=>(void 0===t&&(t={}),t.nonce=rsssl_settings.rsssl_nonce,g("reallysimplessl/v1/do_action/"+e,t))},5902:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=e=>{let t=window.location.href;if(-1===t.indexOf("#"))return!1;let r=t.split("#");if(1===r.length)return!1;let n=r[1];if("anchor"===e){if(-1===n.indexOf("/"))return!1;{let e=n.split("/");return!(e.length<=2)&&e[2]}}if("menu"===e){if(-1===n.indexOf("/"))return!1;{let e=n.split("/");return!(e.length<=1)&&e[1]}}return-1===n.indexOf("/")?n:n.split("/")[0]}},4064:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n});const n=e=>function(t){return new Promise((r=>setTimeout((()=>r(t)),e)))}},3250:(e,t,r)=>{"use strict";var n=r(9196),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=n.useState,o=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!s(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=i({inst:{value:r,getSnapshot:t}}),s=n[0].inst,c=n[1];return a((function(){s.value=r,s.getSnapshot=t,u(s)&&c({inst:s})}),[e,r,t]),o((function(){return u(s)&&c({inst:s}),e((function(){u(s)&&c({inst:s})}))}),[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},139:(e,t,r)=>{"use strict";var n=r(9196),s=r(1688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=s.useSyncExternalStore,a=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,s){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!l){if(l=!0,o=e,e=n(e),void 0!==s&&f.hasValue){var t=f.value;if(s(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var r=n(e);return void 0!==s&&s(t,r)?t:(o=e,a=r)}var o,a,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,r,n,s]);var p=o(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},1688:(e,t,r)=>{"use strict";e.exports=r(3250)},2798:(e,t,r)=>{"use strict";e.exports=r(139)},9196:e=>{"use strict";e.exports=window.React},1850:e=>{"use strict";e.exports=window.ReactDOM},6989:e=>{"use strict";e.exports=window.wp.apiFetch},5609:e=>{"use strict";e.exports=window.wp.components},9818:e=>{"use strict";e.exports=window.wp.data},9307:e=>{"use strict";e.exports=window.wp.element},5736:e=>{"use strict";e.exports=window.wp.i18n},2902:(e,t,r)=>{"use strict";function n(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function s(e){return!!e&&!!e[V]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===J}(e)||Array.isArray(e)||!!e[Z]||!!(null===(t=e.constructor)||void 0===t?void 0:t[Z])||c(e)||d(e))}function o(e,t,r){void 0===r&&(r=!1),0===a(e)?(r?Object.keys:z)(e).forEach((function(n){r&&"symbol"==typeof n||t(n,e[n],e)})):e.forEach((function(r,n){return t(n,r,e)}))}function a(e){var t=e[V];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:c(e)?2:d(e)?3:0}function l(e,t){return 2===a(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t,r){var n=a(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function c(e){return F&&e instanceof Map}function d(e){return U&&e instanceof Set}function f(e){return e.o||e.t}function p(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=H(e);delete t[V];for(var r=z(t),n=0;n<r.length;n++){var s=r[n],i=t[s];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[s]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function m(e,t){return void 0===t&&(t=!1),g(e)||s(e)||!i(e)||(a(e)>1&&(e.set=e.add=e.clear=e.delete=h),Object.freeze(e),t&&o(e,(function(e,t){return m(t,!0)}),!0)),e}function h(){n(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=K[e];return t||n(18,e),t}function y(){return L}function b(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function w(e){S(e),e.p.forEach(E),e.p=null}function S(e){e===L&&(L=e.l)}function _(e){return L={p:[],l:L,h:e,m:!0,_:0}}function E(e){var t=e[V];0===t.i||1===t.i?t.j():t.g=!0}function O(e,t){t._=t.p.length;var r=t.p[0],s=void 0!==e&&e!==r;return t.h.O||v("ES5").S(t,e,s),s?(r[V].P&&(w(t),n(4)),i(e)&&(e=x(t,e),t.l||N(t,e)),t.u&&v("Patches").M(r[V].t,e,t.u,t.s)):e=x(t,r,[]),w(t),t.u&&t.v(t.u,t.s),e!==q?e:void 0}function x(e,t,r){if(g(t))return t;var n=t[V];if(!n)return o(t,(function(s,i){return P(e,n,t,s,i,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return N(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var s=4===n.i||5===n.i?n.o=p(n.k):n.o,i=s,a=!1;3===n.i&&(i=new Set(s),s.clear(),a=!0),o(i,(function(t,i){return P(e,n,s,t,i,r,a)})),N(e,s,!1),r&&e.u&&v("Patches").N(n,r,e.u,e.s)}return n.o}function P(e,t,r,n,o,a,c){if(s(o)){var d=x(e,o,a&&t&&3!==t.i&&!l(t.R,n)?a.concat(n):void 0);if(u(r,n,d),!s(d))return;e.m=!1}else c&&r.add(o);if(i(o)&&!g(o)){if(!e.h.D&&e._<1)return;x(e,o),t&&t.A.l||N(e,o)}}function N(e,t,r){void 0===r&&(r=!1),!e.l&&e.h.D&&e.m&&m(t,r)}function j(e,t){var r=e[V];return(r?f(r):e)[t]}function A(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function k(e){e.P||(e.P=!0,e.l&&k(e.l))}function M(e){e.o||(e.o=p(e.t))}function I(e,t,r){var n=c(t)?v("MapSet").F(t,r):d(t)?v("MapSet").T(t,r):e.O?function(e,t){var r=Array.isArray(e),n={i:r?1:0,A:t?t.A:y(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},s=n,i=W;r&&(s=[n],i=X);var o=Proxy.revocable(s,i),a=o.revoke,l=o.proxy;return n.k=l,n.j=a,l}(t,r):v("ES5").J(t,r);return(r?r.A:y()).p.push(n),n}function T(e){return s(e)||n(22,e),function e(t){if(!i(t))return t;var r,n=t[V],s=a(t);if(n){if(!n.P&&(n.i<4||!v("ES5").K(n)))return n.t;n.I=!0,r=R(t,s),n.I=!1}else r=R(t,s);return o(r,(function(t,s){n&&function(e,t){return 2===a(e)?e.get(t):e[t]}(n.t,t)===s||u(r,t,e(s))})),3===s?new Set(r):r}(e)}function R(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return p(e)}r.d(t,{Uy:()=>Y,ZP:()=>Q});var D,L,C="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),F="undefined"!=typeof Map,U="undefined"!=typeof Set,B="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,q=C?Symbol.for("immer-nothing"):((D={})["immer-nothing"]=!0,D),Z=C?Symbol.for("immer-draftable"):"__$immer_draftable",V=C?Symbol.for("immer-state"):"__$immer_state",J=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),z="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,H=Object.getOwnPropertyDescriptors||function(e){var t={};return z(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},K={},W={get:function(e,t){if(t===V)return e;var r=f(e);if(!l(r,t))return function(e,t,r){var n,s=A(t,r);return s?"value"in s?s.value:null===(n=s.get)||void 0===n?void 0:n.call(e.k):void 0}(e,r,t);var n=r[t];return e.I||!i(n)?n:n===j(e.t,t)?(M(e),e.o[t]=I(e.A.h,n,e)):n},has:function(e,t){return t in f(e)},ownKeys:function(e){return Reflect.ownKeys(f(e))},set:function(e,t,r){var n=A(f(e),t);if(null==n?void 0:n.set)return n.set.call(e.k,r),!0;if(!e.P){var s=j(f(e),t),i=null==s?void 0:s[V];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,s)&&(void 0!==r||l(e.t,t)))return!0;M(e),k(e)}return e.o[t]===r&&(void 0!==r||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==j(e.t,t)||t in e.t?(e.R[t]=!1,M(e),k(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=f(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty:function(){n(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){n(12)}},X={};o(W,(function(e,t){X[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),X.deleteProperty=function(e,t){return X.set.call(this,e,t,void 0)},X.set=function(e,t,r){return W.set.call(this,e[0],t,r,e[0])};var $=function(){function e(e){var t=this;this.O=B,this.D=!0,this.produce=function(e,r,s){if("function"==typeof e&&"function"!=typeof r){var o=r;r=e;var a=t;return function(e){var t=this;void 0===e&&(e=o);for(var n=arguments.length,s=Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return a.produce(e,(function(e){var n;return(n=r).call.apply(n,[t,e].concat(s))}))}}var l;if("function"!=typeof r&&n(6),void 0!==s&&"function"!=typeof s&&n(7),i(e)){var u=_(t),c=I(t,e,void 0),d=!0;try{l=r(c),d=!1}finally{d?w(u):S(u)}return"undefined"!=typeof Promise&&l instanceof Promise?l.then((function(e){return b(u,s),O(e,u)}),(function(e){throw w(u),e})):(b(u,s),O(l,u))}if(!e||"object"!=typeof e){if(void 0===(l=r(e))&&(l=e),l===q&&(l=void 0),t.D&&m(l,!0),s){var f=[],p=[];v("Patches").M(e,l,f,p),s(f,p)}return l}n(21,e)},this.produceWithPatches=function(e,r){if("function"==typeof e)return function(r){for(var n=arguments.length,s=Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return t.produceWithPatches(r,(function(t){return e.apply(void 0,[t].concat(s))}))};var n,s,i=t.produce(e,r,(function(e,t){n=e,s=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,n,s]})):[i,n,s]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||n(8),s(e)&&(e=T(e));var t=_(this),r=I(this,e,void 0);return r[V].C=!0,S(t),r},t.finishDraft=function(e,t){var r=(e&&e[V]).A;return b(r,t),O(void 0,r)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!B&&n(20),this.O=e},t.applyPatches=function(e,t){var r;for(r=t.length-1;r>=0;r--){var n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));var i=v("Patches").$;return s(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),G=new $,Y=G.produce;G.produceWithPatches.bind(G),G.setAutoFreeze.bind(G),G.setUseProxies.bind(G),G.applyPatches.bind(G),G.createDraft.bind(G),G.finishDraft.bind(G);const Q=Y},270:(e,t,r)=>{"use strict";r.d(t,{Ue:()=>l});const n=e=>{let t;const r=new Set,n=(e,n)=>{const s="function"==typeof e?e(t):e;if(!Object.is(s,t)){const e=t;t=(null!=n?n:"object"!=typeof s)?s:Object.assign({},t,s),r.forEach((r=>r(t,e)))}},s=()=>t,i={setState:n,getState:s,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,s,i),i};var s=r(9196),i=r(2798);const{useSyncExternalStoreWithSelector:o}=i,a=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?n(e):n)(e):e,r=(e,r)=>function(e,t=e.getState,r){const n=o(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,s.useDebugValue)(n),n}(t,e,r);return Object.assign(r,t),r},l=e=>e?a(e):a}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return s[e](r,r.exports,o),r.exports}o.m=s,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var s=Object.create(null);o.r(s);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&n&&r;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>r[e]));return i.default=()=>r,o.d(s,i),s},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>e+".js",o.miniCssF=e=>{},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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r={},n="really-simple-ssl:",o.l=(e,t,s,i)=>{if(r[e])r[e].push(t);else{var a,l;if(void 0!==s)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==n+s){a=d;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",n+s),a.src=e),r[e]=[t];var f=(t,n)=>{a.onerror=a.onload=null,clearTimeout(p);var s=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),s&&s.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=f.bind(null,a.onerror),a.onload=f.bind(null,a.onload),l&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{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 r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!e;)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={826:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var s=new Promise(((r,s)=>n=e[t]=[r,s]));r.push(n[2]=s);var i=o.p+o.u(t),a=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var s=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",a.name="ChunkLoadError",a.type=s,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,s,[i,a,l]=r,u=0;if(i.some((t=>0!==e[t]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);l&&l(o)}for(t&&t(r);u<i.length;u++)s=i[u],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},r=globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),o.nc=void 0,(()=>{"use strict";var e=o(9307),t=o(5736),r=o(2254),n=o(2485);const s=()=>{const{menu:s,selectedMainMenuItem:i,fetchMenuData:o}=(0,n.Z)();let a=rsssl_settings.plugin_url;(0,e.useEffect)((()=>{o()}),[]);let l=s.filter((e=>null!==e));return(0,e.createElement)("div",{className:"rsssl-header-container"},(0,e.createElement)("div",{className:"rsssl-header"},(0,e.createElement)("img",{className:"rsssl-logo",src:a+"assets/img/really-simple-ssl-logo.svg",alt:"Really Simple SSL logo"}),(0,e.createElement)("div",{className:"rsssl-header-left"},(0,e.createElement)("nav",{className:"rsssl-header-menu"},(0,e.createElement)("ul",null,l.map(((t,r)=>(0,e.createElement)("li",{key:"menu-"+r},(0,e.createElement)("a",{className:i===t.id?"active":"",href:"#"+t.id.toString()},t.title))))))),(0,e.createElement)("div",{className:"rsssl-header-right"},!rsssl_settings.le_generated_by_rsssl&&(0,e.createElement)("a",{className:"rsssl-knowledge-base-link",href:"https://really-simple-ssl.com/knowledge-base",target:"_blank"},(0,t.__)("Documentation","really-simple-ssl")),rsssl_settings.le_generated_by_rsssl&&(0,e.createElement)("a",{href:rsssl_settings.letsencrypt_url},(0,t.__)("Let's Encrypt","really-simple-ssl")),rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{href:"https://wordpress.org/support/plugin/really-simple-ssl/",className:"button button-black",target:"_blank"},(0,t.__)("Support","really-simple-ssl")),!rsssl_settings.pro_plugin_active&&(0,e.createElement)("a",{href:rsssl_settings.upgrade_link,className:"button button-black",target:"_blank"},(0,t.__)("Go Pro","really-simple-ssl")))),(0,e.createElement)(r.default,{className:"rsssl-wizard-notices"}))};var i=o(2919);const a=t=>(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"rsssl-header-container"},(0,e.createElement)("div",{className:"rsssl-header"},(0,e.createElement)("img",{className:"rsssl-logo",src:rsssl_settings.plugin_url+"assets/img/really-simple-ssl-logo.svg",alt:"Really Simple SSL logo"}))),(0,e.createElement)("div",{className:"rsssl-content-area rsssl-grid rsssl-dashboard rsssl-page-placeholder"},(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-column-2 rsssl-row-2 "},t.error&&(0,e.createElement)(i.Z,{error:t.error})),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-row-2"}),(0,e.createElement)("div",{className:"rsssl-grid-item rsssl-column-2"})));var l=o(5902),u=o(4559),c=o(9810),d=o(5097);const f=()=>{const{error:t,fields:r,changedFields:i,fetchFieldsData:f,updateFieldsData:p,fieldsLoaded:m}=(0,u.Z)(),{showOnboardingModal:h,fetchOnboardingModalStatus:g,modalStatusLoaded:v}=(0,c.Z)(),{selectedMainMenuItem:y,fetchMenuData:b}=(0,n.Z)(),{showModal:w}=(0,d.Z)(),[S,_]=(0,e.useState)(null),[E,O]=(0,e.useState)(null),[x,P]=(0,e.useState)(null),[N,j]=(0,e.useState)(null);(0,e.useEffect)((()=>{v||g()}),[]),(0,e.useEffect)((()=>{"dashboard"!==y&&(S||Promise.all([o.e(557),o.e(772)]).then(o.bind(o,6772)).then((e=>{let{default:t}=e;_((()=>t))})),x||Promise.resolve().then(o.bind(o,2254)).then((e=>{let{default:t}=e;P((()=>t))})),N||o.e(829).then(o.bind(o,3829)).then((e=>{let{default:t}=e;j((()=>t))}))),"dashboard"!==y||E||Promise.all([o.e(557),o.e(688)]).then(o.bind(o,7688)).then((e=>{let{default:t}=e;O((()=>t))}))}),[y]);const[A,k]=(0,e.useState)(null);(0,e.useEffect)((()=>{h&&!A&&Promise.all([o.e(557),o.e(885)]).then(o.bind(o,885)).then((e=>{let{default:t}=e;k((()=>t))}))}),[h]);const[M,I]=(0,e.useState)(null);return(0,e.useEffect)((()=>{w&&!M&&Promise.all([o.e(557),o.e(187)]).then(o.bind(o,9187)).then((e=>{let{default:t}=e;I((()=>t))}))}),[w]),(0,e.useEffect)((()=>{m&&(b(r),window.addEventListener("hashchange",(e=>{b(r)})))}),[r]),(0,e.useEffect)((()=>{let e=(0,l.Z)("menu");p(e)}),[i]),(0,e.useEffect)((()=>{let e=(0,l.Z)("menu");f(e)}),[]),t?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(a,{error:t})):(0,e.createElement)("div",{className:"rsssl-wrapper"},A&&(0,e.createElement)(A,null),M&&(0,e.createElement)(M,null),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(s,null),(0,e.createElement)("div",{className:"rsssl-content-area rsssl-grid rsssl-"+y},"dashboard"!==y&&S&&N&&x&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(N,null),(0,e.createElement)(S,null),(0,e.createElement)(x,{className:"rsssl-wizard-notices"})),"dashboard"===y&&E&&(0,e.createElement)(E,null))))};document.addEventListener("DOMContentLoaded",(()=>{const t=document.getElementById("really-simple-ssl");t&&(0,e.render)((0,e.createElement)(e.Fragment,null,(0,e.createElement)(f,null)),t)})),document.addEventListener("click",(e=>{e.target.closest("#ssl-labs-check-button")&&document.querySelector(".rsssl-ssllabs").classList.add("rsssl-block-highlight")}))})()})(); build/967.js 0000666 00000204175 15165313625 0006552 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[967],{2387:(e,t,l)=>{l.d(t,{Z:()=>n});var s=l(270),a=l(8473);const n=(0,s.Ue)(((e,t)=>({filter:"all",progressText:"",notices:[],error:!1,percentageCompleted:0,progressLoaded:!1,setFilter:t=>{sessionStorage.rsssl_task_filter=t,e((e=>({filter:t})))},fetchFilter:()=>{if("undefined"!=typeof Storage&&sessionStorage.rsssl_task_filter){let t=sessionStorage.rsssl_task_filter;e((e=>({filter:t})))}},getProgressData:async()=>{const{percentage:t,text:l,notices:s,error:n}=await a.SA("progressData","refresh").then((e=>e));e((e=>({notices:s,percentageCompleted:t,progressText:l,progressLoaded:!0,error:n})))},dismissNotice:async l=>{let s=t().notices;s=s.filter((function(e){return e.id!==l})),e((e=>({notices:s})));const{percentage:n}=await a.SA("dismiss_task",l);e({percentageCompleted:n})}})))},3909:(e,t,l)=>{l.d(t,{Z:()=>u});var s=l(9307),a=l(5736),n=l(3882),r=l(9818),i=l(8473),o=l(4064),c=l(4559),d=l(2387),m=l(2485);const u=e=>{const{dismissNotice:t}=(0,d.Z)(),{getField:l,setHighLightField:u,fetchFieldsData:p}=(0,c.Z)(),{setSelectedSubMenuItem:_}=(0,m.Z)();let f=e.notice,h="premium"===f.output.icon,y=f.output.url&&-1!==f.output.url.indexOf("really-simple-ssl.com");return(0,s.createElement)("div",{className:"rsssl-task-element"},(0,s.createElement)("span",{className:"rsssl-task-status rsssl-"+f.output.icon},f.output.label),(0,s.createElement)("p",{className:"rsssl-task-message",dangerouslySetInnerHTML:{__html:f.output.msg}}),y&&f.output.url&&(0,s.createElement)("a",{target:"_blank",href:f.output.url},(0,a.__)("More info","really-simple-ssl")),f.output.clear_cache_id&&(0,s.createElement)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(e=>{let t={};t.cache_id=e,i.Kw("clear_cache",t).then((e=>{(0,r.dispatch)("core/notices").createNotice("success",(0,a.__)("Re-started test","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_clear_cache",type:"snackbar",isDismissible:!0}).then((0,o.Z)(3e3)).then((e=>{(0,r.dispatch)("core/notices").removeNotice("rsssl_clear_cache")})),p()}))})(f.output.clear_cache_id)},(0,a.__)("Re-check","really-simple-ssl")),!h&&!y&&f.output.url&&(0,s.createElement)("a",{className:"rsssl-task-enable button button-secondary",href:f.output.url},(0,a.__)("View","really-simple-ssl")),!h&&f.output.highlight_field_id&&(0,s.createElement)("span",{className:"rsssl-task-enable button button-secondary",onClick:()=>(async()=>{u(e.notice.output.highlight_field_id);let t=l(e.notice.output.highlight_field_id);await _(t.menu_id)})()},(0,a.__)("View","really-simple-ssl")),f.output.plusone&&(0,s.createElement)("span",{className:"rsssl-plusone"},"1"),f.output.dismissible&&"completed"!==f.output.status&&(0,s.createElement)("div",{className:"rsssl-task-dismiss"},(0,s.createElement)("button",{type:"button",onClick:e=>t(f.id)},(0,s.createElement)(n.Z,{name:"times"}))))}},7372:(e,t,l)=>{l.d(t,{Z:()=>_});var s=l(9307),a=l(5609),n=l(8473),r=l(5736),i=l(3882),o=l(4531),c=l(2485),d=l(4559),m=l(2387),u=l(9810),p=l(870);const _=e=>{const{fetchFieldsData:t,updateField:l,updateFieldsData:_,getFieldValue:f}=(0,d.Z)(),{getProgressData:h}=(0,m.Z)(),{fetchVulnerabilities:y}=(0,p.Z)(),{dismissModal:g,actionHandler:v,getSteps:b,error:E,certificateValid:k,networkwide:w,sslEnabled:N,dataLoaded:S,processing:C,setProcessing:F,steps:D,currentStep:L,currentStepIndex:x,setCurrentStepIndex:Z,overrideSSL:T,setOverrideSSL:I,networkActivationStatus:A,setNetworkActivationStatus:R,networkProgress:M,refreshSSLStatus:P,activateSSLNetworkWide:O,email:H,setEmail:j,saveEmail:V,includeTips:K,setIncludeTips:B,sendTestEmail:U,setSendTestEmail:z}=(0,u.Z)(),{setSelectedMainMenuItem:W,selectedMainMenuItem:q}=(0,c.Z)(),Y={inactive:{icon:"info",color:"orange"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"},processing:{icon:"file-download",color:"red"}};if((0,s.useEffect)((()=>{w&&"main_site_activated"===A&&O()}),[A,M]),(0,s.useEffect)((()=>{(async()=>{await b(!1),S&&N&&0===x&&Z(1),""!==f("notifications_email_address")&&""===H&&j(f("notifications_email_address"))})()}),[]),(0,s.useEffect)((()=>{(async()=>{if(L&&L.items){let e=L.items.find((e=>"hardening"===e.id));e&&"success"===e.status&&(await t("hardening"),await h(),await y())}})()}),[L]),E)return(0,s.createElement)(o.Z,{lines:"3",error:E});let G=L,Q=C?"rsssl-processing":"";return(0,s.createElement)(s.Fragment,null,!S&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"rsssl-onboarding-placeholder"},(0,s.createElement)("ul",null,(0,s.createElement)("li",null,(0,s.createElement)(i.Z,{name:"file-download",color:"grey"}),(0,r.__)("Fetching next step...","really-simple-ssl"))),(0,s.createElement)(o.Z,{lines:"3"}))),S&&(0,s.createElement)("div",{className:"rsssl-modal-content-step "+Q},(0,s.createElement)("ul",null,($=G.items)&&$.map(((e,t)=>{let{title:l,description:n,current_action:o,action:c,status:d,button:m,id:u,read_more:p}=e;"ssl_enabled"===u&&w&&(M>=100?(d="success",l=(0,r.__)("SSL has been activated network wide","really-simple-ssl")):(d="processing",l=(0,r.__)("Processing activation of subsites networkwide","really-simple-ssl")));const _="success"!==e.status&&e.is_plugin&&"none"===e.current_action?"empty":Y[d].icon,f=Y[d].color,h={activate_setting:(0,r.__)("Activating...","really-simple-ssl"),activate:(0,r.__)("Activating...","really-simple-ssl"),install_plugin:(0,r.__)("Installing...","really-simple-ssl"),error:(0,r.__)("Failed","really-simple-ssl"),completed:(0,r.__)("Finished","really-simple-ssl")};let y="";m&&(y=m,"none"!==o&&(y=h[o],"failed"===o&&(y=h.error)));let g=m&&m===y,b="success"!==e.status&&e.is_plugin&&"none"===e.current_action,E=b?"rsssl-is-plugin":"";return l=b?(0,s.createElement)("b",null,l):l,(0,s.createElement)("li",{key:"pluginItem-"+t,className:E},(0,s.createElement)(i.Z,{name:_,color:f}),l,n&&(0,s.createElement)(s.Fragment,null," - ",n),"ssl_enabled"===u&&w&&"main_site_activated"===A&&(0,s.createElement)(s.Fragment,null," - ",M<100&&(0,s.createElement)(s.Fragment,null,(0,r.__)("working","really-simple-ssl")," ",M,"%"),M>=100&&(0,r.__)("completed","really-simple-ssl")),m&&(0,s.createElement)(s.Fragment,null," - ",g&&(0,s.createElement)(a.Button,{isLink:!0,onClick:e=>v(u,c,e)},y),!g&&(0,s.createElement)(s.Fragment,null,y)),b&&p&&(0,s.createElement)("a",{target:"_blank",href:p,className:"button button-default rsssl-read-more"},(0,r.__)("Read More","really-simple-ssl")))}))),"email"===L.id&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",null,(0,s.createElement)("input",{type:"email",value:H,placeholder:(0,r.__)("Your email address","really-simple-ssl"),onChange:e=>j(e.target.value)})),(0,s.createElement)("div",null,(0,s.createElement)("label",null,(0,s.createElement)("input",{onChange:e=>B(e.target.checked),type:"checkbox",checked:K}),(0,r.__)("Include 6 Tips & Tricks to get started with Really Simple SSL.","really-simple-ssl")," ",(0,s.createElement)("a",{href:"https://really-simple-ssl.com/legal/privacy-statement/",target:"_blank"},(0,r.__)("Privacy Statement","really-simple-ssl")))),(0,s.createElement)("div",null,(0,s.createElement)("label",null,(0,s.createElement)("input",{onChange:e=>z(e.target.checked),type:"checkbox",checked:U}),(0,r.__)("Send a notification test email - Notification emails are sent from your server.","really-simple-ssl")))),k&&G.info_text&&(0,s.createElement)("div",{className:"rsssl-modal-description",dangerouslySetInnerHTML:{__html:G.info_text}}),0===x&&!k&&(0,s.createElement)("div",{className:"rsssl-modal-description"},(0,s.createElement)("a",{href:"#",onClick:e=>P(e)},(0,r.__)("Refresh SSL status","really-simple-ssl"))," ",(0,r.__)("The SSL detection method is not 100% accurate.","really-simple-ssl")," ",(0,r.__)("If you’re certain an SSL certificate is present, and refresh SSL status does not work, please check “Override SSL detection” to continue activating SSL.","really-simple-ssl")),(0,s.createElement)("div",{className:"rsssl-modal-content-step-footer"},(()=>{let i=w?(0,r.__)("Activate SSL networkwide","really-simple-ssl"):(0,r.__)("Activate SSL","really-simple-ssl");return 0===x?(0,s.createElement)(s.Fragment,null,(0,s.createElement)("button",{disabled:C||!k&&!T,className:"button button-primary",onClick:()=>{F(!0),n.SA("activate_ssl").then((async e=>{F(!1),Z(x+1),e.success&&(e.site_url_changed?window.location.reload():w&&R("main_site_activated"))})).then((async()=>{await h(),await t(q)}))}},i),k&&!rsssl_settings.pro_plugin_active&&(0,s.createElement)("a",{target:"_blank",href:rsssl_settings.upgrade_link,className:"button button-default"},(0,r.__)("Improve Security with PRO","really-simple-ssl")),!k&&(0,s.createElement)("button",{className:"button button-default",onClick:()=>{e.isModal&&g(),window.location.href=rsssl_settings.letsencrypt_url}},(0,r.__)("Install SSL","really-simple-ssl")),!k&&(0,s.createElement)(a.ToggleControl,{label:(0,r.__)("Override SSL detection","really-simple-ssl"),checked:T,onChange:e=>{I(e);let t={};t.overrideSSL=e,n.Kw("override_ssl_detection",t)}})):x>0&&x<D.length-1?(0,s.createElement)(s.Fragment,null,(0,s.createElement)("button",{disabled:C,className:"button button-primary",onClick:()=>(async()=>{await V(),l("send_notifications_email",!0),l("notifications_email_address",H),_()})()},(0,r.__)("Save and continue","really-simple-ssl")),(0,s.createElement)("button",{disabled:C,className:"button button-default",onClick:()=>{Z(x+1)}},(0,r.__)("Skip","really-simple-ssl"))):D.length-1===x?(0,s.createElement)(s.Fragment,null,(0,s.createElement)("button",{className:"button button-primary",onClick:()=>{e.isModal&&g(),W("dashboard")}},(0,r.__)("Go to Dashboard","really-simple-ssl")),(0,s.createElement)("button",{className:"button button-default",onClick:()=>g()},(0,r.__)("Dismiss","really-simple-ssl"))):void 0})())));var $}},7967:(e,t,l)=>{l.r(t),l.d(t,{default:()=>ae});var s=l(9307),a=l(5609),n=l(5736),r=l(3909),i=l(8473),o=l(4559),c=l(1789);const d=e=>{const{fields:t,setChangedField:l,updateField:a}=(0,o.Z)(),{licenseStatus:d,setLicenseStatus:m}=(0,c.Z)(),[u,p]=(0,s.useState)(!1),[_,f]=(0,s.useState)(!1),[h,y]=(0,s.useState)(!1);(0,s.useEffect)((()=>{i.SA("licenseNotices","refresh").then((e=>e)).then((e=>{m(e.licenseStatus),y(e.notices),p(!0)}))}),[t]);let g=e.field;return(0,s.createElement)("div",{className:"components-base-control"},(0,s.createElement)("div",{className:"components-base-control__field"},(0,s.createElement)("label",{className:"components-base-control__label",htmlFor:g.id},g.label),(0,s.createElement)("div",{className:"rsssl-license-field"},(0,s.createElement)("input",{className:"components-text-control__input",type:"password",id:g.id,value:g.value,onChange:e=>{return t=e.target.value,l(g.id,t),void a(g.id,t);var t}}),(0,s.createElement)("button",{className:"button button-default",onClick:()=>(()=>{if(p(!1),"valid"===d)i.SA("deactivate_license").then((e=>{m(e.licenseStatus),y(e.notices),p(!0)}));else{let t={};t.license=e.field.value,i.Kw("activate_license",t).then((e=>{m(e.licenseStatus),y(e.notices),p(!0)}))}})()},"valid"===d&&(0,s.createElement)(s.Fragment,null,(0,n.__)("Deactivate","really-simple-ssl")),"valid"!==d&&(0,s.createElement)(s.Fragment,null,(0,n.__)("Activate","really-simple-ssl"))))),u&&h.map(((e,t)=>(0,s.createElement)(r.Z,{key:t,index:t,notice:e,highLightField:""}))))},m=e=>{const{updateField:t,setChangedField:l}=(0,o.Z)();return(0,s.createElement)("div",{className:"components-base-control"},(0,s.createElement)("div",{className:"components-base-control__field"},(0,s.createElement)("label",{className:"components-base-control__label",htmlFor:e.field.id},e.field.label),(0,s.createElement)("input",{className:"components-text-control__input",type:"password",id:e.field.id,value:e.field.value,onChange:s=>{return a=s.target.value,t(e.field.id,a),void l(e.field.id,a);var a}})))},u=e=>{let t=e.field,l=!Array.isArray(e.disabled)&&e.disabled,a=!!Array.isArray(e.disabled)&&e.disabled;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"components-base-control"},(0,s.createElement)("div",{className:"components-base-control__field"},(0,s.createElement)("div",{"data-wp-component":"HStack",className:"components-flex components-select-control"},(0,s.createElement)("label",{htmlFor:t.id,className:"components-toggle-control__label"},e.label),(0,s.createElement)("select",{disabled:l,value:e.value,onChange:t=>e.onChangeHandler(t.target.value)},e.options.map(((e,t)=>(0,s.createElement)("option",{key:t,value:e.value,disabled:a&&a.includes(e.value)},e.label))))))),t.comment&&(0,s.createElement)("div",{className:"rsssl-comment",dangerouslySetInnerHTML:{__html:t.comment}}))},p=e=>{const{updateField:t,setChangedField:l,saveFields:n,handleNextButtonDisabled:r}=(0,o.Z)(),i=(0,s.useRef)(!1);let c=e.field.value,d=e.field,m=[];if(d.options)for(var u in d.options)if(d.options.hasOwnProperty(u)){let e={};e.label=d.options[u],e.value=u,m.push(e)}return(0,s.createElement)(a.SelectControl,{label:d.label,onChange:s=>(async s=>{let a=e.field;r(!0),i.current=!0,t(a.id,s),l(a.id,s),await n(!0,!1),r(!1),i.current=!1})(s),value:c,options:m,disabled:i.current})};var _=l(9950),f=l(4064),h=l(9818),y=l(7839),g=l(2485);const v=e=>{const{addHelpNotice:t,updateField:l,setChangedField:r,saveFields:c,fetchFieldsData:d}=(0,o.Z)(),{setSelectedSubMenuItem:m}=(0,g.Z)();let u=e.action;if((0,y.Z)((()=>{u&&"challenge_directory_reachable"===u.action&&"error"===u.status&&t(e.field.id,"default",(0,n.__)("The challenge directory is used to verify the domain ownership.","really-simple-ssl")),u&&"check_key_directory"===u.action&&"error"===u.status&&t(e.field.id,"default",(0,n.__)("The key directory is needed to store the generated keys.","really-simple-ssl")+" "+(0,n.__)("By placing it outside the root folder, it is not publicly accessible.","really-simple-ssl")),u&&"check_certs_directory"===u.action&&"error"===u.status&&t(e.field.id,"default",(0,n.__)("The certificate will get stored in this directory.","really-simple-ssl")+" "+(0,n.__)("By placing it outside the root folder, it is not publicly accessible.","really-simple-ssl"))})),!u)return(0,s.createElement)(s.Fragment,null);const p=async()=>{l("verification_type","dns"),r("verification_type","dns"),await c(!0,!0),await i.Kr("update_verification_type","dns").then((e=>{(0,h.dispatch)("core/notices").createNotice("success",(0,n.__)("Switched to DNS","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_switched_to_dns",type:"snackbar",isDismissible:!0}).then((0,f.Z)(3e3)).then((e=>{(0,h.dispatch)("core/notices").removeNotice("rsssl_switched_to_dns")}))})),await m("le-dns-verification"),await d("le-directories")};return(0,s.createElement)("div",{className:"rsssl-test-results"},"error"===u.status&&(0,s.createElement)("h4",null,(0,n.__)("Next step","really-simple-ssl")),"error"===u.status&&"challenge_directory_reachable"===u.action&&(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,n.__)("If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification.","really-simple-ssl")),(0,s.createElement)(a.Button,{variant:"secondary",onClick:()=>p()},(0,n.__)("Switch to DNS verification","really-simple-ssl"))),"cpanel"===rsssl_settings.hosting_dashboard&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,s.createElement)(_.Z,{target:"_blank",text:(0,n.__)("If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge.","really-simple-ssl"),url:"https://really-simple-ssl.com/lets-encrypt-authorization-with-dns"})," ",(0,n.__)("Please note that auto-renewal with a DNS challenge might not be possible.","really-simple-ssl")),(0,s.createElement)(a.Button,{variant:"secondary",onClick:()=>p()},(0,n.__)("Switch to DNS verification","really-simple-ssl"))),"error"===u.status&&"check_challenge_directory"===u.action&&(0,s.createElement)("div",null,(0,s.createElement)("h4",null,(0,n.__)("Create a challenge directory","really-simple-ssl")),(0,s.createElement)("p",null,(0,n.__)("Navigate in FTP or File Manager to the root of your WordPress installation:","really-simple-ssl")),(0,s.createElement)("ul",null,(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Create a folder called “.well-known”","really-simple-ssl")),(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions.","really-simple-ssl")),(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Click the refresh button.","really-simple-ssl"))),(0,s.createElement)("h4",null,(0,n.__)("Or you can switch to DNS verification","really-simple-ssl")),(0,s.createElement)("p",null,(0,n.__)("If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification.","really-simple-ssl")),(0,s.createElement)(a.Button,{variant:"secondary",onClick:()=>p()},(0,n.__)("Switch to DNS verification","really-simple-ssl"))),"error"===u.status&&"check_key_directory"===u.action&&(0,s.createElement)("div",null,(0,s.createElement)("h4",null,(0,n.__)("Create a key directory","really-simple-ssl")),(0,s.createElement)("p",null,(0,n.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:","really-simple-ssl")),(0,s.createElement)("ul",null,(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Create a folder called “ssl”","really-simple-ssl")),(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions.","really-simple-ssl")),(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Click the refresh button.","really-simple-ssl")))),"error"===u.status&&"check_certs_directory"===u.action&&(0,s.createElement)("div",null,(0,s.createElement)("h4",null,(0,n.__)("Create a certs directory","really-simple-ssl")),(0,s.createElement)("p",null,(0,n.__)("Navigate in FTP or File Manager to one level above the root of your WordPress installation:","really-simple-ssl")),(0,s.createElement)("ul",null,(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Create a folder called “ssl”","really-simple-ssl")),(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions.","really-simple-ssl")),(0,s.createElement)("li",{className:"rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"},(0,n.__)("Click the refresh button.","really-simple-ssl")))))},b=e=>{const{fields:t,addHelpNotice:l,updateField:r,setChangedField:c,saveFields:d,fetchFieldsData:m,getFieldValue:u}=(0,o.Z)(),{selectedSubMenuItem:p,setSelectedSubMenuItem:v}=(0,g.Z)(),[b,E]=(0,s.useState)(!1);let k=e.action;return(0,y.Z)((()=>{k&&"challenge_directory_reachable"===k.action&&"error"===k.status&&l(e.field.id,"default",(0,n.__)("The challenge directory is used to verify the domain ownership.","really-simple-ssl"));let t=!!k&&k.output;void 0!==t&&0!==t.length||(t=!1),t&&E(t)})),"dir"===u("verification_type")?(0,s.createElement)(s.Fragment,null):(0,s.createElement)(s.Fragment,null,b&&b.length>0&&(0,s.createElement)("div",{className:"rsssl-test-results"},(0,s.createElement)("h4",null,(0,n.__)("Next step","really-simple-ssl")),(0,s.createElement)("p",null,(0,n.__)("Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it.","really-simple-ssl"),(0,s.createElement)(_.Z,{target:"_blank",text:(0,n.__)("Read more","really-simple-ssl"),url:"https://really-simple-ssl.com/how-to-add-a-txt-record-to-dns"})),(0,s.createElement)("div",{className:"rsssl-dns-text-records"},(0,s.createElement)("div",null,(0,s.createElement)("div",{className:"rsssl-dns-domain"},"@/",(0,n.__)("domain","really-simple-ssl")),(0,s.createElement)("div",{className:"rsssl-dns-field"},(0,n.__)("Value","really-simple-ssl"))),b.map(((e,t)=>(0,s.createElement)("div",null,(0,s.createElement)("div",{className:"rsssl-dns-"},"_acme-challenge.",e.domain),(0,s.createElement)("div",{className:"rsssl-dns-field rsssl-selectable"},e.token)))))),(0,s.createElement)("div",{className:"rsssl-test-results"},(0,s.createElement)("p",null,(0,n.__)("DNS verification active. You can switch back to directory verification here.","really-simple-ssl")),(0,s.createElement)(a.Button,{variant:"secondary",onClick:()=>(async()=>{await v("le-directories"),await r("verification_type","dir"),await c("verification_type","dir"),await d(!0,!0),await i.Kr("update_verification_type","dir").then((e=>{(0,h.dispatch)("core/notices").createNotice("success",(0,n.__)("Switched to Directory","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_switched_to_dns",type:"snackbar",isDismissible:!0}).then((0,f.Z)(3e3)).then((e=>{(0,h.dispatch)("core/notices").removeNotice("rsssl_switched_to_dns")}))})),await m("le-directories")})()},(0,n.__)("Switch to directory verification","really-simple-ssl"))))},E=e=>{let t=e.action;return t?(0,s.createElement)("div",{className:"rsssl-test-results"},"error"===t.status&&"verify_dns"===t.action&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("p",null,(0,n.__)("We could not check the DNS records. If you just added the record, please check in a few minutes.","really-simple-ssl")," ",(0,s.createElement)(_.Z,{target:"_blank",text:(0,n.__)("You can manually check the DNS records in an %sonline tool%s.","really-simple-ssl"),url:"https://mxtoolbox.com/SuperTool.aspx"}),(0,n.__)("If you're sure it's set correctly, you can click the button to skip the DNS check.","really-simple-ssl")," "),(0,s.createElement)(a.Button,{variant:"secondary",onClick:()=>i.Kr("skip_dns_check").then((t=>{e.restartTests(),(0,h.dispatch)("core/notices").createNotice("success",(0,n.__)("Skip DNS verification","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_skip_dns",type:"snackbar",isDismissible:!0}).then((0,f.Z)(3e3)).then((e=>{(0,h.dispatch)("core/notices").removeNotice("rsssl_skip_dns")}))}))},(0,n.__)("Skip DNS check","really-simple-ssl")))):(0,s.createElement)(s.Fragment,null)};var k=l(7372);const w=()=>(0,s.createElement)("div",{className:"rsssl-lets-encrypt-tests"},(0,s.createElement)(k.Z,null)),N=e=>{const{addHelpNotice:t}=(0,o.Z)(),[l,a]=(0,s.useState)(!1);let r=e.action;(0,y.Z)((()=>{r&&"warning"===r.status&&l&&l.generated_by_rsssl&&(t(e.field.id,"default",(0,n.__)("This is the certificate, which you need to install in your hosting dashboard.","really-simple-ssl"),(0,n.__)("Certificate (CRT)","really-simple-ssl")),t(e.field.id,"default",(0,n.__)("The private key can be uploaded or pasted in the appropriate field on your hosting dashboard.","really-simple-ssl"),(0,n.__)("Private Key (KEY)","really-simple-ssl")),t(e.field.id,"default",(0,n.__)("The CA Bundle will sometimes be automatically detected. If not, you can use this file.","really-simple-ssl"),(0,n.__)("Certificate Authority Bundle (CABUNDLE)","really-simple-ssl"))),!r||"error"!==r.status&&"warning"!==r.status||i.Kr("installation_data").then((e=>{e&&a(e.output)}))}));const c=e=>{let t,l=document.querySelector(".rsssl-"+e).innerText;const s=document.createElement("textarea");s.value=l,document.body.appendChild(s),s.select();try{t=document.execCommand("copy")}catch(e){t=!1}document.body.removeChild(s),(0,h.dispatch)("core/notices").createNotice("success",(0,n.__)("Copied!","really-simple-ssl"),{__unstableHTML:!0,id:"rsssl_copied_data",type:"snackbar",isDismissible:!0}).then((0,f.Z)(3e3)).then((e=>{(0,h.dispatch)("core/notices").removeNotice("rsssl_copied_data")}))};return r&&l?(0,s.createElement)("div",{className:"rsssl-test-results"},!l.generated_by_rsssl&&(0,s.createElement)(s.Fragment,null,(0,n.__)("The certificate is not generated by Really Simple SSL, so there are no installation files here","really-simple-ssl")),l.generated_by_rsssl&&"warning"===r.status&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("h4",null,(0,n.__)("Next step","really-simple-ssl")),(0,s.createElement)("div",{className:"rsssl-template-intro"},(0,n.__)("Install your certificate.","really-simple-ssl")),(0,s.createElement)("h4",null,(0,n.__)("Certificate (CRT)","really-simple-ssl")),(0,s.createElement)("div",{className:"rsssl-certificate-data rsssl-certificate",id:"rsssl-certificate"},l.certificate_content),(0,s.createElement)("a",{href:l.download_url+"&type=certificate",className:"button button-secondary"},(0,n.__)("Download","really-simple-ssl")),(0,s.createElement)("button",{type:"button",onClick:e=>c("certificate"),className:"button button-primary"},(0,n.__)("Copy content","really-simple-ssl")),(0,s.createElement)("h4",null,(0,n.__)("Private Key (KEY)","really-simple-ssl")),(0,s.createElement)("div",{className:"rsssl-certificate-data rsssl-key",id:"rsssl-key"},l.key_content),(0,s.createElement)("a",{href:l.download_url+"&type=private_key",className:"button button-secondary"},(0,n.__)("Download","really-simple-ssl")),(0,s.createElement)("button",{type:"button",className:"button button-primary",onClick:e=>c("key")},(0,n.__)("Copy content","really-simple-ssl")),(0,s.createElement)("h4",null,(0,n.__)("Certificate Authority Bundle (CABUNDLE)","really-simple-ssl")),(0,s.createElement)("div",{className:"rsssl-certificate-data rsssl-cabundle",id:"rsssl-cabundle"},l.ca_bundle_content),(0,s.createElement)("a",{href:l.download_url+"&type=intermediate",className:"button button-secondary"},(0,n.__)("Download","really-simple-ssl")),(0,s.createElement)("button",{type:"button",className:"button button-primary",onClick:e=>c("cabundle")},(0,n.__)("Copy content","really-simple-ssl")))):(0,s.createElement)(s.Fragment,null)};var S=l(3882),C=l(8914);const F=e=>{const{handleNextButtonDisabled:t,getFieldValue:l}=(0,o.Z)(),{actionsList:a,setActionsList:r,setActionsListItem:c,setActionsListProperty:d,actionIndex:m,setActionIndex:u,attemptCount:p,setAttemptCount:_,progress:h,setProgress:y,refreshTests:g,setRefreshTests:k}=(0,C.Z)(),F=(0,s.useRef)(1e3),D=((0,s.useRef)(!1),(0,s.useRef)(-1)),L=(0,s.useRef)(1),x=(0,s.useRef)(0),Z=(0,s.useRef)({});(0,s.useEffect)((()=>{I()}),[e.field.id]),(0,s.useEffect)((()=>{a.length>0&&-1===m&&(u(0),R(0,0))}),[a]),(0,s.useEffect)((()=>{}),[]),(0,s.useEffect)((()=>{D.current=m,y(100/L.current*m);let e=a[m];e&&"retry"===e.do&&p>1&&y(90)}),[m]),(0,s.useEffect)((()=>{x.current=h}),[h]),(0,s.useEffect)((()=>{g&&(k(!1),I(),a.forEach((function(e,t){d(t,"status","inactive")})))}),[g]);const T={inactive:{icon:"circle-times",color:"grey"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"}},I=()=>{t(!0),r((()=>{let t=e.field.actions;return"generation"===e.field.id&&(t=A(t)),L.current=t.length,t})()),y(0),x.current=0,u(-1),D.current=-1},A=e=>{let t=l("verification_type");if(t||(t="dir"),"dns"===t){let t=!1;e.forEach((function(e,l){"verify_dns"===e.action&&(t=!0)}));let l=-1;if(e.forEach((function(e,t){"create_bundle_or_renew"===e.action&&(l=t)})),!t&&l>0){let t=[...e],s=t[l],a={action:"verify_dns"};a.description=(0,n.__)("Verifying DNS records...","really-simple-ssl"),a.attempts=2,t[l]=a,t.push(s),e=t}}return e},R=async l=>{let s={...a[l]};if(!s)return;let n=s.action;const r=new Date;await i.Kr(n,e.field.id).then((e=>{let t=new Date-r;const a=Math.round(t);s.status=e.status?e.status:"inactive",s.hide=!1,s.description=e.message,s.do=e.action,s.output=!!e.output&&e.output,F.current=500,a<1500&&(F.current=1500-a),c(l,s)})).then((0,f.Z)(F.current)).then((()=>{(async(e,l)=>{"success"===e.status?_(0):(Number.isInteger(e.attemptCount)||_(0),_(p+1));let s=new CustomEvent("rsssl_le_response",{detail:e});document.dispatchEvent(s),"finalize"===e.do?(a.forEach((function(e,t){t>l&&d(t,"hide",!0)})),u(L.current+1),t(!1)):"continue"===e.do||"skip"===e.do?(_(1),"skip"===e.do&&d(l,"hide",!0),L.current-1>l?(u(l+1),await R(l+1)):(u(l+1),t(!1))):"retry"===e.do?p>=e.attempts?u(L.current):(u(l),await R(l)):"stop"===e.do&&u(L.current)})(s,l)}))},M=e=>T.hasOwnProperty(e.status)?T[e.status].icon:T.inactive.icon,P=e=>T.hasOwnProperty(e.status)?T[e.status].color:T.inactive.color;if(!e.field.actions)return(0,s.createElement)(s.Fragment,null);let O=h;L.current===m+1&&(O=100);let H=a.filter((e=>!0!==e.hide)),j=a[m];j?Z.current=j:j=Z.current;let V="error"===j.status?"rsssl-orange":"";return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"rsssl-lets-encrypt-tests"},(0,s.createElement)("div",{className:"rsssl-progress-bar"},(0,s.createElement)("div",{className:"rsssl-progress"},(0,s.createElement)("div",{className:"rsssl-bar "+V,style:(K=O,Object.assign({},{width:K+"%"}))}))),(0,s.createElement)("div",{className:"rsssl_letsencrypt_container rsssl-progress-container field-group"},(0,s.createElement)("ul",null,H.map(((e,t)=>(0,s.createElement)("li",{key:"action-"+t},(0,s.createElement)(S.Z,{name:M(e),color:P(e)}),"retry"===e.do&&p>=1&&(0,s.createElement)(s.Fragment,null,(0,n.__)("Attempt %s.","really-simple-ssl").replace("%s",p)," ")," ",(0,s.createElement)("span",{dangerouslySetInnerHTML:{__html:e.description}})))))),"directories"===e.field.id&&(0,s.createElement)(v,{field:e.field,action:j}),"dns-verification"===e.field.id&&(0,s.createElement)(b,{field:e.field,action:j}),"generation"===e.field.id&&(0,s.createElement)(E,{field:e.field,action:j}),"installation"===e.field.id&&(0,s.createElement)(N,{field:e.field,action:j}),"activate"===e.field.id&&(0,s.createElement)(w,{field:e.field,action:j})));var K};var D=l(5097);const L=e=>{const{handleModal:t}=(0,D.Z)();return(0,s.createElement)("button",{className:"button button-"+e.btnStyle,onClick:l=>{t(!0,e.modalData,e.item)}},e.btnText)};var x=l(270);const Z=(0,x.Ue)(((e,t)=>({mixedContentData:[],dataLoaded:!1,fixedItemId:!1,action:"",nonce:"",completedStatus:"never",progress:0,scanStatus:!1,fetchMixedContentData:async()=>{e({scanStatus:"running"});const{data:t,progress:l,state:s,action:a,nonce:n,completed_status:r}=await T(!1);e({scanStatus:s,mixedContentData:t,progress:l,action:a,nonce:n,completedStatus:r,dataLoaded:!0})},start:async()=>{const{data:t,progress:l,state:s,action:a,nonce:n,completed_status:r}=await T("start");e({scanStatus:s,mixedContentData:t,progress:l,action:a,nonce:n,completedStatus:r,dataLoaded:!0})},runScanIteration:async()=>{let l=t().scanStatus;if("stop"===l)return;const{data:s,progress:a,state:n,action:r,nonce:i,completed_status:o}=await T(l);"stop"!==t().scanStatus&&e({scanStatus:n,mixedContentData:s,progress:a,action:r,nonce:i,completedStatus:o,dataLoaded:!0})},stop:async()=>{e({scanStatus:"stop"});const{data:t,progress:l,state:s,action:a,nonce:n,completed_status:r}=await T("stop");e({scanStatus:"stop",mixedContentData:t,progress:l,action:a,nonce:n,completedStatus:r})},removeDataItem:l=>{let s=t().mixedContentData;for(const e of s)e.id===l.id&&(e.fixed=!0);e({mixedContentData:s})},ignoreDataItem:l=>{let s=t().mixedContentData;for(const e of s)e.id===l.id&&(e.ignored=!0);e({mixedContentData:s})}}))),T=async e=>await i.SA("mixed_content_scan",e).then((t=>{let l=t.data;return"object"==typeof l&&(l=Object.values(l)),Array.isArray(l)||(l=[]),t.data=l,"stop"===e&&(t.state="stop"),t})),I=e=>{const{fixedItems:t,ignoredItems:r}=(0,D.Z)(),{fetchMixedContentData:i,mixedContentData:o,runScanIteration:c,start:d,stop:m,dataLoaded:u,action:p,scanStatus:_,progress:f,completedStatus:h,nonce:y,removeDataItem:g,ignoreDataItem:v}=Z(),[b,E]=(0,s.useState)(!1),[k,w]=(0,s.useState)(!1),[N,C]=(0,s.useState)(null),[F,x]=(0,s.useState)(null);(0,s.useEffect)((()=>{Promise.resolve().then(l.bind(l,44)).then((e=>{let{default:t,createTheme:l}=e;C((()=>t)),x((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]),(0,s.useEffect)((()=>{i()}),[]),(0,s.useEffect)((()=>{"running"===_&&c()}),[f,_]);let T=e.field,I=[];T.columns.forEach((function(e,t){let l={name:e.name,sortable:e.sortable,grow:e.grow,selector:t=>t[e.column],right:!!e.right};I.push(l)}));let A=u?o:[];for(const l of A)l.warningControl=(0,s.createElement)("span",{className:"rsssl-task-status rsssl-warning"},(0,n.__)("Warning","really-simple-ssl")),t.includes(l.id)&&(l.fixed=!0),r.includes(l.id)&&(l.ignored=!0),l.fix&&(l.fix.url=l.blocked_url,l.fix.nonce=y),l.details&&(l.details.url=l.blocked_url,l.details.nonce=y,l.details.ignored=l.ignored),l.location.length>0&&(-1!==l.location.indexOf("http://")||-1!==l.location.indexOf("https://")?l.locationControl=(0,s.createElement)("a",{href:l.location,target:"_blank"},(0,n.__)("View","really-simple-ssl")):l.locationControl=l.location),l.detailsControl=l.details&&(0,s.createElement)(L,{handleModal:e.handleModal,item:l,id:l.id,btnText:(0,n.__)("Details","really-simple-ssl"),btnStyle:"secondary",modalData:l.details}),l.fixControl=l.fix&&(0,s.createElement)(L,{className:"button button-primary",handleModal:e.handleModal,item:l,id:l.id,btnText:(0,n.__)("Fix","really-simple-ssl"),btnStyle:"primary",modalData:l.fix});b||(A=A.filter((e=>!e.ignored))),A=A.filter((e=>!e.fixed));let R=f+"%",M="running"===_,P="running"!==_;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"rsssl-progress-container"},(0,s.createElement)("div",{className:"rsssl-progress-bar",style:{width:R}})),"running"===_&&(0,s.createElement)("div",{className:"rsssl-current-scan-action"},p),0===A.length&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"rsssl-mixed-content-description"},"running"!==_&&"never"===h&&(0,n.__)("No results. Start your first scan","really-simple-ssl"),"running"!==_&&"completed"===h&&(0,n.__)("Everything is now served over SSL","really-simple-ssl")),("running"===_||"completed"!==h)&&(0,s.createElement)("div",{className:"rsssl-mixed-content-placeholder"},(0,s.createElement)("div",null),(0,s.createElement)("div",null),(0,s.createElement)("div",null)),"running"!==_&&"completed"===h&&(0,s.createElement)("div",{className:"rsssl-shield-overlay"},(0,s.createElement)(S.Z,{name:"shield",size:"80px"}))),N&&A.length>0&&(0,s.createElement)("div",{className:"rsssl-mixed-content-datatable"},(0,s.createElement)(N,{columns:I,data:A,dense:!0,pagination:!0,paginationResetDefaultPage:k,noDataComponent:(0,n.__)("No results","really-simple-ssl"),theme:F,customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}}})),(0,s.createElement)("div",{className:"rsssl-grid-item-content-footer"},(0,s.createElement)("button",{className:"button",disabled:M,onClick:()=>d()},(0,n.__)("Start scan","really-simple-ssl")),(0,s.createElement)("button",{className:"button",disabled:P,onClick:()=>m()},(0,n.__)("Stop","really-simple-ssl")),(0,s.createElement)(a.ToggleControl,{checked:1==b,onChange:e=>{E(!b)}}),(0,s.createElement)("label",null,(0,n.__)("Show ignored URLs","really-simple-ssl"))))},A=e=>{const{fields:t,updateField:r,updateSubField:i,setChangedField:c,saveFields:d}=(0,o.Z)(),[m,u]=(0,s.useState)(0),[p,_]=(0,s.useState)(null),[f,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{Promise.resolve().then(l.bind(l,44)).then((e=>{let{default:t,createTheme:l}=e;_((()=>t)),h((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]),(0,s.useEffect)((()=>{let e=t.filter((e=>"enable_permissions_policy"===e.id))[0];u(e.value)}),[]);const y=(t,l)=>{let s=e.field;"object"==typeof s.value&&r(s.id,Object.values(s.value)),i(s.id,l.id,t),c(s.id,t),d(!0,!1)},g=(e,l)=>{e.preventDefault();let s=t.filter((e=>"enable_permissions_policy"===e.id))[0];u(l),r(s.id,l),c(s.id,s.value),d(!0,!1)};let v=e.field,b=(v.value,e.options);columns=[],v.columns.forEach((function(e,t){let l={name:e.name,sortable:e.sortable,width:e.width,selector:t=>t[e.column]};columns.push(l)}));let E=v.value;"object"==typeof E&&(E=Object.values(E)),Array.isArray(E)||(E=[]);let k=[];for(const e of E){let t={...e};t.valueControl=(0,s.createElement)(a.SelectControl,{help:"",value:e.value,disabled:!1,options:b,label:"",onChange:t=>y(t,e)}),k.push(t)}return p&&f?(0,s.createElement)("div",null,(0,s.createElement)(p,{columns,data:k,dense:!0,pagination:!1,customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},theme:f}),1!=m&&(0,s.createElement)("button",{className:"button button-primary",onClick:e=>g(e,!0)},(0,n.__)("Enforce","really-simple-ssl")),1==m&&(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-shield-overlay"},(0,s.createElement)(S.Z,{name:"shield",size:"80px"})),(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced"},(0,n.__)("Enforced","really-simple-ssl")),e.disabled&&(0,s.createElement)(s.Fragment,null,(0,n.__)("Permissions Policy is set outside Really Simple SSL.","really-simple-ssl")," "),!e.disabled&&(0,s.createElement)(s.Fragment,null,(0,n.__)("Permissions Policy is enforced.","really-simple-ssl")," "),!e.disabled&&(0,s.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>g(e,!1)},(0,n.__)("Disable","really-simple-ssl")))),e.disabled&&1!=m&&(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-progress-status rsssl-disabled"},(0,n.__)("Disabled","really-simple-ssl")),(0,n.__)("The Permissions Policy has been disabled.","really-simple-ssl")))):null},R=e=>{const[t,a]=(0,s.useState)(!1),[n,r]=(0,s.useState)(!1);(0,s.useEffect)((()=>{n||Promise.resolve().then(l.t.bind(l,5609,23)).then((e=>{let{default:t}=e;r((()=>t))}))}),[]);const i=t=>{n&&e.field.warning&&e.field.warning.length>0&&!e.field.value?a(!0):o()},o=t=>{let l=!e.field.value;e.onChangeHandler(l)};let c=e.field,d=c.value?"is-checked":"",m=e.disabled?"is-disabled":"";return(0,s.createElement)(s.Fragment,null,n&&(0,s.createElement)(n,{isOpen:t,onConfirm:async()=>{a(!1),o()},onCancel:()=>{a(!1)}},c.warning),(0,s.createElement)("div",{className:"components-base-control components-toggle-control"},(0,s.createElement)("div",{className:"components-base-control__field"},(0,s.createElement)("div",{"data-wp-component":"HStack",className:"components-flex components-h-stack"},(0,s.createElement)("span",{className:"components-form-toggle "+d+" "+m},(0,s.createElement)("input",{onKeyDown:e=>(e=>{"Enter"===e.key&&(e.preventDefault(),i())})(e),checked:c.value,className:"components-form-toggle__input",onChange:e=>i(),id:c.id,type:"checkbox",disabled:e.disabled}),(0,s.createElement)("span",{className:"components-form-toggle__track"}),(0,s.createElement)("span",{className:"components-form-toggle__thumb"})),(0,s.createElement)("label",{htmlFor:c.id,className:"components-toggle-control__label"},e.label)))))},M=()=>{const[e,t]=(0,s.useState)(""),[l,r]=(0,s.useState)(!1);let o=l||0===e.length;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(a.TextareaControl,{disabled:l,placeholder:(0,n.__)("Type your question here","really-simple-ssl"),onChange:e=>(e=>{t(e)})(e)}),(0,s.createElement)(a.Button,{disabled:o,variant:"secondary",onClick:t=>(r(!0),i.SA("supportData","refresh").then((t=>{let l=e.replace(/(?:\r\n|\r|\n)/g,"--br--"),s="https://really-simple-ssl.com/support?customername="+encodeURIComponent(t.customer_name)+"&email="+t.email+"&domain="+t.domain+"&scanresults="+encodeURIComponent(t.scan_results)+"&licensekey="+encodeURIComponent(t.license_key)+"&supportrequest="+encodeURIComponent(l)+"&htaccesscontents="+t.htaccess_contents+"&debuglog="+t.system_status;window.location.assign(s)})))},(0,n.__)("Send","really-simple-ssl")))},P=(0,x.Ue)(((e,t)=>({learningModeData:[],dataLoaded:!1,fetchLearningModeData:async t=>{let l={};l.type=t,l.lm_action="get";let s=await i.Kw("learning_mode_data",l).then((e=>e));"object"==typeof s&&(s=Object.values(s)),Array.isArray(s)||(s=[]),e({learningModeData:s,dataLoaded:!0})},updateStatus:async(l,s,a)=>{let n=t().learningModeData,r={};r.type=a,r.updateItemId=s.id,r.enabled=1==l?0:1,r.lm_action="update";for(const e of n)s.id===e.id&&e.status&&(e.status=r.enabled);e({learningModeData:n}),n=await i.Kw("learning_mode_data",r).then((e=>e)),"object"==typeof n&&(n=Object.values(n)),Array.isArray(n)||(n=[]),e({learningModeData:n,dataLoaded:!0})},deleteData:async(l,s)=>{let a=t().learningModeData,n={};n.type=s,n.updateItemId=l.id,n.lm_action="delete",a.forEach((function(e,t){e.id===l.id&&a.splice(t,1)})),e({learningModeData:a}),a=await i.Kw("learning_mode_data",n).then((e=>e)),"object"==typeof a&&(a=Object.values(a)),Array.isArray(a)||(a=[]),e({learningModeData:a,dataLoaded:!0})}}))),O=e=>{const{updateStatus:t}=P();let l=1==e.item.status?"button button-primary rsssl-status-allowed":"button button-default rsssl-status-revoked",a=1==e.item.status?(0,n.__)("Revoke","really-simple-ssl"):(0,n.__)("Allow","really-simple-ssl");return(0,s.createElement)("button",{onClick:()=>t(e.item.status,e.item,e.field.id),className:l},a)},H=e=>{const{deleteData:t}=P();return(0,s.createElement)("button",{type:"button",className:" rsssl-learning-mode-delete",onClick:()=>t(e.item,e.field.id)},(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:"16"},(0,s.createElement)("path",{fill:"#000000",d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})))},j=e=>{const{updateField:t,getFieldValue:a,getField:r,setChangedField:i,highLightField:c,saveFields:d}=(0,o.Z)(),{fetchLearningModeData:m,learningModeData:u,dataLoaded:p}=P(),[_,f]=(0,s.useState)(0),[h,y]=(0,s.useState)(0),[g,v]=(0,s.useState)(0),[b,E]=(0,s.useState)(0),[k,w]=(0,s.useState)(!1),[N,C]=(0,s.useState)(0),[F,D]=(0,s.useState)(-1),[L,x]=(0,s.useState)(!1),[Z,T]=(0,s.useState)(null),[I,A]=(0,s.useState)(null);(0,s.useEffect)((()=>{Promise.resolve().then(l.bind(l,44)).then((e=>{let{default:t,createTheme:l}=e;T((()=>t)),A((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]),(0,s.useEffect)((()=>{(async()=>{await m(e.field.id);let t=r(e.field.control_field),l="enforced-by-thirdparty"===t.value,s=l||"enforce"===t.value;x(t),f(l),E("completed"===t.value),w("error"===t.value),C(a(e.field.control_field+"_lm_enabled_once")),y(s),v("learning_mode"===t.value)})()}),[h,g]);const R=(e,l)=>{e.preventDefault();let s=1==l?"enforce":"disabled";y(l),E(0),v(0),i(L.id,s),t(L.id,s),d(!0,!1),m()},M=async l=>{l.preventDefault();let s,a=r(e.field.control_field+"_lm_enabled_once");g&&(C(1),t(a.id,1)),g||b?(v(0),s="disabled"):(v(1),s="learning_mode"),E(0),i(L.id,s),t(L.id,s),i(a.id,a.value),t(a,a.value),await d(!0,!1)};let j=e.field,V=(0,n.__)(" The %s is now in report-only mode and will collect directives. This might take a while. Afterwards you can Exit, Edit and Enforce these Directives.","really-simple-ssl").replace("%s",j.label),K=(0,n.__)("%s has been disabled.","really-simple-ssl").replace("%s",j.label),B=(0,n.__)("%s is enforced.","really-simple-ssl").replace("%s",j.label),U=!N;_&&(K=(0,n.__)("%s is already set outside Really Simple SSL.","really-simple-ssl").replace("%s",j.label));let z="rsssl-field-wrap";e.field.id;let W=[];j.columns.forEach((function(e,t){let l={name:e.name,sortable:e.sortable,width:e.width,selector:t=>t[e.column]};W.push(l)}));let q=u;q=q.filter((e=>e.status<2)),-1!=F&&(q=q.filter((e=>e.status==F)));for(const t of q)t.login_status&&(t.login_statusControl=1==t.login_status?(0,n.__)("success","really-simple-ssl"):(0,n.__)("failed","really-simple-ssl")),t.statusControl=(0,s.createElement)(O,{item:t,field:e.field}),t.deleteControl=(0,s.createElement)(H,{item:t,field:e.field});return Z&&I?(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",null,!p||0==q.length&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"rsssl-learningmode-placeholder"},(0,s.createElement)("div",null),(0,s.createElement)("div",null),(0,s.createElement)("div",null),(0,s.createElement)("div",null))),q.length>0&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Z,{columns:W,data:q,dense:!0,pagination:!0,noDataComponent:(0,n.__)("No results","really-simple-ssl"),persistTableHead:!0,theme:I,customStyles:{headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}},conditionalRowStyles:[{when:e=>0==e.status,classNames:["rsssl-datatables-revoked"]}]})),(0,s.createElement)("div",{key:"2",className:"rsssl-learning-mode-footer "},k&&(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-error"},(0,n.__)("Error detected","really-simple-ssl")),(0,n.__)("%s cannot be implemented due to server limitations. Check your notices for the detected issue.","really-simple-ssl").replace("%s",j.label)," ",(0,s.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>R(e,!1)},(0,n.__)("Disable","really-simple-ssl")))),!k&&(0,s.createElement)(s.Fragment,null,1!=h&&(0,s.createElement)("button",{disabled:U,className:"button button-primary",onClick:e=>R(e,!0)},(0,n.__)("Enforce","really-simple-ssl")),!_&&1==h&&(0,s.createElement)("button",{className:"button",onClick:e=>R(e,!1)},(0,n.__)("Disable","really-simple-ssl")),(0,s.createElement)("label",null,(0,s.createElement)("input",{type:"checkbox",disabled:h,checked:1==g,value:g,onChange:e=>M(e)}),(0,n.__)("Enable Learning Mode to configure automatically","really-simple-ssl")),1==h&&(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-shield-overlay"},(0,s.createElement)(S.Z,{name:"shield",size:"80px"})),(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced"},(0,n.__)("Enforced","really-simple-ssl")),B," ",(0,s.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>R(e)},(0,n.__)("Disable to configure","really-simple-ssl")))),1==g&&(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode"},(0,n.__)("Learning Mode","really-simple-ssl")),V," ",(0,s.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>M(e)},(0,n.__)("Exit","really-simple-ssl")))),1==b&&(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-completed"},(0,n.__)("Learning Mode","really-simple-ssl")),(0,n.__)("We finished the configuration.","really-simple-ssl")," ",(0,s.createElement)("a",{className:"rsssl-learning-mode-link",href:"#",onClick:e=>M(e)},(0,n.__)("Review the settings and enforce the policy","really-simple-ssl")))),rsssl_settings.pro_plugin_active&&e.disabled&&(0,s.createElement)("div",{className:"rsssl-locked "},(0,s.createElement)("div",{className:"rsssl-locked-overlay"},!_&&(0,s.createElement)("span",{className:"rsssl-progress-status rsssl-disabled"},(0,n.__)("Disabled","really-simple-ssl")),_&&(0,s.createElement)("span",{className:"rsssl-progress-status rsssl-learning-mode-enforced"},(0,n.__)("Enforced","really-simple-ssl")),K))),(0,s.createElement)((()=>(0,s.createElement)(s.Fragment,null,(0,s.createElement)("select",{onChange:e=>D(e.target.value),value:F},(0,s.createElement)("option",{value:"-1"},(0,n.__)("All","really-simple-ssl")),(0,s.createElement)("option",{value:"1"},(0,n.__)("Allowed","really-simple-ssl")),(0,s.createElement)("option",{value:"0"},(0,n.__)("Blocked","really-simple-ssl"))))),null)))):null};var V=l(9196),K=l(870);const B=e=>{const{riskData:t,dummyRiskData:a,processing:n,dataLoaded:r,fetchVulnerabilities:i,updateRiskData:c}=(0,K.Z)(),{fields:d,fieldAlreadyEnabled:m,getFieldValue:u,setChangedField:p,updateField:_,saveFields:f}=(0,o.Z)(),[h,y]=(0,V.useState)(!1),[g,v]=(0,V.useState)(!1),[b,E]=(0,V.useState)(null),[k,w]=(0,V.useState)(null);(0,V.useEffect)((()=>{Promise.resolve().then(l.bind(l,44)).then((e=>{let{default:t,createTheme:l}=e;E((()=>t)),w((()=>l("really-simple-plugins",{divider:{default:"transparent"}},"light")))}))}),[]),(0,V.useEffect)((()=>{m("enable_vulnerability_scanner")&&(r||i());let e=m("enable_vulnerability_scanner");v(e);let t=1==u("measures_enabled");y(t)}),[d]),(0,V.useEffect)((()=>{let e=1==u("measures_enabled");y(e)}),[]);let N=[];e.field.columns.forEach((function(e,t){let l={name:(s=e).name,sortable:s.sortable,width:s.width,selector:e=>e[s.column],grow:s.grow};var s;N.push(l)}));let S=e.field.options;S=Object.entries(S).map((e=>({label:e[1],value:e[0]})));let C=[...t];C=0===C.length?[...a]:C;let F=!g||!h;for(const e in C){let t={...C[e]};t.riskSelection=(0,s.createElement)("select",{disabled:n||F,value:t.value,onChange:e=>{return l=e.target.value,void c(t.id,l);var l}},S.map(((e,l)=>(0,s.createElement)("option",{key:l,value:e.value,disabled:t.disabledRiskLevels&&t.disabledRiskLevels.includes(e.value)},e.label)))),C[e]=t}let D=F?"rsssl-processing":"";return(0,s.createElement)("div",{className:D},b&&(0,s.createElement)(b,{columns:N,data:Object.values(C),theme:k}))};var U=l(44);const z=(0,x.Ue)(((e,t)=>({step:0,setStep:t=>e({step:t})})));var W=l(2387);const q=e=>{const[t,l]=(0,s.useState)(!0),{setChangedField:a,updateField:n,saveFields:r}=(0,o.Z)(),{getProgressData:i}=(0,W.Z)(),{step:c,setStep:d}=z(),{fetchFirstRun:m,fetchVulnerabilities:u,setIntroCompleted:p}=(0,K.Z)();let _=t?"icon-spin":"";(0,s.useEffect)((()=>{0===c&&1===e.currentStep?f():1===c&&2===e.currentStep?h():2===c&&3===e.currentStep?y():3===c&&4===e.currentStep&&g()}),[c]);const f=async()=>{await m(),v()},h=async()=>{await u(),v()},y=async()=>{await i(),v()},g=async()=>{p(!0),a("vulnerabilities_intro_shown",!0),n("vulnerabilities_intro_shown",!0),await r(!0,!1),v()},v=()=>{setTimeout((function(){l(!1),d(c+1)}),1e3)};return(0,s.createElement)("div",{className:"rsssl-details"},(0,s.createElement)("div",{className:"rsssl-detail-icon "+_},t?(0,s.createElement)(S.Z,{name:"spinner"}):(0,s.createElement)(S.Z,{name:"circle-check",color:"green"})),(0,s.createElement)("div",{className:"rsssl-detail"},(0,s.createElement)("div",{className:"rsssl-detail-title"},e.title)))},Y=()=>{const[e,t]=(0,s.useState)(!1),[l,r]=(0,s.useState)(!0),{step:i}=z();return(0,s.useEffect)((()=>{4===i&&r(!1)}),[i]),e?null:(0,s.createElement)(s.Fragment,null,(0,s.createElement)(a.Modal,{title:(0,n.__)("Introducing vulnerabilities","really-simple-ssl"),className:"rsssl-modal",onRequestClose:()=>{l||t(!0)},shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,overlayClassName:"rsssl-modal-overlay"},(0,s.createElement)("div",{className:"rsssl-header-extension"},(0,s.createElement)("div",null,(0,s.createElement)("p",null,(0,n.__)("You have enabled vulnerability detection! Really Simple SSL will check your plugins, themes and WordPress core daily and report if any known vulnerabilities are found.","really-simple-ssl")),(0,s.createElement)("img",{className:"rsssl-intro-logo",src:rsssl_settings.plugin_url+"/assets/img/really-simple-ssl-intro.svg"}))),(0,s.createElement)("div",{className:"rsssl-ssl-intro-container"},(0,s.createElement)(q,{title:(0,n.__)("Preparing vulnerability detection","really-simple-ssl"),name:"first_runner",loading:!0,currentStep:1}),(0,s.createElement)(q,{title:(0,n.__)("Collecting plugin, theme and core data","really-simple-ssl"),name:"second_runner",loading:!0,currentStep:2}),(0,s.createElement)(q,{title:(0,n.__)("Scanning your WordPress configuration","really-simple-ssl"),name:"third_runner",loading:!0,currentStep:3}),(0,s.createElement)(q,{title:(0,n.__)("Reporting enabled","really-simple-ssl"),name:"fourth_runner",loading:!0,currentStep:4})),(0,s.createElement)("div",{className:"rsssl-modal-footer"},(0,s.createElement)(a.Button,{disabled:l,isPrimary:!0,onClick:()=>{t(!0),window.location.hash="dashboard"}},(0,n.__)("Dashboard","really-simple-ssl")),(0,s.createElement)(a.Button,{disabled:l,isSecondary:!0,onClick:()=>{t(!0)}},(0,n.__)("Dismiss","really-simple-ssl")))))},G=e=>{const{getProgressData:t}=(0,W.Z)(),{dataLoaded:l,vulList:a,introCompleted:r,fetchVulnerabilities:i,setDataLoaded:c,fetchFirstRun:d}=(0,K.Z)(),{fields:m,fieldAlreadyEnabled:u,getFieldValue:p}=(0,o.Z)(),[_,f]=(0,V.useState)(!1);let h=[],y=e.field,g=!1;const v={headCells:{style:{paddingLeft:"0",paddingRight:"0"}},cells:{style:{paddingLeft:"0",paddingRight:"0"}}};(0,U.createTheme)("really-simple-plugins",{divider:{default:"transparent"}},"light");y.columns.forEach((function(e,t){let l={name:(s=e).name,sortable:s.sortable,width:s.width,visible:s.visible,selector:e=>e[s.column]};var s;h.push(l)})),(0,V.useEffect)((()=>{u("enable_vulnerability_scanner")&&(1==p("vulnerabilities_intro_shown")||r?l||b():f(!0))}),[m,l]),(0,V.useEffect)((()=>{1!=p("enable_vulnerability_scanner")||u("enable_vulnerability_scanner")||c(!1)}),[m]);const b=async()=>{await d(),await i(),await t()};return m.forEach((function(e,t){"enable_vulnerability_scanner"===e.id&&(g=e.value)})),g?(0,s.createElement)(s.Fragment,null,_&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,null)),(0,s.createElement)(U.default,{columns:h,data:a,dense:!0,pagination:!0,persistTableHead:!0,noDataComponent:(0,n.__)("No vulnerabilities found","really-simple-ssl"),theme:"really-simple-plugins",customStyles:v})):(0,s.createElement)(s.Fragment,null,_&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,null)),(0,s.createElement)(U.default,{columns:h,data:[["","","","",""],["","","","",""],["","","","",""]],dense:!0,pagination:!0,noDataComponent:(0,n.__)("No results","really-simple-ssl"),persistTableHead:!0,theme:"really-simple-plugins",customStyles:v}),(0,s.createElement)("div",{className:"rsssl-locked"},(0,s.createElement)("div",{className:"rsssl-locked-overlay"},(0,s.createElement)("span",{className:"rsssl-task-status rsssl-open"},(0,n.__)("Disabled","really-simple-ssl")),(0,s.createElement)("span",null,(0,n.__)("Activate vulnerability detection to enable this block.","really-simple-ssl")))))},Q=e=>{const{addHelpNotice:t}=(0,o.Z)();return(0,s.createElement)(s.Fragment,null,e.field.url&&(0,s.createElement)(_.Z,{className:"button button-default",text:e.field.button_text,url:e.field.url}),e.field.action&&(0,s.createElement)("button",{onClick:()=>{return l=e.field.action,void i.Kw(l,{}).then((l=>{let s=l.success?"success":"warning",a=(0,n.__)("Test notification by email","really-simple-ssl"),r=l.message;t(e.field.id,s,r,a,!1)}));var l},className:"button button-default"},e.field.button_text))};var $=l(7462),J=l(1898),X=l(6989),ee=l.n(X);const te=e=>{let{field:t}=e;const[a,r]=(0,V.useState)([]),[i,c]=(0,V.useState)(""),{updateField:d,setChangedField:m}=(0,o.Z)(),[u,p]=(0,V.useState)(null),[_,f]=(0,V.useState)(null),[h,y]=(0,V.useState)(null);return(0,V.useEffect)((()=>{l.e(964).then(l.bind(l,9964)).then((e=>{let{default:t}=e;y((()=>t))})),l.e(812).then(l.bind(l,2812)).then((e=>{let{createTheme:t,ThemeProvider:l}=e;p((()=>l)),f((()=>t({typography:{fontSize:12,fontFamily:"inherit"},overrides:{MuiInputBase:{root:{fontSize:"12px",fontFamily:"inherit",height:"40px"}},MuiList:{root:{fontSize:"8px"}},MuiAutocomplete:{inputRoot:{"& .MuiAutocomplete-input":{padding:"0 !important",border:0},flexWrap:"inherit"},popper:{fontSize:"12px"},paper:{fontSize:"12px"},option:{fontSize:"12px"},root:{padding:0}}}})))}))}),[]),(0,V.useEffect)((()=>{ee()({path:"/wp/v2/pages?per_page=100"}).then((e=>{const t=e.map((e=>({title:e.title.rendered,id:e.id})));r([{title:"404 (default)",id:"404_default"},...t])}))}),[]),(0,V.useEffect)((()=>{"404_default"!==t.value?ee()({path:`wp/v2/pages/${t.value}`}).then((e=>{e.title?c({title:e.title.rendered,id:t.value}):c({title:"404 (default)",id:"404_default"})})):c({title:"404 (default)",id:"404_default"})}),[t.value]),h&&u&&_?(0,s.createElement)("div",null,(0,s.createElement)("label",{htmlFor:"rsssl-filter-post-input"},(0,n.__)("Redirect to this post when someone tries to access /wp-admin or /wp-login.php. The default is a 404 page.","really-simple-ssl")),(0,s.createElement)(u,{theme:_},(0,s.createElement)(h,{options:a,getOptionLabel:e=>e.title?e.title:"",renderInput:e=>(0,s.createElement)(J.Z,(0,$.Z)({},e,{variant:"outlined",placeholder:(0,n.__)("Search for a post.","really-simple-ssl")})),getOptionSelected:(e,t)=>e.id===t.id,onChange:(e,l)=>{let s=l&&l.id?l.id:"404_default";d(t.id,s),m(t.id,s)},value:i}))):null},le=e=>{const{fetchVulnerabilities:t,riskLevels:l}=(0,K.Z)(),{field:a}=e,[r,c]=(0,V.useState)(!0),[d,m]=(0,V.useState)(!0),[u,p]=(0,V.useState)(!1),[_,f]=(0,V.useState)(!1),{addHelpNotice:h,fields:y,getFieldValue:g,updateField:v,setChangedField:b,fieldAlreadyEnabled:E,fetchFieldsData:k,updateFieldAttribute:w}=(0,o.Z)();(0,V.useEffect)((()=>{let e=1==g("send_notifications_email"),t=E("enable_vulnerability_scanner");m(e),c(!(e&&t)),m(e),f(t),p(1==g("enable_vulnerability_scanner"))}),[y]),(0,V.useEffect)((()=>{let e=g("vulnerability_notification_dashboard");e=l.hasOwnProperty(e)?l[e]:0;let t=e>0?e-1:e,s=Array.from(Array(t).keys()).map((e=>e));if(s=s.map((e=>Object.keys(l).find((t=>l[t]===e)))),s.length>0){w("vulnerability_notification_sitewide","disabled",s);let t=g("vulnerability_notification_sitewide");if(t=l.hasOwnProperty(t)?l[t]:0,t<e){let t=Object.keys(l).find((t=>l[t]===e));v("vulnerability_notification_sitewide",t),b("vulnerability_notification_sitewide",t)}}else w("vulnerability_notification_sitewide","disabled",!1)}),[g("vulnerability_notification_dashboard")]);let N={...a};return d?u&&!_&&(N.tooltip=(0,n.__)("The notification test only works if you save the setting first.","really-simple-ssl"),N.warning=!0):(N.tooltip=(0,n.__)("You have not enabled the email notifications in the general settings.","really-simple-ssl"),N.warning=!0),(0,s.createElement)(s.Fragment,null,(0,s.createElement)("label",null,e.labelWrap(N)),(0,s.createElement)("button",{onClick:()=>(async()=>{c(!0),i.Kw("vulnerabilities_test_notification").then((()=>{c(!1),k("vulnerabilities"),t(),h(a.id,"success",(0,n.__)("All notifications are triggered successfully, please check your email to double-check if you can receive emails.","really-simple-ssl"),(0,n.__)("Test notifications","really-simple-ssl"),!1)}))})(),disabled:r,className:"button button-default"},a.button_text))};var se=l(5902);const ae=e=>{let t=React.createRef();const{updateField:l,setChangedField:r,highLightField:i}=(0,o.Z)(),[c,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{f((0,se.Z)("anchor")),h(),i===e.field.id&&t.current&&t.current.scrollIntoView({behavior:"smooth",block:"start"})}),[]),(0,s.useEffect)((()=>{h()}),[c]),window.addEventListener("hashchange",(e=>{f((0,se.Z)("anchor"))}));const h=()=>{c&&c===e.field.id&&t.current.scrollIntoView({behavior:"smooth",block:"start"})},y=t=>{let s=e.field;l(s.id,t);let a=!1;if(s.configure_on_activation){s.configure_on_activation.hasOwnProperty("condition")&&e.field.value==s.configure_on_activation.condition&&(a=!0);let t=s.configure_on_activation[0];for(let e in t)a&&t.hasOwnProperty(e)&&l(e,t[e])}r(s.id,t)},g=e=>{let t=e.warning?"red":"black";return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"cmplz-label-text"},e.label),e.tooltip&&(0,s.createElement)(S.Z,{name:"info-open",tooltip:e.tooltip,color:t}))};let v=e.field,b=v.value,E=v.disabled,k="rsssl-field-wrap";i===e.field.id&&(k="rsssl-field-wrap rsssl-highlight");let N=[];if(v.options)for(var C in v.options)if(v.options.hasOwnProperty(C)){let e={};e.label=v.options[C],e.value=C,N.push(e)}if(!rsssl_settings.networkwide_active&&v.networkwide_required&&(E=!0,v.comment=(0,s.createElement)(s.Fragment,null,(0,n.__)("This feature is only available networkwide.","really-simple-ssl"),(0,s.createElement)(_.Z,{target:"_blank",text:(0,n.__)("Network settings","really-simple-ssl"),url:rsssl_settings.network_link}))),v.conditionallyDisabled&&(E=!0),!v.visible)return(0,s.createElement)(s.Fragment,null);if("checkbox"===v.type)return(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(R,{label:g(v),field:v,disabled:E,onChangeHandler:e=>y(e)}),v.comment&&(0,s.createElement)("div",{className:"rsssl-comment",dangerouslySetInnerHTML:{__html:v.comment}}));if("hidden"===v.type)return(0,s.createElement)("input",{type:"hidden",value:v.value});if("radio"===v.type)return(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(a.RadioControl,{label:g(v),onChange:e=>y(e),selected:b,options:N}));if("text"===v.type||"email"===v.type)return(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(a.TextControl,{required:v.required,placeholder:v.placeholder,disabled:E,help:v.comment,label:g(v),onChange:e=>y(e),value:b}));if("button"===v.type)return(0,s.createElement)("div",{className:"rsssl-field-button "+k,ref:t},(0,s.createElement)("label",null,v.label),(0,s.createElement)(Q,{field:v}));if("password"===v.type)return(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(m,{index:e.index,field:v}));if("textarea"===v.type)return(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(a.TextareaControl,{label:v.label,help:v.comment,value:b,onChange:e=>y(e),disabled:v.disabled}));if("license"===v.type){let l=e.field,a=l.value;return(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(d,{index:e.index,field:l,fieldValue:a}))}return"number"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(a.__experimentalNumberControl,{onChange:e=>y(e),help:v.comment,label:v.label,value:b})):"email"===v.type?(0,s.createElement)("div",{className:(void 0).highLightClass,ref:(void 0).scrollAnchor},(0,s.createElement)(a.TextControl,{help:v.comment,label:v.label,onChange:e=>(void 0).onChangeHandler(e),value:b})):"host"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(p,{index:e.index,field:e.field})):"select"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(u,{disabled:E,label:g(v),onChangeHandler:e=>y(e),value:b,options:N,field:v})):"support"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(M,null)):"postdropdown"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(te,{field:e.field})):"permissionspolicy"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(A,{disabled:E,field:e.field,options:N})):"learningmode"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(j,{disabled:E,field:e.field})):"riskcomponent"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(B,{field:e.field})):"mixedcontentscan"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(I,{field:e.field})):"vulnerabilitiestable"===v.type?(0,s.createElement)("div",{className:k,ref:t},(0,s.createElement)(G,{field:e.field})):"notificationtester"===v.type?(0,s.createElement)("div",{className:"rsssl-field-button "+k,ref:t},(0,s.createElement)(le,{field:e.field,labelWrap:g})):"letsencrypt"===v.type?(0,s.createElement)(F,{field:v}):"activate"===v.type?(0,s.createElement)(w,{field:v}):"not found field type "+v.type}},870:(e,t,l)=>{l.d(t,{Z:()=>o});var s=l(9307),a=l(270),n=l(8473),r=l(5736),i=l(2902);l(9196);const o=(0,a.Ue)(((e,t)=>({dummyRiskData:[{id:"force_update",name:"Force Update",value:"l",description:(0,r.__)("Force update the plugin or theme","really-simple-ssl")},{id:"quarantine",name:"Quarantine",value:"m",description:(0,r.__)("Isolates the plugin or theme if no update can be performed","really-simple-ssl")}],riskData:[],riskLevels:{l:1,m:2,h:3,c:4},vulnerabilities:[],processing:!1,dataLoaded:!1,updates:0,HighestRisk:!1,lastChecked:"",vulEnabled:!1,riskNaming:{},introCompleted:!1,vulList:[],setDataLoaded:t=>e({dataLoaded:t}),updateRiskData:async(l,s)=>{e({processing:!0}),e((0,i.Uy)((e=>{let a=e.riskData.findIndex((e=>e.id===l));e.riskData[a].value=s,e.riskData=t().enforceCascadingRiskLevels(e.riskData)})));try{await n.Kw("vulnerabilities_measures_set",{riskData:t().riskData}),e({dataLoaded:!0,processing:!1})}catch(e){console.log(e)}},setIntroCompleted:t=>{e({introCompleted:t})},enforceCascadingRiskLevels:e=>{if(0===e.length)return e;let l=e.filter((e=>"force_update"===e.id))[0].value,s=e.filter((e=>"quarantine"===e.id))[0].value;l=t().riskLevels.hasOwnProperty(l)?t().riskLevels[l]:5,s=t().riskLevels.hasOwnProperty(s)?t().riskLevels[s]:5;let a=e.findIndex((e=>"quarantine"===e.id));s<l&&(e[a].value=Object.keys(t().riskLevels).find((e=>t().riskLevels[e]===l))),5===l&&(e[a].value="*");let n=l>0?l:0,r=Array.from(Array(n).keys()).map((e=>e));return r=r.map((e=>Object.keys(t().riskLevels).find((l=>t().riskLevels[l]===e)))),e[a].disabledRiskLevels=r,e},capitalizeFirstLetter:e=>e.charAt(0).toUpperCase()+e.slice(1),fetchFirstRun:async()=>{await n.Kw("vulnerabilities_scan_files")},fetchVulnerabilities:async()=>{let l={};try{const a=await n.Kw("hardening_data",l);let o=[],c=0;a.data.vulList&&(c=a.data.vulnerabilities,o=a.data.vulList,"object"==typeof o&&(o=Object.values(o)),o.forEach((function(e,t){let l=e.update_available?rsssl_settings.plugins_url+"?plugin_status=upgrade":"#settings/vulnerabilities";e.vulnerability_action=(0,s.createElement)("div",{className:"rsssl-vulnerability-action"},(0,s.createElement)("a",{className:"button",href:"https://really-simple-ssl.com/vulnerabilities/"+e.rss_identifier,target:"_blank"},(0,r.__)("Details","really-simple-ssl")),(0,s.createElement)("a",{disabled:!e.update_available,href:l,className:"button button-primary"},(0,r.__)("Update","really-simple-ssl")))})));let d=a.data.riskData;Array.isArray(d)||(d=[]),d=t().enforceCascadingRiskLevels(d),e((0,i.Uy)((e=>{e.vulnerabilities=c,e.vulList=o,e.updates=a.data.updates,e.dataLoaded=!0,e.riskNaming=a.data.riskNaming,e.lastChecked=a.data.lastChecked,e.vulEnabled=a.data.vulEnabled,e.riskData=d})))}catch(e){console.error(e)}},vulnerabilityCount:()=>{let e=t().vulList,l=[];return Object.keys(e).forEach((function(t){l.push(e[t])})),["c","h","m","l"].map((function(e){return{level:e,count:l.filter((function(t){return t.risk_level===e})).length}}))},vulnerabilityScore:()=>{let e=0,l=t().vulList;return Object.keys(l).forEach((function(t){"c"===l[t].risk_level?e=5:e<1&&(e=1)})),e},hardeningScore:()=>{let e=0,l=t().vulnerabilities;for(let t=0;t<l.length;t++)e+=l[t].hardening_score;return e},activateVulnerabilityScanner:async()=>{try{(await n.Kw("rsssl_scan_files")).request_success&&(async()=>{await t().fetchVulnerabilities()})()}catch(e){console.error(e)}}})))}}]); build/812.js 0000666 00000012441 15165313625 0006530 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[812],{2812:(e,t,r)=>{r.r(t),r.d(t,{MuiThemeProvider:()=>G,ServerStyleSheets:()=>j,StylesProvider:()=>C.ZP,ThemeProvider:()=>G,alpha:()=>n.Fq,createGenerateClassName:()=>H.Z,createMuiTheme:()=>o.A,createStyles:()=>s,createTheme:()=>o.Z,darken:()=>n._j,decomposeColor:()=>n.tB,duration:()=>w.x9,easing:()=>w.Ui,emphasize:()=>n._4,fade:()=>n.U1,getContrastRatio:()=>n.mi,getLuminance:()=>n.H3,hexToRgb:()=>n.oo,hslToRgb:()=>n.ve,jssPreset:()=>L.Z,lighten:()=>n.$n,makeStyles:()=>h,recomposeColor:()=>n.wy,responsiveFontSizes:()=>Z,rgbToHex:()=>n.vq,styled:()=>x,unstable_createMuiStrictModeTheme:()=>a,useTheme:()=>F.Z,withStyles:()=>P.Z,withTheme:()=>z});var n=r(9693),o=r(2920),i=r(5953);function a(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return o.Z.apply(void 0,[(0,i.Z)({unstable_strictMode:!0},e)].concat(r))}function s(e){return e}var l=r(7462),u=r(3914),c=r(9700);const h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,u.Z)(e,(0,l.Z)({defaultTheme:c.Z},t))};var f=r(288),m=r(4942);function v(e){return String(parseFloat(e)).length===String(e).length}function p(e){return parseFloat(e)}function d(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.breakpoints,n=void 0===r?["sm","md","lg"]:r,o=t.disableAlign,i=void 0!==o&&o,a=t.factor,s=void 0===a?2:a,u=t.variants,c=void 0===u?["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]:u,h=(0,l.Z)({},e);h.typography=(0,l.Z)({},h.typography);var Z,g=h.typography,y=(Z=g.htmlFontSize,function(e,t){var r=String(e).match(/[\d.\-+]*\s*(.*)/)[1]||"";if(r===t)return e;var n=p(e);if("px"!==r)if("em"===r)n=p(e)*p(Z);else if("rem"===r)return n=p(e)*p(Z),e;var o=n;if("px"!==t)if("em"===t)o=n/p(Z);else{if("rem"!==t)return e;o=n/p(Z)}return parseFloat(o.toFixed(5))+t}),S=n.map((function(e){return h.breakpoints.values[e]}));return c.forEach((function(e){var t=g[e],r=parseFloat(y(t.fontSize,"rem"));if(!(r<=1)){var n=r,o=1+(n-1)/s,a=t.lineHeight;if(!v(a)&&!i)throw new Error((0,f.Z)(6));v(a)||(a=parseFloat(y(a,"rem"))/parseFloat(r));var u=null;i||(u=function(e){return(r=(t={size:e,grid:d({pixels:4,lineHeight:a,htmlFontSize:g.htmlFontSize})}).size)-(o=r-r%(n=t.grid))<(i=o+n)-r?o:i;var t,r,n,o,i}),g[e]=(0,l.Z)({},t,function(e){var t=e.cssProperty,r=e.min,n=e.max,o=e.unit,i=void 0===o?"rem":o,a=e.breakpoints,s=void 0===a?[600,960,1280]:a,l=e.transform,u=void 0===l?null:l,c=(0,m.Z)({},t,"".concat(r).concat(i)),h=(n-r)/s[s.length-1];return s.forEach((function(e){var n=r+h*e;null!==u&&(n=u(n)),c["@media (min-width:".concat(e,"px)")]=(0,m.Z)({},t,"".concat(Math.round(1e4*n)/1e4).concat(i))})),c}({cssProperty:"fontSize",min:o,max:n,unit:"rem",breakpoints:S,transform:u}))}})),h}var g=r(5987),y=r(9196),S=r.n(y),b=r(6010),T=r(8679),k=r.n(T);const x=function(e){var t=function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=(0,g.Z)(n,["name"]),a=o,s="function"==typeof t?function(e){return{root:function(r){return t((0,l.Z)({theme:e},r))}}}:{root:t},c=(0,u.Z)(s,(0,l.Z)({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var h=S().forwardRef((function(t,n){var o,i,a,s=t.children,u=t.className,h=t.clone,f=t.component,m=(0,g.Z)(t,["children","className","clone","component"]),v=c(t),p=(0,b.Z)(v.root,u),d=m;if(r&&(o=d,i=r,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),d=a),h)return S().cloneElement(s,(0,l.Z)({className:(0,b.Z)(s.props.className,p)},d));if("function"==typeof s)return s((0,l.Z)({className:p},d));var Z=f||e;return S().createElement(Z,(0,l.Z)({ref:n,className:p},d),s)}));return k()(h,e),h}}(e);return function(e,r){return t(e,(0,l.Z)({defaultTheme:c.Z},r))}};var w=r(3291),F=r(8920),P=r(4670),E=r(159);function R(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=S().forwardRef((function(r,n){var o=r.innerRef,i=(0,g.Z)(r,["innerRef"]),a=(0,E.Z)()||e;return S().createElement(t,(0,l.Z)({theme:a,ref:o||n},i))}));return k()(r,t),r}}R();const z=R({defaultTheme:c.Z});var M=r(5671),N=r(3144),_=r(4013),C=r(6975),H=r(5034),j=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,M.Z)(this,e),this.options=t}return(0,N.Z)(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new _.xE;var r=(0,H.Z)();return S().createElement(C.ZP,(0,l.Z)({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return S().createElement("style",(0,l.Z)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}(),A=r(3800),q=r(7076);const G=function(e){var t=e.children,r=e.theme,n=(0,E.Z)(),o=S().useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):(0,l.Z)({},e,t)}(n,r);return null!=e&&(e[q.Z]=null!==n),e}),[r,n]);return S().createElement(A.Z.Provider,{value:o},t)};var L=r(246)}}]); build/885.js 0000666 00000125002 15165313625 0006540 0 ustar 00 "use strict";(globalThis.webpackChunkreally_simple_ssl=globalThis.webpackChunkreally_simple_ssl||[]).push([[885],{2387:(e,t,l)=>{l.d(t,{Z:()=>r});var a=l(270),s=l(8473);const r=(0,a.Ue)(((e,t)=>({filter:"all",progressText:"",notices:[],error:!1,percentageCompleted:0,progressLoaded:!1,setFilter:t=>{sessionStorage.rsssl_task_filter=t,e((e=>({filter:t})))},fetchFilter:()=>{if("undefined"!=typeof Storage&&sessionStorage.rsssl_task_filter){let t=sessionStorage.rsssl_task_filter;e((e=>({filter:t})))}},getProgressData:async()=>{const{percentage:t,text:l,notices:a,error:r}=await s.SA("progressData","refresh").then((e=>e));e((e=>({notices:a,percentageCompleted:t,progressText:l,progressLoaded:!0,error:r})))},dismissNotice:async l=>{let a=t().notices;a=a.filter((function(e){return e.id!==l})),e((e=>({notices:a})));const{percentage:r}=await s.SA("dismiss_task",l);e({percentageCompleted:r})}})))},7372:(e,t,l)=>{l.d(t,{Z:()=>g});var a=l(9307),s=l(5609),r=l(8473),c=l(5736),i=l(3882),n=l(4531),o=l(2485),m=l(4559),d=l(2387),h=l(9810),u=l(870);const g=e=>{const{fetchFieldsData:t,updateField:l,updateFieldsData:g,getFieldValue:v}=(0,m.Z)(),{getProgressData:p}=(0,d.Z)(),{fetchVulnerabilities:w}=(0,u.Z)(),{dismissModal:f,actionHandler:C,getSteps:E,error:_,certificateValid:b,networkwide:y,sslEnabled:M,dataLoaded:L,processing:z,setProcessing:x,steps:S,currentStep:k,currentStepIndex:V,setCurrentStepIndex:H,overrideSSL:N,setOverrideSSL:B,networkActivationStatus:Z,setNetworkActivationStatus:F,networkProgress:D,refreshSSLStatus:A,activateSSLNetworkWide:I,email:T,setEmail:O,saveEmail:R,includeTips:P,setIncludeTips:U,sendTestEmail:j,setSendTestEmail:K}=(0,h.Z)(),{setSelectedMainMenuItem:q,selectedMainMenuItem:$}=(0,o.Z)(),W={inactive:{icon:"info",color:"orange"},warning:{icon:"circle-times",color:"orange"},error:{icon:"circle-times",color:"red"},success:{icon:"circle-check",color:"green"},processing:{icon:"file-download",color:"red"}};if((0,a.useEffect)((()=>{y&&"main_site_activated"===Z&&I()}),[Z,D]),(0,a.useEffect)((()=>{(async()=>{await E(!1),L&&M&&0===V&&H(1),""!==v("notifications_email_address")&&""===T&&O(v("notifications_email_address"))})()}),[]),(0,a.useEffect)((()=>{(async()=>{if(k&&k.items){let e=k.items.find((e=>"hardening"===e.id));e&&"success"===e.status&&(await t("hardening"),await p(),await w())}})()}),[k]),_)return(0,a.createElement)(n.Z,{lines:"3",error:_});let G=k,Q=z?"rsssl-processing":"";return(0,a.createElement)(a.Fragment,null,!L&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"rsssl-onboarding-placeholder"},(0,a.createElement)("ul",null,(0,a.createElement)("li",null,(0,a.createElement)(i.Z,{name:"file-download",color:"grey"}),(0,c.__)("Fetching next step...","really-simple-ssl"))),(0,a.createElement)(n.Z,{lines:"3"}))),L&&(0,a.createElement)("div",{className:"rsssl-modal-content-step "+Q},(0,a.createElement)("ul",null,(Y=G.items)&&Y.map(((e,t)=>{let{title:l,description:r,current_action:n,action:o,status:m,button:d,id:h,read_more:u}=e;"ssl_enabled"===h&&y&&(D>=100?(m="success",l=(0,c.__)("SSL has been activated network wide","really-simple-ssl")):(m="processing",l=(0,c.__)("Processing activation of subsites networkwide","really-simple-ssl")));const g="success"!==e.status&&e.is_plugin&&"none"===e.current_action?"empty":W[m].icon,v=W[m].color,p={activate_setting:(0,c.__)("Activating...","really-simple-ssl"),activate:(0,c.__)("Activating...","really-simple-ssl"),install_plugin:(0,c.__)("Installing...","really-simple-ssl"),error:(0,c.__)("Failed","really-simple-ssl"),completed:(0,c.__)("Finished","really-simple-ssl")};let w="";d&&(w=d,"none"!==n&&(w=p[n],"failed"===n&&(w=p.error)));let f=d&&d===w,E="success"!==e.status&&e.is_plugin&&"none"===e.current_action,_=E?"rsssl-is-plugin":"";return l=E?(0,a.createElement)("b",null,l):l,(0,a.createElement)("li",{key:"pluginItem-"+t,className:_},(0,a.createElement)(i.Z,{name:g,color:v}),l,r&&(0,a.createElement)(a.Fragment,null," - ",r),"ssl_enabled"===h&&y&&"main_site_activated"===Z&&(0,a.createElement)(a.Fragment,null," - ",D<100&&(0,a.createElement)(a.Fragment,null,(0,c.__)("working","really-simple-ssl")," ",D,"%"),D>=100&&(0,c.__)("completed","really-simple-ssl")),d&&(0,a.createElement)(a.Fragment,null," - ",f&&(0,a.createElement)(s.Button,{isLink:!0,onClick:e=>C(h,o,e)},w),!f&&(0,a.createElement)(a.Fragment,null,w)),E&&u&&(0,a.createElement)("a",{target:"_blank",href:u,className:"button button-default rsssl-read-more"},(0,c.__)("Read More","really-simple-ssl")))}))),"email"===k.id&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",null,(0,a.createElement)("input",{type:"email",value:T,placeholder:(0,c.__)("Your email address","really-simple-ssl"),onChange:e=>O(e.target.value)})),(0,a.createElement)("div",null,(0,a.createElement)("label",null,(0,a.createElement)("input",{onChange:e=>U(e.target.checked),type:"checkbox",checked:P}),(0,c.__)("Include 6 Tips & Tricks to get started with Really Simple SSL.","really-simple-ssl")," ",(0,a.createElement)("a",{href:"https://really-simple-ssl.com/legal/privacy-statement/",target:"_blank"},(0,c.__)("Privacy Statement","really-simple-ssl")))),(0,a.createElement)("div",null,(0,a.createElement)("label",null,(0,a.createElement)("input",{onChange:e=>K(e.target.checked),type:"checkbox",checked:j}),(0,c.__)("Send a notification test email - Notification emails are sent from your server.","really-simple-ssl")))),b&&G.info_text&&(0,a.createElement)("div",{className:"rsssl-modal-description",dangerouslySetInnerHTML:{__html:G.info_text}}),0===V&&!b&&(0,a.createElement)("div",{className:"rsssl-modal-description"},(0,a.createElement)("a",{href:"#",onClick:e=>A(e)},(0,c.__)("Refresh SSL status","really-simple-ssl"))," ",(0,c.__)("The SSL detection method is not 100% accurate.","really-simple-ssl")," ",(0,c.__)("If you’re certain an SSL certificate is present, and refresh SSL status does not work, please check “Override SSL detection” to continue activating SSL.","really-simple-ssl")),(0,a.createElement)("div",{className:"rsssl-modal-content-step-footer"},(()=>{let i=y?(0,c.__)("Activate SSL networkwide","really-simple-ssl"):(0,c.__)("Activate SSL","really-simple-ssl");return 0===V?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("button",{disabled:z||!b&&!N,className:"button button-primary",onClick:()=>{x(!0),r.SA("activate_ssl").then((async e=>{x(!1),H(V+1),e.success&&(e.site_url_changed?window.location.reload():y&&F("main_site_activated"))})).then((async()=>{await p(),await t($)}))}},i),b&&!rsssl_settings.pro_plugin_active&&(0,a.createElement)("a",{target:"_blank",href:rsssl_settings.upgrade_link,className:"button button-default"},(0,c.__)("Improve Security with PRO","really-simple-ssl")),!b&&(0,a.createElement)("button",{className:"button button-default",onClick:()=>{e.isModal&&f(),window.location.href=rsssl_settings.letsencrypt_url}},(0,c.__)("Install SSL","really-simple-ssl")),!b&&(0,a.createElement)(s.ToggleControl,{label:(0,c.__)("Override SSL detection","really-simple-ssl"),checked:N,onChange:e=>{B(e);let t={};t.overrideSSL=e,r.Kw("override_ssl_detection",t)}})):V>0&&V<S.length-1?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("button",{disabled:z,className:"button button-primary",onClick:()=>(async()=>{await R(),l("send_notifications_email",!0),l("notifications_email_address",T),g()})()},(0,c.__)("Save and continue","really-simple-ssl")),(0,a.createElement)("button",{disabled:z,className:"button button-default",onClick:()=>{H(V+1)}},(0,c.__)("Skip","really-simple-ssl"))):S.length-1===V?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("button",{className:"button button-primary",onClick:()=>{e.isModal&&f(),q("dashboard")}},(0,c.__)("Go to Dashboard","really-simple-ssl")),(0,a.createElement)("button",{className:"button button-default",onClick:()=>f()},(0,c.__)("Dismiss","really-simple-ssl"))):void 0})())));var Y}},885:(e,t,l)=>{l.r(t),l.d(t,{default:()=>h});var a=l(9307),s=l(8473),r=l(7372),c=l(7839),i=l(4531),n=l(5736),o=l(3882),m=l(9810),d=l(4559);const h=()=>{const{fieldsLoaded:e}=(0,d.Z)(),{showOnboardingModal:t,fetchOnboardingModalStatus:l,modalStatusLoaded:h,currentStep:u,dismissModal:g}=(0,m.Z)();return(0,a.useEffect)((()=>{h||l()}),[]),(0,c.Z)((()=>{if(!0===t){let e={dismiss:!1};s.Kw("dismiss_modal",e)}})),(0,a.createElement)(a.Fragment,null,t&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"rsssl-modal-backdrop"}," "),(0,a.createElement)("div",{className:"rsssl-modal rsssl-onboarding"},(0,a.createElement)("div",{className:"rsssl-modal-header"},(0,a.createElement)("h2",null,u.title),(0,a.createElement)("button",{type:"button",className:"rsssl-modal-close","data-dismiss":"modal","aria-label":"Close",onClick:()=>g()},(0,a.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:"24"},(0,a.createElement)("path",{fill:"#000000",d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"})))),(0,a.createElement)("div",{className:"rsssl-header-extension"},(0,a.createElement)("div",null,(0,a.createElement)("p",null,u.subtitle))),(0,a.createElement)("div",{className:"rsssl-modal-content"},!e&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)("ul",null,(0,a.createElement)("li",null,(0,a.createElement)(o.Z,{name:"file-download",color:"orange"}),(0,n.__)("Please wait while we detect your setup","really-simple-ssl"))),(0,a.createElement)(i.Z,{lines:"3"})),e&&(0,a.createElement)(r.Z,{isModal:!0})),(0,a.createElement)("div",{className:"rssl-modal-footer"}))))}},4531:(e,t,l)=>{l.d(t,{Z:()=>r});var a=l(9307),s=l(2919);const r=e=>{let t=e.lines;return t||(t=4),e.error&&(t=0),(0,a.createElement)("div",{className:"rsssl-placeholder"},e.error&&(0,a.createElement)(s.Z,{error:e.error}),Array.from({length:t}).map(((e,t)=>(0,a.createElement)("div",{className:"rsssl-placeholder-line",key:"placeholder-"+t}))))}},870:(e,t,l)=>{l.d(t,{Z:()=>n});var a=l(9307),s=l(270),r=l(8473),c=l(5736),i=l(2902);l(9196);const n=(0,s.Ue)(((e,t)=>({dummyRiskData:[{id:"force_update",name:"Force Update",value:"l",description:(0,c.__)("Force update the plugin or theme","really-simple-ssl")},{id:"quarantine",name:"Quarantine",value:"m",description:(0,c.__)("Isolates the plugin or theme if no update can be performed","really-simple-ssl")}],riskData:[],riskLevels:{l:1,m:2,h:3,c:4},vulnerabilities:[],processing:!1,dataLoaded:!1,updates:0,HighestRisk:!1,lastChecked:"",vulEnabled:!1,riskNaming:{},introCompleted:!1,vulList:[],setDataLoaded:t=>e({dataLoaded:t}),updateRiskData:async(l,a)=>{e({processing:!0}),e((0,i.Uy)((e=>{let s=e.riskData.findIndex((e=>e.id===l));e.riskData[s].value=a,e.riskData=t().enforceCascadingRiskLevels(e.riskData)})));try{await r.Kw("vulnerabilities_measures_set",{riskData:t().riskData}),e({dataLoaded:!0,processing:!1})}catch(e){console.log(e)}},setIntroCompleted:t=>{e({introCompleted:t})},enforceCascadingRiskLevels:e=>{if(0===e.length)return e;let l=e.filter((e=>"force_update"===e.id))[0].value,a=e.filter((e=>"quarantine"===e.id))[0].value;l=t().riskLevels.hasOwnProperty(l)?t().riskLevels[l]:5,a=t().riskLevels.hasOwnProperty(a)?t().riskLevels[a]:5;let s=e.findIndex((e=>"quarantine"===e.id));a<l&&(e[s].value=Object.keys(t().riskLevels).find((e=>t().riskLevels[e]===l))),5===l&&(e[s].value="*");let r=l>0?l:0,c=Array.from(Array(r).keys()).map((e=>e));return c=c.map((e=>Object.keys(t().riskLevels).find((l=>t().riskLevels[l]===e)))),e[s].disabledRiskLevels=c,e},capitalizeFirstLetter:e=>e.charAt(0).toUpperCase()+e.slice(1),fetchFirstRun:async()=>{await r.Kw("vulnerabilities_scan_files")},fetchVulnerabilities:async()=>{let l={};try{const s=await r.Kw("hardening_data",l);let n=[],o=0;s.data.vulList&&(o=s.data.vulnerabilities,n=s.data.vulList,"object"==typeof n&&(n=Object.values(n)),n.forEach((function(e,t){let l=e.update_available?rsssl_settings.plugins_url+"?plugin_status=upgrade":"#settings/vulnerabilities";e.vulnerability_action=(0,a.createElement)("div",{className:"rsssl-vulnerability-action"},(0,a.createElement)("a",{className:"button",href:"https://really-simple-ssl.com/vulnerabilities/"+e.rss_identifier,target:"_blank"},(0,c.__)("Details","really-simple-ssl")),(0,a.createElement)("a",{disabled:!e.update_available,href:l,className:"button button-primary"},(0,c.__)("Update","really-simple-ssl")))})));let m=s.data.riskData;Array.isArray(m)||(m=[]),m=t().enforceCascadingRiskLevels(m),e((0,i.Uy)((e=>{e.vulnerabilities=o,e.vulList=n,e.updates=s.data.updates,e.dataLoaded=!0,e.riskNaming=s.data.riskNaming,e.lastChecked=s.data.lastChecked,e.vulEnabled=s.data.vulEnabled,e.riskData=m})))}catch(e){console.error(e)}},vulnerabilityCount:()=>{let e=t().vulList,l=[];return Object.keys(e).forEach((function(t){l.push(e[t])})),["c","h","m","l"].map((function(e){return{level:e,count:l.filter((function(t){return t.risk_level===e})).length}}))},vulnerabilityScore:()=>{let e=0,l=t().vulList;return Object.keys(l).forEach((function(t){"c"===l[t].risk_level?e=5:e<1&&(e=1)})),e},hardeningScore:()=>{let e=0,l=t().vulnerabilities;for(let t=0;t<l.length;t++)e+=l[t].hardening_score;return e},activateVulnerabilityScanner:async()=>{try{(await r.Kw("rsssl_scan_files")).request_success&&(async()=>{await t().fetchVulnerabilities()})()}catch(e){console.error(e)}}})))},3882:(e,t,l)=>{l.d(t,{Z:()=>i});var a=l(7462),s=l(9307),r=l(7557),c=l(9610);const i=e=>{const{name:t,color:l,size:i}=e,n=t||"bullet",o=l||"black",m=i||15,d={black:"var(--rsp-black)",green:"var(--rsp-green)",yellow:"var(--rsp-yellow)",orange:"var(--rsp-yellow)","red-faded":"var(--rsp-red-faded)",red:"var(--rsp-red)",grey:"var(--rsp-grey-400)","red-warning":"var(--rsp-red-faded)"};let h="";"bullet"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"}))}),"circle"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"check"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"}))}),"warning"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))}),"error"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"}))}),"times"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"}))}),"circle-check"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"}))}),"circle-times"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"}))}),"chevron-up"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"}))}),"chevron-down"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"}))}),"chevron-right"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"}))}),"chevron-left"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"}))}),"plus"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"}))}),"minus"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"}))}),"sync"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"}))}),"sync-error"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"}))}),"shortcode"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"}))}),"file"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"}))}),"file-disabled"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"}))}),"file-download"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"}))}),"calendar"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"}))}),"calendar-error"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"}))}),"help"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"}))}),"copy"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"}))}),"info"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"}))}),"info-open"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"}))}),"list"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"}))}),"empty"===n&&(h={html:(0,s.createElement)("svg",{height:m,width:m,"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"})}),"external-link"===n&&(h={html:(0,s.createElement)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("path",{fill:d[o],d:"M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"}))}),"shield"===n&&(h={html:(0,s.createElement)("svg",{height:m,"aria-hidden":"true",focusable:"false",role:"img",id:"uuid-026a4e87-44db-4336-a398-3c29d25b7317",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 280.8 363.67"},(0,s.createElement)("path",{fill:"#f9c23e",d:"M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"}),(0,s.createElement)("g",null,(0,s.createElement)("g",null,(0,s.createElement)("rect",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",x:"155",y:"266.8",width:"77.6",height:"6"}),(0,s.createElement)("path",{fill:"#1d2327",d:"M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"})),(0,s.createElement)("g",null,(0,s.createElement)("path",{fill:"#1d2327",d:"M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"}),(0,s.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"}),(0,s.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"}),(0,s.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"}),(0,s.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"}),(0,s.createElement)("path",{className:"uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4",d:"M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"}))))}),"file-search"===n&&(h={html:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:m,fill:"none",viewBox:"0 0 384 512"},(0,s.createElement)("path",{d:"M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"})),viewBox:"0 0 24 24"}),"download"===n&&(h={html:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",height:m,fill:"none",viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"})),viewBox:"0 0 24 24"}),"satellite-dish"===n&&(h={html:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",color:d[o],height:m,viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"})),viewBox:"0 0 24 24"}),"rotate-light"===n&&(h={html:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",color:d[o],height:m,viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"})),viewBox:"0 0 24 24"}),"rotate-exclamation-light"===n&&(h={html:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("defs",null,(0,s.createElement)("style",null,`\n .fa-secondary {\n opacity: 0.4;\n color: ${d[o]};\n }\n `)),(0,s.createElement)("path",{className:"fa-primary",d:"M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"}),(0,s.createElement)("path",{className:"fa-secondary",d:"M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"})),viewBox:"0 0 24 24"}),"radar-duotone"===n&&(h={html:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("defs",null,(0,s.createElement)("style",null,`\n .fa-secondary {\n color: ${d[o]} !important;\n } \n `)),(0,s.createElement)("path",{className:"fa-primary",d:"M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"}),(0,s.createElement)("path",{className:"fa-secondary",d:"M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"})),viewBox:"0 0 24 24"}),"satellite-dish-duotone"===n&&(h={html:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:m},(0,s.createElement)("defs",null,(0,s.createElement)("style",null,`\n .fa-secondary {\n color: ${d[o]} !important;\n } \n `)),(0,s.createElement)("path",{className:"fa-primary",d:"M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"}),(0,s.createElement)("path",{className:"fa-secondary",d:"M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"})),viewBox:"0 0 24 24"}),"spinner"===n&&(h={html:(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:"20",height:"20"},(0,s.createElement)("defs",null,(0,s.createElement)("style",null,"\n .fa-secondary {\n opacity: 0.4;\n }\n ")),(0,s.createElement)("path",{className:"fa-primary",d:"M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"}),(0,s.createElement)("path",{className:"fa-secondary",d:"M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"})),viewBox:"0 0 22 22"});const u=(0,c.ZP)((e=>{let{className:t,...l}=e;return(0,s.createElement)(r.Z,(0,a.Z)({},l,{classes:{popper:t}}))}))((e=>{let{theme:t}=e;return{"& .MuiTooltip-tooltip":{padding:"10px 20px",fontWeight:"340",fontSize:"var(--rsp-fs-200)",fontFamily:"unset",backgroundColor:"var(--rsp-black)"}}}));return(0,s.createElement)(u,{arrow:!0,enterDelay:200,title:e.tooltip,placement:"bottom"},(0,s.createElement)("div",{className:"rsssl-icon rsssl-icon-"+n},h.html))}},7839:(e,t,l)=>{l.d(t,{Z:()=>s});var a=l(9196);const s=function(e,t){var l,s=(l=(0,a.useRef)(!0)).current?(l.current=!1,!0):l.current;(0,a.useEffect)((function(){if(!s)return e()}),t)}}}]); config/config.php 0000666 00000130732 15165313625 0010010 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); function rsssl_fields( $load_values = true ) { if ( ! rsssl_user_can_manage() ) { return []; } $fields = [ [ 'id' => 'ssl_enabled', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'hidden', 'label' => 'ssl_enabled', 'disabled' => false, 'default' => false, ], [ 'id' => 'site_has_ssl', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'review_notice_shown', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'redirect', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'select', 'tooltip' => __( "Changing redirect methods should be done with caution. Please make sure you have read our instructions beforehand at the right-hand side.", 'really-simple-ssl' ), 'label' => __( "Redirect method", 'really-simple-ssl' ), 'warning' => true, 'options' => [ 'none' => __( "No redirect", "really-simple-ssl" ), 'wp_redirect' => __( "301 PHP redirect", "really-simple-ssl" ), 'htaccess' => __( "301 .htaccess redirect (read instructions first)", "really-simple-ssl" ), ], 'help' => [ 'label' => 'default', 'title' => __( "Redirect method", 'really-simple-ssl' ), 'text' => __( 'Redirects your site to https with a SEO friendly 301 redirect if it is requested over http.', 'really-simple-ssl' ), ], 'email' => [ 'title' => __( "Settings update: .htaccess redirect", 'really-simple-ssl' ), 'message' => __( "The .htaccess redirect has been enabled on your site. If the server configuration is non-standard, this might cause issues. Please check if all pages on your site are functioning properly.", 'really-simple-ssl' ), 'url' => 'https://really-simple-ssl.com/remove-htaccess-redirect-site-lockout/', 'condition' => ['redirect' => 'htaccess'] ], 'react_conditions' => [ 'relation' => 'AND', [ 'ssl_enabled' => '1', ] ], 'default' => false, ], [ 'id' => 'mixed_content_fixer', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __( "Mixed content fixer", 'really-simple-ssl' ), 'disabled' => false, 'default' => true, ], [ 'id' => 'switch_mixed_content_fixer_hook', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __( "Mixed content fixer - init hook", 'really-simple-ssl' ), 'help' => [ 'label' => 'default', 'title' => __( "Mixed content fixer - init hook", 'really-simple-ssl' ), 'text' => __( 'If this option is set to true, the mixed content fixer will fire on the init hook instead of the template_redirect hook. Only use this option when you experience problems with the mixed content fixer.', 'really-simple-ssl' ), ], 'disabled' => false, 'required' => false, 'default' => false, 'tooltip' => __( "Only enable if the default mixed content fixer does not fix your front-end mixed content.", 'really-simple-ssl' ), 'react_conditions' => [ 'relation' => 'AND', [ 'mixed_content_fixer' => 1, ] ], ], [ 'id' => 'admin_mixed_content_fixer', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __( "Mixed content fixer - back-end", "really-simple-ssl" ), 'tooltip' => __( "Only enable this if you experience mixed content in the admin environment of your WordPress website.", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'send_notifications_email', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __( "Notifications by email", 'really-simple-ssl' ), 'tooltip' => __( "Get notified of important changes, updates and settings. Recommended when using security features.", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'notifications_email_address', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'email', 'label' => __( "Email address", 'really-simple-ssl' ), 'disabled' => false, 'default' => get_bloginfo('admin_email'), 'condition_action' => 'hide', 'react_conditions' => [ 'relation' => 'AND', [ 'send_notifications_email' => 1, ] ], ], [ 'id' => 'send-test-email', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'button', 'action' => 'send_test_mail', 'button_text' => __( "Send", "really-simple-ssl" ), 'label' => __( "Send test notification by email", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'condition_action' => 'hide', 'react_conditions' => [ 'relation' => 'AND', [ 'send_notifications_email' => 1, ] ], ], [ 'id' => 'dismiss_all_notices', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __( "Dismiss all notifications", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'download-system-status', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'button', 'url' => trailingslashit( rsssl_url ) . 'system-status.php?download', 'button_text' => __( "Download", "really-simple-ssl" ), 'label' => __( "System status", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'delete_data_on_uninstall', 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __( "Delete all data on plugin deletion", 'really-simple-ssl' ), 'default' => false, ], [ 'id' => 'do_not_edit_htaccess', //field is removed if not enabled 'menu_id' => 'general', 'group_id' => 'general', 'type' => 'checkbox', 'label' => __( "Stop editing the .htaccess file", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, //on multisite this setting can only be set networkwide 'networkwide_required' => true, 'server_conditions' => [ 'relation' => 'AND', [ 'RSSSL()->server->uses_htaccess()' => true, ] ], ], [ 'id' => 'premium_support', 'menu_id' => 'general', 'group_id' => 'support', 'type' => 'support', 'label' => __( "Premium support", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'disable_anyone_can_register', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Disable \"anyone can register\"", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'help' => [ 'label' => 'default', 'url' => 'https://really-simple-ssl.com/definition/what-are-hardening-features/?mtm_campaign=definition&mtm_source=free', 'title' => __( "About Hardening", 'really-simple-ssl' ), 'text' => __( 'Hardening features limit the possibility of potential weaknesses and vulnerabilities which can be misused.', 'really-simple-ssl' ), ], 'recommended' => true, ], [ 'id' => 'disable_file_editing', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Disable the built-in file editors", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'block_code_execution_uploads', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Prevent code execution in the public 'Uploads' folder", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'hide_wordpress_version', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Hide your WordPress version", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'disable_login_feedback', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'tooltip' => __( "By default, WordPress shows if a username or email address exists when a login fails. This will change it to generic feedback.", 'really-simple-ssl' ), 'label' => __( "Prevent login feedback", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'disable_indexing', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Disable directory browsing", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'disable_user_enumeration', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Disable user enumeration", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'recommended' => true, ], [ 'id' => 'rename_admin_user', 'menu_id' => 'hardening', 'warning' => true, 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Block the username 'admin'", 'really-simple-ssl' ), 'email' => [ 'title' => __( "Settings update: Username 'admin' renamed", 'really-simple-ssl' ), 'message' => sprintf(__( "As a security precaution, the username ‘admin’ has been changed on %s. From now on, you can login with '%s' or an email address.", 'really-simple-ssl' ), '{site_url}','{username}'), 'url' => 'https://really-simple-ssl.com/instructions/locked-our-after-renaming-the-admin-username/', 'condition' => 'rsssl_username_admin_changed', ], 'tooltip' => __( "If the username 'admin' currently exists, you can rename it here. Please note that you can no longer use this username, and should use the new username or an email address", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'new_admin_user_login', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'text', 'label' => __( "Choose new username to replace 'admin'", 'really-simple-ssl' ), 'disabled' => false, 'default' => '', 'required' => true, 'condition_action' => 'hide', 'react_conditions' => [ 'relation' => 'AND', [ 'rename_admin_user' => 1, ] ], 'server_conditions' => [ 'relation' => 'AND', [ 'rsssl_has_admin_user()' => true, ] ], ], [ 'id' => 'disable_xmlrpc', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Disable XML-RPC", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'block_display_is_login', 'menu_id' => 'hardening', 'group_id' => 'hardening_basic', 'type' => 'checkbox', 'label' => __( "Block user registrations when login and display name are the same", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'disable_http_methods', 'menu_id' => 'hardening', 'group_id' => 'hardening_extended', 'type' => 'checkbox', 'tooltip' => __( "This will limit or fully disable HTTP requests that are not needed, but could be used with malicious intent.", 'really-simple-ssl' ), 'label' => __( "Disable HTTP methods", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'rename_db_prefix', 'menu_id' => 'hardening', 'group_id' => 'hardening_extended', 'email' => [ 'title' => __( "Settings update: Database prefix changed", 'really-simple-ssl' ), 'message' => __( "Security through obscurity. Your site is no longer using the default wp_ prefix for database tables. The process has been designed to only complete and replace the tables after all wp_ tables are successfully renamed. In the unlikely event that this does lead to database issues on your site, please navigate to our troubleshooting article.", 'really-simple-ssl' ), 'url' => 'https://really-simple-ssl.com/instructions/database-issues-after-changing-prefix/', ], 'tooltip' => __( "This will permanently change your database prefixes and you can NOT rollback this feature. Please make sure you have a back-up.", 'really-simple-ssl' ), 'warning' => __( "This will permanently change your database prefixes and you can NOT rollback this feature. Please make sure you have a back-up.", 'really-simple-ssl' ), 'type' => 'checkbox', 'label' => __( "Rename and randomize your database prefix", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'change_debug_log_location', 'group_id' => 'hardening_extended', 'menu_id' => 'hardening', 'type' => 'checkbox', 'tooltip' => __( "A debug.log is publicly accessibile and has a standard location. This will change the location to a randomly named folder in /wp-content/", 'really-simple-ssl' ), 'email' => [ 'title' => __( "Settings update: Debug.log file relocated", 'really-simple-ssl' ), 'message' => __( "From now on, the debug.log won’t be publicly accessible whenever wp-debugging is enabled. The debug log will be stored in a randomly named folder in /wp-content/. This prevents possible leakage of sensitive debugging information.", 'really-simple-ssl' ), 'url' => 'https://really-simple-ssl.com/instructions/debug-log-has-been-relocated-but-where/', ], 'label' => __( "Change debug.log file location", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'disable_application_passwords', 'menu_id' => 'hardening', 'group_id' => 'hardening_extended', 'type' => 'checkbox', 'label' => __( "Disable application passwords", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'change_login_url_enabled', 'menu_id' => 'hardening', 'group_id' => 'hardening_extended', 'warning' => true, 'type' => 'checkbox', 'tooltip' => __( "Allows you to enter a custom login URL.", 'really-simple-ssl' ), 'label' => __( "Enable Custom login URL", 'really-simple-ssl' ), 'email' => [ 'title' => __( "You have changed your login URL", 'really-simple-ssl' ), 'message' => __( "Your login URL has changed to {login_url} to prevent common bot attacks on standard login URLs. Learn more about this feature, common questions and measures to prevent any issues.", 'really-simple-ssl' ), 'url' => 'https://really-simple-ssl.com/instructions/login-url-changed', ], 'disabled' => false, 'default' => false, ], [ 'id' => 'change_login_url', 'menu_id' => 'hardening', 'group_id' => 'hardening_extended', 'type' => 'text', 'tooltip' => __( "Enter a custom login URL. This allows you to log in via this custom URL instead of /wp-admin or /wp-login.php", 'really-simple-ssl' ), 'placeholder' => __( "Example: If you want to change your login page from /wp-admin/ to /control/ answer: control", 'really-simple-ssl' ), 'label' => __( "Custom login URL", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'condition_action' => 'hide', 'react_conditions' => [ 'relation' => 'AND', [ 'change_login_url_enabled' => 1, ] ], ], [ 'id' => 'change_login_url_failure_url', 'menu_id' => 'hardening', 'group_id' => 'hardening_extended', 'type' => 'postdropdown', 'tooltip' => __( "Users trying to enter via /wp-admin or /wp-login.php will be redirected to this URL.", 'really-simple-ssl' ), 'label' => '', 'disabled' => false, 'default' => '404_default', 'condition_action' => 'hide', 'react_conditions' => [ 'relation' => 'AND', [ 'change_login_url_enabled' => 1, ] ], ], [ 'id' => 'xmlrpc_status', 'menu_id' => 'hardening', 'group_id' => 'hardening_xml', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'xmlrpc_status_lm_enabled_once', 'menu_id' => 'hardening', 'group_id' => 'hardening_xml', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'xmlrpc_allow_list', 'control_field' => 'xmlrpc_status', 'menu_id' => 'hardening', 'group_id' => 'hardening_xml', 'type' => 'learningmode', 'label' => __( "XML-RPC", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'disable_xmlrpc' => false, ] ], 'columns' => [ [ 'name' => __( 'Method', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'method', ], [ 'name' => __( 'Login status', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'login_statusControl', ], [ 'name' => __( 'Count', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'count', ], [ 'name' => __( 'Action', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'statusControl', ], [ 'name' => __( 'Delete', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'deleteControl', ], ], ], /* Vulnerability basic Section */ [ 'id' => 'enable_vulnerability_scanner', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_basic', 'type' => 'checkbox', 'label' => __('Vulnerability detection', 'really-simple-ssl'), 'tooltip' => __( "This feature depends on multiple standard background processes. If a process fails or is unavailable on your system, detection might not work. We run frequent tests for this purpose. We will notify you accordingly if there are any issues.", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'warning' => true, 'help' => [ 'label' => 'default', 'url' => 'https://really-simple-ssl.com/instructions/about-vulnerabilities/', 'title' => __( "About Vulnerabilities", 'really-simple-ssl' ), 'text' => __( 'Really Simple SSL collects information about plugins, themes, and core vulnerabilities from our database powered by WPVulnerability. Anonymized data about these vulnerable components will be sent to Really Simple SSL for statistical analysis to improve open-source contributions. For more information, please read our privacy statement.', 'really-simple-ssl' ), ], ], [ 'id' => 'vulnerabilities_intro_shown', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_basic', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'enable_feedback_in_plugin', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_basic', 'tooltip' => __( "If there's a vulnerability, you will also get feedback on the themes and plugin overview.", 'really-simple-ssl' ), 'warning' => false, 'type' => 'checkbox', 'label' => __('Feedback in plugin overview', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], ], /* Vulnerability advanced Section */ [ 'id' => 'vulnerability_notification_dashboard', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_notifications', 'type' => 'select', 'options' => [ '*' => __('None', 'really-simple-ssl'), 'l' => __('Low-risk (default)', 'really-simple-ssl'), 'm' => __('Medium-risk', 'really-simple-ssl'), 'h' => __('High-risk', 'really-simple-ssl'), 'c' => __('Critical', 'really-simple-ssl'), ], 'label' => __('Really Simple SSL dashboard', 'really-simple-ssl'), 'disabled' => false, 'default' => 'l', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], ], [ 'id' => 'vulnerability_notification_sitewide', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_notifications', 'type' => 'select', 'options' => [ '*' => __('None', 'really-simple-ssl'), 'l' => __('Low-risk ', 'really-simple-ssl'), 'm' => __('Medium-risk', 'really-simple-ssl'), 'h' => __('High-risk (default)', 'really-simple-ssl'), 'c' => __('Critical', 'really-simple-ssl'), ], 'label' => __('Site-wide, admin notification', 'really-simple-ssl'), 'disabled' => false, 'default' => 'h', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], ], [ 'id' => 'vulnerability_notification_email_admin', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_notifications', 'type' => 'select', 'options' => [ '*' => __('None', 'really-simple-ssl'), 'l' => __('Low-risk', 'really-simple-ssl'), 'm' => __('Medium-risk', 'really-simple-ssl'), 'h' => __('High-risk', 'really-simple-ssl'), 'c' => __('Critical (default)', 'really-simple-ssl'), ], 'label' => __('Email', 'really-simple-ssl'), 'tooltip' => __( "This will send emails about vulnerabilities directly from your server. Make sure you can receive emails by the testing a preview below. If this feature is disabled, please enable notifications under general settings.", 'really-simple-ssl' ), 'warning' => true, 'disabled' => false, 'default' => 'c', 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ], [ 'send_notifications_email' => 1, ] ], ], [ 'id' => 'vulnerabilities_test', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_notifications', 'type' => 'notificationtester', 'action' => 'test_vulnerability_notification', 'label' => __('Test notifications', 'really-simple-ssl'), 'tooltip' => __('Test notifications can be used to test email delivery and shows how vulnerabilities will be reported on your WordPress installation.', 'really-simple-ssl'), 'disabled' => false, 'button_text' => __( "Test notifications", "really-simple-ssl" ), 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, 'send_notifications_email' => 1, ] ], ], [ 'id' => 'vulnerabilities-overview', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_overview', 'type' => 'vulnerabilitiestable', 'label' => __('Vulnerabilities Overview', 'really-simple-ssl'), 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => 1, ] ], 'columns' => [ [ 'id' => 'component', 'name' => __( 'Component', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'Name', 'width' => '20%', ], [ 'id' => 'risk', 'name' => __( 'Risk', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'risk_name', ], [ 'id' => 'date', 'name' => __( 'Date', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'date', ], [ 'id' => 'action', 'name' => __( 'Action', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'vulnerability_action', ],[] ] ], [ 'id' => 'vulnerabilities_measures', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_measures', 'type' => 'riskcomponent', 'options' => [ '*' => __('None', 'really-simple-ssl'), 'l' => __('Low-risk', 'really-simple-ssl'), 'm' => __('Medium-risk', 'really-simple-ssl'), 'h' => __('High-risk', 'really-simple-ssl'), 'c' => __('Critical', 'really-simple-ssl'), ], 'react_conditions' => [ 'relation' => 'AND', [ 'measures_enabled' => true, ] ], 'disabled' => false, 'default' => false, 'columns' => [ [ 'name' => __( 'Action', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'name', 'width' => '15%', ], [ 'name' => __( 'Risk', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'riskSelection', 'width' => '20%', ], [ 'name' => __( 'Description', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'description', 'type' => 'text', 'width' => '70%', 'minWidth' => '300px', ], [] ], ], [ 'id' => 'measures_enabled', 'menu_id' => 'vulnerabilities', 'group_id' => 'vulnerabilities_measures', 'type' => 'checkbox', 'label' => __("I have read and understood the risks to intervene with these measures.","really-simple-ssl"), 'comment' => '<a href="https://really-simple-ssl.com/instructions/about-vulnerabilities#measures" target="_blank">'.__("Read more", "really-simple-ssl") .'</a>', 'disabled' => false, 'default' => false, 'react_conditions' => [ 'relation' => 'AND', [ 'enable_vulnerability_scanner' => true, ] ], ], /* section x_xss_protection */ [ 'id' => 'x_xss_protection', 'menu_id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'type' => 'select', 'label' => __( "X-XSS-Protection", "really-simple-ssl-pro" ), 'options' => [ 'disabled' => __("disabled", "really-simple-ssl" ), 'zero' => "0 ".__("(recommended)", "really-simple-ssl" ), 'one' => "1", 'mode_block' => "1; mode=block", ], 'disabled' => false, 'default' => 'zero', 'help' => [ 'label' => 'default', 'url' => 'https://really-simple-ssl.com/definition/about-recommended-security-headers/?mtm_campaign=definition&mtm_source=free', 'title' => __( "About Recommended Security Headers", 'really-simple-ssl' ), 'text' => __( 'These security headers are the fundamental security measures to protect your website visitors while visiting your website.', 'really-simple-ssl' ), ], ], [ 'id' => 'x_content_type_options', 'menu_id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'type' => 'checkbox', 'label' => __( "X-Content-Type options", "really-simple-ssl-pro" ), 'disabled' => false, 'default' => false, ], [ 'id' => 'x_frame_options', 'menu_id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'type' => 'select', 'options' => [ 'disabled' => __( "Off", "really-simple-ssl" ), 'DENY' => 'DENY', 'SAMEORIGIN' => 'SAMEORIGIN', ], 'label' => __( "X-Frame options", "really-simple-ssl-pro" ), 'disabled' => false, 'default' => false, ], [ 'id' => 'referrer_policy', 'menu_id' => 'recommended_security_headers', 'group_id' => 'recommended_security_headers', 'type' => 'select', 'options' => [ 'disabled' => __( "Off", "really-simple-ssl" ), 'strict-origin-when-cross-origin' => 'strict-origin-when-cross-origin'.' ('.__("recommended","really-simple-ssl").')', 'no-referrer' => 'no-referrer', 'origin' => 'origin', 'no-referrer-when-downgrade' => 'no-referrer-when-downgrade', 'unsafe-url' => 'unsafe-url', 'origin-when-cross-origin' => 'origin-when-cross-origin', 'strict-origin' => 'strict-origin', 'same-origin' => 'same-origin', ], 'label' => __( "Referrer Policy", "really-simple-ssl-pro" ), 'disabled' => false, 'default' => 'strict-origin-when-cross-origin', ], [ 'id' => 'hsts', 'menu_id' => 'hsts', 'group_id' => 'hsts', 'type' => 'checkbox', 'label' => __( "HTTP Strict Transport Security", "really-simple-ssl-pro" ), 'disabled' => false, 'default' => false, 'help' => [ 'label' => 'default', 'url' => 'https://really-simple-ssl.com/definition/what-is-hsts/?mtm_campaign=definition&mtm_source=free', 'title' => __( "About HTTP Strict Transport Security", 'really-simple-ssl' ), 'text' => __( 'Leveraging your SSL certificate with HSTS is a staple for every website. Force your website over SSL, mitigating risks of malicious counterfeit websites in your name.', 'really-simple-ssl' ), ], 'react_conditions' => [ 'relation' => 'AND', [ 'ssl_enabled' => '1', ] ], ], [ 'id' => 'hsts_preload', 'menu_id' => 'hsts', 'group_id' => 'hsts', 'type' => 'checkbox', 'label' => __( "Include preload", "really-simple-ssl-pro" ), 'comment' => sprintf(__( "After enabling this feature, you can submit your site to %shstspreload.org%s", "really-simple-ssl-pro" ),'<a target="_blank" href="https://hstspreload.org?domain='.site_url().'">',"</a>"), 'react_conditions' => [ 'relation' => 'AND', [ 'hsts' => true, ] ], 'configure_on_activation' => [ 'condition' => 1, [ 'hsts_subdomains' => true, 'hsts_max_age' => 63072000, ] ], 'disabled' => false, 'default' => false, ], [ 'id' => 'hsts_subdomains', 'menu_id' => 'hsts', 'group_id' => 'hsts', 'type' => 'checkbox', 'label' => __( "Include subdomains", "really-simple-ssl-pro" ), 'react_conditions' => [ 'relation' => 'AND', [ 'hsts' => true, ] ], 'disabled' => false, 'default' => false, ], [ 'id' => 'hsts_max_age', 'menu_id' => 'hsts', 'group_id' => 'hsts', 'type' => 'select', 'options' => [ '86400' => __( 'One day (for testing only)', 'really-simple-ssl' ), '31536000' => __( 'One year', 'really-simple-ssl' ), '63072000' => __( 'Two years (required for preload)', 'really-simple-ssl' ), ], 'label' => __( "Choose the max-age for HSTS", "really-simple-ssl-pro" ), 'react_conditions' => [ 'relation' => 'AND', [ 'hsts' => true, ] ], 'disabled' => false, 'default' => '63072000', ], [ 'id' => 'cross_origin_opener_policy', 'menu_id' => 'cross_origin_policy', 'group_id' => 'cross_origin_policy', 'type' => 'select', 'options' => [ 'disabled' => __( 'Off', 'really-simple-ssl' ), 'unsafe-none' => 'unsafe-none', 'same-origin-allow-popups' => 'same-origin-allow-popups', 'same-origin' => 'same-origin', ], 'help' => [ 'label' => 'default', 'url' => 'https://really-simple-ssl.com/definition/what-is-a-cross-origin-policy/?mtm_campaign=definition&mtm_source=free', 'title' => __( "About Cross Origin Policies", 'really-simple-ssl' ), 'text' => __( 'One of the most powerful features, and therefore the most complex are the Cross-Origin headers that can isolate your website so any data leaks are minimized.', 'really-simple-ssl' ), ], 'label' => __( "Cross Origin Opener Policy", "really-simple-ssl-pro" ), 'disabled' => false, 'default' => 'disabled', ], [ 'id' => 'cross_origin_resource_policy', 'menu_id' => 'cross_origin_policy', 'group_id' => 'cross_origin_policy', 'type' => 'select', 'options' => [ 'disabled' => __( 'Off', 'really-simple-ssl' ), 'same-site' => 'same-site', 'same-origin' => 'same-origin', 'cross-origin' => 'cross-origin', ], 'label' => __( "Cross Origin Resource Policy", "really-simple-ssl-pro" ), 'disabled' => false, 'default' => 'disabled', ], [ 'id' => 'cross_origin_embedder_policy', 'menu_id' => 'cross_origin_policy', 'group_id' => 'cross_origin_policy', 'type' => 'select', 'options' => [ 'disabled' => __( 'Off', 'really-simple-ssl' ), 'require-corp' => 'require-corp', 'same-origin' => 'same-origin', 'unsafe-none' => 'unsafe-none', ], 'label' => __( "Cross Origin Embedder Policy", "really-simple-ssl-pro" ), 'disabled' => false, 'default' => 'disabled', ], [ 'id' => 'mixedcontentscan', 'menu_id' => 'mixed_content_scan', 'group_id' => 'mixedcontentscan', 'type' => 'mixedcontentscan', 'label' => __( "Mixed content scan", "really-simple-ssl-pro" ), 'help' => [ 'label' => 'default', 'url' => 'https://really-simple-ssl.com/definition/what-is-mixed-content/?mtm_campaign=definition&mtm_source=free', 'title' => __( "About the Mixed Content Scan", 'really-simple-ssl' ), 'text' => __( 'The extensive mixed content scan will list all current and future issues and provide a fix, or instructions to fix manually.', 'really-simple-ssl' ), ], 'columns' => [ [ 'name' => __( 'Type', 'really-simple-ssl' ), 'sortable' => true, 'column' => 'warningControl', 'grow' => 0, ], [ 'name' => __( 'Description', 'really-simple-ssl' ), 'sortable' => true, 'column' => 'description', 'grow' => 10, ], [ 'name' => __( 'Location', 'really-simple-ssl' ), 'sortable' => true, 'column' => 'locationControl', 'grow' => 4, ], [ 'name' => __( 'Details', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'detailsControl', 'grow' => 0, ], [ 'name' => __( 'Fix', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'fixControl', 'grow' => 0, 'right' => true, ], ], 'disabled' => false, 'default' => false, ], [ 'id' => 'permissions_policy', 'menu_id' => 'permissions_policy', 'group_id' => 'permissions_policy', 'type' => 'permissionspolicy', 'options' => [ '*' => __( "Allow", "really-simple-ssl" ), '()' => __( "Disable", "really-simple-ssl" ), 'self' => __( "Self (Default)", "really-simple-ssl" ) ], 'label' => __( "Permissions Policy", 'really-simple-ssl' ), 'disabled' => false, 'help' => [ 'label' => 'default', 'url' => 'https://really-simple-ssl.com/definition/what-is-a-permissions-policy/?mtm_campaign=definition&mtm_source=free', 'title' => __( "About the Permission Policy", 'really-simple-ssl' ), 'text' => __( 'Browser features are plentiful, but most are not needed on your website.', 'really-simple-ssl' ).' '.__('They might be misused if you don’t actively tell the browser to disable these features.', 'really-simple-ssl' ), ], 'columns' => [ [ 'name' => __( 'Feature', 'really-simple-ssl' ), 'sortable' => true, 'column' => 'title', ], [ 'name' => __( 'Options', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'valueControl', ], ], 'default' => [ [ 'id' => 'accelerometer', 'title' => 'Accelerometer', 'value' => 'self', 'status' => true, ], [ 'id' => 'autoplay', 'title' => 'Autoplay', 'value' => 'self', 'status' => false, ], [ 'id' => 'camera', 'title' => 'Camera', 'value' => 'self', 'status' => false, ], [ 'id' => 'encrypted-media', 'title' => 'Encrypted Media', 'value' => 'self', 'status' => false, ], [ 'id' => 'fullscreen', 'title' => 'Fullscreen', 'value' => 'self', 'status' => false, ], [ 'id' => 'geolocation', 'title' => 'Geolocation', 'value' => '*', 'status' => false, ], [ 'id' => 'microphone', 'title' => 'Microphone', 'value' => 'self', 'status' => false, ], [ 'id' => 'midi', 'title' => 'Midi', 'value' => 'self', 'status' => false, ], [ 'id' => 'payment', 'title' => 'Payment', 'value' => 'self', 'status' => false, ], [ 'id' => 'display-capture', 'title' => 'Display Capture', 'value' => 'self', 'status' => false, ], ], ], [ 'id' => 'enable_permissions_policy', 'menu_id' => 'permissions_policy', 'group_id' => 'permissions_policy', 'type' => 'hidden', 'label' => __( "Enable Permissions Policy", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, ], [ 'id' => 'upgrade_insecure_requests', 'menu_id' => 'content_security_policy', 'group_id' => 'upgrade_insecure_requests', 'type' => 'checkbox', 'label' => __( "Serve encrypted and authenticated responses", 'really-simple-ssl' ), 'disabled' => false, 'default' => false, 'help' => [ 'label' => 'default', 'url' => 'https://really-simple-ssl.com/definition/what-is-a-content-security-policy/?mtm_campaign=definition&mtm_source=free', 'title' => __( "About the Content Security Policy", 'really-simple-ssl' ), 'text' => __( 'The content security policy has many options, so we always recommend starting in ‘learning mode’ to see what files and scripts are loaded.', 'really-simple-ssl' ), ], 'react_conditions' => [ 'relation' => 'AND', [ 'ssl_enabled' => '1', ] ], ], [ 'id' => 'csp_frame_ancestors', 'menu_id' => 'content_security_policy', 'group_id' => 'frame_ancestors', 'type' => 'select', 'options' => [ 'disabled' => __( "Disable (Default)", "really-simple-ssl" ), 'none' => "None", 'self' => "Self", ], 'label' => __( "Allow your domain to be embedded", "really-simple-ssl" ), 'disabled' => false, 'default' => 'disabled', ], [ 'id' => 'csp_frame_ancestors_urls', 'menu_id' => 'content_security_policy', 'group_id' => 'frame_ancestors', 'type' => 'textarea', 'label' => __( "Add additional domains which can embed your website, if needed. Comma seperated.", "really-simple-ssl" ), 'disabled' => false, 'default' => false, ], [ 'id' => 'csp_status', 'menu_id' => 'content_security_policy', 'group_id' => 'content_security_policy', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'csp_status_lm_enabled_once', 'menu_id' => 'content_security_policy', 'group_id' => 'content_security_policy', 'type' => 'hidden', 'label' => '', 'disabled' => false, 'default' => false, ], [ 'id' => 'content_security_policy', 'control_field' => 'csp_status', 'menu_id' => 'content_security_policy', 'group_id' => 'content_security_policy', 'type' => 'learningmode', 'label' => "Content Security Policy", 'disabled' => false, 'default' => false, 'columns' => [ [ 'name' => __( 'Location', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'documenturi', ], [ 'name' => __( 'Directive', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'violateddirective', ], [ 'name' => __( 'Source', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'blockeduri', ], [ 'name' => __( 'Action', 'really-simple-ssl' ), 'sortable' => false, 'column' => 'statusControl', ], [ 'name' => '',//__('Delete', 'really-simple-ssl'), 'sortable' => false, 'column' => 'deleteControl', ], ], ], ]; $fields = apply_filters( 'rsssl_fields', $fields ); if ( is_multisite() && rsssl_is_networkwide_active() ) { $stored_options = get_site_option( 'rsssl_options', [] ); } else { $stored_options = get_option( 'rsssl_options', [] ); } foreach ( $fields as $key => $field ) { $field = wp_parse_args( $field, [ 'default' => '', 'id' => false, 'visible' => true, 'disabled' => false, 'recommended' => false ] ); //handle server side conditions //but not if outside our settings pages if ( rsssl_is_logged_in_rest() && isset( $field['server_conditions'] ) ) { if ( ! rsssl_conditions_apply( $field['server_conditions'] ) ) { unset( $fields[ $key ] ); continue; } } if ( $load_values ) { $value = rsssl_sanitize_field( rsssl_get_option( $field['id'], $field['default'] ), $field['type'], $field['id'] ); $field['never_saved'] = !array_key_exists( $field['id'], $stored_options ); $field['value'] = apply_filters( 'rsssl_field_value_' . $field['id'], $value, $field ); $fields[ $key ] = apply_filters( 'rsssl_field', $field, $field['id'] ); } } $fields = apply_filters( 'rsssl_fields_values', $fields ); return array_values( $fields ); } config/mails.php 0000666 00000000233 15165313625 0007640 0 ustar 00 <?php defined('ABSPATH') or die(); /** * @param $fields * * @return mixed */ function rsssl_mails(){ return apply_filters('rsssl_mails', [ ]); } config/menu.php 0000666 00000033635 15165313625 0007513 0 ustar 00 <?php defined( 'ABSPATH' ) or die(); function rsssl_menu() { if ( ! rsssl_user_can_manage() ) { return []; } $menu_items = [ [ "id" => "dashboard", "title" => __( "Dashboard", 'really-simple-ssl' ), 'default_hidden' => false, 'menu_items' => [], ], [ "id" => "settings", "title" => __( "Settings", 'really-simple-ssl' ), 'default_hidden' => false, 'menu_items' => [ [ 'id' => 'general', 'group_id' => 'general', 'title' => __( 'General', 'really-simple-ssl' ), 'helpLink' => 'https://really-simple-ssl.com/instructions/about-our-general-settings/?mtm_campaign=instructions&mtm_source=free', 'groups' => [ [ 'id' => 'general', 'title' => __( 'General', 'really-simple-ssl' ), 'helpLink' => 'https://really-simple-ssl.com/instructions/about-our-general-settings/?mtm_campaign=instructions&mtm_source=free', ], [ 'id' => 'support', 'title' => __('Premium Support', 'really-simple-ssl'), 'intro' => __('The following information is attached when you send this form: license key, scan results, your domain, .htaccess file, debug log and a list of active plugins.', 'really-simple-ssl'), 'premium' => true, 'premium_text' => __("Get Premium Support with %sReally Simple SSL Pro%s", 'really-simple-ssl'), 'helpLink' => 'https://really-simple-ssl.com/instructions/debugging/?mtm_campaign=instructions&mtm_source=free', 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=premiumsupport&mtm_source=free&mtm_content=upgrade', 'helpLink_text' => __('Debugging with Really Simple SSL',"really-simple-ssl"), ], ], ], [ 'id' => 'hardening', 'title' => __( 'Hardening', 'really-simple-ssl' ), 'featured' => false, 'groups' => [ [ 'id' => 'hardening_basic', 'helpLink' => 'https://really-simple-ssl.com/instructions/about-hardening-features/?mtm_campaign=instructions&mtm_source=free', 'title' => __( 'Hardening', 'really-simple-ssl' ), ], [ 'id' => 'hardening_extended', 'premium' => true, 'helpLink' => 'https://really-simple-ssl.com/instructions/about-hardening-features#advanced/?mtm_campaign=instructions&mtm_source=free', 'upgrade' => 'https://really-simple-ssl.com/instructions/about-hardening-features#advanced/?mtm_campaign=upgrade&mtm_source=free', 'title' => __( 'Advanced Hardening', 'really-simple-ssl' ), 'premium_text' => __( "Get Advanced Hardening with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), ], [ 'id' => 'hardening_xml', 'premium' => true, 'helpLink' => 'https://really-simple-ssl.com/instructions/about-hardening-features#xml-rpc?mtm_campaign=instructions&mtm_source=free', 'upgrade' => 'https://really-simple-ssl.com/instructions/about-hardening-features#xml-rpc?mtm_campaign=upgrade&mtm_source=free', 'title' => __( 'XML-RPC', 'really-simple-ssl' ), 'premium_text' => __( "Get XML-RPC with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), ], ], ], [ 'id' => 'vulnerabilities', 'title' => __( 'Vulnerabilities', 'really-simple-ssl' ), 'featured' => true,//TODO: change this after beta 'groups' => [ [ 'id' => 'vulnerabilities_basic', 'helpLink' => 'https://really-simple-ssl.com/instructions/about-vulnerabilities/', 'title' => __( 'Vulnerabilities', 'really-simple-ssl' ), 'intro' => __( 'Here you can configure vulnerability detection, notifications and measures. To learn more about the features displayed, please use the instructions linked in the top-right corner.', 'really-simple-ssl' ), ], [ 'id' => 'vulnerabilities_notifications', 'helpLink' => 'https://really-simple-ssl.com/instructions/about-vulnerabilities#notifications', 'title' => __( 'Notifications', 'really-simple-ssl' ), 'intro' => __( 'These notifications are set to the minimum risk level that triggers a notification. For example, the default site-wide notification triggers on high-risk and critical vulnerabilities.', 'really-simple-ssl' ), ], [ 'id' => 'vulnerabilities_overview', 'helpLink' => 'https://really-simple-ssl.com/instructions/about-vulnerabilities#components', 'title' => __( 'Overview', 'really-simple-ssl' ), 'intro' => __( 'This is the vulnerability overview. Here you will find current known vulnerabilities on your system. You can find more information and helpful, actionable insights for every vulnerability under details.', 'really-simple-ssl' ), ], [ 'id' => 'vulnerabilities_measures', 'premium' => true, 'helpLink' => 'https://really-simple-ssl.com/instructions/about-vulnerabilities#measures', 'title' => __( 'Measures', 'really-simple-ssl' ), 'intro' => __( 'You can choose to automate the most common actions for a vulnerability. Each action is set to a minimum risk level, similar to the notifications. Please read the instructions to learn more about the process.', 'really-simple-ssl' ), 'premium_text' => __( "Improve Security with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), ], ], ], [ 'id' => 'mixed_content_scan', 'title' => __( 'Mixed Content Scan', 'really-simple-ssl' ), 'premium' => true, 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=mixedcontent&mtm_source=free&mtm_content=upgrade', 'helpLink' => 'https://really-simple-ssl.com/pro/?mtm_campaign=mixedcontent&mtm_source=free&mtm_content=instructions', 'premium_text' => __( "Get the Mixed Content Scan with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), 'groups' => [ [ 'id' => 'mixedcontentscan', 'title' => __( 'Mixed Content Scan', 'really-simple-ssl' ), 'helpLink' => 'https://really-simple-ssl.com/pro/?mtm_campaign=mixedcontent&mtm_source=free&mtm_content=upgrade', 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=mixedcontent&mtm_source=free&mtm_content=upgrade', 'premium' => true, 'premium_text' => __( "Get the Mixed Content Scan with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), ], ], ], [ 'id' => 'recommended_security_headers', 'title' => __( 'Recommended Security Headers', 'really-simple-ssl' ), 'premium' => true, 'groups' => [ [ 'id' => 'recommended_security_headers', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( "Get Recommended Security Headers with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=recommendedheaders&mtm_source=free&mtm_content=upgrade', 'title' => __( 'Recommended Security Headers', 'really-simple-ssl' ), 'helpLink' => 'https://really-simple-ssl.com/instructions/about-recommended-security-headers/?mtm_campaign=instructions&mtm_source=free', ], ], ], [ 'id' => 'hsts', 'title' => 'HTTP Strict Transport Security', 'premium' => true, 'groups' => [ [ 'id' => 'hsts', 'premium' => true, 'networkwide_required' => true, 'premium_text' => __( "Get HTTP Strict Transport Security with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=hsts&mtm_source=free&mtm_content=upgrade', 'title' => __( 'HTTP Strict Transport Security', 'really-simple-ssl' ), 'helpLink' => 'https://really-simple-ssl.com/instructions/about-hsts/?mtm_campaign=instructions&mtm_source=free', ], ], ], [ 'id' => 'permissions_policy', 'title' => 'Permissions Policy', 'premium' => true, 'groups' => [ [ 'id' => 'permissions_policy', 'premium_text' => __( "Get the Permissions Policy with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=permissionspolicy&mtm_source=free&mtm_content=upgrade', 'helpLink' => 'https://really-simple-ssl.com/instructions/about-permissions-policy/?mtm_campaign=instructions&mtm_source=free', 'networkwide_required' => true, 'premium' => true, 'title' => 'Permissions Policy', ], ], ], [ 'id' => 'content_security_policy', 'title' => 'Content Security Policy', 'premium' => true, 'groups' => [ [ 'id' => 'upgrade_insecure_requests', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( "Get Upgrade Insecure Requests with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=upgradeinsecurerequests&mtm_source=free&mtm_content=upgrade', 'helpLink' => 'https://really-simple-ssl.com/instructions/upgrade-insecure-requests/?mtm_campaign=instructions&mtm_source=free', 'title' => 'Upgrade Insecure Requests', ], [ 'id' => 'frame_ancestors', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( "Get Frame Ancestors with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=frameancestors&mtm_source=free&mtm_content=upgrade', 'helpLink' => 'https://really-simple-ssl.com/instructions/frame-ancestors/?mtm_campaign=instructions&mtm_source=free', 'title' => 'Frame Ancestors', ], [ 'id' => 'content_security_policy', 'networkwide_required' => true, 'helpLink' => 'https://really-simple-ssl.com/instructions/source-directives/', 'premium' => true, 'premium_text' => __( "Get Source Directives with %sReally Simple SSL Pro%s", 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=csp&mtm_source=free&mtm_content=upgrade', 'title' => 'Source Directives', ] ], ], [ 'id' => 'cross_origin_policy', 'networkwide_required' => true, 'premium' => true, 'premium_text' => __( 'Get Cross Origin Policy Headers with %sReally Simple SSL Pro%s', 'really-simple-ssl' ), 'upgrade' => 'https://really-simple-ssl.com/pro/?mtm_campaign=cops&mtm_source=free&mtm_content=upgrade', 'title' => 'Cross Origin Policy', 'helpLink' => 'https://really-simple-ssl.com/instructions/cross-origin-policies/?mtm_campaign=instructions&mtm_source=free', ], ], ], [ "id" => "letsencrypt", 'default_hidden' => true, "title" => "Let's Encrypt", 'intro' => sprintf( __( 'We have tried to make our Wizard as simple and fast as possible. Although these questions are all necessary, if there’s any way you think we can improve the plugin, please let us %sknow%s!', 'really-simple-ssl' ), '<a target="_blank" href="https://really-simple-ssl.com/contact/?mtm_campaign=instructions&mtm_source=free">', '</a>' ) . sprintf( __( ' Please note that you can always save and finish the wizard later, use our %sdocumentation%s for additional information or log a %ssupport ticket%s if you need our assistance.', 'really-simple-ssl' ), '<a target="_blank" href="https://really-simple-ssl.com/install-ssl-certificate/?mtm_campaign=instructions&mtm_source=free">', '</a>', '<a target="_blank" href="https://wordpress.org/support/plugin/really-simple-ssl/">', '</a>' ), 'menu_items' => [ [ 'id' => 'le-system-status', 'title' => __( 'System Status', 'really-simple-ssl' ), 'intro' => __( 'Letʼs Encrypt is a free, automated and open certificate authority brought to you by the nonprofit Internet Security Research Group (ISRG).', 'really-simple-ssl' ), 'helpLink' => 'https://really-simple-ssl.com/about-lets-encrypt/?mtm_campaign=letsencrypt&mtm_source=free', 'tests_only' => true, ], [ 'id' => 'le-general', 'title' => __( 'General Settings', 'really-simple-ssl' ), ], [ 'id' => 'le-hosting', 'title' => __( 'Hosting', 'really-simple-ssl' ), 'intro' => __( 'Below you will find the instructions for different hosting environments and configurations. If you start the process with the necessary instructions and credentials the next view steps will be done in no time.', 'really-simple-ssl' ), ], [ 'id' => 'le-directories', 'title' => __( 'Directories', 'really-simple-ssl' ), 'tests_only' => true, ], [ 'id' => 'le-dns-verification', 'title' => __( 'DNS verification', 'really-simple-ssl' ), 'tests_only' => true, ], [ 'id' => 'le-generation', 'title' => __( 'Generation', 'really-simple-ssl' ), 'tests_only' => true, ], [ 'id' => 'le-installation', 'title' => __( 'Installation', 'really-simple-ssl' ), 'tests_only' => true, ], [ 'id' => 'le-activate_ssl', 'title' => __( 'Activate', 'really-simple-ssl' ), 'tests_only' => true, ], ], ], ]; return apply_filters( 'rsssl_menu', $menu_items ); } config/disable-fields-filter.php 0000666 00000003474 15165313625 0012677 0 ustar 00 <?php defined('ABSPATH') or die(); /** * @param $fields * * @return mixed */ function rsssl_remove_fields($fields){ $redirect_index = array_search( 'redirect', array_column( $fields, 'id' ), true ); if ( !rsssl_uses_htaccess() ){ unset($fields[$redirect_index]['options']['htaccess']); } else { $fields[$redirect_index]['warning'] = true; $fields[$redirect_index]['tooltip'] = ' '.__('On Apache you can use a .htaccess redirect, which is usually faster, but may cause issues on some configurations. Read the instructions in the sidebar first.', 'really-simple-ssl'); $fields[$redirect_index]['help'] = [ 'label' => 'warning', 'title' => __( "Redirect method", 'really-simple-ssl' ), 'text' => __( 'Enable .htaccess only if you know how to regain access in case of issues.', 'really-simple-ssl' ).' '.__( 'Redirects your site to https with a SEO friendly 301 redirect if it is requested over http.', 'really-simple-ssl' ), 'url' => 'https://really-simple-ssl.com/remove-htaccess-redirect-site-lockout/', ]; // $fields[$redirect_index]['email'] = [ // 'title' => __( ".htaccess redirect", 'really-simple-ssl' ), // 'message' => __( "The .htaccess redirect has been enabled on your site. If the server configuration is non-standard, this might cause issues. Please check if all pages on your site are functioning properly.", 'really-simple-ssl' ), // 'url' => 'https://really-simple-ssl.com/remove-htaccess-redirect-site-lockout/', // ]; } if ( is_multisite() && !rsssl_is_networkwide_active() ){ unset($fields[$redirect_index]['options']['htaccess']); } if ( !rsssl_get_option('do_not_edit_htaccess') ){ $index = array_search( 'do_not_edit_htaccess', array_column( $fields, 'id' ), true ); unset($fields[$index]); } return $fields; } add_filter('rsssl_fields', 'rsssl_remove_fields', 10, 1); config/index.php 0000666 00000000042 15165313625 0007640 0 ustar 00 <?php //You don't belong here. ?> settings.php 0000666 00000075347 15165313625 0007150 0 ustar 00 <?php defined('ABSPATH') or die(); /** * Enqueue Gutenberg block assets for backend editor. * * @since 1.0.0 */ require_once(rsssl_path . 'settings/config/config.php'); require_once(rsssl_path . 'settings/config/menu.php'); require_once(rsssl_path . 'settings/config/disable-fields-filter.php'); /** * Fix for WPML issue where WPML breaks the rest api by adding a language locale in the url * * @param $url * @param $path * @param $blog_id * @param $scheme * * @return string */ function rsssl_fix_rest_url_for_wpml($url, $path, $blog_id, $scheme) { if (strpos($url, 'reallysimplessl/v') === false) { return $url; } $current_language = false; if (function_exists('icl_register_string')) { $current_language = apply_filters('wpml_current_language', null); } if (function_exists('qtranxf_getLanguage')) { $current_language = qtranxf_getLanguage(); } if ($current_language) { if (strpos($url, '/' . $current_language . '/wp-json/')) { $url = str_replace('/' . $current_language . '/wp-json/', '/wp-json/', $url); } } return $url; } add_filter('rest_url', 'rsssl_fix_rest_url_for_wpml', 10, 4); function rsssl_plugin_admin_scripts() { $script_asset_path = __DIR__ . "/build/index.asset.php"; $script_asset = require($script_asset_path); wp_enqueue_script( 'rsssl-settings', plugins_url('build/index.js', __FILE__), $script_asset['dependencies'], $script_asset['version'] ); wp_set_script_translations('rsssl-settings', 'really-simple-ssl'); wp_localize_script( 'rsssl-settings', 'rsssl_settings', apply_filters('rsssl_localize_script', [ 'menu' => rsssl_menu(), 'site_url' => get_rest_url(), 'plugins_url' => admin_url('update-core.php'), 'admin_ajax_url' => add_query_arg( array( 'type' => 'errors', 'action' => 'rsssl_rest_api_fallback' ), admin_url('admin-ajax.php')), 'dashboard_url' => add_query_arg(['page' => 'really-simple-security'], rsssl_admin_url()), 'letsencrypt_url' => rsssl_letsencrypt_wizard_url(), 'le_generated_by_rsssl' => rsssl_generated_by_rsssl(), 'upgrade_link' => is_multisite() ? 'https://really-simple-ssl.com/pro/?mtm_campaign=fallback&mtm_source=free&mtm_content=upgrade' : 'https://really-simple-ssl.com/pro/?mtm_campaign=fallback&mtm_source=free&mtm_content=upgrade', 'plugin_url' => rsssl_url, 'network_link' => network_site_url('plugins.php'), 'pro_plugin_active' => defined('rsssl_pro_version'), 'pro_incompatible' => defined('rsssl_pro_version') && rsssl_incompatible_premium_version(), 'networkwide_active' => !is_multisite() || rsssl_is_networkwide_active(),//true for single sites and network wide activated 'nonce' => wp_create_nonce('wp_rest'),//to authenticate the logged in user 'rsssl_nonce' => wp_create_nonce('rsssl_nonce'), 'wpconfig_fix_required' => RSSSL()->admin->do_wpconfig_loadbalancer_fix() && !RSSSL()->admin->wpconfig_has_fixes(), ]) ); } /** * Add SSL menu * * @return void */ function rsssl_add_option_menu() { if (!rsssl_user_can_manage()) { return; } //hides the settings page the plugin is network activated. The settings can be found on the network settings menu. if (is_multisite() && rsssl_is_networkwide_active()) { return; } $count = RSSSL()->admin->count_plusones(); $update_count = $count > 0 ? "<span class='update-plugins rsssl-update-count'><span class='update-count'>$count</span></span>" : ""; $page_hook_suffix = add_options_page( __("SSL settings", "really-simple-ssl"), __("SSL", "really-simple-ssl") . $update_count, 'manage_security', 'really-simple-security', 'rsssl_settings_page' ); add_action("admin_print_scripts-{$page_hook_suffix}", 'rsssl_plugin_admin_scripts'); } add_action('admin_menu', 'rsssl_add_option_menu'); /** * Render the settings page */ function rsssl_settings_page() { if (!rsssl_user_can_manage()) { return; } ?> <div id="really-simple-ssl" class="rsssl"></div> <div id="really-simple-ssl-modal"></div> <?php } /** * If the rest api is blocked, the code will try an admin ajax call as fall back. * * @return void */ function rsssl_rest_api_fallback() { $response = $data = []; $error = $action = $test = $do_action = false; if (!rsssl_user_can_manage()) { $error = true; } //if the site is using this fallback, we want to show a notice update_option('rsssl_ajax_fallback_active', time(), false); if (isset($_GET['rest_action'])) { $action = sanitize_text_field($_GET['rest_action']); if (strpos($action, 'reallysimplessl/v1/tests/') !== false) { $test = strtolower(str_replace('reallysimplessl/v1/tests/', '', $action)); } } $requestData = json_decode(file_get_contents('php://input'), true); if ($requestData) { $action = $requestData['path'] ?? false; $action = sanitize_text_field($action); $data = $requestData['data'] ?? false; if (strpos($action, 'reallysimplessl/v1/do_action/') !== false) { $do_action = strtolower(str_replace('reallysimplessl/v1/do_action/', '', $action)); } } if (!$error) { if (strpos($action, 'fields/get') !== false) { $response = rsssl_rest_api_fields_get(); } else if (strpos($action, 'fields/set') !== false) { $request = new WP_REST_Request(); $response = rsssl_rest_api_fields_set($request, $data); } else if ($test) { $request = new WP_REST_Request(); $data = $_GET['data'] ?? false; $data = json_decode(stripcslashes($data)); $data = (array)$data; $nonce = isset($_GET['nonce']) ? sanitize_text_field($_GET['nonce']) : false; $id = isset($_GET['id']) ? sanitize_text_field($_GET['id']) : false; $state = isset($_GET['state']) ? sanitize_title($_GET['state']) : false; $request->set_param('test', $test); $request->set_param('state', $state); $request->set_param('id', $id); $request->set_param('nonce', $nonce); //remove foreach ($_GET as $key => $value) { $data[$key] = sanitize_text_field($value); } $response = rsssl_run_test($request, $data); } else if ($do_action) { $request = new WP_REST_Request(); $request->set_param('action', $do_action); $response = rsssl_do_action($request, $data); } } header("Content-Type: application/json"); echo json_encode($response); exit; } add_action('wp_ajax_rsssl_rest_api_fallback', 'rsssl_rest_api_fallback'); add_action('rest_api_init', 'rsssl_settings_rest_route', 10); function rsssl_settings_rest_route() { if (!rsssl_user_can_manage()) { return; } register_rest_route('reallysimplessl/v1', 'fields/get', array( 'methods' => 'GET', 'callback' => 'rsssl_rest_api_fields_get', 'permission_callback' => function () { return rsssl_user_can_manage(); } )); register_rest_route('reallysimplessl/v1', 'fields/set', array( 'methods' => 'POST', 'callback' => 'rsssl_rest_api_fields_set', 'permission_callback' => function () { return rsssl_user_can_manage(); } )); register_rest_route('reallysimplessl/v1', 'tests/(?P<test>[a-z\_\-]+)', array( 'methods' => 'GET', 'callback' => 'rsssl_run_test', 'permission_callback' => function () { return rsssl_user_can_manage(); } )); register_rest_route('reallysimplessl/v1', 'do_action/(?P<action>[a-z\_\-]+)', array( 'methods' => 'POST', 'callback' => 'rsssl_do_action', 'permission_callback' => function () { return rsssl_user_can_manage(); } )); } /** * Store SSL Labs result * @param array $data * * @return array */ function rsssl_store_ssl_labs($data) { if (!rsssl_user_can_manage()) { return []; } update_option('rsssl_ssl_labs_data', $data, false); return []; } function rsssl_remove_fallback_notice() { if (get_option('rsssl_ajax_fallback_active') !== false) { delete_option('rsssl_ajax_fallback_active'); } } /** * @param WP_REST_Request $request * @param array|bool $ajax_data * * @return void */ function rsssl_do_action($request, $ajax_data = false) { if (!rsssl_user_can_manage()) { return; } if (!$ajax_data) { rsssl_remove_fallback_notice(); } $action = sanitize_title($request->get_param('action')); $data = $ajax_data !== false ? $ajax_data : $request->get_params(); $nonce = $data['nonce']; if (!wp_verify_nonce($nonce, 'rsssl_nonce')) { return; } switch ($action) { case 'ssltest_get': $response = ['data' => get_option('rsssl_ssl_labs_data')]; break; case 'ssltest_run': $response = rsssl_ssltest_run($data); break; case 'store_ssl_labs': $response = rsssl_store_ssl_labs($data); break; case 'send_test_mail': $mailer = new rsssl_mailer(); $response = $mailer->send_test_mail(); break; case 'plugin_actions': $response = rsssl_plugin_actions($data); break; case 'clear_cache': $response = rsssl_clear_test_caches($data); break; case 'otherpluginsdata': $response = rsssl_other_plugins_data(); break; default: $response = apply_filters("rsssl_do_action", [], $action, $data); } if (is_array($response)) { $response['request_success'] = true; } return $response; } /** * @param array $data * * @return array */ function rsssl_clear_test_caches($data) { if (!rsssl_user_can_manage()) { return []; } $cache_id = sanitize_title($data['cache_id']); do_action('rsssl_clear_test_caches', $data); return []; } /** * Process plugin installation or activation actions * * @param array $data * * @return array */ function rsssl_plugin_actions($data) { if (!rsssl_user_can_manage()) { return []; } $slug = sanitize_title($data['slug']); $action = sanitize_title($data['pluginAction']); $installer = new rsssl_installer($slug); if ($action === 'download') { $installer->download_plugin(); } else if ($action === 'activate') { $installer->activate_plugin(); } return rsssl_other_plugins_data($slug); } /** * Run a request to SSL Labs * * @param $data * * @return string */ function rsssl_ssltest_run($data) { if (!rsssl_user_can_manage()) { return ''; } $url = $data['url']; $response = wp_remote_get($url); $data = wp_remote_retrieve_body($response); if (empty($data)) { $data = ['errors' => 'Request failed, please try again.']; } return $data; } /** * @param WP_REST_Request $request * * @return array */ function rsssl_run_test($request, $ajax_data = false) { if (!rsssl_user_can_manage()) { return []; } if (!$ajax_data) { rsssl_remove_fallback_notice(); } $nonce = $request->get_param('nonce'); if (!wp_verify_nonce($nonce, 'rsssl_nonce')) { return []; } $data = $ajax_data !== false ? $ajax_data : $request->get_params(); $test = sanitize_title($request->get_param('test')); $state = $request->get_param('state'); $state = $state !== 'undefined' && $state !== 'false' ? $state : false; switch ($test) { case 'progressdata': $response = RSSSL()->progress->get(); break; case 'dismiss_task': $response = RSSSL()->progress->dismiss_task($state); break; default: $response = apply_filters("rsssl_run_test", [], $test, $data); } if (is_array($response)) { $response['request_success'] = true; } return $response; } /** * Get plugin data for other plugin section * @param string $slug * @return array */ function rsssl_other_plugins_data($slug = false) { if (!rsssl_user_can_manage()) { return []; } $plugins = array( [ 'slug' => 'burst-statistics', 'constant_free' => 'burst_version', 'constant_premium' => 'burst_pro', 'wordpress_url' => 'https://wordpress.org/plugins/burst-statistics/', 'upgrade_url' => 'https://burst-statistics.com/pricing?src=rsssl-plugin', 'title' => 'Burst Statistics - '. __("Self-hosted and privacy-friendly analytics tool.", 'really-simple-ssl'), ], [ 'slug' => 'complianz-gdpr', 'constant_free' => 'cmplz_plugin', 'constant_premium' => 'cmplz_premium', 'wordpress_url' => 'https://wordpress.org/plugins/complianz-gdpr/', 'upgrade_url' => 'https://complianz.io/pricing?src=rsssl-plugin', 'title' => __("Complianz - Consent Management as it should be", "really-simple-ssl"), ], [ 'slug' => 'complianz-terms-conditions', 'constant_free' => 'cmplz_tc_version', 'wordpress_url' => 'https://wordpress.org/plugins/complianz-terms-conditions/', 'upgrade_url' => 'https://complianz.io?src=rsssl-plugin', 'title' => 'Complianz - ' . __("Terms and Conditions", "really-simple-ssl"), ], ); foreach ($plugins as $index => $plugin) { $installer = new rsssl_installer($plugin['slug']); if (isset($plugin['constant_premium']) && defined($plugin['constant_premium'])) { $plugins[$index]['pluginAction'] = 'installed'; } else if (!$installer->plugin_is_downloaded() && !$installer->plugin_is_activated()) { $plugins[$index]['pluginAction'] = 'download'; } else if ($installer->plugin_is_downloaded() && !$installer->plugin_is_activated()) { $plugins[$index]['pluginAction'] = 'activate'; } else { if (isset($plugin['constant_premium'])) { $plugins[$index]['pluginAction'] = 'upgrade-to-premium'; } else { $plugins[$index]['pluginAction'] = 'installed'; } } } if ($slug) { foreach ($plugins as $key => $plugin) { if ($plugin['slug'] === $slug) { return $plugin; } } } return ['plugins' => $plugins]; } /** * List of allowed field types * @param $type * * @return mixed|string */ function rsssl_sanitize_field_type($type) { $types = [ 'hidden', 'license', 'database', 'checkbox', 'password', 'radio', 'text', 'textarea', 'number', 'email', 'select', 'host', 'permissionspolicy', 'learningmode', 'mixedcontentscan', 'vulnerablemeasures', 'LetsEncrypt', 'postdropdown', ]; if (in_array($type, $types)) { return $type; } return 'checkbox'; } /** * @param WP_REST_Request $request * @param array $ajax_data * * @return array */ function rsssl_rest_api_fields_set(WP_REST_Request $request, $ajax_data = false): array { if (!rsssl_user_can_manage()) { return []; } $fields = $ajax_data ?: $request->get_json_params(); //get the nonce $nonce = false; foreach ($fields as $index => $field) { if (isset($field['nonce'])) { $nonce = $field['nonce']; unset($fields[$index]); } } if (!wp_verify_nonce($nonce, 'rsssl_nonce')) { return []; } $config_fields = rsssl_fields(false); $config_ids = array_column($config_fields, 'id'); foreach ($fields as $index => $field) { $config_field_index = array_search($field['id'], $config_ids); $config_field = $config_fields[$config_field_index]; if ($config_field_index === false) { unset($fields[$index]); continue; } $type = rsssl_sanitize_field_type($field['type']); $field_id = sanitize_text_field($field['id']); $value = rsssl_sanitize_field($field['value'], $type, $field_id); //if an endpoint is defined, we use that endpoint instead if (isset($config_field['data_endpoint'])) { //the updateItemId allows us to update one specific item in a field set. $update_item_id = isset($field['updateItemId']) ? $field['updateItemId'] : false; $action = isset($field['action']) && $field['action'] === 'delete' ? 'delete' : 'update'; $endpoint = $config_field['data_endpoint']; if (is_array($endpoint)) { $main = $endpoint[0]; $class = $endpoint[1]; $function = $endpoint[2]; if (function_exists($main)) { $main()->$class->$function($value, $update_item_id, $action); } } else if (function_exists($endpoint)) { $endpoint($value, $update_item_id, $action); } unset($fields[$index]); continue; } $field['value'] = $value; $fields[$index] = $field; } if (is_multisite() && rsssl_is_networkwide_active()) { $options = get_site_option('rsssl_options', []); } else { $options = get_option('rsssl_options', []); } //build a new options array foreach ($fields as $field) { $prev_value = isset($options[$field['id']]) ? $options[$field['id']] : false; do_action("rsssl_before_save_option", $field['id'], $field['value'], $prev_value, $field['type']); $options[$field['id']] = apply_filters("rsssl_fieldvalue", $field['value'], $field['id'], $field['type']); } if (!empty($options)) { if (is_multisite() && rsssl_is_networkwide_active()) { update_site_option('rsssl_options', $options); } else { update_option('rsssl_options', $options); } } RSSSL()->admin->clear_admin_notices_cache(); do_action('rsssl_after_saved_fields', $fields ); foreach ( $fields as $field ) { do_action( "rsssl_after_save_field", $field['id'], $field['value'], $prev_value, $field['type'] ); } return [ 'success' => true, 'progress' => RSSSL()->progress->get(), 'fields' => rsssl_fields(true), ]; } /** * Update a rsssl option * @param string $name * @param mixed $value * * @return void */ function rsssl_update_option($name, $value) { if (!rsssl_user_can_manage()) { return; } $config_fields = rsssl_fields(false); $config_ids = array_column($config_fields, 'id'); $config_field_index = array_search($name, $config_ids); if ($config_field_index === false) { return; } $config_field = $config_fields[$config_field_index]; $type = $config_field['type'] ?? false; if (!$type) { return; } if (is_multisite() && rsssl_is_networkwide_active()) { $options = get_site_option('rsssl_options', []); } else { $options = get_option('rsssl_options', []); } if (!is_array($options)) $options = []; $prev_value = $options[$name] ?? false; $name = sanitize_text_field($name); $type = rsssl_sanitize_field_type($config_field['type']); $value = rsssl_sanitize_field($value, $type, $name); $value = apply_filters("rsssl_fieldvalue", $value, sanitize_text_field($name), $type); #skip if value wasn't changed if (isset($options[$name]) && $options[$name] === $value) { return; } $options[$name] = $value; if ( is_multisite() && rsssl_is_networkwide_active() ) { update_site_option( 'rsssl_options', $options ); } else { update_option( 'rsssl_options', $options ); } $config_field['value'] = $value; RSSSL()->admin->clear_admin_notices_cache(); do_action('rsssl_after_saved_fields',[$config_field] ); do_action( "rsssl_after_save_field", $name, $value, $prev_value, $type ); } /** * Get the rest api fields * @return array */ function rsssl_rest_api_fields_get() { if (!rsssl_user_can_manage()) { return []; } // rsssl_update_option('vulnerabilities_intro_shown', false); $output = array(); $fields = rsssl_fields(); foreach ($fields as $index => $field) { /** * Load data from source */ if (isset($field['data_source'])) { $data_source = $field['data_source']; if (is_array($data_source)) { $main = $data_source[0]; $class = $data_source[1]; $function = $data_source[2]; $field['value'] = []; if (function_exists($main)) { $field['value'] = $main()->$class->$function(); } } else if (function_exists($field['data_source'])) { $func = $field['data_source']; $field['value'] = $func(); } } $fields[$index] = $field; } $output['fields'] = $fields; $output['request_success'] = true; $output['progress'] = RSSSL()->progress->get(); return apply_filters('rsssl_rest_api_fields_get', $output); } /** * Sanitize a field * * @param mixed $value * @param string $type * @oaram string $id * * @return array|bool|int|string|void */ function rsssl_sanitize_field($value, string $type, string $id) { switch ($type) { case 'checkbox': case 'number': return (int)$value; case 'hidden': return sanitize_title($value); case 'select': case 'host': case 'text': case 'textarea': case 'license': case 'postdropdown': return sanitize_text_field($value); case 'multicheckbox': if (!is_array($value)) { $value = array($value); } return array_map('sanitize_text_field', $value); case 'password': return rsssl_encode_password($value); case 'email': return sanitize_email($value); case 'url': return esc_url_raw($value); case 'permissionspolicy': return rsssl_sanitize_permissions_policy($value, $type, $id); case 'learningmode': return rsssl_sanitize_datatable($value, $type, $id); case 'mixedcontentscan': return $value; default: return sanitize_text_field($value); } } /** * Sanitize and encode a password * * @param $password * * @return mixed|string */ function rsssl_encode_password($password) { if (!rsssl_user_can_manage()) { return $password; } if (strlen(trim($password)) === 0) { return $password; } $password = sanitize_text_field($password); if (strpos($password, 'rsssl_') !== FALSE) { return $password; } $key = get_site_option('rsssl_key'); if (!$key) { update_site_option('rsssl_key', time()); $key = get_site_option('rsssl_key'); } $ivlength = openssl_cipher_iv_length('aes-256-cbc'); $iv = openssl_random_pseudo_bytes($ivlength); $ciphertext_raw = openssl_encrypt($password, 'aes-256-cbc', $key, 0, $iv); $key = base64_encode($iv . $ciphertext_raw); return 'rsssl_' . $key; } /** * Dedicated permission policy sanitization * * @param $value * @param $type * @param $field_name * * @return array|false */ function rsssl_sanitize_permissions_policy($value, $type, $field_name) { $possible_keys = apply_filters("rsssl_datatable_datatypes_$type", [ 'id' => 'string', 'title' => 'string', 'status' => 'boolean', ]); // Datatable array will look something like this, whith 0 the row index, and id, title the col indexes. // [0] => Array // ( // [id] => camera // [title] => Camera // [value] => () // [status] => 1/0 // ) //) $config_fields = rsssl_fields(false); //check if there is a default available $default = false; foreach ($config_fields as $config_field) { if ($config_field['id'] === $field_name) { $default = isset($config_field['default']) ? $config_field['default'] : false; } } $stored_ids = []; if (!is_array($value)) { return $default; } else { foreach ($value as $row_index => $row) { //check if we have invalid values if (is_array($row)) { foreach ($row as $column_index => $row_value) { if ($column_index === 'id' && $row_value === false) { unset($value[$column_index]); } } } //has to be an array. if (!is_array($row)) { if (isset($default[$row_index])) { $value[$row_index] = $default[$row_index]; } else { unset($value[$row_index]); } } foreach ($row as $col_index => $col_value) { if (!isset($possible_keys[$col_index])) { unset($value[$row_index][$col_index]); } else { $datatype = $possible_keys[$col_index]; switch ($datatype) { case 'string': $value[$row_index][$col_index] = sanitize_text_field($col_value); break; case 'int': case 'boolean': default: $value[$row_index][$col_index] = intval($col_value); break; } } } //Ensure that all required keys are set with at least an empty value foreach ($possible_keys as $key => $data_type) { if (!isset($value[$row_index][$key])) { $value[$row_index][$key] = false; } } } } //ensure that there are no duplicate ids foreach ($value as $index => $item) { if (in_array($item['id'], $stored_ids)) { unset($value[$index]); continue; } $stored_ids[] = $item['id']; } //if the default contains items not in the setting (newly added), add them. if (count($value) < count($default)) { foreach ($default as $def_row_index => $def_row) { //check if it is available in the array. If not, add if (!in_array($def_row['id'], $stored_ids)) { $value[] = $def_row; } } } return $value; } function rsssl_sanitize_datatable($value, $type, $field_name) { $possible_keys = apply_filters("rsssl_datatable_datatypes_$type", [ 'id' => 'string', 'title' => 'string', 'status' => 'boolean', ]); if (!is_array($value)) { return false; } else { foreach ($value as $row_index => $row) { //check if we have invalid values if (is_array($row)) { foreach ($row as $column_index => $row_value) { if ($column_index === 'id' && $row_value === false) { unset($value[$column_index]); } } } //has to be an array. if (!is_array($row)) { unset($value[$row_index]); } foreach ($row as $col_index => $col_value) { if (!isset($possible_keys[$col_index])) { unset($value[$row_index][$col_index]); } else { $datatype = $possible_keys[$col_index]; switch ($datatype) { case 'string': $value[$row_index][$col_index] = sanitize_text_field($col_value); break; case 'int': case 'boolean': default: $value[$row_index][$col_index] = intval($col_value); break; } } } //Ensure that all required keys are set with at least an empty value foreach ($possible_keys as $key => $data_type) { if (!isset($value[$row_index][$key])) { $value[$row_index][$key] = false; } } } } return $value; } /** * Check if the server side conditions apply * * @param array $conditions * * @return bool */ function rsssl_conditions_apply(array $conditions) { $defaults = ['relation' => 'AND']; $conditions = wp_parse_args($conditions, $defaults); $relation = $conditions['relation'] === 'AND' ? 'AND' : 'OR'; unset($conditions['relation']); $condition_applies = true; foreach ($conditions as $condition => $condition_value) { $invert = substr($condition, 1) === '!'; $condition = ltrim($condition, '!'); if (is_array($condition_value)) { $this_condition_applies = rsssl_conditions_apply($condition_value); } else { //check if it's a function if (substr($condition, -2) === '()') { $func = $condition; if (preg_match('/(.*)\(\)\-\>(.*)->(.*)/i', $func, $matches)) { $base = $matches[1]; $class = $matches[2]; $func = $matches[3]; $func = str_replace('()', '', $func); $this_condition_applies = call_user_func(array($base()->{$class}, $func)) === $condition_value; } else { $func = str_replace('()', '', $func); $this_condition_applies = $func() === $condition_value; } } else { $var = $condition; if (preg_match('/(.*)\(\)\-\>(.*)->(.*)/i', $var, $matches)) { $base = $matches[1]; $class = $matches[2]; $var = $matches[3]; $this_condition_applies = $base()->{$class}->_get($var) === $condition_value; } else { $this_condition_applies = rsssl_get_option($var) === $condition_value; } } if ($invert) { $this_condition_applies = !$this_condition_applies; } } if ($relation === 'AND') { $condition_applies = $condition_applies && $this_condition_applies; } else { $condition_applies = $condition_applies || $this_condition_applies; } } return $condition_applies; } src/Page.js 0000666 00000010102 15165313625 0006552 0 ustar 00 import {useEffect, useState} from "@wordpress/element"; import Header from "./Header"; import PagePlaceholder from './Placeholder/PagePlaceholder'; import getAnchor from "./utils/getAnchor"; import useFields from "./Settings/FieldsData"; import useMenu from "./Menu/MenuData"; import useOnboardingData from "./Onboarding/OnboardingData"; import useModal from "./Modal/ModalData"; const Page = () => { const {error, fields, changedFields, fetchFieldsData, updateFieldsData, fieldsLoaded} = useFields(); const {showOnboardingModal, fetchOnboardingModalStatus, modalStatusLoaded,} = useOnboardingData(); const {selectedMainMenuItem, fetchMenuData } = useMenu(); const {showModal} = useModal(); const [Settings, setSettings] = useState(null); const [DashboardPage, setDashboardPage] = useState(null); const [Notices, setNotices] = useState(null); const [Menu, setMenu] = useState(null); useEffect(() => { if ( !modalStatusLoaded ) { fetchOnboardingModalStatus(); } }, []); useEffect( () => { if (selectedMainMenuItem !== 'dashboard' ){ if (!Settings) { import ("./Settings/Settings").then(({default: Settings}) => { setSettings(() => Settings); }); } if (!Notices) { import("./Settings/Notices").then(({default: Notices}) => { setNotices(() => Notices); }); } if (!Menu) { import ("./Menu/Menu").then(({default: Menu}) => { setMenu(() => Menu); }); } } if (selectedMainMenuItem === 'dashboard' && !DashboardPage ){ import ( "./Dashboard/DashboardPage").then(({ default: DashboardPage }) => { setDashboardPage(() => DashboardPage); }); } }, [selectedMainMenuItem]); const [OnboardingModal, setOnboardingModal] = useState(null); useEffect( () => { if ( showOnboardingModal && !OnboardingModal ){ import ("./Onboarding/OnboardingModal").then(({ default: OnboardingModal }) => { setOnboardingModal(() => OnboardingModal); }); } }, [showOnboardingModal]); const [Modal, setModal] = useState(null); useEffect( () => { if ( showModal && !Modal ){ import ( "./Modal/Modal").then(({ default: Modal }) => { setModal(() => Modal); }); } }, [showModal]); useEffect( () => { if ( fieldsLoaded ) { fetchMenuData(fields); window.addEventListener('hashchange', (e) => { fetchMenuData(fields); }); } }, [fields] ); useEffect( () => { let subMenuItem = getAnchor('menu'); updateFieldsData(subMenuItem); }, [changedFields] ); useEffect( () => { let subMenuItem = getAnchor('menu'); fetchFieldsData(subMenuItem); }, [] ); if (error) { return ( <> <PagePlaceholder error={error}></PagePlaceholder> </> ) } return ( <div className="rsssl-wrapper"> {OnboardingModal && <OnboardingModal />} {Modal && <Modal/>} { <> <Header /> <div className={"rsssl-content-area rsssl-grid rsssl-" + selectedMainMenuItem}> { selectedMainMenuItem !== 'dashboard' && Settings && Menu && Notices && <> <Menu /> <Settings/> <Notices className="rsssl-wizard-notices"/> </> } { selectedMainMenuItem === 'dashboard' && DashboardPage && <DashboardPage /> } </div> </> } </div> ); } export default Page src/index.js 0000666 00000001025 15165313625 0007011 0 ustar 00 import { render, } from '@wordpress/element'; import Page from './Page'; /** * Initialize */ document.addEventListener( 'DOMContentLoaded', () => { const container = document.getElementById( 'really-simple-ssl' ); if ( container ) { render( <> <Page/> </>, container ); } }); /* * Some oldschool stuff */ document.addEventListener('click', e => { if ( e.target.closest('#ssl-labs-check-button') ) { document.querySelector('.rsssl-ssllabs').classList.add('rsssl-block-highlight'); } }); src/Onboarding/OnboardingData.js 0000666 00000020032 15165313625 0012637 0 ustar 00 import {create} from 'zustand'; import {produce} from 'immer'; import * as rsssl_api from "../utils/api"; import {__} from "@wordpress/i18n"; const useOnboardingData = create(( set, get ) => ({ steps: [], currentStepIndex: 0, currentStep: {}, error: false, networkProgress: 0, networkActivationStatus: '', certificateValid: '', networkwide: false, sslEnabled: false, overrideSSL: false, showOnboardingModal: false, modalStatusLoaded: false, dataLoaded: false, processing: false, email: '', includeTips:false, sendTestEmail:true, actionStatus: '', setIncludeTips: (includeTips) => { set(state => ({ includeTips })) }, setSendTestEmail: (sendTestEmail) => { set(state => ({ sendTestEmail })) }, setEmail: (email) => { set(state => ({ email })) }, setShowOnboardingModal: (showOnboardingModal) => { set(state => ({ showOnboardingModal })) }, setProcessing: (processing) => { set(state => ({ processing })) }, setOverrideSSL: (overrideSSL) => { set(state => ({ overrideSSL })) }, setNetworkActivationStatus: (networkActivationStatus) => { set(state => ({ networkActivationStatus })) }, setCurrentStepIndex: (currentStepIndex) => { const currentStep = get().steps[currentStepIndex]; set(state => ({ currentStepIndex, currentStep })) }, dismissModal: () => { let data={}; data.dismiss = true; set((state) => ({showOnboardingModal: false})); rsssl_api.doAction('dismiss_modal', data).then(( response ) => { }); }, saveEmail:() => { let data={}; data.email = get().email; data.includeTips = get().includeTips; data.sendTestEmail = get().sendTestEmail; set((state) => ({processing:true})); rsssl_api.doAction('update_email', data).then(( response ) => { set((state) => ({processing:false})); get().setCurrentStepIndex(get().currentStepIndex+1); }); }, updateItemStatus: (action, status, id) => { const currentStepIndex = get().currentStepIndex; const itemIndex = get().steps[currentStepIndex].items.findIndex(item => {return item.id===id;}); set( produce((state) => { let step = get().currentStep; let stepCopy = {...step}; let itemsCopy = [...step.items]; let itemCopy = {...step.items[itemIndex]}; itemCopy.status = status; itemCopy.current_action = action; itemsCopy[itemIndex] = itemCopy; stepCopy.items = itemsCopy; state.steps[currentStepIndex] = stepCopy; state.currentStep = state.steps[currentStepIndex]; }) ) }, fetchOnboardingModalStatus: async () => { rsssl_api.doAction('get_modal_status').then((response) => { set({ showOnboardingModal: !response.dismissed, modalStatusLoaded: true, }) }); }, setShowOnBoardingModal: (showOnboardingModal) => set(state => ({ showOnboardingModal })), actionHandler: async (id, action, event) => { set({actionStatus: 'processing'}); event.preventDefault(); get().updateItemStatus(action, 'processing', id); let next = await processAction(action, id); get().updateItemStatus(next.action, next.status, id); if ( next.action!=='none' && next.action!=='completed') { next = await processAction(next.action, id); get().updateItemStatus(next.action, next.status, id); } else { set({actionStatus: 'completed'}); } }, getSteps: async (forceRefresh) => { const {steps, networkActivationStatus, certificateValid, networkProgress, networkwide, overrideSSL, error, sslEnabled} = await retrieveSteps(forceRefresh); //if ssl is already enabled, the server will send only one step. In that case we can skip the below. //it's only needed when SSL is activated just now, client side. let currentStepIndex = 0; if ( sslEnabled || ( networkwide && networkActivationStatus === 'completed') ) { currentStepIndex = 1; } set({ steps: steps, currentStepIndex:currentStepIndex, currentStep: steps[currentStepIndex], networkActivationStatus: networkActivationStatus, certificateValid: certificateValid, networkProgress: networkProgress, networkwide: networkwide, overrideSSL: overrideSSL, sslEnabled: sslEnabled, dataLoaded: true, error:error, }); if (networkActivationStatus==='completed') { set( {networkProgress: 100} ); } }, refreshSSLStatus: (e) => { e.preventDefault(); set( {processing: true} ); set( produce((state) => { const stepIndex = state.steps.findIndex(step => { return step.id==='activate_ssl'; }); const step = state.steps[stepIndex]; step.items.forEach(function(item, j){ if (item.status==='error') { step.items[j].status = 'processing'; step.items[j].title = __("Re-checking SSL certificate, please wait...","really-simple-ssl"); } }); state.steps[stepIndex] = step; }) ) setTimeout(async function () { const { steps, certificateValid, error, } = await retrieveSteps(true); set({ steps: steps, certificateValid: certificateValid, processing: false, error: error, }); }, 1000) //add a delay, otherwise it's so fast the user may not trust it. }, activateSSLNetworkWide: () => { if (get().networkProgress>=100) { set({ sslEnabled: true, networkActivationStatus:'completed' }); return; } set(() => ({processing: true})); rsssl_api.runTest('activate_ssl_networkwide' ).then( ( response ) => { if (response.success) { set({ networkProgress: response.progress, processing:false, }); if (response.progress>=100) { set({ sslEnabled: true, networkActivationStatus:'completed' }); } } }); } })); const retrieveSteps = (forceRefresh) => { let data={}; data.forceRefresh = forceRefresh; return rsssl_api.doAction('onboarding_data', data).then( ( response ) => { let steps = response.steps; let sslEnabled= response.ssl_enabled; let networkActivationStatus= response.network_activation_status; let certificateValid = response.certificate_valid; let networkProgress = response.network_progress; let networkwide = response.networkwide; let overrideSSL = response.ssl_detection_overridden; let error = response.error; return {steps, networkActivationStatus, certificateValid, networkProgress, networkwide, overrideSSL, error, sslEnabled}; }); } const processAction = (action, id) => { let data={}; data.id = id; let next = {}; return rsssl_api.doAction(action, data).then( async ( response ) => { if ( response.success ){ next.action = response.next_action; next.status = 'success'; return next; } else { next.action = 'failed'; next.status = 'error'; return next; } }).catch(error => { next.action = 'failed'; next.status = 'error'; return next; }); } export default useOnboardingData; src/Onboarding/OnboardingModal.js 0000666 00000006014 15165313625 0013026 0 ustar 00 import {useState, useEffect} from "@wordpress/element"; import * as rsssl_api from "../utils/api"; import Onboarding from "./Onboarding"; import {useUpdateEffect} from 'react-use'; import Placeholder from '../Placeholder/Placeholder'; import { __ } from '@wordpress/i18n'; import Icon from "../utils/Icon"; import useOnboardingData from "./OnboardingData"; import useFields from "../Settings/FieldsData"; const OnboardingModal = () => { const {fieldsLoaded} = useFields(); const {showOnboardingModal, fetchOnboardingModalStatus, modalStatusLoaded, currentStep, dismissModal} = useOnboardingData(); useEffect(() => { if ( !modalStatusLoaded ) { fetchOnboardingModalStatus(); } }, []); useUpdateEffect(()=> { if (showOnboardingModal===true) { let data={}; data.dismiss = false; rsssl_api.doAction('dismiss_modal', data); } }); return ( <> { (showOnboardingModal) && <> <div className="rsssl-modal-backdrop"> </div> <div className="rsssl-modal rsssl-onboarding"> <div className="rsssl-modal-header"> <h2>{currentStep.title}</h2> <button type="button" className="rsssl-modal-close" data-dismiss="modal" aria-label="Close" onClick={() => dismissModal() }> <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height="24" > <path fill="#000000" d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/> </svg> </button> </div> <div className="rsssl-header-extension"> <div> <p> {currentStep.subtitle} </p> </div> </div> <div className="rsssl-modal-content"> { !fieldsLoaded && <> <ul> <li><Icon name = "file-download" color = 'orange' />{__("Please wait while we detect your setup", "really-simple-ssl")}</li> </ul> <Placeholder lines="3"></Placeholder> </> } { fieldsLoaded && <Onboarding isModal={true} /> } </div> <div className="rssl-modal-footer"/> </div> </> } </> ) } export default OnboardingModal; src/Onboarding/Onboarding.js 0000666 00000031576 15165313625 0012064 0 ustar 00 import { useEffect} from "@wordpress/element"; import { Button, ToggleControl } from '@wordpress/components'; import * as rsssl_api from "../utils/api"; import { __ } from '@wordpress/i18n'; import Icon from "../utils/Icon"; import Placeholder from '../Placeholder/Placeholder'; import useMenu from "../Menu/MenuData"; import useFields from "../Settings/FieldsData"; import useProgress from "../Dashboard/Progress/ProgressData"; import useOnboardingData from "./OnboardingData"; import useRiskData from "../Settings/RiskConfiguration/RiskData"; const Onboarding = (props) => { const { fetchFieldsData, updateField, updateFieldsData, getFieldValue} = useFields(); const { getProgressData} = useProgress(); const { fetchVulnerabilities } = useRiskData(); const { dismissModal, actionHandler, getSteps, error, certificateValid, networkwide, sslEnabled, dataLoaded, processing, setProcessing, steps, currentStep, currentStepIndex, setCurrentStepIndex, overrideSSL, setOverrideSSL, networkActivationStatus, setNetworkActivationStatus, networkProgress, refreshSSLStatus, activateSSLNetworkWide, email, setEmail, saveEmail, includeTips, setIncludeTips, sendTestEmail, setSendTestEmail } = useOnboardingData(); const {setSelectedMainMenuItem, selectedMainMenuItem} = useMenu(); const statuses = { 'inactive': { 'icon': 'info', 'color': 'orange', }, 'warning': { 'icon': 'circle-times', 'color': 'orange', }, 'error': { 'icon': 'circle-times', 'color': 'red', }, 'success': { 'icon': 'circle-check', 'color': 'green', }, 'processing': { 'icon': 'file-download', 'color': 'red', }, }; useEffect( () => { if (networkwide && networkActivationStatus==='main_site_activated') { activateSSLNetworkWide(); } }, [networkActivationStatus, networkProgress]) useEffect( () => { const run = async () => { await getSteps(false); if ( dataLoaded && sslEnabled && currentStepIndex===0) { setCurrentStepIndex(1) } if (getFieldValue('notifications_email_address') !== '' && email==='') { setEmail(getFieldValue('notifications_email_address')) } } run(); }, []) //ensure all fields are updated, and progress is retrieved again useEffect( () => { const runUpdate = async () => { //in currentStep.items, find item with id 'hardening' //if it has status 'completed' fetchFieldsData again. if (currentStep && currentStep.items) { let hardeningItem = currentStep.items.find((item) => { return item.id === 'hardening'; }) if (hardeningItem && hardeningItem.status === 'success') { await fetchFieldsData('hardening'); await getProgressData(); await fetchVulnerabilities(); } } } runUpdate(); }, [currentStep]) const activateSSL = () => { setProcessing(true); rsssl_api.runTest('activate_ssl' ).then( async ( response ) => { setProcessing(false); setCurrentStepIndex(currentStepIndex+1); //change url to https, after final check if ( response.success ) { if ( response.site_url_changed ) { window.location.reload(); } else { if ( networkwide ) { setNetworkActivationStatus('main_site_activated'); } } } }).then( async () => { await getProgressData(); await fetchFieldsData(selectedMainMenuItem ) } ); } const parseStepItems = (items) => { return items && items.map( (item, index) => { let { title, description, current_action, action, status, button, id, read_more } = item if ( id==='ssl_enabled' && networkwide ) { if ( networkProgress>=100) { status = 'success'; title = __( "SSL has been activated network wide", "really-simple-ssl" ); } else { status = 'processing'; title = __( "Processing activation of subsites networkwide", "really-simple-ssl" ); } } const statusIcon = item.status!=='success' && item.is_plugin && item.current_action === 'none' ? 'empty' : statuses[status].icon; const statusColor = statuses[status].color; const currentActions = { 'activate_setting': __('Activating...',"really-simple-ssl"), 'activate': __('Activating...',"really-simple-ssl"), 'install_plugin': __('Installing...',"really-simple-ssl"), 'error': __('Failed',"really-simple-ssl"), 'completed': __('Finished',"really-simple-ssl"), }; let buttonTitle = ''; if ( button ) { buttonTitle = button; if ( current_action!=='none' ) { buttonTitle = currentActions[current_action]; if ( current_action==='failed' ) { buttonTitle = currentActions['error']; } } } let showLink = (button && button===buttonTitle); let showAsPlugin = item.status!=='success' && item.is_plugin && item.current_action === 'none'; let isPluginClass = showAsPlugin ? 'rsssl-is-plugin' : ''; title = showAsPlugin ? <b>{title}</b> : title; return ( <li key={"pluginItem-"+index} className={isPluginClass}> <Icon name = {statusIcon} color = {statusColor} /> {title}{description && <> - {description}</>} {id==='ssl_enabled' && networkwide && networkActivationStatus==='main_site_activated' && <> - {networkProgress<100 && <>{__("working", "really-simple-ssl")} {networkProgress}%</>} {networkProgress>=100 && __("completed", "really-simple-ssl") } </>} {button && <> - {showLink && <Button isLink={true} onClick={(e) => actionHandler(id, action, e)}>{buttonTitle}</Button>} {!showLink && <>{buttonTitle}</>} </>} {showAsPlugin && read_more && <a target="_blank" href={read_more} className="button button-default rsssl-read-more">{__("Read More", "really-simple-ssl")}</a>} </li> ) }) } const goToDashboard = () => { if ( props.isModal ) dismissModal(); setSelectedMainMenuItem('dashboard'); } const goToLetsEncrypt = () => { if (props.isModal) dismissModal(); window.location.href=rsssl_settings.letsencrypt_url; } const saveEmailAndUpdateFields = async () => { await saveEmail(); updateField('send_notifications_email', true ); updateField('notifications_email_address', email ); updateFieldsData(); } const controlButtons = () => { let ActivateSSLText = networkwide ? __("Activate SSL networkwide", "really-simple-ssl") : __("Activate SSL", "really-simple-ssl"); if ( currentStepIndex === 0 ) { return ( <> <button disabled={processing || (!certificateValid && !overrideSSL) } className="button button-primary" onClick={() => {activateSSL()}}>{ActivateSSLText}</button> { certificateValid && !rsssl_settings.pro_plugin_active && <a target="_blank" href={rsssl_settings.upgrade_link} className="button button-default" >{__("Improve Security with PRO", "really-simple-ssl")}</a>} { !certificateValid && <button className="button button-default" onClick={() => {goToLetsEncrypt()}}>{__("Install SSL", "really-simple-ssl")}</button>} { !certificateValid && <ToggleControl label={__("Override SSL detection","really-simple-ssl")} checked={overrideSSL} onChange={(value) => { setOverrideSSL(value); let data = {}; data.overrideSSL = value; rsssl_api.doAction('override_ssl_detection',data ); }} />} </> ); } if (currentStepIndex>0 && currentStepIndex<steps.length-1) { return ( <> <button disabled={processing} className="button button-primary" onClick={() => saveEmailAndUpdateFields()}>{__('Save and continue', 'really-simple-ssl')}</button> <button disabled={processing} className="button button-default" onClick={() => {setCurrentStepIndex(currentStepIndex+1)}}>{__('Skip', 'really-simple-ssl')}</button> </> ); } //for last step only if ( steps.length-1 === currentStepIndex ) { return ( <> <button className="button button-primary" onClick={() => {goToDashboard()}}>{__('Go to Dashboard', 'really-simple-ssl')}</button> <button className="button button-default" onClick={() => dismissModal()}>{__('Dismiss', 'really-simple-ssl')}</button> </> ); } } if (error){ return ( <Placeholder lines="3" error={error}></Placeholder> ) } let step = currentStep; let processingClass = processing ? 'rsssl-processing' : ''; return ( <> { !dataLoaded && <> <div className="rsssl-onboarding-placeholder"> <ul> <li><Icon name = "file-download" color = 'grey' />{__("Fetching next step...", "really-simple-ssl")}</li> </ul> <Placeholder lines="3" ></Placeholder> </div> </> } { dataLoaded && <div className={ "rsssl-modal-content-step "+processingClass }> <ul> { parseStepItems(step.items) } </ul> { currentStep.id === 'email'&& <> <div> <input type="email" value={email} placeholder={__("Your email address", "really-simple-ssl")} onChange={(e) => setEmail(e.target.value)} /> </div><div> <label><input onChange={ (e) => setIncludeTips(e.target.checked)} type="checkbox" checked={includeTips} />{__("Include 6 Tips & Tricks to get started with Really Simple SSL.","really-simple-ssl")} <a href="https://really-simple-ssl.com/legal/privacy-statement/" target="_blank">{__("Privacy Statement", "really-simple-ssl")}</a></label> </div><div> <label><input onChange={ (e) => setSendTestEmail(e.target.checked)} type="checkbox" checked={sendTestEmail} />{__("Send a notification test email - Notification emails are sent from your server.","really-simple-ssl")}</label> </div> </> } { certificateValid && step.info_text && <div className="rsssl-modal-description" dangerouslySetInnerHTML={{__html: step.info_text}} /> } { currentStepIndex===0 && !certificateValid && <div className="rsssl-modal-description"> <a href="#" onClick={ (e) => refreshSSLStatus(e)}> { __("Refresh SSL status", "really-simple-ssl")} </a> {__("The SSL detection method is not 100% accurate.", "really-simple-ssl")} {__("If you’re certain an SSL certificate is present, and refresh SSL status does not work, please check “Override SSL detection” to continue activating SSL.", "really-simple-ssl")} </div> } <div className="rsssl-modal-content-step-footer"> {controlButtons()} </div> </div> } </> ) } export default Onboarding; src/Settings/CheckboxControl.js 0000666 00000005770 15165313625 0012604 0 ustar 00 /* * The tooltip can't be included in the native toggleControl, so we have to build our own. */ import { useState, useEffect } from "@wordpress/element"; const CheckboxControl = (props) => { const [ isOpen, setIsOpen ] = useState( false ); const [ ConfirmDialog, setConfirmDialog ] = useState( false ); useEffect( () => { if (!ConfirmDialog) { import ('@wordpress/components').then(({default: __experimentalConfirmDialog}) => { setConfirmDialog(() => __experimentalConfirmDialog); }); } }, []); const onChangeHandler = (e) => { //wordpress <6.0 does not have the confirmdialog component if (!ConfirmDialog) { executeAction(); return; } if (props.field.warning && props.field.warning.length>0 && !props.field.value) { setIsOpen( true ); } else { executeAction(); } } const handleConfirm = async () => { setIsOpen( false ); executeAction(); }; const handleCancel = () => { setIsOpen( false ); }; const executeAction = (e) => { let fieldValue = !props.field.value; props.onChangeHandler(fieldValue) } const handleKeyDown = (e) => { if (e.key === 'Enter') { e.preventDefault(); onChangeHandler(true); } } let field = props.field; let is_checked = field.value ? 'is-checked' : ''; let is_disabled = props.disabled ? 'is-disabled' : ''; return ( <> {ConfirmDialog && <ConfirmDialog isOpen={ isOpen } onConfirm={ handleConfirm } onCancel={ handleCancel } > {field.warning} </ConfirmDialog> } <div className="components-base-control components-toggle-control"> <div className="components-base-control__field"> <div data-wp-component="HStack" className="components-flex components-h-stack"> <span className={ "components-form-toggle "+is_checked + ' ' +is_disabled}> <input onKeyDown={(e) => handleKeyDown(e)} checked={field.value} className="components-form-toggle__input" onChange={ ( e ) => onChangeHandler(e) } id={field.id} type="checkbox" disabled={props.disabled} /> <span className="components-form-toggle__track"></span> <span className="components-form-toggle__thumb"></span> </span> <label htmlFor={field.id} className="components-toggle-control__label">{props.label}</label> </div> </div> </div> </> ); } export default CheckboxControl src/Settings/RiskConfiguration/RiskData.js 0000666 00000017514 15165313625 0014656 0 ustar 00 /* Creates A Store For Risk Data using Zustand */ import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; import {produce} from "immer"; import React from "react"; const UseRiskData = create((set, get) => ({ dummyRiskData: [ {id:'force_update',name:'Force Update',value:'l',description:__('Force update the plugin or theme','really-simple-ssl')}, {id:'quarantine',name:'Quarantine',value:'m',description:__('Isolates the plugin or theme if no update can be performed','really-simple-ssl')}, ], riskData:[], riskLevels: { l: 1, m: 2, h: 3, c: 4, }, vulnerabilities: [], processing:false, dataLoaded: false, // Stuff we need for the WPVulData component updates: 0, //for letting the component know if there are updates available HighestRisk: false, //for storing the highest risk lastChecked: '', //for storing the last time the data was checked vulEnabled: false, //for storing the status of the vulnerability scan riskNaming: {}, //for storing the risk naming introCompleted: false, //for storing the status of the first run vulList: [], //for storing the list of vulnerabilities setDataLoaded: (value) => set({dataLoaded: value}), //update Risk Data updateRiskData: async (field, value) => { set({processing:true}); set( produce((state) => { let index = state.riskData.findIndex((item) => item.id === field); state.riskData[index].value = value; state.riskData = get().enforceCascadingRiskLevels(state.riskData); }) ); try { await rsssl_api.doAction('vulnerabilities_measures_set', { riskData: get().riskData, }); set({dataLoaded: true, processing:false}); } catch (e) { console.log(e); } }, setIntroCompleted: (value) => { set({introCompleted: value}); }, enforceCascadingRiskLevels: (data) => { if (data.length===0) return data; //get risk levels for force_update let forceUpdateRiskLevel = data.filter((item) => item.id==='force_update')[0].value; let quarantineRiskLevel = data.filter((item) => item.id==='quarantine')[0].value; //get the integer value of the risk level forceUpdateRiskLevel = get().riskLevels.hasOwnProperty(forceUpdateRiskLevel) ? get().riskLevels[forceUpdateRiskLevel] : 5; quarantineRiskLevel = get().riskLevels.hasOwnProperty(quarantineRiskLevel) ? get().riskLevels[quarantineRiskLevel] : 5; let quarantineIndex = data.findIndex((item) => item.id==='quarantine'); //if the quarantine risk level is lower than the force update risk level, we set it to the force update risk level if (quarantineRiskLevel<forceUpdateRiskLevel) { data[quarantineIndex].value = Object.keys(get().riskLevels).find(key => get().riskLevels[key] === forceUpdateRiskLevel); } //if the force update risk level is none, set quarantine also to none. if ( forceUpdateRiskLevel===5 ) { data[quarantineIndex].value = '*'; } //disable all values below this value let disableUpTo = forceUpdateRiskLevel>0 ? forceUpdateRiskLevel : 0 //create an array of integers up to the forceUpdateRiskLevel let disabledRiskLevels = Array.from(Array(disableUpTo).keys()).map(x => x); disabledRiskLevels = disabledRiskLevels.map( (level) => { return Object.keys(get().riskLevels).find(key => get().riskLevels[key] === level ); }); data[quarantineIndex].disabledRiskLevels = disabledRiskLevels; return data; }, capitalizeFirstLetter: (str) => { return str.charAt(0).toUpperCase() + str.slice(1); }, fetchFirstRun: async () => { await rsssl_api.doAction('vulnerabilities_scan_files'); }, /* * Functions */ fetchVulnerabilities: async () => { let data = {}; try { const fetched = await rsssl_api.doAction('hardening_data', data); let vulList = []; let vulnerabilities = 0; if (fetched.data.vulList) { vulnerabilities = fetched.data.vulnerabilities; vulList = fetched.data.vulList; if (typeof vulList === 'object') { //we make it an array vulList = Object.values(vulList); } vulList.forEach(function (item, i) { let updateUrl = item.update_available ? rsssl_settings.plugins_url + "?plugin_status=upgrade" : '#settings/vulnerabilities'; item.vulnerability_action = <div className="rsssl-vulnerability-action"> <a className="button" href={"https://really-simple-ssl.com/vulnerabilities/" + item.rss_identifier} target={"_blank"}>{__("Details", "really-simple-ssl")}</a> <a disabled={!item.update_available} href={updateUrl} className="button button-primary" >{__("Update", "really-simple-ssl")}</a> </div> }); } let riskData = fetched.data.riskData; if (!Array.isArray(riskData)) {riskData = []} riskData = get().enforceCascadingRiskLevels(riskData); set( produce((state) => { state.vulnerabilities = vulnerabilities; state.vulList = vulList; state.updates = fetched.data.updates; state.dataLoaded = true; state.riskNaming = fetched.data.riskNaming; state.lastChecked = fetched.data.lastChecked; state.vulEnabled = fetched.data.vulEnabled; state.riskData = riskData; }) ) } catch (e) { console.error(e); } }, vulnerabilityCount: () => { let vuls = get().vulList; //we group the data by risk level //first we make vuls an array let vulsArray = []; Object.keys(vuls).forEach(function (key) { vulsArray.push(vuls[key]); }); let riskLevels = ['c', 'h', 'm', 'l']; //we count the amount of vulnerabilities per risk level return riskLevels.map(function (level) { return { level: level, count: vulsArray.filter(function (vul) { return vul.risk_level === level; }).length }; }); }, vulnerabilityScore: () => { let score = 0; let vulnerabilitiesList = get().vulList; Object.keys(vulnerabilitiesList).forEach(function (key) { //if there are vulnerabilities with critical severity, score is 5 if (vulnerabilitiesList[key].risk_level === 'c') { score = 5; } else if (score < 1) { score = 1; } }); return score; }, hardeningScore: () => { let score = 0; let vulnerabilitiesList = get().vulnerabilities; for (let i = 0; i < vulnerabilitiesList.length; i++) { score += vulnerabilitiesList[i].hardening_score; } return score; }, activateVulnerabilityScanner: async () => { let data = {}; try { const fetched = await rsssl_api.doAction('rsssl_scan_files'); if (fetched.request_success) { //we get the data again const run = async () => { await get().fetchVulnerabilities(); } run(); } } catch (e) { console.error(e); } } })); export default UseRiskData; src/Settings/RiskConfiguration/Runner.js 0000666 00000004765 15165313625 0014431 0 ustar 00 import Icon from "../../utils/Icon"; import {useState,useEffect} from '@wordpress/element'; import useRiskData from "./RiskData"; import useRunnerData from "./RunnerData"; import useFields from "../FieldsData"; import useProgress from "../../Dashboard/Progress/ProgressData"; const Runner = (props) => { //let us make a state for the loading const [loadingState, setLoadingState] = useState(true); const {setChangedField, updateField, saveFields} = useFields(); const {getProgressData} = useProgress(); const {step, setStep} = useRunnerData(); const { fetchFirstRun, fetchVulnerabilities, setIntroCompleted } = useRiskData(); let spin = (loadingState)? "icon-spin" : ""; //first step useEffect(() => { if (step===0 && props.currentStep===1) { firstRunner(); }else if (step===1 && props.currentStep===2) { secondRunner(); }else if (step===2 && props.currentStep===3) { thirdRunner(); }else if (step===3 && props.currentStep===4) { fourthRunner(); } }, [step]); const firstRunner = async () => { await fetchFirstRun(); completeCurrentRun(); } const secondRunner = async () => { await fetchVulnerabilities(); completeCurrentRun(); } const thirdRunner = async () => { //after the first run is complete, and vulnerabilities data is loaded, //we reload the progress now to ensure we have all the vulnerabilities loaded on the dashboard. await getProgressData(); completeCurrentRun(); } const fourthRunner = async () => { //last run, store as completed setIntroCompleted(true); setChangedField('vulnerabilities_intro_shown', true); updateField('vulnerabilities_intro_shown', true); await saveFields(true, false); completeCurrentRun(); } const completeCurrentRun = () => { setTimeout(function () { setLoadingState(false); setStep(step+1); }, 1000 ); } return ( <div className="rsssl-details"> <div className={"rsssl-detail-icon " + spin} > {loadingState ? <Icon name="spinner" />:<Icon name="circle-check" color="green"/>} </div> <div className="rsssl-detail"> <div className="rsssl-detail-title"> {props.title} </div> </div> </div> ) } export default Runner; src/Settings/RiskConfiguration/VulnerabilitiesOverview.js 0000666 00000011170 15165313625 0020034 0 ustar 00 import {__} from '@wordpress/i18n'; import useRiskData from "./RiskData"; import React, {useEffect, useState} from 'react'; import DataTable, {createTheme} from "react-data-table-component"; import useFields from "../FieldsData"; import VulnerabilitiesIntro from "./VulnerabilitiesIntro"; import useProgress from "../../Dashboard/Progress/ProgressData"; const VulnerabilitiesOverview = (props) => { const {getProgressData} = useProgress(); const { dataLoaded, vulList, introCompleted, fetchVulnerabilities, setDataLoaded, fetchFirstRun } = useRiskData(); const {fields, fieldAlreadyEnabled, getFieldValue} = useFields(); const [showIntro, setShowIntro] = useState(false); //we create the columns let columns = []; //getting the fields from the props let field = props.field; let enabled = false; const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light'); function buildColumn(column) { return { name: column.name, sortable: column.sortable, width: column.width, visible: column.visible, selector: row => row[column.column], }; } let dummyData = [['','','','',''],['','','','',''],['','','','','']]; field.columns.forEach(function (item, i) { let newItem = buildColumn(item) columns.push(newItem); }); //get data if field was already enabled, so not changed right now. useEffect(() => { if ( fieldAlreadyEnabled('enable_vulnerability_scanner' ) ) { if (getFieldValue('vulnerabilities_intro_shown')!=1 && !introCompleted) { setShowIntro(true); } else { //if just enabled, but intro already shown, just get the first run data. if ( !dataLoaded ) { initialize(); } } } }, [fields, dataLoaded]); useEffect(() => { //if this value changes, reload vulnerabilities data if ( getFieldValue('enable_vulnerability_scanner')==1 && !fieldAlreadyEnabled('enable_vulnerability_scanner') ) { setDataLoaded(false); } }, [fields]); const initialize = async () => { await fetchFirstRun(); await fetchVulnerabilities(); await getProgressData(); } fields.forEach(function (item, i) { if (item.id === 'enable_vulnerability_scanner') { enabled = item.value; } }); if (!enabled) { return ( //If there is no data or vulnerabilities scanner is disabled we show some dummy data behind a mask <> {showIntro && <> <VulnerabilitiesIntro/> </> } <DataTable columns={columns} data={dummyData} dense pagination noDataComponent={__("No results", "really-simple-ssl")} persistTableHead theme="really-simple-plugins" customStyles={customStyles} > </DataTable> <div className="rsssl-locked"> <div className="rsssl-locked-overlay"><span className="rsssl-task-status rsssl-open">{__('Disabled', 'really-simple-ssl')}</span><span>{__('Activate vulnerability detection to enable this block.', 'really-simple-ssl')}</span> </div> </div> </> ) } //we need to add a key to the data called action wich produces the action buttons return ( <> {showIntro && <> <VulnerabilitiesIntro/> </> } <DataTable columns={columns} data={vulList} dense pagination persistTableHead noDataComponent={__("No vulnerabilities found", "really-simple-ssl")} theme="really-simple-plugins" customStyles={customStyles} > </DataTable> </> ) } export default VulnerabilitiesOverview; src/Settings/RiskConfiguration/NotificationTester.js 0000666 00000011260 15165313625 0016761 0 ustar 00 import * as rsssl_api from "../../utils/api"; import useFields from "../FieldsData"; import {__} from "@wordpress/i18n"; import {useEffect, useState} from "react"; import useRiskData from "./RiskData"; const NotificationTester = (props) => { const { fetchVulnerabilities,riskLevels } = useRiskData(); const {field} = props; const [disabled, setDisabled] = useState(true); const [mailNotificationsEnabled, setMailNotificationsEnabled] = useState(true); const [vulnerabilitiesEnabled, setVulnerabilitiesEnabled] = useState(false); const [vulnerabilitiesSaved, setVulnerabilitiesSaved] = useState(false); const {addHelpNotice, fields, getFieldValue, updateField, setChangedField, fieldAlreadyEnabled, fetchFieldsData, updateFieldAttribute} = useFields(); useEffect ( () => { let mailEnabled = getFieldValue('send_notifications_email') == 1; let vulnerabilities = fieldAlreadyEnabled('enable_vulnerability_scanner'); setMailNotificationsEnabled(mailEnabled); let enableButton = mailEnabled && vulnerabilities; setDisabled(!enableButton); setMailNotificationsEnabled(mailEnabled); setVulnerabilitiesSaved(vulnerabilities); setVulnerabilitiesEnabled(getFieldValue('enable_vulnerability_scanner') == 1) },[fields]) const doTestNotification = async () => { //Test the notifications setDisabled(true); rsssl_api.doAction( 'vulnerabilities_test_notification' ).then( () => { setDisabled(false); fetchFieldsData('vulnerabilities'); fetchVulnerabilities(); addHelpNotice( field.id, 'success', __('All notifications are triggered successfully, please check your email to double-check if you can receive emails.','really-simple-ssl'), __('Test notifications','really-simple-ssl'), false ); }); } //ensure that risk levels are enabled cascading useEffect( () => { let dashboardRiskLevel = getFieldValue('vulnerability_notification_dashboard'); dashboardRiskLevel = riskLevels.hasOwnProperty(dashboardRiskLevel) ? riskLevels[dashboardRiskLevel] : 0; // let siteWideRiskLevel = getFieldValue('vulnerability_notification_sitewide'); //the sitewide risk level should be at least as high as the dashboard risk level. Disable lower risk levels in sitewide //create an array of ints from 1 to dashboardRiskLevel, we drop the * from the array let priorDashboardRiskLevel = dashboardRiskLevel>0 ? dashboardRiskLevel-1 :dashboardRiskLevel; let dashboardRiskLevels = Array.from(Array(priorDashboardRiskLevel).keys()).map(x => x ); //convert these integers back to risk levels //find the integer value in the riskLevels object, and return the key dashboardRiskLevels = dashboardRiskLevels.map( (level) => { return Object.keys(riskLevels).find(key => riskLevels[key] === level ); }); if (dashboardRiskLevels.length > 0) { updateFieldAttribute('vulnerability_notification_sitewide', 'disabled', dashboardRiskLevels); //if the current value is below the dashboardRisk Level, set it to the dashboardRiskLevel let siteWideRiskLevel = getFieldValue('vulnerability_notification_sitewide'); siteWideRiskLevel = riskLevels.hasOwnProperty(siteWideRiskLevel) ? riskLevels[siteWideRiskLevel] : 0; if (siteWideRiskLevel<dashboardRiskLevel) { let newRiskLevel = Object.keys(riskLevels).find(key => riskLevels[key] === dashboardRiskLevel ); updateField('vulnerability_notification_sitewide', newRiskLevel); setChangedField('vulnerability_notification_sitewide', newRiskLevel); } } else { updateFieldAttribute('vulnerability_notification_sitewide', 'disabled', false); } },[getFieldValue('vulnerability_notification_dashboard')]) let fieldCopy = {...field}; if (!mailNotificationsEnabled) { fieldCopy.tooltip = __('You have not enabled the email notifications in the general settings.','really-simple-ssl'); fieldCopy.warning = true; } else if (vulnerabilitiesEnabled && !vulnerabilitiesSaved) { fieldCopy.tooltip = __('The notification test only works if you save the setting first.','really-simple-ssl'); fieldCopy.warning = true; } return ( <> <label>{props.labelWrap(fieldCopy)}</label> <button onClick={ () => doTestNotification()} disabled={ disabled } className="button button-default">{field.button_text}</button> </> ) } export default NotificationTester src/Settings/RiskConfiguration/RunnerData.js 0000666 00000000706 15165313625 0015212 0 ustar 00 import {create} from "zustand"; const useRunnerData = create((set, get) => ({ // loadingState : false, // setLoadingState: (state) => set({loadingState: state}), // title: '', // setTitle: (title) => set({title: title}), // time: 0, // setTime: (time) => set({time: time}), // delay: 0, // setDelay: (delay) => set({delay: delay}), step:0, setStep: (step) => set({step: step}), })); export default useRunnerData; src/Settings/RiskConfiguration/VulnerabilitiesIntro.js 0000666 00000007777 15165313625 0017343 0 ustar 00 import {__} from "@wordpress/i18n"; import {Button, Modal} from "@wordpress/components"; import {useState,useEffect} from '@wordpress/element'; import Runner from "./Runner"; import useRunnerData from "./RunnerData"; const VulnerabilitiesIntro = () => { //first we define a state for the steps const [ isClosed, setClosed ] = useState( false ); const [ disabled, setDisabled ] = useState( true ); const {step} = useRunnerData(); useEffect (() => { if (step===4) { setDisabled(false); } },[step]) const closeOnX = () => { if (!disabled) { setClosed(true); } } //this function closes the modal when onClick is activated if(!isClosed) { return ( <> <Modal title={__('Introducing vulnerabilities', 'really-simple-ssl')} className="rsssl-modal" onRequestClose={() => closeOnX()} shouldCloseOnClickOutside={true} shouldCloseOnEsc={true} overlayClassName="rsssl-modal-overlay" > <div className="rsssl-header-extension"> <div> <p> {__("You have enabled vulnerability detection! Really Simple SSL will check your plugins, themes and WordPress core daily and report if any known vulnerabilities are found.", "really-simple-ssl")} </p> <img className="rsssl-intro-logo" src={rsssl_settings.plugin_url+'/assets/img/really-simple-ssl-intro.svg'}> </img> </div> </div> <div className="rsssl-ssl-intro-container"> <Runner title={__("Preparing vulnerability detection", "really-simple-ssl")} name={"first_runner"} loading={true} currentStep={1} /> <Runner title={__("Collecting plugin, theme and core data", "really-simple-ssl")} name={"second_runner"} loading={true} currentStep={2} /> <Runner title={__("Scanning your WordPress configuration", "really-simple-ssl")} name={"third_runner"} loading={true} currentStep={3} /> <Runner title={__("Reporting enabled", "really-simple-ssl")} name={"fourth_runner"} loading={true} currentStep={4} /> </div> <div className={'rsssl-modal-footer'}> <Button disabled={disabled} isPrimary onClick={() => { setClosed(true); //we redirect to dashboard window.location.hash = "dashboard"; }} > {__('Dashboard', 'really-simple-ssl')} </Button> <Button disabled={disabled} isSecondary onClick={() => { setClosed(true); }} > {__('Dismiss', 'really-simple-ssl')} </Button> </div> </Modal> </> ) } //in case the modal is closed we return null return null; } export default VulnerabilitiesIntro; src/Settings/RiskConfiguration/RiskComponent.js 0000666 00000007074 15165313625 0015747 0 ustar 00 import React, {useEffect,useState} from 'react'; import UseRiskData from "./RiskData"; import {__} from "@wordpress/i18n"; import useFields from "../FieldsData"; const RiskComponent = (props) => { //first we put the data in a state const {riskData, dummyRiskData, processing, dataLoaded, fetchVulnerabilities, updateRiskData} = UseRiskData(); const { fields, fieldAlreadyEnabled, getFieldValue, setChangedField, updateField, saveFields} = useFields(); const [measuresEnabled, setMeasuresEnabled] = useState(false); const [vulnerabilityDetectionEnabled, setVulnerabilityDetectionEnabled] = useState(false); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); useEffect(() => { if ( fieldAlreadyEnabled('enable_vulnerability_scanner')) { if (!dataLoaded) { fetchVulnerabilities(); } } let vulnerabilitiesEnabled = fieldAlreadyEnabled('enable_vulnerability_scanner' ); setVulnerabilityDetectionEnabled(vulnerabilitiesEnabled); let measuresOn = getFieldValue('measures_enabled')==1; setMeasuresEnabled(measuresOn); }, [fields]); /** * Initialize */ useEffect(() => { let enabled = getFieldValue('measures_enabled')==1; setMeasuresEnabled(enabled); }, [] ); //we create the columns let columns = []; //getting the fields from the props let field = props.field; //we loop through the fields field.columns.forEach(function (item, i) { let newItem = buildColumn(item) columns.push(newItem); }); //now we get the options for the select control let options = props.field.options; //we divide the key into label and the value into value options = Object.entries(options).map((item) => { return {label: item[1], value: item[0]}; }); //and we add the select control to the data let data = [...riskData]; data = data.length===0 ? [...dummyRiskData] : data; let disabled = !vulnerabilityDetectionEnabled || !measuresEnabled; for (const key in data) { let dataItem = {...data[key]} dataItem.riskSelection = <select disabled={processing || disabled} value={dataItem.value} onChange={(e) => onChangeHandler(e.target.value, dataItem)}> {options.map((option,i) => <option key={i} value={option.value} disabled={ dataItem.disabledRiskLevels && dataItem.disabledRiskLevels.includes(option.value)} >{option.label}</option>) } </select> data[key] = dataItem; } let processingClass = disabled ? 'rsssl-processing' : ''; return ( <div className={processingClass}> {DataTable && <DataTable columns={columns} data={Object.values(data)} theme={theme} /> } </div> ) function buildColumn(column) { return { name: column.name, sortable: column.sortable, width: column.width, selector: row => row[column.column], grow: column.grow, }; } function onChangeHandler(fieldValue, item) { updateRiskData(item.id, fieldValue); } } export default RiskComponent; src/Settings/SelectControl.js 0000666 00000002351 15165313625 0012265 0 ustar 00 /* * The native selectControl doesn't allow disabling per option. */ const SelectControl = (props) => { let field = props.field; let selectDisabled = !Array.isArray(props.disabled) && props.disabled; let optionsDisabled = Array.isArray(props.disabled) ? props.disabled : false; return ( <> <div className="components-base-control"> <div className="components-base-control__field"> <div data-wp-component="HStack" className="components-flex components-select-control"> <label htmlFor={field.id} className="components-toggle-control__label">{props.label}</label> <select disabled={selectDisabled} value={props.value} onChange={(e) => props.onChangeHandler(e.target.value)}> {props.options.map((option,i) => <option key={i} value={option.value} disabled={optionsDisabled && optionsDisabled.includes(option.value)}>{option.label}</option>) } </select> </div> </div> </div> {field.comment && <div className="rsssl-comment" dangerouslySetInnerHTML={{__html:field.comment}}></div>} </> ); } export default SelectControl src/Settings/SettingsGroup.js 0000666 00000013457 15165313625 0012333 0 ustar 00 import Hyperlink from "../utils/Hyperlink"; import getAnchor from "../utils/getAnchor"; import {__} from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import useFields from "../Settings/FieldsData"; import useMenu from "../Menu/MenuData"; import useLicense from "./License/LicenseData"; import {useEffect,useState} from '@wordpress/element'; /** * Render a grouped block of settings */ const SettingsGroup = (props) => { const {fields} = useFields(); const {licenseStatus} = useLicense(); const {selectedSubMenuItem, subMenu} = useMenu(); const [Field, setField] = useState(null); useEffect( () => { import("./Field").then(({ default: Field }) => { setField(() => Field); }); }, []); let upgrade='https://really-simple-ssl.com/pro/?mtm_campaign=fallback&mtm_source=free&mtm_content=upgrade'; /* * On reset of LE, send this info to the back-end, and redirect to the first step. * reload to ensure that. */ const handleLetsEncryptReset = (e) => { e.preventDefault(); rsssl_api.runLetsEncryptTest('reset' ).then( ( response ) => { window.location.href = window.location.href.replace(/#letsencrypt.*/, '&r=' + (+new Date()) + '#letsencrypt/le-system-status'); }); } let selectedFields = []; //get all fields with group_id props.group_id for (const selectedField of fields){ if (selectedField.group_id === props.group ){ selectedFields.push(selectedField); } } let activeGroup; //first, set the selected menu item as activate group, so we have a default in case there are no groups for (const item of subMenu.menu_items){ if (item.id === selectedSubMenuItem ) { activeGroup = item; } else if (item.menu_items) { activeGroup = item.menu_items.filter(menuItem => menuItem.id === selectedSubMenuItem)[0]; } if ( activeGroup ) { break; } } //now check if we have actual groups for (const item of subMenu.menu_items){ if (item.id === selectedSubMenuItem && item.hasOwnProperty('groups')) { let currentGroup = item.groups.filter(group => group.id === props.group); if (currentGroup.length>0) { activeGroup = currentGroup[0]; } } } if ( !activeGroup ) { return (<></>); } let msg = activeGroup.premium_text ? activeGroup.premium_text : __("Learn more about %sPremium%s", "really-simple-ssl"); if ( rsssl_settings.pro_plugin_active ) { if ( licenseStatus === 'empty' || licenseStatus === 'deactivated' ) { msg = rsssl_settings.messageInactive; } else { msg = rsssl_settings.messageInvalid; } if (rsssl_settings.pro_incompatible) { msg = __("You are using an incompatible version of Really Simple SSL pro. Please update to the latest version.", "really-simple-ssl"); } } let disabled = (licenseStatus !=='valid' || rsssl_settings.pro_incompatible ) && activeGroup.premium; //if a feature can only be used on networkwide or single site setups, pass that info here. let networkwide_error = !rsssl_settings.networkwide_active && activeGroup.networkwide_required; upgrade = activeGroup.upgrade ? activeGroup.upgrade : upgrade; let helplinkText = activeGroup.helpLink_text ? activeGroup.helpLink_text : __("Instructions","really-simple-ssl"); let anchor = getAnchor('main'); let disabledClass = disabled || networkwide_error ? 'rsssl-disabled' : ''; return ( <div className={"rsssl-grid-item rsssl-"+activeGroup.id + ' ' + disabledClass}> {activeGroup.title && <div className="rsssl-grid-item-header"> <h3 className="rsssl-h4">{activeGroup.title}</h3> {activeGroup.helpLink && anchor!=='letsencrypt'&& <div className="rsssl-grid-item-controls"><Hyperlink target="_blank" className="rsssl-helplink" text={helplinkText} url={activeGroup.helpLink}/></div>} {anchor==='letsencrypt' && <div className="rsssl-grid-item-controls"> <a href="#" className="rsssl-helplink" onClick={ (e) => handleLetsEncryptReset(e) }>{__("Reset Let's Encrypt","really-simple-ssl")}</a> </div>} </div>} <div className="rsssl-grid-item-content"> {activeGroup.intro && <div className="rsssl-settings-block-intro">{activeGroup.intro}</div>} {Field && selectedFields.map((field, i) => <Field key={"selectedFields-"+i} index={i} field={field} fields={selectedFields}/>)} </div> {disabled && !networkwide_error && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-task-status rsssl-premium">{__("Upgrade","really-simple-ssl")}</span> <span> { rsssl_settings.pro_plugin_active && <span>{msg} <a className="rsssl-locked-link" href="#settings/license">{__("Check license", "really-simple-ssl")}</a></span>} { !rsssl_settings.pro_plugin_active && <Hyperlink target="_blank" text={msg} url={upgrade}/> } </span> </div> </div>} {networkwide_error && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-task-status rsssl-warning">{__("Network feature","really-simple-ssl")}</span> <span>{__("This feature is only available networkwide.","really-simple-ssl")}<Hyperlink target="_blank" text={__("Network settings","really-simple-ssl")} url={rsssl_settings.network_link}/></span> </div> </div>} </div> ) } export default SettingsGroup src/Settings/Field.js 0000666 00000025462 15165313625 0010540 0 ustar 00 import { TextControl, RadioControl, TextareaControl, __experimentalNumberControl as NumberControl } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import License from "./License/License"; import Password from "./Password"; import SelectControl from "./SelectControl"; import Host from "./Host"; import Hyperlink from "../utils/Hyperlink"; import LetsEncrypt from "../LetsEncrypt/LetsEncrypt"; import Activate from "../LetsEncrypt/Activate"; import MixedContentScan from "./MixedContentScan/MixedContentScan"; import PermissionsPolicy from "./PermissionsPolicy"; import CheckboxControl from "./CheckboxControl"; import Support from "./Support"; import LearningMode from "./LearningMode/LearningMode"; import RiskComponent from "./RiskConfiguration/RiskComponent"; import VulnerabilitiesOverview from "./RiskConfiguration/vulnerabilitiesOverview"; import Button from "./Button"; import Icon from "../utils/Icon"; import { useEffect, useState } from "@wordpress/element"; import useFields from "./FieldsData"; import PostDropdown from "./PostDropDown"; import NotificationTester from "./RiskConfiguration/NotificationTester"; import getAnchor from "../utils/getAnchor"; const Field = (props) => { let scrollAnchor = React.createRef(); const {updateField, setChangedField, highLightField} = useFields(); const [anchor, setAnchor] = useState(null); useEffect( () => { //check if the url contains the query variable 'anchor' setAnchor(getAnchor('anchor')) handleAnchor(); if ( highLightField===props.field.id && scrollAnchor.current ) { scrollAnchor.current.scrollIntoView({ behavior: 'smooth', block: 'start' }); } },[]); useEffect( () => { handleAnchor(); },[anchor]); window.addEventListener('hashchange', (e) => { setAnchor(getAnchor('anchor')); }); const handleAnchor = () => { if ( anchor && anchor === props.field.id ) { scrollAnchor.current.scrollIntoView({ behavior: 'smooth', block: 'start' }); } } const onChangeHandler = (fieldValue) => { let field = props.field; updateField(field.id, fieldValue); //we can configure other fields if a field is enabled, or set to a certain value. let configureFieldCondition = false; if ( field.configure_on_activation ) { if ( field.configure_on_activation.hasOwnProperty('condition') && props.field.value==field.configure_on_activation.condition ) { configureFieldCondition = true; } let configureField = field.configure_on_activation[0]; for (let fieldId in configureField ) { if ( configureFieldCondition && configureField.hasOwnProperty(fieldId) ) { updateField(fieldId, configureField[fieldId] ); } } } setChangedField( field.id, fieldValue ); } const labelWrap = (field) => { let tooltipColor = field.warning ? 'red': 'black'; return ( <> <div className="cmplz-label-text">{field.label}</div> {field.tooltip && <Icon name = "info-open" tooltip={field.tooltip} color = {tooltipColor} />} </> ) } let field = props.field; let fieldValue = field.value; let disabled = field.disabled; let highLightClass = 'rsssl-field-wrap'; if ( highLightField===props.field.id ) { highLightClass = 'rsssl-field-wrap rsssl-highlight'; } let options = []; if ( field.options ) { for (var key in field.options) { if (field.options.hasOwnProperty(key)) { let item = {}; item.label = field.options[key]; item.value = key; options.push(item); } } } //if a feature can only be used on networkwide or single site setups, pass that info here. if ( !rsssl_settings.networkwide_active && field.networkwide_required ) { disabled = true; field.comment = <> {__("This feature is only available networkwide.","really-simple-ssl")} <Hyperlink target="_blank" text={__("Network settings","really-simple-ssl")} url={rsssl_settings.network_link}/> </> } if ( field.conditionallyDisabled ) { disabled = true; } if ( !field.visible ) { return ( <></> ); } if ( field.type==='checkbox' ){ return ( <div className={highLightClass} ref={scrollAnchor}> <CheckboxControl label={labelWrap(field)} field={field} disabled={disabled} onChangeHandler={ ( fieldValue ) => onChangeHandler(fieldValue) } /> {field.comment && <div className="rsssl-comment" dangerouslySetInnerHTML={{__html:field.comment}}></div>} </div> ); } if ( field.type==='hidden' ){ return ( <input type="hidden" value={field.value}/> ); } if ( field.type==='radio' ){ return ( <div className={highLightClass} ref={scrollAnchor}> <RadioControl label={labelWrap(field)} onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } selected={ fieldValue } options={ options } /> </div> ); } if ( field.type==='text' || field.type==='email' ){ return ( <div className={highLightClass} ref={scrollAnchor}> <TextControl required={ field.required } placeholder={ field.placeholder } disabled={ disabled } help={ field.comment } label={labelWrap(field)} onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } value= { fieldValue } /> </div> ); } if ( field.type==='button' ){ return ( <div className={'rsssl-field-button ' + highLightClass} ref={scrollAnchor}> <label>{field.label}</label> <Button field={field}/> </div> ); } if ( field.type==='password' ){ return ( <div className={ highLightClass} ref={scrollAnchor}> <Password index={ props.index } field={ field } /> </div> ); } if ( field.type==='textarea' ){ return ( <div className={highLightClass} ref={scrollAnchor}> <TextareaControl label={ field.label } help={ field.comment } value= { fieldValue } onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } disabled={ field.disabled } /> </div> ); } if ( field.type==='license' ){ let field = props.field; let fieldValue = field.value; return ( <div className={highLightClass} ref={scrollAnchor}> <License index={props.index} field={field} fieldValue={fieldValue}/> </div> ); } if ( field.type==='number' ){ return ( <div className={highLightClass} ref={scrollAnchor}> <NumberControl onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } help={ field.comment } label={ field.label } value= { fieldValue } /> </div> ); } if ( field.type==='email' ){ return ( <div className={this.highLightClass} ref={this.scrollAnchor}> <TextControl help={ field.comment } label={ field.label } onChange={ ( fieldValue ) => this.onChangeHandler(fieldValue) } value= { fieldValue } /> </div> ); } if ( field.type==='host') { return ( <div className={highLightClass} ref={scrollAnchor}> <Host index={props.index} field={props.field} /> </div> ) } if ( field.type==='select') { return ( <div className={highLightClass} ref={scrollAnchor}> <SelectControl disabled={ disabled } label={labelWrap(field)} onChangeHandler={ ( fieldValue ) => onChangeHandler(fieldValue) } value= { fieldValue } options={ options } field={field} /> </div> ) } if ( field.type==='support' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <Support/> </div> ) } if ( field.type==='postdropdown' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <PostDropdown field={props.field}/> </div> ) } if ( field.type==='permissionspolicy' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <PermissionsPolicy disabled={disabled} field={props.field} options={options}/> </div> ) } if ( field.type==='learningmode' ) { return( <div className={highLightClass} ref={scrollAnchor}> <LearningMode disabled={disabled} field={props.field}/> </div> ) } if ( field.type==='riskcomponent' ) { return (<div className={highLightClass} ref={scrollAnchor}> <RiskComponent field={props.field}/> </div>) } if ( field.type === 'mixedcontentscan' ) { return ( <div className={highLightClass} ref={scrollAnchor}> <MixedContentScan field={props.field}/> </div> ) } if (field.type === 'vulnerabilitiestable') { return ( <div className={highLightClass} ref={scrollAnchor}> <VulnerabilitiesOverview field={props.field} /> </div> ) } if(field.type === 'notificationtester') { return ( <div className={'rsssl-field-button ' + highLightClass} ref={scrollAnchor}> <NotificationTester field={props.field} labelWrap={labelWrap}/> </div> ) } if ( field.type === 'letsencrypt' ) { return ( <LetsEncrypt field={field} /> ) } if ( field.type === 'activate' ) { return ( <Activate field={field}/> ) } return ( 'not found field type '+field.type ); } export default Field; src/Settings/Notices.js 0000666 00000001416 15165313625 0011112 0 ustar 00 /** * Notice after saving was successfull */ import { SnackbarList } from '@wordpress/components'; import { useDispatch, useSelect, } from '@wordpress/data'; import { store as noticesStore } from '@wordpress/notices'; const Notices = () => { const notices = useSelect( ( select ) => select( noticesStore ) .getNotices() .filter( ( notice ) => notice.type === 'snackbar' ), [] ); if ( typeof notices === 'undefined' ) { return (<></>) } const { removeNotice } = useDispatch( noticesStore ); return ( <SnackbarList className="edit-site-notices" notices={ notices } onRemove={ removeNotice } /> ); }; export default Notices; src/Settings/PermissionsPolicy.js 0000666 00000012235 15165313625 0013202 0 ustar 00 import { SelectControl, } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import {useState,useEffect} from '@wordpress/element'; import Icon from "../utils/Icon"; import useFields from "./FieldsData"; const PermissionsPolicy = (props) => { const {fields, updateField, updateSubField, setChangedField, saveFields} = useFields(); const [enablePermissionsPolicy, setEnablePermissionsPolicy] = useState(0); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); useEffect( () => { let field = fields.filter(field => field.id === 'enable_permissions_policy')[0]; setEnablePermissionsPolicy(field.value); }, [] ); const onChangeHandler = (value, clickedItem ) => { let field= props.field; if (typeof field.value === 'object') { updateField(field.id, Object.values(field.value)) } //the updateItemId allows us to update one specific item in a field set. updateSubField(field.id, clickedItem.id, value); setChangedField(field.id, value); saveFields(true, false); } const togglePermissionsPolicyStatus = (e, enforce) => { e.preventDefault(); //look up permissions policy enable field //enable_permissions_policy let field = fields.filter(field => field.id === 'enable_permissions_policy')[0]; //enforce setting setEnablePermissionsPolicy(enforce); updateField(field.id, enforce); setChangedField(field.id, field.value); saveFields(true, false); } let field = props.field; let fieldValue = field.value; let options = props.options; columns = []; field.columns.forEach(function(item, i) { let newItem = { name: item.name, sortable: item.sortable, width: item.width, selector: row => row[item.column], } columns.push(newItem); }); let data = field.value; if (typeof data === 'object') { data = Object.values(data); } if (!Array.isArray(data) ) { data = []; } let disabled = false; let outputData = []; for (const item of data){ let itemCopy = {...item}; itemCopy.valueControl = <SelectControl help='' value={item.value} disabled={disabled} options={options} label='' onChange={ ( fieldValue ) => onChangeHandler( fieldValue, item, 'value' ) } /> outputData.push(itemCopy); } const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; if (!DataTable || !theme) return null; return ( <div> <DataTable columns={columns} data={outputData} dense pagination={false} customStyles={customStyles} theme={theme} /> { enablePermissionsPolicy!=1 && <button className="button button-primary" onClick={ (e) => togglePermissionsPolicyStatus(e, true ) }>{__("Enforce","really-simple-ssl")}</button> } { enablePermissionsPolicy==1 && <div className="rsssl-locked"> <div className="rsssl-shield-overlay"> <Icon name = "shield" size="80px"/> </div> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode-enforced">{__("Enforced","really-simple-ssl")}</span> { props.disabled && <>{ __("Permissions Policy is set outside Really Simple SSL.", "really-simple-ssl")} </>} { !props.disabled && <>{__("Permissions Policy is enforced.", "really-simple-ssl")} </>} { !props.disabled && <a className="rsssl-learning-mode-link" href="#" onClick={ (e) => togglePermissionsPolicyStatus(e, false) }>{__("Disable", "really-simple-ssl") }</a> } </div> </div>} { props.disabled && enablePermissionsPolicy!=1 && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-disabled">{__("Disabled","really-simple-ssl")}</span> {__("The Permissions Policy has been disabled.", "really-simple-ssl")} </div> </div>} </div> ) } export default PermissionsPolicy src/Settings/LearningMode/LearningMode.js 0000666 00000027162 15165313625 0014424 0 ustar 00 import { __ } from '@wordpress/i18n'; import {useState,useEffect} from '@wordpress/element'; import ChangeStatus from "./ChangeStatus"; import Delete from "./Delete"; import Icon from "../../utils/Icon"; import useFields from "./../FieldsData"; import useLearningMode from "./LearningModeData"; const LearningMode = (props) => { const {updateField, getFieldValue, getField, setChangedField, highLightField, saveFields} = useFields(); const {fetchLearningModeData, learningModeData, dataLoaded} = useLearningMode(); //used to show if a feature is already enforced by a third party const [enforcedByThirdparty, setEnforcedByThirdparty] = useState(0); //toggle from enforced to not enforced const [enforce, setEnforce] = useState(0); //toggle from learning mode to not learning mode const [learningMode, setLearningMode] = useState(0); //set learning mode to completed const [learningModeCompleted, setLearningModeCompleted] = useState(0); const [hasError, setHasError] = useState(false); //check if learningmode has been enabled at least once const [lmEnabledOnce, setLmEnabledOnce] = useState(0); //filter the data const [filterValue, setFilterValue] = useState(-1); //the value that is used to enable or disable this feature. On or of. const [controlField, setControlField] = useState(false); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); /** * Styling */ const conditionalRowStyles = [ { when: row => row.status ==0, classNames: ['rsssl-datatables-revoked'], }, ]; const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; ; /** * Initialize */ useEffect(() => { const run = async () => { await fetchLearningModeData(props.field.id); let controlField = getField(props.field.control_field ); let enforced_by_thirdparty = controlField.value === 'enforced-by-thirdparty'; let enforce = enforced_by_thirdparty || controlField.value === 'enforce'; setControlField(controlField); setEnforcedByThirdparty(enforced_by_thirdparty); setLearningModeCompleted(controlField.value==='completed'); setHasError(controlField.value==='error'); setLmEnabledOnce(getFieldValue(props.field.control_field+'_lm_enabled_once')) setEnforce(enforce); setLearningMode(controlField.value === 'learning_mode'); } run(); }, [enforce, learningMode] ); const toggleEnforce = (e, enforceValue) => { e.preventDefault(); //enforce this setting let controlFieldValue = enforceValue==1 ? 'enforce' : 'disabled'; setEnforce(enforceValue); setLearningModeCompleted(0); setLearningMode(0); setChangedField(controlField.id, controlFieldValue); updateField(controlField.id, controlFieldValue); saveFields(true, false); fetchLearningModeData(); } const toggleLearningMode = async (e) => { e.preventDefault(); let lmEnabledOnceField = getField(props.field.control_field+'_lm_enabled_once'); if ( learningMode ) { setLmEnabledOnce(1); updateField(lmEnabledOnceField.id, 1); } let controlFieldValue; if ( learningMode || learningModeCompleted ) { setLearningMode(0); controlFieldValue = 'disabled'; } else { setLearningMode(1); controlFieldValue = 'learning_mode'; } setLearningModeCompleted(0); setChangedField(controlField.id, controlFieldValue); updateField(controlField.id, controlFieldValue); setChangedField(lmEnabledOnceField.id, lmEnabledOnceField.value); updateField(lmEnabledOnceField, lmEnabledOnceField.value); await saveFields(true, false); } const Filter = () => ( <> <select onChange={ ( e ) => setFilterValue(e.target.value) } value={filterValue}> <option value="-1" >{__("All", "really-simple-ssl")}</option> <option value="1" >{__("Allowed", "really-simple-ssl")}</option> <option value="0" >{__("Blocked", "really-simple-ssl")}</option> </select> </> ); let field = props.field; let configuringString = __(" The %s is now in report-only mode and will collect directives. This might take a while. Afterwards you can Exit, Edit and Enforce these Directives.", "really-simple-ssl").replace('%s', field.label); let disabledString = __("%s has been disabled.", "really-simple-ssl").replace('%s', field.label); let enforcedString = __("%s is enforced.", "really-simple-ssl").replace('%s', field.label); let enforceDisabled = !lmEnabledOnce; if (enforcedByThirdparty) disabledString = __("%s is already set outside Really Simple SSL.", "really-simple-ssl").replace('%s', field.label); let highLightClass = 'rsssl-field-wrap'; if ( highLightField===props.field.id ) { highLightClass = 'rsssl-field-wrap rsssl-highlight'; } //build our header let columns = []; field.columns.forEach(function(item, i) { let newItem = { name: item.name, sortable: item.sortable, width: item.width, selector: row => row[item.column], } columns.push(newItem); }); let data = learningModeData; data = data.filter(item => item.status<2); if (filterValue!=-1) { data = data.filter(item => item.status==filterValue); } for (const item of data){ if (item.login_status) item.login_statusControl = item.login_status == 1 ? __("success", "really-simple-ssl") : __("failed", "really-simple-ssl"); item.statusControl = <ChangeStatus item={item} field={props.field} />; item.deleteControl = <Delete item={item} field={props.field}/>; } if (!DataTable || !theme) return null; return ( <> <div> { !dataLoaded || data.length==0 && <> <div className="rsssl-learningmode-placeholder"> <div></div><div></div><div></div><div></div> </div> </>} {data.length>0 && <> <DataTable columns={columns} data={data} dense pagination noDataComponent={__("No results", "really-simple-ssl")} persistTableHead theme={theme} customStyles={customStyles} conditionalRowStyles={conditionalRowStyles} /></> } <div key="2" className={"rsssl-learning-mode-footer "}> {hasError && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode-error">{__("Error detected","really-simple-ssl")}</span> {__("%s cannot be implemented due to server limitations. Check your notices for the detected issue.", "really-simple-ssl").replace('%s', field.label)} <a className="rsssl-learning-mode-link" href="#" onClick={ (e) => toggleEnforce(e, false ) }>{__("Disable", "really-simple-ssl") }</a> </div> </div> } {!hasError && <> { enforce!=1 && <button disabled={enforceDisabled} className="button button-primary" onClick={ (e) => toggleEnforce(e, true ) }>{__("Enforce","really-simple-ssl")}</button> } { !enforcedByThirdparty && enforce==1 && <button className="button" onClick={ (e) => toggleEnforce(e, false ) }>{__("Disable","really-simple-ssl")}</button> } <label> <input type="checkbox" disabled = {enforce} checked ={learningMode==1} value = {learningMode} onChange={ ( e ) => toggleLearningMode(e) } /> {__("Enable Learning Mode to configure automatically","really-simple-ssl")} </label> { enforce==1 && <div className="rsssl-locked"> <div className="rsssl-shield-overlay"> <Icon name = "shield" size="80px"/> </div> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode-enforced">{__("Enforced","really-simple-ssl")}</span> {enforcedString} <a className="rsssl-learning-mode-link" href="#" onClick={ (e) => toggleEnforce(e) }>{__("Disable to configure", "really-simple-ssl") }</a> </div> </div>} {learningMode==1 && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode">{__("Learning Mode","really-simple-ssl")}</span> {configuringString} <a className="rsssl-learning-mode-link" href="#" onClick={ (e) => toggleLearningMode(e) }>{__("Exit", "really-simple-ssl") }</a> </div> </div>} { learningModeCompleted==1 && <div className="rsssl-locked"> <div className="rsssl-locked-overlay"> <span className="rsssl-progress-status rsssl-learning-mode-completed">{__("Learning Mode","really-simple-ssl")}</span> {__("We finished the configuration.", "really-simple-ssl")} <a className="rsssl-learning-mode-link" href="#" onClick={ (e) => toggleLearningMode(e) }>{__("Review the settings and enforce the policy", "really-simple-ssl") }</a> </div> </div> } { rsssl_settings.pro_plugin_active && props.disabled && <div className="rsssl-locked "> <div className="rsssl-locked-overlay"> { !enforcedByThirdparty && <span className="rsssl-progress-status rsssl-disabled">{__("Disabled","really-simple-ssl")}</span> } { enforcedByThirdparty && <span className="rsssl-progress-status rsssl-learning-mode-enforced">{__("Enforced","really-simple-ssl")}</span> } { disabledString } </div> </div>} </> } <Filter /> </div> </div> </> ) } export default LearningMode src/Settings/LearningMode/LearningModeData.js 0000666 00000005520 15165313625 0015210 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const UseLearningMode = create(( set, get ) => ({ learningModeData: [], dataLoaded: false, fetchLearningModeData: async (type) => { let data = {}; data.type = type; data.lm_action = 'get'; let learningModeData = await rsssl_api.doAction('learning_mode_data', data).then((response) => { return response; }) if ( typeof learningModeData === 'object' ) { learningModeData = Object.values(learningModeData); } if ( !Array.isArray(learningModeData) ) { learningModeData = []; } set({ learningModeData: learningModeData, dataLoaded:true, }); }, updateStatus: async (enabled, updateItem, type) => { let learningModeData = get().learningModeData; let data = {}; data.type = type; data.updateItemId = updateItem.id; data.enabled = enabled==1 ? 0 : 1; data.lm_action = 'update'; //for fast UX feel, update the state before we post for (const item of learningModeData){ if (updateItem.id === item.id && item.status) { item.status = data.enabled; } } set({ learningModeData: learningModeData, }); learningModeData = await rsssl_api.doAction('learning_mode_data', data).then((response) => { return response; }) if ( typeof learningModeData === 'object' ) { learningModeData = Object.values(learningModeData); } if ( !Array.isArray(learningModeData) ) { learningModeData = []; } set({ learningModeData: learningModeData, dataLoaded:true, }); }, deleteData: async (deleteItem, type) => { let learningModeData = get().learningModeData; let data = {}; data.type = type; data.updateItemId = deleteItem.id; data.lm_action = 'delete'; //for fast UX feel, update the state before we post learningModeData.forEach(function(item, i) { if (item.id === deleteItem.id) { learningModeData.splice(i, 1); } }); set({ learningModeData: learningModeData, }); learningModeData = await rsssl_api.doAction('learning_mode_data', data).then((response) => { return response; }) if ( typeof learningModeData === 'object' ) { learningModeData = Object.values(learningModeData); } if ( !Array.isArray(learningModeData) ) { learningModeData = []; } set({ learningModeData: learningModeData, dataLoaded:true, }); }, })); export default UseLearningMode; src/Settings/LearningMode/Delete.js 0000666 00000001563 15165313625 0013257 0 ustar 00 import useLearningMode from "./LearningModeData"; const Delete = (props) => { const {deleteData} = useLearningMode(); return ( <button type="button" className=" rsssl-learning-mode-delete" onClick={ () => deleteData( props.item, props.field.id ) }> <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height="16" > <path fill="#000000" d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/> </svg> </button> ) } export default Delete src/Settings/LearningMode/ChangeStatus.js 0000666 00000001131 15165313625 0014435 0 ustar 00 import { __ } from '@wordpress/i18n'; import useLearningMode from "./LearningModeData"; const ChangeStatus = (props) => { const {updateStatus} = useLearningMode(); let statusClass = props.item.status==1 ? 'button button-primary rsssl-status-allowed' : 'button button-default rsssl-status-revoked'; let label = props.item.status==1 ? __("Revoke", "really-simple-ssl") : __("Allow", "really-simple-ssl"); return ( <button onClick={ () => updateStatus( props.item.status, props.item, props.field.id ) } className={statusClass}>{label}</button> ) } export default ChangeStatus src/Settings/MixedContentScan/MixedContentData.js 0000666 00000006253 15165313625 0016113 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const UseMixedContent = create(( set, get ) => ({ mixedContentData: [], dataLoaded:false, fixedItemId:false, action:'', nonce:'', completedStatus:'never', progress:0, scanStatus:false, fetchMixedContentData: async () => { set({ scanStatus: 'running' } ); const {data, progress, state, action, nonce, completed_status } = await getScanIteration(false); set({ scanStatus: state, mixedContentData: data, progress: progress, action: action, nonce: nonce, completedStatus: completed_status, dataLoaded: true, }); }, start: async () => { const {data, progress, state, action, nonce, completed_status } = await getScanIteration('start'); set({ scanStatus: state, mixedContentData: data, progress: progress, action: action, nonce: nonce, completedStatus: completed_status, dataLoaded:true, }); }, runScanIteration: async () => { let currentState = get().scanStatus; if ( currentState==='stop' ) { return; } const {data, progress, state, action, nonce, completed_status } = await getScanIteration(currentState); if ( get().scanStatus !== 'stop' ) { set({ scanStatus: state, mixedContentData: data, progress: progress, action: action, nonce: nonce, completedStatus: completed_status, dataLoaded:true, }); } }, stop: async () => { set({ scanStatus: 'stop' } ); const {data, progress, state, action, nonce, completed_status } = await getScanIteration('stop'); set({ scanStatus: 'stop', mixedContentData: data, progress: progress, action: action, nonce: nonce, completedStatus: completed_status, }); }, removeDataItem: (removeItem) => { let data = get().mixedContentData; for (const item of data) { if (item.id===removeItem.id){ item.fixed = true; } } set({ mixedContentData: data, }); }, ignoreDataItem: (ignoreItem) => { let data = get().mixedContentData; for (const item of data) { if (item.id===ignoreItem.id){ item.ignored = true; } } set({ mixedContentData: data, }); } })); export default UseMixedContent; const getScanIteration = async (state) => { return await rsssl_api.runTest('mixed_content_scan', state).then((response) => { let data = response.data; if (typeof data === 'object') { data = Object.values(data); } if ( !Array.isArray(data) ) { data = []; } response.data = data; if ( state==='stop' ) { response.state = 'stop'; } return response; }) } src/Settings/MixedContentScan/MixedContentScan.js 0000666 00000015631 15165313625 0016126 0 ustar 00 import {useState, useEffect} from "@wordpress/element"; import {ToggleControl} from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import ModalControl from "../../Modal/ModalControl"; import Icon from "../../utils/Icon"; import UseMixedContent from "./MixedContentData"; import useModal from "../../Modal/ModalData"; const MixedContentScan = (props) => { const {fixedItems, ignoredItems} = useModal(); const {fetchMixedContentData, mixedContentData, runScanIteration, start, stop, dataLoaded, action, scanStatus, progress, completedStatus, nonce, removeDataItem, ignoreDataItem} = UseMixedContent(); const [showIgnoredUrls, setShowIgnoredUrls] = useState(false); const [resetPaginationToggle, setResetPaginationToggle] = useState(false); const [DataTable, setDataTable] = useState(null); const [theme, setTheme] = useState(null); useEffect( () => { import('react-data-table-component').then(({ default: DataTable, createTheme }) => { setDataTable(() => DataTable); setTheme(() => createTheme('really-simple-plugins', { divider: { default: 'transparent', }, }, 'light')); }); }, []); useEffect( () => { fetchMixedContentData(); }, [] ); useEffect( () => { if (scanStatus==='running') { runScanIteration() } }, [progress, scanStatus] ); const toggleIgnoredUrls = (e) => { setShowIgnoredUrls(!showIgnoredUrls); } let field = props.field; let columns = []; field.columns.forEach(function(item, i) { let newItem = { name: item.name, sortable: item.sortable, grow: item.grow, selector: row => row[item.column], right: !!item.right, } columns.push(newItem); }); let dataTable = dataLoaded ? mixedContentData : []; for (const item of dataTable) { item.warningControl = <span className="rsssl-task-status rsssl-warning">{__("Warning", "really-simple-ssl")}</span> //check if an item was recently fixed or ignored, and update the table if (fixedItems.includes(item.id)) { item.fixed = true; } if (ignoredItems.includes(item.id)) { item.ignored = true; } //give fix and details the url as prop if ( item.fix ) { item.fix.url = item.blocked_url; item.fix.nonce = nonce; } if (item.details) { item.details.url = item.blocked_url; item.details.nonce = nonce; item.details.ignored = item.ignored; } if (item.location.length > 0) { if (item.location.indexOf('http://') !== -1 || item.location.indexOf('https://') !== -1) { item.locationControl = <a href={item.location} target="_blank">{__("View", "really-simple-ssl")}</a> } else { item.locationControl = item.location; } } item.detailsControl = item.details && <ModalControl handleModal={props.handleModal} item={item} id={item.id} btnText={__("Details", "really-simple-ssl")} btnStyle={"secondary"} modalData={item.details}/>; item.fixControl = item.fix && <ModalControl className={"button button-primary"} handleModal={props.handleModal} item={item} id={item.id} btnText={__("Fix", "really-simple-ssl")} btnStyle={"primary"} modalData={item.fix}/>; } if ( !showIgnoredUrls ) { dataTable = dataTable.filter( item => !item.ignored, ); } //filter also recently fixed items dataTable = dataTable.filter( item => !item.fixed, ); let progressOutput =progress+'%'; let startDisabled = scanStatus === 'running'; let stopDisabled = scanStatus !== 'running'; const customStyles = { headCells: { style: { paddingLeft: '0', // override the cell padding for head cells paddingRight: '0', }, }, cells: { style: { paddingLeft: '0', // override the cell padding for data cells paddingRight: '0', }, }, }; return ( <> <div className="rsssl-progress-container"> <div className="rsssl-progress-bar" style={{width: progressOutput}} ></div> </div> {scanStatus==='running' && <div className="rsssl-current-scan-action">{action}</div>} {dataTable.length===0 && <> <div className="rsssl-mixed-content-description"> {scanStatus!=='running' && completedStatus==='never' && __("No results. Start your first scan","really-simple-ssl")} {scanStatus!=='running' && completedStatus==='completed' && __("Everything is now served over SSL","really-simple-ssl")} </div> { (scanStatus ==='running' || completedStatus!=='completed') && <div className="rsssl-mixed-content-placeholder"> <div></div><div></div><div></div> </div> } { scanStatus!=='running' && completedStatus==='completed' && <div className="rsssl-shield-overlay"> <Icon name = "shield" size="80px"/> </div> } </>} { DataTable && dataTable.length>0 && <div className={'rsssl-mixed-content-datatable'}><DataTable columns={columns} data={dataTable} dense pagination paginationResetDefaultPage={resetPaginationToggle} // optionally, a hook to reset pagination to page 1 noDataComponent={__("No results", "really-simple-ssl")} //or your component theme={theme} customStyles={customStyles} /></div> } <div className="rsssl-grid-item-content-footer"> <button className="button" disabled={startDisabled} onClick={ () => start() }>{__("Start scan","really-simple-ssl")}</button> <button className="button" disabled={stopDisabled} onClick={ () => stop() }>{__("Stop","really-simple-ssl")}</button> <ToggleControl checked= { showIgnoredUrls==1 } onChange={ (e) => toggleIgnoredUrls(e) } /> <label>{__('Show ignored URLs', 'really-simple-ssl')}</label> </div> </> ) } export default MixedContentScan; src/Settings/FieldsData.js 0000666 00000034041 15165313625 0011506 0 ustar 00 import {create} from 'zustand'; import {produce} from 'immer'; import * as rsssl_api from "../utils/api"; import sleeper from "../utils/sleeper.js"; import {__} from '@wordpress/i18n'; import {dispatch} from '@wordpress/data'; const fetchFields = () => { return rsssl_api.getFields().then((response) => { let fields = response.fields; let progress = response.progress; let error = response.error; return {fields, progress, error}; }).catch((error) => { console.error(error); }); } const useFields = create(( set, get ) => ({ fieldsLoaded: false, error:false, fields: [], changedFields:[], progress:[], nextButtonDisabled:false, refreshTests:false, highLightField: '', setHighLightField: (highLightField) => { set(state => ({ highLightField })) }, setRefreshTests: (refreshTests) => set(state => ({ refreshTests })), handleNextButtonDisabled: (nextButtonDisabled) => set(state => ({ nextButtonDisabled })), setChangedField: (id, value) => { set( produce((state) => { //remove current reference const existingFieldIndex = state.changedFields.findIndex(field => { return field.id===id; }); if (existingFieldIndex!==-1){ state.changedFields.splice(existingFieldIndex, 1); } //add again, with new value let field = {}; field.id = id; field.value = value; state.changedFields.push(field); }) ) }, showSavedSettingsNotice : (text) => { handleShowSavedSettingsNotice(text); }, updateField: (id, value) => { set( produce((state) => { let index = state.fields.findIndex(fieldItem => fieldItem.id === id); if (index !== -1) { state.fields[index].value = value; } }) ) }, updateFieldAttribute: (id, attribute, value) => { set( produce((state) => { let index = state.fields.findIndex(fieldItem => fieldItem.id === id); if (index !== -1) { state.fields[index][attribute] = value; } }) ) }, updateSubField: (id, subItemId, value) => { set( produce((state) => { let index = state.fields.findIndex(fieldItem => fieldItem.id === id); let itemValue = state.fields[index].value; if (!Array.isArray(itemValue)) { itemValue = []; } let subIndex = itemValue.findIndex(subItem => subItem.id === subItemId); if (subIndex !== -1) { state.fields[index].updateItemId = subItemId; state.fields[index].value[subIndex]['value'] = value; state.fields[index].value = itemValue.map(item => { const { deleteControl, valueControl, statusControl, ...rest } = item; return rest; }); } }) ) }, addHelpNotice : (id, label, text, title, url) => { //create help object let help = {}; help.label=label; help.text=text; if (url) help.url=url; if (title) help.title=title; let fields = get().fields; let newFields = []; //add to selected field let fieldEdited = false; fields.forEach(function(fieldItem, i) { let newFieldItem = {...fieldItem}; if (fieldItem.id === id && !fieldItem.help ){ fieldEdited = true; newFieldItem.help = help; } newFields.push(newFieldItem); }); if (fieldEdited) { set( {fields: newFields} ); } }, fieldAlreadyEnabled: (id) => { let fieldIsChanged = get().changedFields.filter(field => field.id === id ).length>0; let fieldIsEnabled = get().getFieldValue(id); return !fieldIsChanged && fieldIsEnabled; }, getFieldValue : (id) => { let fields = get().fields; let fieldItem = fields.filter(field => field.id === id )[0]; if (fieldItem){ return fieldItem.value; } return false; }, getField : (id) => { let fields = get().fields; let fieldItem = fields.filter(field => field.id === id )[0]; if (fieldItem){ return fieldItem; } return false; }, saveFields: (skipRefreshTests, showSavedNotice) => { let refreshTests = typeof skipRefreshTests !=='undefined' ? skipRefreshTests : true; showSavedNotice = typeof showSavedNotice !=='undefined' ? showSavedNotice : true; let fields = get().fields; fields = fields.filter( field => field.data_target !== 'banner'); let changedFields = get().changedFields; let progress = get().progress; let saveFields = []; //data_target for ( const field of fields ){ let fieldIsIncluded = changedFields.filter( changedField => changedField.id===field.id ).length>0; //also check if there's no saved value yet for radio fields, by checking the never_saved attribute. //a radio or select field looks like it's completed, but won't save if it isn't changed. //this should not be the case for disabled fields, as these fields often are enabled server side because they're enabled outside Really Simple SSL. let select_or_radio = field.type==='select' || field.type==='radio'; if ( fieldIsIncluded || (field.never_saved && !field.disabled && select_or_radio) ){ saveFields.push(field); } } //if no fields were changed, do nothing. if ( saveFields.length>0 ) { rsssl_api.setFields(saveFields).then(( response ) => { progress = response.progress; fields = response.fields; set( produce((state) => { state.changedFields = []; state.fields = fields; state.progress = progress; state.refreshTests = refreshTests; }) ) }); } if (showSavedNotice) { handleShowSavedSettingsNotice(); } }, updateFieldsData: (selectedSubMenuItem) => { let fields = get().fields; fields = updateFieldsListWithConditions(fields); const nextButtonDisabled = isNextButtonDisabled(fields, selectedSubMenuItem); set( produce((state) => { state.fields = fields; state.nextButtonDisabled = nextButtonDisabled; }) ) }, fetchFieldsData: async ( selectedSubMenuItem ) => { const { fields, progress, error } = await fetchFields(); let conditionallyEnabledFields = updateFieldsListWithConditions(fields); let selectedFields = conditionallyEnabledFields.filter(field => field.menu_id === selectedSubMenuItem); set({fieldsLoaded: true, fields:conditionallyEnabledFields, selectedFields:selectedFields, progress:progress, error: error }); } })); export default useFields; //check if all required fields have been enabled. If so, enable save/continue button const isNextButtonDisabled = (fields, selectedMenuItem) => { let fieldsOnPage = []; //get all fields with group_id this.props.group_id for (const field of fields){ if (field.menu_id === selectedMenuItem ){ fieldsOnPage.push(field); } } let requiredFields = fieldsOnPage.filter(field => field.required && !field.conditionallyDisabled && (field.value.length==0 || !field.value) ); return requiredFields.length > 0; } const updateFieldsListWithConditions = (fields) => { let newFields = []; if (!fields || !Array.isArray(fields)) { return []; } fields.forEach(function(field, i) { let enabled = !( field.hasOwnProperty('react_conditions') && !validateConditions(field.react_conditions, fields, field.id) ); let previouslyEnabled = !field.conditionallyDisabled; //we want to update the changed fields if this field has just become visible. Otherwise the new field won't get saved. const newField = {...field}; newField.conditionallyDisabled = !enabled; newField.visible = !(!enabled && (newField.type === 'letsencrypt' || newField.condition_action === 'hide')); newFields.push(newField); //if this is a learning mode field, do not add it to the changed fields list if ( !previouslyEnabled && newField.enabled && field.type!=='learningmode') { set().setChangedField(field.id, field.value); } }); return newFields; } const handleShowSavedSettingsNotice = (text) => { if (typeof text === 'undefined') { text = __( 'Settings Saved', 'really-simple-ssl' ); } dispatch('core/notices').createNotice( 'success', text, { __unstableHTML: true, id: 'rsssl_settings_saved', type: 'snackbar', isDismissible: false, } ).then(sleeper(2000)).then(( response ) => { dispatch('core/notices').removeNotice('rsssl_settings_saved'); }); } const validateConditions = (conditions, fields, fieldId) => { let relation = conditions[0].relation === 'OR' ? 'OR' : 'AND'; let conditionApplies = relation==='AND'; for (const key in conditions) { if ( conditions.hasOwnProperty(key) ) { let thisConditionApplies = relation==='AND'; let subConditionsArray = conditions[key]; if ( subConditionsArray.hasOwnProperty('relation') ) { thisConditionApplies = validateConditions(subConditionsArray, fields, fieldId) } else { for ( let conditionField in subConditionsArray ) { let invert = conditionField.indexOf('!')===0; if ( subConditionsArray.hasOwnProperty(conditionField) ) { let conditionValue = subConditionsArray[conditionField]; conditionField = conditionField.replace('!',''); let conditionFields = fields.filter(field => field.id === conditionField); if ( conditionFields.hasOwnProperty(0) ){ let field = conditionFields[0]; let actualValue = field.value; if ( field.type==='text_checkbox' ) { thisConditionApplies = actualValue.hasOwnProperty('show') && actualValue['show'] == conditionValue;//can be 1/true or 0/false } else if ( field.type==='checkbox' ) { thisConditionApplies = actualValue == conditionValue;//can be 1/true or 0/false } else if ( field.type==='multicheckbox' ) { //multicheckbox conditions //loop through objects thisConditionApplies = false; let arrayValue = actualValue; if ( arrayValue.length===0 ) { thisConditionApplies = false; } else { for (const key of Object.keys(arrayValue)) { if ( !Array.isArray(conditionValue) ) conditionValue = [conditionValue]; if ( conditionValue.includes(arrayValue[key])){ thisConditionApplies = true; break; } } } } else if ( field.type==='radio' ) { //as the regions field can be both radio and multicheckbox, an array is possible for a radio field if ( Array.isArray(conditionValue) ) { thisConditionApplies = conditionValue.includes(actualValue); } else { thisConditionApplies = conditionValue === actualValue; } } else { if (conditionValue === true ) { thisConditionApplies = actualValue===1 || actualValue === "1" || actualValue === true; } else if (conditionValue === false ) { thisConditionApplies = actualValue === 0 || actualValue === "0" || actualValue === false; } else if (conditionValue.indexOf('EMPTY')!==-1) { thisConditionApplies = actualValue.length === 0; } else { thisConditionApplies = String(actualValue).toLowerCase() === conditionValue.toLowerCase(); } } } } if ( invert ){ thisConditionApplies = !thisConditionApplies; } if ( relation === 'AND' ) { conditionApplies = conditionApplies && thisConditionApplies; } else { conditionApplies = conditionApplies || thisConditionApplies; } } if ( relation === 'AND' ) { conditionApplies = conditionApplies && thisConditionApplies; } else { conditionApplies = conditionApplies || thisConditionApplies; } } } } return conditionApplies ? 1 : 0; } src/Settings/Password.js 0000666 00000001761 15165313625 0011313 0 ustar 00 import useFields from "./FieldsData"; const Password = (props) => { const {updateField, setChangedField} = useFields(); const onChangeHandler = (fieldValue) => { updateField( props.field.id, fieldValue ); setChangedField( props.field.id, fieldValue ); } /** * There is no "PasswordControl" in WordPress react yet, so we create our own license field. */ return ( <div className="components-base-control"> <div className="components-base-control__field"> <label className="components-base-control__label" htmlFor={props.field.id}>{props.field.label}</label> <input className="components-text-control__input" type="password" id={props.field.id} value={props.field.value} onChange={ ( e ) => onChangeHandler(e.target.value) } /> </div> </div> ); } export default Password; src/Settings/Host.js 0000666 00000002577 15165313625 0010434 0 ustar 00 import { SelectControl, } from '@wordpress/components'; import {useRef} from "@wordpress/element"; import useFields from "./FieldsData"; const Host = (props) => { const {updateField, setChangedField, saveFields, handleNextButtonDisabled} = useFields(); const disabled = useRef(false); const onChangeHandler = async (fieldValue) => { let field = props.field; //force update, and get new fields. handleNextButtonDisabled(true); disabled.current = true; updateField(field.id, fieldValue); setChangedField(field.id, fieldValue); await saveFields(true, false); handleNextButtonDisabled(false); disabled.current = false; } let fieldValue = props.field.value; let field = props.field; let options = []; if ( field.options ) { for (var key in field.options) { if (field.options.hasOwnProperty(key)) { let item = {}; item.label = field.options[key]; item.value = key; options.push(item); } } } return ( <SelectControl label={ field.label } onChange={ ( fieldValue ) => onChangeHandler(fieldValue) } value= { fieldValue } options={ options } disabled={disabled.current} /> ) } export default Host; src/Settings/Support.js 0000666 00000003425 15165313625 0011164 0 ustar 00 import {Button, TextareaControl,} from '@wordpress/components'; import {__} from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import {useState} from "@wordpress/element"; const Support = () => { const [message, setMessage] = useState(''); const [sending, setSending] = useState(false); const onChangeHandler = (message) => { setMessage(message); } const onClickHandler = () => { setSending(true); return rsssl_api.runTest('supportData', 'refresh').then( ( response ) => { let encodedMessage = message.replace(/(?:\r\n|\r|\n)/g, '--br--'); let url = 'https://really-simple-ssl.com/support' +'?customername=' + encodeURIComponent(response.customer_name) + '&email=' + response.email + '&domain=' + response.domain + '&scanresults=' + encodeURIComponent(response.scan_results) + '&licensekey=' + encodeURIComponent(response.license_key) + '&supportrequest=' + encodeURIComponent(encodedMessage) + '&htaccesscontents=' + response.htaccess_contents + '&debuglog=' + response.system_status; window.location.assign(url); }); } let disabled = sending || message.length===0; return ( <> <TextareaControl disabled={sending} placeholder={__("Type your question here","really-simple-ssl")} onChange={ ( message ) => onChangeHandler(message) } /> <Button disabled={disabled} variant="secondary" onClick={ ( e ) => onClickHandler(e) }> { __( 'Send', 'really-simple-ssl' ) } </Button> </> ); } export default Support; src/Settings/Settings.js 0000666 00000013770 15165313625 0011314 0 ustar 00 import { useState} from "@wordpress/element"; import SettingsPlaceholder from "../Placeholder/SettingsPlaceholder"; import {in_array} from "../utils/lib"; import SettingsGroup from "./SettingsGroup"; import Help from "./Help"; import useFields from "./FieldsData"; import useMenu from "../Menu/MenuData"; import { __ } from '@wordpress/i18n'; import useLetsEncryptData from "../LetsEncrypt/letsEncryptData"; /** * Renders the selected settings * */ const Settings = () => { const [noticesExpanded, setNoticesExpanded] = useState(true); const {progress, fieldsLoaded, saveFields, fields, nextButtonDisabled} = useFields(); const {subMenuLoaded, subMenu, selectedSubMenuItem, selectedMainMenuItem, nextMenuItem, previousMenuItem} = useMenu(); const {setRefreshTests} = useLetsEncryptData(); const toggleNotices = () => { setNoticesExpanded(!noticesExpanded); } const isTestsOnlyMenu = () => { const { menu_items: menuItems } = subMenu; for (const menuItem of menuItems ) { if (menuItem.id===selectedSubMenuItem && menuItem.tests_only ) { return true; } } return false; } const saveData = async (isSaveAndContinueButton) => { if ( !isSaveAndContinueButton && isTestsOnlyMenu() ) { setRefreshTests(true); } else { await saveFields(true, true); } } const { menu_items: menuItems } = subMenu; if ( !subMenuLoaded || !fieldsLoaded || menuItems.length===0 ) { return( <SettingsPlaceholder /> ) } let selectedFields = fields.filter(field => field.menu_id === selectedSubMenuItem); let groups = []; for (const selectedField of selectedFields){ if ( !in_array(selectedField.group_id, groups) ){ groups.push(selectedField.group_id); } } //convert progress notices to an array useful for the help blocks let notices = []; for (const notice of progress.notices){ let noticeIsLinkedToField = false; //notices that are linked to a field. Only in case of warnings. if ( notice.show_with_options) { let noticeFields = selectedFields.filter(field => notice.show_with_options.includes(field.id)); noticeIsLinkedToField = noticeFields.length>0; } //notices that are linked to a menu id. if ( noticeIsLinkedToField || notice.menu_id === selectedSubMenuItem ) { let help = {}; help.title = notice.output.title ? notice.output.title : false; help.label = notice.output.label; help.id = notice.id; help.text = notice.output.msg; help.url = notice.output.url; help.linked_field = notice.show_with_option; notices.push(help); } } //help items belonging to a field //if field is hidden, hide the notice as well for (const notice of selectedFields.filter(field => field.help && !field.conditionallyDisabled)){ let help = notice.help; //check if the notices array already includes this help item let existingNotices = notices.filter(noticeItem => noticeItem.id && noticeItem.id===help.id); if ( existingNotices.length===0) { // if (!help.id ) help['id'] = notice.id; notices.push(notice.help); } } let continueLink = nextButtonDisabled ? `#${selectedMainMenuItem}/${selectedSubMenuItem}` : `#${selectedMainMenuItem}/${nextMenuItem}`; // let btnSaveText = isTestsOnlyMenu() ? __('Refresh', 'really-simple-ssl') : __('Save', 'really-simple-ssl'); let btnSaveText = __('Save', 'really-simple-ssl'); for (const menuItem of menuItems ) { if (menuItem.id===selectedSubMenuItem && menuItem.tests_only ) { btnSaveText = __('Refresh', 'really-simple-ssl'); } } return ( <> <div className="rsssl-wizard-settings"> { groups.map((group, i) => <SettingsGroup key={"settingsGroup-"+i} index={i} group={group} fields={selectedFields}/>) } <div className="rsssl-grid-item-footer"> {/*This will be shown only if current step is not the first one*/} { selectedSubMenuItem !== menuItems[0].id && <a className="button button-secondary" href={`#${selectedMainMenuItem}/${previousMenuItem}`} > { __('Previous', 'complianz-gdpr') } </a> } <button className="button button-primary" onClick={ ( e ) => saveData(false) }> { btnSaveText } </button> {/*This will be shown only if current step is not the last one*/} { selectedSubMenuItem !== menuItems[menuItems.length-1].id && <> <a disabled={nextButtonDisabled} className="button button-primary" href={continueLink} onClick={ ( e ) => saveData(true) }> { __( 'Save and Continue', 'complianz-gdpr' ) } </a> </> } </div> </div> <div className="rsssl-wizard-help"> <div className="rsssl-help-header"> <div className="rsssl-help-title rsssl-h4"> {__("Notifications", "really-simple-ssl")} </div> <div className="rsssl-help-control" onClick={ () => toggleNotices() }> {!noticesExpanded && __("Expand all","really-simple-ssl")} {noticesExpanded && __("Collapse all","really-simple-ssl")} </div> </div> {notices.map((field, i) => <Help key={i} noticesExpanded={noticesExpanded} index={i} help={field} fieldId={field.id}/>)} </div> </> ) } export default Settings src/Settings/PostDropDown.js 0000666 00000012544 15165313625 0012114 0 ustar 00 /** * This file contains the PostDropdown component. * * This component displays a dropdown menu that allows the user to select a post * from a list of posts fetched from the WordPress database. The selected post * is then used to set a value in an options array stored in the WordPress * database. The component also allows the user to search for posts by typing * in a search box. */ import React, { useState, useEffect } from "react"; import { __ } from '@wordpress/i18n'; import TextField from '@material-ui/core/TextField'; import apiFetch from '@wordpress/api-fetch'; import useFields from "./FieldsData"; const PostDropdown = ({ field }) => { const [posts, setPosts] = useState([]); const [selectedPost, setSelectedPost] = useState(""); const {updateField, setChangedField} = useFields(); const [ThemeProvider, setThemeProvider] = useState(null); const [theme, setTheme] = useState(null); const [Autocomplete, setAutocomplete] = useState(null); useEffect( () => { import('@material-ui/lab/Autocomplete').then(({ default: Autocomplete }) => { setAutocomplete(() => Autocomplete); }); import ('@material-ui/core/styles').then(({ createTheme, ThemeProvider }) => { setThemeProvider(() => ThemeProvider); setTheme(() => createTheme({ typography: { fontSize: 12, fontFamily: 'inherit', }, overrides: { MuiInputBase: { root: { fontSize: '12px', fontFamily: 'inherit', height: '40px', } }, MuiList: { root: { fontSize: '8px', } }, MuiAutocomplete: { inputRoot: { '& .MuiAutocomplete-input': { padding: '0 !important', border: 0, }, flexWrap: 'inherit', }, popper: { fontSize: '12px', }, paper: { fontSize: '12px', }, option: { fontSize: '12px', }, root: { padding: 0, } }, }, }) ); }); }, []); // Fetch the list of posts from the WordPress database when the component mounts. useEffect(() => { apiFetch({ path: '/wp/v2/pages?per_page=100' }) .then((data) => { const formattedData = data.map(post => ({ title: post.title.rendered, id: post.id })); setPosts([{ 'title': "404 (default)", 'id': "404_default" }, ...formattedData]); }); }, []); // Fetch the data for the selected post from the WordPress database when the component mounts. useEffect(() => { if (field.value !== '404_default') { apiFetch({ path: `wp/v2/pages/${field.value}` }) .then((data) => { if (data.title) { setSelectedPost({ 'title': data.title.rendered, 'id': field.value }) } else { setSelectedPost({ 'title': "404 (default)", 'id': '404_default' }) } }); } else { setSelectedPost({ 'title': "404 (default)", 'id': '404_default' }) } }, [field.value]); if (!Autocomplete || !ThemeProvider || !theme) { return null; } return ( <div> <label htmlFor="rsssl-filter-post-input"> {__("Redirect to this post when someone tries to access /wp-admin or /wp-login.php. The default is a 404 page.","really-simple-ssl")} </label> <ThemeProvider theme={theme}> <Autocomplete options={posts} getOptionLabel={(option) => option.title ? option.title : ''} renderInput={(params) => ( <TextField {...params} variant="outlined" placeholder={__('Search for a post.','really-simple-ssl')} /> )} getOptionSelected={(option, value) => { return option.id === value.id; }} onChange={(event, newValue) => { let value = newValue && newValue.id ? newValue.id : '404_default'; updateField(field.id, value); setChangedField( field.id, value ); }} value={selectedPost} /> </ThemeProvider> </div> ); }; export default PostDropdown; src/Settings/Help.js 0000666 00000002763 15165313625 0010404 0 ustar 00 import Icon from "../utils/Icon"; import { __ } from '@wordpress/i18n'; /** * Render a help notice in the sidebar */ const Help = (props) => { let notice = props.help; if ( !notice.title ){ notice.title = notice.text; notice.text = false; } let openStatus = props.noticesExpanded ? 'open' : ''; //we can use notice.linked_field to create a visual link to the field. let target = notice.url && notice.url.indexOf("really-simple-ssl.com") !==-1 ? "_blank" : '_self'; return ( <div key={props.index}> { notice.title && notice.text && <details key={props.index} className={"rsssl-wizard-help-notice rsssl-" + notice.label.toLowerCase()} open={openStatus}> <summary>{notice.title} <Icon name='chevron-down' /></summary> {/*some notices contain html, like for the htaccess notices. A title is required for those options, otherwise the text becomes the title. */} <div key={1} dangerouslySetInnerHTML={{__html:notice.text}}></div> {notice.url && <div key={2} className="rsssl-help-more-info"><a target={target} href={notice.url}>{__("More info", "really-simple-ssl")}</a></div>} </details> } { notice.title && !notice.text && <div key={props.index} className={"rsssl-wizard-help-notice rsssl-" + notice.label.toLowerCase()}><p>{notice.title}</p></div> } </div> ); } export default Help src/Settings/Button.js 0000666 00000002135 15165313625 0010760 0 ustar 00 import { __ } from '@wordpress/i18n'; import Hyperlink from "../utils/Hyperlink"; import * as rsssl_api from "../utils/api"; import useFields from "./FieldsData"; /** * Render a help notice in the sidebar */ const Button = (props) => { const {addHelpNotice} = useFields(); const onClickHandler = (action) => { let data = {}; rsssl_api.doAction(action, data).then( ( response ) => { let label = response.success ? 'success' : 'warning'; let title = __( "Test notification by email", 'really-simple-ssl' ); let text = response.message; addHelpNotice(props.field.id, label, text, title, false); }); } return ( <> { props.field.url && <Hyperlink className="button button-default" text={props.field.button_text} url={props.field.url}/> } { props.field.action && <button onClick={ () => onClickHandler( props.field.action ) } className="button button-default">{props.field.button_text}</button> } </> ); } export default Button src/Settings/License/License.js 0000666 00000006203 15165313625 0012451 0 ustar 00 import TaskElement from "../../Dashboard/TaskElement"; import * as rsssl_api from "../../utils/api"; import { __ } from '@wordpress/i18n'; import useFields from "./../FieldsData"; import useLicense from "./LicenseData"; import {useState, useEffect} from "@wordpress/element"; const License = (props) => { const {fields, setChangedField, updateField} = useFields(); const {licenseStatus, setLicenseStatus} = useLicense(); const [noticesLoaded, setNoticesLoaded] = useState(false); const [fieldsUpdateComplete, setFieldsUpdateComplete] = useState(false); const [notices, setNotices] = useState(false); const getLicenseNotices = () => { return rsssl_api.runTest('licenseNotices', 'refresh').then( ( response ) => { return response; }); } useEffect( () => { getLicenseNotices().then(( response ) => { setLicenseStatus(response.licenseStatus); setNotices(response.notices); setNoticesLoaded(true); }); }, [fields] ); const onChangeHandler = (fieldValue) => { setChangedField( field.id, fieldValue ) updateField(field.id, fieldValue); } const toggleActivation = () => { setNoticesLoaded(false); if ( licenseStatus==='valid' ) { rsssl_api.runTest('deactivate_license').then( ( response ) => { setLicenseStatus(response.licenseStatus); setNotices(response.notices); setNoticesLoaded(true); }); } else { let data = {}; data.license = props.field.value; rsssl_api.doAction('activate_license', data).then( ( response ) => { setLicenseStatus(response.licenseStatus); setNotices(response.notices); setNoticesLoaded(true); }); } } let field = props.field; /** * There is no "PasswordControl" in WordPress react yet, so we create our own license field. */ return ( <div className="components-base-control"> <div className="components-base-control__field"> <label className="components-base-control__label" htmlFor={field.id}>{field.label}</label> <div className="rsssl-license-field"> <input className="components-text-control__input" type="password" id={field.id} value={field.value} onChange={ ( e ) => onChangeHandler(e.target.value) } /> <button className="button button-default" onClick={ () => toggleActivation() }> {licenseStatus==='valid' && <>{__("Deactivate","really-simple-ssl")}</>} {licenseStatus!=='valid' && <>{__("Activate","really-simple-ssl")}</>} </button> </div> </div> {noticesLoaded && notices.map((notice, i) => <TaskElement key={i} index={i} notice={notice} highLightField=""/>)} </div> ); } export default License; src/Settings/License/LicenseData.js 0000666 00000000365 15165313625 0013246 0 ustar 00 import {create} from 'zustand'; const UseLicenseData = create(( set, get ) => ({ licenseStatus: rsssl_settings.licenseStatus, setLicenseStatus: (licenseStatus) => set(state => ({ licenseStatus })), })); export default UseLicenseData; src/index.php 0000666 00000000042 15165313625 0007162 0 ustar 00 <?php //You don't belong here. ?> src/Placeholder/DashboardPlaceholder.js 0000666 00000000635 15165313625 0014164 0 ustar 00 const DashboardPlaceholder = (props) => { return ( <> <div className="rsssl-grid-item rsssl-column-2 rsssl-dashboard-placeholder"></div> <div className="rsssl-grid-item rsssl-row-2 rsssl-dashboard-placeholder"></div> <div className="rsssl-grid-item rsssl-row-2 rsssl-dashboard-placeholder"></div> </> ); } export default DashboardPlaceholder; src/Placeholder/DatatablePlaceholder.js 0000666 00000000523 15165313625 0014152 0 ustar 00 import React from "react"; const DatatablePlaceholder = (props) => { let lines = props.lines; if ( !lines ) lines = 3; return ( <div className="rsssl-datatable-placeholder"> {Array.from({length: lines}).map((item, i) => (<div key={i} ></div>))} </div> ); } export default DatatablePlaceholder; src/Placeholder/Placeholder.js 0000666 00000000704 15165313625 0012351 0 ustar 00 import Error from "../utils/Error"; const Placeholder = (props) => { let lines = props.lines; if ( !lines ) lines = 4; if (props.error) { lines = 0; } return ( <div className="rsssl-placeholder"> {props.error && <Error error={props.error} /> } {Array.from({length: lines}).map((item, i) => (<div className="rsssl-placeholder-line" key={"placeholder-"+i} ></div>))} </div> ); } export default Placeholder; src/Placeholder/SettingsPlaceholder.js 0000666 00000001065 15165313625 0014073 0 ustar 00 import Placeholder from "./Placeholder"; /** * Menu block, rendering the entire menu */ const SettingsPlaceholder = () => { return( <div className="rsssl-wizard-settings rsssl-column-2 rsssl-settings-placeholder"> <div className="rsssl-grid-item"> <div className="rsssl-grid-item-content"> <div className="rsssl-settings-block-intro"></div> </div> </div> <div className="rsssl-grid-item-footer"></div> </div> ) } export default SettingsPlaceholder; src/Placeholder/MenuPlaceholder.js 0000666 00000000553 15165313625 0013200 0 ustar 00 const MenuPlaceholder = () => { return ( <div className="rsssl-wizard-menu rsssl-grid-item rsssl-menu-placeholder"> <div className="rsssl-grid-item-header"> <h1 className="rsssl-h4"></h1> </div> <div className="rsssl-grid-item-content"></div> </div> ); } export default MenuPlaceholder; src/Placeholder/PagePlaceholder.js 0000666 00000001741 15165313625 0013150 0 ustar 00 import Error from '../utils/Error'; const PagePlaceholder = (props) => { return ( <> <div className="rsssl-header-container"> <div className="rsssl-header"> <img className="rsssl-logo" src={rsssl_settings.plugin_url + 'assets/img/really-simple-ssl-logo.svg'} alt="Really Simple SSL logo"/> </div> </div> <div className="rsssl-content-area rsssl-grid rsssl-dashboard rsssl-page-placeholder"> <div className="rsssl-grid-item rsssl-column-2 rsssl-row-2 "> {props.error && <Error error={props.error} /> } </div> <div className="rsssl-grid-item rsssl-row-2"></div> <div className="rsssl-grid-item rsssl-row-2"></div> <div className="rsssl-grid-item rsssl-column-2"></div> </div> </> ); } export default PagePlaceholder; src/Header.js 0000666 00000004473 15165313625 0007104 0 ustar 00 import {useEffect} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import Notices from "./Settings/Notices"; import useMenu from "./Menu/MenuData"; const Header = () => { const {menu, selectedMainMenuItem, fetchMenuData} = useMenu(); let plugin_url = rsssl_settings.plugin_url; useEffect( () => { fetchMenuData(); }, [] ); let menuItems = menu.filter( item => item!==null ); return ( <div className="rsssl-header-container"> <div className="rsssl-header"> <img className="rsssl-logo" src={plugin_url+"assets/img/really-simple-ssl-logo.svg"} alt="Really Simple SSL logo" /> <div className="rsssl-header-left"> <nav className="rsssl-header-menu"> <ul> {menuItems.map((menu_item, i) => <li key={"menu-"+i}><a className={ selectedMainMenuItem === menu_item.id ? 'active' : '' } href={"#" + menu_item.id.toString()} >{menu_item.title}</a></li>)} </ul> </nav> </div> <div className="rsssl-header-right"> { !rsssl_settings.le_generated_by_rsssl && <a className="rsssl-knowledge-base-link" href="https://really-simple-ssl.com/knowledge-base" target="_blank">{__("Documentation", "really-simple-ssl")}</a>} { rsssl_settings.le_generated_by_rsssl && <a href={rsssl_settings.letsencrypt_url}>{__("Let's Encrypt","really-simple-ssl")}</a> } { rsssl_settings.pro_plugin_active && <a href="https://wordpress.org/support/plugin/really-simple-ssl/" className="button button-black" target="_blank">{__("Support", "really-simple-ssl")}</a> } { !rsssl_settings.pro_plugin_active && <a href={rsssl_settings.upgrade_link} className="button button-black" target="_blank">{__("Go Pro", "really-simple-ssl")}</a> } </div> </div> <Notices className="rsssl-wizard-notices"/> </div> ); } export default Header src/LetsEncrypt/Directories.js 0000666 00000021550 15165313625 0012437 0 ustar 00 import {__} from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import {dispatch} from '@wordpress/data'; import {useUpdateEffect} from 'react-use'; import sleeper from "../utils/sleeper"; import Hyperlink from "../utils/Hyperlink"; import { Button, } from '@wordpress/components'; import useFields from "../Settings/FieldsData"; import useMenu from "../Menu/MenuData"; const Directories = (props) => { const {addHelpNotice, updateField, setChangedField, saveFields, fetchFieldsData} = useFields(); const { setSelectedSubMenuItem} = useMenu(); let action = props.action; useUpdateEffect(() => { if ((action && action.action === 'challenge_directory_reachable' && action.status === 'error')) { addHelpNotice( props.field.id, 'default', __("The challenge directory is used to verify the domain ownership.", "really-simple-ssl"), ); } if ((action && action.action === 'check_key_directory' && action.status === 'error')) { addHelpNotice( props.field.id, 'default', __("The key directory is needed to store the generated keys.", "really-simple-ssl") + ' ' + __("By placing it outside the root folder, it is not publicly accessible.", "really-simple-ssl"), ); } if ((action && action.action === 'check_certs_directory' && action.status === 'error')) { addHelpNotice( props.field.id, 'default', __("The certificate will get stored in this directory.", "really-simple-ssl") + ' ' + __("By placing it outside the root folder, it is not publicly accessible.", "really-simple-ssl"), ); } }); if ( !action ) { return (<></>); } const handleSwitchToDNS = async () => { updateField('verification_type', 'dns'); setChangedField('verification_type', 'dns'); await saveFields(true, true); await rsssl_api.runLetsEncryptTest('update_verification_type', 'dns').then((response) => { const notice = dispatch('core/notices').createNotice( 'success', __('Switched to DNS', 'really-simple-ssl'), { __unstableHTML: true, id: 'rsssl_switched_to_dns', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then((response) => { dispatch('core/notices').removeNotice('rsssl_switched_to_dns'); }); }); await setSelectedSubMenuItem('le-dns-verification'); await fetchFieldsData('le-directories'); } return ( <div className="rsssl-test-results"> {action.status === 'error' && <h4>{__("Next step", "really-simple-ssl")}</h4>} {(action.status === 'error' && action.action === 'challenge_directory_reachable') && <div> <p> {__("If the challenge directory cannot be created, or is not reachable, you can either remove the server limitation, or change to DNS verification.", "really-simple-ssl")} </p> <Button variant="secondary" onClick={() => handleSwitchToDNS()} > {__('Switch to DNS verification', 'really-simple-ssl')} </Button> </div> } {rsssl_settings.hosting_dashboard === 'cpanel' && <><p> <Hyperlink target="_blank" text={__("If you also want to secure subdomains like mail.domain.com, cpanel.domain.com, you have to use the %sDNS%s challenge.", "really-simple-ssl")} url="https://really-simple-ssl.com/lets-encrypt-authorization-with-dns"/> {__("Please note that auto-renewal with a DNS challenge might not be possible.", "really-simple-ssl")} </p> <Button variant="secondary" onClick={() => handleSwitchToDNS()} >{__('Switch to DNS verification', 'really-simple-ssl')}</Button></> } {(action.status === 'error' && action.action === 'check_challenge_directory') && <div> <h4> {__("Create a challenge directory", "really-simple-ssl")} </h4> <p> {__("Navigate in FTP or File Manager to the root of your WordPress installation:", "really-simple-ssl")} </p> <ul> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Create a folder called “.well-known”', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Inside the folder called “.well-known” create a new folder called “acme-challenge”, with 644 writing permissions.', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Click the refresh button.', 'really-simple-ssl')} </li> </ul> <h4> {__("Or you can switch to DNS verification", "really-simple-ssl")} </h4> <p>{__("If the challenge directory cannot be created, you can either remove the server limitation, or change to DNS verification.", "really-simple-ssl")}</p> <Button variant="secondary" onClick={() => handleSwitchToDNS()} > {__('Switch to DNS verification', 'really-simple-ssl')} </Button> </div> } {(action.status === 'error' && action.action === 'check_key_directory') && <div> <h4> {__("Create a key directory", "really-simple-ssl")} </h4> <p> {__("Navigate in FTP or File Manager to one level above the root of your WordPress installation:", "really-simple-ssl")} </p> <ul> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Create a folder called “ssl”', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Inside the folder called “ssl” create a new folder called “keys”, with 644 writing permissions.', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Click the refresh button.', 'really-simple-ssl')} </li> </ul> </div> } {(action.status === 'error' && action.action === 'check_certs_directory') && <div> <h4> {__("Create a certs directory", "really-simple-ssl")} </h4> <p> {__("Navigate in FTP or File Manager to one level above the root of your WordPress installation:", "really-simple-ssl")} </p> <ul> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Create a folder called “ssl”', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Inside the folder called “ssl” create a new folder called “certs”, with 644 writing permissions.', 'really-simple-ssl')} </li> <li className="rsssl-tooltip-icon dashicons-before rsssl-icon arrow-right-alt2 dashicons-arrow-right-alt2"> {__('Click the refresh button.', 'really-simple-ssl')} </li> </ul> </div> } </div> ) } export default Directories; src/LetsEncrypt/DnsVerification.js 0000666 00000011600 15165313625 0013245 0 ustar 00 import {useState, useEffect} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import {dispatch} from '@wordpress/data'; import Hyperlink from "../utils/Hyperlink"; import {useUpdateEffect} from 'react-use'; import { Button, } from '@wordpress/components'; import useFields from "../Settings/FieldsData"; import useMenu from "../Menu/MenuData"; import * as rsssl_api from "../utils/api"; import sleeper from "../utils/sleeper"; const DnsVerification = (props) => { const {fields, addHelpNotice, updateField, setChangedField, saveFields, fetchFieldsData, getFieldValue} = useFields(); const {selectedSubMenuItem, setSelectedSubMenuItem} = useMenu(); const [tokens, setTokens] = useState(false); let action = props.action; useUpdateEffect(()=> { if (action && action.action==='challenge_directory_reachable' && action.status==='error') { addHelpNotice( props.field.id, 'default', __("The challenge directory is used to verify the domain ownership.", "really-simple-ssl"), ); } let newTokens = action ? action.output : false; if ( typeof (newTokens) === "undefined" || newTokens.length === 0 ) { newTokens = false; } if ( newTokens ) { setTokens(newTokens); } }); const handleSwitchToDir = async () => { await setSelectedSubMenuItem('le-directories'); await updateField('verification_type', 'dir'); await setChangedField('verification_type', 'dir'); await saveFields(true, true); await rsssl_api.runLetsEncryptTest('update_verification_type', 'dir').then((response) => { const notice = dispatch('core/notices').createNotice( 'success', __('Switched to Directory', 'really-simple-ssl'), { __unstableHTML: true, id: 'rsssl_switched_to_dns', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then((response) => { dispatch('core/notices').removeNotice('rsssl_switched_to_dns'); }); }); await fetchFieldsData('le-directories'); } const handleSwitchToDNS = async () => { await rsssl_api.runLetsEncryptTest('update_verification_type', 'dns').then((response) => { const notice = dispatch('core/notices').createNotice( 'success', __('Switched to DNS', 'really-simple-ssl'), { __unstableHTML: true, id: 'rsssl_switched_to_dns', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then((response) => { dispatch('core/notices').removeNotice('rsssl_switched_to_dns'); }); }); await setSelectedSubMenuItem('le-dns-verification'); } let verificationType = getFieldValue('verification_type'); if (verificationType==='dir') { return (<></>); } return ( <> { tokens && tokens.length>0 && <div className="rsssl-test-results"> <h4>{__("Next step", "really-simple-ssl")}</h4> <p>{__("Add the following token as text record to your DNS records. We recommend to use a short TTL during installation, in case you need to change it.", "really-simple-ssl")} <Hyperlink target="_blank" text={__("Read more", "really-simple-ssl")} url="https://really-simple-ssl.com/how-to-add-a-txt-record-to-dns"/> </p> <div className="rsssl-dns-text-records"> <div> <div className="rsssl-dns-domain">@/{__("domain", "really-simple-ssl")}</div> <div className="rsssl-dns-field">{__("Value", "really-simple-ssl")}</div> </div> { tokens.map((tokenData, i) => <div> <div className="rsssl-dns-">_acme-challenge.{tokenData.domain}</div> <div className="rsssl-dns-field rsssl-selectable">{tokenData.token}</div> </div> )} </div> </div> } <div className="rsssl-test-results"> <p>{__("DNS verification active. You can switch back to directory verification here.","really-simple-ssl")}</p> <Button variant="secondary" onClick={() => handleSwitchToDir()} >{ __( 'Switch to directory verification', 'really-simple-ssl' ) }</Button> </div> </> ) } export default DnsVerification; src/LetsEncrypt/LetsEncrypt.js 0000666 00000025244 15165313625 0012443 0 ustar 00 import {useEffect, useRef} from "@wordpress/element"; import * as rsssl_api from "../utils/api"; import sleeper from "../utils/sleeper"; import Directories from "./Directories"; import DnsVerification from "./DnsVerification"; import Generation from "./Generation"; import Activate from "./Activate"; import Installation from "./Installation"; import { __ } from '@wordpress/i18n'; import Icon from "../utils/Icon"; import useFields from "../Settings/FieldsData"; import useLetsEncryptData from "./letsEncryptData"; const LetsEncrypt = (props) => { const {handleNextButtonDisabled, getFieldValue} = useFields(); const {actionsList, setActionsList, setActionsListItem, setActionsListProperty, actionIndex, setActionIndex, attemptCount, setAttemptCount, progress, setProgress, refreshTests, setRefreshTests} = useLetsEncryptData(); const sleep = useRef(1000); const intervalId = useRef(false); const previousActionIndex = useRef(-1); const maxIndex = useRef(1); const refProgress = useRef(0); const lastAction = useRef({}); useEffect(() => { reset(); }, [props.field.id]) const getActions = () => { let propActions = props.field.actions; if ( props.field.id==='generation' ) { propActions = adjustActionsForDNS(propActions); } maxIndex.current = propActions.length; return propActions; } useEffect(() => { if ( actionsList.length>0 && actionIndex===-1){ setActionIndex(0); runTest(0, 0); } }, [actionsList]) useEffect(() => { // startInterval(); }, []) const startInterval = () => { intervalId.current = setInterval(() => { if (refProgress.current<100) { setProgress(refProgress.current + 0.2); } }, 100); } useEffect(() => { previousActionIndex.current = actionIndex; setProgress( ( 100 / maxIndex.current ) * (actionIndex)); //ensure that progress does not get to 100 when retries are still running let currentAction = actionsList[actionIndex]; if ( currentAction && currentAction.do==='retry' && attemptCount>1 ){ setProgress(90); } }, [actionIndex ]) useEffect (() => { refProgress.current = progress; },[progress]) useEffect(() => { if ( refreshTests ){ setRefreshTests(false); reset(); actionsList.forEach(function(action,i){ setActionsListProperty(i, 'status', 'inactive'); }); } }, [refreshTests ]) const statuses = { 'inactive': { 'icon': 'circle-times', 'color': 'grey', }, 'warning': { 'icon': 'circle-times', 'color': 'orange', }, 'error': { 'icon': 'circle-times', 'color': 'red', }, 'success': { 'icon': 'circle-check', 'color': 'green', }, }; const reset = () => { // clearInterval(intervalId.current); // startInterval(); handleNextButtonDisabled(true); setActionsList(getActions()); setProgress(0); refProgress.current = 0; setActionIndex(-1); previousActionIndex.current = -1; } const adjustActionsForDNS = (actions) => { //find verification_type let verification_type = getFieldValue('verification_type'); if ( !verification_type ) verification_type = 'dir'; if ( verification_type==='dns' ) { //check if dns verification already is added let dnsVerificationAdded = false; actions.forEach(function(action, i) { if (action.action==="verify_dns"){ dnsVerificationAdded = true; } }); //find bundle index let create_bundle_index = -1; actions.forEach(function(action, i) { if (action.action==="create_bundle_or_renew"){ create_bundle_index = i; } }); if (!dnsVerificationAdded && create_bundle_index>0) { //store create bundle action let actionsCopy = [...actions]; let createBundleAction = actionsCopy[create_bundle_index]; //overwrite create bundle action let newAction = {}; newAction.action = 'verify_dns'; newAction.description = __("Verifying DNS records...", "really-simple-ssl"); newAction.attempts = 2; actionsCopy[create_bundle_index] = newAction; actionsCopy.push(createBundleAction); actions = actionsCopy; } } return actions; } const processTestResult = async (action, newActionIndex) => { // clearInterval(intervalId.current); if ( action.status==='success' ) { setAttemptCount(0); } else { if (!Number.isInteger(action.attemptCount)) { setAttemptCount(0); } setAttemptCount(attemptCount+1); } //used for dns verification actions let event = new CustomEvent('rsssl_le_response', { detail: action }); document.dispatchEvent(event); //if all tests are finished with success //finalize happens when halfway through our tests it's finished. We can skip all others. if ( action.do === 'finalize' ) { actionsList.forEach(function(action,i){ if (i>newActionIndex) { setActionsListProperty(i, 'hide', true); } }); setActionIndex(maxIndex.current+1); handleNextButtonDisabled(false); } else if ( action.do === 'continue' || action.do === 'skip' ) { //new action, so reset the attempts count setAttemptCount(1); //skip: drop previous completely, skip to next. if ( action.do === 'skip' ) { setActionsListProperty(newActionIndex, 'hide', true); } //move to next action, but not if we're already on the max if ( maxIndex.current-1 > newActionIndex) { setActionIndex(newActionIndex+1); await runTest(newActionIndex+1); } else { setActionIndex(newActionIndex+1); handleNextButtonDisabled(false); } } else if (action.do === 'retry' ) { if ( attemptCount >= action.attempts ) { setActionIndex(maxIndex.current); } else { setActionIndex(newActionIndex); await runTest(newActionIndex); } } else if ( action.do === 'stop' ){ setActionIndex(maxIndex.current); } } const runTest = async (newActionIndex) => { let currentAction = {...actionsList[newActionIndex]}; if (!currentAction) return; let test = currentAction.action; const startTime = new Date(); await rsssl_api.runLetsEncryptTest(test, props.field.id ).then( ( response ) => { const endTime = new Date(); let timeDiff = endTime - startTime; //in ms const elapsedTime = Math.round(timeDiff); currentAction.status = response.status ? response.status : 'inactive'; currentAction.hide = false; currentAction.description = response.message; currentAction.do = response.action; currentAction.output = response.output ? response.output : false; sleep.current = 500; if (elapsedTime<1500) { sleep.current = 1500-elapsedTime; } setActionsListItem(newActionIndex, currentAction); }).then(sleeper(sleep.current)).then( () => { processTestResult(currentAction, newActionIndex); }); } const getStyles = (newProgress) => { return Object.assign( {}, {width: newProgress+"%"}, ); } const getStatusIcon = (action) => { if (!statuses.hasOwnProperty(action.status)) { return statuses['inactive'].icon; } return statuses[action.status].icon } const getStatusColor = (action) => { if (!statuses.hasOwnProperty(action.status)) { return statuses['inactive'].color; } return statuses[action.status].color; } if ( !props.field.actions ) { return (<></>); } let progressCopy = progress; if (maxIndex.current === actionIndex+1 ){ progressCopy = 100; } //filter out skipped actions let actionsOutput = actionsList.filter(action => action.hide !== true); //ensure the sub components have an action to look at, also if the action has been dropped after last test. let action = actionsList[actionIndex]; if (action){ lastAction.current = action; } else { action = lastAction.current; } let progressBarColor = action.status==='error' ? 'rsssl-orange' : ''; return ( <> <div className="rsssl-lets-encrypt-tests"> <div className="rsssl-progress-bar"><div className="rsssl-progress"><div className={'rsssl-bar ' + progressBarColor} style={getStyles(progressCopy)}></div></div></div> <div className="rsssl_letsencrypt_container rsssl-progress-container field-group"> <ul> {actionsOutput.map((action, i) => <li key={"action-"+i}> <Icon name = {getStatusIcon(action)} color = {getStatusColor(action)} /> {action.do==='retry' && attemptCount >=1 && <>{__("Attempt %s.", "really-simple-ssl").replace('%s', attemptCount)} </>} <span dangerouslySetInnerHTML={{__html:action.description}}></span> </li> ) } </ul> </div> {props.field.id === 'directories' && <Directories field={props.field} action={action}/> } {props.field.id === 'dns-verification' && <DnsVerification field={props.field} action={action}/> } {props.field.id === 'generation' && <Generation field={props.field} action={action}/> } {props.field.id === 'installation' && <Installation field={props.field} action={action}/> } {props.field.id === 'activate' && <Activate field={props.field} action={action}/> } </div> </> ) } export default LetsEncrypt; src/LetsEncrypt/letsEncryptData.js 0000666 00000001727 15165313625 0013275 0 ustar 00 import {create} from 'zustand'; import produce from 'immer'; const useLetsEncryptData = create(( set, get ) => ({ actionIndex:-1, progress:0, attemptCount:0, refreshTests:false, actionsList:[], setAttemptCount: (attemptCount) => {set(state => ({ attemptCount }))}, setProgress: (progress) => {set(state => ({ progress }))}, setActionsList: (actionsList) => {set(state => ({ actionsList }))}, setActionsListItem: (index, action) => { set( produce((state) => { state.actionsList[index] = action; }) ) }, setActionsListProperty: (index, property, value) => { set( produce((state) => { state.actionsList[index][property] = value; }) ) }, setRefreshTests: (refreshTests) => {set(state => ({ refreshTests }))}, setActionIndex: (actionIndex) => {set(state => ({ actionIndex }))}, })); export default useLetsEncryptData; src/LetsEncrypt/Activate.js 0000666 00000000330 15165313625 0011714 0 ustar 00 import Onboarding from "../Onboarding/Onboarding"; const Activate = () => { return ( <div className="rsssl-lets-encrypt-tests"> <Onboarding/> </div> ) } export default Activate; src/LetsEncrypt/Installation.js 0000666 00000012100 15165313625 0012613 0 ustar 00 import {useState} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import {dispatch,} from '@wordpress/data'; import {useUpdateEffect} from 'react-use'; import sleeper from "../utils/sleeper"; import useFields from "../Settings/FieldsData"; const Installation = (props) => { const {addHelpNotice} = useFields(); const [installationData, setInstallationData] = useState(false); let action = props.action; useUpdateEffect(()=> { if ((action && action.status==='warning' && installationData && installationData.generated_by_rsssl )) { addHelpNotice( props.field.id, 'default', __("This is the certificate, which you need to install in your hosting dashboard.", "really-simple-ssl"), __("Certificate (CRT)", "really-simple-ssl") ); addHelpNotice( props.field.id, 'default', __("The private key can be uploaded or pasted in the appropriate field on your hosting dashboard.", "really-simple-ssl"), __("Private Key (KEY)", "really-simple-ssl") ); addHelpNotice( props.field.id, 'default', __("The CA Bundle will sometimes be automatically detected. If not, you can use this file.", "really-simple-ssl"), __("Certificate Authority Bundle (CABUNDLE)", "really-simple-ssl") ); } if ( action && (action.status==='error' || action.status === 'warning') ) { rsssl_api.runLetsEncryptTest('installation_data').then( ( response ) => { if (response) { setInstallationData(response.output); } }); } }); const handleCopyAction = (type) => { let success; let data = document.querySelector('.rsssl-'+type).innerText; const el = document.createElement('textarea'); el.value = data; //str is your string to copy document.body.appendChild(el); el.select(); try { success = document.execCommand("copy"); } catch (e) { success = false; } document.body.removeChild(el); const notice = dispatch('core/notices').createNotice( 'success', __( 'Copied!', 'really-simple-ssl' ), { __unstableHTML: true, id: 'rsssl_copied_data', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then(( response ) => { dispatch('core/notices').removeNotice('rsssl_copied_data'); }); } if ( !action ) { return (<></>); } if (!installationData) { return (<></>); } return ( <div className="rsssl-test-results"> { !installationData.generated_by_rsssl && <>{__("The certificate is not generated by Really Simple SSL, so there are no installation files here","really-simple-ssl")}</>} { installationData.generated_by_rsssl && action.status === 'warning' && <> <h4>{ __("Next step", "really-simple-ssl") }</h4> <div className="rsssl-template-intro">{ __("Install your certificate.", "really-simple-ssl")}</div> <h4>{ __("Certificate (CRT)", "really-simple-ssl") }</h4> <div className="rsssl-certificate-data rsssl-certificate" id="rsssl-certificate">{installationData.certificate_content}</div> <a href={installationData.download_url+"&type=certificate"} className="button button-secondary">{ __("Download", "really-simple-ssl")}</a> <button type="button" onClick={(e) => handleCopyAction('certificate')} className="button button-primary">{ __("Copy content", "really-simple-ssl")}</button> <h4>{ __("Private Key (KEY)", "really-simple-ssl") }</h4> <div className="rsssl-certificate-data rsssl-key" id="rsssl-key">{installationData.key_content}</div> <a href={installationData.download_url+"&type=private_key"} className="button button-secondary">{ __("Download", "really-simple-ssl")}</a> <button type="button" className="button button-primary" onClick={(e) => handleCopyAction('key')} >{ __("Copy content", "really-simple-ssl")}</button> <h4>{ __("Certificate Authority Bundle (CABUNDLE)", "really-simple-ssl") }</h4> <div className="rsssl-certificate-data rsssl-cabundle" id="rsssl-cabundle">{installationData.ca_bundle_content}</div> <a href={installationData.download_url+"&type=intermediate"} className="button button-secondary">{ __("Download", "really-simple-ssl")}</a> <button type="button" className="button button-primary" onClick={(e) => handleCopyAction('cabundle')} >{ __("Copy content", "really-simple-ssl")}</button> </> } </div> ) } export default Installation; src/LetsEncrypt/Generation.js 0000666 00000004161 15165313625 0012255 0 ustar 00 import { __ } from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import {dispatch,} from '@wordpress/data'; import sleeper from "../utils/sleeper"; import Hyperlink from "../utils/Hyperlink"; import { Button, } from '@wordpress/components'; import useFields from "../Settings/FieldsData"; const Generation = (props) => { let action = props.action; if (!action) { return (<></>); } const handleSkipDNS = () => { return rsssl_api.runLetsEncryptTest('skip_dns_check').then( ( response ) => { props.restartTests(); const notice = dispatch('core/notices').createNotice( 'success', __( 'Skip DNS verification', 'really-simple-ssl' ), { __unstableHTML: true, id: 'rsssl_skip_dns', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then(( response ) => { dispatch('core/notices').removeNotice('rsssl_skip_dns'); }); }); } return ( <div className="rsssl-test-results"> { (action.status === 'error' && action.action==='verify_dns' ) && <> <p>{ __("We could not check the DNS records. If you just added the record, please check in a few minutes.","really-simple-ssl")} <Hyperlink target="_blank" text={__("You can manually check the DNS records in an %sonline tool%s.","really-simple-ssl")} url="https://mxtoolbox.com/SuperTool.aspx"/> { __("If you're sure it's set correctly, you can click the button to skip the DNS check.","really-simple-ssl")} </p> <Button variant="secondary" onClick={() => handleSkipDNS()} > { __( 'Skip DNS check', 'really-simple-ssl' ) } </Button> </> } </div> ); } export default Generation; src/Menu/MenuData.js 0000666 00000022475 15165313625 0010320 0 ustar 00 import {create} from 'zustand'; import getAnchor from "../utils/getAnchor"; const useMenu = create(( set, get ) => ({ menu: [], subMenuLoaded:false, previousMenuItem:false, nextMenuItem:false, selectedMainMenuItem:false, selectedSubMenuItem:false, hasPremiumItems:false, subMenu:{title:' ',menu_items:[]}, setSelectedSubMenuItem: async (selectedSubMenuItem) => { let selectedMainMenuItem = getMainMenuForSubMenu(selectedSubMenuItem); set(state => ({ selectedSubMenuItem,selectedMainMenuItem })) // window.location.href=rsssl_settings.dashboard_url+'#'+selectedMainMenuItem+'/'+selectedSubMenuItem; window.location.hash = selectedMainMenuItem+'/'+selectedSubMenuItem; }, setSelectedMainMenuItem: (selectedMainMenuItem) => { set(state => ({ selectedMainMenuItem })) // window.location.href=rsssl_settings.dashboard_url+'#'+selectedMainMenuItem; window.location.hash = selectedMainMenuItem; }, //we need to get the main menu item directly from the anchor, otherwise we have to wait for the menu to load in page.js fetchSelectedMainMenuItem: () => { let selectedMainMenuItem = getAnchor('main') || 'dashboard'; set((state) => ({selectedMainMenuItem: selectedMainMenuItem})); }, fetchSelectedSubMenuItem: async () => { let selectedSubMenuItem = getAnchor('menu') || 'general'; set((state) => ({selectedSubMenuItem: selectedSubMenuItem})); }, fetchMenuData: (fields) => { let menu = rsssl_settings.menu; menu = Object.values(menu); const selectedMainMenuItem = getAnchor('main') || 'dashboard'; menu = menu.filter( item => !item.default_hidden || selectedMainMenuItem===item.id); if ( typeof fields !== 'undefined' ) { let subMenu = getSubMenu(menu, selectedMainMenuItem); const selectedSubMenuItem = getSelectedSubMenuItem(subMenu, fields); subMenu.menu_items = dropEmptyMenuItems(subMenu.menu_items, fields, selectedSubMenuItem); const { nextMenuItem, previousMenuItem } = getPreviousAndNextMenuItems(menu, selectedSubMenuItem, fields); const hasPremiumItems = subMenu.menu_items.filter((item) => {return (item.premium===true)}).length>0; set((state) => ({subMenuLoaded:true, menu: menu, nextMenuItem:nextMenuItem, previousMenuItem:previousMenuItem, selectedMainMenuItem: selectedMainMenuItem, selectedSubMenuItem:selectedSubMenuItem, subMenu: subMenu, hasPremiumItems: hasPremiumItems})); } else { set((state) => ({menu: menu, selectedMainMenuItem: selectedMainMenuItem})); } }, getDefaultSubMenuItem: async (fields) => { let subMenuLoaded = get().subMenuLoaded; if (!subMenuLoaded){ await get().fetchMenuData(fields); } let subMenu = get().subMenu; let fallBackMenuItem = subMenuLoaded && subMenu.hasOwnProperty(0) ? subMenu[0].id : 'general'; let anchor = getAnchor('menu'); let foundAnchorInMenu = false; //check if this anchor actually exists in our current submenu. If not, clear it for (const key in this.menu.menu_items) { if ( subMenu.hasOwnProperty(key) && subMenu[key].id === anchor ){ foundAnchorInMenu=true; } } if ( !foundAnchorInMenu ) anchor = false; return anchor ? anchor : fallBackMenuItem; } })); export default useMenu; // Parses menu items and nested items in single array const menuItemParser = (parsedMenuItems, menuItems, fields) => { menuItems.forEach((menuItem) => { if( menuItem.visible ) { parsedMenuItems.push(menuItem.id); if( menuItem.hasOwnProperty('menu_items') ) { menuItem.menu_items = dropEmptyMenuItems(menuItem.menu_items, fields ); menuItemParser(parsedMenuItems, menuItem.menu_items, fields); } } }); return parsedMenuItems; } const getPreviousAndNextMenuItems = (menu, selectedSubMenuItem, fields) => { let previousMenuItem; let nextMenuItem; const parsedMenuItems = []; menuItemParser(parsedMenuItems, menu, fields); // Finds current menu item index const currentMenuItemIndex = parsedMenuItems.findIndex((menuItem) => menuItem === selectedSubMenuItem); if( currentMenuItemIndex !== -1 ) { previousMenuItem = parsedMenuItems[ currentMenuItemIndex === 0 ? '' : currentMenuItemIndex - 1]; //if the previous menu item has a submenu, we should move one more back, because it will select the current sub otherwise. const previousMenuHasSubMenu = getMenuItemByName(previousMenuItem, menu).hasOwnProperty('menu_items'); if (previousMenuHasSubMenu) { previousMenuItem = parsedMenuItems[ currentMenuItemIndex === 0 ? '' : currentMenuItemIndex - 2] } nextMenuItem = parsedMenuItems[ currentMenuItemIndex === parsedMenuItems.length - 1 ? '' : currentMenuItemIndex + 1]; previousMenuItem = previousMenuItem ? previousMenuItem : parsedMenuItems[0]; nextMenuItem = nextMenuItem ? nextMenuItem : parsedMenuItems[parsedMenuItems.length - 1] } return { nextMenuItem, previousMenuItem }; } const dropEmptyMenuItems = (menuItems, fields) => { const newMenuItems = menuItems; for (const [index, menuItem] of menuItems.entries()) { let menuItemFields = fields.filter((field) => { return (field.menu_id === menuItem.id ) }); menuItemFields = menuItemFields.filter((field) => { return ( field.visible ) }); if ( menuItemFields.length === 0 && !menuItem.hasOwnProperty('menu_items') ) { newMenuItems[index].visible = false; } else { newMenuItems[index].visible = true; if( menuItem.hasOwnProperty('menu_items') ) { newMenuItems[index].menu_items = dropEmptyMenuItems(menuItem.menu_items, fields); } } } return newMenuItems; } /* * filter sidebar menu from complete menu structure */ const getSubMenu = (menu, selectedMainMenuItem) => { let subMenu = []; for (const key in menu) { if ( menu.hasOwnProperty(key) && menu[key].id === selectedMainMenuItem ){ subMenu = menu[key]; } } subMenu = addVisibleToMenuItems(subMenu); return subMenu; } /* * Get the main menu item for a submenu item */ const getMainMenuForSubMenu = (findMenuItem) => { let menu = rsssl_settings.menu; for (const mainKey in menu) { let mainMenuItem = menu[mainKey]; if (mainMenuItem.id===findMenuItem) { return mainMenuItem.id; } if (mainMenuItem.menu_items){ for (const subKey in mainMenuItem.menu_items) { let subMenuItem = mainMenuItem.menu_items[subKey]; if (subMenuItem.id===findMenuItem) { return mainMenuItem.id; } if (subMenuItem.menu_items){ for (const sub2Key in subMenuItem.menu_items) { let sub2MenuItem = subMenuItem.menu_items[sub2Key]; if (sub2MenuItem.id===findMenuItem) { return mainMenuItem.id; } } } } } } return false; } /** * Get the current selected menu item based on the hash, selecting subitems if the main one is empty. */ const getSelectedSubMenuItem = (subMenu, fields) => { let fallBackMenuItem = subMenu && subMenu.menu_items.hasOwnProperty(0) ? subMenu.menu_items[0].id : 'general'; let foundAnchorInMenu; //get flat array of menu items let parsedMenuItems = menuItemParser([], subMenu.menu_items); let anchor = getAnchor('menu'); //check if this anchor actually exists in our current submenu. If not, clear it foundAnchorInMenu = parsedMenuItems.filter(menu_item => menu_item === anchor); if ( !foundAnchorInMenu ) { anchor = false; } let selectedMenuItem = anchor ? anchor : fallBackMenuItem; //check if menu item has fields. If not, try a subitem let fieldsInMenu = fields.filter(field => field.menu_id === selectedMenuItem); if ( fieldsInMenu.length===0 ) { //look up the current menu item let menuItem = getMenuItemByName(selectedMenuItem, subMenu.menu_items); if (menuItem && menuItem.menu_items && menuItem.menu_items.hasOwnProperty(0)) { selectedMenuItem = menuItem.menu_items[0].id; } } return selectedMenuItem; } //Get a menu item by name from the menu array const getMenuItemByName = (name, menuItems) => { for (const key in menuItems ){ let menuItem = menuItems[key]; if ( menuItem.id === name ) { return menuItem; } if ( menuItem.menu_items ) { let found = getMenuItemByName(name, menuItem.menu_items); if (found) return found; } } return false; } const addVisibleToMenuItems = (menu) => { let newMenuItems = menu.menu_items; for (let [index, menuItem] of menu.menu_items.entries()) { menuItem.visible = true; if( menuItem.hasOwnProperty('menu_items') ) { menuItem = addVisibleToMenuItems(menuItem); } newMenuItems[index] = menuItem; } menu.menu_items = newMenuItems; menu.visible = true; return menu; } src/Menu/MenuItem.js 0000666 00000003013 15165313625 0010330 0 ustar 00 import { __ } from '@wordpress/i18n'; import useMenu from "./MenuData"; const MenuItem = (props) => { const {selectedSubMenuItem, selectedMainMenuItem, subMenu, menu} = useMenu(); /* * Menu is selected if the item is the same, or if it is a child. */ let menuIsSelected = selectedSubMenuItem===props.menuItem.id; if (props.menuItem.menu_items) { for (const item of props.menuItem.menu_items){ if (item.id === selectedSubMenuItem ){ menuIsSelected=true; } } } let menuClass = menuIsSelected ? ' rsssl-active' : ''; menuClass += props.menuItem.featured ? ' rsssl-featured' : ''; menuClass += props.menuItem.premium && !rsssl_settings.pro_plugin_active ? ' rsssl-premium' : ''; let href = '#'+selectedMainMenuItem+'/'+props.menuItem.id; return ( <> {props.menuItem.visible && <div className={"rsssl-menu-item" + menuClass}> <a href={href} > <span>{props.menuItem.title}</span> {props.menuItem.featured && <><span className='rsssl-menu-item-beta-pill'>{__('Beta', 'really-simple-ssl')}</span></>} </a> { (props.menuItem.menu_items && menuIsSelected) && <div className="rsssl-submenu-item"> {props.menuItem.menu_items.map( (subMenuItem, i) => subMenuItem.visible && <MenuItem key={"submenuItem"+i} menuItem={subMenuItem} /> )} </div>} </div>} </> ) } export default MenuItem src/Menu/Menu.js 0000666 00000002617 15165313625 0007522 0 ustar 00 import MenuPlaceholder from '../Placeholder/MenuPlaceholder'; import MenuItem from './MenuItem'; import { __ } from '@wordpress/i18n'; import useMenu from "./MenuData"; import useLicense from "../Settings/License/LicenseData"; /** * Menu block, rendering the entire menu */ const Menu = () => { const {subMenu, hasPremiumItems, subMenuLoaded} = useMenu(); const {licenseStatus} = useLicense(); if ( !subMenuLoaded ) { return( <MenuPlaceholder /> ) } return ( <div className="rsssl-wizard-menu rsssl-grid-item"> <div className="rsssl-grid-item-header"> <h1 className="rsssl-h4">{subMenu.title}</h1> </div> <div className="rsssl-grid-item-content"> <div className="rsssl-wizard-menu-items"> { subMenu.menu_items.map((menuItem, i) => <MenuItem key={"menuItem-"+i} menuItem={menuItem} /> ) } { hasPremiumItems && !rsssl_settings.is_premium && licenseStatus!=='valid' && <div className="rsssl-premium-menu-item"><div><a target="_blank" href={rsssl_settings.upgrade_link} className='button button-black'>{__('Upgrade', 'really-simple-ssl')}</a></div></div> } </div> </div> <div className="rsssl-grid-item-footer"> </div> </div> ) } export default Menu; src/utils/getAnchor.js 0000666 00000003152 15165313625 0010757 0 ustar 00 /* * helper function to delay after a promise * @param ms * @returns {function(*): Promise<unknown>} */ const getAnchor = (level) => { let url = window.location.href; if ( url.indexOf('#') === -1) { return false; } let queryString = url.split('#'); if ( queryString.length === 1) { return false; } let urlPart = queryString[1]; //for submenu, we have to get the string after the slash. if ( level === 'anchor' ) { //if there is no slash, there is no menu level if ( urlPart.indexOf('/') === -1 ) { return false; } else { let urlParts = urlPart.split('/'); if (urlParts.length<=2) { return false; } else { return urlParts[2]; } } } else if ( level === 'menu' ) { //if there is no slash, there is no menu level if ( urlPart.indexOf('/') === -1 ) { return false; } else { let urlParts = urlPart.split('/'); if (urlParts.length<=1) { return false; } else { return urlParts[1]; } } } else { //main, just get the first. if ( urlPart.indexOf('/') === -1 ) { return urlPart; } else { let urlParts = urlPart.split('/'); return urlParts[0]; } } return false; } export default getAnchor; src/utils/Error.js 0000666 00000004726 15165313625 0010146 0 ustar 00 import {__} from "@wordpress/i18n"; import Hyperlink from "./Hyperlink"; const Error = (props) => { if (props.error) { console.log("errors detected during the loading of the settings page"); console.log(props.error); } let description = false; let url = 'https://really-simple-ssl.com/instructions/how-to-debug-a-blank-settings-page-in-really-simple-ssl/'; let generic_rest_blocked_message = __("Please check if security settings on the server or a plugin is blocking the requests from Really Simple SSL.", "really-simple-ssl"); let message = false; if (props.error) { message = props.error.message; if ( typeof message !== 'string' ) { message = JSON.stringify(message); } if ( props.error.code==='rest_no_route') { description = __("The Really Simple SSL Rest API is disabled.", "really-simple-ssl")+" "+generic_rest_blocked_message } else if ( props.error.data.status === '404') { description = __("The Really Simple SSL Rest API returned a not found.", "really-simple-ssl")+" "+generic_rest_blocked_message; } else if ( props.error.data.status === '403') { description = __("The Really Simple SSL Rest API returned a 403 forbidden error.", "really-simple-ssl")+" "+generic_rest_blocked_message; } if (message.length>100){ message = message.substring(0, 100)+ '...'; } } return ( <> {props.error && <div className="rsssl-rest-error-message"> <h3>{__("A problem was detected during the loading of the settings", "really-simple-ssl")}</h3> {description && <p>{description}</p> } <div> <p>{__("The request returned the following errors:", "really-simple-ssl")}</p> <ul> {props.error.code && <li>{__("Response code:", "really-simple-ssl")} {props.error.code}</li>} {props.error.data.status && <li>{__("Status code:", "really-simple-ssl")} {props.error.data.status}</li>} {message && <li>{__("Server response:", "really-simple-ssl")} {message}</li>} </ul> </div> <Hyperlink className="button button-default" target="_blank" text={__("More information","really-simple-ssl")} url={url}/> </div>} </> ) } export default Error src/utils/api.js 0000666 00000014713 15165313625 0007623 0 ustar 00 import getAnchor from "./getAnchor"; import axios from 'axios'; import apiFetch from '@wordpress/api-fetch'; /* * Makes a get request to the fields list * * @param {string|boolean} restBase - rest base for the query. * @param {object} args * @returns {AxiosPromise<any>} */ export const getNonce = () => { return '&nonce='+rsssl_settings.rsssl_nonce+'&token='+Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 5); }; const usesPlainPermalinks = () => { return rsssl_settings.site_url.indexOf('?') !==-1; }; const ajaxPost = (path, requestData) => { return new Promise(function (resolve, reject) { let url = siteUrl('ajax'); let xhr = new XMLHttpRequest(); xhr.open('POST', url ); xhr.onload = function () { let response; try { response = JSON.parse(xhr.response); } catch (error) { resolve(invalidDataError(xhr.response, 500, 'invalid_data') ); } if (xhr.status >= 200 && xhr.status < 300) { resolve(response); } else { resolve(invalidDataError(xhr.response, xhr.status, xhr.statusText) ); } }; xhr.onerror = function () { resolve(invalidDataError(xhr.response, xhr.status, xhr.statusText) ); }; let data = {}; data['path'] = path; data['data'] = requestData; data = JSON.stringify(data, stripControls); xhr.setRequestHeader('Content-Type', 'application/json; charset=UTF-8'); xhr.send(data); }); } /** * All data elements with 'Control' in the name are dropped, to prevent: * TypeError: Converting circular structure to JSON * @param key * @param value * @returns {any|undefined} */ const stripControls = (key, value) => { if (!key){return value} if (key && key.includes("Control")) { return undefined; } if (typeof value === "object") { return JSON.parse(JSON.stringify(value, stripControls)); } return value; } const ajaxGet = (path) => { return new Promise(function (resolve, reject) { let url = siteUrl('ajax'); url+='&rest_action='+path.replace('?', '&'); let xhr = new XMLHttpRequest(); xhr.open('GET', url); xhr.onload = function () { let response; try { response = JSON.parse(xhr.response); } catch (error) { resolve(invalidDataError(xhr.response, 500, 'invalid_data') ); } if (xhr.status >= 200 && xhr.status < 300) { if ( !response.hasOwnProperty('request_success') ) { resolve(invalidDataError(xhr.response, 500, 'invalid_data') ); } resolve(response); } else { resolve(invalidDataError(xhr.response, xhr.status, xhr.statusText) ); } }; xhr.onerror = function () { resolve(invalidDataError(xhr.response, xhr.status, xhr.statusText) ); }; xhr.send(); }); } /** * if the site is loaded over https, but the site url is not https, force to use https anyway, because otherwise we get mixed content issues. * @returns {*} */ const siteUrl = (type) => { let url; if (typeof type ==='undefined') { url = rsssl_settings.site_url; } else { url = rsssl_settings.admin_ajax_url } if ( window.location.protocol === "https:" && url.indexOf('https://')===-1 ) { return url.replace('http://', 'https://'); } return url; } const invalidDataError = (apiResponse, status, code ) => { let response = {} let error = {}; let data = {}; data.status = status; error.code = code; error.data = data; error.message = apiResponse; response.error = error; return response; } const apiGet = (path) => { if ( usesPlainPermalinks() ) { let config = { headers: { 'X-WP-Nonce': rsssl_settings.nonce, } } return axios.get(siteUrl()+path, config ).then( ( response ) => { if (!response.data.request_success) { return ajaxGet(path); } return response.data; } ).catch((error) => { //try with admin-ajax return ajaxGet(path); }); } else { return apiFetch( { path: path } ).then((response) => { if ( !response.request_success ) { return ajaxGet(path); } return response; }).catch((error) => { return ajaxGet(path); }); } } const apiPost = (path, data) => { if ( usesPlainPermalinks() ) { let config = { headers: { 'X-WP-Nonce': rsssl_settings.nonce, } } return axios.post(siteUrl()+path, data, config ).then( ( response ) => {return response.data;}).catch((error) => { return ajaxPost(path, data); }); } else { return apiFetch( { path: path, method: 'POST', data: data, } ).catch((error) => { return ajaxPost(path, data); }); } } const glue = () => { return rsssl_settings.site_url.indexOf('?')!==-1 ? '&' : '?' } export const getFields = () => { //we pass the anchor, so we know when LE is loaded let anchor = getAnchor('main'); return apiGet('reallysimplessl/v1/fields/get'+glue()+anchor+getNonce(), 'GET'); }; /* * Post our data to the back-end * @param data * @returns {Promise<AxiosResponse<any>>} */ export const setFields = (data) => { //we pass the anchor, so we know when LE is loaded let anchor = getAnchor('main'); let nonce = {'nonce':rsssl_settings.rsssl_nonce}; data.push(nonce); return apiPost('reallysimplessl/v1/fields/set'+glue()+anchor, data); }; export const runTest = (test, state, data ) => { if ( !state ){ state = false; } if ( !data ) { data = false; } data = encodeURIComponent(JSON.stringify(data)); return apiGet('reallysimplessl/v1/tests/'+test+glue()+'state='+state+getNonce()+'&data='+data) }; export const runLetsEncryptTest = (test, id ) => { return apiGet('reallysimplessl/v1/tests/'+test+glue()+'letsencrypt=1&id='+id+getNonce()); } export const doAction = (action, data) => { if (typeof data === 'undefined') data = {}; data.nonce = rsssl_settings.rsssl_nonce; return apiPost('reallysimplessl/v1/do_action/'+action, data); } src/utils/sleeper.js 0000666 00000000410 15165313625 0010476 0 ustar 00 /* * helper function to delay after a promise * @param ms * @returns {function(*): Promise<unknown>} */ const sleeper = (ms) => { return function(x) { return new Promise(resolve => setTimeout(() => resolve(x), ms)); }; } export default sleeper; src/utils/lib.js 0000666 00000000577 15165313625 0007623 0 ustar 00 export const in_array = (needle, haystack) => { let length = haystack.length; for(let i = 0; i < length; i++) { if( haystack[i] == needle ) return true; } return false; } export const errorMsg = (error) => { let length = haystack.length; for(let i = 0; i < length; i++) { if( haystack[i] == needle ) return true; } return false; } src/utils/Hyperlink.js 0000666 00000001067 15165313625 0011015 0 ustar 00 const Hyperlink = (props) => { let label_pre = ''; let label_post = ''; let link_text = ''; if (props.text.indexOf('%s')!==-1) { let parts = props.text.split(/%s/); label_pre = parts[0]; link_text = parts[1]; label_post = parts[2]; } else { link_text = props.text; } let className = props.className ? props.className : 'rsssl-link'; return ( <>{ label_pre } <a className={className} target={props.target} href={props.url}>{link_text}</a>{label_post}</> ) } export default Hyperlink; src/utils/Icon.js 0000666 00000110736 15165313625 0007744 0 ustar 00 import Tooltip from '@mui/material/Tooltip'; import {styled} from "@mui/material/styles"; // import {opacity} from "../../../../../../wp-includes/js/codemirror/csslint"; const Icon = (props) => { const {name, color, size} = props; // set defaults const iconName = name || 'bullet'; const iconColor = color || 'black'; const iconSize = size || 15; const iconColors = { 'black': 'var(--rsp-black)', 'green': 'var(--rsp-green)', 'yellow': 'var(--rsp-yellow)', 'orange': 'var(--rsp-yellow)', 'red-faded': 'var(--rsp-red-faded)', 'red': 'var(--rsp-red)', 'grey': 'var(--rsp-grey-400)', 'red-warning': 'var(--rsp-red-faded)', }; let renderedIcon = ''; if (iconName === 'bullet') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256z"/> </svg>, }; } if (iconName === 'circle') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/> </svg>, }; } if (iconName === 'check') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"/> </svg>, }; } if (iconName === 'warning') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"/> </svg>, }; } if (iconName === 'error') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM232 152C232 138.8 242.8 128 256 128s24 10.75 24 24v128c0 13.25-10.75 24-24 24S232 293.3 232 280V152zM256 400c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 385.9 273.4 400 256 400z"/> </svg>, }; } if (iconName === 'times') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z"/> </svg>, }; } if (iconName === 'circle-check') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z"/> </svg>, }; } if (iconName === 'circle-times') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM175 208.1L222.1 255.1L175 303C165.7 312.4 165.7 327.6 175 336.1C184.4 346.3 199.6 346.3 208.1 336.1L255.1 289.9L303 336.1C312.4 346.3 327.6 346.3 336.1 336.1C346.3 327.6 346.3 312.4 336.1 303L289.9 255.1L336.1 208.1C346.3 199.6 346.3 184.4 336.1 175C327.6 165.7 312.4 165.7 303 175L255.1 222.1L208.1 175C199.6 165.7 184.4 165.7 175 175C165.7 184.4 165.7 199.6 175 208.1V208.1z"/> </svg>, }; } if (iconName === 'chevron-up') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M416 352c-8.188 0-16.38-3.125-22.62-9.375L224 173.3l-169.4 169.4c-12.5 12.5-32.75 12.5-45.25 0s-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25C432.4 348.9 424.2 352 416 352z"/> </svg>, }; } if (iconName === 'chevron-down') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z"/> </svg>, }; } if (iconName === 'chevron-right') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M96 480c-8.188 0-16.38-3.125-22.62-9.375c-12.5-12.5-12.5-32.75 0-45.25L242.8 256L73.38 86.63c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0l192 192c12.5 12.5 12.5 32.75 0 45.25l-192 192C112.4 476.9 104.2 480 96 480z"/> </svg>, }; } if (iconName === 'chevron-left') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M224 480c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25l192-192c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L77.25 256l169.4 169.4c12.5 12.5 12.5 32.75 0 45.25C240.4 476.9 232.2 480 224 480z"/> </svg>, }; } if (iconName === 'plus') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M432 256c0 17.69-14.33 32.01-32 32.01H256v144c0 17.69-14.33 31.99-32 31.99s-32-14.3-32-31.99v-144H48c-17.67 0-32-14.32-32-32.01s14.33-31.99 32-31.99H192v-144c0-17.69 14.33-32.01 32-32.01s32 14.32 32 32.01v144h144C417.7 224 432 238.3 432 256z"/> </svg>, }; } if (iconName === 'minus') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M400 288h-352c-17.69 0-32-14.32-32-32.01s14.31-31.99 32-31.99h352c17.69 0 32 14.3 32 31.99S417.7 288 400 288z"/> </svg>, }; } if (iconName === 'sync') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M483.515 28.485L431.35 80.65C386.475 35.767 324.485 8 256 8 123.228 8 14.824 112.338 8.31 243.493 7.971 250.311 13.475 256 20.301 256h28.045c6.353 0 11.613-4.952 11.973-11.294C66.161 141.649 151.453 60 256 60c54.163 0 103.157 21.923 138.614 57.386l-54.128 54.129c-7.56 7.56-2.206 20.485 8.485 20.485H492c6.627 0 12-5.373 12-12V36.971c0-10.691-12.926-16.045-20.485-8.486zM491.699 256h-28.045c-6.353 0-11.613 4.952-11.973 11.294C445.839 370.351 360.547 452 256 452c-54.163 0-103.157-21.923-138.614-57.386l54.128-54.129c7.56-7.56 2.206-20.485-8.485-20.485H20c-6.627 0-12 5.373-12 12v143.029c0 10.691 12.926 16.045 20.485 8.485L80.65 431.35C125.525 476.233 187.516 504 256 504c132.773 0 241.176-104.338 247.69-235.493.339-6.818-5.165-12.507-11.991-12.507z"></path> </svg>, }; } if (iconName === 'sync-error') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 79.1C178.5 79.1 112.7 130.1 89.2 199.7C84.96 212.2 71.34 218.1 58.79 214.7C46.23 210.5 39.48 196.9 43.72 184.3C73.6 95.8 157.3 32 256 32C337.5 32 408.8 75.53 448 140.6V104C448 90.75 458.7 80 472 80C485.3 80 496 90.75 496 104V200C496 213.3 485.3 224 472 224H376C362.7 224 352 213.3 352 200C352 186.7 362.7 176 376 176H412.8C383.7 118.1 324.4 80 256 80V79.1zM280 263.1C280 277.3 269.3 287.1 256 287.1C242.7 287.1 232 277.3 232 263.1V151.1C232 138.7 242.7 127.1 256 127.1C269.3 127.1 280 138.7 280 151.1V263.1zM224 352C224 334.3 238.3 319.1 256 319.1C273.7 319.1 288 334.3 288 352C288 369.7 273.7 384 256 384C238.3 384 224 369.7 224 352zM40 432C26.75 432 16 421.3 16 408V311.1C16 298.7 26.75 287.1 40 287.1H136C149.3 287.1 160 298.7 160 311.1C160 325.3 149.3 336 136 336H99.19C128.3 393 187.6 432 256 432C333.5 432 399.3 381.9 422.8 312.3C427 299.8 440.7 293 453.2 297.3C465.8 301.5 472.5 315.1 468.3 327.7C438.4 416.2 354.7 480 256 480C174.5 480 103.2 436.5 64 371.4V408C64 421.3 53.25 432 40 432V432z"/> </svg>, }; } if (iconName === 'shortcode') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M128 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h96C145.7 480 160 465.7 160 448S145.7 416 128 416H64V96h64C145.7 96 160 81.67 160 64S145.7 32 128 32zM416 32h-96C302.3 32 288 46.33 288 63.1S302.3 96 319.1 96H384v320h-64C302.3 416 288 430.3 288 447.1S302.3 480 319.1 480H416c17.6 0 32-14.4 32-32V64C448 46.4 433.6 32 416 32z"/> </svg>, }; } if (iconName === 'file') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M0 64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V64zM336 448V160H256C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V448C48 456.8 55.16 464 64 464H320C328.8 464 336 456.8 336 448z"/> </svg>, }; } if (iconName === 'file-disabled') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M639.1 487.1c0-7.119-3.153-14.16-9.191-18.89l-118.8-93.12l.0013-237.3c0-16.97-6.742-33.26-18.74-45.26l-74.63-74.64C406.6 6.742 390.3 0 373.4 0H192C156.7 0 128 28.65 128 64L128 75.01L38.82 5.11C34.41 1.672 29.19 0 24.04 0C10.19 0-.0002 11.3-.0002 23.1c0 7.12 3.153 14.16 9.192 18.89l591.1 463.1C605.6 510.3 610.8 512 615.1 512C629.8 512 639.1 500.6 639.1 487.1zM464 338.4l-287.1-225.7l-.002-48.51c0-8.836 7.164-16 15.1-16h160l-.0065 79.87c0 17.67 14.33 31.1 31.1 31.1L464 159.1V338.4zM448 463.1H192c-8.834 0-15.1-7.164-15.1-16L176 234.6L128 197L128 447.1c0 35.34 28.65 64 63.1 64H448c20.4 0 38.45-9.851 50.19-24.84l-37.72-29.56C457.5 461.4 453.2 463.1 448 463.1z"/> </svg>, }; } if (iconName === 'file-download') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M216 342.1V240c0-13.25-10.75-24-24-24S168 226.8 168 240v102.1L128.1 303C124.3 298.3 118.2 296 112 296S99.72 298.3 95.03 303c-9.375 9.375-9.375 24.56 0 33.94l80 80c9.375 9.375 24.56 9.375 33.94 0l80-80c9.375-9.375 9.375-24.56 0-33.94s-24.56-9.375-33.94 0L216 342.1zM365.3 93.38l-74.63-74.64C278.6 6.742 262.3 0 245.4 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.2 0 64-28.8 64-64V138.6C384 121.7 377.3 105.4 365.3 93.38zM336 448c0 8.836-7.164 16-16 16H64.02c-8.838 0-16-7.164-16-16L48 64.13c0-8.836 7.164-16 16-16h160L224 128c0 17.67 14.33 32 32 32h79.1V448z"/> </svg>, }; } if (iconName === 'calendar') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M152 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V448C448 483.3 419.3 512 384 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24V64zM48 448C48 456.8 55.16 464 64 464H384C392.8 464 400 456.8 400 448V192H48V448z"/> </svg>, }; } if (iconName === 'calendar-error') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M151.1 64H296V24C296 10.75 306.7 0 320 0C333.3 0 344 10.75 344 24V64H384C419.3 64 448 92.65 448 128V192H47.1V448C47.1 456.8 55.16 464 63.1 464H284.5C296.7 482.8 312.5 499.1 330.8 512H64C28.65 512 0 483.3 0 448V128C0 92.65 28.65 64 64 64H104V24C104 10.75 114.7 0 128 0C141.3 0 152 10.75 152 24L151.1 64zM576 368C576 447.5 511.5 512 432 512C352.5 512 287.1 447.5 287.1 368C287.1 288.5 352.5 224 432 224C511.5 224 576 288.5 576 368zM432 416C418.7 416 408 426.7 408 440C408 453.3 418.7 464 432 464C445.3 464 456 453.3 456 440C456 426.7 445.3 416 432 416zM447.1 288C447.1 279.2 440.8 272 431.1 272C423.2 272 415.1 279.2 415.1 288V368C415.1 376.8 423.2 384 431.1 384C440.8 384 447.1 376.8 447.1 368V288z"/> </svg>, }; } if (iconName === 'help') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 400c-18 0-32-14-32-32s13.1-32 32-32c17.1 0 32 14 32 32S273.1 400 256 400zM325.1 258L280 286V288c0 13-11 24-24 24S232 301 232 288V272c0-8 4-16 12-21l57-34C308 213 312 206 312 198C312 186 301.1 176 289.1 176h-51.1C225.1 176 216 186 216 198c0 13-11 24-24 24s-24-11-24-24C168 159 199 128 237.1 128h51.1C329 128 360 159 360 198C360 222 347 245 325.1 258z"/> </svg>, }; } if (iconName === 'copy') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M502.6 70.63l-61.25-61.25C435.4 3.371 427.2 0 418.7 0H255.1c-35.35 0-64 28.66-64 64l.0195 256C192 355.4 220.7 384 256 384h192c35.2 0 64-28.8 64-64V93.25C512 84.77 508.6 76.63 502.6 70.63zM464 320c0 8.836-7.164 16-16 16H255.1c-8.838 0-16-7.164-16-16L239.1 64.13c0-8.836 7.164-16 16-16h128L384 96c0 17.67 14.33 32 32 32h47.1V320zM272 448c0 8.836-7.164 16-16 16H63.1c-8.838 0-16-7.164-16-16L47.98 192.1c0-8.836 7.164-16 16-16H160V128H63.99c-35.35 0-64 28.65-64 64l.0098 256C.002 483.3 28.66 512 64 512h192c35.2 0 64-28.8 64-64v-32h-47.1L272 448z"/> </svg>, }; } if (iconName === 'info') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"/> </svg>, }; } if (iconName === 'info-open') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 464c-114.7 0-208-93.31-208-208S141.3 48 256 48s208 93.31 208 208S370.7 464 256 464zM256 304c13.25 0 24-10.75 24-24v-128C280 138.8 269.3 128 256 128S232 138.8 232 152v128C232 293.3 242.8 304 256 304zM256 337.1c-17.36 0-31.44 14.08-31.44 31.44C224.6 385.9 238.6 400 256 400s31.44-14.08 31.44-31.44C287.4 351.2 273.4 337.1 256 337.1z"/> </svg>, }; } if (iconName === 'list') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M184.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 113c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L39 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM256 96c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H288c-17.7 0-32-14.3-32-32zM192 416c0-17.7 14.3-32 32-32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H224c-17.7 0-32-14.3-32-32zM80 464c-26.5 0-48-21.5-48-48s21.5-48 48-48s48 21.5 48 48s-21.5 48-48 48z"/> </svg>, }; } if (iconName === 'empty') { renderedIcon = { html: <svg height={iconSize} width={iconSize} aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280.8 363.67"> </svg> }; } if (iconName === 'external-link') { renderedIcon = { html: <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <path fill={iconColors[iconColor]} d="M384 32c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96C0 60.7 28.7 32 64 32H384zM160 144c-13.3 0-24 10.7-24 24s10.7 24 24 24h94.1L119 327c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l135-135V328c0 13.3 10.7 24 24 24s24-10.7 24-24V168c0-13.3-10.7-24-24-24H160z"/> </svg>, }; } if (iconName === 'shield') { renderedIcon = { html: <svg height={iconSize} aria-hidden="true" focusable="false" role="img" id="uuid-026a4e87-44db-4336-a398-3c29d25b7317" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 280.8 363.67"> <path fill="#f9c23e" d="M280.8,62.4L140.5,0,0,62.2V213.3c0,10.7,1.6,21.3,4.9,31.5,9.5,29.9,28.2,52.8,54.4,69.5,26,16.6,52.4,32.4,78.6,48.6,2,1.2,3.4,.9,5.1-.2,19.9-12.3,39.8-24.5,59.6-36.8,12.6-7.8,25.5-15.1,36.5-25.1,26.4-24.2,41.4-53.6,41.5-89.9V62.4h.2Z"/> <g> <g> <rect className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" x="155" y="266.8" width="77.6" height="6"/> <path fill="#1d2327" d="M224.4,204.5h-1.8v-10.1c0-15.9-12.9-28.8-28.8-28.8s-28.8,12.9-28.8,28.8v10.1h-1.8c-4.6,0-8.3,3.7-8.3,8.3v51.3h77.6v-51.3c0-4.6-3.7-8.3-8.3-8.3h.2Zm-45.3-10.1c0-8.1,6.6-14.7,14.7-14.7s14.7,6.6,14.7,14.7v10.1h-29.5v-10.1h.1Zm36.6,32.9l-20.7,20.2c-.2,.2-.3,.4-.5,.6l-2,2c-.2,.2-.4,.4-.6,.5l-3.8,3.8-4.5-4.3-2-2c-.2-.2-.4-.4-.5-.6l-9.1-9.1c-2.4-2.4-2.4-6.4,0-8.8l2-2c2.4-2.4,6.4-2.4,8.8,0l5.3,5.3,16.9-16.4c2.4-2.4,6.4-2.4,8.8,0l2,2c2.4,2.4,2.4,6.4,0,8.8h-.1Z"/> </g> <g> <path fill="#1d2327" d="M125.2,192.3c-.5-2.9-.5-5.8-1-8.6-.5-2.4-2.6-4-4.8-3.9-2.3,0-4.2,1.9-4.7,4.3-.2,1,0,1.9,0,2.9,.8,14.6,7.2,26.3,18.2,35.7,2.2,1.9,4.5,3.5,6.9,4.8v-11.8c-7.4-5.8-12.9-14.1-14.6-23.3v-.1Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M96.4,236.1c-13-15-20-32.3-19.5-52.3,.3-13.1,6.1-23.6,16.6-31.2,11.5-8.5,24.5-10.9,38.3-7.1,12.7,3.5,22,10.7,27.4,22,2.1-2.7,4.5-5.2,7.2-7.4-4-7-9.7-12.9-17-17.4-17-10.4-34.9-11.7-52.9-3.1-19,9.1-28.7,24.7-29.3,45.8,0,5.2,.5,10.2,1.4,15.2,3.4,19.4,13.4,35.2,27.2,48.9,1.1,1.1,2.5,1.6,4.1,1.4,1.8-.2,3.2-1.3,3.8-3,.6-1.8,.4-3.6-1-5.1-2.1-2.2-4.2-4.4-6.2-6.7h-.1Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M68.1,89.4c1.1-.4,2.1-1,3.1-1.5,17.9-9.1,36.8-12.7,56.8-11.3,12.2,.8,23.9,3.8,35.1,8.7,3,1.3,5.9,2.8,8.9,4.1,2.7,1.1,5.3,0,6.4-2.4,1.1-2.3,0-5-2.3-6.3-11-5.7-22.4-10-34.6-12.3-4.2-.8-8.5-1.1-12.8-1.7h-17.1c-.3,0-.6,.2-.9,.2-11.2,.8-22,3.2-32.5,7.2-4.9,1.9-9.7,4.1-14.3,6.6-2.5,1.3-3.4,4.2-2.2,6.5,1.1,2.2,4,3.2,6.4,2.1v.1Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M61.1,153.5c13.6-21.6,33.6-31.5,58.7-32.1h6c.8,0,1.6,.2,2.3,.3,13.4,1.7,25.5,6.6,35.9,15.4,5.8,4.9,10.5,10.3,14.1,16.2,3.1-1.2,6.4-2,9.8-2.5-4.7-8.7-11.3-16.3-19.6-22.7-19-14.6-40.5-19.5-64.1-15.1-14.3,2.7-26.9,9-37.7,18.8-10.4,9.5-17.8,20.9-21.2,34.6-2.8,11.3-2.6,22.7-.9,34.1,1.1,7,2.9,13.9,5.4,20.5,.9,2.3,3,3.7,5.2,3.5,2.1-.2,3.9-2,4.3-4.3,.2-1.1-.2-2.2-.6-3.2-4.3-11.9-6.3-24.1-5.6-36.7,.5-9.6,2.8-18.7,8-26.8h0Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M139.8,240.6c-20.9-8.4-34.1-23.7-38.4-46.7-.8-4.3-1.4-8.7-.4-13,1.8-7.1,6.4-11.4,13.4-13.5,11.8-3.4,24.7,5.3,24.5,17.6,0,4.8,1.4,9.3,4,13.4,.3,.5,.6,.9,.9,1.3,1.6-2.4,3.7-4.6,6.1-6.2,0-.9,0-1.9,.2-2.8-.7-1.7-1.1-3.5-1.2-5.3-.3-6.1-1.6-11.9-5.5-16.8-6.8-8.8-15.9-12.4-27-11.5-11.3,.9-21.6,9.6-24.5,20.6-1.8,6.6-.9,13.3,.4,19.8,2.4,12.9,8.2,24,17.1,33.7,8.6,9.4,18.8,15.8,30.6,19.8v-10.4h-.2Z"/> <path className="uuid-57af18f1-eed9-4dfe-9c3e-67e3c55f9bf4" d="M47.5,133.2c6.8-8.8,15-16,24.6-21.6,20.8-12,43.2-15.2,66.6-11,14.8,2.7,28.2,8.7,39.9,18.2,6.3,5,11.6,11,16.4,17.4,1.9,2.5,4.8,2.8,7,1.1,2.1-1.7,2.4-4.5,.6-7-5.9-8.2-12.8-15.3-20.9-21.3-18.3-13.6-39.1-19.6-61.7-20-6.3,0-12.5,.6-18.6,1.6-15.7,2.8-30.1,8.6-42.9,18.1-8.3,6.2-15.5,13.5-21.5,22-1.6,2.3-1.3,5.1,.7,6.7,2.1,1.7,4.9,1.5,6.8-.7,1-1.2,1.9-2.5,2.9-3.7l.1,.2Z"/> </g> </g> </svg>, }; } if (iconName === 'file-search') { renderedIcon = { html: <svg xmlns="http://www.w3.org/2000/svg" height={iconSize} fill="none" viewBox="0 0 384 512"> <path d="M374.6 150.6l-141.3-141.3C227.4 3.371 219.2 0 210.7 0H64C28.65 0 0 28.65 0 64l.0065 384c0 35.34 28.65 64 64 64H320c35.35 0 64-28.66 64-64V173.3C384 164.8 380.6 156.6 374.6 150.6zM224 22.63L361.4 160H248C234.8 160 224 149.2 224 136V22.63zM368 448c0 26.47-21.53 48-48 48H64c-26.47 0-48-21.53-48-48V64c0-26.47 21.53-48 48-48h144v120c0 22.06 17.94 40 40 40h120V448zM176 208c-53.02 0-96 42.98-96 96s42.98 96 96 96c23.62 0 44.96-8.859 61.68-23l68.66 68.66C307.9 447.2 309.9 448 312 448s4.094-.7813 5.656-2.344c3.125-3.125 3.125-8.188 0-11.31l-68.66-68.66C263.1 348.1 272 327.6 272 304C272 250.1 229 208 176 208zM176 384C131.9 384 96 348.1 96 304S131.9 224 176 224S256 259.9 256 304S220.1 384 176 384z"/> </svg>, viewBox: '0 0 24 24' }; } if (iconName === 'download') { renderedIcon = { html: <svg xmlns="http://www.w3.org/2000/svg" height={iconSize} fill="none" viewBox="0 0 512 512"> <path d="M480 352h-88C387.6 352 384 355.6 384 360s3.582 8 8 8H480c8.822 0 16 7.178 16 16v96c0 8.822-7.178 16-16 16H32c-8.822 0-16-7.178-16-16v-96c0-8.822 7.178-16 16-16h88C124.4 368 128 364.4 128 360S124.4 352 120 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96C512 366.3 497.7 352 480 352zM464 432c0-17.6-14.4-32-32-32s-32 14.4-32 32c0 17.6 14.4 32 32 32S464 449.6 464 432zM416 432c0-8.822 7.178-16 16-16s16 7.178 16 16S440.8 448 432 448S416 440.8 416 432zM250.3 413.7c3.125 3.125 8.188 3.125 11.31 0l152-152C415.2 260.1 416 258.1 416 256s-.7813-4.094-2.344-5.656c-3.125-3.125-8.188-3.125-11.31 0L264 388.7V8C264 3.594 260.4 0 256 0S248 3.594 248 8v380.7L109.7 250.3c-3.125-3.125-8.188-3.125-11.31 0s-3.125 8.188 0 11.31L250.3 413.7z"/> </svg>, viewBox: '0 0 24 24' } } if (iconName === 'satellite-dish') { renderedIcon = { html: <svg xmlns="http://www.w3.org/2000/svg" color={iconColors[iconColor]} height={iconSize} viewBox="0 0 512 512"> <path d="M208 0c-8.8 0-16 7.2-16 16s7.2 16 16 16c150.2 0 272 121.8 272 272c0 8.8 7.2 16 16 16s16-7.2 16-16C512 136.1 375.9 0 208 0zm0 96c-8.8 0-16 7.2-16 16s7.2 16 16 16c97.2 0 176 78.8 176 176c0 8.8 7.2 16 16 16s16-7.2 16-16c0-114.9-93.1-208-208-208zM32 304c0-24.5 5-47.7 13.9-68.8L276.8 466.1C255.7 475 232.5 480 208 480c-97.2 0-176-78.8-176-176zm33.5-94.5c-14-14-37.3-12.1-45.7 5.8C7.1 242.2 0 272.3 0 304C0 418.9 93.1 512 208 512c31.7 0 61.8-7.1 88.7-19.8c17.9-8.4 19.8-31.8 5.8-45.7L195.3 339.3l24-24c6.3 3 13.3 4.7 20.7 4.7c26.5 0 48-21.5 48-48s-21.5-48-48-48s-48 21.5-48 48c0 7.4 1.7 14.4 4.7 20.7l-24 24L65.5 209.5zM224 272a16 16 0 1 1 32 0 16 16 0 1 1 -32 0z"/> </svg>, viewBox: '0 0 24 24' } } if (iconName === 'rotate-light') { renderedIcon = { html: <svg xmlns="http://www.w3.org/2000/svg" color={iconColors[iconColor]} height={iconSize} viewBox="0 0 512 512"><path d="M426.1 301.2C406.2 376.5 337.6 432 256 432c-51 0-96.9-21.7-129-56.3l41-41c5.1-5.1 8-12.1 8-19.3c0-15.1-12.2-27.3-27.3-27.3H48c-8.8 0-16 7.2-16 16V404.7C32 419.8 44.2 432 59.3 432c7.2 0 14.2-2.9 19.3-8l25.7-25.7C142.3 438.7 196.2 464 256 464c97.4 0 179.2-67 201.8-157.4c2.4-9.7-5.2-18.6-15.2-18.6c-7.8 0-14.5 5.6-16.5 13.2zM385 136.3l-41 41c-5.1 5.1-8 12.1-8 19.3c0 15.1 12.2 27.3 27.3 27.3H464c8.8 0 16-7.2 16-16V107.3C480 92.2 467.8 80 452.7 80c-7.2 0-14.2 2.9-19.3 8l-25.7 25.7C369.7 73.3 315.8 48 256 48C158.6 48 76.8 115 54.2 205.4c-2.4 9.7 5.2 18.6 15.2 18.6c7.8 0 14.5-5.6 16.5-13.2C105.8 135.5 174.4 80 256 80c51 0 96.9 21.7 129.1 56.3zM448 192H374.6L448 118.6V192zM64 320h73.4L64 393.4V320z"/></svg>, viewBox: '0 0 24 24' } } if (iconName === 'rotate-exclamation-light') { renderedIcon = { html: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize} > <defs> <style>{` .fa-secondary { opacity: 0.4; color: ${iconColors[iconColor]}; } `}</style> </defs> <path className="fa-primary" d="M280 152c0-13.3-10.7-24-24-24s-24 10.7-24 24V264c0 13.3 10.7 24 24 24s24-10.7 24-24V152zM256 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"/> <path className="fa-secondary" d="M432 117.4C391 65.4 327.4 32 256 32C158.4 32 75.5 94.4 44.8 181.3c-5.9 16.7 2.8 34.9 19.5 40.8s34.9-2.8 40.8-19.5C127.1 140.5 186.4 96 256 96c52.3 0 98.8 25.1 128 64H352c-17.7 0-32 14.3-32 32s14.3 32 32 32h84.3c.5 0 1 0 1.5 0H464c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v37.4zm35.2 213.2c5.9-16.7-2.8-34.9-19.5-40.8s-34.9 2.8-40.8 19.5C384.9 371.5 325.6 416 256 416c-52.3 0-98.8-25.1-128-64h32c17.7 0 32-14.3 32-32s-14.3-32-32-32H48c-17.7 0-32 14.3-32 32V432c0 17.7 14.3 32 32 32s32-14.3 32-32V394.6c41 52 104.6 85.4 176 85.4c97.6 0 180.5-62.4 211.2-149.3z"/> </svg>, viewBox: '0 0 24 24' } } if (iconName === 'radar-duotone') { renderedIcon = { html: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize} > <defs> <style>{` .fa-secondary { color: ${iconColors[iconColor]} !important; } `}</style> </defs> <path className="fa-primary" d="M497 49c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-182 182c-7.7-3.3-16.1-5.1-25-5.1c-35.3 0-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64c0-8.9-1.8-17.3-5.1-25L497 49z"/> <path className="fa-secondary" d="M350.9 127.2l-46.1 46.1c-14.3-8.4-31-13.3-48.8-13.3c-53 0-96 43-96 96s43 96 96 96s96-43 96-96h64c0 73.5-49.6 135.5-117.2 154.2C290.8 394.7 274.7 384 256 384s-34.8 10.7-42.8 26.2c-51.7-14.3-92.8-53.9-109.4-104.6c14.4-8.3 24.1-23.8 24.1-41.7c0-19.4-11.5-36.1-28-43.7C116.2 149.1 179.9 96 256 96c35.5 0 68.3 11.6 94.9 31.2zm22.8-22.8C341.2 79 300.4 64 256 64C163.1 64 85.7 129.9 67.9 217.6C47.2 222.9 32 241.7 32 264c0 23.8 17.3 43.6 40.1 47.4c19.3 64.3 71.5 114.4 137 130.9C213.8 463.8 233 480 256 480s42.2-16.2 46.9-37.8C386.3 421.3 448 345.9 448 256h64c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0c62.1 0 118.9 22.1 163.3 58.8l-45.5 45.5z"/> </svg>, viewBox: '0 0 24 24' } } if (iconName === 'satellite-dish-duotone') { renderedIcon = { html: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height={iconSize}> <defs> <style>{` .fa-secondary { color: ${iconColors[iconColor]} !important; } `}</style> </defs> <path className="fa-primary" d="M60.6 220.6c-14.5-14.5-38.8-11.8-46.3 7.3C5.1 251.5 0 277.1 0 304C0 418.9 93.1 512 208 512c26.9 0 52.5-5.1 76.1-14.4c19-7.5 21.8-31.8 7.3-46.3L187.3 347.3l28.4-28.4c2.6 .7 5.4 1.1 8.3 1.1c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32c0 2.9 .4 5.6 1.1 8.3l-28.4 28.4L60.6 220.6z"/> <path className="fa-secondary" d="M224 0c-17.7 0-32 14.3-32 32s14.3 32 32 32c123.7 0 224 100.3 224 224c0 17.7 14.3 32 32 32s32-14.3 32-32C512 128.9 383.1 0 224 0zm0 96c-17.7 0-32 14.3-32 32s14.3 32 32 32c70.7 0 128 57.3 128 128c0 17.7 14.3 32 32 32s32-14.3 32-32c0-106-86-192-192-192z"/> </svg>, viewBox: '0 0 24 24' } } if (iconName === 'spinner') { renderedIcon = { html: <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="20" height="20"> <defs> <style> {` .fa-secondary { opacity: 0.4; } `} </style> </defs> <path className="fa-primary" d="M304 48a48 48 0 1 0 -96 0 48 48 0 1 0 96 0zM96 256A48 48 0 1 0 0 256a48 48 0 1 0 96 0zM75 142.9A48 48 0 1 0 142.9 75 48 48 0 1 0 75 142.9z"/> <path className="fa-secondary" d="M369.1 75A48 48 0 1 1 437 142.9 48 48 0 1 1 369.1 75zM416 256a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM208 464a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM75 369.1A48 48 0 1 1 142.9 437 48 48 0 1 1 75 369.1zm294.2 0A48 48 0 1 1 437 437a48 48 0 1 1 -67.9-67.9z"/> </svg>, viewBox: '0 0 22 22' } } const StyledTooltip = styled(({className, ...props}) => ( <Tooltip {...props} classes={{popper: className}}/> ))(({theme}) => ({ [`& .MuiTooltip-tooltip`]: { padding: "10px 20px", fontWeight: "340", fontSize: "var(--rsp-fs-200)", fontFamily: "unset", backgroundColor: "var(--rsp-black)", } })); //https://smartdevpreneur.com/how-to-style-the-material-ui-tooltip/#Resources_and_Related_Posts return ( <StyledTooltip arrow enterDelay={200} title={props.tooltip} //leaveDelay={2000000} //set to 100000000 to be able to examine the DOM placement="bottom" > <div className={'rsssl-icon rsssl-icon-' + iconName}> {renderedIcon.html} </div> </StyledTooltip> ); }; export default Icon; src/utils/formatting.js 0000666 00000003454 15165313625 0011224 0 ustar 00 /** Takes a relative date and an optional date parameter, and returns a human-readable string representing the difference between the two dates. @function @param {number|Date} relativeDate - The relative date (can be a number representing an UTC timestamp, or a Date object). @param {Date} [date=new Date()] - An optional date parameter to compare the relative date to. Defaults to the current date and time. @returns {string} A human-readable string representing the difference between the two dates (e.g., "in 3 months", "5 hours ago", etc.). Returns "-" if the input date is invalid or not yet loaded. @example const timestamp = Date.now() / 1000 + 60 * 60 * 24 * 3; // UTC timestamp 3 days from now console.log(getRelativeTime(timestamp)); // Output: "in 3 days" */ export const getRelativeTime = (relativeDate, date = new Date()) => { // if relativeDate is a number, we assume it is an UTC timestamp if (typeof relativeDate === 'number') { // count charachters to check if in seconds or milliseconds if (relativeDate.toString().length < 13) { relativeDate = relativeDate * 1000; } // convert to date object relativeDate = new Date(relativeDate); } if (!(relativeDate instanceof Date)) { // invalid date, probably still loading return '-'; } let units = { year : 24 * 60 * 60 * 1000 * 365, month : 24 * 60 * 60 * 1000 * 365/12, day : 24 * 60 * 60 * 1000, hour : 60 * 60 * 1000, minute: 60 * 1000, second: 1000 } let rtf = new Intl.RelativeTimeFormat('en', { numeric: 'auto' }) let elapsed = relativeDate - date // "Math.abs" accounts for both "past" & "future" scenarios for (let u in units) { if (Math.abs(elapsed) > units[u] || u === 'second') { return rtf.format(Math.round(elapsed/units[u]), u) } } } src/Modal/ModalControl.js 0000666 00000000732 15165313625 0011337 0 ustar 00 import useModal from "./ModalData"; /** * Button to open the modal * @param props * @returns {JSX.Element} * @constructor */ const ModalControl = (props) => { const {handleModal} = useModal(); const onClickHandler = () => { handleModal(true, props.modalData, props.item ); } return ( <button className={"button button-" + props.btnStyle} onClick={ (e) => onClickHandler(e) }>{props.btnText}</button> ) } export default ModalControl src/Modal/ModalData.js 0000666 00000001441 15165313625 0010566 0 ustar 00 import {create} from 'zustand'; const useModalData = create(( set, get ) => ({ modalData: [], buttonsDisabled: false, showModal:false, ignoredItems:[], fixedItems:[], item:false, setIgnoredItemId: (ignoredItemId) => { let ignoredItems = get().ignoredItems; ignoredItems.push(ignoredItemId); set({ignoredItems: ignoredItems, }); }, setFixedItemId: (fixedItemId) => { let fixedItems = get().fixedItems; fixedItems.push(fixedItemId); set({fixedItems: fixedItems, }); }, handleModal: (showModal, modalData, item) => { set({showModal: showModal, modalData:modalData, item:item }); }, setModalData: (modalData) => { set({modalData:modalData }); }, })); export default useModalData; src/Modal/Modal.js 0000666 00000006274 15165313625 0010005 0 ustar 00 import { __ } from '@wordpress/i18n'; import * as rsssl_api from "../utils/api"; import Icon from "../utils/Icon"; import useModal from "./ModalData"; import {useState} from '@wordpress/element'; const Modal = (props) => { const {handleModal, modalData, setModalData, showModal, setIgnoredItemId, setFixedItemId, item} = useModal(); const [buttonsDisabled, setButtonsDisabled] = useState(false); const dismissModal = () => { handleModal(false, null, null); } const handleFix = (e, type) => { //set to disabled let action = modalData.action; setButtonsDisabled(true); rsssl_api.runTest(action, 'refresh', modalData ).then( ( response ) => { let data = {...modalData}; data.description = response.msg; data.subtitle = ''; setModalData(data); setButtonsDisabled(false); if (response.success) { if (type==='ignore' && item !==false ) { setIgnoredItemId(item.id); } else { setFixedItemId(item.id); } handleModal(false, null); } }); } if (!showModal) { return (<></>); } let disabled = buttonsDisabled ? 'disabled' : ''; let description = modalData.description; if ( !Array.isArray(description) ) { description = [description]; } return ( <div> <div className="rsssl-modal-backdrop" onClick={ (e) => dismissModal(e) }> </div> <div className="rsssl-modal" id="{id}"> <div className="rsssl-modal-header"> <h2 className="modal-title"> {modalData.title} </h2> <button type="button" className="rsssl-modal-close" data-dismiss="modal" aria-label="Close" onClick={ (e) => dismissModal(e) }> <Icon name='times' /> </button> </div> <div className="rsssl-modal-content"> { modalData.subtitle && <div className="rsssl-modal-subtitle">{modalData.subtitle}</div>} { Array.isArray(description) && description.map((s, i) => <div key={"modalDescription-"+i} className="rsssl-modal-description">{s}</div>) } </div> <div className="rsssl-modal-footer"> { modalData.edit && <a href={modalData.edit} target="_blank" className="button button-secondary">{__("Edit", "really-simple-ssl")}</a>} { modalData.help && <a href={modalData.help} target="_blank" className="button rsssl-button-help">{__("Help", "really-simple-ssl")}</a>} { (!modalData.ignored && modalData.action==='ignore_url') && <button disabled={disabled} className="button button-primary" onClick={ (e) => handleFix(e, 'ignore') }>{ __("Ignore", "really-simple-ssl")}</button>} { modalData.action!=='ignore_url' && <button disabled={disabled} className="button button-primary" onClick={ (e) => handleFix(e, 'fix') }>{__("Fix", "really-simple-ssl")}</button> } </div> </div> </div> ) } export default Modal; src/Dashboard/Progress/ProgressBlockHeader.js 0000666 00000003603 15165313625 0015271 0 ustar 00 import { __ } from '@wordpress/i18n'; import { useEffect, } from '@wordpress/element'; import useProgress from "./ProgressData"; const ProgressHeader = () => { const {setFilter, filter, fetchFilter, notices, error } = useProgress(); useEffect( () => { fetchFilter(); }, [] ); const onClickHandler = (e) => { let filter = e.target.getAttribute('data-filter'); if (filter==='all' || filter==='remaining') { setFilter(filter); } } if (error ) { return ( <></> ); } let all_task_count = 0; let open_task_count = 0; all_task_count = notices.length; let openNotices = notices.filter(function (notice) { return notice.output.status==='open' || notice.output.status==='warning'; }); open_task_count = openNotices.length; return ( <> <h3 className="rsssl-grid-title rsssl-h4">{ __( "Progress", 'really-simple-ssl' ) }</h3> <div className="rsssl-grid-item-controls"> <div className={"rsssl-task-switcher-container rsssl-active-filter-"+filter}> <span className="rsssl-task-switcher rsssl-all-tasks" onClick={onClickHandler} htmlFor="rsssl-all-tasks" data-filter="all"> { __( "All tasks", "really-simple-ssl" ) } <span className="rsssl_task_count">({all_task_count})</span> </span> <span className="rsssl-task-switcher rsssl-remaining-tasks" onClick={onClickHandler} htmlFor="rsssl-remaining-tasks" data-filter="remaining"> { __( "Remaining tasks", "really-simple-ssl" )} <span className="rsssl_task_count">({open_task_count})</span> </span> </div> </div> </> ); } export default ProgressHeader; src/Dashboard/Progress/ProgressFooter.js 0000666 00000005123 15165313625 0014363 0 ustar 00 import { __ } from '@wordpress/i18n'; import Icon from "../../utils/Icon"; import useFields from "../../Settings/FieldsData"; import useOnboardingData from "../../Onboarding/OnboardingData"; const ProgressFooter = (props) => { const {setShowOnBoardingModal} = useOnboardingData(); const {fields} = useFields(); let redirectValue = fields.filter( field => field.id==='redirect' )[0].value; let sslEnabled = fields.filter( field => field.id==='ssl_enabled' )[0].value; let wpconfigFixRequired = rsssl_settings.wpconfig_fix_required; let hasMixedContentFixer = fields.filter( field => field.id==='mixed_content_fixer' )[0].value; let hasRedirect = redirectValue=== 'wp_redirect' || redirectValue=== 'htaccess'; let sslStatusText = sslEnabled ? __( "SSL Activated", "really-simple-ssl" ) : __( "SSL not activated", "really-simple-ssl" ); let sslStatusIcon = sslEnabled ? 'circle-check' : 'circle-times'; let sslStatusColor = sslEnabled ? 'green' : 'red'; let redirectIcon = hasRedirect ? 'circle-check' : 'circle-times'; let redirectColor = hasRedirect ? 'green' : 'red'; let mixedContentIcon = hasMixedContentFixer ? 'circle-check' : 'circle-times'; let mixedContentColor = hasMixedContentFixer ? 'green' : 'red'; return ( <> { !sslEnabled && <button key="activate-ssl-button" disabled={wpconfigFixRequired} onClick={() => setShowOnBoardingModal(true)} className="button button-primary">{__( "Activate SSL", "really-simple-ssl" ) }</button>} { rsssl_settings.pro_plugin_active && <span key="progressFooterVersion" className="rsssl-footer-left">Really Simple SSL Pro {rsssl_settings.pro_version}</span>} { !rsssl_settings.pro_plugin_active && <a key="progressFooterGoPro" href={rsssl_settings.upgrade_link} target="_blank" className="button button-default">{ __( "Go Pro", "really-simple-ssl" ) }</a>} <div key="progressFooterStatus" className="rsssl-legend"> <Icon name = {sslStatusIcon} color = {sslStatusColor} /> <div>{sslStatusText}</div> </div> <div key="progressFooterMixed" className="rsssl-legend"> <Icon name = {mixedContentIcon} color = {mixedContentColor} /> <div>{__( "Mixed content", "really-simple-ssl" )}</div> </div> <div key="progressFooterRedirect" className="rsssl-legend"> <Icon name = {redirectIcon} color = {redirectColor} /> <div>{__( "301 redirect", "really-simple-ssl" )}</div> </div> </> ); } export default ProgressFooter; src/Dashboard/Progress/ProgressBlock.js 0000666 00000007631 15165313625 0014165 0 ustar 00 import { useState, useEffect, useRef } from '@wordpress/element'; import TaskElement from "./../TaskElement"; import useProgress from "./ProgressData"; import {__} from "@wordpress/i18n"; const ProgressBlock = (props) => { const {percentageCompleted, progressText, filter, notices, progressLoaded, getProgressData, error} = useProgress(); useEffect( () => { getProgressData(); }, [] ); const getStyles = () => { return Object.assign( {}, {width: percentageCompleted+"%"}, ); } let progressBarColor = ''; if ( percentageCompleted<80 ) { progressBarColor += 'rsssl-orange'; } if ( !progressLoaded || error ) { return ( <div className="rsssl-progress-block"> <div className="rsssl-progress-bar"> <div className="rsssl-progress"> <div className={'rsssl-bar rsssl-orange'} style={getStyles()}></div> </div> </div> <div className="rsssl-progress-text"> <h1 className="rsssl-progress-percentage"> 0% </h1> <h5 className="rsssl-progress-text-span"> {__('Loading...', 'really-simple-ssl')} </h5> </div> <div className="rsssl-scroll-container"> <div className="rsssl-task-element"> <span className={'rsssl-task-status rsssl-loading'}>{__('Loading...', 'really-simple-ssl')}</span> <p className="rsssl-task-message">{__('Loading...', 'really-simple-ssl')}</p> </div> </div> </div> ); } let noticesOutput = notices; if ( filter==='remaining' ) { noticesOutput = noticesOutput.filter(function (notice) { return notice.output.status==='open'; }); } return ( <div className="rsssl-progress-block"> <div className="rsssl-progress-bar"> <div className="rsssl-progress"> <div className={'rsssl-bar ' + progressBarColor} style={getStyles()}></div> </div> </div> <div className="rsssl-progress-text"> <AnimatedPercentage percentageCompleted={percentageCompleted} /> <h5 className="rsssl-progress-text-span"> {progressText} </h5> </div> <div className="rsssl-scroll-container"> {noticesOutput.map((notice, i) => <TaskElement key={"task-"+i} notice={notice}/>)} </div> </div> ); } export default ProgressBlock; export const AnimatedPercentage = ({ percentageCompleted }) => { const [displayedPercentage, setDisplayedPercentage] = useState(0); // useRef previous percentageCompleted const prevPercentageCompleted = useRef(0); const easeOutCubic = (t) => { return 1 - Math.pow(1 - t, 3); }; useEffect(() => { const startPercentage = prevPercentageCompleted.current; const animationDuration = 1000; const startTime = Date.now(); const animatePercentage = () => { const elapsedTime = Date.now() - startTime; const progress = Math.min(elapsedTime / animationDuration, 1); const easedProgress = easeOutCubic(progress); const newPercentage = Math.min(startPercentage + (percentageCompleted - startPercentage) * easedProgress, percentageCompleted); if (progress < 1) { // update displayedPercentage setDisplayedPercentage(newPercentage); prevPercentageCompleted.current = percentageCompleted; } else { // update prevPercentageCompleted to the new percentageCompleted clearInterval(animationInterval); } }; const animationInterval = setInterval(animatePercentage, 16); return () => clearInterval(animationInterval); }, [percentageCompleted]); return ( <h1 className="rsssl-progress-percentage"> {Math.round(displayedPercentage)}% </h1> ); }; src/Dashboard/Progress/ProgressData.js 0000666 00000002610 15165313625 0013774 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const useProgress = create(( set, get ) => ({ filter:'all', progressText:'', notices: [], error:false, percentageCompleted:0, progressLoaded:false, setFilter: (filter) => { sessionStorage.rsssl_task_filter = filter; set(state => ({ filter })) }, fetchFilter: () => { if ( typeof (Storage) !== "undefined" && sessionStorage.rsssl_task_filter ) { let filter = sessionStorage.rsssl_task_filter; set(state => ({ filter:filter })) } }, getProgressData: async () => { const {percentage, text, notices, error } = await rsssl_api.runTest('progressData', 'refresh').then( ( response ) => { return response; }); set(state => ({ notices:notices, percentageCompleted:percentage, progressText:text, progressLoaded:true, error:error, })) }, dismissNotice: async (noticeId) => { let notices = get().notices; notices = notices.filter(function (notice) { return notice.id !== noticeId; }); set(state => ({ notices:notices })) const {percentage} = await rsssl_api.runTest('dismiss_task', noticeId); set({ percentageCompleted:percentage }) } })); export default useProgress; src/Dashboard/SslLabs/SslLabsHeader.js 0000666 00000000652 15165313625 0013615 0 ustar 00 import { __ } from '@wordpress/i18n'; const SslLabsHeader = () => { return ( <> <h3 className="rsssl-grid-title rsssl-h4">{ __( "Status", 'really-simple-ssl' ) }</h3> <div className="rsssl-grid-item-controls"> <span className="rsssl-header-html"> {__( "Powered by Qualys", 'really-simple-ssl' )}</span> </div> </> ) } export default SslLabsHeader; src/Dashboard/SslLabs/SslLabsData.js 0000666 00000015346 15165313625 0013304 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; const useSslLabs = create(( set, get ) => ({ debug:false, //set to true for localhost testing, with wordpress.org as domain sslScanStatus: false, sslData: false, endpointData: [], dataLoaded:false, clearCache:false, requestActive:false, intervalId:false, setIntervalId: (intervalId) => set({ intervalId }), setRequestActive: (requestActive) => set({ requestActive }), setSslScanStatus: (sslScanStatus) => set({ sslScanStatus }), setClearCache: (clearCache) => set({ clearCache }), setSslData: (sslData) => set({ sslData }), setEndpointData: (endpointData) => set({ endpointData }), isLocalHost: () => { let debug = get().debug; return debug ? false: window.location.host.indexOf('localhost')!==-1; } , host: () => { let debug = get().debug; return debug ? "wordpress.org" : window.location.host; }, fetchSslData: async () => { rsssl_api.doAction('ssltest_get').then( ( response ) => { if (response.data.hasOwnProperty('host') ) { let data = get().processSslData(response.data); set({ sslData: data, endpointData: data.endpointData, dataLoaded: true, }) } }) }, getSslLabsData: (e) => { let clearCacheUrl = ''; if (get().clearCache){ set({clearCache:false,sslData:false }); clearCacheUrl = '&startNew=on'; } const url = "https://api.ssllabs.com/api/v3/analyze?host="+get().host()+clearCacheUrl; let data = {}; data.url = url; return rsssl_api.doAction('ssltest_run', data).then( ( response ) => { if ( response && !response.errors) { return JSON.parse(response); } else { return false; } }) }, runSslTest: () => { get().getSslLabsData().then((sslData)=>{ if ( sslData.status && sslData.status === 'ERROR' ){ sslData = get().processSslData(sslData); set({ sslData: sslData, sslScanStatus: 'completed', }); clearInterval(get().intervalId); } else if ( sslData.endpoints && sslData.endpoints.filter((endpoint) => endpoint.statusMessage === 'Ready').length>0 ) { let completedEndpoints = sslData.endpoints.filter((endpoint) => endpoint.statusMessage === 'Ready'); let lastCompletedEndpointIndex = completedEndpoints.length-1; let lastCompletedEndpoint = completedEndpoints[ lastCompletedEndpointIndex]; let ipAddress = lastCompletedEndpoint.ipAddress; get().getEndpointData(ipAddress).then( (response ) => { let endpointData = get().endpointData; if (!Array.isArray(endpointData)) endpointData = []; if ( !response.errors ){ //if the endpoint already is stored, replace it. let foundEndpoint = false; if (endpointData.length>0) { endpointData.forEach(function(endpoint, i) { if ( endpoint.ipAddress === response.ipAddress ) { endpointData[i] = response; foundEndpoint = true; } }); } if ( !foundEndpoint ) { endpointData[endpointData.length] = response; } set({endpointData: endpointData}); sslData.endpointData = endpointData; } if ( !sslData.errors ) { rsssl_api.doAction('store_ssl_labs', sslData ); } sslData = get().processSslData(sslData); set({sslData: sslData, requestActive: false}); }); } else { //if there are no errors, this runs when the first endpoint is not completed yet sslData = get().processSslData(sslData); if ( !sslData.errors ) { rsssl_api.doAction('store_ssl_labs', sslData ).then( ( response ) => {}); } set({sslData:sslData,requestActive: false}); } }); }, processSslData: (sslData) => { let progress = sslData.progress ? sslData.progress : 0; let startTime = sslData.startTime ? sslData.startTime : ''; let statusMessage = sslData.statusMessage ? sslData.statusMessage : ''; let grade = sslData.grade ? sslData.grade : '?'; let ipAddress=''; if ( sslData.endpoints ) { let completedEndpoints = sslData.endpoints.filter((endpoint) => endpoint.statusMessage === 'Ready'); let completedEndpointsLength = completedEndpoints.length; let lastCompletedEndpoint = completedEndpoints[ completedEndpointsLength-1]; let activeEndpoint = sslData.endpoints.filter((endpoint) => endpoint.statusMessage === 'In progress')[0]; let activeEndpointProgress = 0; if (activeEndpoint) { activeEndpointProgress = activeEndpoint.progress ? activeEndpoint.progress : 0; statusMessage = activeEndpoint.statusDetailsMessage; ipAddress = activeEndpoint.ipAddress; } if (lastCompletedEndpoint) grade = lastCompletedEndpoint.grade; progress = ( completedEndpointsLength * 100 + activeEndpointProgress ) / sslData.endpoints.length; } if ( sslData.errors ) { grade = '?'; statusMessage = sslData.errors[0].message; progress = 100; } let summary = {}; if ( progress >= 100) { set({sslScanStatus: 'completed'}); } summary.grade = grade; summary.startTime = startTime; summary.statusMessage = statusMessage; summary.ipAddress = ipAddress; summary.progress = progress; sslData.summary = summary; return sslData; }, getEndpointData:(ipAddress) => { const url = 'https://api.ssllabs.com/api/v3/getEndpointData?host='+get().host()+'&s='+ipAddress; let data = {}; data.url = url; return rsssl_api.doAction('ssltest_run', data).then( ( response ) => { if ( response && !response.errors) { return JSON.parse(response); } }) } })); export default useSslLabs; src/Dashboard/SslLabs/SslLabsFooter.js 0000666 00000001204 15165313625 0013655 0 ustar 00 import { __ } from '@wordpress/i18n'; import useSslLabs from "./SslLabsData"; const SslLabsFooter = () => { const {sslScanStatus, setSslScanStatus, isLocalHost} = useSslLabs(); let disabled = sslScanStatus === 'active' || isLocalHost(); return ( <> <button disabled={disabled} onClick={ (e) => setSslScanStatus('active') } className="button button-default"> { sslScanStatus==='paused' && __("Continue SSL Health check", "really-simple-ssl")} { sslScanStatus!=='paused' && __("Check SSL Health", "really-simple-ssl")} </button> </> ) } export default SslLabsFooter; src/Dashboard/SslLabs/SslLabs.js 0000666 00000027735 15165313625 0012517 0 ustar 00 import { useEffect, useState, useRef} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import Icon from "../../utils/Icon"; import useSslLabs from "./SslLabsData"; import {getRelativeTime} from "../../utils/formatting"; const ScoreElement = ({className, content, id}) => { const [hover, setHover] = useState(false); let hoverClass = hover ? 'rsssl-hover' : ''; return ( <div key={id} className="rsssl-score-container"><div onMouseEnter={()=> setHover(true)} onMouseLeave={() => setHover(false)} className={"rsssl-score-snippet "+className+' '+hoverClass}>{content}</div></div> ) } const SslLabs = (props) => { const { dataLoaded, clearCache, endpointData, setEndpointData, sslData, setSslData, sslScanStatus, setSslScanStatus, isLocalHost, fetchSslData, runSslTest, intervalId, setIntervalId, requestActive, setRequestActive, setClearCache } = useSslLabs(); const hasRunOnce = useRef(false); useEffect(()=>{ if ( !dataLoaded ) { fetchSslData(); } } , []) const neverScannedYet = () => { return !sslData; } useEffect(()=> { if ( isLocalHost() ) { return; } if (sslScanStatus==='active' && sslData.summary && sslData.summary.progress>=100 ) { setClearCache(true); hasRunOnce.current = false; setSslData(false); setEndpointData(false); } if (sslScanStatus==='active' && sslData.status === 'ERROR' ) { setClearCache(true); setSslData(false); setEndpointData(false); } let scanInComplete = (sslData && sslData.status !== 'READY'); let userClickedStartScan = sslScanStatus==='active'; if (clearCache) scanInComplete = true; let hasErrors = sslData.errors || sslData.status === 'ERROR'; let startScan = !hasErrors && (scanInComplete || userClickedStartScan); if ( !requestActive && startScan ) { setSslScanStatus('active'); setRequestActive(true); if ( !hasRunOnce.current ) { runSslTest(); if (!intervalId) { let newIntervalId = setInterval(function () { runSslTest(); }, 4000); setIntervalId(newIntervalId); } hasRunOnce.current = true; } } else if ( sslData && sslData.status === 'READY' ) { setSslScanStatus('completed'); clearInterval(intervalId); } }, [sslScanStatus, sslData]); /** * Get some styles for the progress bar * @returns {{width: string}} */ const getStyles = () => { let progress = 0; if (sslData && sslData.summary.progress) { progress = sslData.summary.progress; } else if (progress==0 && sslScanStatus ==='active') { progress=5; } return Object.assign( {}, {width: progress+"%"}, ); } const scoreSnippet = (className, content, id) => { return ( <ScoreElement className={className} content={content} id={id}/> ) } /** * Retrieve information from SSL labs if HSTS is detected * * @returns {JSX.Element} */ const hasHSTS = () => { let status = 'processing'; if ( neverScannedYet() ){ status = 'inactive'; } if ( endpointData && endpointData.length>0 ) { let failedData = endpointData.filter(function (endpoint) { return endpoint.details.hstsPolicy && endpoint.details.hstsPolicy.status!=='present'; }); status = failedData.length>0 ? 'error' : 'success'; } return ( <> {(status==='inactive') && scoreSnippet("rsssl-test-inactive", "HSTS",'hsts')} {status==='processing' && scoreSnippet("rsssl-test-processing", "HSTS...", 'hsts')} {status==='error' && scoreSnippet("rsssl-test-error", "No HSTS header", 'hsts')} {status==='success' && scoreSnippet("rsssl-test-success", "HSTS header detected", 'hsts')} </> ) } /** * Calculate cipher strength * @returns {JSX.Element} */ const cipherStrength = () => { // Start with the score of the strongest cipher. // Add the score of the weakest cipher. // Divide the total by 2. let rating = 0; let ratingClass = 'rsssl-test-processing'; if ( neverScannedYet() ){ ratingClass = 'rsssl-test-inactive'; } if ( endpointData && endpointData.length>0 ) { let weakest = 256; let strongest = 128; endpointData.forEach(function(endpoint, i){ endpoint.details.suites && endpoint.details.suites.forEach(function(suite, j){ suite.list.forEach(function(cipher, j){ weakest = cipher.cipherStrength<weakest ? cipher.cipherStrength : weakest; strongest = cipher.cipherStrength>strongest ? cipher.cipherStrength : strongest; }); }); }); rating = (getCypherRating(weakest) + getCypherRating(strongest) )/2; rating = Math.round(rating); ratingClass = rating>70 ? "rsssl-test-success" : "rsssl-test-error"; } return ( <> {scoreSnippet(ratingClass, __("Cipher strength","really-simple-ssl")+' '+rating+'%','cipher')} </> ) } /** * https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide#Certificate-strength */ const getCypherRating = (strength) => { let score = 0; if (strength==0) { score = 0; } else if (strength<128){ score = 20; } else if (strength<256){ score=80; } else { score=100; } return score; } const certificateStatus = () => { let status = 'processing'; if ( neverScannedYet() ){ status = 'inactive'; } if ( endpointData && endpointData.length>0 ) { let failedData = endpointData.filter(function (endpoint) { return endpoint.grade && endpoint.grade.indexOf('A')===-1; }); status = failedData.length>0 ? 'error' : 'success'; } return ( <> {(status==='inactive') && scoreSnippet("rsssl-test-inactive", "Certificate", "certificate")} {status==='processing' && scoreSnippet("rsssl-test-processing", "Certificate...", "certificate")} {status==='error' && !hasErrors && scoreSnippet("rsssl-test-error", "Certificate issue", "certificate")} {status==='success' && scoreSnippet("rsssl-test-success", "Valid certificate", "certificate")} </> ) } const supportsTlS11 = () => { let status = 'processing'; if ( neverScannedYet() ){ status = 'inactive'; } if ( endpointData && endpointData.length>0 ) { status = 'success'; endpointData.forEach(function(endpoint, i){ endpoint.details.protocols && endpoint.details.protocols.forEach(function(protocol, j){ if (protocol.version==='1.1') status = 'error'; }); }); } return ( <> {(status==='inactive') && scoreSnippet("rsssl-test-inactive", "Protocol support", "protocol")} {(status==='processing') && scoreSnippet("rsssl-test-processing", "Protocol support...", "protocol")} {status==='error' && scoreSnippet("rsssl-test-error", "Supports TLS 1.1", "protocol")} {status==='success' && scoreSnippet("rsssl-test-success", "No TLS 1.1", "protocol")} </> ) } let sslClass = 'rsssl-inactive'; let progress = sslData ? sslData.summary.progress : 0; let startTime = sslData ? sslData.summary.startTime : false; let startTimeNice=''; if ( startTime ) { let newDate = new Date(); newDate.setTime(startTime); startTimeNice = getRelativeTime(startTime); } else { startTimeNice = __("No test started yet","really-simple-ssl") } let statusMessage = sslData ? sslData.summary.statusMessage : false; let grade = sslData ? sslData.summary.grade : '?'; if ( sslData && sslData.status === 'READY' ) { if ( grade.indexOf('A')!==-1 ){ sslClass = "rsssl-success"; } else { sslClass = "rsssl-error"; } } if (neverScannedYet()){ sslClass = "rsssl-inactive"; } let gradeClass = neverScannedYet() ? 'inactive' : grade; let url = 'https://www.ssllabs.com/analyze.html?d='+encodeURIComponent(window.location.protocol + "//" + window.location.host); let hasErrors = false; let errorMessage=''; let sslStatusColor = 'black'; if ( isLocalHost() ) { hasErrors = true; sslStatusColor = 'red'; errorMessage = __("Not available on localhost","really-simple-ssl"); } else if (sslData && (sslData.errors || sslData.status === 'ERROR') ) { hasErrors = true; sslStatusColor = 'red'; errorMessage = statusMessage; } else if (sslData && progress<100 ) { hasErrors = true; sslStatusColor = 'orange'; errorMessage = statusMessage; } return ( <> <div className={'rsssl-ssl-labs'}> <div className={"rsssl-gridblock-progress-container "+sslClass}> <div className="rsssl-gridblock-progress" style={getStyles()}></div> </div> <div className="rsssl-gridblock-progress" style={getStyles()}></div> <div className={"rsssl-ssl-labs-select " + sslClass}> <div className="rsssl-ssl-labs-select-item"> {supportsTlS11()} {hasHSTS()} {certificateStatus()} {cipherStrength()} </div> <div className="rsssl-ssl-labs-select-item"> {!neverScannedYet() ? <h2 className={'big-number'}>{grade}</h2> : <h2 className={'big-number'}>?</h2>} {neverScannedYet() && <div></div>} </div> </div> <div className="rsssl-ssl-labs-list"> <div className="rsssl-ssl-labs-list-item"> <Icon name="info" color={sslStatusColor}/> <p className="rsssl-ssl-labs-list-item-text"> {hasErrors && errorMessage} {!hasErrors && __('What does my score mean?', 'really-simple-ssl')} </p> <a href="https://really-simple-ssl.com/instructions/about-ssl-labs/" target="_blank"> {__('Read more', 'really-simple-ssl')} </a> </div> <div className="rsssl-ssl-labs-list-item"> <Icon name="list" color="black"/> <p className="rsssl-ssl-labs-list-item-text"> {__('Last check:', 'really-simple-ssl')} </p> <p className="rsssl-ssl-labs-list-item-text">{startTimeNice}</p> </div> { <div className="rsssl-ssl-labs-list-item"> <Icon name="external-link" color="black"/> <a href={url} target="_blank">{__('View detailed report on Qualys SSL Labs', 'really-simple-ssl')}</a> </div> } </div> </div> </> ); } export default SslLabs; src/Dashboard/TaskElement.js 0000666 00000006241 15165313625 0012012 0 ustar 00 import { __ } from '@wordpress/i18n'; import Icon from '../utils/Icon' import {dispatch,} from '@wordpress/data'; import * as rsssl_api from "../utils/api"; import sleeper from "../utils/sleeper"; import useFields from "../Settings/FieldsData"; import useProgress from "./Progress/ProgressData"; import useMenu from "../Menu/MenuData"; const TaskElement = (props) => { const {dismissNotice} = useProgress(); const {getField, setHighLightField, fetchFieldsData} = useFields(); const {setSelectedSubMenuItem} = useMenu(); const handleClick = async () => { setHighLightField(props.notice.output.highlight_field_id); let highlightField = getField(props.notice.output.highlight_field_id); await setSelectedSubMenuItem(highlightField.menu_id); } const handleClearCache = (cache_id) => { let data = {}; data.cache_id = cache_id; rsssl_api.doAction('clear_cache', data).then( ( response ) => { const notice = dispatch('core/notices').createNotice( 'success', __( 'Re-started test', 'really-simple-ssl' ), { __unstableHTML: true, id: 'rsssl_clear_cache', type: 'snackbar', isDismissible: true, } ).then(sleeper(3000)).then(( response ) => { dispatch('core/notices').removeNotice('rsssl_clear_cache'); }); fetchFieldsData(); }); } let notice = props.notice; let premium = notice.output.icon==='premium'; //treat links to rsssl.com and internal links different. let urlIsExternal = notice.output.url && notice.output.url.indexOf('really-simple-ssl.com') !== -1; return( <div className="rsssl-task-element"> <span className={'rsssl-task-status rsssl-' + notice.output.icon}>{ notice.output.label }</span> <p className="rsssl-task-message" dangerouslySetInnerHTML={{__html: notice.output.msg}}></p> {urlIsExternal && notice.output.url && <a target="_blank" href={notice.output.url}>{__("More info", "really-simple-ssl")}</a> } {notice.output.clear_cache_id && <span className="rsssl-task-enable button button-secondary" onClick={ () => handleClearCache(notice.output.clear_cache_id ) }>{__("Re-check", "really-simple-ssl")}</span> } {!premium && !urlIsExternal && notice.output.url && <a className="rsssl-task-enable button button-secondary" href={notice.output.url}>{__("View", "really-simple-ssl")}</a> } {!premium && notice.output.highlight_field_id && <span className="rsssl-task-enable button button-secondary" onClick={() => handleClick()}>{__("View", "really-simple-ssl")}</span> } {notice.output.plusone && <span className='rsssl-plusone'>1</span>} {notice.output.dismissible && notice.output.status!=='completed' && <div className="rsssl-task-dismiss"> <button type='button' onClick={(e) => dismissNotice(notice.id) }> <Icon name='times' /> </button> </div> } </div> ); } export default TaskElement; src/Dashboard/TipsTricks/TipsTricksFooter.js 0000666 00000000505 15165313625 0015150 0 ustar 00 import { __ } from '@wordpress/i18n'; const TipsTricksFooter = () => { return ( <> <a href="https://really-simple-ssl.com/knowledge-base-overview/" target="_blank" className="button button-secondary">{ __("Documentation", "really-simple-ssl")}</a> </> ); } export default TipsTricksFooter src/Dashboard/TipsTricks/TipsTricks.js 0000666 00000004177 15165313625 0014002 0 ustar 00 const Tip = ({link, content}) => { return ( <div className="rsssl-tips-tricks-element"> <a href={link} target="_blank" title="{content}"> <div className="rsssl-icon"> <svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" height="15"> <path fill="var(--rsp-grey-300)" d="M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"/> </svg> </div> <div className="rsssl-tips-tricks-content">{content}</div> </a> </div> ) } const TipsTricks = () => { const items = [ { content: "Definition: What is a Content Security Policy?", link: 'https://really-simple-ssl.com/definition/What-is-a-Content-Security-Policy/', }, { content: "Installing a Let's Encrypt certificate", link: 'https://really-simple-ssl.com/install-ssl-certificate/', }, { content: "Improve Security: (HSTS) HTTP Strict Transport Security", link: 'https://really-simple-ssl.com/instructions/about-hsts/', }, { content: "Improve Security: About vulnerabilities", link: 'https://really-simple-ssl.com/instructions/about-vulnerabilities', }, { content: "Instructions: Debugging with Really Simple SSL", link: 'https://really-simple-ssl.com/instructions/debugging/', }, { content: "Instructions: Configuring Hardening Features", link: 'https://really-simple-ssl.com/instructions/about-hardening-features/', }, ]; return ( <div className="rsssl-tips-tricks-container"> {items.map((item, i) => <Tip key={"trick-"+i} link={item.link} content={item.content} /> ) } </div> ); } export default TipsTricks src/Dashboard/Vulnerabilities/VulnerabilitiesFooter.js 0000666 00000001774 15165313625 0017265 0 ustar 00 import React, {useEffect, useState} from 'react'; import {__} from '@wordpress/i18n'; import useRiskData from "../../Settings/RiskConfiguration/RiskData"; import useFields from "../../Settings/FieldsData"; import {getRelativeTime} from '../../utils/formatting'; const VulnerabilitiesFooter = (props) => { const {lastChecked} = useRiskData(); const {fields, getFieldValue} = useFields(); const [vulEnabled, setVulEnabled] = useState(false); useEffect(() => { if (getFieldValue('enable_vulnerability_scanner')==1) { setVulEnabled(true); } }, [fields]); const styleFooter = { textAlign: 'right', position: 'relative', right: '0', } return ( <> <a href="#settings/vulnerabilities" className={'button button-default'}>{__('Settings', 'really-simple-ssl')}</a> {vulEnabled? <p className={'rsssl-small-text'}>{getRelativeTime(lastChecked)}</p>: null} </> ) } export default VulnerabilitiesFooter; src/Dashboard/Vulnerabilities/VulnerabilitiesHeader.js 0000666 00000001443 15165313625 0017210 0 ustar 00 import { __ } from '@wordpress/i18n'; import {useEffect, useState} from "react"; import useFields from "../../Settings/FieldsData"; const VulnerabilitiesHeader = () => { const {fields, getFieldValue} = useFields(); const [vulEnabled, setVulEnabled] = useState(false); useEffect(() => { if (getFieldValue('enable_vulnerability_scanner')==1) { setVulEnabled(true); } }, [fields]); return ( <> <h3 className="rsssl-grid-title rsssl-h4">{ vulEnabled ? __( "Vulnerabilities", 'really-simple-ssl' ) : __( "Hardening", 'really-simple-ssl' ) }</h3> <div className="rsssl-grid-item-controls"> <span className="rsssl-header-html"></span> </div> </> ) } export default VulnerabilitiesHeader; src/Dashboard/Vulnerabilities/Vulnerabilities.js 0000666 00000030240 15165313625 0016074 0 ustar 00 import Icon from "../../utils/Icon"; import {__} from "@wordpress/i18n"; import {useEffect, useState} from "react"; import useFields from "../../Settings/FieldsData"; import useRiskData from "../../Settings/RiskConfiguration/RiskData"; const Vulnerabilities = () => { const { vulnerabilities, vulnerabilityScore, updates, dataLoaded, riskNaming, vulnerabilityCount, capitalizeFirstLetter, fetchVulnerabilities } = useRiskData(); const {fields, getFieldValue} = useFields(); const [vulnerabilityWord, setVulnerabilityWord] = useState(''); const [updateWord, setUpdateWord] = useState(''); const [hardeningWord, setHardeningWord] = useState(''); const [notEnabledHardeningFields, setNotEnabledHardeningFields] = useState(0); const [vulEnabled, setVulEnabled] = useState(false); useEffect(() => { if (getFieldValue('enable_vulnerability_scanner')==1) { setVulEnabled(true); } }, [fields]); useEffect(() => { if (!dataLoaded) { fetchVulnerabilities(); } }, [vulEnabled]); useEffect(() => { //singular or plural of the word vulnerability const v = (vulnerabilities === 1) ? __("vulnerability", "really-simple-ssl") : __("vulnerabilities", "really-simple-ssl"); setVulnerabilityWord(v); const u = (updates === 1) ? __("update", "really-simple-ssl") : __("updates", "really-simple-ssl"); setUpdateWord(u); const h = (notEnabledHardeningFields === 1) ? __("hardening feature", "really-simple-ssl") : __("hardening features", "really-simple-ssl"); setHardeningWord(h); },[vulnerabilities, updates, notEnabledHardeningFields]) useEffect(() => { if (fields.length>0) { let notEnabledFields = fields.filter(field => field.recommended); //we need to filter enabled fields, but also disabled fields, because these are not enabled, but set by another method, so disabled notEnabledFields = notEnabledFields.filter(field => field.value !== 1 && field.disabled !== true); setNotEnabledHardeningFields(notEnabledFields.length); } },[fields]) let risks = vulnerabilityCount(); let vulClass = 'rsssl-inactive'; let badgeVulStyle = vulEnabled?'rsp-success':'rsp-default'; let badgeUpdateStyle = 'rsp-success'; let iconVulColor = 'green'; let iconVulEnabledColor = 'red'; let iconUpdateColor = 'black'; if (vulEnabled || notEnabledHardeningFields > 0 || updates > 0) { //now we calculate the score let score = vulnerabilityScore(); //we create correct badge style if (score >= 5) { badgeVulStyle = 'rsp-critical'; iconVulColor = 'red'; } else if (score < 4 && score > 0) { badgeVulStyle = 'rsp-medium'; iconVulColor = 'yellow'; } if (updates >= 5) { badgeUpdateStyle = 'rsp-critical'; iconUpdateColor = 'red'; } else if (score < 5 && score > 0) { badgeUpdateStyle = 'rsp-medium'; iconUpdateColor = 'yellow'; } if (score < notEnabledHardeningFields) { score = notEnabledHardeningFields; } if (score < updates) { score = updates; } if (score === 0) { vulClass = 'rsssl-success'; } else if (score < 5) { vulClass = 'rsssl-warning'; } else { vulClass = 'rsssl-error'; } // if (!vulEnabled) vulClass = "rsssl-inactive"; } const checkVulActive = () => { if (vulEnabled) { // iconVulEnabledColor = 'green'; return (<></>) } return ( <> <div className="rsssl-hardening-list-item"> <Icon name="info" color='yellow'/> <p className={'rsssl-hardening-list-item-text'}> {__("Enable vulnerability detection", "really-simple-ssl")}</p> <a href="#settings/vulnerabilities">{__("Enable", "really-simple-ssl")}</a> </div> </> ) } const checkUpdates = () => { let icon = 'circle-check'; let iconColor = 'green'; if (updates > 0) { icon = 'info'; iconColor = 'yellow'; } if (updates >= 5) { icon = 'circle-times'; iconColor = 'red'; } if (updates) { return ( <> <div className="rsssl-hardening-list-item"> <Icon name={icon} color={iconColor}/> <p className="rsssl-hardening-list-item-text"> {__("You have %s %d pending", "really-simple-ssl").replace("%s", updates).replace("%d", updateWord)} </p> <a href={rsssl_settings.plugins_url + "?plugin_status=upgrade"} style={linkStyle}>{capitalizeFirstLetter(updateWord)}</a> </div> </> ) } else { return ( <> <div className="rsssl-hardening-list-item"> <Icon name={icon} color={iconColor}/> <p className="rsssl-hardening-list-item-text"> {__("You have %s %d pending", "really-simple-ssl").replace("%s", updates).replace("%d", updateWord)} </p> </div> </> ) } } const checkVul = () => { let icon = 'circle-check'; let iconColor = 'green'; if (vulnerabilityScore() > 0) { icon = 'info'; iconColor = 'yellow'; } if (vulnerabilityScore() >= 5) { icon = 'circle-times'; iconColor = 'red'; } if (!vulEnabled) { return ( <> </> ) } if (vulnerabilities) { return ( <> <div className="rsssl-hardening-list-item"> <Icon name={icon} color={iconColor}/> <p className="rsssl-hardening-list-item-text"> {__("You have %s %d", "really-simple-ssl") .replace("%s", vulnerabilities) .replace("%d", vulnerabilityWord) } </p> <a style={linkStyle} href={'#settings/vulnerabilities'}>{__('Learn more', 'really-simple-ssl')}</a> </div> </> ) } else { return ( <> <div className="rsssl-hardening-list-item"> <Icon name="circle-check" color='green'/> <p className="rsssl-hardening-list-item-text"> {__("You have %s %d", "really-simple-ssl") .replace("%d", vulnerabilityWord) .replace("%s", vulnerabilities) } </p> </div> </> ) } } const linkStyle = { marginLeft: '0.3em' } const checknotEnabledHardeningFields = () => { if (notEnabledHardeningFields) { let icon = 'circle-check'; let iconColor = 'green'; if (notEnabledHardeningFields > 0) { icon = 'info'; iconColor = 'yellow'; } if (notEnabledHardeningFields >= 5) { icon = 'circle-times'; iconColor = 'red'; } return ( <> <div className="rsssl-hardening-list-item"> <Icon name={icon} color={iconColor}/> <p className={"rsssl-hardening-list-item-text"}> {__("You have %s open %d", "really-simple-ssl").replace("%s", notEnabledHardeningFields).replace('%d',hardeningWord)} </p> <a href="#settings/hardening">{__("Settings", "really-simple-ssl")}</a> </div> </> ) } else { return (<> <div className="rsssl-hardening-list-item"> <Icon name="circle-check" color='green'/> <p className={"rsssl-hardening-list-item-text"}>{__("Hardening features are configured", "really-simple-ssl")}</p> {/*@todo link toevoegen?*/} <a style={linkStyle} href={'#settings/vulnerabilities'} target="_blank">{__('What now', 'really-simple-ssl')}?</a> </div> </>) } } return ( <> {dataLoaded ? <div className={'rsssl-hardening'}> <div className="rsssl-gridblock-progress" ></div> <div className={"rsssl-hardening-select " + vulClass}> <div className="rsssl-hardening-select-item"> {vulEnabled ? <Icon color={iconVulColor} size={23} name="radar-duotone"></Icon> : <Icon size={23} color={iconVulEnabledColor} name="satellite-dish-duotone"></Icon>} <h2>{vulEnabled ? vulnerabilities : '?'}</h2> <span className={"rsssl-badge " + badgeVulStyle}>{capitalizeFirstLetter(vulnerabilityWord)}</span> </div> <div className="rsssl-hardening-select-item"> { updates ? <Icon size={23} color={iconUpdateColor} name="rotate-exclamation-light"></Icon> : <Icon size={23} color={'black'} name="rotate-light"></Icon>} <h2>{updates}</h2> <span className={"rsssl-badge " + badgeUpdateStyle}>{capitalizeFirstLetter(updateWord)}</span> </div> </div> <div className="rsssl-hardening-list"> {checknotEnabledHardeningFields()} {checkVulActive()} {checkVul()} {checkUpdates()} </div> </div> : <div className="rsssl-hardening"> <div className="rsssl-gridblock-progress" ></div> <div className="rsssl-hardening-select"> <div className="rsssl-hardening-select-item"> <Icon size={23} color={'grey'} name="radar-duotone"></Icon> <h2>0</h2> <span className={"rsssl-badge rsp-default"}>{capitalizeFirstLetter(vulnerabilityWord)}</span> </div> <div className="rsssl-hardening-select-item"> <Icon size={23} color={'grey'} name="rotate-exclamation-light"></Icon> <h2>0</h2> <span className={"rsssl-badge rsp-default"}>{capitalizeFirstLetter(updateWord)}</span> </div> </div> <div className="rsssl-hardening-list"> <div className="rsssl-hardening-list-item"> <Icon color={'grey'} name="circle-check"></Icon> <p className={"rsssl-hardening-list-item-text"}>{__("Loading...", "really-simple-ssl")}</p> </div> <div className="rsssl-hardening-list-item"> <Icon color={'grey'} name="circle-check"></Icon> <p className={"rsssl-hardening-list-item-text"}>{__("Loading...", "really-simple-ssl")}</p> </div> <div className="rsssl-hardening-list-item"> <Icon color={'grey'} name="circle-check"></Icon> <p className={"rsssl-hardening-list-item-text"}>{__("Loading...", "really-simple-ssl")}</p> </div> </div> </div> } </> ) } export default Vulnerabilities; src/Dashboard/GridBlock.js 0000666 00000002171 15165313625 0011434 0 ustar 00 const GridBlock = (props) => { const footer =props.block.footer ? props.block.footer : false; const blockData = props.block; let className = "rsssl-grid-item "+blockData.class+" rsssl-"+blockData.id; return ( <div key={"block-"+blockData.id} className={className}> <div key={"header-"+blockData.id} className="rsssl-grid-item-header"> { blockData.header && wp.element.createElement(blockData.header) } { !blockData.header && <> <h3 className="rsssl-grid-title rsssl-h4">{ blockData.title }</h3> <div className="rsssl-grid-item-controls"></div> </> } </div> <div key={"content-"+blockData.id} className="rsssl-grid-item-content">{wp.element.createElement(props.block.content)}</div> { !footer && <div key={"footer-"+blockData.id} className="rsssl-grid-item-footer"></div>} { footer && <div key={"footer-"+blockData.id} className="rsssl-grid-item-footer">{wp.element.createElement(footer)}</div>} </div> ); } export default GridBlock; src/Dashboard/OtherPlugins/OtherPluginsHeader.js 0000666 00000001136 15165313625 0015753 0 ustar 00 import { __ } from '@wordpress/i18n'; const OtherPluginsHeader = () => { return ( <> <h3 className="rsssl-grid-title rsssl-h4">{ __( "Other Plugins", 'really-simple-ssl' ) }</h3> <div className="rsssl-grid-item-controls"> <span className="rsssl-header-html"> <a className="rsp-logo" href="https://really-simple-plugins.com/"><img src={rsssl_settings.plugin_url+"assets/img/really-simple-plugins.svg"} alt="Really Simple Plugins"/></a> </span> </div> </> ) } export default OtherPluginsHeader; src/Dashboard/OtherPlugins/OtherPlugins.js 0000666 00000003374 15165313625 0014650 0 ustar 00 import { useEffect} from "@wordpress/element"; import { __ } from '@wordpress/i18n'; import Placeholder from '../../Placeholder/Placeholder'; import useOtherPlugins from "./OtherPluginsData"; const OtherPlugins = () => { const {dataLoaded, pluginData, pluginActions, fetchOtherPluginsData, error} = useOtherPlugins(); useEffect(() => { if (!dataLoaded) { fetchOtherPluginsData(); } }, [] ) const otherPluginElement = (plugin, i) => { return ( <div key={"plugin"+i} className={"rsssl-other-plugins-element rsssl-"+plugin.slug}> <a href={plugin.wordpress_url} target="_blank" title={plugin.title}> <div className="rsssl-bullet"></div> <div className="rsssl-other-plugins-content">{plugin.title}</div> </a> <div className="rsssl-other-plugin-status"> {plugin.pluginAction==='upgrade-to-premium' && <><a target="_blank" href={plugin.upgrade_url}>{__("Upgrade", "really-simple-ssl")}</a></>} {plugin.pluginAction!=='upgrade-to-premium' && plugin.pluginAction!=='installed' && <> <a href="#" onClick={ (e) => pluginActions(plugin.slug, plugin.pluginAction, e) } >{plugin.pluginActionNice}</a></>} {plugin.pluginAction==='installed' && <>{__("Installed", "really-simple-ssl")}</>} </div> </div> ) } if ( !dataLoaded || error) { return (<Placeholder lines="3" error={error}></Placeholder>) } return ( <> <div className="rsssl-other-plugins-container"> { pluginData.map((plugin, i) => otherPluginElement(plugin, i)) } </div> </> ) } export default OtherPlugins; src/Dashboard/OtherPlugins/OtherPluginsData.js 0000666 00000005416 15165313625 0015441 0 ustar 00 import {create} from 'zustand'; import * as rsssl_api from "../../utils/api"; import {__} from "@wordpress/i18n"; const useOtherPlugins = create(( set, get ) => ({ error:false, dataLoaded:false, pluginData:[], updatePluginData:(slug, newPluginItem) => { let pluginData = get().pluginData; pluginData.forEach(function(pluginItem, i) { if (pluginItem.slug===slug) { pluginData[i] = newPluginItem; } }); set(state => ({ dataLoaded:true, pluginData:pluginData, })) }, getPluginData: (slug) => { let pluginData = get().pluginData; return pluginData.filter((pluginItem) => { return (pluginItem.slug===slug) })[0]; }, fetchOtherPluginsData: async () => { const {pluginData, error} = await rsssl_api.doAction('otherpluginsdata').then((response) => { let pluginData = []; pluginData = response.plugins; let error = response.error; if (!error) { pluginData.forEach(function (pluginItem, i) { pluginData[i].pluginActionNice = pluginActionNice(pluginItem.pluginAction); }); } return {pluginData, error}; }) set(state => ({ dataLoaded:true, pluginData:pluginData, error:error, })) }, pluginActions: (slug, pluginAction, e) => { if (e) e.preventDefault(); let data = {}; data.slug = slug; data.pluginAction = pluginAction; let pluginItem = get().getPluginData(slug); if ( pluginAction==='download' ) { pluginItem.pluginAction = "downloading"; } else if (pluginAction==='activate') { pluginItem.pluginAction = "activating"; } pluginItem.pluginActionNice = pluginActionNice(pluginItem.pluginAction); get().updatePluginData(slug, pluginItem); if (pluginAction==='installed' || pluginAction === 'upgrade-to-premium') { return; } rsssl_api.doAction('plugin_actions', data).then( ( response ) => { pluginItem = response; get().updatePluginData(slug, pluginItem); get().pluginActions(slug, pluginItem.pluginAction); }) }, })); export default useOtherPlugins; const pluginActionNice = (pluginAction) => { const statuses = { 'download': __("Install", "really-simple-ssl"), 'activate': __("Activate", "really-simple-ssl"), 'activating': __("Activating...", "really-simple-ssl"), 'downloading': __("Downloading...", "really-simple-ssl"), 'upgrade-to-premium': __("Downloading...", "really-simple-ssl"), }; return statuses[pluginAction]; } src/Dashboard/DashboardPage.js 0000666 00000004421 15165313625 0012260 0 ustar 00 import GridBlock from "./GridBlock"; import ProgressHeader from "./Progress/ProgressBlockHeader"; import ProgressBlock from "./Progress/ProgressBlock"; import ProgressFooter from "./Progress/ProgressFooter"; import SslLabsHeader from "./SslLabs/SslLabsHeader"; import SslLabs from "./SslLabs/SslLabs"; import SslLabsFooter from "./SslLabs/SslLabsFooter"; import VulnerabilitiesHeader from "./Vulnerabilities/VulnerabilitiesHeader"; import Vulnerabilities from "./Vulnerabilities/Vulnerabilities"; import VulnerabilitiesFooter from "./Vulnerabilities/VulnerabilitiesFooter"; import TipsTricks from "./TipsTricks/TipsTricks"; import TipsTricksFooter from "./TipsTricks/TipsTricksFooter"; import OtherPluginsHeader from "./OtherPlugins/OtherPluginsHeader"; import OtherPlugins from "./OtherPlugins/OtherPlugins"; import { __ } from '@wordpress/i18n'; import DashboardPlaceholder from "../Placeholder/DashboardPlaceholder"; import useFields from "../Settings/FieldsData"; const DashboardPage = () => { const {fieldsLoaded} = useFields(); const blocks = [ { id: 'progress', header: ProgressHeader, content: ProgressBlock, footer: ProgressFooter, class: ' rsssl-column-2', }, { id: 'ssllabs', header: SslLabsHeader, content: SslLabs, footer: SslLabsFooter, class: 'border-to-border', }, { id: 'wpvul', header: VulnerabilitiesHeader, content: Vulnerabilities, footer: VulnerabilitiesFooter, class: 'border-to-border', }, { id: 'tips_tricks', title: __("Tips & Tricks", 'really-simple-ssl'), content: TipsTricks, footer: TipsTricksFooter, class: ' rsssl-column-2', }, { id: 'other-plugins', header: OtherPluginsHeader, content: OtherPlugins, class: ' rsssl-column-2 no-border no-background', }, ] return ( <> {!fieldsLoaded && <DashboardPlaceholder></DashboardPlaceholder>} {fieldsLoaded && blocks.map((block, i) => <GridBlock key={"grid_"+i} block={block}/>)} </> ); } export default DashboardPage index.php 0000666 00000000042 15165313625 0006373 0 ustar 00 <?php //You don't belong here. ?>
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings