PageSourceSearch

https://www.vroonvdb.com/wp-content/plugins/learndash-propanel/inc…?ver=d4a3db2261963d73f33b

js vroonvdb.com collected 2026-09-28 12:10:10 UTC 120,080 bytes, 22 lines download raw bytes

1(()=>{"use strict";var e={8640:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(1280),o=n(3396),a=n(8496);class s extends r.Component{constructor(e){var t;super(e),this.state={table:null!==(t=e.table)&&void 0!==t?t:{},category:e.category,group:e.group,sort:e.sort},this.changeSort=this.changeSort.bind(this)}componentDidMount(){jQuery(".wisdm-learndash-reports-course-completion-table progress, .wisdm-learndash-reports-course-completion-table .progress-percentage").on("mouseenter",(function(){jQuery(this).parent().css({position:"relative"});const e=jQuery("<div/>").addClass("wrld-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this).parent());e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".graph-card-container").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).parent().find(".wrld-tooltip").remove()})),jQuery(".wisdm-learndash-reports-course-completion-table span.toggle").on("mouseenter",(function(){jQuery(this).parent().css({position:"relative"});const e=jQuery("<div/>").addClass("wrld-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this).parent());e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".wisdm-learndash-reports-course-completion-table").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).parent().find(".wrld-tooltip").remove()}))}componentDidUpdate(){jQuery(".wisdm-learndash-reports-course-completion-table progress, .wisdm-learndash-reports-course-completion-table .progress-percentage").on("mouseenter",(function(){jQuery(this).parent().css({position:"relative"});const e=jQuery("<div/>").addClass("wrld-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this).parent());e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".graph-card-container").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).parent().find(".wrld-tooltip").remove()})),jQuery(".wisdm-learndash-reports-course-completion-table span.toggle").on("mouseenter",(function(){jQuery(this).parent().css({position:"relative"});const e=jQuery("<div/>").addClass("wrld-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this).parent());e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".wisdm-learndash-reports-course-completion-table").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).parent().find(".wrld-tooltip").remove()}))}changeSort(){let e="";e="ASC"==this.state.sort?"DESC":"ASC",this.setState({sort:e});const t=new CustomEvent("local_sort_change_completion_modal",{detail:{value:e}});document.dispatchEvent(t)}static getDerivedStateFromProps(e,t){var n;return e.table!==t.table?{table:null!==(n=e.table)&&void 0!==n?n:{}}:e.category!==t.category?{category:e.category}:e.group!==t.group?{group:e.group}:e.sort!==t.sort?{sort:e.sort}:null}render(){let e="";e="ASC"==this.state.sort?(0,o.sprintf)(
2// Translators: %s: courses label.
3// Translators: %s: courses label.
4(0,o.__)(" (oldest %s first)","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Courses","lower")):(0,o.sprintf)(
5// Translators: %s: courses label.
6// Translators: %s: courses label.
7(0,o.__)(" (latest %s first)","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Courses","lower"));const t=(0,a.createElement)("table",null,(0,a.createElement)("tbody",null,(0,a.createElement)("tr",null,(0,a.createElement)("th",null,wisdm_reports_get_ld_custom_lebel_if_avaiable("Course"),(0,a.createElement)("span",{className:"toggle",onClick:this.changeSort,"data-title":(0,o.sprintf)(
8// Translators: %s: Courses label.
9// Translators: %s: Courses label.
10(0,o.__)("%s are sorted by publish date","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Courses"))+e})),(0,a.createElement)("th",null,(0,o.sprintf)(
11// Translators: %s: Course label.
12// Translators: %s: Course label.
13(0,o.__)("%s Completion Rate","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Course")))),this.props.loading?(0,a.createElement)("tr",{className:"wrld-ccr-more-data-loader"},(0,a.createElement)("td",{colSpan:"2"},(0,a.createElement)("img",{src:wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/loader.svg"}))):(0,a.createElement)(r.Fragment,null),Object.keys(this.state.table).map(((e,t)=>(0,a.createElement)("tr",{key:t},(0,a.createElement)("td",{width:"45%"},(0,a.createElement)("span",{className:"course-name"},e)),(0,a.createElement)("td",{width:"55%",className:"right-side"},(0,a.createElement)("progress",{className:"progress",max:"100",value:this.state.table[e].percentage,"data-title":this.state.table[e].completed+(0,o.__)(" out of ","learndash-reports-pro")+this.state.table[e].total+(0,o.__)(" learners completed","learndash-reports-pro")}),(0,a.createElement)("span",{className:"progress-percentage","data-title":this.state.table[e].completed+(0,o.__)(" out of ","learndash-reports-pro")+this.state.table[e].total+(0,o.__)(" learners completed","learndash-reports-pro")},this.state.table[e].percentage,"%"))))))),n=(0,a.createElement)("div",{className:"heading_wrapper"},(0,a.createElement)("h1",null,(0,o.sprintf)(
14// Translators: %s: Course label.
15// Translators: %s: Course label.
16(0,o.__)("%s Completion Rate","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Course"))));return(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"header"},n),(0,a.createElement)("div",{className:"wisdm-learndash-reports-course-completion-table"},t))}}const i=s}
16,1352:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(3396),o=n(8496),a=n(1280);class s extends a.Component{constructor(e){super(e),this.state={tableData:e.tableData,sort:e.sort},this.changeSort=this.changeSort.bind(this),this.changeDirection=this.changeDirection.bind(this)}componentDidMount(){document.addEventListener("completion-parent-sort-changed",this.changeDirection),jQuery(".wisdm-learndash-reports-course-completion-table progress, .wisdm-learndash-reports-course-completion-table .progress-percentage").on("mouseenter",(function(){jQuery(this).parent().css({position:"relative"});const e=jQuery("<div/>").addClass("wrld-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this).parent());e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".graph-card-container").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).parent().find(".wrld-tooltip").remove()})),jQuery(".wisdm-learndash-reports-course-completion-table span.toggle").on("mouseenter",(function(){jQuery(this).parent().css({position:"relative"});const e=jQuery("<div/>").addClass("wrld-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this).parent());e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".wisdm-learndash-reports-course-completion-table").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).parent().find(".wrld-tooltip").remove()}))}componentDidUpdate(){jQuery(".wisdm-learndash-reports-course-completion-table progress, .wisdm-learndash-reports-course-completion-table .progress-percentage").on("mouseenter",(function(){jQuery(this).parent().css({position:"relative"});const e=jQuery("<div/>").addClass("wrld-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this).parent());e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".graph-card-container").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).parent().find(".wrld-tooltip").remove()})),jQuery(".wisdm-learndash-reports-course-completion-table span.toggle").on("mouseenter",(function(){jQuery(this).parent().css({position:"relative"});const e=jQuery("<div/>").addClass("wrld-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this).parent());e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".wisdm-learndash-reports-course-completion-table").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).parent().find(".wrld-tooltip").remove()}))}static getDerivedStateFromProps(e,t){return e.sort!==t.sort?{sort:e.sort}:e.tableData!==t.tableData?{tableData:e.tableData}:null}changeDirection(e){this.setState({sort:e.detail.value})}changeSort(){let e="";e="ASC"==this.state.sort?"DESC":"ASC";const t=new CustomEvent("local_sort_change_completion",{detail:{value:e}});document.dispatchEvent(t),this.setState({sort:e})}render(){return(0,o.createElement)("div",{className:"wisdm-learndash-reports-course-completion-table"},(0,o.createElement)("table",null,(0,o.createElement)("tbody",null,(0,o.createElement)("tr",null,(0,o.createElement)("th",null,wisdm_reports_get_ld_custom_lebel_if_avaiable("Course")),(0,o.createElement)("th",null,wisdm_reports_get_ld_custom_lebel_if_avaiable("Course")+" "+(0,r.__)("Completion Rate","learndash-reports-pro"))),Object.keys(this.props.tableData).map(((e,t)=>(0,o.createElement)("tr",{key:t},(0,o.createElement)("td",{width:"45%"},(0,o.createElement)("span",{className:"course-name"},e)),(0,o.createElement)("td",{width:"55%",className:"right-side"},(0,o.createElement)("progress",{className:"progress",max:"100",value:this.props.tableData[e].percentage,"data-title":this.props.tableData[e].completed+(0,r.__)(" out of ","learndash-reports-pro")+this.props.tableData[e].total+(0,r.__)(" learners completed","learndash-reports-pro")}),(0,o.createElement)("span",{className:"progress-percentage","data-title":this.props.tableData[e].completed+(0,r.__)(" out of ","learndash-reports-pro")+this.props.tableData[e].total+(0,r.__)(" learners completed","learndash-reports-pro")},this.props.tableData[e].percentage,"%"))))))))}}const i=s},4792:(e,t,n)=>{var r=n(9819),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function l(e){return r.isMemo(e)?s:i[e.$$typeof]||o}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=m(n);o&&o!==h&&e(t,o,r)}var s=c(n);p&&(s=s.concat(p(n)));for(var i=l(t),f=l(n),g=0;g<s.length;++g){var v=s[g];
16if(!(a[v]||r&&r[v]||f&&f[v]||i&&i[v])){var b=d(n,v);try{u(t,v,b)}catch(e){}}}}return t}},6560:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,_=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case p:case a:case i:case s:case m:return e;default:switch(e=e&&e.$$typeof){case u:case d:case g:case f:case l:return e;default:return t}}case o:return t}}}function C(e){return w(e)===p}t.AsyncMode=c,t.ConcurrentMode=p,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=f,t.Portal=o,t.Profiler=i,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return C(e)||w(e)===c},t.isConcurrentMode=C,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===i},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===i||e===s||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===_||e.$$typeof===v)},t.typeOf=w},9819:(e,t,n)=>{e.exports=n(6560)},1280:e=>{e.exports=window.React},8496:e=>{e.exports=window.wp.element},3396:e=>{e.exports=window.wp.i18n}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e=n(1280),t=n.n(e),r=n(3396);class o extends t().Component{constructor(t){super(t),this.state={upgrade_anchor:""};let n="";if(wisdm_ld_reports_common_script_data.is_admin_user){let o=wisdm_ld_reports_common_script_data.upgrade_link;null!=t.pro_link&&(o=t.pro_link),n=(0,e.createElement)("a",{className:"overlay pro-upgrade",href:o,target:"__blank"},(0,e.createElement)("div",{className:"description"},(0,e.createElement)("span",{className:"upgrade-text"},(0,r.__)("Available in PRO version","learndash-reports-pro")),(0,e.createElement)("button",{className:"upgrade-button"},(0,r.__)("UPGRADE TO PRO","learndash-reports-pro"))))}let o=t.graph_summary;o=!o||Array.isArray(o)?{left:[],right:[]}:{left:o.left||[],right:o.right||[],inner_help_text:o.inner_help_text},null==o.left[0]&&(o.left=[{title:(0,r.__)("AVG","learndash-reports-pro")+" "+wisdm_reports_get_ld_custom_lebel_if_avaiable("Course")+" "+(0,r.__)("COMPLETION","learndash-reports-pro"),value:"??"}],o.right=[]),null==t.pro_upgrade_option||""==t.pro_upgrade_option||t.error||(o.left[0].value="??"),this.error=t.error,this.summary=o,this.summary_class=t.wrapper_class,this.show_pro_version_upgrade_option=null==t.pro_upgrade_option||""==t.pro_upgrade_option?"":"wisdm-ld-reports-upgrade-to-pro-front",this.lock_icon=null==t.pro_upgrade_option?"":(0,e.createElement)("span",{title:(0,r.__)("Please upgrade the plugin to access this feature","learndash-reports-pro"),
16className:"dashicons dashicons-lock ld-reports top-corner"}),this.inner_tooltip=null!=this.summary.inner_help_text?(0,e.createElement)("span",{className:"dashicons dashicons-info-outline widm-ld-reports-info","data-title":this.summary.inner_help_text}):"";const a=null==t.pro_upgrade_option?"":n;this.state.upgrade_anchor=a}render(){let t="",n="";if(wisdm_ld_reports_common_script_data.is_admin_user){let t=wisdm_ld_reports_common_script_data.upgrade_link;null!=this.props.pro_link&&(t=this.props.pro_link),this.error||(this.error=this.props.error),n=(0,e.createElement)("a",{className:"overlay pro-upgrade",href:t,target:"__blank"},(0,e.createElement)("div",{className:"description"},(0,e.createElement)("span",{className:"upgrade-text"},(0,r.__)("Available in PRO version","learndash-reports-pro")),(0,e.createElement)("button",{className:"upgrade-button"},(0,r.__)("UPGRADE TO PRO","learndash-reports-pro"))))}const o=null==this.props.pro_upgrade_option?"":n;return t=this.error?(0,e.createElement)("div",{className:this.summary_class+" chart-summary error"},(0,e.createElement)("div",{className:"error-message"},(0,e.createElement)("span",null,this.error?this.error.message:(0,r.__)("Invalid data or no data found","learndash-reports-pro")))):(0,e.createElement)("div",{className:this.summary_class+" chart-summary "+this.show_pro_version_upgrade_option},(0,e.createElement)("div",{className:"revenue-figure-wrapper "},this.lock_icon,(0,e.createElement)("div",{className:"chart-summary-revenue-figure"},(0,e.createElement)("div",{className:"revenue-figure"},(0,e.createElement)("span",{className:"summary-amount"},this.props.graph_summary.left&&Array.isArray(this.props.graph_summary.left)&&null!=this.props.graph_summary.left[0]?this.props.graph_summary.left[0].value:"")),(0,e.createElement)("div",{className:"chart-summary-label"},(0,e.createElement)("span",null,this.props.graph_summary.left&&Array.isArray(this.props.graph_summary.left)&&null!=this.props.graph_summary.left[0]?this.props.graph_summary.left[0].title:""),this.inner_tooltip)),o),(0,e.createElement)("div",{className:"revenue-particulars-wrapper"},(0,e.createElement)("div",{className:"chart-summary-revenue-particulars"},this.props.graph_summary.right&&Array.isArray(this.props.graph_summary.right)?this.props.graph_summary.right.map(((t,n)=>(0,e.createElement)("div",{className:"summery-right-entry",key:n},(0,e.createElement)("span",{className:"summary-label"},t.title),(0,e.createElement)("span",{className:"summary-amount"},t.value)))):null))),t}}const a=o;class s extends t().Component{constructor(e){super(e)}render(){let t="";return 1==this.props.text&&(t=(0,e.createElement)("span",{className:"supporting-text"},(0,r.__)("Your report is being generated.","learndash-reports-pro"))),(0,e.createElement)("div",{className:"wisdm-learndash-reports-chart-block","data-wisdm-loader":"true"},(0,e.createElement)("div",{className:"wisdm-learndash-reports-revenue-from-courses graph-card-container"},(0,e.createElement)("div",{className:"wisdm-graph-loading"},(0,e.createElement)("img",{src:wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/loader.svg",alt:""}),t)))}}const i=s;var l=n(8496),u=n(1352);function c(e){return c="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},c(e)}function p(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(t)?t:String(t)}function d(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,163 bytes, line 16
16t%2?m(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(e){if("string"==typeof e)return f(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)?f(e,t):void 0}}function v(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,a,s,i=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return i}}(e,t)||g(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.")}()}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function _(){return _=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},_.apply(this,arguments)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function S(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x=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++}
vendor: 14,218 bytes, line 16
16,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),D=Math.abs,I=String.fromCharCode,k=Object.assign;function M(e){return e.trim()}function L(e,t,n){return e.replace(t,n)}function V(e,t){return e.indexOf(t)}function P(e,t){return 0|e.charCodeAt(t)}function R(e,t,n){return e.slice(t,n)}function T(e){return e.length}function F(e){return e.length}function j(e,t){return t.push(e),e}var A=1,N=1,H=0,U=0,$=0,z="";function Q(e,t,n,r,o,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:A,column:N,length:s,return:""}}function B(e,t){return k(Q("",null,null,"",null,null,0),e,{length:-e.length},t)}function q(){return $=U>0?P(z,--U):0,N--,10===$&&(N=1,A--),$}function G(){return $=U<H?P(z,U++):0,N++,10===$&&(N=1,A++),$}function W(){return P(z,U)}function Y(){return U}function X(e,t){return R(z,e,t)}function K(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 Z(e){return A=N=1,H=T(z=e),U=0,[]}function J(e){return z="",e}function ee(e){return M(X(U-1,re(91===e?e+2:40===e?e+1:e)))}function te(e){for(;($=W())&&$<33;)G();return K(e)>2||K($)>3?"":" "}function ne(e,t){for(;--t&&G()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return X(e,Y()+(t<6&&32==W()&&32==G()))}function re(e){for(;G();)switch($){case e:return U;case 34:case 39:34!==e&&39!==e&&re($);break;case 40:41===e&&re(e);break;case 92:G()}return U}function oe(e,t){for(;G()&&e+$!==57&&(e+$!==84||47!==W()););return"/*"+X(t,U-1)+"*"+I(47===e?e:G())}function ae(e){for(;!K(W());)G();return X(e,U)}var se="-ms-",ie="-moz-",le="-webkit-",ue="comm",ce="rule",pe="decl",de="@keyframes";function me(e,t){for(var n="",r=F(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function he(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case pe:return e.return=e.return||e.value;case ue:return"";case de:return e.return=e.value+"{"+me(e.children,r)+"}";case ce:e.value=e.props.join(",")}return T(n=me(e.children,r))?e.return=e.value+"{"+n+"}":""}function fe(e){return J(ge("",null,null,null,[""],e=Z(e),0,[0],e))}function ge(e,t,n,r,o,a,s,i,l){for(var u=0,c=0,p=s,d=0,m=0,h=0,f=1,g=1,v=1,b=0,y="",_=o,w=a,C=r,E=y;g;)switch(h=b,b=G()){case 40:if(108!=h&&58==P(E,p-1)){-1!=V(E+=L(ee(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=ee(b);break;case 9:case 10:case 13:case 32:E+=te(h);break;case 92:E+=ne(Y()-1,7);continue;case 47:switch(W()){case 42:case 47:j(be(oe(G(),Y()),t,n),l);break;default:E+="/"}break;case 123*f:i[u++]=T(E)*v;case 125*f:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+c:-1==v&&(E=L(E,/\f/g,"")),m>0&&T(E)-p&&j(m>32?ye(E+";",r,n,p-1):ye(L(E," ","")+";",r,n,p-2),l);break;case 59:E+=";";default:if(j(C=ve(E,t,n,u,c,o,i,y,_=[],w=[],p),a),123===b)if(0===c)ge(E,t,C,C,_,a,p,i,w);else switch(99===d&&110===P(E,3)?100:d){case 100:case 108:case 109:case 115:ge(e,C,C,r&&j(ve(e,C,C,0,0,o,i,y,o,_=[],p),w),o,w,p,i,r?_:w);break;default:ge(E,C,C,C,[""],w,0,i,w)}}u=c=m=0,f=v=1,y=E="",p=s;break;case 58:p=1+T(E),m=h;default:if(f<1)if(123==b)--f;else if(125==b&&0==f++&&125==q())continue;switch(E+=I(b),b*f){case 38:v=c>0?1:(E+="\f",-1);break;case 44:i[u++]=(T(E)-1)*v,v=1;break;case 64:45===W()&&(E+=ee(G())),d=W(),c=p=T(y=E+=ae(Y())),b++;break;case 45:45===h&&2==T(E)&&(f=0)}}return a}function ve(e,t,n,r,o,a,s,i,l,u,c){for(var p=o-1,d=0===o?a:[""],m=F(d),h=0,f=0,g=0;h<r;++h)for(var v=0,b=R(e,p+1,p=D(f=s[h])),y=e;v<m;++v)(y=M(f>0?d[v]+" "+b:L(b,/&\f/g,d[v])))&&(l[g++]=y);return Q(e,t,n,0===o?ce:i,l,u,c)}function be(e,t,n){return Q(e,t,n,ue,I($),R(e,2,-2),0)}function ye(e,t,n,r){return Q(e,t,n,pe,R(e,0,r),R(e,r+1,-1),r)}var _e=function(e,t,n){for(var r=0,o=0;r=o,o=W(),38===r&&12===o&&(t[n]=1),!K(o);)G();return X(e,U)},we=new WeakMap,Ce=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)||we.get(n))&&!r){we.set(e,!0);for(var o=[],a=function(e,t){return J(function(e,t){var n=-1,r=44;do{switch(K(r)){case 0:38===r&&12===W()&&(t[n]=1),e[n]+=_e(U-1,t,n);break;case 2:e[n]+=ee(r);break;case 4:if(44===r){e[++n]=58===W()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=I(r)}}while(r=G());return e}(Z(e),t))}(t,o),s=n.props,i=0,l=0;i<a.length;i++)for(var u=0;u<s.length;u++,l++)e.props[l]=o[i]?a[i].replace(/&\f/g,s[u]):s[u]+" "+a[i]}}},Ee=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Oe(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 le+"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 le+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return le+e+ie+e+se+e+e;case 6828:case 4268:return le+e+se+e+e;case 6165:return le+e+se+"flex-"+e+e;case 5187:return le+e+L(e,/(\w+).+(:[^]+)/,le+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return le+e+se+"flex-item-"+L(e,/flex-|-self/,"")+e;case 4675:return le+e+se+"flex-line-pack"+L(e,/align-content|flex-|-self/,"")+e;case 5548:return le+e+se+L(e,"shrink","negative")+e;case 5292:return le+e+se+L(e,"basis","preferred-size")+e;case 6060:return le+"box-"+L(e,"-grow","")+le+e+se+L(e,"grow","positive")+e;case 4554:return le+L(e,/([^-])(transform)/g,"$1"+le+"$2")+e;case 6187:return L(L(L(e,/(zoom-|grab)/,le+"$1"),/(image-set)/,le+"$1"),e,"")+e;case 5495:case 3959:return L(e,/(image-set\([^]*)/,le+"$1$`$1");case 4968:return L(L(e,/(.+:)(flex-)?(.*)/,le+"box-pack:$3"+se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+le+e+e;case 4095:case 3583:case 4068:case 2532:return L(e,/(.+)-inline(.+)/,le+"$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(T(e)-1-t>6)switch(P(e,t+1)){case 109:if(45!==P(e,t+4))break;case 102:return L(e,/(.+:)(.+)-([^]+)/,"$1"+le+"$2-$3$1"+ie+(108==P(e,t+3)?"$3":"$2-$3"))+e;case 115:return~V(e,"stretch")?Oe(L(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==P(e,t+1))break;case 6444:switch(P(e,T(e)-3-(~V(e,"!important")&&10))){case 107:return L(e,":",":"+le)+e;case 101:return L(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+le+(45===P(e,14)?"inline-":"")+"box$3$1"+le+"$2$3$1"+se+"$2box$3")+e}break;case 5936:switch(P(e,t+11)){case 114:return le+e+se+L(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return le+e+se+L(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return le+e+se+L(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return le+e+se+e+e}return e}var Se=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case pe:e.return=Oe(e.value,e.length);break;case de:return me([B(e,{value:L(e.value,"@","@"+le)})],r);case ce: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 me([B(e,{props:[L(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return me([B(e,{props:[L(t,/:(plac\w+)/,":"+le+"input-$1")]}),B(e,{props:[L(t,/:(plac\w+)/,":-moz-$1")]}),B(e,{props:[L(t,/:(plac\w+)/,se+"input-$1")]})],r)}return""}))}}],xe=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,o,a=e.stylisPlugins||Se,s={},i=[];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;i.push(e)}));var l,u,c,p,d=[he,(p=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&p(e)})],m=(u=[Ce,Ee].concat(a,d),c=F(u),function(e,t,n,r){for(var o="",a=0;a<c;a++)o+=u[a](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,me(fe(e?e+"{"+t.styles+"}":t.styles),m),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new x({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return h.sheet.hydrate(i),h},De=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ie={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};function ke(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Me=/[A-Z]|^ms/g,Le=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ve=function(e){return 45===e.charCodeAt(1)},Pe=function(e){return null!=e&&"boolean"!=typeof e},Re=ke((function(e){return Ve(e)?e:e.replace(Me,"-$&").toLowerCase()})),Te=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Le,(function(e,t,n){return je={name:t,styles:n,next:je},t}))}return 1===Ie[e]||Ve(e)||"number"!=typeof t||0===t?t:t+"px"};function Fe(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 je={name:n.name,styles:n.styles,next:je},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)je={name:r.name,styles:r.styles,next:je},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+=Fe(e,t,n[o])+";";else for(var a in n){var s=n[a];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=a+"{"+t[s]+"}":Pe(s)&&(r+=Re(a)+":"+Te(a,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var i=Fe(e,t,s);switch(a){case"animation":case"animationName":r+=Re(a)+":"+i+";";break;default:r+=a+"{"+i+"}"}}else for(var l=0;l<s.length;l++)Pe(s[l])&&(r+=Re(a)+":"+Te(a,s[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=je,a=n(e);return je=o,Fe(e,t,a)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var je,Ae=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ne=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="";je=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Fe(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=Fe(n,t,e[s]),r&&(o+=a[s]);Ae.lastIndex=0;for(var i,l="";null!==(i=Ae.exec(o));)l+="-"+i[1];var u=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:u,styles:o,next:je}},He=!!e.useInsertionEffect&&e.useInsertionEffect,Ue=He||function(e){return e()},$e=(He||e.useLayoutEffect,{}.hasOwnProperty),ze=e.createContext("undefined"!=typeof HTMLElement?xe({key:"css"}):null),Qe=ze.Provider,Be=function(t){return(0,e.forwardRef)((function(n,r){var o=(0,e.useContext)(ze);return t(n,o,r)}))},qe=e.createContext({}),Ge="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",We=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return De(t,n,r),Ue((function(){return function(e,t,n){De(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},Ye=Be((function(t,n,r){var o=t.css;"string"==typeof o&&void 0!==n.registered[o]&&(o=n.registered[o]);var a=t[Ge],s=[o],i="";"string"==typeof t.className?i=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,s,t.className):null!=t.className&&(i=t.className+" ");var l=Ne(s,void 0,e.useContext(qe));i+=n.key+"-"+l.name;var u={};for(var c in t)$e.call(t,c)&&"css"!==c&&c!==Ge&&(u[c]=t[c]);return u.ref=r,u.className=i,e.createElement(e.Fragment,null,e.createElement(We,{cache:n,serialized:l,isStringTag:"string"==typeof a}),e.createElement(a,u))})),Xe=Ye,Ke=(n(4792),function(t,n){var r=arguments;if(null==n||!$e.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,a=new Array(o);a[0]=Xe,a[1]=function(e,t){var n={};for(var r in t)$e.call(t,r)&&(n[r]=t[r]);return n[Ge]=e,n}(t,n);for(var s=2;s<o;s++)a[s]=r[s];return e.createElement.apply(null,a)});function Ze(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ne(t)}const Je=window.ReactDOM,et=Math.min,tt=Math.max,nt=Math.round,rt=Math.floor,ot=e=>({x:e,y:e});function at(e){return lt(e)?(e.nodeName||"").toLowerCase():"#document"}function st(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function it(e){var t;return null==(t=(lt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function lt(e){return e instanceof Node||e instanceof st(e).Node}function ut(e){return e instanceof Element||e instanceof st(e).Element}function ct(e){return e instanceof HTMLElement||e instanceof st(e).HTMLElement}function pt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof st(e).ShadowRoot)}function dt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=mt(e);
vendor: 4,241 bytes, line 16
16return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function mt(e){return st(e).getComputedStyle(e)}function ht(e){const t=function(e){if("html"===at(e))return e;const t=e.assignedSlot||e.parentNode||pt(e)&&e.host||it(e);return pt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(at(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ct(t)&&dt(t)?t:ht(t)}function ft(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ht(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),s=st(o);return a?t.concat(s,s.visualViewport||[],dt(o)?o:[],s.frameElement&&n?ft(s.frameElement):[]):t.concat(o,ft(o,[],n))}function gt(e){return ut(e)?e:e.contextElement}function vt(e){const t=gt(e);if(!ct(t))return ot(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=function(e){const t=mt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ct(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,i=nt(n)!==a||nt(r)!==s;return i&&(n=a,r=s),{width:n,height:r,$:i}}(t);let s=(a?nt(n.width):n.width)/r,i=(a?nt(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),i&&Number.isFinite(i)||(i=1),{x:s,y:i}}const bt=ot(0);function yt(e){const t=st(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:bt}function _t(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=gt(e);let s=ot(1);t&&(r?ut(r)&&(s=vt(r)):s=vt(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==st(e))&&t}(a,n,r)?yt(a):ot(0);let l=(o.left+i.x)/s.x,u=(o.top+i.y)/s.y,c=o.width/s.x,p=o.height/s.y;if(a){const e=st(a),t=r&&ut(r)?st(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=vt(n),t=n.getBoundingClientRect(),r=mt(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,p*=e.y,l+=o,u+=a,n=st(n).frameElement}}return d={width:c,height:p,x:l,y:u},{...d,top:d.y,left:d.x,right:d.x+d.width,bottom:d.y+d.height};var d}const wt=e.useLayoutEffect;var Ct=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Et=function(){};function Ot(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function St(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&a.push("".concat(Ot(e,s)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var xt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===c(e)&&null!==e?[e]:[];var t},Dt=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,h({},b(e,Ct))},It=function(e,t,n){var r=e.cx,o=e.getStyles,a=e.getClassNames,s=e.className;return{css:o(t,e),className:r(null!=n?n:{},a(t,e),s)}};function kt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Mt(e){return kt(e)?window.pageYOffset:e.scrollTop}function Lt(e,t){kt(e)?window.scrollTo(0,t):e.scrollTop=t}function Vt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Et,o=Mt(e),a=t-o,s=0;!function t(){var i,l=a*((i=(i=s+=10)/n-1)*i*i+1)+o;Lt(e,l),s<n?window.requestAnimationFrame(t):r(e)}()}function Pt(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?Lt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&Lt(e,Math.max(t.offsetTop-o,0))}function Rt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Tt=!1,Ft={get passive(){return Tt=!0}},jt="undefined"!=typeof window?window:{};jt.addEventListener&&jt.removeEventListener&&(jt.addEventListener("p",Et,Ft),jt.removeEventListener("p",Et,!1));var At=Tt;function Nt(e){return null!=e}function Ht(e,t,n){return e?t:n}var Ut=["children","innerProps"],$t=["children","innerProps"];var zt,Qt,Bt,qt=function(e){return"auto"===e?"bottom":e}
vendor: 4,739 bytes, line 16
16,Gt=(0,e.createContext)(null),Wt=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,a=t.menuPlacement,s=t.menuPosition,i=t.menuShouldScrollIntoView,l=t.theme,u=((0,e.useContext)(Gt)||{}).setPortalPlacement,c=(0,e.useRef)(null),p=v((0,e.useState)(o),2),d=p[0],m=p[1],f=v((0,e.useState)(null),2),g=f[0],b=f[1],y=l.spacing.controlHeight;return wt((function(){var e=c.current;if(e){var t="fixed"===s,n=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,a=e.shouldScroll,s=e.isFixedPosition,i=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,p=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),m=d.bottom,h=d.height,f=d.top,g=n.offsetParent.getBoundingClientRect().top,v=s||kt(c=l)?window.innerHeight:c.clientHeight,b=Mt(l),y=parseInt(getComputedStyle(n).marginBottom,10),_=parseInt(getComputedStyle(n).marginTop,10),w=g-_,C=v-f,E=w+b,O=p-b-f,S=m-v+b+y,x=b+f-_,D=160;switch(o){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(O>=h&&!s)return a&&Vt(l,S,D),{placement:"bottom",maxHeight:t};if(!s&&O>=r||s&&C>=r)return a&&Vt(l,S,D),{placement:"bottom",maxHeight:s?C-y:O-y};if("auto"===o||s){var I=t,k=s?w:E;return k>=r&&(I=Math.min(k-y-i,t)),{placement:"top",maxHeight:I}}if("bottom"===o)return a&&Lt(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(E>=h&&!s)return a&&Vt(l,x,D),{placement:"top",maxHeight:t};if(!s&&E>=r||s&&w>=r){var M=t;return(!s&&E>=r||s&&w>=r)&&(M=s?w-_:E-_),a&&Vt(l,x,D),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:o,menuEl:e,minHeight:r,placement:a,shouldScroll:i&&!t,isFixedPosition:t,controlHeight:y});m(n.maxHeight),b(n.placement),null==u||u(n.placement)}}),[o,a,s,i,r,u,y]),n({ref:c,placerProps:h(h({},t),{},{placement:g||qt(a),maxHeight:d})})},Yt=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return h({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Xt=Yt,Kt=Yt,Zt=["size"],Jt=["innerProps","isRtl","size"],en={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},tn=function(e){var t=e.size,n=b(e,Zt);return Ke("svg",_({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:en},n))},nn=function(e){return Ke(tn,_({size:20},e),Ke("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},rn=function(e){return Ke(tn,_({size:20},e),Ke("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},on=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return h({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o,":hover":{color:n?a.neutral80:a.neutral40}})},an=on,sn=on,ln=function(){var e=Ze.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(zt||(Qt=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],Bt||(Bt=Qt.slice(0)),zt=Object.freeze(Object.defineProperties(Qt,{raw:{value:Object.freeze(Bt)}})))),un=function(e){var t=e.delay,n=e.offset;return Ke("span",{css:Ze({animation:"".concat(ln," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},cn=["data"],pn=["innerRef","isDisabled","isHidden","inputClassName"],dn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},mn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":h({content:'attr(data-value) " "',visibility:"hidden",
16whiteSpace:"pre"},dn)},hn=function(e){return h({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},dn)},fn=function(e){var t=e.children,n=e.innerProps;return Ke("div",n,t)},gn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ke("div",_({},It(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ke(nn,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,a=e.innerProps,s=e.menuIsOpen;return Ke("div",_({ref:o},It(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ke("div",_({},It(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ke(rn,null))},DownChevron:rn,CrossIcon:nn,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,a=e.Heading,s=e.headingProps,i=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return Ke("div",_({},It(e,"group",{group:!0}),i),Ke(a,_({},s,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),Ke("div",null,t))},GroupHeading:function(e){var t=Dt(e);t.data;var n=b(t,cn);return Ke("div",_({},It(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ke("div",_({},It(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ke("span",_({},t,It(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Dt(e),o=r.innerRef,a=r.isDisabled,s=r.isHidden,i=r.inputClassName,l=b(r,pn);return Ke("div",_({},It(e,"input",{"input-container":!0}),{"data-value":n||""}),Ke("input",_({className:t({input:!0},i),ref:o,style:hn(s),disabled:a},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,a=b(e,Jt);return Ke("div",_({},It(h(h({},a),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ke(un,{delay:0,offset:n}),Ke(un,{delay:160,offset:!0}),Ke(un,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return Ke("div",_({},It(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return Ke("div",_({},It(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,o=t.controlElement,a=t.innerProps,s=t.menuPlacement,i=t.menuPosition,l=(0,e.useRef)(null),u=(0,e.useRef)(null),c=v((0,e.useState)(qt(s)),2),p=c[0],d=c[1],m=(0,e.useMemo)((function(){return{setPortalPlacement:d}}),[]),f=v((0,e.useState)(null),2),g=f[0],b=f[1],y=(0,e.useCallback)((function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===i?0:window.pageYOffset,n=e[p]+t;n===(null==g?void 0:g.offset)&&e.left===(null==g?void 0:g.rect.left)&&e.width===(null==g?void 0:g.rect.width)||b({offset:n,rect:e})}}),[o,i,p,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);wt((function(){y()}),[y]);var w=(0,e.useCallback)((function(){"function"==typeof u.current&&(u.current(),u.current=null),o&&l.current&&(u.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=gt(e),c=o||a?[...u?ft(u):[],...ft(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const p=u&&i?function(e,t){let n,r=null;const o=it(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(i,l){void 0===i&&(i=!1),void 0===l&&(l=1),a();const{left:u,top:c,width:p,height:d}=e.getBoundingClientRect();if(i||t(),!p||!d)return;const m={rootMargin:-rt(c)+"px "+-rt(o.clientWidth-(u+p))+"px "+-rt(o.clientHeight-(c+d))+"px "+-rt(u)+"px",threshold:tt(0,et(1,l))||1};let h=!0;function f(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}h=!1}try{r=new IntersectionObserver(f,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(f,m)}r.observe(e)}(!0),a}(u,n):null;let d,m=-1,h=null;s&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),u&&!l&&h.observe(u),h.observe(t));let f=l?_t(e):null;return l&&function t(){const r=_t(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n(),f=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;
vendor: 5,637 bytes, line 16
16c.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(d)}}(o,l.current,y,{elementResize:"ResizeObserver"in window}))}),[o,y]);wt((function(){w()}),[w]);var C=(0,e.useCallback)((function(e){l.current=e,w()}),[w]);if(!n&&"fixed"!==i||!g)return null;var E=Ke("div",_({ref:C},It(h(h({},t),{},{offset:g.offset,position:i,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),r);return Ke(Gt.Provider,{value:m},n?(0,Je.createPortal)(E,n):E)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=b(e,$t);return Ke("div",_({},It(h(h({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=b(e,Ut);return Ke("div",_({},It(h(h({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,a=e.isDisabled,s=e.removeProps,i=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return Ke(l,{data:r,innerProps:h(h({},It(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),o),selectProps:i},Ke(u,{data:r,innerProps:h({},It(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:i},t),Ke(c,{data:r,innerProps:h(h({},It(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:i}))},MultiValueContainer:fn,MultiValueLabel:fn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ke("div",_({role:"button"},n),t||Ke(nn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.innerRef,s=e.innerProps;return Ke("div",_({},It(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:a,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ke("div",_({},It(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return Ke("div",_({},It(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return Ke("div",_({},It(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return Ke("div",_({},It(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},vn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function bn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||vn(r)&&vn(o)))return!1;var r,o;return!0}for(var yn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},wn=function(e){return Ke("span",_({css:yn},e))},Cn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,a=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,a=void 0===o?"":o,s=e.selectValue,i=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(c(s,n),".");if("menu"===t&&u){var p=i?" disabled":"",d="".concat(l?" selected":"").concat(p);return"".concat(a).concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},En=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,a=t.focusableOptions,s=t.isFocused,i=t.selectValue,l=t.selectProps,u=t.id,c=t.isAppleDevice,p=l.ariaLiveMessages,d=l.getOptionLabel,m=l.inputValue,f=l.isMulti,g=l.isOptionDisabled,v=l.isSearchable,b=l.menuIsOpen,y=l.options,_=l.screenReaderStatus,w=l.tabSelectsValue,C=l.isLoading,E=l["aria-label"],O=l["aria-live"],S=(0,e.useMemo)((function(){return h(h({},Cn),p||{})}),[p]),x=(0,e.useMemo)((function(){var e,t="";if(n&&S.onChange){var r=n.option,o=n.options,a=n.removedValue,s=n.removedValues,l=n.value,u=a||r||(e=l,Array.isArray(e)?null:e),c=u?d(u):"",p=o||s||void 0,m=p?p.map(d):[],f=h({isDisabled:u&&g(u,i),label:c,labels:m},n);t=S.onChange(f)}return t}),[n,S,g,i,d]),D=(0,e.useMemo)((function(){var e="",t=r||o,n=!!(r&&i&&i.includes(r));
vendor: 8,867 bytes, line 16
16if(t&&S.onFocus){var s={focused:t,label:d(t),isDisabled:g(t,i),isSelected:n,options:a,context:t===r?"menu":"value",selectValue:i,isAppleDevice:c};e=S.onFocus(s)}return e}),[r,o,d,g,S,a,i,c]),I=(0,e.useMemo)((function(){var e="";if(b&&y.length&&!C&&S.onFilter){var t=_({count:a.length});e=S.onFilter({inputValue:m,resultsMessage:t})}return e}),[a,m,b,S,y,_,C]),k="initial-input-focus"===(null==n?void 0:n.action),M=(0,e.useMemo)((function(){var e="";if(S.guidance){var t=o?"value":b?"menu":"input";e=S.guidance({"aria-label":E,context:t,isDisabled:r&&g(r,i),isMulti:f,isSearchable:v,tabSelectsValue:w,isInitialFocus:k})}return e}),[E,r,o,f,g,v,b,S,i,w,k]),L=Ke(e.Fragment,null,Ke("span",{id:"aria-selection"},x),Ke("span",{id:"aria-focused"},D),Ke("span",{id:"aria-results"},I),Ke("span",{id:"aria-guidance"},M));return Ke(e.Fragment,null,Ke(wn,{id:u},k&&L),Ke(wn,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!k&&L))},On=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Sn=new RegExp("["+On.map((function(e){return e.letters})).join("")+"]","g"),xn={},Dn=0;Dn<On.length;Dn++)for(var In=On[Dn],kn=0;kn<In.letters.length;kn++)xn[In.letters[kn]]=In.base;var Mn=function(e){return e.replace(Sn,(function(e){return xn[e]}))},Ln=function(e,t){void 0===t&&(t=bn);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(Mn),Vn=function(e){return e.replace(/^\s+|\s+$/g,"")},Pn=function(e){return"".concat(e.label," ").concat(e.value)},Rn=["innerRef"];function Tn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=v(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=v(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(b(e,Rn),"onExited","in","enter","exit","appear");return Ke("input",_({ref:t},n,{css:Ze({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Fn=["boxSizing","height","overflow","paddingRight","position"],jn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function An(e){e.preventDefault()}function Nn(e){e.stopPropagation()}function Hn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Un(){return"ontouchstart"in window||navigator.maxTouchPoints}var $n=!("undefined"==typeof window||!window.document||!window.document.createElement),zn=0,Qn={capture:!1,passive:!1},Bn=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},qn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Gn(t){var n=t.children,r=t.lockEnabled,o=t.captureEnabled,a=function(t){var n=t.isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,a=t.onTopArrive,s=t.onTopLeave,i=(0,e.useRef)(!1),l=(0,e.useRef)(!1),u=(0,e.useRef)(0),c=(0,e.useRef)(null),p=(0,e.useCallback)((function(e,t){if(null!==c.current){var n=c.current,u=n.scrollTop,p=n.scrollHeight,d=n.clientHeight,m=c.current,h=t>0,f=p-d-u,g=!1;f>t&&i.current&&(o&&o(e),i.current=!1),h&&l.current&&(s&&s(e),l.current=!1),h&&t>f?(r&&!i.current&&r(e),m.scrollTop=p,g=!0,i.current=!0):!h&&-t>u&&(a&&!l.current&&a(e),m.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[r,o,a,s]),d=(0,e.useCallback)((function(e){p(e,e.deltaY)}),[p]),m=(0,e.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),h=(0,e.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)}),[p]),f=(0,e.useCallback)((function(e){if(e){var t=!!At&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",m,t),e.addEventListener("touchmove",h,t)}}),[h,m,d]),g=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",m,!1),e.removeEventListener("touchmove",h,!1))}),[h,m,d]);return(0,e.useEffect)((function(){if(n){var e=c.current;return f(e),function(){g(e)}}}),[n,f,g]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),s=function(t){var n=t.isEnabled,r=t.accountForScrollbars,o=void 0===r||r,a=(0,e.useRef)({}),s=(0,e.useRef)(null),i=(0,e.useCallback)((function(e){if($n){var t=document.body,n=t&&t.style;if(o&&Fn.forEach((function(e){var t=n&&n[e];a.current[e]=t})),o&&zn<1){var r=parseInt(a.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,i=window.innerWidth-s+r||0;
vendor: 15,223 bytes, line 16
16Object.keys(jn).forEach((function(e){var t=jn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(i,"px"))}t&&Un()&&(t.addEventListener("touchmove",An,Qn),e&&(e.addEventListener("touchstart",Hn,Qn),e.addEventListener("touchmove",Nn,Qn))),zn+=1}}),[o]),l=(0,e.useCallback)((function(e){if($n){var t=document.body,n=t&&t.style;zn=Math.max(zn-1,0),o&&zn<1&&Fn.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&Un()&&(t.removeEventListener("touchmove",An,Qn),e&&(e.removeEventListener("touchstart",Hn,Qn),e.removeEventListener("touchmove",Nn,Qn)))}}),[o]);return(0,e.useEffect)((function(){if(n){var e=s.current;return i(e),function(){l(e)}}}),[n,i,l]),function(e){s.current=e}}({isEnabled:r});return Ke(e.Fragment,null,r&&Ke("div",{onClick:Bn,css:qn}),n((function(e){a(e),s(e)})))}var Wn={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Yn=function(e){var t=e.name,n=e.onFocus;return Ke("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Wn,value:"",onChange:function(){}})};function Xn(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Kn(){return Xn(/^Mac/i)}var Zn={clearIndicator:sn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,a=o.colors,s=o.borderRadius;return h({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:an,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return h({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,a=r.colors;return h({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,a=o.spacing,s=o.colors;return h(h({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},mn),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,a=o.colors,s=o.spacing.baseUnit;return h({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*s})},loadingMessage:Kt,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,s=o.spacing,i=o.colors;return h((d(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),d(n,"position","absolute"),d(n,"width","100%"),d(n,"zIndex",1),n),t?{}:{backgroundColor:i.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return h({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors;return h({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,a=e.cropWithEllipsis;return h({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,a=n.colors,s=e.isFocused;return h({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:Xt,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,a=e.theme,s=a.spacing,i=a.colors;return h({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?i.primary:r?i.primary25:"transparent",color:n?i.neutral20:o?i.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?i.primary:i.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return h({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,a=r.colors;return h({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,a=e.selectProps.controlShouldRenderValue;return h({alignItems:"center",display:r&&o&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Jn={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},er={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Rt(),captureMenuScroll:!Rt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=h({ignoreCase:!0,ignoreAccents:!0,stringify:Pn,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,a=n.stringify,s=n.trim,i=n.matchFrom,l=s?Vn(t):t,u=s?Vn(a(e)):a(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=Ln(l),u=Mn(u)),"start"===i?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function tr(e,t,n,r){return{type:"option",data:t,isDisabled:ur(e,t,n),isSelected:cr(e,t,n),label:ir(e,t),value:lr(e,t),index:r}}function nr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return tr(e,n,t,r)})).filter((function(t){return ar(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var a=tr(e,n,t,r);return ar(e,a)?a:void 0})).filter(Nt)}function rr(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,S(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function or(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,S(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function ar(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,a=t.isSelected,s=t.label,i=t.value;return(!dr(e)||!a)&&pr(e,{label:s,value:i,data:o},r)}var sr=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ir=function(e,t){return e.getOptionLabel(t)},lr=function(e,t){return e.getOptionValue(t)};function ur(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function cr(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=lr(e,t);return n.some((function(t){return lr(e,t)===r}))}function pr(e,t,n){return!e.filterOption||e.filterOption(t,n)}var dr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},mr=1,hr=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(l,t);var n,r,o,a,s,i=(n=l,r=O(),function(){var e,t=E(n);if(r){var o=E(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Kn()||Xn(/^iPhone/i)||Xn(/^iPad/i)||Kn()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,a=o.closeMenuOnSelect,s=o.isMulti,i=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:i}),a&&(t.setState({inputIsHiddenAfterUpdate:!s}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,a=n.name,s=t.state.selectValue,i=o&&t.isOptionSelected(e,s),l=t.isOptionDisabled(e,s);if(i){var u=t.getOptionValue(e);t.setValue(s.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});o?t.setValue([].concat(S(s),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==o})),s=Ht(n,a,a[0]||null);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ht(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),a=Ht(e,o,o[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return sr(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return or(nr(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return St.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return ir(t.props,e)},t.getOptionValue=function(e){return lr(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=Zn[e](n,r);o.boxSizing="border-box";var a=t.props.styles[e];return a?a(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,h(h({},gn),e.components);var e},t.buildCategorizedOptions=function(){return nr(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return rr(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:h({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focu
vendor: 6,525 bytes, line 16
16sInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&kt(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return dr(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,a=n.escapeClearsValue,s=n.inputValue,i=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,p=n.tabSelectsValue,d=n.openMenuOnFocus,m=t.state,h=m.focusedOption,f=m.focusedValue,g=m.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||s)return;t.focusValue("previous");break;case"ArrowRight":if(!r||s)return;t.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(f)t.removeValue(f);else{if(!o)return;r?t.popValue():i&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!p||!h||d&&t.isOptionSelected(h,g))return;t.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(t.isComposing)return;t.selectOption(h);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:s}),t.onMenuClose()):i&&a&&t.clearValue();break;case" ":if(s)return;if(!u){t.openMenu("first");break}if(!h)return;t.selectOption(h);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++mr),t.state.selectValue=xt(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=sr(n,r[o])}return t}return o=l,a=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Pt(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Pt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,a=this.buildFocusableOptions(),s="first"===e?0:a.length-1;if(!this.props.isMulti){var i=a.indexOf(r[0]);i>-1&&(s=i)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[s],focusedOptionId:this.getFocusedOptionId(a[s])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var a=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?a:o-1;break;case"next":o>-1&&o<a&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,a=r.indexOf(n);
vendor: 5,191 bytes, line 16
16n||(a=-1),"up"===e?o=a>0?a-1:r.length-1:"down"===e?o=(a+1)%r.length:"pageup"===e?(o=a-t)<0&&(o=0):"pagedown"===e?(o=a+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Jn):h(h({},Jn),this.props.theme):Jn}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,a=this.selectOption,s=this.setValue,i=this.props,l=i.isMulti,u=i.isRtl,c=i.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:a,selectProps:i,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ur(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return cr(this.props,e,t)}},{key:"filterOption",value:function(e,t){return pr(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,o=t.inputId,a=t.inputValue,s=t.tabIndex,i=t.form,l=t.menuIsOpen,u=t.required,c=this.getComponents().Input,p=this.state,d=p.inputIsHidden,m=p.ariaSelection,f=this.commonProps,g=o||this.getElementId("input"),v=h(h(h({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":u,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==m?void 0:m.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(c,_({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:n,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:i,type:"text",value:a},v)):e.createElement(Tn,_({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Et,onFocus:this.onInputFocus,disabled:n,tabIndex:s,inputMode:"none",form:i,value:""},v))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,o=n.MultiValueContainer,a=n.MultiValueLabel,s=n.MultiValueRemove,i=n.SingleValue,l=n.Placeholder,u=this.commonProps,c=this.props,p=c.controlShouldRenderValue,d=c.isDisabled,m=c.isMulti,h=c.inputValue,f=c.placeholder,g=this.state,v=g.selectValue,b=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!p)return h?null:e.createElement(l,_({},u,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),f);if(m)return v.map((function(n,i){var l=n===b,c="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,_({},u,{components:{Container:o,Label:a,Remove:s},isFocused:l,isDisabled:d,key:c,index:i,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(h)return null;var w=v[0];return e.createElement(i,_({},u,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().
vendor: 6,485 bytes, line 16
16ClearIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,s=this.state.isFocused;if(!this.isClearable()||!t||o||!this.hasValue()||a)return null;var i={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,_({},n,{innerProps:i,isFocused:s}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,o=r.isDisabled,a=r.isLoading,s=this.state.isFocused;return t&&a?e.createElement(t,_({},n,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:s})):null}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var o=this.commonProps,a=this.props.isDisabled,s=this.state.isFocused;return e.createElement(r,_({},o,{isDisabled:a,isFocused:s}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,_({},n,{innerProps:a,isDisabled:r,isFocused:o}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,a=n.Menu,s=n.MenuList,i=n.MenuPortal,l=n.LoadingMessage,u=n.NoOptionsMessage,c=n.Option,p=this.commonProps,d=this.state.focusedOption,m=this.props,h=m.captureMenuScroll,f=m.inputValue,g=m.isLoading,v=m.loadingMessage,b=m.minMenuHeight,y=m.maxMenuHeight,w=m.menuIsOpen,C=m.menuPlacement,E=m.menuPosition,O=m.menuPortalTarget,S=m.menuShouldBlockScroll,x=m.menuShouldScrollIntoView,D=m.noOptionsMessage,I=m.onMenuScrollToTop,k=m.onMenuScrollToBottom;if(!w)return null;var M,L=function(n,r){var o=n.type,a=n.data,s=n.isDisabled,i=n.isSelected,l=n.label,u=n.value,m=d===a,h=s?void 0:function(){return t.onOptionHover(a)},f=s?void 0:function(){return t.selectOption(a)},g="".concat(t.getElementId("option"),"-").concat(r),v={id:g,onClick:f,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:i};return e.createElement(c,_({},p,{innerProps:v,data:a,isDisabled:s,isSelected:i,key:g,label:l,type:o,value:u,isFocused:m,innerRef:m?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())M=this.getCategorizedOptions().map((function(n){if("group"===n.type){var a=n.data,s=n.options,i=n.index,l="".concat(t.getElementId("group"),"-").concat(i),u="".concat(l,"-heading");return e.createElement(r,_({},p,{key:l,data:a,options:s,Heading:o,headingProps:{id:u,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return L(e,"".concat(i,"-").concat(e.index))})))}if("option"===n.type)return L(n,"".concat(n.index))}));else if(g){var V=v({inputValue:f});if(null===V)return null;M=e.createElement(l,p,V)}else{var P=D({inputValue:f});if(null===P)return null;M=e.createElement(u,p,P)}var R={minMenuHeight:b,maxMenuHeight:y,menuPlacement:C,menuPosition:E,menuShouldScrollIntoView:x},T=e.createElement(Wt,_({},p,R),(function(n){var r=n.ref,o=n.placerProps,i=o.placement,l=o.maxHeight;return e.createElement(a,_({},p,R,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:i}),e.createElement(Gn,{captureEnabled:h,onTopArrive:I,onBottomArrive:k,lockEnabled:S},(function(n){return e.createElement(s,_({},p,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":p.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:l,focusedOption:d}),M)})))}));return O||"fixed"===E?e.createElement(i,_({},p,{appendTo:O,controlElement:this.controlRef,menuPlacement:C,menuPosition:E}),T):T}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,o=n.isDisabled,a=n.isMulti,s=n.name,i=n.required,l=this.state.selectValue;if(i&&!this.hasValue()&&!o)return e.createElement(Yn,{name:s,onFocus:this.onValueInputFocus});if(s&&!o){if(a){if(r){var u=l.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:s,type:"hidden",value:u})}var c=l.length>0?l.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:s,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:s,type:"hidden",value:""});return e.createElement("div",null,c)}var p=l[0]?this.getOptionValue(l[0]):"";return e.createElement("input",{name:s,type:"hidden",value:p})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,o=n.focusedOption,a=n.focusedValue,s=n.isFocused,i=n.selectValue,l=this.getFocusableOptions();return e.createElement(En,_({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:o,focusedValue:a,isFocused:s,selectValue:i,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,o=t.SelectContainer,a=t.ValueContainer,s=this.props,i=s.className,l=s.id,u=s.isDisabled,c=s.menuIsOpen,p=this.state.isFocused,d=this.commonProps=this.getCommonProps();return e.createElement(o,_({},d,{className:i,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:p}),this.renderLiveRegion(),e.createElement(n,_({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:p,menuIsOpen:c}),e.createElement(a,_({},d,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,_({},d,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],s=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,i=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,p=e.menuIsOpen,d=e.inputValue,m=e.isMulti,f=xt(c),g={};if(n&&(c!==n.value||u!==n.options||p!==n.menuIsOpen||d!==n.inputValue)){var v=p?function(e,t){return rr(nr(e,t))}(e,f):[],b=p?or(nr(e,f),"".concat(l,"-option")):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,f):null,_=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);
16g={selectValue:f,focusedOption:_,focusedOptionId:sr(b,_),focusableOptionsWithIds:b,focusedValue:y,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},C=a,E=s&&i;return s&&!E&&(C={value:Ht(m,f,f[0]||null),options:f,action:"initial-input-focus"},E=!i),"initial-input-focus"===(null==a?void 0:a.action)&&(C=null),h(h(h({},g),w),{},{prevProps:e,ariaSelection:C,prevWasFocused:E})}}],a&&w(o.prototype,a),s&&w(o,s),Object.defineProperty(o,"prototype",{writable:!1}),l}(e.Component);hr.defaultProps=er;var fr=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,o=t.defaultMenuIsOpen,a=void 0!==o&&o,s=t.defaultValue,i=void 0===s?null:s,l=t.inputValue,u=t.menuIsOpen,c=t.onChange,p=t.onInputChange,d=t.onMenuClose,m=t.onMenuOpen,f=t.value,g=b(t,y),_=v((0,e.useState)(void 0!==l?l:r),2),w=_[0],C=_[1],E=v((0,e.useState)(void 0!==u?u:a),2),O=E[0],S=E[1],x=v((0,e.useState)(void 0!==f?f:i),2),D=x[0],I=x[1],k=(0,e.useCallback)((function(e,t){"function"==typeof c&&c(e,t),I(e)}),[c]),M=(0,e.useCallback)((function(e,t){var n;"function"==typeof p&&(n=p(e,t)),C(void 0!==n?n:e)}),[p]),L=(0,e.useCallback)((function(){"function"==typeof m&&m(),S(!0)}),[m]),V=(0,e.useCallback)((function(){"function"==typeof d&&d(),S(!1)}),[d]),P=void 0!==l?l:w,R=void 0!==u?u:O,T=void 0!==f?f:D;return h(h({},g),{},{inputValue:P,menuIsOpen:R,onChange:k,onInputChange:M,onMenuClose:V,onMenuOpen:L,value:T})}(t);return e.createElement(hr,_({ref:n},r))})),gr=fr;const vr=({children:t,cacheKey:n="ld-reports"})=>{const r=(0,l.useRef)(null),[o,a]=(0,l.useState)(null);return(0,l.useEffect)((()=>{r.current&&!o&&a(xe({key:n,container:r.current}))}),[n,o]),(0,e.createElement)("div",{ref:r},o?(0,e.createElement)(Qe,{value:o},t):t)},br=t=>(0,e.createElement)(vr,{cacheKey:"ld-reports-select"},(0,e.createElement)(gr,{...t}));class yr extends e.Component{constructor(e){super(e),this.state={value:e.duration},this.handleValueChange=this.handleValueChange.bind(this),document.addEventListener("click",(function(e){const t=document.getElementsByClassName("download_csv"),n=document.getElementsByClassName("ellipses");t[0]&&n[0]&&!t[0].contains(e.target)&&!n[0].contains(e.target)&&t[0].classList.add("wrld-hidden")}))}handleValueChange(e){this.setState({value:e});const t=new CustomEvent("local_completion_duration_change",{detail:{value:e}});document.dispatchEvent(t)}downloadLink(e){jQuery(e.target).next().toggleClass("wrld-hidden")}startCSVDownload(e){const t=new CustomEvent("start_csv_download_cc",{detail:{value:e}});document.dispatchEvent(t)}render(){const e=[{value:"all",label:(0,r.__)("All time","learndash-reports-pro")},{value:"6 months",label:(0,r.__)("Last 6 months","learndash-reports-pro")},{value:"3 months",label:(0,r.__)("Last 3 months","learndash-reports-pro")},{value:"30 days",label:(0,r.__)("Last 30 days","learndash-reports-pro")},{value:"7 days",label:(0,r.__)("Last 7 days","learndash-reports-pro")},{value:"1 day",label:(0,r.__)("Last 1 day","learndash-reports-pro")}];return(0,l.createElement)("div",{className:"wisdm-learndash-reports-duration-filter-completion"},(0,l.createElement)("div",{className:"selector-label"},(0,r.__)("Enrollment date","learndash-reports-pro")),(0,l.createElement)("div",{className:"select-control"},(0,l.createElement)(br,{options:e,onChange:this.handleValueChange,value:{value:this.state.value.value,label:this.state.value.label}})),(0,l.createElement)("span",{className:"ellipses",onClick:this.downloadLink.bind(this)}),(0,l.createElement)("span",{className:"wrld-hidden download_csv",onClick:this.startCSVDownload.bind(this)},(0,r.__)("Download CSV","learndash-reports-pro")))}}const _r=yr;class wr extends e.Component{constructor(e){super(e),this.state={group:e.group,category:e.category,groups:e.groups,categories:e.categories,loading_groups:!1},this.changeGroups=this.changeGroups.bind(this),this.changeCategory=this.changeCategory.bind(this)}changeGroups(e){this.setState({groups:e.detail.value})}changeCategory(e){this.setState({category:e.detail.value})}handleGroupChange=e=>{const t=new CustomEvent("local_group_change_completion",{detail:{value:e}});document.dispatchEvent(t),this.setState({group:e})};handleCategoryChange=e=>{const t=new CustomEvent("local_category_change_completion",{detail:{value:e}});document.dispatchEvent(t),this.setState({category:e})};componentDidMount(){document.addEventListener("completion-parent-groups-changed",this.changeGroups),document.addEventListener("completion-parent-category-changed",this.changeCategory)}static getDerivedStateFromProps(e,t){return e.categories!==t.categories?{categories:e.categories}:e.groups!==t.groups?{groups:e.groups}:e.group!==t.group?{group:e.group}:e.category!==t.category?{category:e.category}:null}render(){return(0,l.createElement)("div",{className:"wisdm-learndash-reports-local-filters"},(0,l.createElement)("div",{className:"selector lr-learner"},(0,l.createElement)("div",{className:"selector-label"},(0,r.__)("Categories","learndash-reports-pro"),this.state.lock_icon),(0,l.createElement)("div",{className:"select-control"},(0,l.createElement)(br,{onChange:this.handleCategoryChange.bind(this),options:this.state.categories,value:{value:this.state.category.value,label:this.state.category.label}}))),(0,l.createElement)("div",{className:"selector lr-learner"},(0,l.createElement)("div",{className:"selector-label"},wisdm_reports_get_ld_custom_lebel_if_avaiable("Groups"),this.state.lock_icon),(0,l.createElement)("div",{className:"select-control"},(0,l.createElement)(br,{onChange:this.handleGroupChange.bind(this),options:this.state.groups,value:{value:this.state.group.value,label:this.state.group.label}}))))}}const Cr=wr;var Er=n(8640);const Or=window.wp.components;class Sr extends e.Component{constructor(t){super(t),this.state={isLoaded:!1,error:null,moreDataLoading:!1,reportTypeInUse:wisdm_ld_reports_common_script_data.report_type,chart_title:wisdm_reports_get_ld_custom_lebel_if_avaiable("Course")+" "+(0,r.__)("Completion Rate","learndash-reports-pro"),lock_icon:"",request_data:null,tableData:{},group:{value:null,label:(0,r.__)("All","learndash-reports-pro")},groups:[],page:1,category:{value:null,label:(0,r.__)("All","learndash-reports-pro")},categories:[],graph_summary:[],duration:{value:"all",label:(0,r.__)("All time","learndash-reports-pro")},help_text:(0,r.sprintf)(
17// Translators: %s: course label.
18// Translators: %s: course label.
19(0,r.__)("This report displays the percentage of learners who have completed a %s.","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Course","lower")),course_report_type:null,show_supporting_text:!1,sort:"DESC",sort_inner:"DESC",show_completion_rate_modal:!1},0==wisdm_ld_reports_common_script_data.is_pro_version_active&&(this.upgdare_to_pro="wisdm-ld-reports-upgrade-to-pro-front",this.lock_icon=(0,e.createElement)("span",{title:(0,r.__)("Please upgrade the plugin to access this feature","learndash-reports-pro"),
19className:"dashicons dashicons-lock ld-reports top-corner"})),this.applyFilters=this.applyFilters.bind(this),this.handleReportTypeChange=this.handleReportTypeChange.bind(this),this.showDummyImages=this.showDummyImages.bind(this),this.updateLocalDuration=this.updateLocalDuration.bind(this),this.updateSorting=this.updateSorting.bind(this),this.updateSortingAsync=this.updateSortingAsync.bind(this),this.updateLocalGroup=this.updateLocalGroup.bind(this),this.updateLocalCategory=this.updateLocalCategory.bind(this),this.addMoreData=this.addMoreData.bind(this),this.openCompletionRateModal=this.openCompletionRateModal.bind(this),this.closeCompletionRateModal=this.closeCompletionRateModal.bind(this),this.startCSVDownload=this.startCSVDownload.bind(this),this.defaultFiltersLoaded=this.defaultFiltersLoaded.bind(this)}getUserType(){let e=wisdm_ld_reports_common_script_data.user_roles;return"object"==typeof e&&(e=Object.keys(e).map((t=>e[t]))),null==e||0==e.length?null:e.includes("administrator")?"administrator":e.includes("group_leader")?"group_leader":null}componentDidMount(){document.addEventListener("wisdm-ld-reports-filters-applied",this.applyFilters),document.addEventListener("wisdm-ld-reports-report-type-selected",this.handleReportTypeChange),document.addEventListener("wisdm-ldrp-course-report-type-changed",this.showDummyImages),document.addEventListener("local_completion_duration_change",this.updateLocalDuration),document.addEventListener("local_group_change_completion",this.updateLocalGroup),document.addEventListener("local_category_change_completion",this.updateLocalCategory),document.addEventListener("local_sort_change_completion",this.updateSorting),document.addEventListener("local_sort_change_completion_modal",this.updateSortingAsync),document.addEventListener("start_csv_download_cc",this.startCSVDownload),document.addEventListener("wrld-default-filters-loaded",this.defaultFiltersLoaded),this.updateChart("/rp/v1/course-completion-rate?duration="+this.state.duration.value),setTimeout((()=>{if(0===this.state.categories.length&&0===this.state.groups.length&&!document.querySelector(".wisdm-learndash-reports-report-filters")){let e="/rp/v1/report-filters-data";
19wisdm_ld_reports_common_script_data.wpml_lang&&(e+="/?wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:e}).then((e=>{e.wisdm_ld_reports_common_script_data&&(window.wisdm_ld_reports_common_script_data={...window.wisdm_ld_reports_common_script_data,...e.wisdm_ld_reports_common_script_data}),this.defaultFiltersLoaded()}))}}),1e3)}defaultFiltersLoaded(){const e=wisdm_ld_reports_common_script_data.course_groups,t=wisdm_ld_reports_common_script_data.course_categories;t.length>0&&t.unshift({value:null,label:(0,r.__)("All","learndash-reports-pro")});const n=Object.assign({},this.state);n.isLoaded=!0,n.groups=e,n.categories=t,this.setState(n);const o=new CustomEvent("completion-parent-groups-changed",{detail:{value:e}}),a=new CustomEvent("completion-parent-category-changed",{detail:{value:t}}),s=new CustomEvent("completion-parent-sort-changed",{detail:{value:"DESC"}});document.dispatchEvent(o),document.dispatchEvent(a),document.dispatchEvent(s)}openCompletionRateModal(){document.body.classList.add("wrld-open"),this.setState({show_completion_rate_modal:!0})}closeCompletionRateModal(){document.body.classList.remove("wrld-open"),this.setState({show_completion_rate_modal:!1,moreDataLoading:!1}),this.setState({table_data:[]})}showDetailsModal(){jQuery(".button-completion-rate").trigger("click")}detailsModal(e=!1){const t=this;if(e)n="/rp/v1/course-completion-rate/?duration="+this.state.duration.value+"&category="+this.state.category.value+"&group="+this.state.group.value+"&page=all&sort="+e;else var n="/rp/v1/course-completion-rate/?duration="+this.state.duration.value+"&category="+this.state.category.value+"&group="+this.state.group.value+"&page=all&sort="+this.state.sort_inner;wisdm_ld_reports_common_script_data.wpml_lang&&(n+="&wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:n}).then((e=>{if("no-data"===e.code)return t.setState({error:{message:e.message},table_data:[],moreDataLoading:!1}),void(e.data&&e.data.requestData&&t.setState({request_data:e.data.requestData}));let n=e.tableData;null==e&&(n=[]),this.setState({table_data:n,moreDataLoading:!1,error:null}),t.showDetailsModal()})).catch((e=>{e.data&&e.data.requestData&&t.setState({request_data:e.data.requestData,moreDataLoading:!1}),t.setState({error:e,moreDataLoading:!1})}))}addMoreData(e){this.setState({moreDataLoading:!0}),this.detailsModal()}updateLocalGroup(e){this.setState({group:e.detail.value,page:1,category:{value:null,label:(0,r.__)("All","learndash-reports-pro")}});const t="/rp/v1/course-completion-rate?duration="+this.state.duration.value+"&group="+e.detail.value.value+"&category=null&sort="+this.state.sort+"&page=1";this.updateChart(t)}startCSVDownload(e){let t="/rp/v1/course-completion-rate-csv/?duration="+this.state.duration.value+"&category="+this.state.category.value+"&group="+this.state.group.value+"&page=all";wisdm_ld_reports_common_script_data.wpml_lang&&(t+="&wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:t}).then((e=>{window.location=e.filename})).catch((e=>{e.data&&e.data.requestData&&self.setState({request_data:e.data.requestData,moreDataLoading:!1}),self.setState({error:e,moreDataLoading:!1})}))}updateSorting(e){this.setState({sort:e.detail.value,page:1});const t="/rp/v1/course-completion-rate?duration="+this.state.duration.value+"&group="+this.state.group.value+"&category="+this.state.category.value+"&sort="+e.detail.value+"&page=1";this.updateChart(t)}updateSortingAsync(e){this.setState({sort_inner:e.detail.value,table_data:[]}),this.setState({moreDataLoading:!0}),this.detailsModal(e.detail.value)}updateLocalCategory(e){this.setState({category:e.detail.value,page:1,group:{value:null,label:(0,r.__)("All","learndash-reports-pro")}});const t="/rp/v1/course-completion-rate?duration="+this.state.duration.value+"&group=null&category="+e.detail.value.value+"&sort="+this.state.sort+"&page=1";this.updateChart(t)}updateLocalDuration(e){this.setState({duration:e.detail.value,page:1});const t="/rp/v1/course-completion-rate?duration="+e.detail.value.value+"&category="+this.state.category.value+"&group="+this.state.group.value+"&sort="+this.state.sort+"&page=1";this.updateChart(t)}componentDidUpdate(){jQuery(".CourseCompletionRate .mixed-chart").prepend(jQuery(".CourseCompletionRate .apexcharts-toolbar")),jQuery(".wisdm-learndash-reports-course-completion-rate .chart
19-title .dashicons.dashicons-info-outline, .wisdm-learndash-reports-course-completion-rate .chart-summary-revenue-figure .dashicons.dashicons-info-outline").on("mouseenter",(function(){const e=jQuery("<div/>").addClass("wdm-tooltip").css({position:"absolute",zIndex:999,display:"none"}).appendTo(jQuery(this));e.text(jQuery(this).attr("data-title"));const t=jQuery(this).parents(".graph-card-container").css("font-family");e.css("font-family",t),e.show()})).on("mouseleave",(function(){jQuery(this).find(".wdm-tooltip").remove()}))}handleReportTypeChange(e){this.setState({reportTypeInUse:e.detail.active_reports_tab}),"quiz-reports"==e.detail.active_reports_tab?wisdm_reports_change_block_visibility(".wp-block-wisdm-learndash-reports-course-completion-rate",!1):wisdm_reports_change_block_visibility(".wp-block-wisdm-learndash-reports-course-completion-rate",!0)}showDummyImages(e){this.setState({course_report_type:e.detail.report_type})}applyFilters(e){const t=e.detail.selected_categories,n=e.detail.selected_groups,r=e.detail.selected_courses,o=e.detail.selected_lessons,a=e.detail.selected_topics,s=e.detail.selected_learners,i="/rp/v1/course-completion-rate/?duration="+this.state.duration.value+"&category="+t+"&group="+n+"&page="+this.state.page;null==a&&null==o&&null==r?(this.updateChart(i),this.setState({reportTypeInUse:"default-ld-reports"}),this.setState({group:e.detail.selected_groups_obj,category:e.detail.selected_categories_obj}),wisdm_reports_change_block_visibility(".wp-block-wisdm-learndash-reports-course-completion-rate",!0)):(this.setState({reportTypeInUse:"default-ld-reports-lesson-topic"}),wisdm_reports_change_block_visibility(".wp-block-wisdm-learndash-reports-course-completion-rate",!1)),null==s&&"learner-specific-course-reports"!=this.state.course_report_type||(this.setState({reportTypeInUse:"default-ld-learner-reports"}),wisdm_reports_change_block_visibility(".wp-block-wisdm-learndash-reports-course-completion-rate",!1))}updateChart(e,t=!1){t||this.setState({isLoaded:!1}),window.callStack||(window.callStack=[]);const n=this,r=function(){setTimeout((function(){window.callStack.length>4?r():(window.callStack.push(e),wisdm_ld_reports_common_script_data.wpml_lang&&(e+="&wpml_lang="+wisdm_ld_reports_common_script_data.wpml_lang),wp.apiFetch({path:e}).then((e=>{if("no-data"===e.code)return window.callStack.pop(),n.setState({error:{message:e.message},tableData:[],graph_summary:[],more:!1,isLoaded:!0}),e.data&&e.data.requestData&&n.setState({request_data:e.data.requestData}),void(e.updated_on?n.setState({updated_on:e.updated_on}):e.data&&e.data.updated_on&&n.setState({updated_on:e.data.updated_on}));e.requestData&&n.setState({request_data:e.requestData}),e.updated_on&&n.setState({updated_on:e.updated_on}),n.showCompletionChart(e,t),window.callStack.pop()})).catch((e=>{window.callStack.pop(),e.data&&e.data.requestData&&n.setState({request_data:e.data.requestData});const t=Object.assign({},n.state);t.error=e,t.graph_summary=[],t.isLoaded=!0,n.setState(t)})))}),500)};r()}showCompletionChart(e,t){let n=e.tableData;null==e&&(n=[]),t&&(n={...this.state.tableData,...n});let o=e.averageCourseCompletion;wisdm_ld_reports_common_script_data.is_pro_version_active||(o="??"),this.setState({tableData:n,error:null,isLoaded:!0,more:e.more_data,graph_summary:{left:[{title:(0,r.__)("AVG","learndash-reports-pro")+" "+wisdm_reports_get_ld_custom_lebel_if_avaiable("Course")+" "+(0,r.__)("COMPLETION","learndash-reports-pro"),value:"??"!=o?Number(parseFloat(o).toFixed(2))+"%":o}],right:[],last:e.updated,refresh_url:"/rp/v1/course-completion-average?duration="+this.state.duration.value+"&group="+this.state.group.value+"&category="+this.state.category.value,rotate:!1}})}refreshUpdateTime(){this.setState({isLoaded:!1});const e="/rp/v1/course-completion-rate?duration="+this.state.duration.value+"&group="+this.state.group.value+"&category="+this.state.category.value+"&disable_cache=true";this.updateChart(e)}render(){let t=(0,e.createElement)("div",null);if(""!=this.state.reportTypeInUse&&"default-ld-reports"!=this.state.reportTypeInUse)t="";else if(this.state.isLoaded){let n="";this.state.error||(n=(0,e.createElement)("div",{className:"CourseCompletionRate"},(0,e.createElement)("div",{className:"row"},(0,e.createElement)("div",{className:"mixed-chart"},(0,e.createElement)(u.c,{tableData:this.state.tableData,sort:this.state.sort}),"yes"==this.state.more?(0,e.createElement)("span",{className:"load-more-ajax",onClick:this.state.moreDataLoading?()=>{}:this.addMoreData},this.state.moreDataLoading?(0,e.createElement)("div",{className:"wrld-ccr-more-data-loader"},(0,e.createElement)("img",{src:wisdm_ld_reports_common_script_data.plugin_asset_url+"/images/loader.svg"})):(0,r.sprintf)(
20// Translators: %s: Courses label.
21// Translators: %s: Courses label.
22(0,r.__)("Show All %s","learndash-reports-pro"),wisdm_reports_get_ld_custom_lebel_if_avaiable("Courses"))," "):(0,e.createElement)("span",null))))),this.state.pro_link="https://go.learndash.com/ppaddon","learner-specific-course-reports"==this.state.course_report_type&&(this.state.pro_link="https://go.learndash.com/ppaddon"),t=(0,e.createElement)("div",{className:"wisdm-learndash-reports-chart-block"},(0,e.createElement)("div",{className:"wisdm-learndash-reports-course-completion-rate graph-card-container"},(0,e.createElement)("div",{className:"chart-header course-completion-rate-chart-header"},(0,e.createElement)("div",{className:"chart-title"},(0,e.createElement)("span",null,this.state.chart_title),(0,e.createElement)("span",{className:"dashicons dashicons-info-outline widm-ld-reports-info","data-title":this.state.help_text}),(0,e.createElement)(_r,{pro_upgrade_option:this.upgdare_to_pro,wrapper_class:"chart-summary-inactive-users",duration:this.state.duration})),(0,e.createElement)("div",{className:"chart_update_time"},(0,e.createElement)("span",null,(0,r.__)("Last updated: ","learndash-reports-pro")),(0,e.createElement)("span",null,this.state.updated_on),(0,e.createElement)("div",{className:"chart-refresh-icon"}
22,(0,e.createElement)("span",{className:"dashicons dashicons-image-rotate","data-title":(0,r.__)("Click this to refresh the chart","learndash-reports-pro"),onClick:this.refreshUpdateTime.bind(this)}))),(0,e.createElement)(Cr,{group:this.state.group,category:this.state.category,groups:this.state.groups,categories:this.state.categories}),(0,e.createElement)(a,{pro_upgrade_option:this.upgdare_to_pro,wrapper_class:"chart-summary-course-completion-rate",graph_summary:this.state.graph_summary,error:this.state.error,pro_link:this.state.pro_link})),(0,e.createElement)("div",null,n)),this.state.show_completion_rate_modal&&(0,e.createElement)(Or.Modal,{onRequestClose:this.closeCompletionRateModal,className:"learndash-propanel-modal completion_rate_modal"},(0,e.createElement)(Er.c,{loading:this.state.moreDataLoading,table:this.state.table_data,group:this.state.group.label,category:this.state.category.label,sort:this.state.sort_inner})),(0,e.createElement)("button",{className:"button-completion-rate wrld-hidden",onClick:this.openCompletionRateModal}))}else t=(0,e.createElement)(i,{text:this.state.show_supporting_text});return t}}document.addEventListener("DOMContentLoaded",(function(e){const n=document.getElementsByClassName("wisdm-learndash-reports-course-completion-rate front");n.length>0&&(0,l.createRoot)(n[0]).render(t().createElement(Sr))}))})()})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.