OwlCyberSecurity - MANAGER
Edit File: index.js
/*! For license information please see index.js.LICENSE.txt */ (()=>{var e,t,r={28302:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(99196),o=r(60598);function s(e,t){let r,o,i=[];for(let n=0;n<e.length;n++){const s=e[n];if("string"!==s.type){if(void 0===t[s.value])throw new Error(`Invalid interpolation, missing component node: \`${s.value}\``);if("object"!=typeof t[s.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${s.value}\``);if("componentClose"===s.type)throw new Error(`Missing opening component token: \`${s.value}\``);if("componentOpen"===s.type){r=t[s.value],o=n;break}i.push(t[s.value])}else i.push(s.value)}if(r){const a=function(e,t){const r=t[e];let n=0;for(let o=e+1;o<t.length;o++){const e=t[o];if(e.value===r.value){if("componentOpen"===e.type){n++;continue}if("componentClose"===e.type){if(0===n)return o;n--}}}throw new Error("Missing closing component token `"+r.value+"`")}(o,e),c=s(e.slice(o+1,a),t),l=(0,n.cloneElement)(r,{},c);if(i.push(l),a<e.length-1){const r=s(e.slice(a+1),t);i=i.concat(r)}}return i=i.filter(Boolean),0===i.length?null:1===i.length?i[0]:(0,n.createElement)(n.Fragment,null,...i)}function i(e){const{mixedString:t,components:r,throwErrors:n}=e;if(!r)return t;if("object"!=typeof r){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const i=(0,o.Z)(t);try{return s(i,r)}catch(e){if(n)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}},60598:(e,t,r)=>{"use strict";function n(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function o(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(n)}r.d(t,{Z:()=>o})},59550:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(69307);const o=(0,n.forwardRef)((function({icon:e,size:t=24,...r},o){return(0,n.cloneElement)(e,{width:t,height:t,...r,ref:o})}))},20849:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(70444),o=r(81514);const s=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{fillRule:"evenodd",d:"M5 5.5h14a.5.5 0 01.5.5v1.5a.5.5 0 01-.5.5H5a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 9.232A2 2 0 013 7.5V6a2 2 0 012-2h14a2 2 0 012 2v1.5a2 2 0 01-1 1.732V18a2 2 0 01-2 2H6a2 2 0 01-2-2V9.232zm1.5.268V18a.5.5 0 00.5.5h12a.5.5 0 00.5-.5V9.5h-13z",clipRule:"evenodd"})})},66210:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(70444),o=r(81514);const s=(0,o.jsx)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(n.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})})},75161:(e,t,r)=>{"use strict";r.d(t,{Z:()=>s});var n=r(70444),o=r(81514);const s=(0,o.jsxs)(n.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,o.jsx)(n.Path,{d:"M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z"}),(0,o.jsx)(n.Path,{d:"M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z"})]})},83518:(e,t,r)=>{"use strict";r.d(t,{z:()=>m,T:()=>y});var n=r(55609),o=r(9818),s=r(65736),i=r(67221),a=r(14599),c=r(81514);const l=()=>(0,c.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("g",{id:"block-template-part-sidebar",children:(0,c.jsx)("path",{id:"Shape",fillRule:"evenodd",clipRule:"evenodd",d:"M6 4H18C19.1046 4 20 4.89543 20 6V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V6C4 4.89543 4.89543 4 6 4ZM18 5.5H6C5.72386 5.5 5.5 5.72386 5.5 6V9H18.5V6C18.5 5.72386 18.2761 5.5 18 5.5ZM18.5 10.5H10L10 18.5H18C18.2761 18.5 18.5 18.2761 18.5 18V10.5Z",fill:"#1E1E1E"})})}),u=()=>(0,c.jsx)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,c.jsx)("rect",{x:"0.5",y:"0.5",width:"11",height:"13",strokeWidth:"1"})}),d=()=>(0,c.jsxs)("svg",{className:"woocommerce-layout__activity-panel-tab-icon",width:"18",height:"14",viewBox:"0 0 18 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,c.jsx)("rect",{x:"0.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"}),(0,c.jsx)("rect",{x:"9.5",y:"0.5",width:"7",height:"13",strokeWidth:"1"})]});var p=r(21688);const{Fill:m,Slot:f}=(0,n.createSlotFill)("DisplayOptions");m.Slot=f;const h=[{value:"single_column",label:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(u,{}),(0,s.__)("Single column","woocommerce")]})},{value:"two_columns",label:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(d,{}),(0,s.__)("Two columns","woocommerce")]})}],y=()=>{const{defaultHomescreenLayout:e}=(0,o.useSelect)((e=>{const{getOption:t}=e(i.optionsStore);return{defaultHomescreenLayout:t("woocommerce_default_homepage_layout")||"single_column"}})),{updateUserPreferences:t,homepage_layout:r}=(0,i.useUserPreferences)(),u=!(0,p.vD)("setup")||window.wcAdminFeatures.analytics;return(0,c.jsx)(f,{children:o=>0!==o.length||u?(0,c.jsx)(n.DropdownMenu,{icon:(0,c.jsx)(l,{}),label:(0,s.__)("Display options","woocommerce"),toggleProps:{className:"woocommerce-layout__activity-panel-tab display-options",onClick:()=>(0,a.recordEvent)("homescreen_display_click")},popoverProps:{className:"woocommerce-layout__activity-panel-popover"},children:({onClose:i})=>(0,c.jsxs)(c.Fragment,{children:[o,u?(0,c.jsx)(n.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:(0,s.__)("Layout","woocommerce"),children:(0,c.jsx)(n.MenuItemsChoice,{choices:h,onSelect:e=>{t({homepage_layout:e}),i(),(0,a.recordEvent)("homescreen_display_option",{display_option:e})},value:r||e})}):null]})}):null})}},32381:(e,t,r)=>{"use strict";r.d(t,{$Q:()=>v,vn:()=>b});var n=r(65736),o=r(14812),s=r(14599),i=r(86020),a=r(9818),c=r(75161),l=r(70444),u=r(81514);const d=(0,u.jsx)(l.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)(l.Path,{d:"M18 4H6c-1.1 0-2 .9-2 2v12.9c0 .6.5 1.1 1.1 1.1.3 0 .5-.1.8-.3L8.5 17H18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H7.9l-2.4 2.4V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v9z"})});var p=r(20849),m=r(55609),f=r(10431),h=r(52458),y=r(68744);const g=()=>(0,u.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,u.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"})]});var w=r(21688);const v="AbbreviatedNotification",b=({thingsToDoNextCount:e})=>{const{ordersToProcessCount:t,reviewsToModerateCount:r,stockNoticesCount:l,isSetupTaskListHidden:b,isExtendedTaskListHidden:_}=(0,a.useSelect)((e=>{const t=(0,h.sg)(e);return{ordersToProcessCount:(0,h.xX)(e,t),reviewsToModerateCount:(0,y.Vh)(e),stockNoticesCount:(0,h.ae)(e),isSetupTaskListHidden:!(0,w.pw)("setup"),isExtendedTaskListHidden:!(0,w.pw)("extended")}})),x=e=>{(0,s.recordEvent)("activity_panel_click",{task:e})},{Slot:S}=(0,m.createSlotFill)(v),C=(0,f.isWCAdmin)();return(0,u.jsxs)("div",{className:"woocommerce-abbreviated-notifications",children:[e>0&&!_&&(0,u.jsxs)(i.AbbreviatedCard,{className:"woocommerce-abbreviated-notification",icon:(0,u.jsx)(g,{}),href:"admin.php?page=wc-admin#extended_task_list",onClick:()=>x("thingsToDoNext"),type:C?"wc-admin":"wp-admin",children:[(0,u.jsx)(o.Text,{as:"h3",children:(0,n.__)("Things to do next","woocommerce")}),(0,u.jsx)(o.Text,{as:"p",children:(0,n.sprintf)((0,n._n)("You have %d new thing to do","You have %d new things to do",e,"woocommerce"),e)})]}),t>0&&b&&(0,u.jsxs)(i.AbbreviatedCard,{className:"woocommerce-abbreviated-notification",icon:c.Z,href:"admin.php?page=wc-admin&opened_panel=orders-panel",onClick:()=>x("ordersToProcess"),type:C?"wc-admin":"wp-admin",children:[(0,u.jsx)(o.Text,{as:"h3",children:(0,n.__)("Orders to fulfill","woocommerce")}),(0,u.jsx)(o.Text,{children:(0,n.sprintf)((0,n._n)("You have %d order to fulfill","You have %d orders to fulfill",t,"woocommerce"),t)})]}),r>0&&b&&(0,u.jsxs)(i.AbbreviatedCard,{className:"woocommerce-abbreviated-notification",icon:d,href:"admin.php?page=wc-admin&opened_panel=reviews-panel",onClick:()=>x("reviewsToModerate"),type:C?"wc-admin":"wp-admin",children:[(0,u.jsx)(o.Text,{as:"h3",children:(0,n.__)("Reviews to moderate","woocommerce")}),(0,u.jsx)(o.Text,{children:(0,n.sprintf)((0,n._n)("You have %d review to moderate","You have %d reviews to moderate",r,"woocommerce"),r)})]}),l>0&&b&&(0,u.jsxs)(i.AbbreviatedCard,{className:"woocommerce-abbreviated-notification",icon:p.Z,href:"admin.php?page=wc-admin&opened_panel=stock-panel",onClick:()=>x("stockNotices"),type:C?"wc-admin":"wp-admin",children:[(0,u.jsx)(o.Text,{as:"h3",children:(0,n.__)("Inventory to review","woocommerce")}),(0,u.jsx)(o.Text,{children:(0,n.__)("You have inventory to review and update","woocommerce")})]}),!_&&(0,u.jsx)(S,{})]})}},82625:(e,t,r)=>{"use strict";r.d(t,{ex:()=>d});var n=r(65736),o=r(92694),s=r(28302),i=r(86020),a=r(67221),c=r(81921),l=r(81514);var u=r(91978);const d=["processing","on-hold"],p=["completed","processing","refunded","cancelled","failed","pending","on-hold"],m=Object.keys(u.rq).filter((e=>"refunded"!==e)).map((e=>({value:e,label:u.rq[e],description:(0,n.sprintf)((0,n.__)("Exclude the %s status from reports","woocommerce"),u.rq[e])}))),f=(0,u.O3)("unregisteredOrderStatuses",{}),h=[{key:"defaultStatuses",options:m.filter((e=>p.includes(e.value)))},{key:"customStatuses",label:(0,n.__)("Custom Statuses","woocommerce"),options:m.filter((e=>!p.includes(e.value)))},{key:"unregisteredStatuses",label:(0,n.__)("Unregistered Statuses","woocommerce"),options:Object.keys(f).map((e=>({value:e,label:e,description:(0,n.sprintf)((0,n.__)("Exclude the %s status from reports","woocommerce"),e)})))}];(0,o.applyFilters)("woocommerce_admin_analytics_settings",{woocommerce_excluded_report_order_statuses:{label:(0,n.__)("Excluded statuses:","woocommerce"),inputType:"checkboxGroup",options:h,helpText:(0,s.Z)({mixedString:(0,n.__)("Orders with these statuses are excluded from the totals in your reports. The {{strong}}Refunded{{/strong}} status can not be excluded.","woocommerce"),components:{strong:(0,l.jsx)("strong",{})}}),defaultValue:["pending","cancelled","failed"]},woocommerce_actionable_order_statuses:{label:(0,n.__)("Actionable statuses:","woocommerce"),inputType:"checkboxGroup",options:h,helpText:(0,n.__)("Orders with these statuses require action on behalf of the store admin. These orders will show up in the Home Screen - Orders task.","woocommerce"),defaultValue:d},woocommerce_default_date_range:{name:"woocommerce_default_date_range",label:(0,n.__)("Default date range:","woocommerce"),inputType:"component",component:({value:e,onChange:t})=>{const{wcAdminSettings:r}=(0,a.useSettings)("wc_admin",["wcAdminSettings"]),{woocommerce_default_date_range:n}=r,o=Object.fromEntries(new URLSearchParams(e.replace(/&/g,"&"))),{period:s,compare:u,before:d,after:p}=(0,c.getDateParamsFromQuery)(o,n),{primary:m,secondary:f}=(0,c.getCurrentDates)(o,n),h={period:s,compare:u,before:d,after:p,primaryDate:m,secondaryDate:f};return(0,l.jsx)(i.DateRangeFilterPicker,{query:o,onRangeSelect:e=>{t({target:{name:"woocommerce_default_date_range",value:new URLSearchParams(e).toString()}})},dateQuery:h,isoDateFormat:c.isoDateFormat})},helpText:(0,n.__)("Select a default date range. When no range is selected, reports will be viewed by the default date range.","woocommerce"),defaultValue:"period=month&compare=previous_year"},woocommerce_date_type:{name:"woocommerce_date_type",label:(0,n.__)("Date type:","woocommerce"),inputType:"select",options:[{label:(0,n.__)("Select a date type","woocommerce"),value:"",disabled:!0},{label:(0,n.__)("Date created","woocommerce"),value:"date_created",key:"date_created"},{label:(0,n.__)("Date paid","woocommerce"),value:"date_paid",key:"date_paid"},{label:(0,n.__)("Date completed","woocommerce"),value:"date_completed",key:"date_completed"}],helpText:(0,n.__)("Database date field considered for Revenue and Orders reports","woocommerce")}})},52458:(e,t,r)=>{"use strict";r.d(t,{ae:()=>c,sg:()=>i,xX:()=>s});var n=r(67221),o=r(82625);function s(e,t){const{getItemsTotalCount:r,getItemsError:o,isResolving:s}=e(n.ITEMS_STORE_NAME);if(!t.length)return 0;const i={page:1,per_page:1,status:t,_fields:["id"]},a=r("orders",i,null),c=Boolean(o("orders",i)),l=s("getItemsTotalCount",["orders",i,null]);return c||l?null:a}function i(e){const{getSetting:t}=e(n.settingsStore),{woocommerce_actionable_order_statuses:r=o.ex}=t("wc_admin","wcAdminSettings",{});return r}const a={status:"publish"};function c(e){const{getItemsTotalCount:t,getItemsError:r,isResolving:o}=e(n.ITEMS_STORE_NAME),s=null,i=t("products/count-low-in-stock",a,s),c=Boolean(r("products/count-low-in-stock",a)),l=o("getItemsTotalCount",["products/count-low-in-stock",a,s]);return c||l&&i===s?null:i}},68744:(e,t,r)=>{"use strict";r.d(t,{Vh:()=>s});var n=r(67221);const o={page:1,per_page:1,status:"hold",_embed:1,_fields:["id"]};function s(e){const{getReviewsTotalCount:t,getReviewsError:r,isResolving:s}=e(n.reviewsStore),i=t(o),a=Boolean(r(o)),c=s("getReviewsTotalCount",[o]);return a||c&&void 0===i?null:i}},21688:(e,t,r)=>{"use strict";r.d(t,{ph:()=>p,pw:()=>i,vD:()=>c});var n=r(9818),o=r(67221),s=r(91978);const i=e=>(0,s.O3)("visibleTaskListIds",[]).includes(e),a=e=>(0,s.O3)("completedTaskListIds",[]).includes(e),c=e=>i(e)&&!a(e),l=()=>({requestingTaskListOptions:!1,setupTaskListHidden:!i("setup"),setupTaskListComplete:a("setup"),setupTaskListActive:c("setup"),setupTasksCount:void 0,setupTasksCompleteCount:void 0,thingsToDoNextCount:void 0}),u=e=>{const{getTaskList:t,hasFinishedResolution:r}=e,n=t("setup"),s=(0,o.getVisibleTasks)(n?.tasks||[]),i=!n||n.isHidden,a=n?.isComplete;return{setupTaskListHidden:i,setupTaskListComplete:a,setupTaskListActive:!i&&!a,setupTasksCount:s.length,setupTasksCompleteCount:s.filter((e=>e.isComplete)).length,requestingTaskListOptions:!r("getTaskLists")}},d=e=>{const{getTaskList:t,hasFinishedResolution:r}=e;return{thingsToDoNextCount:(n=t("extended"),n&&n.tasks.length&&!n.isHidden?n.tasks.filter((e=>e.canView&&!e.isComplete&&!e.isDismissed)).length:0),requestingTaskListOptions:!r("getTaskLists")};var n},p=({setupTasklist:e,extendedTaskList:t}={setupTasklist:!0,extendedTaskList:!0})=>{const r=e&&c("setup"),s=t&&c("extended");return(0,n.useSelect)((e=>{if(!r&&!s)return l();const t=e(o.ONBOARDING_STORE_NAME);return r?s?{...l(),...u(t),...d(t)}:{...l(),...u(t)}:{...l(),...d(t)}}),[r,s])}},73909:(e,t,r)=>{"use strict";r.d(t,{fs:()=>i,kS:()=>a,r7:()=>u});var n=r(92819),o=r(90820),s=r.n(o);function i(e,t){return(0,n.filter)(e,(e=>{const{is_deleted:r,date_created_gmt:n,status:o}=e;if(!r)return(!t||!n||new Date(n+"Z").getTime()>t)&&"unactioned"===o})).length}function a(e){return(0,n.filter)(e,(e=>{const{is_deleted:t}=e;return!t})).length>0}const c=(e,t,r=" ")=>{let n=e.slice(0,t);if(e.indexOf(r,t)!==t){const e=n.lastIndexOf(r);e>-1&&(n=n.slice(0,e))}return n.join("")},l=(e,t)=>{const r=document.createElement("div"),n=Array.from(e.childNodes),o=new(s());let i=0;for(let e=0;e<n.length;e++){let s=n[e].cloneNode(!0);const a=o.splitGraphemes(s.textContent);if(i+a.length<=t){r.appendChild(s),i+=a.length;continue}const u=t-i;s.hasChildNodes()?s=l(s,u):s.textContent=c(a,u),r.appendChild(s);break}return r},u=(e,t)=>{const r=document.createElement("div"),n=new(s());return r.innerHTML=e,n.splitGraphemes(r.textContent).length>t?l(r,t).innerHTML+"...":e}},4174:(e,t,r)=>{"use strict";r.d(t,{a:()=>o});var n=r(9818);function o(e){const{createNotice:t}=(0,n.dispatch)("core/notices");e.error_data&&e.errors&&Object.keys(e.errors).length?Object.keys(e.errors).forEach((r=>{t("error",e.errors[r].join(" "))})):e.message&&t(e.code?"error":"success",e.message)}},88872:(e,t,r)=>{"use strict";r.d(t,{J:()=>g});var n=r(65736),o=r(9818),s=r(67221),i=r(55609),a=r(86020),c=r(74617),l=r(66210),u=r(28302),d=r(69307),p=r(10431),m=r(14599),f=r(81514);const h="woocommerce_task_list_reminder_bar_hidden",y=({remainingCount:e,tracksProps:t})=>{const r=1===e?(0,n.__)("π Almost there. Only {{strongText}}%1$d step left{{/strongText}} get your store up and running. {{setupLink}}Finish setup{{/setupLink}}","woocommerce"):(0,n.__)("π Youβre doing great! {{strongText}}%1$d steps left{{/strongText}} to get your store up and running. {{setupLink}}Continue setup{{/setupLink}}","woocommerce");return(0,f.jsx)("p",{children:(0,u.Z)({mixedString:(0,n.sprintf)(r,e),components:{strongText:(0,f.jsx)("strong",{}),setupLink:(0,f.jsx)(a.Link,{href:(0,c.getAdminLink)("admin.php?page=wc-admin"),onClick:()=>(0,m.recordEvent)("tasklist_reminder_bar_continue",t),type:"wp-admin",children:(0,f.jsx)(f.Fragment,{})})}})})},g=({taskListId:e,updateBodyMargin:t})=>{const{updateOptions:r}=(0,o.useDispatch)(s.optionsStore),{remainingCount:n,loading:a,taskListHidden:c,taskListComplete:u,reminderBarHidden:g,completedTasksCount:w}=(0,o.useSelect)((t=>{const{getTaskList:r,hasFinishedResolution:n}=t(s.onboardingStore),{getOption:o,hasFinishedResolution:i}=t(s.optionsStore),a=o(h),c=r(e),l=n("getTaskList",[e]),u=i("getOption",[h]),d=(0,s.getVisibleTasks)(c?.tasks||[]),p=d.filter((e=>e.isComplete))||[],m=l&&u;return{reminderBarHidden:"yes"===a,taskListHidden:!!m&&c?.isHidden,taskListComplete:!!m&&c?.isComplete,loading:!m,completedTasksCount:p.length,remainingCount:m?d?.length-p.length:null}}),[e]),v=(0,p.getQuery)(),b=v.page&&"wc-admin"===v.page&&!v.path,_=Boolean(v.wc_onboarding_active_task),x=a||c||u||g||0===w||b||_;(0,d.useEffect)((()=>{t()}),[x,t]);const S={completed:w,is_homescreen:!!b,is_active_task_page:_};return(0,d.useEffect)((()=>{a||x||(0,m.recordEvent)("tasklist_reminder_bar_view",S)}),[x,a]),x?null:(0,f.jsxs)("div",{className:"woocommerce-layout__header-tasks-reminder-bar",children:[(0,f.jsx)(y,{remainingCount:n,tracksProps:S}),(0,f.jsx)(i.Button,{isSmall:!0,onClick:()=>{r({[h]:"yes"}),(0,m.recordEvent)("tasklist_reminder_bar_close",S)},icon:l.Z})]})}},91978:(e,t,r)=>{"use strict";r.d(t,{O3:()=>l,SX:()=>u,rq:()=>p,vm:()=>d});var n=r(65736),o=r(74617);r(31586);const s=["wcAdminSettings","preloadSettings"],i=(0,o.getSetting)("admin",{}),a=Object.keys(i).reduce(((e,t)=>(s.includes(t)||(e[t]=i[t]),e)),{}),c={onboarding:{profile:"Deprecated: wcSettings.admin.onboarding.profile is deprecated. It is planned to be released in WooCommerce 10.0.0. Please use `getProfileItems` from the onboarding store. See https://github.com/woocommerce/woocommerce/tree/trunk/packages/js/data/src/onboarding for more information.",euCountries:"Deprecated: wcSettings.admin.onboarding.euCountries is deprecated. Please use `/wc/v3/data/continents/eu` from the REST API. See https://woocommerce.github.io/woocommerce-rest-api-docs/#list-all-continents for more information.",localInfo:'Deprecated: wcSettings.admin.onboarding.localInfo is deprecated. Please use `include WC()->plugin_path() . "/i18n/locale-info.php"` instead.',currencySymbols:'"Deprecated: wcSettings.admin.onboarding.currencySymbols is deprecated. Please use get_woocommerce_currency_symbols() function instead.'}};function l(e,t=!1,r=e=>e,o=c){if(s.includes(e))throw new Error((0,n.__)("Mutable settings should be accessed via data store.","woocommerce"));return r(a.hasOwnProperty(e)?a[e]:t,t)}const u=(0,o.getSetting)("adminUrl"),d=((0,o.getSetting)("countries"),(0,o.getSetting)("currency"),(0,o.getSetting)("locale"),(0,o.getSetting)("siteTitle"),(0,o.getSetting)("wcAssetUrl")),p=l("orderStatuses")},31586:(e,t,r)=>{"use strict";r.d(t,{DP:()=>o,GG:()=>s,Jm:()=>a,V7:()=>n.V,br:()=>n.b}),r(69307);var n=r(35916);function o(e){return e?e.substr(1).split("&").reduce(((e,t)=>{const r=t.split("="),n=r[0];let o=decodeURIComponent(r[1]);return o=isNaN(Number(o))?o:Number(o),e[n]=o,e}),{}):{}}function s(){let e="";const{page:t,path:r,post_type:n}=o(window.location.search);if(t){const n="wc-admin"===t?"home_screen":t;e=r?r.replace(/\//g,"_").substring(1):n}else n&&(e=n);return e}const i=[{name:"0-2s",max:2},{name:"2-5s",max:5},{name:"5-10s",max:10},{name:"10-15s",max:15},{name:"15-20s",max:20},{name:"20-30s",max:30},{name:"30-60s",max:60},{name:">60s"}],a=e=>{for(const t of i){if(!t.max)return t.name;if(e<1e3*t.max)return t.name}}},35916:(e,t,r)=>{"use strict";function n(e){return(e||"").split(":",1)[0]}function o(e){const t=n(e);return/^woocommerce(-|_)payments$/.test(t)?"wcpay":`${t.replace(/-/g,"_")}`.split(":",1)[0]}r.d(t,{V:()=>n,b:()=>o})},65382:(e,t,r)=>{"use strict";var n=r(29415),o=r(99181),s=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&s(e,".prototype.")>-1?o(r):r}},99181:(e,t,r)=>{"use strict";var n=r(22213),o=r(29415),s=r(67195),i=o("%TypeError%"),a=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||n.call(c,a),u=o("%Object.defineProperty%",!0),d=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){if("function"!=typeof e)throw new i("a function is required");var t=l(n,c,arguments);return s(t,1+d(0,e.length-(arguments.length-1)),!0)};var p=function(){return l(n,a,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p},74104:(e,t,r)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(o=n))})),t.splice(o,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=r(56093)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},56093:(e,t,r)=>{e.exports=function(e){function t(e){let r,o,s,i=null;function a(...e){if(!a.enabled)return;const n=a,o=Number(new Date),s=o-(r||o);n.diff=s,n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,o)=>{if("%%"===r)return"%";i++;const s=t.formatters[o];if("function"==typeof s){const t=e[i];r=s.call(n,t),e.splice(i,1),i--}return r})),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(o!==t.namespaces&&(o=t.namespaces,s=t.enabled(e)),s),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(o),...t.skips.map(o).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(e=n[r].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(48714),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}},23970:(e,t,r)=>{"use strict";var n=r(42489)(),o=r(29415),s=n&&o("%Object.defineProperty%",!0);if(s)try{s({},"a",{value:1})}catch(e){s=!1}var i=o("%SyntaxError%"),a=o("%TypeError%"),c=r(97520);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new a("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new a("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new a("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new a("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new a("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new a("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!c&&c(e,t);if(s)s(e,t,{configurable:null===l&&d?d.configurable:!l,enumerable:null===n&&d?d.enumerable:!n,value:r,writable:null===o&&d?d.writable:!o});else{if(!u&&(n||o||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},35333:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r};e.exports=function(e){var o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var s,i=function(e){for(var t=[],r=1,n=0;r<e.length;r+=1,n+=1)t[n]=e[r];return t}(arguments),a=r(0,o.length-i.length),c=[],l=0;l<a;l++)c[l]="$"+l;if(s=Function("binder","return function ("+function(e){for(var t="",r=0;r<e.length;r+=1)t+=e[r],r+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var t=o.apply(this,n(i,arguments));return Object(t)===t?t:this}return o.apply(e,n(i,arguments))})),o.prototype){var u=function(){};u.prototype=o.prototype,s.prototype=new u,u.prototype=null}return s}},22213:(e,t,r)=>{"use strict";var n=r(35333);e.exports=Function.prototype.bind||n},29415:(e,t,r)=>{"use strict";var n,o=SyntaxError,s=Function,i=TypeError,a=function(e){try{return s('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new i},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,d=r(38636)(),p=r(8127)(),m=Object.getPrototypeOf||(p?function(e){return e.__proto__}:null),f={},h="undefined"!=typeof Uint8Array&&m?m(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":d&&m?m([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":d&&m?m(m([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&d&&m?m((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&d&&m?m((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":d&&m?m(""[Symbol.iterator]()):n,"%Symbol%":d?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(m)try{null.error}catch(e){var g=m(m(e));y["%Error.prototype%"]=g}var w=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&m&&(r=m(o.prototype))}return y[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(22213),_=r(29151),x=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),C=b.call(Function.call,String.prototype.replace),k=b.call(Function.call,String.prototype.slice),j=b.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,P=/\\(\\)?/g,A=function(e,t){var r,n=e;if(_(v,n)&&(n="%"+(r=v[n])[0]+"%"),_(y,n)){var s=y[n];if(s===f&&(s=w(n)),void 0===s&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return C(e,E,(function(e,t,r,o){n[n.length]=r?C(o,P,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",s=A("%"+n+"%",t),a=s.name,l=s.value,u=!1,d=s.alias;d&&(n=d[0],S(r,x([0,1],d)));for(var p=1,m=!0;p<r.length;p+=1){var f=r[p],h=k(f,0,1),g=k(f,-1);if(('"'===h||"'"===h||"`"===h||'"'===g||"'"===g||"`"===g)&&h!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==f&&m||(u=!0),_(y,a="%"+(n+="."+f)+"%"))l=y[a];else if(null!=l){if(!(f in l)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&p+1>=r.length){var w=c(l,f);l=(m=!!w)&&"get"in w&&!("originalValue"in w.get)?w.get:l[f]}else m=_(l,f),l=l[f];m&&!u&&(y[a]=l)}}return l}},97520:(e,t,r)=>{"use strict";var n=r(29415)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},90820:e=>{e.exports&&(e.exports=function(){var e=3,t=4,r=12,n=13,o=16,s=17;function i(e,t){void 0===t&&(t=0);var r=e.charCodeAt(t);if(55296<=r&&r<=56319&&t<e.length-1){var n=r;return 56320<=(o=e.charCodeAt(t+1))&&o<=57343?1024*(n-55296)+(o-56320)+65536:n}if(56320<=r&&r<=57343&&t>=1){var o=r;return 55296<=(n=e.charCodeAt(t-1))&&n<=56319?1024*(n-55296)+(o-56320)+65536:o}return r}function a(i,a,c){var l=[i].concat(a).concat([c]),u=l[l.length-2],d=c,p=l.lastIndexOf(14);if(p>1&&l.slice(1,p).every((function(t){return t==e}))&&-1==[e,n,s].indexOf(i))return 2;var m=l.lastIndexOf(t);if(m>0&&l.slice(1,m).every((function(e){return e==t}))&&-1==[r,t].indexOf(u))return l.filter((function(e){return e==t})).length%2==1?3:4;if(0==u&&1==d)return 0;if(2==u||0==u||1==u)return 14==d&&a.every((function(t){return t==e}))?2:1;if(2==d||0==d||1==d)return 1;if(6==u&&(6==d||7==d||9==d||10==d))return 0;if(!(9!=u&&7!=u||7!=d&&8!=d))return 0;if((10==u||8==u)&&8==d)return 0;if(d==e||15==d)return 0;if(5==d)return 0;if(u==r)return 0;var f=-1!=l.indexOf(e)?l.lastIndexOf(e)-1:l.length-2;return-1!=[n,s].indexOf(l[f])&&l.slice(f+1,-1).every((function(t){return t==e}))&&14==d||15==u&&-1!=[o,s].indexOf(d)?0:-1!=a.indexOf(t)?2:u==t&&d==t?0:1}function c(i){return 1536<=i&&i<=1541||1757==i||1807==i||2274==i||3406==i||69821==i||70082<=i&&i<=70083||72250==i||72326<=i&&i<=72329||73030==i?r:13==i?0:10==i?1:0<=i&&i<=9||11<=i&&i<=12||14<=i&&i<=31||127<=i&&i<=159||173==i||1564==i||6158==i||8203==i||8206<=i&&i<=8207||8232==i||8233==i||8234<=i&&i<=8238||8288<=i&&i<=8292||8293==i||8294<=i&&i<=8303||55296<=i&&i<=57343||65279==i||65520<=i&&i<=65528||65529<=i&&i<=65531||113824<=i&&i<=113827||119155<=i&&i<=119162||917504==i||917505==i||917506<=i&&i<=917535||917632<=i&&i<=917759||918e3<=i&&i<=921599?2:768<=i&&i<=879||1155<=i&&i<=1159||1160<=i&&i<=1161||1425<=i&&i<=1469||1471==i||1473<=i&&i<=1474||1476<=i&&i<=1477||1479==i||1552<=i&&i<=1562||1611<=i&&i<=1631||1648==i||1750<=i&&i<=1756||1759<=i&&i<=1764||1767<=i&&i<=1768||1770<=i&&i<=1773||1809==i||1840<=i&&i<=1866||1958<=i&&i<=1968||2027<=i&&i<=2035||2070<=i&&i<=2073||2075<=i&&i<=2083||2085<=i&&i<=2087||2089<=i&&i<=2093||2137<=i&&i<=2139||2260<=i&&i<=2273||2275<=i&&i<=2306||2362==i||2364==i||2369<=i&&i<=2376||2381==i||2385<=i&&i<=2391||2402<=i&&i<=2403||2433==i||2492==i||2494==i||2497<=i&&i<=2500||2509==i||2519==i||2530<=i&&i<=2531||2561<=i&&i<=2562||2620==i||2625<=i&&i<=2626||2631<=i&&i<=2632||2635<=i&&i<=2637||2641==i||2672<=i&&i<=2673||2677==i||2689<=i&&i<=2690||2748==i||2753<=i&&i<=2757||2759<=i&&i<=2760||2765==i||2786<=i&&i<=2787||2810<=i&&i<=2815||2817==i||2876==i||2878==i||2879==i||2881<=i&&i<=2884||2893==i||2902==i||2903==i||2914<=i&&i<=2915||2946==i||3006==i||3008==i||3021==i||3031==i||3072==i||3134<=i&&i<=3136||3142<=i&&i<=3144||3146<=i&&i<=3149||3157<=i&&i<=3158||3170<=i&&i<=3171||3201==i||3260==i||3263==i||3266==i||3270==i||3276<=i&&i<=3277||3285<=i&&i<=3286||3298<=i&&i<=3299||3328<=i&&i<=3329||3387<=i&&i<=3388||3390==i||3393<=i&&i<=3396||3405==i||3415==i||3426<=i&&i<=3427||3530==i||3535==i||3538<=i&&i<=3540||3542==i||3551==i||3633==i||3636<=i&&i<=3642||3655<=i&&i<=3662||3761==i||3764<=i&&i<=3769||3771<=i&&i<=3772||3784<=i&&i<=3789||3864<=i&&i<=3865||3893==i||3895==i||3897==i||3953<=i&&i<=3966||3968<=i&&i<=3972||3974<=i&&i<=3975||3981<=i&&i<=3991||3993<=i&&i<=4028||4038==i||4141<=i&&i<=4144||4146<=i&&i<=4151||4153<=i&&i<=4154||4157<=i&&i<=4158||4184<=i&&i<=4185||4190<=i&&i<=4192||4209<=i&&i<=4212||4226==i||4229<=i&&i<=4230||4237==i||4253==i||4957<=i&&i<=4959||5906<=i&&i<=5908||5938<=i&&i<=5940||5970<=i&&i<=5971||6002<=i&&i<=6003||6068<=i&&i<=6069||6071<=i&&i<=6077||6086==i||6089<=i&&i<=6099||6109==i||6155<=i&&i<=6157||6277<=i&&i<=6278||6313==i||6432<=i&&i<=6434||6439<=i&&i<=6440||6450==i||6457<=i&&i<=6459||6679<=i&&i<=6680||6683==i||6742==i||6744<=i&&i<=6750||6752==i||6754==i||6757<=i&&i<=6764||6771<=i&&i<=6780||6783==i||6832<=i&&i<=6845||6846==i||6912<=i&&i<=6915||6964==i||6966<=i&&i<=6970||6972==i||6978==i||7019<=i&&i<=7027||7040<=i&&i<=7041||7074<=i&&i<=7077||7080<=i&&i<=7081||7083<=i&&i<=7085||7142==i||7144<=i&&i<=7145||7149==i||7151<=i&&i<=7153||7212<=i&&i<=7219||7222<=i&&i<=7223||7376<=i&&i<=7378||7380<=i&&i<=7392||7394<=i&&i<=7400||7405==i||7412==i||7416<=i&&i<=7417||7616<=i&&i<=7673||7675<=i&&i<=7679||8204==i||8400<=i&&i<=8412||8413<=i&&i<=8416||8417==i||8418<=i&&i<=8420||8421<=i&&i<=8432||11503<=i&&i<=11505||11647==i||11744<=i&&i<=11775||12330<=i&&i<=12333||12334<=i&&i<=12335||12441<=i&&i<=12442||42607==i||42608<=i&&i<=42610||42612<=i&&i<=42621||42654<=i&&i<=42655||42736<=i&&i<=42737||43010==i||43014==i||43019==i||43045<=i&&i<=43046||43204<=i&&i<=43205||43232<=i&&i<=43249||43302<=i&&i<=43309||43335<=i&&i<=43345||43392<=i&&i<=43394||43443==i||43446<=i&&i<=43449||43452==i||43493==i||43561<=i&&i<=43566||43569<=i&&i<=43570||43573<=i&&i<=43574||43587==i||43596==i||43644==i||43696==i||43698<=i&&i<=43700||43703<=i&&i<=43704||43710<=i&&i<=43711||43713==i||43756<=i&&i<=43757||43766==i||44005==i||44008==i||44013==i||64286==i||65024<=i&&i<=65039||65056<=i&&i<=65071||65438<=i&&i<=65439||66045==i||66272==i||66422<=i&&i<=66426||68097<=i&&i<=68099||68101<=i&&i<=68102||68108<=i&&i<=68111||68152<=i&&i<=68154||68159==i||68325<=i&&i<=68326||69633==i||69688<=i&&i<=69702||69759<=i&&i<=69761||69811<=i&&i<=69814||69817<=i&&i<=69818||69888<=i&&i<=69890||69927<=i&&i<=69931||69933<=i&&i<=69940||70003==i||70016<=i&&i<=70017||70070<=i&&i<=70078||70090<=i&&i<=70092||70191<=i&&i<=70193||70196==i||70198<=i&&i<=70199||70206==i||70367==i||70371<=i&&i<=70378||70400<=i&&i<=70401||70460==i||70462==i||70464==i||70487==i||70502<=i&&i<=70508||70512<=i&&i<=70516||70712<=i&&i<=70719||70722<=i&&i<=70724||70726==i||70832==i||70835<=i&&i<=70840||70842==i||70845==i||70847<=i&&i<=70848||70850<=i&&i<=70851||71087==i||71090<=i&&i<=71093||71100<=i&&i<=71101||71103<=i&&i<=71104||71132<=i&&i<=71133||71219<=i&&i<=71226||71229==i||71231<=i&&i<=71232||71339==i||71341==i||71344<=i&&i<=71349||71351==i||71453<=i&&i<=71455||71458<=i&&i<=71461||71463<=i&&i<=71467||72193<=i&&i<=72198||72201<=i&&i<=72202||72243<=i&&i<=72248||72251<=i&&i<=72254||72263==i||72273<=i&&i<=72278||72281<=i&&i<=72283||72330<=i&&i<=72342||72344<=i&&i<=72345||72752<=i&&i<=72758||72760<=i&&i<=72765||72767==i||72850<=i&&i<=72871||72874<=i&&i<=72880||72882<=i&&i<=72883||72885<=i&&i<=72886||73009<=i&&i<=73014||73018==i||73020<=i&&i<=73021||73023<=i&&i<=73029||73031==i||92912<=i&&i<=92916||92976<=i&&i<=92982||94095<=i&&i<=94098||113821<=i&&i<=113822||119141==i||119143<=i&&i<=119145||119150<=i&&i<=119154||119163<=i&&i<=119170||119173<=i&&i<=119179||119210<=i&&i<=119213||119362<=i&&i<=119364||121344<=i&&i<=121398||121403<=i&&i<=121452||121461==i||121476==i||121499<=i&&i<=121503||121505<=i&&i<=121519||122880<=i&&i<=122886||122888<=i&&i<=122904||122907<=i&&i<=122913||122915<=i&&i<=122916||122918<=i&&i<=122922||125136<=i&&i<=125142||125252<=i&&i<=125258||917536<=i&&i<=917631||917760<=i&&i<=917999?e:127462<=i&&i<=127487?t:2307==i||2363==i||2366<=i&&i<=2368||2377<=i&&i<=2380||2382<=i&&i<=2383||2434<=i&&i<=2435||2495<=i&&i<=2496||2503<=i&&i<=2504||2507<=i&&i<=2508||2563==i||2622<=i&&i<=2624||2691==i||2750<=i&&i<=2752||2761==i||2763<=i&&i<=2764||2818<=i&&i<=2819||2880==i||2887<=i&&i<=2888||2891<=i&&i<=2892||3007==i||3009<=i&&i<=3010||3014<=i&&i<=3016||3018<=i&&i<=3020||3073<=i&&i<=3075||3137<=i&&i<=3140||3202<=i&&i<=3203||3262==i||3264<=i&&i<=3265||3267<=i&&i<=3268||3271<=i&&i<=3272||3274<=i&&i<=3275||3330<=i&&i<=3331||3391<=i&&i<=3392||3398<=i&&i<=3400||3402<=i&&i<=3404||3458<=i&&i<=3459||3536<=i&&i<=3537||3544<=i&&i<=3550||3570<=i&&i<=3571||3635==i||3763==i||3902<=i&&i<=3903||3967==i||4145==i||4155<=i&&i<=4156||4182<=i&&i<=4183||4228==i||6070==i||6078<=i&&i<=6085||6087<=i&&i<=6088||6435<=i&&i<=6438||6441<=i&&i<=6443||6448<=i&&i<=6449||6451<=i&&i<=6456||6681<=i&&i<=6682||6741==i||6743==i||6765<=i&&i<=6770||6916==i||6965==i||6971==i||6973<=i&&i<=6977||6979<=i&&i<=6980||7042==i||7073==i||7078<=i&&i<=7079||7082==i||7143==i||7146<=i&&i<=7148||7150==i||7154<=i&&i<=7155||7204<=i&&i<=7211||7220<=i&&i<=7221||7393==i||7410<=i&&i<=7411||7415==i||43043<=i&&i<=43044||43047==i||43136<=i&&i<=43137||43188<=i&&i<=43203||43346<=i&&i<=43347||43395==i||43444<=i&&i<=43445||43450<=i&&i<=43451||43453<=i&&i<=43456||43567<=i&&i<=43568||43571<=i&&i<=43572||43597==i||43755==i||43758<=i&&i<=43759||43765==i||44003<=i&&i<=44004||44006<=i&&i<=44007||44009<=i&&i<=44010||44012==i||69632==i||69634==i||69762==i||69808<=i&&i<=69810||69815<=i&&i<=69816||69932==i||70018==i||70067<=i&&i<=70069||70079<=i&&i<=70080||70188<=i&&i<=70190||70194<=i&&i<=70195||70197==i||70368<=i&&i<=70370||70402<=i&&i<=70403||70463==i||70465<=i&&i<=70468||70471<=i&&i<=70472||70475<=i&&i<=70477||70498<=i&&i<=70499||70709<=i&&i<=70711||70720<=i&&i<=70721||70725==i||70833<=i&&i<=70834||70841==i||70843<=i&&i<=70844||70846==i||70849==i||71088<=i&&i<=71089||71096<=i&&i<=71099||71102==i||71216<=i&&i<=71218||71227<=i&&i<=71228||71230==i||71340==i||71342<=i&&i<=71343||71350==i||71456<=i&&i<=71457||71462==i||72199<=i&&i<=72200||72249==i||72279<=i&&i<=72280||72343==i||72751==i||72766==i||72873==i||72881==i||72884==i||94033<=i&&i<=94078||119142==i||119149==i?5:4352<=i&&i<=4447||43360<=i&&i<=43388?6:4448<=i&&i<=4519||55216<=i&&i<=55238?7:4520<=i&&i<=4607||55243<=i&&i<=55291?8:44032==i||44060==i||44088==i||44116==i||44144==i||44172==i||44200==i||44228==i||44256==i||44284==i||44312==i||44340==i||44368==i||44396==i||44424==i||44452==i||44480==i||44508==i||44536==i||44564==i||44592==i||44620==i||44648==i||44676==i||44704==i||44732==i||44760==i||44788==i||44816==i||44844==i||44872==i||44900==i||44928==i||44956==i||44984==i||45012==i||45040==i||45068==i||45096==i||45124==i||45152==i||45180==i||45208==i||45236==i||45264==i||45292==i||45320==i||45348==i||45376==i||45404==i||45432==i||45460==i||45488==i||45516==i||45544==i||45572==i||45600==i||45628==i||45656==i||45684==i||45712==i||45740==i||45768==i||45796==i||45824==i||45852==i||45880==i||45908==i||45936==i||45964==i||45992==i||46020==i||46048==i||46076==i||46104==i||46132==i||46160==i||46188==i||46216==i||46244==i||46272==i||46300==i||46328==i||46356==i||46384==i||46412==i||46440==i||46468==i||46496==i||46524==i||46552==i||46580==i||46608==i||46636==i||46664==i||46692==i||46720==i||46748==i||46776==i||46804==i||46832==i||46860==i||46888==i||46916==i||46944==i||46972==i||47e3==i||47028==i||47056==i||47084==i||47112==i||47140==i||47168==i||47196==i||47224==i||47252==i||47280==i||47308==i||47336==i||47364==i||47392==i||47420==i||47448==i||47476==i||47504==i||47532==i||47560==i||47588==i||47616==i||47644==i||47672==i||47700==i||47728==i||47756==i||47784==i||47812==i||47840==i||47868==i||47896==i||47924==i||47952==i||47980==i||48008==i||48036==i||48064==i||48092==i||48120==i||48148==i||48176==i||48204==i||48232==i||48260==i||48288==i||48316==i||48344==i||48372==i||48400==i||48428==i||48456==i||48484==i||48512==i||48540==i||48568==i||48596==i||48624==i||48652==i||48680==i||48708==i||48736==i||48764==i||48792==i||48820==i||48848==i||48876==i||48904==i||48932==i||48960==i||48988==i||49016==i||49044==i||49072==i||49100==i||49128==i||49156==i||49184==i||49212==i||49240==i||49268==i||49296==i||49324==i||49352==i||49380==i||49408==i||49436==i||49464==i||49492==i||49520==i||49548==i||49576==i||49604==i||49632==i||49660==i||49688==i||49716==i||49744==i||49772==i||49800==i||49828==i||49856==i||49884==i||49912==i||49940==i||49968==i||49996==i||50024==i||50052==i||50080==i||50108==i||50136==i||50164==i||50192==i||50220==i||50248==i||50276==i||50304==i||50332==i||50360==i||50388==i||50416==i||50444==i||50472==i||50500==i||50528==i||50556==i||50584==i||50612==i||50640==i||50668==i||50696==i||50724==i||50752==i||50780==i||50808==i||50836==i||50864==i||50892==i||50920==i||50948==i||50976==i||51004==i||51032==i||51060==i||51088==i||51116==i||51144==i||51172==i||51200==i||51228==i||51256==i||51284==i||51312==i||51340==i||51368==i||51396==i||51424==i||51452==i||51480==i||51508==i||51536==i||51564==i||51592==i||51620==i||51648==i||51676==i||51704==i||51732==i||51760==i||51788==i||51816==i||51844==i||51872==i||51900==i||51928==i||51956==i||51984==i||52012==i||52040==i||52068==i||52096==i||52124==i||52152==i||52180==i||52208==i||52236==i||52264==i||52292==i||52320==i||52348==i||52376==i||52404==i||52432==i||52460==i||52488==i||52516==i||52544==i||52572==i||52600==i||52628==i||52656==i||52684==i||52712==i||52740==i||52768==i||52796==i||52824==i||52852==i||52880==i||52908==i||52936==i||52964==i||52992==i||53020==i||53048==i||53076==i||53104==i||53132==i||53160==i||53188==i||53216==i||53244==i||53272==i||53300==i||53328==i||53356==i||53384==i||53412==i||53440==i||53468==i||53496==i||53524==i||53552==i||53580==i||53608==i||53636==i||53664==i||53692==i||53720==i||53748==i||53776==i||53804==i||53832==i||53860==i||53888==i||53916==i||53944==i||53972==i||54e3==i||54028==i||54056==i||54084==i||54112==i||54140==i||54168==i||54196==i||54224==i||54252==i||54280==i||54308==i||54336==i||54364==i||54392==i||54420==i||54448==i||54476==i||54504==i||54532==i||54560==i||54588==i||54616==i||54644==i||54672==i||54700==i||54728==i||54756==i||54784==i||54812==i||54840==i||54868==i||54896==i||54924==i||54952==i||54980==i||55008==i||55036==i||55064==i||55092==i||55120==i||55148==i||55176==i?9:44033<=i&&i<=44059||44061<=i&&i<=44087||44089<=i&&i<=44115||44117<=i&&i<=44143||44145<=i&&i<=44171||44173<=i&&i<=44199||44201<=i&&i<=44227||44229<=i&&i<=44255||44257<=i&&i<=44283||44285<=i&&i<=44311||44313<=i&&i<=44339||44341<=i&&i<=44367||44369<=i&&i<=44395||44397<=i&&i<=44423||44425<=i&&i<=44451||44453<=i&&i<=44479||44481<=i&&i<=44507||44509<=i&&i<=44535||44537<=i&&i<=44563||44565<=i&&i<=44591||44593<=i&&i<=44619||44621<=i&&i<=44647||44649<=i&&i<=44675||44677<=i&&i<=44703||44705<=i&&i<=44731||44733<=i&&i<=44759||44761<=i&&i<=44787||44789<=i&&i<=44815||44817<=i&&i<=44843||44845<=i&&i<=44871||44873<=i&&i<=44899||44901<=i&&i<=44927||44929<=i&&i<=44955||44957<=i&&i<=44983||44985<=i&&i<=45011||45013<=i&&i<=45039||45041<=i&&i<=45067||45069<=i&&i<=45095||45097<=i&&i<=45123||45125<=i&&i<=45151||45153<=i&&i<=45179||45181<=i&&i<=45207||45209<=i&&i<=45235||45237<=i&&i<=45263||45265<=i&&i<=45291||45293<=i&&i<=45319||45321<=i&&i<=45347||45349<=i&&i<=45375||45377<=i&&i<=45403||45405<=i&&i<=45431||45433<=i&&i<=45459||45461<=i&&i<=45487||45489<=i&&i<=45515||45517<=i&&i<=45543||45545<=i&&i<=45571||45573<=i&&i<=45599||45601<=i&&i<=45627||45629<=i&&i<=45655||45657<=i&&i<=45683||45685<=i&&i<=45711||45713<=i&&i<=45739||45741<=i&&i<=45767||45769<=i&&i<=45795||45797<=i&&i<=45823||45825<=i&&i<=45851||45853<=i&&i<=45879||45881<=i&&i<=45907||45909<=i&&i<=45935||45937<=i&&i<=45963||45965<=i&&i<=45991||45993<=i&&i<=46019||46021<=i&&i<=46047||46049<=i&&i<=46075||46077<=i&&i<=46103||46105<=i&&i<=46131||46133<=i&&i<=46159||46161<=i&&i<=46187||46189<=i&&i<=46215||46217<=i&&i<=46243||46245<=i&&i<=46271||46273<=i&&i<=46299||46301<=i&&i<=46327||46329<=i&&i<=46355||46357<=i&&i<=46383||46385<=i&&i<=46411||46413<=i&&i<=46439||46441<=i&&i<=46467||46469<=i&&i<=46495||46497<=i&&i<=46523||46525<=i&&i<=46551||46553<=i&&i<=46579||46581<=i&&i<=46607||46609<=i&&i<=46635||46637<=i&&i<=46663||46665<=i&&i<=46691||46693<=i&&i<=46719||46721<=i&&i<=46747||46749<=i&&i<=46775||46777<=i&&i<=46803||46805<=i&&i<=46831||46833<=i&&i<=46859||46861<=i&&i<=46887||46889<=i&&i<=46915||46917<=i&&i<=46943||46945<=i&&i<=46971||46973<=i&&i<=46999||47001<=i&&i<=47027||47029<=i&&i<=47055||47057<=i&&i<=47083||47085<=i&&i<=47111||47113<=i&&i<=47139||47141<=i&&i<=47167||47169<=i&&i<=47195||47197<=i&&i<=47223||47225<=i&&i<=47251||47253<=i&&i<=47279||47281<=i&&i<=47307||47309<=i&&i<=47335||47337<=i&&i<=47363||47365<=i&&i<=47391||47393<=i&&i<=47419||47421<=i&&i<=47447||47449<=i&&i<=47475||47477<=i&&i<=47503||47505<=i&&i<=47531||47533<=i&&i<=47559||47561<=i&&i<=47587||47589<=i&&i<=47615||47617<=i&&i<=47643||47645<=i&&i<=47671||47673<=i&&i<=47699||47701<=i&&i<=47727||47729<=i&&i<=47755||47757<=i&&i<=47783||47785<=i&&i<=47811||47813<=i&&i<=47839||47841<=i&&i<=47867||47869<=i&&i<=47895||47897<=i&&i<=47923||47925<=i&&i<=47951||47953<=i&&i<=47979||47981<=i&&i<=48007||48009<=i&&i<=48035||48037<=i&&i<=48063||48065<=i&&i<=48091||48093<=i&&i<=48119||48121<=i&&i<=48147||48149<=i&&i<=48175||48177<=i&&i<=48203||48205<=i&&i<=48231||48233<=i&&i<=48259||48261<=i&&i<=48287||48289<=i&&i<=48315||48317<=i&&i<=48343||48345<=i&&i<=48371||48373<=i&&i<=48399||48401<=i&&i<=48427||48429<=i&&i<=48455||48457<=i&&i<=48483||48485<=i&&i<=48511||48513<=i&&i<=48539||48541<=i&&i<=48567||48569<=i&&i<=48595||48597<=i&&i<=48623||48625<=i&&i<=48651||48653<=i&&i<=48679||48681<=i&&i<=48707||48709<=i&&i<=48735||48737<=i&&i<=48763||48765<=i&&i<=48791||48793<=i&&i<=48819||48821<=i&&i<=48847||48849<=i&&i<=48875||48877<=i&&i<=48903||48905<=i&&i<=48931||48933<=i&&i<=48959||48961<=i&&i<=48987||48989<=i&&i<=49015||49017<=i&&i<=49043||49045<=i&&i<=49071||49073<=i&&i<=49099||49101<=i&&i<=49127||49129<=i&&i<=49155||49157<=i&&i<=49183||49185<=i&&i<=49211||49213<=i&&i<=49239||49241<=i&&i<=49267||49269<=i&&i<=49295||49297<=i&&i<=49323||49325<=i&&i<=49351||49353<=i&&i<=49379||49381<=i&&i<=49407||49409<=i&&i<=49435||49437<=i&&i<=49463||49465<=i&&i<=49491||49493<=i&&i<=49519||49521<=i&&i<=49547||49549<=i&&i<=49575||49577<=i&&i<=49603||49605<=i&&i<=49631||49633<=i&&i<=49659||49661<=i&&i<=49687||49689<=i&&i<=49715||49717<=i&&i<=49743||49745<=i&&i<=49771||49773<=i&&i<=49799||49801<=i&&i<=49827||49829<=i&&i<=49855||49857<=i&&i<=49883||49885<=i&&i<=49911||49913<=i&&i<=49939||49941<=i&&i<=49967||49969<=i&&i<=49995||49997<=i&&i<=50023||50025<=i&&i<=50051||50053<=i&&i<=50079||50081<=i&&i<=50107||50109<=i&&i<=50135||50137<=i&&i<=50163||50165<=i&&i<=50191||50193<=i&&i<=50219||50221<=i&&i<=50247||50249<=i&&i<=50275||50277<=i&&i<=50303||50305<=i&&i<=50331||50333<=i&&i<=50359||50361<=i&&i<=50387||50389<=i&&i<=50415||50417<=i&&i<=50443||50445<=i&&i<=50471||50473<=i&&i<=50499||50501<=i&&i<=50527||50529<=i&&i<=50555||50557<=i&&i<=50583||50585<=i&&i<=50611||50613<=i&&i<=50639||50641<=i&&i<=50667||50669<=i&&i<=50695||50697<=i&&i<=50723||50725<=i&&i<=50751||50753<=i&&i<=50779||50781<=i&&i<=50807||50809<=i&&i<=50835||50837<=i&&i<=50863||50865<=i&&i<=50891||50893<=i&&i<=50919||50921<=i&&i<=50947||50949<=i&&i<=50975||50977<=i&&i<=51003||51005<=i&&i<=51031||51033<=i&&i<=51059||51061<=i&&i<=51087||51089<=i&&i<=51115||51117<=i&&i<=51143||51145<=i&&i<=51171||51173<=i&&i<=51199||51201<=i&&i<=51227||51229<=i&&i<=51255||51257<=i&&i<=51283||51285<=i&&i<=51311||51313<=i&&i<=51339||51341<=i&&i<=51367||51369<=i&&i<=51395||51397<=i&&i<=51423||51425<=i&&i<=51451||51453<=i&&i<=51479||51481<=i&&i<=51507||51509<=i&&i<=51535||51537<=i&&i<=51563||51565<=i&&i<=51591||51593<=i&&i<=51619||51621<=i&&i<=51647||51649<=i&&i<=51675||51677<=i&&i<=51703||51705<=i&&i<=51731||51733<=i&&i<=51759||51761<=i&&i<=51787||51789<=i&&i<=51815||51817<=i&&i<=51843||51845<=i&&i<=51871||51873<=i&&i<=51899||51901<=i&&i<=51927||51929<=i&&i<=51955||51957<=i&&i<=51983||51985<=i&&i<=52011||52013<=i&&i<=52039||52041<=i&&i<=52067||52069<=i&&i<=52095||52097<=i&&i<=52123||52125<=i&&i<=52151||52153<=i&&i<=52179||52181<=i&&i<=52207||52209<=i&&i<=52235||52237<=i&&i<=52263||52265<=i&&i<=52291||52293<=i&&i<=52319||52321<=i&&i<=52347||52349<=i&&i<=52375||52377<=i&&i<=52403||52405<=i&&i<=52431||52433<=i&&i<=52459||52461<=i&&i<=52487||52489<=i&&i<=52515||52517<=i&&i<=52543||52545<=i&&i<=52571||52573<=i&&i<=52599||52601<=i&&i<=52627||52629<=i&&i<=52655||52657<=i&&i<=52683||52685<=i&&i<=52711||52713<=i&&i<=52739||52741<=i&&i<=52767||52769<=i&&i<=52795||52797<=i&&i<=52823||52825<=i&&i<=52851||52853<=i&&i<=52879||52881<=i&&i<=52907||52909<=i&&i<=52935||52937<=i&&i<=52963||52965<=i&&i<=52991||52993<=i&&i<=53019||53021<=i&&i<=53047||53049<=i&&i<=53075||53077<=i&&i<=53103||53105<=i&&i<=53131||53133<=i&&i<=53159||53161<=i&&i<=53187||53189<=i&&i<=53215||53217<=i&&i<=53243||53245<=i&&i<=53271||53273<=i&&i<=53299||53301<=i&&i<=53327||53329<=i&&i<=53355||53357<=i&&i<=53383||53385<=i&&i<=53411||53413<=i&&i<=53439||53441<=i&&i<=53467||53469<=i&&i<=53495||53497<=i&&i<=53523||53525<=i&&i<=53551||53553<=i&&i<=53579||53581<=i&&i<=53607||53609<=i&&i<=53635||53637<=i&&i<=53663||53665<=i&&i<=53691||53693<=i&&i<=53719||53721<=i&&i<=53747||53749<=i&&i<=53775||53777<=i&&i<=53803||53805<=i&&i<=53831||53833<=i&&i<=53859||53861<=i&&i<=53887||53889<=i&&i<=53915||53917<=i&&i<=53943||53945<=i&&i<=53971||53973<=i&&i<=53999||54001<=i&&i<=54027||54029<=i&&i<=54055||54057<=i&&i<=54083||54085<=i&&i<=54111||54113<=i&&i<=54139||54141<=i&&i<=54167||54169<=i&&i<=54195||54197<=i&&i<=54223||54225<=i&&i<=54251||54253<=i&&i<=54279||54281<=i&&i<=54307||54309<=i&&i<=54335||54337<=i&&i<=54363||54365<=i&&i<=54391||54393<=i&&i<=54419||54421<=i&&i<=54447||54449<=i&&i<=54475||54477<=i&&i<=54503||54505<=i&&i<=54531||54533<=i&&i<=54559||54561<=i&&i<=54587||54589<=i&&i<=54615||54617<=i&&i<=54643||54645<=i&&i<=54671||54673<=i&&i<=54699||54701<=i&&i<=54727||54729<=i&&i<=54755||54757<=i&&i<=54783||54785<=i&&i<=54811||54813<=i&&i<=54839||54841<=i&&i<=54867||54869<=i&&i<=54895||54897<=i&&i<=54923||54925<=i&&i<=54951||54953<=i&&i<=54979||54981<=i&&i<=55007||55009<=i&&i<=55035||55037<=i&&i<=55063||55065<=i&&i<=55091||55093<=i&&i<=55119||55121<=i&&i<=55147||55149<=i&&i<=55175||55177<=i&&i<=55203?10:9757==i||9977==i||9994<=i&&i<=9997||127877==i||127938<=i&&i<=127940||127943==i||127946<=i&&i<=127948||128066<=i&&i<=128067||128070<=i&&i<=128080||128110==i||128112<=i&&i<=128120||128124==i||128129<=i&&i<=128131||128133<=i&&i<=128135||128170==i||128372<=i&&i<=128373||128378==i||128400==i||128405<=i&&i<=128406||128581<=i&&i<=128583||128587<=i&&i<=128591||128675==i||128692<=i&&i<=128694||128704==i||128716==i||129304<=i&&i<=129308||129310<=i&&i<=129311||129318==i||129328<=i&&i<=129337||129341<=i&&i<=129342||129489<=i&&i<=129501?n:127995<=i&&i<=127999?14:8205==i?15:9792==i||9794==i||9877<=i&&i<=9878||9992==i||10084==i||127752==i||127806==i||127859==i||127891==i||127908==i||127912==i||127979==i||127981==i||128139==i||128187<=i&&i<=128188||128295==i||128300==i||128488==i||128640==i||128658==i?o:128102<=i&&i<=128105?s:11}return this.nextBreak=function(e,t){if(void 0===t&&(t=0),t<0)return 0;if(t>=e.length-1)return e.length;for(var r,n,o=c(i(e,t)),s=[],l=t+1;l<e.length;l++)if(n=l-1,!(55296<=(r=e).charCodeAt(n)&&r.charCodeAt(n)<=56319&&56320<=r.charCodeAt(n+1)&&r.charCodeAt(n+1)<=57343)){var u=c(i(e,l));if(a(o,s,u))return l;s.push(u)}return e.length},this.splitGraphemes=function(e){for(var t,r=[],n=0;(t=this.nextBreak(e,n))<e.length;)r.push(e.slice(n,t)),n=t;return n<e.length&&r.push(e.slice(n)),r},this.iterateGraphemes=function(e){var t=0,r={next:function(){var r,n;return(n=this.nextBreak(e,t))<e.length?(r=e.slice(t,n),t=n,{value:r,done:!1}):t<e.length?(r=e.slice(t),t=e.length,{value:r,done:!1}):{value:void 0,done:!0}}.bind(this)};return"undefined"!=typeof Symbol&&Symbol.iterator&&(r[Symbol.iterator]=function(){return r}),r},this.countGraphemes=function(e){for(var t,r=0,n=0;(t=this.nextBreak(e,n))<e.length;)n=t,r++;return n<e.length&&r++,r},this})},42489:(e,t,r)=>{"use strict";var n=r(29415)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8127:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},38636:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(92734);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},92734:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},29151:(e,t,r)=>{"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,s=r(22213);e.exports=s.call(n,o)},48714:e=>{var t=1e3,r=60*t,n=60*r,o=24*n,s=7*o;function i(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,a){a=a||{};var c,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*s;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===u&&isFinite(e))return a.long?(c=e,(l=Math.abs(c))>=o?i(c,l,o,"day"):l>=n?i(c,l,n,"hour"):l>=r?i(c,l,r,"minute"):l>=t?i(c,l,t,"second"):c+" ms"):function(e){var s=Math.abs(e);return s>=o?Math.round(e/o)+"d":s>=n?Math.round(e/n)+"h":s>=r?Math.round(e/r)+"m":s>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},73805:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&o&&"function"==typeof o.get?o.get:null,i=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,m="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,h=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,w=String.prototype.slice,v=String.prototype.replace,b=String.prototype.toUpperCase,_=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,k=Array.prototype.slice,j=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,I=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-j(-e):j(e);if(n!==e){var o=String(n),s=w.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var M=r(32011),F=M.custom,L=H(F)?F:null;function D(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function V(e){return v.call(String(e),/"/g,""")}function B(e){return!("[object Array]"!==G(e)||T&&"object"==typeof e&&T in e)}function U(e){return!("[object RegExp]"!==G(e)||T&&"object"==typeof e&&T in e)}function H(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,a){var c=n||{};if($(c,"quoteStyle")&&"single"!==c.quoteStyle&&"double"!==c.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if($(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!$(c,"customInspect")||c.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=c.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return W(t,c);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return b?R(t,x):x}if("bigint"==typeof t){var j=String(t)+"n";return b?R(t,j):j}var P=void 0===c.depth?5:c.depth;if(void 0===o&&(o=0),o>=P&&P>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var F,z=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=C.call(Array(e.indent+1)," ")}return{base:r,prev:C.call(Array(t+1),r)}}(c,o);if(void 0===a)a=[];else if(q(a,t)>=0)return"[Circular]";function Z(t,r,n){if(r&&(a=k.call(a)).push(r),n){var s={depth:c.depth};return $(c,"quoteStyle")&&(s.quoteStyle=c.quoteStyle),e(t,s,o+1,a)}return e(t,c,o+1,a)}if("function"==typeof t&&!U(t)){var ee=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),te=X(t,Z);return"[Function"+(ee?": "+ee:" (anonymous)")+"]"+(te.length>0?" { "+C.call(te,", ")+" }":"")}if(H(t)){var re=O?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||O?re:Q(re)}if((F=t)&&"object"==typeof F&&("undefined"!=typeof HTMLElement&&F instanceof HTMLElement||"string"==typeof F.nodeName&&"function"==typeof F.getAttribute)){for(var ne="<"+_.call(String(t.nodeName)),oe=t.attributes||[],se=0;se<oe.length;se++)ne+=" "+oe[se].name+"="+D(V(oe[se].value),"double",c);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+_.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var ie=X(t,Z);return z&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ie)?"["+K(ie,z)+"]":"[ "+C.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==G(e)||T&&"object"==typeof e&&T in e)}(t)){var ae=X(t,Z);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===ae.length?"["+String(t)+"]":"{ ["+String(t)+"] "+C.call(ae,", ")+" }":"{ ["+String(t)+"] "+C.call(S.call("[cause]: "+Z(t.cause),ae),", ")+" }"}if("object"==typeof t&&h){if(L&&"function"==typeof t[L]&&M)return M(t,{depth:P-o});if("symbol"!==h&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return i&&i.call(t,(function(e,r){ce.push(Z(r,t,!0)+" => "+Z(e,t))})),J("Map",s.call(t),ce,z)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var le=[];return u&&u.call(t,(function(e){le.push(Z(e,t))})),J("Set",l.call(t),le,z)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!m||!e||"object"!=typeof e)return!1;try{return m.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==G(e)||T&&"object"==typeof e&&T in e)}(t))return Q(Z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return Q(Z(E.call(t)));if(function(e){return!("[object Boolean]"!==G(e)||T&&"object"==typeof e&&T in e)}(t))return Q(f.call(t));if(function(e){return!("[object String]"!==G(e)||T&&"object"==typeof e&&T in e)}(t))return Q(Z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==G(e)||T&&"object"==typeof e&&T in e)}(t)&&!U(t)){var ue=X(t,Z),de=I?I(t)===Object.prototype:t instanceof Object||t.constructor===Object,pe=t instanceof Object?"":"null prototype",me=!de&&T&&Object(t)===t&&T in t?w.call(G(t),8,-1):pe?"Object":"",fe=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||pe?"["+C.call(S.call([],me||[],pe||[]),": ")+"] ":"");return 0===ue.length?fe+"{}":z?fe+"{"+K(ue,z)+"}":fe+"{ "+C.call(ue,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return z.call(e,t)}function G(e){return h.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function W(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return W(w.call(e,0,t.maxStringLength),t)+n}return D(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Z),"single",t)}function Z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+b.call(t.toString(16))}function Q(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?K(r,n):C.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+C.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=B(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=$(e,o)?t(e[o],e):""}var s,i="function"==typeof P?P(e):[];if(O){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var c in e)$(e,c)&&(r&&String(Number(c))===c&&c<e.length||O&&s["$"+c]instanceof Symbol||(x.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof P)for(var l=0;l<i.length;l++)N.call(e,i[l])&&n.push("["+t(i[l])+"]: "+t(e[i[l]],e));return n}},65082:(e,t,r)=>{"use strict";var n=r(63588);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,s,i){if(i!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:o};return r.PropTypes=r,r}},69596:(e,t,r)=>{e.exports=r(65082)()},63588:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},28913:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},35980:(e,t,r)=>{"use strict";var n=r(32673),o=r(98949),s=r(28913);e.exports={formats:s,parse:o,stringify:n}},98949:(e,t,r)=>{"use strict";var n=r(4301),o=Object.prototype.hasOwnProperty,s=Array.isArray,i={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var s=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(s),l=a?s.slice(0,a.index):s,u=[];if(l){if(!r.plainObjects&&o.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var d=0;r.depth>0&&null!==(a=i.exec(s))&&d<r.depth;){if(d+=1,!r.plainObjects&&o.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+s.slice(a.index)+"]"),function(e,t,r,n){for(var o=n?t:c(t,r),s=e.length-1;s>=0;--s){var i,a=e[s];if("[]"===a&&r.parseArrays)i=[].concat(o);else{i=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(i=[])[u]=o:"__proto__"!==l&&(i[l]=o):i={0:o}}o=i}return o}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return i;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?i.charset:e.charset;return{allowDots:void 0===e.allowDots?i.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:i.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:i.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:i.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:i.comma,decoder:"function"==typeof e.decoder?e.decoder:i.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:i.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:i.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:i.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:i.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,d=t.parameterLimit===1/0?void 0:t.parameterLimit,p=u.split(t.delimiter,d),m=-1,f=t.charset;if(t.charsetSentinel)for(r=0;r<p.length;++r)0===p[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[r]?f="utf-8":"utf8=%26%2310003%3B"===p[r]&&(f="iso-8859-1"),m=r,r=p.length);for(r=0;r<p.length;++r)if(r!==m){var h,y,g=p[r],w=g.indexOf("]="),v=-1===w?g.indexOf("="):w+1;-1===v?(h=t.decoder(g,i.decoder,f,"key"),y=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,v),i.decoder,f,"key"),y=n.maybeMap(c(g.slice(v+1),t),(function(e){return t.decoder(e,i.decoder,f,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===f&&(y=a(y)),g.indexOf("[]=")>-1&&(y=s(y)?[y]:y),o.call(l,h)?l[h]=n.combine(l[h],y):l[h]=y}return l}(e,r):e,d=r.plainObjects?Object.create(null):{},p=Object.keys(u),m=0;m<p.length;++m){var f=p[m],h=l(f,u[f],r,"string"==typeof e);d=n.merge(d,h,r)}return!0===r.allowSparse?d:n.compact(d)}},32673:(e,t,r)=>{"use strict";var n=r(37318),o=r(4301),s=r(28913),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},d=Date.prototype.toISOString,p=s.default,m={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:p,formatter:s.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},f={},h=function e(t,r,s,i,a,l,d,p,h,y,g,w,v,b,_,x){for(var S,C=t,k=x,j=0,E=!1;void 0!==(k=k.get(f))&&!E;){var P=k.get(t);if(j+=1,void 0!==P){if(P===j)throw new RangeError("Cyclic object value");E=!0}void 0===k.get(f)&&(j=0)}if("function"==typeof p?C=p(r,C):C instanceof Date?C=g(C):"comma"===s&&c(C)&&(C=o.maybeMap(C,(function(e){return e instanceof Date?g(e):e}))),null===C){if(a)return d&&!b?d(r,m.encoder,_,"key",w):r;C=""}if("string"==typeof(S=C)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||o.isBuffer(C))return d?[v(b?r:d(r,m.encoder,_,"key",w))+"="+v(d(C,m.encoder,_,"value",w))]:[v(r)+"="+v(String(C))];var A,O=[];if(void 0===C)return O;if("comma"===s&&c(C))b&&d&&(C=o.maybeMap(C,d)),A=[{value:C.length>0?C.join(",")||null:void 0}];else if(c(p))A=p;else{var T=Object.keys(C);A=h?T.sort(h):T}for(var N=i&&c(C)&&1===C.length?r+"[]":r,I=0;I<A.length;++I){var R=A[I],M="object"==typeof R&&void 0!==R.value?R.value:C[R];if(!l||null!==M){var F=c(C)?"function"==typeof s?s(N,R):N:N+(y?"."+R:"["+R+"]");x.set(t,j);var L=n();L.set(f,x),u(O,e(M,F,s,i,a,l,"comma"===s&&b&&c(C)?null:d,p,h,y,g,w,v,b,_,L))}}return O};e.exports=function(e,t){var r,o=e,l=function(e){if(!e)return m;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||m.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=s.default;if(void 0!==e.format){if(!i.call(s.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=s.formatters[r],o=m.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:m.addQueryPrefix,allowDots:void 0===e.allowDots?m.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:m.charsetSentinel,delimiter:void 0===e.delimiter?m.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:m.encode,encoder:"function"==typeof e.encoder?e.encoder:m.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:m.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:m.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:m.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:m.strictNullHandling}}(t);"function"==typeof l.filter?o=(0,l.filter)("",o):c(l.filter)&&(r=l.filter);var d,p=[];if("object"!=typeof o||null===o)return"";d=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var f=a[d];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===f&&t&&t.commaRoundTrip;r||(r=Object.keys(o)),l.sort&&r.sort(l.sort);for(var g=n(),w=0;w<r.length;++w){var v=r[w];l.skipNulls&&null===o[v]||u(p,h(o[v],v,f,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var b=p.join(l.delimiter),_=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),b.length>0?_+b:""}},4301:(e,t,r)=>{"use strict";var n=r(28913),o=Object.prototype.hasOwnProperty,s=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),c=0;c<a.length;++c){var l=a[c],u=i[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:i,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(s(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,s){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||s===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=i[u]:u<2048?c+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?c+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(s(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(s(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var i=t;return s(t)&&!s(r)&&(i=a(t,n)),s(t)&&s(r)?(r.forEach((function(r,s){if(o.call(t,s)){var i=t[s];i&&"object"==typeof i&&r&&"object"==typeof r?t[s]=e(i,r,n):t.push(r)}else t[s]=r})),t):Object.keys(r).reduce((function(t,s){var i=r[s];return o.call(t,s)?t[s]=e(t[s],i,n):t[s]=i,t}),i)}}},93359:(e,t,r)=>{"use strict";var n=r(99196),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,r){var n,s={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!c.hasOwnProperty(n)&&(s[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===s[n]&&(s[n]=t[n]);return{$$typeof:o,type:e,key:l,ref:u,props:s,_owner:a.current}}t.Fragment=s,t.jsx=l,t.jsxs=l},81514:(e,t,r)=>{"use strict";e.exports=r(93359)},67195:(e,t,r)=>{"use strict";var n=r(29415),o=r(23970),s=r(42489)(),i=r(97520),a=n("%TypeError%"),c=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new a("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||c(t)!==t)throw new a("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,l=!0;if("length"in e&&i){var u=i(e,"length");u&&!u.configurable&&(n=!1),u&&!u.writable&&(l=!1)}return(n||l||!r)&&(s?o(e,"length",t,!0,!0):o(e,"length",t)),e}},37318:(e,t,r)=>{"use strict";var n=r(29415),o=r(65382),s=r(73805),i=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=o("WeakMap.prototype.get",!0),u=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),m=o("Map.prototype.set",!0),f=o("Map.prototype.has",!0),h=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new i("Side channel does not contain "+s(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return p(t,n)}else if(r)return function(e,t){var r=h(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return d(e,n)}else if(c){if(t)return f(t,n)}else if(r)return function(e,t){return!!h(e,t)}(r,n);return!1},set:function(n,o){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),u(e,n,o)):c?(t||(t=new c),m(t,n,o)):(r||(r={key:{},next:null}),function(e,t,r){var n=h(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,o))}};return n}},99196:e=>{"use strict";e.exports=window.React},91850:e=>{"use strict";e.exports=window.ReactDOM},92819:e=>{"use strict";e.exports=window.lodash},76292:e=>{"use strict";e.exports=window.moment},46530:e=>{"use strict";e.exports=window.wc.adminLayout},86020:e=>{"use strict";e.exports=window.wc.components},17844:e=>{"use strict";e.exports=window.wc.currency},75606:e=>{"use strict";e.exports=window.wc.customerEffortScore},67221:e=>{"use strict";e.exports=window.wc.data},81921:e=>{"use strict";e.exports=window.wc.date},14812:e=>{"use strict";e.exports=window.wc.experimental},73516:e=>{"use strict";e.exports=window.wc.explat},10431:e=>{"use strict";e.exports=window.wc.navigation},14599:e=>{"use strict";e.exports=window.wc.tracks},74617:e=>{"use strict";e.exports=window.wc.wcSettings},86989:e=>{"use strict";e.exports=window.wp.apiFetch},55609:e=>{"use strict";e.exports=window.wp.components},94333:e=>{"use strict";e.exports=window.wp.compose},9818:e=>{"use strict";e.exports=window.wp.data},69307:e=>{"use strict";e.exports=window.wp.element},92694:e=>{"use strict";e.exports=window.wp.hooks},22629:e=>{"use strict";e.exports=window.wp.htmlEntities},65736:e=>{"use strict";e.exports=window.wp.i18n},39630:e=>{"use strict";e.exports=window.wp.keycodes},98817:e=>{"use strict";e.exports=window.wp.plugins},70444:e=>{"use strict";e.exports=window.wp.primitives},96483:e=>{"use strict";e.exports=window.wp.url},32011:()=>{},80225:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}r.d(t,{Z:()=>o});const o=function(){for(var e,t,r=0,o="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return r[e].call(s.exports,s,s.exports,o),s.exports}o.m=r,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,r)=>(o.f[r](e,t),t)),[])),o.u=e=>"chunks/"+({5396:"payment-recommendations",6125:"shipping-recommendations",6732:"activity-panels-help",7844:"activity-panels-setup",8597:"store-alerts",8851:"activity-panels-inbox"}[e]||e)+".js?ver="+{823:"343439898374390d5f16",2274:"28e472e181e0bc5f6d1b",3758:"4e56330421fd59a71104",3796:"c13fcbcac5275d004061",5077:"880fbd759d244c64def1",5209:"89d7894c7499f4c5b145",5396:"50eac7c2e36c0b5fd0da",6125:"5b8a54d1034d04fde6cf",6262:"df5aa9cc7c39e2d9c12b",6732:"e298a7e20135dea7d98c",6990:"0b183aee176181c80f96",7844:"7574b4b55acf67a866aa",8597:"ebcc7ed5ff87aef4d412",8851:"fd996bc93c196c3bfde9",9956:"e43530a2ae5bbd3594a2"}[e],o.miniCssF=e=>"chunks/"+e+".style.css?ver="+{823:"88a79bf0b361b4f9a077",3796:"18d8de452f2a8e90aa95",5077:"4cf32095f267ef8be347",5396:"bdc7a3155fee90c13b06",6125:"16f661221a595f6c29db",6732:"08abeb3d8724447da769",8597:"1a0ef7160a89435a3a20",8851:"7ac669c717c4eb7f1a0d"}[e],o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="__wcAdmin_webpackJsonp:",o.l=(r,n,s,i)=>{if(e[r])e[r].push(n);else{var a,c;if(void 0!==s)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+s){a=d;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+s),a.src=r),e[r]=[n];var p=(t,n)=>{a.onerror=a.onload=null,clearTimeout(m);var o=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(n))),t)return t(n)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.j=5991,(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!e;)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../"})(),(()=>{if("undefined"!=typeof document){var e={5991:0};o.f.miniCss=(t,r)=>{e[t]?r.push(e[t]):0!==e[t]&&{823:1,3796:1,5077:1,5396:1,6125:1,6732:1,8597:1,8851:1}[t]&&r.push(e[t]=(e=>new Promise(((t,r)=>{var n=o.miniCssF(e),s=o.p+n;if(((e,t)=>{for(var r=document.getElementsByTagName("link"),n=0;n<r.length;n++){var o=(i=r[n]).getAttribute("data-href")||i.getAttribute("href");if("stylesheet"===i.rel&&(o===e||o===t))return i}var s=document.getElementsByTagName("style");for(n=0;n<s.length;n++){var i;if((o=(i=s[n]).getAttribute("data-href"))===e||o===t)return i}})(n,s))return t();((e,t,r,n,o)=>{var s=document.createElement("link");s.rel="stylesheet",s.type="text/css",s.onerror=s.onload=r=>{if(s.onerror=s.onload=null,"load"===r.type)n();else{var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=i,c.request=a,s.parentNode&&s.parentNode.removeChild(s),o(c)}},s.href=t,document.head.appendChild(s)})(e,s,0,t,r)})))(t).then((()=>{e[t]=0}),(r=>{throw delete e[t],r})))}}})(),(()=>{var e={5991:0};o.f.j=(t,r)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var s=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=s);var i=o.p+o.u(t),a=new Error;o.l(i,(r=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var s=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+i+")",a.name="ChunkLoadError",a.type=s,a.request=i,n[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,s,[i,a,c]=r,l=0;if(i.some((t=>0!==e[t]))){for(n in a)o.o(a,n)&&(o.m[n]=a[n]);c&&c(o)}for(t&&t(r);l<i.length;l++)s=i[l],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},r=globalThis.webpackChunk_wcAdmin_webpackJsonp=globalThis.webpackChunk_wcAdmin_webpackJsonp||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var s={};(()=>{"use strict";o.r(s);var e={};o.r(e),o.d(e,{activateInstalledPlugin:()=>Io,handleFetchError:()=>Oo,installAndActivateRecommendedPlugin:()=>Ro,loadInstalledPluginsAfterActivation:()=>No,receiveActivatingPlugin:()=>ko,receiveBlogPosts:()=>Ao,receiveInstalledPlugins:()=>Co,receiveMiscRecommendations:()=>Po,receiveRecommendedPlugins:()=>Eo,removeActivatingPlugin:()=>jo,setError:()=>To});var t={};o.r(t),o.d(t,{getActivatingPlugins:()=>Fo,getBlogPosts:()=>Vo,getBlogPostsError:()=>Bo,getInstalledPlugins:()=>Mo,getMiscRecommendations:()=>Do,getRecommendedPlugins:()=>Lo});var r={};o.r(r),o.d(r,{getBlogPosts:()=>zo,getMiscRecommendations:()=>Ho,getRecommendedPlugins:()=>Uo});const n=window.wc.remoteLogging;var i=o(75606),a=o(69307),c=o(74104),l=o.n(c),u=o(81514);const d=l()("wc-admin:client");var p=o(91978),m=o(92694),f=o(46530),h=o(35980),y=o(9818),g=o(67221);const w="woocommerce_show_marketplace_suggestions",v=({children:e})=>{const{currentUserCan:t}=(0,g.useUser)(),r=(0,y.useSelect)((e=>{const{getOption:t,hasFinishedResolution:r}=e(g.optionsStore),n=r("getOption",[w]),o="no"!==t(w);return n&&o}),[]);return t("install_plugins")&&r?(0,u.jsx)(u.Fragment,{children:e}):null};function b(e){const t=function(e){const t=(0,p.O3)("features");return t&&t[e]}(e);return Boolean(t?.is_enabled)}const _=(0,a.lazy)((()=>o.e(5396).then(o.bind(o,37062)))),x=(0,a.lazy)((()=>window.wcAdminFeatures["shipping-smart-defaults"]?o.e(6125).then(o.bind(o,21042)):o.e(6125).then(o.bind(o,69873)))),S=[({page:e,tab:t,section:r})=>"wc-settings"!==e||"checkout"!==t||r&&"main"!==r||b("reactify-classic-payments-settings")?null:(0,u.jsx)(v,{children:(0,u.jsx)(a.Suspense,{fallback:null,children:(0,u.jsx)(_,{})})}),({page:e,tab:t,section:r,zone_id:n})=>"wc-settings"!==e||"shipping"!==t||Boolean(r)||Boolean(n)?null:(0,u.jsx)(v,{children:(0,u.jsx)(a.Suspense,{fallback:null,children:(0,u.jsx)(x,{})})})],C=()=>{(0,a.useEffect)((()=>{(0,i.triggerExitPageCesSurvey)()}),[]);const e=(0,h.parse)(location.search.substring(1));let t={page:"",tab:""};void 0!==e.page&&(t=e);const r=(0,m.applyFilters)("woocommerce_admin_embedded_layout_components",S,t);return(0,u.jsx)(f.LayoutContextProvider,{value:(0,f.getLayoutContextValue)(["page"]),children:(0,u.jsx)("div",{className:"woocommerce-embedded-layout__primary",id:"woocommerce-embedded-layout__primary",children:r.map(((e,r)=>(0,u.jsx)(e,{...t},r)))})})};window.wc.notices;class k extends a.Component{render(){return(0,u.jsx)("div",{id:"woocommerce-layout__notice-list",className:"woocommerce-layout__notice-list"})}}const j=k,E=(0,a.lazy)((()=>Promise.all([o.e(5209),o.e(8597)]).then(o.bind(o,68628)))),P=({children:e,showStoreAlerts:t=!0,showNotices:r=!0})=>(0,u.jsxs)("div",{className:"woocommerce-layout__primary",id:"woocommerce-layout__primary",children:[window.wcAdminFeatures["store-alerts"]&&t&&(0,u.jsx)(a.Suspense,{fallback:null,children:(0,u.jsx)(E,{})}),r&&(0,u.jsx)(j,{}),e]});var A=o(94333),O=o(92819),T=o(55609),N=o(10431),I=o(14599),R=o(98817),M=o(65736),F=o(59550),L=o(70444);const D=(0,u.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u.jsx)(L.Path,{d:"M12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zM3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 8.75a1.5 1.5 0 01.167 2.99c-.465.052-.917.44-.917 1.01V14h1.5v-.845A3 3 0 109 10.25h1.5a1.5 1.5 0 011.5-1.5zM11.25 15v1.5h1.5V15h-1.5z"})}),V=(0,u.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u.jsx)(L.Path,{d:"M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z"})});var B=o(86020),U=o(14812);const H=()=>(0,u.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,u.jsx)("mask",{id:"mask0_2915:6733",maskUnits:"userSpaceOnUse",x:"4",y:"3",width:"16",height:"18",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.5 3.5H13.5L13.9 5.5H19.5V15.5H12.5L12.1 13.5H6.5V20.5H4.5V3.5ZM12.26 7.5L11.86 5.5H6.5V11.5H13.74L14.14 13.5H17.5V7.5H12.26Z",fill:"white"})}),(0,u.jsx)("g",{mask:"url(#mask0_2915:6733)",children:(0,u.jsx)("rect",{width:"24",height:"24",fill:"#50575E"})})]});var z=o(73909);const $={page:1,per_page:g.QUERY_DEFAULTS.pageSize,status:"unactioned",type:g.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc"};function G(e){const{getNotes:t,getNotesError:r,isResolving:n}=e(g.notesStore),{getCurrentUser:o}=e(g.userStore),s=o(),i=parseInt(s&&s.woocommerce_meta&&s.woocommerce_meta.activity_panel_inbox_last_read,10);if(!i)return null;t($);const a=Boolean(r("getNotes",[$])),c=n("getNotes",[$]);if(a||c)return null;const l=t($);return(0,z.fs)(l,i)>0}var q=o(80225);const W=({icon:e,title:t,name:r,unread:n,selected:o,isPanelOpen:s,onTabClick:i})=>{const a=(0,q.Z)("woocommerce-layout__activity-panel-tab",{"is-active":s&&o,"has-unread":n}),c=`activity-panel-tab-${r}`;return(0,u.jsxs)(T.Button,{role:"tab",className:a,"aria-selected":o,"aria-controls":`activity-panel-${r}`,id:c,"data-testid":c,onClick:()=>{i(r)},children:[e,t," ",n&&(0,u.jsx)("span",{className:"screen-reader-text",children:(0,M.__)("unread activity","woocommerce")})]},c)},Z=({tabs:e,onTabClick:t,selectedTab:r,tabOpen:n=!1})=>{const[{tabOpen:o,currentTab:s},i]=(0,a.useState)({tabOpen:n,currentTab:r});return(0,a.useEffect)((()=>{i({tabOpen:n,currentTab:r})}),[n,r]),(0,u.jsx)(T.NavigableMenu,{role:"tablist",orientation:"horizontal",className:"woocommerce-layout__activity-panel-tabs",children:e&&e.map(((e,r)=>{if(e.component){const{component:t,options:n}=e;return(0,u.jsx)(t,{...n},r)}return(0,u.jsx)(W,{index:r,isPanelOpen:o,selected:s===e.name,...e,onTabClick:()=>{const r=s!==e.name&&""!==s||!o;r&&s===e.name||(0,I.recordEvent)("activity_panel_open",{tab:e.name}),i({tabOpen:r,currentTab:e.name}),t(e,r)}},r)}))})},Q=({setupTasksComplete:e,setupCompletePercent:t})=>(0,u.jsxs)("svg",{className:"woocommerce-layout__activity-panel-tab-icon setup-progress",viewBox:"0 0 25 25",children:[(0,u.jsx)("path",{className:"setup-progress-ring",d:"M 12.476 23.237 C 18.369 23.237 23.146 18.414 23.146 12.464 C 23.146 6.512 18.369 1.687 12.476 1.687 C 6.581 1.687 1.803 6.512 1.803 12.464 C 1.803 18.414 6.581 23.237 12.476 23.237 Z"}),(0,u.jsx)("path",{className:"setup-progress-slice",transform:"matrix(-0.034188, 0, 0, 0.034134, 38.373184, -8.278505)",d:"M 522 607 A 237 237 0 0 1 759 370 L 759 607 Z",fill:e>0?"currentColor":"white"}),(0,u.jsx)("path",{className:"setup-progress-slice",transform:"matrix(-0.034188, 0, 0, -0.034134, 38.368454, 33.13131)",d:"M 522 607 A 237 237 0 0 1 759 370 L 759 607 Z",fill:t>=50?"currentColor":"white"}),(0,u.jsx)("path",{className:"setup-progress-slice",transform:"matrix(0.034188, 0, 0, -0.034134, -13.500516, 33.133827)",d:"M 522 607 A 237 237 0 0 1 759 370 L 759 607 Z",fill:t>=75?"currentColor":"white"}),(0,u.jsx)("path",{className:"setup-progress-slice",transform:"matrix(0.034188, 0, 0, 0.034134, -13.495783, -8.281025)",d:"M 522 607 A 237 237 0 0 1 759 370 L 759 607 Z",fill:"white"})]});var Y=o(83518);const J=window.wp.dom,K=["button","submit"];const X=({content:e,isPanelOpen:t,isPanelSwitching:r,currentTab:n,tab:o,closePanel:s,clearPanel:i})=>{const c="woocommerce-layout__activity-panel-wrapper",l=function(e="firstElement"){const t=(0,a.useRef)(e);return(0,a.useEffect)((()=>{t.current=e}),[e]),(0,a.useCallback)((e=>{if(!e||!1===t.current)return;if(e.contains(e.ownerDocument.activeElement))return;let r=e;if("firstElement"===t.current){const t=J.focus.tabbable.find(e)[0];t&&(r=t)}r.focus()}),[])}(),d=(0,a.useRef)(null),p=function(e){const t=(0,a.useRef)(e);(0,a.useEffect)((()=>{t.current=e}),[e]);const r=(0,a.useRef)(!1),n=(0,a.useRef)(),o=(0,a.useCallback)((()=>{clearTimeout(n.current)}),[]);(0,a.useEffect)((()=>()=>o()),[]),(0,a.useEffect)((()=>{e||o()}),[e,o]);const s=(0,a.useCallback)((e=>{const{type:t,target:n}=e;(0,O.includes)(["mouseup","touchend"],t)?r.current=!1:function(e){if(!(e instanceof window.HTMLElement))return!1;switch(e.nodeName){case"A":case"BUTTON":return!0;case"INPUT":return(0,O.includes)(K,e.type)}return!1}(n)&&(r.current=!0)}),[]),i=(0,a.useCallback)((e=>{e.persist(),r.current||(n.current=setTimeout((()=>{document.hasFocus()?"function"==typeof t.current&&t.current(e):e.preventDefault()}),0))}),[]);return{onFocus:o,onMouseDown:s,onMouseUp:s,onTouchStart:s,onTouchEnd:s,onBlur:i}}((e=>{const r=e.relatedTarget&&(e.relatedTarget.closest(".woocommerce-inbox-dismiss-confirmation_modal")||e.relatedTarget.closest(".components-snackbar__action"));t&&!r&&s()})),m=(0,a.useCallback)((e=>{d.current=e,l(e)}),[]);if(!o)return(0,u.jsx)("div",{className:c});if(!e)return null;const f=(0,q.Z)(c,{"is-open":t,"is-switching":r});return(0,u.jsx)("div",{className:f,tabIndex:0,role:"tabpanel","aria-label":o.title,onTransitionEnd:e=>{e&&"transform"===e.propertyName&&(i(),d.current&&t&&o&&l(d.current))},...p,ref:m,children:(0,u.jsx)("div",{className:"woocommerce-layout__activity-panel-content",id:"activity-panel-"+n,children:(0,u.jsx)(a.Suspense,{fallback:(0,u.jsx)(B.Spinner,{}),children:e})},"activity-panel-"+n)})};var ee=o(52458),te=o(68744),re=o(32381),ne=o(31586);const oe=()=>(0,u.jsx)("svg",{width:"16",height:"17",viewBox:"0 0 16 17",xmlns:"http://www.w3.org/2000/svg",children:(0,u.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.68822 12.625L1.5 13.8145L1.5 1.5L14.5 1.5L14.5 12.625L2.68822 12.625ZM3.31 14.125L15 14.125C15.5523 14.125 16 13.6773 16 13.125L16 1C16 0.447717 15.5523 0 15 0H1C0.447717 0 0 0.447716 0 1V15.5247C0 15.8173 0.161234 16.086 0.419354 16.2237C0.727111 16.3878 1.10601 16.3313 1.35252 16.0845L3.31 14.125ZM12 5.99997H4V4.49997H12V5.99997ZM4 9.99997H9V8.49997H4V9.99997Z",fill:"currentColor"})});var se=o(99196),ie=o(74617);const ae="__EXPERIMENTAL__WcAdminSettingsSlots",{Slot:ce}=(0,T.createSlotFill)(ae),{Fill:le}=((0,ie.getAdminLink)("site-editor.php?postType=wp_template&postId=woocommerce/woocommerce//coming-soon&canvas=edit"),(0,T.createSlotFill)(ae));var ue=o(21688);const de=(0,u.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u.jsx)(L.Path,{fillRule:"evenodd",d:"M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z",clipRule:"evenodd"})}),pe=(0,u.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u.jsx)(L.Path,{d:"M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z"})});function me(e){const{setIsModalOpen:t,disconnectURL:r}=e,[n,o]=(0,a.useState)(!1),s=()=>t(!1);return(0,u.jsxs)(T.Modal,{title:(0,M.__)("Are you sure you want to disconnect?","woocommerce"),onRequestClose:s,focusOnMount:!0,className:"woocommerce-marketplace__header-account-modal",style:{borderRadius:4},overlayClassName:"woocommerce-marketplace__header-account-modal-overlay",children:[(0,u.jsx)("p",{className:"woocommerce-marketplace__header-account-modal-text",children:(0,M.__)("Keep your store connected to WooCommerce.com to get updates, manage your subscriptions, and receive streamlined support for your extensions and themes.","woocommerce")}),(0,u.jsxs)(T.ButtonGroup,{className:"woocommerce-marketplace__header-account-modal-button-group",children:[(0,u.jsx)(T.Button,{variant:"tertiary",href:r,onClick:()=>o(!n),isBusy:n,isDestructive:!0,className:"woocommerce-marketplace__header-account-modal-button",children:(0,M.__)("Disconnect","woocommerce")}),(0,u.jsx)(T.Button,{variant:"primary",onClick:s,className:"woocommerce-marketplace__header-account-modal-button",children:(0,M.__)("Keep connected","woocommerce")})]})]})}p.SX,o(86989),window.wp.notices;const fe={notices:{}},he=(0,y.createReduxStore)("woocommerce-admin/subscription-notices",{reducer(e=fe,t){switch(t.type){case"ADD_NOTICE":return{...e,notices:{...e.notices,[t.productKey]:{productKey:t.productKey,message:t.message,status:t.status,options:t.options}}};case"REMOVE_NOTICE":const r={...e.notices};return r[t.productKey]&&delete r[t.productKey],{...e,notices:r}}return e},actions:{addNotice:(e,t,r,n)=>({type:"ADD_NOTICE",productKey:e,message:t,status:r,options:n}),removeNotice:e=>({type:"REMOVE_NOTICE",productKey:e})},selectors:{notices:e=>e?Object.values(e.notices):[],getNotice(e,t){if(e)return e.notices[t]}}});(0,y.register)(he),new Map;const ye=e=>(0,u.jsx)(T.MenuItem,{...e});function ge({page:e="wc-admin"}){var t,r;const[n,o]=(0,a.useState)(!1),[s,i]=(0,a.useState)(!1),c=(0,p.O3)("wccomHelper",{}),l=null!==(t=c?.isConnected)&&void 0!==t&&t,d=((e="wc-admin")=>{const t=(0,p.O3)("wccomHelper",{});if(!t.connectURL)return"";const r=new URL(window.location.href);return r.searchParams.set("page",e),((e,t)=>{if(!e)return e;const r=new URL(e);return r?(t.forEach((([e,t])=>{r.searchParams.set(e,t)})),r.toString()):e})(t.connectURL,[["redirect_admin_url",encodeURIComponent(r.toString())],["page",e]])})(e),m=c?.userEmail,f=null!==(r=c?.userAvatar)&&void 0!==r?r:de,h="https://woocommerce.com/my-dashboard/",y=l?h:d,g=l?(0,M.__)("Connected to WooCommerce.com","woocommerce"):(0,M.__)("Connect to WooCommerce.com","woocommerce");return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(T.DropdownMenu,{className:"woocommerce-layout__activity-panel-tab woocommerce-marketplace__user-menu",icon:!l||s?de:(0,u.jsx)("img",{src:f,alt:"",className:"woocommerce-marketplace__menu-avatar-image",onError:()=>i(!0)}),label:(0,M.__)("User options","woocommerce"),toggleProps:{className:"woocommerce-layout__activity-panel-tab",onClick:()=>(0,I.recordEvent)("header_account_click",{page:e})},popoverProps:{className:"woocommerce-layout__activity-panel-popover"},children:()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(T.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",label:g,children:[(0,u.jsx)(ye,{className:"woocommerce-marketplace__menu-item",href:y,onClick:()=>{l?(0,I.recordEvent)("header_account_view_click",{page:e}):(0,I.recordEvent)("header_account_connect_click",{page:e})},children:l?(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(F.Z,{icon:de,size:24,className:"woocommerce-marketplace__menu-icon"}),(0,u.jsx)("span",{className:"woocommerce-marketplace__main-text",children:m})]}):(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(F.Z,{icon:de,size:24,className:"woocommerce-marketplace__menu-icon"}),(0,u.jsxs)("div",{className:"woocommerce-marketplace__menu-text",children:[(0,M.__)("Connect account","woocommerce"),(0,u.jsx)("span",{className:"woocommerce-marketplace__sub-text",children:(0,M.__)("Get product updates, manage your subscriptions from your store admin, and get streamlined support.","woocommerce")})]})]})}),"wc-addons"===e&&!l&&(0,u.jsxs)(ye,{href:h,onClick:()=>(0,I.recordEvent)("header_account_view_click",{page:e}),children:[(0,u.jsx)(F.Z,{icon:V,size:24,className:"woocommerce-marketplace__menu-icon"}),(0,M.__)("WooCommerce.com account","woocommerce")]})]}),l&&(0,u.jsx)(T.MenuGroup,{className:"woocommerce-layout__homescreen-display-options",children:(0,u.jsxs)(ye,{onClick:()=>{(0,I.recordEvent)("header_account_disconnect_click",{page:e}),o(!0)},children:[(0,u.jsx)(F.Z,{icon:pe,size:24,className:"woocommerce-marketplace__menu-icon"}),(0,M.__)("Disconnect account","woocommerce")]})})]})}),n&&(0,u.jsx)(me,{setIsModalOpen:o,disconnectURL:d})]})}const we=(0,a.lazy)((()=>Promise.all([o.e(6990),o.e(6732)]).then(o.bind(o,30655)))),ve=(0,a.lazy)((()=>Promise.all([o.e(3758),o.e(8851)]).then(o.bind(o,60201)))),be=(0,a.lazy)((()=>Promise.all([o.e(5209),o.e(2274),o.e(3796),o.e(7844)]).then(o.bind(o,59325)))),_e=({isEmbedded:e,query:t})=>{const r="wc-admin"===t.page&&!t.path,[n,o]=(0,a.useState)(""),[s,c]=(0,a.useState)(!1),[l,d]=(0,a.useState)(!1),[m,h]=(0,a.useState)(!1),{fills:w}=(0,U.useSlot)(re.$Q),v=Boolean(w?.length),{comingSoon:b}=(({enabled:e}={enabled:!0})=>{const{isLoading:t,launchYourStoreEnabled:r,comingSoon:n,storePagesOnly:o,privateLink:s,shareKey:i}=(0,y.useSelect)((t=>{if(!e)return{isLoading:!1,comingSoon:null,storePagesOnly:null,privateLink:null,shareKey:null,launchYourStoreEnabled:null};const{hasFinishedResolution:r,getOption:n}=t(g.optionsStore);return{isLoading:!(r("getOption",["woocommerce_coming_soon"])||r("getOption",["woocommerce_store_pages_only"])||r("getOption",["woocommerce_private_link"])||r("getOption",["woocommerce_share_key"])),comingSoon:n("woocommerce_coming_soon"),storePagesOnly:n("woocommerce_store_pages_only"),privateLink:n("woocommerce_private_link"),shareKey:n("woocommerce_share_key"),launchYourStoreEnabled:window.wcAdminFeatures["launch-your-store"]}}),[e]);return{isLoading:t,comingSoon:n,storePagesOnly:o,privateLink:s,shareKey:i,launchYourStoreEnabled:r}})({enabled:r}),_=()=>{c(!0),d(!1)},x=()=>{l||(c(!1),h(!1),o(""))};(0,a.useEffect)((()=>(0,N.addHistoryListener)((()=>{_(),x()}))),[]);const S=(0,f.useExtendLayout)("activity-panel"),C=(0,a.useCallback)(((e,r)=>{let n={};if("wc-admin"===t.page&&"appearance"===t.task){const{getTaskLists:t}=e(g.onboardingStore),o=t().reduce(((e,t)=>[...e,...t.tasks]),[]).find((e=>"appearance"===e.id));n={set_notice:r("woocommerce_demo_store_notice")?"Y":"N",create_homepage:!0===o?.additionalData?.hasHomepage?"Y":"N",upload_logo:o?.additionalData?.themeMods?.custom_logo?"Y":"N"}}return n}),[t.page,t.task]),k=(0,a.useCallback)(((e,t,r)=>{const n=(0,ee.sg)(e),o=!!t&&(0,ee.xX)(e,n)>0,s=!!t&&(0,te.Vh)(e),i=!!t&&(0,ee.ae)(e);return r>0||o||s||i||v}),[v]),{requestingTaskListOptions:j,setupTaskListComplete:E,setupTaskListHidden:P,setupTasksCount:A,setupTasksCompleteCount:T,thingsToDoNextCount:R}=(0,ue.ph)(),{hasUnreadNotes:L,hasAbbreviatedNotifications:z,previewSiteBtnTrackData:$}=(0,y.useSelect)((e=>{const{getOption:t}=e(g.optionsStore);return{hasUnreadNotes:G(e),hasAbbreviatedNotifications:k(e,P,R),previewSiteBtnTrackData:C(e,t)}}),[k,R,P,C]),{showCesModal:q}=(0,y.useDispatch)(i.STORE_KEY),{currentUserCan:W}=(0,g.useUser)(),J=()=>{const[e]=function(e){var t;const r=e?.startsWith("/")?1:0,n=e?.endsWith("/")?-1:void 0;return null!==(t=e?.slice(r,n)?.split("/"))&&void 0!==t?t:[]}(t.path);return"add-product"===e||"product"===e},K=()=>{const t=(0,ne.DP)(window.location.search);return e&&/post-new\.php$/.test(window.location.pathname)&&"product"===t?.post_type},se=()=>t.task&&!t.path&&(!0===j||!1===P&&!1===E),ie=()=>{const n={name:"activity",title:(0,M.__)("Activity","woocommerce"),icon:(0,u.jsx)(H,{}),unread:L||z,visible:(e||!r)&&!se()&&!J()&&W("manage_woocommerce")},s={name:"feedback",title:(0,M.__)("Feedback","woocommerce"),icon:(0,u.jsx)(oe,{}),onClick:()=>{o("feedback"),d(!0),q({action:"product_feedback",title:(0,M.__)("How's your experience with the product editor?","woocommerce"),firstQuestion:(0,M.__)("The product editing screen is easy to use","woocommerce"),secondQuestion:(0,M.__)("The product editing screen's functionality meets my needs","woocommerce")},{onRecordScore:()=>{o(""),d(!1)},onCloseModal:()=>{o(""),d(!1)}},{type:"snackbar",icon:(0,u.jsx)("span",{children:"π"})})},visible:K()},i={name:"setup",title:(0,M.__)("Finish setup","woocommerce"),icon:(0,u.jsx)(Q,{setupTasksComplete:T,setupCompletePercent:Math.ceil(T/A*100)}),visible:W("manage_woocommerce")&&!j&&!P&&!E&&!r&&!J()},a={name:"help",icon:(0,u.jsx)(F.Z,{icon:D}),visible:W("manage_woocommerce")&&(r&&!e||se())},c={component:Y.T,visible:W("manage_woocommerce")&&!e&&r&&!se()},l={component:()=>(0,u.jsx)(ge,{page:"wc-admin"}),visible:r};return[n,s,i,{name:"previewSite",title:(0,M.__)("Preview site","woocommerce"),icon:(0,u.jsx)(F.Z,{icon:V}),visible:r&&"appearance"===t.task,onClick:()=>(window.open((0,p.O3)("siteUrl")),(0,I.recordEvent)("wcadmin_tasklist_previewsite",$),null)},{name:"previewStore",title:"yes"===b&&(0,M.__)("Preview store","woocommerce")||(0,M.__)("View store","woocommerce"),visible:r&&"appearance"!==t.task,onClick:()=>(window.open((0,p.O3)("shopUrl")),(0,I.recordEvent)("wcadmin_previewstore_click"),null)},c,l,a].filter((e=>e.visible))},ae=ie(),ce=(0,O.uniqueId)("activity-panel-header_");return(0,u.jsx)(f.LayoutContextProvider,{value:S,children:(0,u.jsxs)("div",{children:[(0,u.jsx)(B.H,{id:ce,className:"screen-reader-text",children:(0,M.__)("Store Activity","woocommerce")}),(0,u.jsxs)(B.Section,{component:"aside",id:"woocommerce-activity-panel",className:"woocommerce-layout__activity-panel","aria-labelledby":ce,children:[(0,u.jsx)(Z,{tabs:ae,tabOpen:l,selectedTab:n,onTabClick:(e,t)=>{e.onClick?e.onClick():(({name:e},t)=>{const r=e!==n&&""!==n&&t&&l;s||(o(e),d(t),h(r))})(e,t)}}),(0,u.jsx)(X,{currentTab:!0,isPanelOpen:l,isPanelSwitching:m,tab:(0,O.find)(ie(),{name:n}),content:(e=>{const{task:r}=t;switch(e){case"activity":return(0,u.jsx)(ve,{hasAbbreviatedNotifications:z,thingsToDoNextCount:R});case"help":return(0,u.jsx)(we,{taskName:r});case"setup":return(0,u.jsx)(be,{query:t});default:return null}})(n),closePanel:()=>_(),clearPanel:()=>x()})]})]})})};(0,R.registerPlugin)("activity-panel-header-item",{render:()=>(0,u.jsx)(f.WooHeaderItem,{order:20,children:({isEmbedded:e,query:t})=>window.wcAdminFeatures["activity-panels"]?(0,u.jsx)(_e,{isEmbedded:e,query:t}):null}),scope:"woocommerce-admin"});var xe=o(22629),Se=o(88872);function Ce(){return window.innerHeight+window.scrollY>=document.body.scrollHeight}function ke(){const[e,t]=(0,a.useState)(!1),[r,n]=(0,a.useState)(Ce()),o=(0,a.useRef)(null);return(0,a.useEffect)((()=>{const e=()=>{t(window.pageYOffset>20),n(Ce())},r=()=>{o.current=window.requestAnimationFrame(e)};return window.addEventListener("scroll",r),window.addEventListener("resize",r),()=>{window.removeEventListener("scroll",r),window.removeEventListener("resize",r),window.cancelAnimationFrame(o.current)}}),[]),{isScrolled:e,atBottom:r,atTop:!e}}const je=e=>{let t;return t=e.length>2&&Array.isArray(e[1])&&["admin.php?page=wc-settings","admin.php?page=wc-reports","admin.php?page=wc-status"].includes(e[1][0])?e[1][1]:e[e.length-1],t},Ee=({isEmbedded:e,query:t,showReminderBar:r,sections:n,children:o,leftAlign:s=!0})=>{const{isScrolled:i}=ke(),c=(0,a.useRef)(null),l=(0,U.useSlot)(f.WC_HEADER_PAGE_TITLE_SLOT_NAME),d=Boolean(l?.fills?.length),p=(({headerElement:e,headerItemSlot:t})=>{const r=(0,a.useRef)(null),n=(0,a.useCallback)((()=>{r.current&&clearTimeout(r.current),r.current=setTimeout((function(){const t=document.querySelector("#wpbody");t&&e.current&&(t.style.marginTop=`${e.current.clientHeight}px`)}),200)}),[e]);return(0,a.useLayoutEffect)((()=>(n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n);const e=document.querySelector("#wpbody");e&&(e.style.marginTop="")})),[t?.fills,n]),n})({headerElement:c,headerItemSlot:(0,U.useSlot)(f.WC_HEADER_SLOT_NAME)});return(0,u.jsxs)("div",{className:(0,q.Z)("woocommerce-layout__header",{"is-scrolled":i}),ref:c,children:[r&&(0,u.jsx)(Se.J,{updateBodyMargin:p,taskListId:"setup"}),(0,u.jsxs)("div",{className:"woocommerce-layout__header-wrapper",children:[(0,u.jsx)(f.WooHeaderNavigationItem.Slot,{fillProps:{isEmbedded:e,query:t}}),(0,u.jsx)(U.Text,{className:(0,q.Z)("woocommerce-layout__header-heading",{"woocommerce-layout__header-left-align":s}),as:"h1",children:(0,xe.decodeEntities)(d?(0,u.jsx)(f.WooHeaderPageTitle.Slot,{fillProps:{isEmbedded:e,query:t}}):je(n))}),o,(0,u.jsx)(f.WooHeaderItem.Slot,{fillProps:{isEmbedded:e,query:t}})]})]})},Pe=({sections:e,query:t})=>{const r=Boolean(b("reactify-classic-payments-settings")&&"wc-settings"===t?.page&&"checkout"===t?.tab),n=Boolean((0,ue.vD)("setup")&&!r);return(0,u.jsx)(Ee,{isEmbedded:!0,query:t,sections:e,showReminderBar:n})};var Ae=o(69596),Oe=o.n(Ae),Te=Object.defineProperty,Ne={};((e,t)=>{for(var r in t)Te(e,r,{get:t[r],enumerable:!0})})(Ne,{assign:()=>dt,colors:()=>ct,createStringInterpolator:()=>ot,skipAnimation:()=>lt,to:()=>st,willAdvance:()=>ut});var Ie=Qe(),Re=e=>Ge(e,Ie),Me=Qe();Re.write=e=>Ge(e,Me);var Fe=Qe();Re.onStart=e=>Ge(e,Fe);var Le=Qe();Re.onFrame=e=>Ge(e,Le);var De=Qe();Re.onFinish=e=>Ge(e,De);var Ve=[];Re.setTimeout=(e,t)=>{const r=Re.now()+t,n=()=>{const e=Ve.findIndex((e=>e.cancel==n));~e&&Ve.splice(e,1),ze-=~e?1:0},o={time:r,handler:e,cancel:n};return Ve.splice(Be(r),0,o),ze+=1,qe(),o};var Be=e=>~(~Ve.findIndex((t=>t.time>e))||~Ve.length);Re.cancel=e=>{Fe.delete(e),Le.delete(e),De.delete(e),Ie.delete(e),Me.delete(e)},Re.sync=e=>{$e=!0,Re.batchedUpdates(e),$e=!1},Re.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,Re.onStart(r)}return n.handler=e,n.cancel=()=>{Fe.delete(r),t=null},n};var Ue="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Re.use=e=>Ue=e,Re.now="undefined"!=typeof performance?()=>performance.now():Date.now,Re.batchedUpdates=e=>e(),Re.catch=console.error,Re.frameLoop="always",Re.advance=()=>{"demand"!==Re.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ze()};var He=-1,ze=0,$e=!1;function Ge(e,t){$e?(t.delete(e),e(0)):(t.add(e),qe())}function qe(){He<0&&(He=0,"demand"!==Re.frameLoop&&Ue(We))}function We(){~He&&(Ue(We),Re.batchedUpdates(Ze))}function Ze(){const e=He;He=Re.now();const t=Be(He);t&&(Ye(Ve.splice(0,t),(e=>e.handler())),ze-=t),ze?(Fe.flush(),Ie.flush(e?Math.min(64,He-e):16.667),Le.flush(),Me.flush(),De.flush()):He=-1}function Qe(){let e=new Set,t=e;return{add(r){ze+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(ze-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,ze-=t.size,Ye(t,(t=>t(r)&&e.add(t))),ze+=e.size,t=e)}}}function Ye(e,t){e.forEach((e=>{try{t(e)}catch(e){Re.catch(e)}}))}function Je(){}var Ke={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Xe(e,t){if(Ke.arr(e)){if(!Ke.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}var et=(e,t)=>e.forEach(t);function tt(e,t,r){if(Ke.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}var rt=e=>Ke.und(e)?[]:Ke.arr(e)?e:[e];function nt(e,t){if(e.size){const r=Array.from(e);e.clear(),et(r,t)}}var ot,st,it=(e,...t)=>nt(e,(e=>e(...t))),at=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),ct=null,lt=!1,ut=Je,dt=e=>{e.to&&(st=e.to),e.now&&(Re.now=e.now),void 0!==e.colors&&(ct=e.colors),null!=e.skipAnimation&&(lt=e.skipAnimation),e.createStringInterpolator&&(ot=e.createStringInterpolator),e.requestAnimationFrame&&Re.use(e.requestAnimationFrame),e.batchedUpdates&&(Re.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ut=e.willAdvance),e.frameLoop&&(Re.frameLoop=e.frameLoop)},pt=new Set,mt=[],ft=[],ht=0,yt={get idle(){return!pt.size&&!mt.length},start(e){ht>e.priority?(pt.add(e),Re.onStart(gt)):(wt(e),Re(bt))},advance:bt,sort(e){if(ht)Re.onFrame((()=>yt.sort(e)));else{const t=mt.indexOf(e);~t&&(mt.splice(t,1),vt(e))}},clear(){mt=[],pt.clear()}};function gt(){pt.forEach(wt),pt.clear(),Re(bt)}function wt(e){mt.includes(e)||vt(e)}function vt(e){mt.splice(function(t){const r=t.findIndex((t=>t.priority>e.priority));return r<0?t.length:r}(mt),0,e)}function bt(e){const t=ft;for(let r=0;r<mt.length;r++){const n=mt[r];ht=n.priority,n.idle||(ut(n),n.advance(e),n.idle||t.push(n))}return ht=0,(ft=mt).length=0,(mt=t).length>0}var _t="[-+]?\\d*\\.?\\d+",xt=_t+"%";function St(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var Ct=new RegExp("rgb"+St(_t,_t,_t)),kt=new RegExp("rgba"+St(_t,_t,_t,_t)),jt=new RegExp("hsl"+St(_t,xt,xt)),Et=new RegExp("hsla"+St(_t,xt,xt,_t)),Pt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,At=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ot=/^#([0-9a-fA-F]{6})$/,Tt=/^#([0-9a-fA-F]{8})$/;function Nt(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function It(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,o=2*r-n,s=Nt(o,n,e+1/3),i=Nt(o,n,e),a=Nt(o,n,e-1/3);return Math.round(255*s)<<24|Math.round(255*i)<<16|Math.round(255*a)<<8}function Rt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Mt(e){return(parseFloat(e)%360+360)%360/360}function Ft(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Lt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Dt(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ot.exec(e))?parseInt(t[1]+"ff",16)>>>0:ct&&void 0!==ct[e]?ct[e]:(t=Ct.exec(e))?(Rt(t[1])<<24|Rt(t[2])<<16|Rt(t[3])<<8|255)>>>0:(t=kt.exec(e))?(Rt(t[1])<<24|Rt(t[2])<<16|Rt(t[3])<<8|Ft(t[4]))>>>0:(t=Pt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Tt.exec(e))?parseInt(t[1],16)>>>0:(t=At.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=jt.exec(e))?(255|It(Mt(t[1]),Lt(t[2]),Lt(t[3])))>>>0:(t=Et.exec(e))?(It(Mt(t[1]),Lt(t[2]),Lt(t[3]))|Ft(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}var Vt=(e,t,r)=>{if(Ke.fun(e))return e;if(Ke.arr(e))return Vt({range:e,output:t,extrapolate:r});if(Ke.str(e.output[0]))return ot(e);const n=e,o=n.output,s=n.range||[0,1],i=n.extrapolateLeft||n.extrapolate||"extend",a=n.extrapolateRight||n.extrapolate||"extend",c=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,s);return function(e,t,r,n,o,s,i,a,c){let l=c?c(e):e;if(l<t){if("identity"===i)return l;"clamp"===i&&(l=t)}if(l>r){if("identity"===a)return l;"clamp"===a&&(l=r)}return n===o?n:t===r?e<=t?n:o:(t===-1/0?l=-l:r===1/0?l-=t:l=(l-t)/(r-t),l=s(l),n===-1/0?l=-l:o===1/0?l+=n:l=l*(o-n)+n,l)}(e,s[t],s[t+1],o[t],o[t+1],c,i,a,n.map)}},Bt=1.70158,Ut=1.525*Bt,Ht=Bt+1,zt=2*Math.PI/3,$t=2*Math.PI/4.5,Gt=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},qt={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Ht*e*e*e-Bt*e*e,easeOutBack:e=>1+Ht*Math.pow(e-1,3)+Bt*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ut)/2:(Math.pow(2*e-2,2)*((Ut+1)*(2*e-2)+Ut)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*zt),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*zt)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*$t)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*$t)/2+1,easeInBounce:e=>1-Gt(1-e),easeOutBounce:Gt,easeInOutBounce:e=>e<.5?(1-Gt(1-2*e))/2:(1+Gt(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e;return o=("end"===t?Math.floor(n):Math.ceil(n))/e,Math.min(Math.max(o,0),1);var o}},Wt=Symbol.for("FluidValue.get"),Zt=Symbol.for("FluidValue.observers"),Qt=e=>Boolean(e&&e[Wt]),Yt=e=>e&&e[Wt]?e[Wt]():e,Jt=e=>e[Zt]||null;function Kt(e,t){const r=e[Zt];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var Xt=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");er(this,e)}},er=(e,t)=>or(e,Wt,t);function tr(e,t){if(e[Wt]){let r=e[Zt];r||or(e,Zt,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function rr(e,t){const r=e[Zt];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Zt]=null,e.observerRemoved&&e.observerRemoved(n,t)}}var nr,or=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),sr=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ir=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ar=new RegExp(`(${sr.source})(%|[a-z]+)`,"i"),cr=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,lr=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ur=e=>{const[t,r]=dr(e);if(!t||at())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){return window.getComputedStyle(document.documentElement).getPropertyValue(r)||e}return r&&lr.test(r)?ur(r):r||e},dr=e=>{const t=lr.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]},pr=(e,t,r,n,o)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${o})`,mr=e=>{nr||(nr=ct?new RegExp(`(${Object.keys(ct).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Yt(e).replace(lr,ur).replace(ir,Dt).replace(nr,Dt))),r=t.map((e=>e.match(sr).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Vt({...e,output:t})));return e=>{const r=!ar.test(t[0])&&t.find((e=>ar.test(e)))?.replace(sr,"");let o=0;return t[0].replace(sr,(()=>`${n[o++](e)}${r||""}`)).replace(cr,pr)}},fr="react-spring: ",hr=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${fr}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},yr=hr(console.warn),gr=hr(console.warn);function wr(e){return Ke.str(e)&&("#"==e[0]||/\d/.test(e)||!at()&&lr.test(e)||e in(ct||{}))}var vr=at()?se.useEffect:se.useLayoutEffect;function br(){const e=(0,se.useState)()[1],t=(()=>{const e=(0,se.useRef)(!1);return vr((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}var _r=e=>(0,se.useEffect)(e,xr),xr=[],Sr=Symbol.for("Animated:node"),Cr=e=>e&&e[Sr],kr=(e,t)=>{return r=e,n=Sr,o=t,Object.defineProperty(r,n,{value:o,writable:!0,configurable:!0});var r,n,o},jr=e=>e&&e[Sr]&&e[Sr].getPayload(),Er=class{constructor(){kr(this,this)}getPayload(){return this.payload||[]}},Pr=class extends Er{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,Ke.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Pr(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ke.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Ke.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},Ar=class extends Pr{constructor(e){super(0),this._string=null,this._toString=Vt({output:[e,e]})}static create(e){return new Ar(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Ke.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=Vt({output:[this.getValue(),e]})),this._value=0,super.reset()}},Or={dependencies:null},Tr=class extends Er{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return tt(this.source,((r,n)=>{var o;(o=r)&&o[Sr]===o?t[n]=r.getValue(e):Qt(r)?t[n]=Yt(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&et(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return tt(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Or.dependencies&&Qt(e)&&Or.dependencies.add(e);const t=jr(e);t&&et(t,(e=>this.add(e)))}},Nr=class extends Tr{constructor(e){super(e)}static create(e){return new Nr(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(Ir)),!0)}};function Ir(e){return(wr(e)?Ar:Pr).create(e)}function Rr(e){const t=Cr(e);return t?t.constructor:Ke.arr(e)?Nr:wr(e)?Ar:Pr}var Mr=(e,t)=>{const r=!Ke.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,se.forwardRef)(((n,o)=>{const s=(0,se.useRef)(null),i=r&&(0,se.useCallback)((e=>{s.current=function(e,t){return e&&(Ke.fun(e)?e(t):e.current=t),t}(o,e)}),[o]),[a,c]=function(e,t){const r=new Set;return Or.dependencies=r,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new Tr(e),Or.dependencies=null,[e,r]}(n,t),l=br(),u=()=>{const e=s.current;r&&!e||!1===(!!e&&t.applyAnimatedValues(e,a.getValue(!0)))&&l()},d=new Fr(u,c),p=(0,se.useRef)();vr((()=>(p.current=d,et(c,(e=>tr(e,d))),()=>{p.current&&(et(p.current.deps,(e=>rr(e,p.current))),Re.cancel(p.current.update))}))),(0,se.useEffect)(u,[]),_r((()=>()=>{const e=p.current;et(e.deps,(t=>rr(t,e)))}));const m=t.getComponentProps(a.getValue());return se.createElement(e,{...m,ref:i})}))},Fr=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Re.write(this.update)}},Lr=Symbol.for("AnimatedComponent"),Dr=e=>Ke.str(e)?e:e&&Ke.str(e.displayName)?e.displayName:Ke.fun(e)&&e.name||null;function Vr(e,...t){return Ke.fun(e)?e(...t):e}var Br=(e,t)=>!0===e||!!(t&&e&&(Ke.fun(e)?e(t):rt(e).includes(t))),Ur=(e,t)=>Ke.obj(e)?t&&e[t]:e,Hr=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,zr=e=>e,$r=(e,t=zr)=>{let r=Gr;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const o of r){const r=t(e[o],o);Ke.und(r)||(n[o]=r)}return n},Gr=["config","onProps","onStart","onChange","onPause","onResume","onRest"],qr={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Wr(e){const t=function(e){const t={};let r=0;if(tt(e,((e,n)=>{qr[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return tt(e,((e,n)=>n in t||(r[n]=e))),r}return{...e}}function Zr(e){return e=Yt(e),Ke.arr(e)?e.map(Zr):wr(e)?Ne.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Qr(e){return Ke.fun(e)||Ke.arr(e)&&Ke.obj(e[0])}function Yr(e,t){e.ref?.delete(e),t?.delete(e)}var Jr={tension:170,friction:26,mass:1,damping:1,easing:qt.linear,clamp:!1},Kr=class{constructor(){this.velocity=0,Object.assign(this,Jr)}};function Xr(e,t){if(Ke.und(t.decay)){const r=!Ke.und(t.tension)||!Ke.und(t.friction);!r&&Ke.und(t.frequency)&&Ke.und(t.damping)&&Ke.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}var en=[],tn=class{constructor(){this.changed=!1,this.values=en,this.toValues=null,this.fromValues=en,this.config=new Kr,this.immediate=!1}};function rn(e,{key:t,props:r,defaultProps:n,state:o,actions:s}){return new Promise(((i,a)=>{let c,l,u=Br(r.cancel??n?.cancel,t);if(u)m();else{Ke.und(r.pause)||(o.paused=Br(r.pause,t));let e=n?.pause;!0!==e&&(e=o.paused||Br(e,t)),c=Vr(r.delay||0,t),e?(o.resumeQueue.add(p),s.pause()):(s.resume(),p())}function d(){o.resumeQueue.add(p),o.timeouts.delete(l),l.cancel(),c=l.time-Re.now()}function p(){c>0&&!Ne.skipAnimation?(o.delayed=!0,l=Re.setTimeout(m,c),o.pauseQueue.add(d),o.timeouts.add(l)):m()}function m(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(d),o.timeouts.delete(l),e<=(o.cancelId||0)&&(u=!0);try{s.start({...r,callId:e,cancel:u},i)}catch(e){a(e)}}}))}var nn=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?an(e.get()):t.every((e=>e.noop))?on(e.get()):sn(e.get(),t.every((e=>e.finished))),on=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),sn=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),an=e=>({value:e,cancelled:!0,finished:!1});function cn(e,t,r,n){const{callId:o,parentId:s,onRest:i}=t,{asyncTo:a,promise:c}=r;return s||e!==a||t.reset?r.promise=(async()=>{r.asyncId=o,r.asyncTo=e;const l=$r(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const p=new Promise(((e,t)=>(u=e,d=t))),m=e=>{const t=o<=(r.cancelId||0)&&an(n)||o!==r.asyncId&&sn(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const s=new un,i=new dn;return(async()=>{if(Ne.skipAnimation)throw ln(r),i.result=sn(n,!1),d(i),i;m(s);const a=Ke.obj(e)?{...e}:{...t,to:e};a.parentId=o,tt(l,((e,t)=>{Ke.und(a[t])&&(a[t]=e)}));const c=await n.start(a);return m(s),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),c})()};let h;if(Ne.skipAnimation)return ln(r),sn(n,!1);try{let t;t=Ke.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,n.stop.bind(n))),await Promise.all([t.then(u),p]),h=sn(n.get(),!0,!1)}catch(e){if(e instanceof un)h=e.result;else{if(!(e instanceof dn))throw e;h=e.result}}finally{o==r.asyncId&&(r.asyncId=s,r.asyncTo=s?a:void 0,r.promise=s?c:void 0)}return Ke.fun(i)&&Re.batchedUpdates((()=>{i(h,n,n.item)})),h})():c}function ln(e,t){nt(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var un=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},dn=class extends Error{constructor(){super("SkipAnimationSignal")}},pn=e=>e instanceof fn,mn=1,fn=class extends Xt{constructor(){super(...arguments),this.id=mn++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Cr(this);return e&&e.getValue()}to(...e){return Ne.to(this,e)}interpolate(...e){return yr(`${fr}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ne.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Kt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||yt.sort(this),Kt(this,{type:"priority",parent:this,priority:e})}},hn=Symbol.for("SpringPhase"),yn=e=>(1&e[hn])>0,gn=e=>(2&e[hn])>0,wn=e=>(4&e[hn])>0,vn=(e,t)=>t?e[hn]|=3:e[hn]&=-3,bn=(e,t)=>t?e[hn]|=4:e[hn]&=-5,_n=class extends fn{constructor(e,t){if(super(),this.animation=new tn,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Ke.und(e)||!Ke.und(t)){const r=Ke.obj(e)?{...e}:{...t,from:e};Ke.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(gn(this)||this._state.asyncTo)||wn(this)}get goal(){return Yt(this.animation.to)}get velocity(){const e=Cr(this);return e instanceof Pr?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return yn(this)}get isAnimating(){return gn(this)}get isPaused(){return wn(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{toValues:o}=n;const{config:s}=n,i=jr(n.to);!i&&Qt(n.to)&&(o=rt(Yt(n.to))),n.values.forEach(((a,c)=>{if(a.done)return;const l=a.constructor==Ar?1:i?i[c].lastPosition:o[c];let u=n.immediate,d=l;if(!u){if(d=a.lastPosition,s.tension<=0)return void(a.done=!0);let t=a.elapsedTime+=e;const r=n.fromValues[c],o=null!=a.v0?a.v0:a.v0=Ke.arr(s.velocity)?s.velocity[c]:s.velocity;let i;const p=s.precision||(r==l?.005:Math.min(1,.001*Math.abs(l-r)));if(Ke.und(s.duration))if(s.decay){const e=!0===s.decay?.998:s.decay,n=Math.exp(-(1-e)*t);d=r+o/(1-e)*(1-n),u=Math.abs(a.lastPosition-d)<=p,i=o*n}else{i=null==a.lastVelocity?o:a.lastVelocity;const t=s.restVelocity||p/10,n=s.clamp?0:s.bounce,c=!Ke.und(n),m=r==l?a.v0>0:r<l;let f,h=!1;const y=1,g=Math.ceil(e/y);for(let e=0;e<g&&(f=Math.abs(i)>t,f||(u=Math.abs(l-d)<=p,!u));++e)c&&(h=d==l||d>l==m,h&&(i=-i*n,d=l)),i+=(1e-6*-s.tension*(d-l)+.001*-s.friction*i)/s.mass*y,d+=i*y}else{let n=1;s.duration>0&&(this._memoizedDuration!==s.duration&&(this._memoizedDuration=s.duration,a.durationProgress>0&&(a.elapsedTime=s.duration*a.durationProgress,t=a.elapsedTime+=e)),n=(s.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,a.durationProgress=n),d=r+s.easing(n)*(l-r),i=(d-a.lastPosition)/e,u=1==n}a.lastVelocity=i,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}i&&!i[c].done&&(u=!1),u?a.done=!0:t=!1,a.setValue(d,s.round)&&(r=!0)}));const a=Cr(this),c=a.getValue();if(t){const e=Yt(n.to);c===e&&!r||s.decay?r&&s.decay&&this._onChange(c):(a.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(c)}set(e){return Re.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(gn(this)){const{to:e,config:t}=this.animation;Re.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return Ke.und(e)?(r=this.queue||[],this.queue=[]):r=[Ke.obj(e)?e:{...t,to:e}],Promise.all(r.map((e=>this._update(e)))).then((e=>nn(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),ln(this._state,e&&this._lastCallId),Re.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:n}=e;r=Ke.obj(r)?r[t]:r,(null==r||Qr(r))&&(r=void 0),n=Ke.obj(n)?n[t]:n,null==n&&(n=void 0);const o={to:r,from:n};return yn(this)||(e.reverse&&([r,n]=[n,r]),n=Yt(n),Ke.und(n)?Cr(this)||this._set(r):this._set(n)),o}_update({...e},t){const{key:r,defaultProps:n}=this;e.default&&Object.assign(n,$r(e,((e,t)=>/^on/.test(t)?Ur(e,r):e))),En(this,e,"onProps"),Pn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return rn(++this._lastCallId,{key:r,props:e,defaultProps:n,state:s,actions:{pause:()=>{wn(this)||(bn(this,!0),it(s.pauseQueue),Pn(this,"onPause",sn(this,xn(this,this.animation.to)),this))},resume:()=>{wn(this)&&(bn(this,!1),gn(this)&&this._resume(),it(s.resumeQueue),Pn(this,"onResume",sn(this,xn(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((r=>{if(e.loop&&r.finished&&(!t||!r.noop)){const t=Sn(e);if(t)return this._update(t,!0)}return r}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(an(this));const n=!Ke.und(e.to),o=!Ke.und(e.from);if(n||o){if(!(t.callId>this._lastToId))return r(an(this));this._lastToId=t.callId}const{key:s,defaultProps:i,animation:a}=this,{to:c,from:l}=a;let{to:u=c,from:d=l}=e;!o||n||t.default&&!Ke.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const p=!Xe(d,l);p&&(a.from=d),d=Yt(d);const m=!Xe(u,c);m&&this._focus(u);const f=Qr(t.to),{config:h}=a,{decay:y,velocity:g}=h;(n||o)&&(h.velocity=0),t.config&&!f&&function(e,t,r){r&&(Xr(r={...r},t),t={...r,...t}),Xr(e,t),Object.assign(e,t);for(const t in Jr)null==e[t]&&(e[t]=Jr[t]);let{frequency:n,damping:o}=e;const{mass:s}=e;Ke.und(n)||(n<.01&&(n=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/n,2)*s,e.friction=4*Math.PI*o*s/n)}(h,Vr(t.config,s),t.config!==i.config?Vr(i.config,s):void 0);let w=Cr(this);if(!w||Ke.und(u))return r(sn(this,!0));const v=Ke.und(t.reset)?o&&!t.default:!Ke.und(d)&&Br(t.reset,s),b=v?d:this.get(),_=Zr(u),x=Ke.num(_)||Ke.arr(_)||wr(_),S=!f&&(!x||Br(i.immediate||t.immediate,s));if(m){const e=Rr(u);if(e!==w.constructor){if(!S)throw Error(`Cannot animate between ${w.constructor.name} and ${e.name}, as the "to" prop suggests`);w=this._set(_)}}const C=w.constructor;let k=Qt(u),j=!1;if(!k){const e=v||!yn(this)&&p;(m||e)&&(j=Xe(Zr(b),_),k=!j),(Xe(a.immediate,S)||S)&&Xe(h.decay,y)&&Xe(h.velocity,g)||(k=!0)}if(j&&gn(this)&&(a.changed&&!v?k=!0:k||this._stop(c)),!f&&((k||Qt(c))&&(a.values=w.getPayload(),a.toValues=Qt(u)?null:C==Ar?[1]:rt(_)),a.immediate!=S&&(a.immediate=S,S||v||this._set(c)),k)){const{onRest:e}=a;et(jn,(e=>En(this,t,e)));const n=sn(this,xn(this,c));it(this._pendingCalls,n),this._pendingCalls.add(r),a.changed&&Re.batchedUpdates((()=>{a.changed=!v,e?.(n,this),v?Vr(i.onRest,n):a.onStart?.(n,this)}))}v&&this._set(b),f?r(cn(t.to,t,this._state,this)):k?this._start():gn(this)&&!m?this._pendingCalls.add(r):r(on(b))}_focus(e){const t=this.animation;e!==t.to&&(Jt(this)&&this._detach(),t.to=e,Jt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Qt(t)&&(tr(t,this),pn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Qt(e)&&rr(e,this)}_set(e,t=!0){const r=Yt(e);if(!Ke.und(r)){const e=Cr(this);if(!e||!Xe(r,e.getValue())){const n=Rr(r);e&&e.constructor==n?e.setValue(r):kr(this,n.create(r)),e&&Re.batchedUpdates((()=>{this._onChange(r,t)}))}}return Cr(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Pn(this,"onStart",sn(this,xn(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Vr(this.animation.onChange,e,this)),Vr(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Cr(this).reset(Yt(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),gn(this)||(vn(this,!0),wn(this)||this._resume())}_resume(){Ne.skipAnimation?this.finish():yt.start(this)}_stop(e,t){if(gn(this)){vn(this,!1);const r=this.animation;et(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Kt(this,{type:"idle",parent:this});const n=t?an(this.get()):sn(this.get(),xn(this,e??r.to));it(this._pendingCalls,n),r.changed&&(r.changed=!1,Pn(this,"onRest",n,this))}}};function xn(e,t){const r=Zr(t);return Xe(Zr(e.get()),r)}function Sn(e,t=e.loop,r=e.to){const n=Vr(t);if(n){const o=!0!==n&&Wr(n),s=(o||e).reverse,i=!o||o.reset;return Cn({...e,loop:t,default:!1,pause:void 0,to:!s||Qr(r)?r:void 0,from:i?e.from:void 0,reset:i,...o})}}function Cn(e){const{to:t,from:r}=e=Wr(e),n=new Set;return Ke.obj(t)&&kn(t,n),Ke.obj(r)&&kn(r,n),e.keys=n.size?Array.from(n):null,e}function kn(e,t){tt(e,((e,r)=>null!=e&&t.add(r)))}var jn=["onStart","onRest","onChange","onPause","onResume"];function En(e,t,r){e.animation[r]=t[r]!==Hr(t,r)?Ur(t[r],e.key):void 0}function Pn(e,t,...r){e.animation[t]?.(...r),e.defaultProps[t]?.(...r)}var An=["onStart","onChange","onRest"],On=1,Tn=class{constructor(e,t){this.id=On++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];Ke.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Cn(e)),this}start(e){let{queue:t}=this;return e?t=rt(e).map(Cn):this.queue=[],this._flush?this._flush(this,t):(Fn(this,t),function(e,t){return Promise.all(t.map((t=>Nn(e,t)))).then((t=>nn(e,t)))}(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;et(rt(t),(t=>r[t].stop(!!e)))}else ln(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Ke.und(e))this.start({pause:!0});else{const t=this.springs;et(rt(e),(e=>t[e].pause()))}return this}resume(e){if(Ke.und(e))this.start({pause:!1});else{const t=this.springs;et(rt(e),(e=>t[e].resume()))}return this}each(e){tt(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,o=this._changed.size>0;(n&&!this._started||o&&!this._started)&&(this._started=!0,nt(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const s=!n&&this._started,i=o||s&&r.size?this.get():null;o&&t.size&&nt(t,(([e,t])=>{t.value=i,e(t,this,this._item)})),s&&(this._started=!1,nt(r,(([e,t])=>{t.value=i,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Re.onFrame(this._onFrame)}};async function Nn(e,t,r){const{keys:n,to:o,from:s,loop:i,onRest:a,onResolve:c}=t,l=Ke.obj(t.default)&&t.default;i&&(t.loop=!1),!1===o&&(t.to=null),!1===s&&(t.from=null);const u=Ke.arr(o)||Ke.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):et(An,(r=>{const n=t[r];if(Ke.fun(n)){const o=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=o.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):o.set(n,{value:null,finished:e||!1,cancelled:t||!1})},l&&(l[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,it(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),m=!0===t.cancel||!0===Hr(t,"cancel");(u||m&&d.asyncId)&&p.push(rn(++e._lastAsyncId,{props:t,state:d,actions:{pause:Je,resume:Je,start(t,r){m?(ln(d,e._lastAsyncId),r(an(e))):(t.onRest=a,r(cn(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=nn(e,await Promise.all(p));if(i&&f.finished&&(!r||!f.noop)){const r=Sn(t,i,o);if(r)return Fn(e,[r]),Nn(e,r,!0)}return c&&Re.batchedUpdates((()=>c(f,e,e.item))),f}function In(e,t){const r={...e.springs};return t&&et(rt(t),(e=>{Ke.und(e.keys)&&(e=Cn(e)),Ke.obj(e.to)||(e={...e,to:void 0}),Mn(r,e,(e=>Rn(e)))})),function(e,t){tt(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,tr(t,e))}))}(e,r),r}function Rn(e,t){const r=new _n;return r.key=e,t&&tr(r,t),r}function Mn(e,t,r){t.keys&&et(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function Fn(e,t){et(t,(t=>{Mn(e.springs,t,(t=>Rn(t,e)))}))}var Ln,Dn,Vn=({children:e,...t})=>{const r=(0,se.useContext)(Bn),n=t.pause||!!r.pause,o=t.immediate||!!r.immediate;t=function(e,t){const[r]=(0,se.useState)((()=>({inputs:t,result:e()}))),n=(0,se.useRef)(),o=n.current;let s=o;return s?Boolean(t&&s.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,s.inputs))||(s={inputs:t,result:e()}):s=r,(0,se.useEffect)((()=>{n.current=s,o==r&&(r.inputs=r.result=void 0)}),[s]),s.result}((()=>({pause:n,immediate:o})),[n,o]);const{Provider:s}=Bn;return se.createElement(s,{value:t},e)},Bn=(Ln=Vn,Dn={},Object.assign(Ln,se.createContext(Dn)),Ln.Provider._context=Ln,Ln.Consumer._context=Ln,Ln);Vn.Provider=Bn.Provider,Vn.Consumer=Bn.Consumer;var Un=()=>{const e=[],t=function(t){gr(`${fr}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const n=[];return et(e,((e,o)=>{if(Ke.und(t))n.push(e.start());else{const s=r(t,e,o);s&&n.push(e.start(s))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return et(e,(e=>e.pause(...arguments))),this},t.resume=function(){return et(e,(e=>e.resume(...arguments))),this},t.set=function(t){et(e,((e,r)=>{const n=Ke.fun(t)?t(r,e):t;n&&e.set(n)}))},t.start=function(t){const r=[];return et(e,((e,n)=>{if(Ke.und(t))r.push(e.start());else{const o=this._getProps(t,e,n);o&&r.push(e.start(o))}})),r},t.stop=function(){return et(e,(e=>e.stop(...arguments))),this},t.update=function(t){return et(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return Ke.fun(e)?e(r,t):e};return t._getProps=r,t};var Hn=1,zn=class extends fn{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=Vt(...t);const r=this._get(),n=Rr(r);kr(this,n.create(r))}advance(e){const t=this._get();Xe(t,this.get())||(Cr(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Gn(this._active)&&qn(this)}_get(){const e=Ke.arr(this.source)?this.source.map(Yt):rt(Yt(this.source));return this.calc(...e)}_start(){this.idle&&!Gn(this._active)&&(this.idle=!1,et(jr(this),(e=>{e.done=!1})),Ne.skipAnimation?(Re.batchedUpdates((()=>this.advance())),qn(this)):yt.start(this))}_attach(){let e=1;et(rt(this.source),(t=>{Qt(t)&&tr(t,this),pn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){et(rt(this.source),(e=>{Qt(e)&&rr(e,this)})),this._active.clear(),qn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=rt(this.source).reduce(((e,t)=>Math.max(e,(pn(t)?t.priority:0)+1)),0))}};function $n(e){return!1!==e.idle}function Gn(e){return!e.size||Array.from(e).every($n)}function qn(e){e.idle||(e.idle=!0,et(jr(e),(e=>{e.done=!0})),Kt(e,{type:"idle",parent:e}))}Ne.assign({createStringInterpolator:mr,to:(e,t)=>new zn(e,t)}),yt.advance;var Wn=o(91850),Zn=/^--/;function Qn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Zn.test(e)||Jn.hasOwnProperty(e)&&Jn[e]?(""+t).trim():t+"px"}var Yn={},Jn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Kn=["Webkit","Ms","Moz","O"];Jn=Object.keys(Jn).reduce(((e,t)=>(Kn.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),Jn);var Xn=/^(matrix|translate|scale|rotate|skew)/,eo=/^(translate)/,to=/^(rotate|skew)/,ro=(e,t)=>Ke.num(e)&&0!==e?e+t:e,no=(e,t)=>Ke.arr(e)?e.every((e=>no(e,t))):Ke.num(e)?e===t:parseFloat(e)===t,oo=class extends Tr{constructor({x:e,y:t,z:r,...n}){const o=[],s=[];(e||t||r)&&(o.push([e||0,t||0,r||0]),s.push((e=>[`translate3d(${e.map((e=>ro(e,"px"))).join(",")})`,no(e,0)]))),tt(n,((e,t)=>{if("transform"===t)o.push([e||""]),s.push((e=>[e,""===e]));else if(Xn.test(t)){if(delete n[t],Ke.und(e))return;const r=eo.test(t)?"px":to.test(t)?"deg":"";o.push(rt(e)),s.push("rotate3d"===t?([e,t,n,o])=>[`rotate3d(${e},${t},${n},${ro(o,r)})`,no(o,0)]:e=>[`${t}(${e.map((e=>ro(e,r))).join(",")})`,no(e,t.startsWith("scale")?1:0)])}})),o.length&&(n.transform=new so(o,s)),super(n)}},so=class extends Xt{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return et(this.inputs,((r,n)=>{const o=Yt(r[0]),[s,i]=this.transforms[n](Ke.arr(o)?o:r.map(Yt));e+=" "+s,t=t&&i})),t?"none":e}observerAdded(e){1==e&&et(this.inputs,(e=>et(e,(e=>Qt(e)&&tr(e,this)))))}observerRemoved(e){0==e&&et(this.inputs,(e=>et(e,(e=>Qt(e)&&rr(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Kt(this,e)}};Ne.assign({batchedUpdates:Wn.unstable_batchedUpdates,createStringInterpolator:mr,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var io=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:r=e=>new Tr(e),getComponentProps:n=e=>e}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},s=e=>{const t=Dr(e)||"Anonymous";return(e=Ke.str(e)?s[e]||(s[e]=Mr(e,o)):e[Lr]||(e[Lr]=Mr(e,o))).displayName=`Animated(${t})`,e};return tt(e,((t,r)=>{Ke.arr(e)&&(r=Dr(t)),s[r]=s(t)})),{animated:s}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:n,children:o,scrollTop:s,scrollLeft:i,viewBox:a,...c}=t,l=Object.values(c),u=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:Yn[t]||(Yn[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in n)if(n.hasOwnProperty(t)){const r=Qn(t,n[t]);Zn.test(t)?e.style.setProperty(t,r):e.style[t]=r}u.forEach(((t,r)=>{e.setAttribute(t,l[r])})),void 0!==s&&(e.scrollTop=s),void 0!==i&&(e.scrollLeft=i),void 0!==a&&e.setAttribute("viewBox",a)},createAnimatedStyle:e=>new oo(e),getComponentProps:({scrollTop:e,scrollLeft:t,...r})=>r}),ao=io.animated;const co=window.wp.a11y,lo=window.wp.warning;var uo=o.n(lo);const po=(0,a.forwardRef)((function({className:e,children:t,spokenMessage:r=t,politeness:n="polite",actions:o=[],onRemove:s=O.noop,icon:i=null,explicitDismiss:c=!1,onDismiss:l=null,__unstableHTML:d=!1},p){function m(e){e&&e.preventDefault&&e.preventDefault(),l(),s()}l=l||O.noop,function(e,t){const r="string"==typeof e?e:(0,a.renderToString)(e);(0,a.useEffect)((()=>{r&&(0,co.speak)(r,t)}),[r,t])}(r,n),(0,a.useEffect)((()=>{const e=setTimeout((()=>{c||(l(),s())}),1e4);return()=>clearTimeout(e)}),[c,l,s]);const f=(0,q.Z)(e,"components-snackbar",{"components-snackbar-explicit-dismiss":!!c});o&&o.length>1&&(!0===globalThis.SCRIPT_DEBUG&&uo()("Snackbar can only have 1 action, use Notice if your message require many messages"),o=[o[0]]);const h=(0,q.Z)("components-snackbar__content",{"components-snackbar__content-with-icon":!!i});return!0===d&&(t=(0,u.jsx)(a.RawHTML,{children:t})),(0,u.jsx)("div",{ref:p,className:f,onClick:c?O.noop:m,tabIndex:"0",role:c?"":"button",onKeyPress:c?O.noop:m,"aria-label":c?"":(0,M.__)("Dismiss this notice","woocommerce"),children:(0,u.jsxs)("div",{className:h,children:[i&&(0,u.jsx)("div",{className:"components-snackbar__icon",children:i}),t,o.map((({label:e,onClick:t,url:r},n)=>(0,u.jsx)(T.Button,{href:r,isTertiary:!0,onClick:e=>function(e,t){e.stopPropagation(),s(),t&&t(e)}(e,t),className:"components-snackbar__action",children:e},n))),c&&(0,u.jsx)("span",{role:"button","aria-label":"Dismiss this notice",tabIndex:"0",className:"components-snackbar__dismiss-button",onClick:m,onKeyPress:m,children:"β"})]})})})),mo=function({notices:e,className:t,children:r,onRemove:n=O.noop,onRemove2:o=O.noop}){const s=(0,A.useReducedMotion)(),[i]=(0,a.useState)((()=>new WeakMap)),c=function(e,t,r){const n=Ke.fun(t)&&t,{reset:o,sort:s,trail:i=0,expires:a=!0,exitBeforeEnter:c=!1,onDestroyed:l,ref:u,config:d}=n?n():t,p=(0,se.useMemo)((()=>n||3==arguments.length?Un():void 0),[]),m=rt(e),f=[],h=(0,se.useRef)(null),y=o?null:h.current;vr((()=>{h.current=f})),_r((()=>(et(f,(e=>{p?.add(e.ctrl),e.ctrl.ref=p})),()=>{et(h.current,(e=>{e.expired&&clearTimeout(e.expirationId),Yr(e.ctrl,p),e.ctrl.stop(!0)}))})));const g=function(e,{key:t,keys:r=t},n){if(null===r){const t=new Set;return e.map((e=>{const r=n&&n.find((r=>r.item===e&&"leave"!==r.phase&&!t.has(r)));return r?(t.add(r),r.key):Hn++}))}return Ke.und(r)?e:Ke.fun(r)?e.map(r):rt(r)}(m,n?n():t,y),w=o&&h.current||[];vr((()=>et(w,(({ctrl:e,item:t,key:r})=>{Yr(e,p),Vr(l,t,r)}))));const v=[];if(y&&et(y,((e,t)=>{e.expired?(clearTimeout(e.expirationId),w.push(e)):~(t=v[t]=g.indexOf(e.key))&&(f[t]=e)})),et(m,((e,t)=>{f[t]||(f[t]={key:g[t],item:e,phase:"mount",ctrl:new Tn},f[t].ctrl.item=e)})),v.length){let e=-1;const{leave:r}=n?n():t;et(v,((t,n)=>{const o=y[n];~t?(e=f.indexOf(o),f[e]={...o,item:m[t]}):r&&f.splice(++e,0,o)}))}Ke.fun(s)&&f.sort(((e,t)=>s(e.item,t.item)));let b=-i;const _=br(),x=$r(t),S=new Map,C=(0,se.useRef)(new Map),k=(0,se.useRef)(!1);et(f,((e,r)=>{const o=e.key,s=e.phase,l=n?n():t;let p,m;const f=Vr(l.delay||0,o);if("mount"==s)p=l.enter,m="enter";else{const e=g.indexOf(o)<0;if("leave"!=s)if(e)p=l.leave,m="leave";else{if(!(p=l.update))return;m="update"}else{if(e)return;p=l.enter,m="enter"}}if(p=Vr(p,e.item,r),p=Ke.obj(p)?Wr(p):{to:p},!p.config){const t=d||x.config;p.config=Vr(t,e.item,r,m)}b+=i;const w={...x,delay:f+b,ref:u,immediate:l.immediate,reset:!1,...p};if("enter"==m&&Ke.und(w.from)){const o=n?n():t,s=Ke.und(o.initial)||y?o.from:o.initial;w.from=Vr(s,e.item,r)}const{onResolve:v}=w;w.onResolve=e=>{Vr(v,e);const t=h.current,r=t.find((e=>e.key===o));if(r&&(!e.cancelled||"update"==r.phase)&&r.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==r.phase){const t=Vr(a,r.item);if(!1!==t){const n=!0===t?0:t;if(r.expired=!0,!e&&n>0)return void(n<=2147483647&&(r.expirationId=setTimeout(_,n)))}}e&&t.some((e=>e.expired))&&(C.current.delete(r),c&&(k.current=!0),_())}};const j=In(e.ctrl,w);"leave"===m&&c?C.current.set(e,{phase:m,springs:j,payload:w}):S.set(e,{phase:m,springs:j,payload:w})}));const j=(0,se.useContext)(Vn),E=function(e){const t=(0,se.useRef)();return(0,se.useEffect)((()=>{t.current=e})),t.current}(j),P=j!==E&&function(e){for(const t in e)return!0;return!1}(j);vr((()=>{P&&et(f,(e=>{e.ctrl.start({default:j})}))}),[j]),et(S,((e,t)=>{if(C.current.size){const e=f.findIndex((e=>e.key===t.key));f.splice(e,1)}})),vr((()=>{et(C.current.size?C.current:S,(({phase:e,payload:t},r)=>{const{ctrl:n}=r;r.phase=e,p?.add(n),P&&"enter"==e&&n.start({default:j}),t&&(function(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}(n,t.ref),!n.ref&&!p||k.current?(n.start(t),k.current&&(k.current=!1)):n.update(t))}))}),o?void 0:r);const A=e=>se.createElement(se.Fragment,null,f.map(((t,r)=>{const{springs:n}=S.get(t)||t.ctrl,o=e({...n},t.item,t,r);return o&&o.type?se.createElement(o.type,{...o.props,key:Ke.str(t.key)||Ke.num(t.key)?t.key:t.ctrl.id,ref:o.ref}):o})));return p?[A,p]:A}(e,{keys:e=>e.id,from:{opacity:0,height:0},enter:e=>async t=>await t({opacity:1,height:i.get(e).offsetHeight}),leave:()=>async e=>{await e({opacity:0}),await e({height:0})},immediate:s});t=(0,q.Z)("components-snackbar-list",t);const l=e=>()=>{n(e.id),o(e.id)};return(0,u.jsxs)("div",{className:t,children:[r,c(((e,t)=>(0,u.jsx)(ao.div,{style:e,children:(0,u.jsx)("div",{className:"components-snackbar-list__notice-container",ref:e=>e&&i.set(t,e),children:(0,u.jsx)(po,{...(0,O.omit)(t,["content"]),onRemove:l(t),children:t.content})})})))]})},fo="woocommerce_admin_transient_notices_queue";function ho(e){const{removeNotice:t}=(0,y.useDispatch)("core/notices"),{createNotice:r,removeNotice:n}=(0,y.useDispatch)("core/notices2"),{updateOptions:o}=(0,y.useDispatch)(g.optionsStore),{currentUser:s={},notices:i=[],notices2:c=[],noticesQueue:l={}}=(0,y.useSelect)((e=>({currentUser:e(g.userStore).getCurrentUser(),notices:e("core/notices").getNotices(),notices2:e("core/notices2").getNotices(),noticesQueue:e(g.optionsStore).getOption(fo)})));(0,a.useEffect)((()=>{Object.values(l).filter((e=>e.user_id===s.id||!e.user_id)).forEach((e=>{const t=(0,m.applyFilters)("woocommerce_admin_queued_notice_filter",e);r(t.status,t.content,{onDismiss:()=>{(e=>{const t={...l};delete t[e],o({[fo]:t})})(t.id)},...t.options||{}})}))}),[]);const{className:d}=e,p=(0,q.Z)("woocommerce-transient-notices","components-notices__snackbar",d),h=i.concat(c);return(0,u.jsx)(f.WooFooterItem,{children:(0,u.jsx)(mo,{notices:h,className:p,onRemove:t,onRemove2:n})})}ho.propTypes={className:Oe().string,notices:Oe().array};const yo=()=>{const e=(0,U.useSlot)(f.WC_FOOTER_SLOT_NAME),t=Boolean(e?.fills?.length),{atBottom:r}=ke();return t?(0,u.jsx)("div",{className:(0,q.Z)("woocommerce-layout__footer",{"at-bottom":r}),children:(0,u.jsx)(f.WooFooterItem.Slot,{})}):null},go=(0,p.O3)("dataEndpoints"),wo=(0,A.compose)((0,p.O3)("preloadOptions")?(0,g.withOptionsHydration)({...(0,p.O3)("preloadOptions")}):O.identity,(0,g.withPluginsHydration)({...(0,p.O3)("plugins",{}),jetpackStatus:go&&go.jetpackStatus||!1}))((()=>{const e=(0,p.O3)("embedBreadcrumbs",[]);var t;t={breadcrumbs:e},(0,a.useEffect)((()=>{if(!t.path)return;const e=`woocommerce-admin-page_${"/"===(r=t.path)?"_home":r.replace(/:[a-zA-Z?]+/g,(function(e){return(t=e,t.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))).replace(":","");var t})).replace(/\//g,"_")}`;var r;return document.body.classList.add(e),()=>{document.body.classList.remove(e)}}),[t.path]),(0,a.useEffect)((()=>{const e=document.location.pathname+document.location.search;(0,I.recordPageView)(e,{is_embedded:!0})}),[]);const r=(0,N.getQuery)();return(0,u.jsx)(f.LayoutContextProvider,{value:(0,f.getLayoutContextValue)(["page"]),children:(0,u.jsxs)(T.SlotFillProvider,{children:[(0,u.jsxs)("div",{className:"woocommerce-layout",children:[(0,u.jsx)(Pe,{sections:(0,O.isFunction)(e)?e({}):e,query:r}),(0,u.jsx)(ho,{}),(0,u.jsx)(yo,{}),(0,u.jsx)(i.CustomerEffortScoreModalContainer,{})]}),(0,u.jsx)(R.PluginArea,{scope:"woocommerce-admin"})]})})})),vo=(0,u.jsx)(L.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,u.jsx)(L.Path,{d:"M10.5 4v4h3V4H15v4h1.5a1 1 0 011 1v4l-3 4v2a1 1 0 01-1 1h-3a1 1 0 01-1-1v-2l-3-4V9a1 1 0 011-1H9V4h1.5zm.5 12.5v2h2v-2l3-4v-3H8v3l3 4z"})}),bo="wc/marketing",_o="/wc-admin/marketing",xo=window.wp.dataControls,So={SET_INSTALLED_PLUGINS:"SET_INSTALLED_PLUGINS",SET_ACTIVATING_PLUGIN:"SET_ACTIVATING_PLUGIN",REMOVE_ACTIVATING_PLUGIN:"REMOVE_ACTIVATING_PLUGIN",SET_RECOMMENDED_PLUGINS:"SET_RECOMMENDED_PLUGINS",INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN:"INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN",SET_BLOG_POSTS:"SET_BLOG_POSTS",SET_MISC_RECOMMENDATIONS:"SET_MISC_RECOMMENDATIONS",SET_ERROR:"SET_ERROR"};function Co(e){return{type:So.SET_INSTALLED_PLUGINS,plugins:e}}function ko(e){return{type:So.SET_ACTIVATING_PLUGIN,pluginSlug:e}}function jo(e){return{type:So.REMOVE_ACTIVATING_PLUGIN,pluginSlug:e}}function Eo(e,t){return{type:So.SET_RECOMMENDED_PLUGINS,data:{plugins:e,category:t}}}function Po(e){return{type:So.SET_MISC_RECOMMENDATIONS,data:{miscRecommendations:e}}}function Ao(e,t){return{type:So.SET_BLOG_POSTS,data:{posts:e,category:t}}}function Oo(e,t){const{createNotice:r}=(0,y.dispatch)("core/notices");r("error",t),console.log(e)}function To(e,t){return{type:So.SET_ERROR,category:e,error:t}}function*No(e){try{const t=yield(0,xo.apiFetch)({path:`${_o}/overview/installed-plugins`});if(!t)throw new Error;yield Co(t),yield jo(e)}catch(e){yield Oo(e,(0,M.__)("There was an error loading installed extensions.","woocommerce"))}}function*Io(e){const{createNotice:t}=(0,y.dispatch)("core/notices");yield ko(e);try{if(!(yield(0,xo.apiFetch)({path:_o+"/overview/activate-plugin",method:"POST",data:{plugin:e}})))throw new Error;yield t("success",(0,M.__)("The extension has been successfully activated.","woocommerce")),yield No(e)}catch(t){yield Oo(t,(0,M.__)("There was an error trying to activate the extension.","woocommerce")),yield jo(e)}return!0}function*Ro(e,t){return{type:So.INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN,data:{pluginSlug:e,category:t}}}function Mo(e){return e.installedPlugins}function Fo(e){return e.activatingPlugins}function Lo(e,t){return e.recommendedPlugins[t]||[]}function Do(e){return e.miscRecommendations}function Vo(e,t){return e.blogPosts[t]||[]}function Bo(e,t){return e.errors.blogPosts&&e.errors.blogPosts[t]}function*Uo(e){try{const t=yield e?`&category=${e}`:"",r=yield(0,xo.apiFetch)({path:`${_o}/recommended?per_page=50${t}`});if(!r)throw new Error;yield Eo(r,e)}catch(e){yield Oo(e,(0,M.__)("There was an error loading recommended extensions.","woocommerce"))}}function*Ho(){try{const e=yield(0,xo.apiFetch)({path:`${_o}/misc-recommendations`});if(!e)throw new Error;yield Po(e)}catch(e){yield Oo(e,(0,M.__)("There was an error loading misc recommendations","woocommerce"))}}function*zo(e){try{const t=yield e?`?category=${e}`:"",r=yield(0,xo.apiFetch)({path:`${_o}/knowledge-base${t}`,method:"GET"});if(!r)throw new Error;yield Ao(r,e)}catch(t){yield To(e,t)}}const{installedExtensions:$o}=(0,p.O3)("marketing",{}),Go={installedPlugins:$o,activatingPlugins:[],recommendedPlugins:{},miscRecommendations:[],blogPosts:{},errors:{}},qo=(0,y.createReduxStore)(bo,{actions:e,selectors:t,resolvers:r,controls:xo.controls,reducer:(e=Go,t)=>{switch(t.type){case So.SET_INSTALLED_PLUGINS:return{...e,installedPlugins:t.plugins};case So.SET_ACTIVATING_PLUGIN:return{...e,activatingPlugins:[...e.activatingPlugins,t.pluginSlug]};case So.REMOVE_ACTIVATING_PLUGIN:return{...e,activatingPlugins:(0,O.without)(e.activatingPlugins,t.pluginSlug)};case So.SET_RECOMMENDED_PLUGINS:return{...e,recommendedPlugins:{...e.recommendedPlugins,[t.data.category]:t.data.plugins}};case So.INSTALL_AND_ACTIVATE_RECOMMENDED_PLUGIN:const r=e.recommendedPlugins[t.data.category]?.filter((e=>e.product!==t.data.pluginSlug));return{...e,recommendedPlugins:{...e.recommendedPlugins,[t.data.category]:r}};case So.SET_BLOG_POSTS:return{...e,blogPosts:{...e.blogPosts,[t.data.category]:t.data.posts}};case So.SET_MISC_RECOMMENDATIONS:return{...e,miscRecommendations:t.data.miscRecommendations};case So.SET_ERROR:return{...e,errors:{...e.errors,blogPosts:{...e.errors.blogPosts,[t.category]:t.error}}};default:return e}}});(0,y.register)(qo);const Wo="order_attribution_install_banner_dismissed",Zo="woocommerce_remote_variant_assignment",Qo="order-attribution-install-banner",Yo="order-attribution-install-banner-small",Jo="order-attribution-install-banner-header";var Ko=o(4174);const Xo=({bannerImage:e=null,bannerType:t="order-attribution-install-banner-big",eventContext:r="analytics-overview",dismissable:n=!1,badgeText:o="",title:s="",description:i="",buttonText:c=""})=>{const[l,d]=(0,a.useState)(!1),{isDismissed:p,dismiss:m,shouldShowBanner:f}=(({isInstalling:e})=>{const{currentUserCan:t}=(0,g.useUser)(),{[Wo]:r,updateUserPreferences:n}=(0,g.useUserPreferences)(),{canUserInstallPlugins:o,orderAttributionInstallState:s}=(0,y.useSelect)((e=>{const{getPluginInstallState:r}=e(g.pluginsStore);return{orderAttributionInstallState:r("woocommerce-analytics"),canUserInstallPlugins:t("install_plugins")}}),[t]),{loading:i,isBannerDismissed:c,remoteVariantAssignment:l}=(0,y.useSelect)((e=>{const{getOption:t,hasFinishedResolution:n}=e(g.optionsStore);return{loading:!n("getOption",[Zo]),isBannerDismissed:r,remoteVariantAssignment:t(Zo)}}),[r]),{loadingRecommendations:u,recommendations:d}=(0,y.useSelect)((e=>{const{getMiscRecommendations:t,hasFinishedResolution:r}=e(bo);return{loadingRecommendations:!o||!r("getMiscRecommendations"),recommendations:o?t():[]}}),[o]),p=(0,a.useMemo)((()=>{if(u||!Array.isArray(d)||0===d.length)return null;for(const e of d)if("woocommerce-analytics"===e.id)return e?.order_attribution_promotion_percentage||null;return null}),[u,d]),m=(0,a.useCallback)((()=>!(!o||i)&&(!!e||!["installed","activated"].includes(s)&&((e,t)=>{if(e=parseInt(e,10),isNaN(e))return!1;const r=(e=>{Array.isArray(e)&&0!==e.length||(e=[["9.7",10],["9.6",10],["9.5",1]]),e.sort(((e,t)=>parseFloat(t[0])-parseFloat(e[0])));for(let[t,r]of e)if((0,ie.isWcVersion)(t,">="))return r=parseInt(r,10),isNaN(r)?12:r/100*120;return 12})(t);return e<=r})(l,p))),[i,o,s,l,p,e]);return{loading:i,isDismissed:"yes"===c,dismiss:(e="analytics-overview")=>{n({[Wo]:"yes"}),(0,I.recordEvent)("order_attribution_install_banner_dismissed",{path:(0,N.getPath)(),context:e})},shouldShowBanner:m()}})({isInstalling:l}),{installAndActivatePlugins:h}=(0,y.useDispatch)(g.pluginsStore),w=()=>{d(!0),(0,I.recordEvent)("order_attribution_install_banner_clicked",{path:(0,N.getPath)(),context:r}),h(["woocommerce-analytics"]).then((e=>{window.location.href="admin.php?page=wc-admin&path=/analytics/order-attribution",(0,Ko.a)(e)})).catch((e=>{(0,Ko.a)(e),d(!1)}))},v=(0,a.useCallback)((()=>t===Jo?f&&p:n?f&&!p:f),[t,f,p,n])();if((0,a.useEffect)((()=>{v&&(0,I.recordEvent)("order_attribution_install_banner_viewed",{path:(0,N.getPath)(),context:r})}),[r,v]),!v)return null;if(t===Jo)return(0,u.jsx)(T.Button,{className:"woocommerce-order-attribution-install-header-banner",variant:"secondary",icon:vo,size:"default",onClick:w,isBusy:l,disabled:l,children:(0,M.__)("Try Order Attribution","woocommerce")});const b=t===Yo;return(0,u.jsx)(T.Card,{size:"medium",className:"woocommerce-order-attribution-install-banner "+(b?"small":""),children:(0,u.jsxs)(T.CardBody,{className:"woocommerce-order-attribution-install-banner__body "+(b?"small":""),children:[(0,u.jsx)("div",{className:"woocommerce-order-attribution-install-banner__image_container",children:e}),(0,u.jsxs)("div",{className:"woocommerce-order-attribution-install-banner__text_container "+(b?"small":""),children:[o&&(0,u.jsx)("div",{className:"woocommerce-order-attribution-install-banner__text-badge",children:(0,u.jsx)(U.Text,{className:"woocommerce-order-attribution-install-banner__text-description",as:"p",size:"12",align:"center",children:o})}),s&&(0,u.jsx)(U.Text,{className:"woocommerce-order-attribution-install-banner__text-title",as:"p",size:"16",children:s}),i&&(0,u.jsx)(U.Text,{className:"woocommerce-order-attribution-install-banner__text-description",as:"p",size:"12",children:i}),(0,u.jsxs)("div",{children:[(0,u.jsx)(T.Button,{className:b?"small":"",variant:b?"secondary":"primary",onClick:w,iconPosition:b?"right":null,isBusy:l,disabled:l,children:c}),n&&(0,u.jsx)(T.Button,{variant:"tertiary",onClick:()=>m(r),disabled:l,children:(0,M.__)("Dismiss","woocommerce")})]})]})]})})},{Slot:es,Fill:ts}=(0,T.createSlotFill)("__EXPERIMENTAL__WcAdminOrderAttributionSlots"),rs=()=>(0,u.jsx)(ts,{children:(0,u.jsx)(Xo,{eventContext:"order-editor-order-attribution-metabox",bannerType:Yo,description:(0,M.__)("View all of your orders in our new Order Attribution extension.","woocommerce"),buttonText:(0,M.__)("Install the extension","woocommerce")})}),ns=l()("wc-admin:client"),os=(e,t,r)=>{try{((e,t,r)=>{let n=(0,g.withSettingsHydration)(r,window.wcSettings?.admin)(wo);t&&(n=(0,g.withCurrentUserHydration)(t)(n)),(0,a.createRoot)(e).render((0,u.jsx)(n,{}))})(e,t,r),e.classList.remove("is-embed-loading");const n=document.getElementById("wpbody-content");if(!n)return ns("WP Body content element not found"),!1;const o=(e=>e.querySelector(".wrap.woocommerce")||document.querySelector("#wpbody-content > .woocommerce")||e.querySelector(".wrap")||(ns("Wrap element not found"),null))(n);return!!o&&(((e,t)=>{const r=document.createElement("div");(0,a.createRoot)(e.insertBefore(r,t)).render((0,u.jsx)("div",{className:"woocommerce-layout",children:(0,u.jsx)(P,{})}))})(n,o),((e,t)=>{const r=document.createElement("div");(0,a.createRoot)(e.insertBefore(r,t.nextSibling)).render((0,u.jsx)(C,{}))})(n,o),(()=>{const e=document.getElementById("order-attribution-install-banner-slotfill");e&&(0,a.createRoot)(e).render((0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(T.SlotFillProvider,{children:[(0,u.jsx)(es,{}),(0,u.jsx)(R.PluginArea,{scope:Qo})]})}))})(),(0,R.registerPlugin)("woocommerce-admin-order-editor-order-attribution-install-banner-slotfill",{scope:Qo,render:rs}),!0)}catch(e){console.error("Failed to initialize embedded layout:",e)}};(0,n.init)({errorRateLimitMs:6e4});const ss=document.getElementById("woocommerce-embedded-root");if(ss){const e="wc_admin";os(ss,(0,p.O3)("currentUserData"),e),is=ss,window.wcAdminFeatures&&!0===window.wcAdminFeatures["customer-effort-score-tracks"]&&(is?(0,a.createRoot)(is.insertBefore(document.createElement("div"),null)).render((0,u.jsx)(i.CustomerEffortScoreTracksContainer,{})):d("Customer Effort Score Tracks root not found"))}var is})(),(window.wc=window.wc||{}).embed=s})();