geno/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/checkout-blocks/shipping-methods-frontend.js
2024-02-01 11:54:18 +00:00

5 lines
No EOL
53 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunkwebpackWcBlocksJsonp=self.webpackChunkwebpackWcBlocksJsonp||[]).push([[5210],{8184:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9196),o=n(444);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"}))},5202:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9196),o=n(444);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.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"}))},5430:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9196),o=n(444);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}))},5045:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9196),o=n(444);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.Path,{fillRule:"evenodd",d:"M6.863 13.644L5 13.25h-.5a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5H5L18 6.5h2V16h-2l-3.854-.815.026.008a3.75 3.75 0 01-7.31-1.549zm1.477.313a2.251 2.251 0 004.356.921l-4.356-.921zm-2.84-3.28L18.157 8h.343v6.5h-.343L5.5 11.823v-1.146z",clipRule:"evenodd"}))},4877:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9196),o=n(9685),i=n(4184),s=n.n(i),a=(n(5482),n(4705));const l=({className:e,showSpinner:t=!1,children:n,variant:i="contained",...l})=>{const c=s()("wc-block-components-button","wp-element-button",e,i,{"wc-block-components-button--loading":t});return(0,r.createElement)(o.Z,{className:c,...l},t&&(0,r.createElement)(a.Z,null),(0,r.createElement)("span",{className:"wc-block-components-button__text"},n))}},4427:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(9196),o=n(4184),i=n.n(o),s=n(5736),a=n(2629),l=n(711),c=n(9307),u=n(5027),p=n(7856),d=n.n(p);const m=["a","b","em","i","strong","p","br"],f=["target","href","rel","name","download"],g=(e,t)=>{const n=(null==t?void 0:t.tags)||m,r=(null==t?void 0:t.attr)||f;return d().sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:r})};var h=n(9097),b=n(4293),v=n(4617);const y=e=>{const t=(0,v.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:(0,a.decodeEntities)(e.name),value:e.rate_id,description:(0,r.createElement)(r.Fragment,null,Number.isFinite(t)&&(0,r.createElement)(l.FormattedMonetaryAmount,{currency:(0,b.getCurrencyFromPriceResponse)(e),value:t}),Number.isFinite(t)&&e.delivery_time?" — ":null,(0,a.decodeEntities)(e.delivery_time))}},E=({className:e="",noResultsMessage:t,onSelectRate:n,rates:o,renderOption:i=y,selectedRate:s,disabled:a=!1})=>{const u=(null==s?void 0:s.rate_id)||"",p=(0,h.D)(u),[d,m]=(0,c.useState)((()=>{var e;return u||(null===(e=o[0])||void 0===e?void 0:e.rate_id)}));if((0,c.useEffect)((()=>{u&&u!==p&&u!==d&&m(u)}),[u,d,p]),(0,c.useEffect)((()=>{d&&n(d)}),[n,d]),0===o.length)return t;if(o.length>1)return(0,r.createElement)(l.RadioControl,{className:e,onChange:e=>{m(e),n(e)},disabled:a,selected:d,options:o.map(i)});const{label:f,secondaryLabel:g,description:b,secondaryDescription:v}=i(o[0]);return(0,r.createElement)(l.RadioControlOptionLayout,{label:f,secondaryLabel:g,description:b,secondaryDescription:v})};n(6125);const w=({packageId:e,className:t="",noResultsMessage:n,renderOption:o,packageData:p,collapsible:d,showItems:m})=>{const{selectShippingRate:f,isSelectingRate:h}=(0,u.V)(),b=document.querySelectorAll(".wc-block-components-shipping-rates-control__package").length>1,v=null!=m?m:b,y=null!=d?d:b,w=(0,r.createElement)(r.Fragment,null,(y||v)&&(0,r.createElement)("div",{className:"wc-block-components-shipping-rates-control__package-title",dangerouslySetInnerHTML:{__html:g(p.name)}}),v&&(0,r.createElement)("ul",{className:"wc-block-components-shipping-rates-control__package-items"},Object.values(p.items).map((e=>{const t=(0,a.decodeEntities)(e.name),n=e.quantity;return(0,r.createElement)("li",{key:e.key,className:"wc-block-components-shipping-rates-control__package-item"},(0,r.createElement)(l.Label,{label:n>1?`${t} × ${n}`:`${t}`,screenReaderLabel:(0,s.sprintf)(/* translators: %1$s name of the product (ie: Sunglasses), %2$d number of units in the current cart package */
(0,s._n)("%1$s (%2$d unit)","%1$s (%2$d units)",n,"woocommerce"),t,n)}))})))),_=(0,c.useCallback)((t=>{f(t,e)}),[e,f]),S={className:t,noResultsMessage:n,rates:p.shipping_rates,onSelectRate:_,selectedRate:p.shipping_rates.find((e=>e.selected)),renderOption:o,disabled:h};return y?(0,r.createElement)(l.Panel,{className:i()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":h}),initialOpen:!1,title:w},(0,r.createElement)(E,{...S})):(0,r.createElement)("div",{className:i()("wc-block-components-shipping-rates-control__package",t,{"wc-block-components-shipping-rates-control__package--disabled":h})},w,(0,r.createElement)(E,{...S}))}},4017:(e,t,n)=>{"use strict";n.d(t,{Z:()=>b});var r=n(9196),o=n(5736),i=n(9307),s=n(1193),a=n(3554),l=n(602),c=n(4055),u=n(8832),p=n(5027),d=n(6131),m=n(7884),f=n(4427),g=n(5158);const h=({packages:e,showItems:t,collapsible:n,noResultsMessage:o,renderOption:i})=>e.length?(0,r.createElement)(r.Fragment,null,e.map((({package_id:e,...s})=>(0,r.createElement)(f.Z,{key:e,packageId:e,packageData:s,collapsible:n,showItems:t,noResultsMessage:o,renderOption:i})))):null,b=({shippingRates:e,isLoadingRates:t,className:n,collapsible:b,showItems:v,noResultsMessage:y,renderOption:E,context:w})=>{(0,i.useEffect)((()=>{var n,r;t||(n=(0,l.wH)(e),r=(0,l.Q_)(e),1===n?(0,g.speak)((0,o.sprintf)(/* translators: %d number of shipping options found. */
(0,o._n)("%d shipping option was found.","%d shipping options were found.",r,"woocommerce"),r)):(0,g.speak)((0,o.sprintf)(/* translators: %d number of shipping packages packages. */
(0,o._n)("Shipping option searched for %d package.","Shipping options searched for %d packages.",n,"woocommerce"),n)+" "+(0,o.sprintf)(/* translators: %d number of shipping options available. */
(0,o._n)("%d shipping option was found","%d shipping options were found",r,"woocommerce"),r)))}),[t,e]);const{extensions:_,receiveCart:S,...k}=(0,c.b)(),N={className:n,collapsible:b,showItems:v,noResultsMessage:y,renderOption:E,extensions:_,cart:k,components:{ShippingRatesControlPackage:f.Z},context:w},{isEditor:T}=(0,u._)(),{hasSelectedLocalPickup:A,selectedRates:R}=(0,p.V)(),x=(0,m.Kn)(R)?Object.values(R):[],L=x.every((e=>e===x[0]));return(0,r.createElement)(s.Z,{isLoading:t,screenReaderLabel:(0,o.__)("Loading shipping rates…","woocommerce"),showSpinner:!0},A&&"woocommerce/cart"===w&&e.length>1&&!L&&!T&&(0,r.createElement)(d.Z,{className:"wc-block-components-notice",isDismissible:!1,status:"warning"},(0,o.__)("Multiple shipments must have the same pickup location","woocommerce")),(0,r.createElement)(a.ExperimentalOrderShippingPackages.Slot,{...N}),(0,r.createElement)(a.ExperimentalOrderShippingPackages,null,(0,r.createElement)(h,{packages:e,noResultsMessage:y,renderOption:E})))}},1193:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9196),o=n(5736),i=n(4184),s=n.n(i),a=n(711);n(6575);const l=({children:e,className:t,screenReaderLabel:n,showSpinner:i=!1,isLoading:l=!0})=>(0,r.createElement)("div",{className:s()(t,{"wc-block-components-loading-mask":l})},l&&i&&(0,r.createElement)(a.Spinner,null),(0,r.createElement)("div",{className:s()({"wc-block-components-loading-mask__children":l}),"aria-hidden":l},e),l&&(0,r.createElement)("span",{className:"screen-reader-text"},n||(0,o.__)("Loading…","woocommerce")))},6131:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(9196),o=n(4184),i=n.n(o),s=n(5736),a=n(1984),l=n(5202),c=(n(1365),n(395)),u=n(4877),p=n(2023);const d=({className:e,status:t="default",children:n,spokenMessage:o=n,onRemove:d=(()=>{}),isDismissible:m=!0,politeness:f=(0,c.x)(t),summary:g})=>((0,p.o)(o,f),(0,r.createElement)("div",{className:i()(e,"wc-block-components-notice-banner","is-"+t,{"is-dismissible":m})},(0,r.createElement)(a.Z,{icon:(0,c.X)(t)}),(0,r.createElement)("div",{className:"wc-block-components-notice-banner__content"},g&&(0,r.createElement)("p",{className:"wc-block-components-notice-banner__summary"},g),n),!!m&&(0,r.createElement)(u.Z,{className:"wc-block-components-notice-banner__dismiss",icon:l.Z,label:(0,s.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:e.preventDefault)&&e.preventDefault&&e.preventDefault(),d()},showTooltip:!1})))},395:(e,t,n)=>{"use strict";n.d(t,{X:()=>a,x:()=>s});var r=n(8184),o=n(5430),i=n(5045);const s=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},a=e=>{switch(e){case"success":return r.Z;case"warning":case"info":case"error":return o.Z;default:return i.Z}}},7277:(e,t,n)=>{"use strict";n.d(t,{B:()=>c});var r=n(4617),o=n(9307),i=n(9818),s=n(4801),a=n(7844),l=n(5027);const c=()=>{const{needsShipping:e}=(0,l.V)(),{useShippingAsBilling:t,prefersCollection:n}=(0,i.useSelect)((e=>({useShippingAsBilling:e(s.CHECKOUT_STORE_KEY).getUseShippingAsBilling(),prefersCollection:e(s.CHECKOUT_STORE_KEY).prefersCollection()}))),{__internalSetUseShippingAsBilling:c}=(0,i.useDispatch)(s.CHECKOUT_STORE_KEY),{billingAddress:u,setBillingAddress:p,shippingAddress:d,setShippingAddress:m}=(0,a.L)(),f=(0,o.useCallback)((e=>{p({email:e})}),[p]),g=(0,r.getSetting)("forcedBillingAddress",!1);return{shippingAddress:d,billingAddress:u,setShippingAddress:m,setBillingAddress:p,setEmail:f,defaultAddressFields:r.defaultAddressFields,useShippingAsBilling:t,setUseShippingAsBilling:c,needsShipping:e,showShippingFields:!g&&e&&!n,showShippingMethods:e&&!n,showBillingFields:!e||!t||!!n,forcedBillingAddress:g,useBillingAsShipping:g||!!n}}},7844:(e,t,n)=>{"use strict";n.d(t,{L:()=>i});var r=n(9818),o=n(4801);const i=()=>{const{customerData:e,isInitialized:t}=(0,r.useSelect)((e=>{const t=e(o.CART_STORE_KEY);return{customerData:t.getCustomerData(),isInitialized:t.hasFinishedResolution("getCartData")}})),{setShippingAddress:n,setBillingAddress:i}=(0,r.useDispatch)(o.CART_STORE_KEY);return{isInitialized:t,billingAddress:e.billingAddress,shippingAddress:e.shippingAddress,setBillingAddress:i,setShippingAddress:n}}},2023:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(9307),o=n(5158);const i=(e,t)=>{const n="string"==typeof e?e:(0,r.renderToString)(e);(0,r.useEffect)((()=>{n&&(0,o.speak)(n,t)}),[n,t])}},9490:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5736);const o=({defaultTitle:e=(0,r.__)("Step","woocommerce"),defaultDescription:t=(0,r.__)("Step description text.","woocommerce"),defaultShowStepNumber:n=!0})=>({title:{type:"string",default:e},description:{type:"string",default:t},showStepNumber:{type:"boolean",default:n}})},6956:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>T});var r=n(9196),o=n(4184),i=n.n(o),s=n(721),a=n(711),l=n(7277),c=n(9818),u=n(4801),p=n(5736),d=n(5027),m=n(7844),f=n(4017),g=n(602),h=n(3881),b=n(4293),v=n(8832),y=n(6423),E=n(2629),w=n(4617),_=n(6131);const S=e=>{const t=(0,w.getSetting)("displayCartPricesIncludingTax",!1)?parseInt(e.price,10)+parseInt(e.taxes,10):parseInt(e.price,10);return{label:(0,E.decodeEntities)(e.name),value:e.rate_id,description:(0,E.decodeEntities)(e.description),secondaryLabel:(0,r.createElement)(a.FormattedMonetaryAmount,{currency:(0,b.getCurrencyFromPriceResponse)(e),value:t}),secondaryDescription:(0,E.decodeEntities)(e.delivery_time)}},k=({noShippingPlaceholder:e=null})=>{const{isEditor:t}=(0,v._)(),{shippingRates:n,needsShipping:o,isLoadingRates:i,hasCalculatedShipping:s,isCollectable:l}=(0,d.V)(),{shippingAddress:c}=(0,m.L)(),u=l?n.map((e=>({...e,shipping_rates:e.shipping_rates.filter((e=>!(0,g.Ep)(e.method_id)))}))):n;if(!o)return null;const b=(0,g.wH)(n);if(!s&&!b)return(0,r.createElement)("p",null,(0,p.__)("Shipping options will be displayed here after entering your full shipping address.","woocommerce"));const E=(0,h.K5)(c);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(a.StoreNoticesContainer,{context:y.n7.SHIPPING_METHODS}),t&&!b?e:(0,r.createElement)(f.Z,{noResultsMessage:(0,r.createElement)(r.Fragment,null,E?(0,r.createElement)(_.Z,{isDismissible:!1,className:"wc-block-components-shipping-rates-control__no-results-notice",status:"warning"},(0,p.__)("There are no shipping options available. Please check your shipping address.","woocommerce")):(0,p.__)("Add a shipping address to view shipping options.","woocommerce")),renderOption:S,collapsible:!1,shippingRates:u,isLoadingRates:i,context:"woocommerce/checkout"}))},N={...(0,n(9490).Z)({defaultTitle:(0,p.__)("Shipping options","woocommerce"),defaultDescription:""}),className:{type:"string",default:""},lock:{type:"object",default:{move:!0,remove:!0}}},T=(0,s.withFilteredAttributes)(N)((({title:e,description:t,showStepNumber:n,children:o,className:s})=>{const p=(0,c.useSelect)((e=>e(u.CHECKOUT_STORE_KEY).isProcessing())),{showShippingMethods:d}=(0,l.B)();return d?(0,r.createElement)(a.FormStep,{id:"shipping-option",disabled:p,className:i()("wc-block-checkout__shipping-option",s),title:e,description:t,showStepNumber:n},(0,r.createElement)(k,null),o):null}))},4705:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9196);n(129);const o=()=>(0,r.createElement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"})},7856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var i=Object.hasOwnProperty,s=Object.setPrototypeOf,a=Object.isFrozen,l=Object.getPrototypeOf,c=Object.getOwnPropertyDescriptor,u=Object.freeze,p=Object.seal,d=Object.create,m="undefined"!=typeof Reflect&&Reflect,f=m.apply,g=m.construct;f||(f=function(e,t,n){return e.apply(t,n)}),u||(u=function(e){return e}),p||(p=function(e){return e}),g||(g=function(e,t){return n(e,r(t))});var h,b=R(Array.prototype.forEach),v=R(Array.prototype.pop),y=R(Array.prototype.push),E=R(String.prototype.toLowerCase),w=R(String.prototype.toString),_=R(String.prototype.match),S=R(String.prototype.replace),k=R(String.prototype.indexOf),N=R(String.prototype.trim),T=R(RegExp.prototype.test),A=(h=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(h,t)});function R(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return f(e,t,r)}}function x(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:E,s&&s(e,null);for(var o=t.length;o--;){var i=t[o];if("string"==typeof i){var l=n(i);l!==i&&(a(t)||(t[o]=l),i=l)}e[i]=!0}return e}function L(e){var t,n=d(null);for(t in e)!0===f(i,e,[t])&&(n[t]=e[t]);return n}function C(e,t){for(;null!==e;){var n=c(e,t);if(n){if(n.get)return R(n.get);if("function"==typeof n.value)return R(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var O=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),F=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Z=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=u(["#text"]),B=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),P=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),U=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),z=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),W=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=p(/<%[\w\W]*|[\w\W]*%>/gm),G=p(/\${[\w\W]*}/gm),V=p(/^data-[\-\w.\u00B7-\uFFFF]/),K=p(/^aria-[\-\w]+$/),q=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=p(/^(?:\w+script|data):/i),$=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=p(/^html$/i),J=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),o=function(e){return t(e)};if(o.version="2.4.7",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var i=n.document,s=n.document,a=n.DocumentFragment,l=n.HTMLTemplateElement,c=n.Node,p=n.Element,d=n.NodeFilter,m=n.NamedNodeMap,f=void 0===m?n.NamedNodeMap||n.MozNamedAttrMap:m,g=n.HTMLFormElement,h=n.DOMParser,R=n.trustedTypes,Q=p.prototype,ee=C(Q,"cloneNode"),te=C(Q,"nextSibling"),ne=C(Q,"childNodes"),re=C(Q,"parentNode");if("function"==typeof l){var oe=s.createElement("template");oe.content&&oe.content.ownerDocument&&(s=oe.content.ownerDocument)}var ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(R,i),se=ie?ie.createHTML(""):"",ae=s,le=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,pe=ae.getElementsByTagName,de=i.importNode,me={};try{me=L(s).documentMode?s.documentMode:{}}catch(e){}var fe={};o.isSupported="function"==typeof re&&le&&void 0!==le.createHTMLDocument&&9!==me;var ge,he,be=W,ve=j,ye=G,Ee=V,we=K,_e=Y,Se=$,ke=q,Ne=null,Te=x({},[].concat(r(O),r(D),r(M),r(I),r(H))),Ae=null,Re=x({},[].concat(r(B),r(P),r(U),r(z))),xe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Le=null,Ce=null,Oe=!0,De=!0,Me=!1,Fe=!0,Ie=!1,Ze=!1,He=!1,Be=!1,Pe=!1,Ue=!1,ze=!1,We=!0,je=!1,Ge=!0,Ve=!1,Ke={},qe=null,Ye=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),$e=null,Xe=x({},["audio","video","img","source","image","track"]),Je=null,Qe=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=nt,ot=!1,it=null,st=x({},[et,tt,nt],w),at=["application/xhtml+xml","text/html"],lt=null,ct=s.createElement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},pt=function(t){lt&&lt===t||(t&&"object"===e(t)||(t={}),t=L(t),ge=ge=-1===at.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,he="application/xhtml+xml"===ge?w:E,Ne="ALLOWED_TAGS"in t?x({},t.ALLOWED_TAGS,he):Te,Ae="ALLOWED_ATTR"in t?x({},t.ALLOWED_ATTR,he):Re,it="ALLOWED_NAMESPACES"in t?x({},t.ALLOWED_NAMESPACES,w):st,Je="ADD_URI_SAFE_ATTR"in t?x(L(Qe),t.ADD_URI_SAFE_ATTR,he):Qe,$e="ADD_DATA_URI_TAGS"in t?x(L(Xe),t.ADD_DATA_URI_TAGS,he):Xe,qe="FORBID_CONTENTS"in t?x({},t.FORBID_CONTENTS,he):Ye,Le="FORBID_TAGS"in t?x({},t.FORBID_TAGS,he):{},Ce="FORBID_ATTR"in t?x({},t.FORBID_ATTR,he):{},Ke="USE_PROFILES"in t&&t.USE_PROFILES,Oe=!1!==t.ALLOW_ARIA_ATTR,De=!1!==t.ALLOW_DATA_ATTR,Me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Fe=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ie=t.SAFE_FOR_TEMPLATES||!1,Ze=t.WHOLE_DOCUMENT||!1,Pe=t.RETURN_DOM||!1,Ue=t.RETURN_DOM_FRAGMENT||!1,ze=t.RETURN_TRUSTED_TYPE||!1,Be=t.FORCE_BODY||!1,We=!1!==t.SANITIZE_DOM,je=t.SANITIZE_NAMED_PROPS||!1,Ge=!1!==t.KEEP_CONTENT,Ve=t.IN_PLACE||!1,ke=t.ALLOWED_URI_REGEXP||ke,rt=t.NAMESPACE||nt,xe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ut(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ie&&(De=!1),Ue&&(Pe=!0),Ke&&(Ne=x({},r(H)),Ae=[],!0===Ke.html&&(x(Ne,O),x(Ae,B)),!0===Ke.svg&&(x(Ne,D),x(Ae,P),x(Ae,z)),!0===Ke.svgFilters&&(x(Ne,M),x(Ae,P),x(Ae,z)),!0===Ke.mathMl&&(x(Ne,I),x(Ae,U),x(Ae,z))),t.ADD_TAGS&&(Ne===Te&&(Ne=L(Ne)),x(Ne,t.ADD_TAGS,he)),t.ADD_ATTR&&(Ae===Re&&(Ae=L(Ae)),x(Ae,t.ADD_ATTR,he)),t.ADD_URI_SAFE_ATTR&&x(Je,t.ADD_URI_SAFE_ATTR,he),t.FORBID_CONTENTS&&(qe===Ye&&(qe=L(qe)),x(qe,t.FORBID_CONTENTS,he)),Ge&&(Ne["#text"]=!0),Ze&&x(Ne,["html","head","body"]),Ne.table&&(x(Ne,["tbody"]),delete Le.tbody),u&&u(t),lt=t)},dt=x({},["mi","mo","mn","ms","mtext"]),mt=x({},["foreignobject","desc","title","annotation-xml"]),ft=x({},["title","style","font","a","script"]),gt=x({},D);x(gt,M),x(gt,F);var ht=x({},I);x(ht,Z);var bt=function(e){y(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=se}catch(t){e.remove()}}},vt=function(e,t){try{y(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ae[e])if(Pe||Ue)try{bt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},yt=function(e){var t,n;if(Be)e="<remove></remove>"+e;else{var r=_(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ie?ie.createHTML(e):e;if(rt===nt)try{t=(new h).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=le.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?se:o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(s.createTextNode(n),i.childNodes[0]||null),rt===nt?pe.call(t,Ze?"html":"body")[0]:Ze?t.documentElement:i},Et=function(e){return ce.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},wt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){fe[e]&&b(fe[e],(function(e){e.call(o,t,n,lt)}))},St=function(e){var t,n;if(_t("beforeSanitizeElements",e,null),(n=e)instanceof g&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof f)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return bt(e),!0;if(T(/[\u0080-\uFFFF]/,e.nodeName))return bt(e),!0;var r=he(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:r,allowedTags:Ne}),e.hasChildNodes()&&!wt(e.firstElementChild)&&(!wt(e.content)||!wt(e.content.firstElementChild))&&T(/<[/\w]/g,e.innerHTML)&&T(/<[/\w]/g,e.textContent))return bt(e),!0;if("select"===r&&T(/<template/i,e.innerHTML))return bt(e),!0;if(!Ne[r]||Le[r]){if(!Le[r]&&Nt(r)){if(xe.tagNameCheck instanceof RegExp&&T(xe.tagNameCheck,r))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(r))return!1}if(Ge&&!qe[r]){var i=re(e)||e.parentNode,s=ne(e)||e.childNodes;if(s&&i)for(var a=s.length-1;a>=0;--a)i.insertBefore(ee(s[a],!0),te(e))}return bt(e),!0}return e instanceof p&&!function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var n=E(e.tagName),r=E(t.tagName);return!!it[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||dt[r]):Boolean(gt[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&mt[r]:Boolean(ht[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!mt[r])&&!(t.namespaceURI===et&&!dt[r])&&!ht[n]&&(ft[n]||!gt[n]):!("application/xhtml+xml"!==ge||!it[e.namespaceURI]))}(e)?(bt(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!T(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ie&&3===e.nodeType&&(t=e.textContent,t=S(t,be," "),t=S(t,ve," "),t=S(t,ye," "),e.textContent!==t&&(y(o.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(bt(e),!0)},kt=function(e,t,n){if(We&&("id"===t||"name"===t)&&(n in s||n in ct))return!1;if(De&&!Ce[t]&&T(Ee,t));else if(Oe&&T(we,t));else if(!Ae[t]||Ce[t]){if(!(Nt(e)&&(xe.tagNameCheck instanceof RegExp&&T(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&T(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&T(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(Je[t]);else if(T(ke,S(n,Se,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!$e[e])if(Me&&!T(_e,S(n,Se,"")));else if(n)return!1;return!0},Nt=function(e){return e.indexOf("-")>0},Tt=function(t){var n,r,i,s;_t("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ae};for(s=a.length;s--;){var c=n=a[s],u=c.name,p=c.namespaceURI;if(r="value"===u?n.value:N(n.value),i=he(u),l.attrName=i,l.attrValue=r,l.keepAttr=!0,l.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,l),r=l.attrValue,!l.forceKeepAttr&&(vt(u,t),l.keepAttr))if(Fe||!T(/\/>/i,r)){Ie&&(r=S(r,be," "),r=S(r,ve," "),r=S(r,ye," "));var d=he(t.nodeName);if(kt(d,i,r)){if(!je||"id"!==i&&"name"!==i||(vt(u,t),r="user-content-"+r),ie&&"object"===e(R)&&"function"==typeof R.getAttributeType)if(p);else switch(R.getAttributeType(d,i)){case"TrustedHTML":r=ie.createHTML(r);break;case"TrustedScriptURL":r=ie.createScriptURL(r)}try{p?t.setAttributeNS(p,u,r):t.setAttribute(u,r),v(o.removed)}catch(e){}}}else vt(u,t)}_t("afterSanitizeAttributes",t,null)}},At=function e(t){var n,r=Et(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),St(n)||(n.content instanceof a&&e(n.content),Tt(n));_t("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(t){var r,s,l,u,p,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!wt(t)){if("function"!=typeof t.toString)throw A("toString is not a function");if("string"!=typeof(t=t.toString()))throw A("dirty is not a string, aborting")}if(!o.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(wt(t))return n.toStaticHTML(t.outerHTML)}return t}if(He||pt(d),o.removed=[],"string"==typeof t&&(Ve=!1),Ve){if(t.nodeName){var m=he(t.nodeName);if(!Ne[m]||Le[m])throw A("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(s=(r=yt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!Pe&&!Ie&&!Ze&&-1===t.indexOf("<"))return ie&&ze?ie.createHTML(t):t;if(!(r=yt(t)))return Pe?null:ze?se:""}r&&Be&&bt(r.firstChild);for(var f=Et(Ve?t:r);l=f.nextNode();)3===l.nodeType&&l===u||St(l)||(l.content instanceof a&&At(l.content),Tt(l),u=l);if(u=null,Ve)return t;if(Pe){if(Ue)for(p=ue.call(r.ownerDocument);r.firstChild;)p.appendChild(r.firstChild);else p=r;return(Ae.shadowroot||Ae.shadowrootmod)&&(p=de.call(i,p,!0)),p}var g=Ze?r.outerHTML:r.innerHTML;return Ze&&Ne["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&T(X,r.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+g),Ie&&(g=S(g,be," "),g=S(g,ve," "),g=S(g,ye," ")),ie&&ze?ie.createHTML(g):g},o.setConfig=function(e){pt(e),He=!0},o.clearConfig=function(){lt=null,He=!1},o.isValidAttribute=function(e,t,n){lt||pt({});var r=he(e),o=he(t);return kt(r,o,n)},o.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],y(fe[e],t))},o.removeHook=function(e){if(fe[e])return v(fe[e])},o.removeHooks=function(e){fe[e]&&(fe[e]=[])},o.removeAllHooks=function(){fe={}},o}()}()},5482:()=>{},6125:()=>{},6575:()=>{},1365:()=>{},129:()=>{},2444:(e,t,n)=>{"use strict";n.d(t,{T:()=>s});var r=n(4184),o=n.n(r);function i(e){return"appear"===e?"top":"left"}function s(e){if("loading"===e.type)return o()("components-animate__loading");const{type:t,origin:n=i(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return o()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?o()("components-animate__slide-in","is-from-"+n):void 0}},9685:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(7462),o=n(9307),i=n(4184),s=n.n(i),a=n(2819),l=n(7180),c=n.n(l),u=n(9178),p=n(7392),d=n(7593);const m=["onMouseDown","onClick"],f=(0,o.forwardRef)((function(e,t){const{href:n,target:i,isSmall:l,isPressed:f,isBusy:g,isDestructive:h,className:b,disabled:v,icon:y,iconPosition:E="left",iconSize:w,showTooltip:_,tooltipPosition:S,shortcut:k,label:N,children:T,text:A,variant:R,__experimentalIsFocusable:x,describedBy:L,...C}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:r,isLink:o,variant:i,...s}){let a=i;var l,u,p,d,m;return t&&(null!==(l=a)&&void 0!==l||(a="primary")),r&&(null!==(u=a)&&void 0!==u||(a="tertiary")),n&&(null!==(p=a)&&void 0!==p||(a="secondary")),e&&(c()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(d=a)&&void 0!==d||(a="secondary")),o&&(null!==(m=a)&&void 0!==m||(a="link")),{...s,variant:a}}(e),O=s()("components-button",b,{"is-secondary":"secondary"===R,"is-primary":"primary"===R,"is-small":l,"is-tertiary":"tertiary"===R,"is-pressed":f,"is-busy":g,"is-link":"link"===R,"is-destructive":h,"has-text":!!y&&!!T,"has-icon":!!y}),D=v&&!x,M=void 0===n||D?"button":"a",F="a"===M?{href:n,target:i}:{type:"button",disabled:D,"aria-pressed":f};if(v&&x){F["aria-disabled"]=!0;for(const e of m)C[e]=e=>{e.stopPropagation(),e.preventDefault()}}const I=!D&&(_&&N||k||!!N&&(!T||(0,a.isArray)(T)&&!T.length)&&!1!==_),Z=L?(0,a.uniqueId)():null,H=C["aria-describedby"]||Z,B=(0,o.createElement)(M,(0,r.Z)({},F,C,{className:O,"aria-label":C["aria-label"]||N,"aria-describedby":H,ref:t}),y&&"left"===E&&(0,o.createElement)(p.Z,{icon:y,size:w}),A&&(0,o.createElement)(o.Fragment,null,A),y&&"right"===E&&(0,o.createElement)(p.Z,{icon:y,size:w}),T);return I?(0,o.createElement)(o.Fragment,null,(0,o.createElement)(u.Z,{text:L||N,shortcut:k,position:S},B),L&&(0,o.createElement)(d.Z,null,(0,o.createElement)("span",{id:Z},L))):(0,o.createElement)(o.Fragment,null,B,L&&(0,o.createElement)(d.Z,null,(0,o.createElement)("span",{id:Z},L)))}))},6658:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(7462),o=n(9307);const i=function({icon:e,className:t,...n}){const i=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return(0,o.createElement)("span",(0,r.Z)({className:i},n))}},7392:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7462),o=n(9307),i=n(444),s=n(6658);const a=function({icon:e=null,size:t=24,...n}){if("string"==typeof e)return(0,o.createElement)(s.Z,(0,r.Z)({icon:e},n));if((0,o.isValidElement)(e)&&s.Z===e.type)return(0,o.cloneElement)(e,{...n});if("function"==typeof e)return e.prototype instanceof o.Component?(0,o.createElement)(e,{size:t,...n}):e({size:t,...n});if(e&&("svg"===e.type||e.type===i.SVG)){const r={width:t,height:t,...e.props,...n};return(0,o.createElement)(i.SVG,r)}return(0,o.isValidElement)(e)?(0,o.cloneElement)(e,{size:t,...n}):e}},4638:(e,t,n)=>{"use strict";n.d(t,{Z:()=>k});var r=n(7462),o=n(9307),i=n(4184),s=n.n(i),a=n(5904),l=n(7180),c=n.n(l),u=n(4333),p=n(4787),d=n(4103),m=n(9685),f=n(9753),g=n(1515),h=n(6580),b=n(2444);const v="Popover";function y(e,t){const{paddingTop:n,paddingBottom:r,paddingLeft:o,paddingRight:i}=(s=t).ownerDocument.defaultView.getComputedStyle(s);var s;const a=n?parseInt(n,10):0,l=r?parseInt(r,10):0,c=o?parseInt(o,10):0,u=i?parseInt(i,10):0;return{x:e.left+c,y:e.top+a,width:e.width-c-u,height:e.height-a-l,left:e.left+c,right:e.right-u,top:e.top+a,bottom:e.bottom-l}}function E(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function w(e,t,n=""){e.style[t]!==n&&(e.style[t]=n)}function _(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const S=(0,o.forwardRef)((({headerTitle:e,onClose:t,children:n,className:i,noArrow:l=!0,isAlternate:S,position:k="bottom right",range:N,focusOnMount:T="firstElement",anchorRef:A,shouldAnchorIncludePadding:R,anchorRect:x,getAnchorRect:L,expandOnMobile:C,animate:O=!0,onClickOutside:D,onFocusOutside:M,__unstableStickyBoundaryElement:F,__unstableSlotName:I=v,__unstableObserveElement:Z,__unstableBoundaryParent:H,__unstableForcePosition:B,__unstableForceXAlignment:P,...U},z)=>{const W=(0,o.useRef)(null),j=(0,o.useRef)(null),G=(0,o.useRef)(),V=(0,u.useViewportMatch)("medium","<"),[K,q]=(0,o.useState)(),Y=(0,g.Z)(I),$=C&&V,[X,J]=(0,u.useResizeObserver)();l=$||l,(0,o.useLayoutEffect)((()=>{if($)return _(G.current,"is-without-arrow",l),_(G.current,"is-alternate",S),E(G.current,"data-x-axis"),E(G.current,"data-y-axis"),w(G.current,"top"),w(G.current,"left"),w(j.current,"maxHeight"),void w(j.current,"maxWidth");const e=()=>{if(!G.current||!j.current)return;let e=function(e,t,n,r=!1,o,i){if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return(0,d.cS)(t,t.ownerDocument||e.current.ownerDocument,i)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return(0,d.cS)((0,a.getRectangleFromRange)(r),r.endContainer.ownerDocument,i);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){const e=(0,d.cS)(r.getBoundingClientRect(),r.ownerDocument,i);return o?e:y(e,r)}const{top:e,bottom:t}=r,n=e.getBoundingClientRect(),s=t.getBoundingClientRect(),l=(0,d.cS)(new window.DOMRect(n.left,n.top,n.width,s.bottom-n.top),e.ownerDocument,i);return o?l:y(l,r)}if(!e.current)return;const{parentNode:s}=e.current,l=s.getBoundingClientRect();return o?l:y(l,s)}(W,x,L,A,R,G.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=G.current;let r,o=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();o=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}var i;H&&(r=null===(i=G.current.closest(".popover-slot"))||void 0===i?void 0:i.parentNode);const s=J.height?J:j.current.getBoundingClientRect(),{popoverTop:c,popoverLeft:u,xAxis:p,yAxis:m,contentHeight:f,contentWidth:g}=(0,d.sw)(e,s,k,F,G.current,o,r,B,P);"number"==typeof c&&"number"==typeof u&&(w(G.current,"top",c+"px"),w(G.current,"left",u+"px")),_(G.current,"is-without-arrow",l||"center"===p&&"middle"===m),_(G.current,"is-alternate",S),E(G.current,"data-x-axis",p),E(G.current,"data-y-axis",m),w(j.current,"maxHeight","number"==typeof f?f+"px":""),w(j.current,"maxWidth","number"==typeof g?g+"px":""),q(({left:"right",right:"left"}[p]||"center")+" "+({top:"bottom",bottom:"top"}[m]||"middle"))};e();const{ownerDocument:t}=G.current,{defaultView:n}=t,r=n.setInterval(e,500);let o;const i=()=>{n.cancelAnimationFrame(o),o=n.requestAnimationFrame(e)};n.addEventListener("click",i),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const s=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(A);let c;return s&&s!==t&&(s.defaultView.addEventListener("resize",e),s.defaultView.addEventListener("scroll",e,!0)),Z&&(c=new n.MutationObserver(e),c.observe(Z,{attributes:!0})),()=>{n.clearInterval(r),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",i),n.cancelAnimationFrame(o),s&&s!==t&&(s.defaultView.removeEventListener("resize",e),s.defaultView.removeEventListener("scroll",e,!0)),c&&c.disconnect()}}),[$,x,L,A,R,k,J,F,Z,H]);const Q=(e,n)=>{if("focus-outside"===e&&M)M(n);else if("focus-outside"===e&&D){const e=new window.MouseEvent("click");Object.defineProperty(e,"target",{get:()=>n.relatedTarget}),c()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),D(e)}else t&&t()},[ee,te]=(0,u.__experimentalUseDialog)({focusOnMount:T,__unstableOnClose:Q,onClose:Q}),ne=(0,u.useMergeRefs)([G,ee,z]),re=Boolean(O&&K)&&(0,b.T)({type:"appear",origin:K});let oe=(0,o.createElement)("div",(0,r.Z)({className:s()("components-popover",i,re,{"is-expanded":$,"is-without-arrow":l,"is-alternate":S})},U,{ref:ne},te,{tabIndex:"-1"}),$&&(0,o.createElement)(f.Z,null),$&&(0,o.createElement)("div",{className:"components-popover__header"},(0,o.createElement)("span",{className:"components-popover__header-title"},e),(0,o.createElement)(m.Z,{className:"components-popover__close",icon:p.Z,onClick:t})),(0,o.createElement)("div",{ref:j,className:"components-popover__content"},(0,o.createElement)("div",{style:{position:"relative"}},X,n)));return Y.ref&&(oe=(0,o.createElement)(h.de,{name:I},oe)),A||x?oe:(0,o.createElement)("span",{ref:W},oe)}));S.Slot=(0,o.forwardRef)((function({name:e=v},t){return(0,o.createElement)(h.g7,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));const k=S},4103:(e,t,n)=>{"use strict";n.d(t,{cS:()=>s,sw:()=>i});var r=n(5736);const o=10;function i(e,t,n="top",i,s,a,l,c,u){const[p,d="center",m]=n.split(" "),f=function(e,t,n,r,i,s,a,l){const{height:c}=t;if(i){const t=i.getBoundingClientRect().top+c-a;if(e.top<=t)return{yAxis:n,popoverTop:Math.min(e.bottom,t)}}let u=e.top+e.height/2;"bottom"===r?u=e.bottom:"top"===r&&(u=e.top);const p={popoverTop:u,contentHeight:(u-c/2>0?c/2:u)+(u+c/2>window.innerHeight?window.innerHeight-u:c/2)},d={popoverTop:e.top,contentHeight:e.top-o-c>0?c:e.top-o},m={popoverTop:e.bottom,contentHeight:e.bottom+o+c>window.innerHeight?window.innerHeight-o-e.bottom:c};let f,g=n,h=null;if(!i&&!l)if("middle"===n&&p.contentHeight===c)g="middle";else if("top"===n&&d.contentHeight===c)g="top";else if("bottom"===n&&m.contentHeight===c)g="bottom";else{g=d.contentHeight>m.contentHeight?"top":"bottom";const e="top"===g?d.contentHeight:m.contentHeight;h=e!==c?e:null}return f="middle"===g?p.popoverTop:"top"===g?d.popoverTop:m.popoverTop,{yAxis:g,popoverTop:f,contentHeight:h}}(e,t,p,m,i,0,a,c),g=function(e,t,n,o,i,s,a,l,c){const{width:u}=t;"left"===n&&(0,r.isRTL)()?n="right":"right"===n&&(0,r.isRTL)()&&(n="left"),"left"===o&&(0,r.isRTL)()?o="right":"right"===o&&(0,r.isRTL)()&&(o="left");const p=Math.round(e.left+e.width/2),d={popoverLeft:p,contentWidth:(p-u/2>0?u/2:p)+(p+u/2>window.innerWidth?window.innerWidth-p:u/2)};let m=e.left;"right"===o?m=e.right:"middle"===s||c||(m=p);let f=e.right;"left"===o?f=e.left:"middle"===s||c||(f=p);const g={popoverLeft:m,contentWidth:m-u>0?u:m},h={popoverLeft:f,contentWidth:f+u>window.innerWidth?window.innerWidth-f:u};let b,v=n,y=null;if(!i&&!l)if("center"===n&&d.contentWidth===u)v="center";else if("left"===n&&g.contentWidth===u)v="left";else if("right"===n&&h.contentWidth===u)v="right";else{v=g.contentWidth>h.contentWidth?"left":"right";const e="left"===v?g.contentWidth:h.contentWidth;u>window.innerWidth&&(y=window.innerWidth),e!==u&&(v="center",d.popoverLeft=window.innerWidth/2)}if(b="center"===v?d.popoverLeft:"left"===v?g.popoverLeft:h.popoverLeft,a){const e=a.getBoundingClientRect();b=Math.min(b,e.right-u),(0,r.isRTL)()||(b=Math.max(b,0))}return{xAxis:v,popoverLeft:b,contentWidth:y}}(e,t,d,m,i,f.yAxis,l,c,u);return{...g,...f}}function s(e,t,n){const{defaultView:r}=t,{frameElement:o}=r;if(!o||t===n.ownerDocument)return e;const i=o.getBoundingClientRect();return new r.DOMRect(e.left+i.left,e.top+i.top,e.width,e.height)}},9753:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9307);let o=0;function i(e){const t=document.scrollingElement||document.body;e&&(o=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=o)}let s=0;function a(){return(0,r.useEffect)((()=>(0===s&&i(!0),++s,()=>{1===s&&i(!1),--s})),[]),null}},3586:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307),o=n(2819);const i=function({shortcut:e,className:t}){if(!e)return null;let n,i;return(0,o.isString)(e)&&(n=e),(0,o.isObject)(e)&&(n=e.display,i=e.ariaLabel),(0,r.createElement)("span",{className:t,"aria-label":i},n)}},4160:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9307),o=n(1515);function i(){const[,e]=(0,r.useState)({}),t=(0,r.useRef)(!0);return(0,r.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function s({name:e,children:t}){const n=(0,o.Z)(e),s=(0,r.useRef)({rerender:i()});return(0,r.useEffect)((()=>(n.registerFill(s),()=>{n.unregisterFill(s)})),[n.registerFill,n.unregisterFill]),n.ref&&n.ref.current?("function"==typeof t&&(t=t(n.fillProps)),(0,r.createPortal)(t,n.ref.current)):null}},159:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9307);n(2560);const o=(0,r.createContext)({slots:{},fills:{},registerSlot:()=>{"undefined"!=typeof process&&process.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}})},9934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(7462),o=n(9307),i=n(4333),s=n(159);const a=(0,o.forwardRef)((function({name:e,fillProps:t={},as:n="div",...a},l){const c=(0,o.useContext)(s.Z),u=(0,o.useRef)();return(0,o.useLayoutEffect)((()=>(c.registerSlot(e,u,t),()=>{c.unregisterSlot(e,u)})),[c.registerSlot,c.unregisterSlot,e]),(0,o.useLayoutEffect)((()=>{c.updateSlot(e,t)})),(0,o.createElement)(n,(0,r.Z)({ref:(0,i.useMergeRefs)([l,u])},a))}))},1515:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307),o=n(159);function i(e){const t=(0,r.useContext)(o.Z),n=t.slots[e]||{},i=t.fills[e],s=(0,r.useMemo)((()=>i||[]),[i]);return{...n,updateSlot:(0,r.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,r.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:s,registerFill:(0,r.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,r.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}},566:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(9307).createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}})},8198:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(7462),o=n(9307),i=n(2819),s=n(566),a=n(2009);function l({name:e,children:t,registerFill:n,unregisterFill:r}){const s=(0,a.Z)(e),l=(0,o.useRef)({name:e,children:t});return(0,o.useLayoutEffect)((()=>(n(e,l.current),()=>r(e,l.current))),[]),(0,o.useLayoutEffect)((()=>{l.current.children=t,s&&s.forceUpdate()}),[t]),(0,o.useLayoutEffect)((()=>{e!==l.current.name&&(r(l.current.name,l.current),l.current.name=e,n(e,l.current))}),[e]),s&&s.node?((0,i.isFunction)(t)&&(t=t(s.props.fillProps)),(0,o.createPortal)(t,s.node)):null}const c=e=>(0,o.createElement)(s.Z.Consumer,null,(({registerFill:t,unregisterFill:n})=>(0,o.createElement)(l,(0,r.Z)({},e,{registerFill:t,unregisterFill:n}))))},6580:(e,t,n)=>{"use strict";n.d(t,{de:()=>c,g7:()=>u});var r=n(7462),o=n(9307),i=n(8198),s=n(8612),a=n(4160),l=n(9934);function c(e){return(0,o.createElement)(o.Fragment,null,(0,o.createElement)(i.Z,e),(0,o.createElement)(a.Z,e))}const u=(0,o.forwardRef)((({bubblesVirtually:e,...t},n)=>e?(0,o.createElement)(l.Z,(0,r.Z)({},t,{ref:n})):(0,o.createElement)(s.Z,t)))},8612:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(7462),o=n(9307),i=n(2819),s=n(566);class a extends o.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:r}=this.props,s=(0,i.map)(r(t,this),(e=>{const t=(0,i.isFunction)(e.children)?e.children(n):e.children;return o.Children.map(t,((e,t)=>{if(!e||(0,i.isString)(e))return e;const n=e.key||t;return(0,o.cloneElement)(e,{key:n})}))})).filter((0,i.negate)(o.isEmptyElement));return(0,o.createElement)(o.Fragment,null,(0,i.isFunction)(e)?e(s):s)}}const l=e=>(0,o.createElement)(s.Z.Consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:i})=>(0,o.createElement)(a,(0,r.Z)({},e,{registerSlot:t,unregisterSlot:n,getFills:i}))))},2009:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307),o=n(566);const i=e=>{const{getSlot:t,subscribe:n}=(0,r.useContext)(o.Z),[i,s]=(0,r.useState)(t(e));return(0,r.useEffect)((()=>(s(t(e)),n((()=>{s(t(e))})))),[e]),i}},9178:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(9307),o=n(2819),i=n(4333),s=n(4638),a=n(3586);const l=(0,r.createElement)("div",{className:"event-catcher"}),c=({eventHandlers:e,child:t,childrenWithPopover:n})=>(0,r.cloneElement)((0,r.createElement)("span",{className:"disabled-element-wrapper"},(0,r.cloneElement)(l,e),(0,r.cloneElement)(t,{children:n}),","),e),u=({child:e,eventHandlers:t,childrenWithPopover:n})=>(0,r.cloneElement)(e,{...t,children:n}),p=(e,t,n)=>{if(1!==r.Children.count(e))return;const o=r.Children.only(e);"function"==typeof o.props[t]&&o.props[t](n)},d=function({children:e,position:t,text:n,shortcut:l}){const[d,m]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),h=(0,i.useDebounce)(g,700),b=t=>{p(e,"onMouseDown",t),document.addEventListener("mouseup",E),m(!0)},v=t=>{p(e,"onMouseUp",t),document.removeEventListener("mouseup",E),m(!1)},y=e=>"mouseUp"===e?v:"mouseDown"===e?b:void 0,E=y("mouseUp"),w=(t,n)=>r=>{if(p(e,t,r),r.currentTarget.disabled)return;if("focus"===r.type&&d)return;h.cancel();const i=(0,o.includes)(["focus","mouseenter"],r.type);i!==f&&(n?h(i):g(i))},_=()=>{h.cancel(),document.removeEventListener("mouseup",E)};if((0,r.useEffect)((()=>_),[]),1!==r.Children.count(e))return e;const S={onMouseEnter:w("onMouseEnter",!0),onMouseLeave:w("onMouseLeave"),onClick:w("onClick"),onFocus:w("onFocus"),onBlur:w("onBlur"),onMouseDown:y("mouseDown")},k=r.Children.only(e),{children:N,disabled:T}=k.props,A=T?c:u,R=(({grandchildren:e,isOver:t,position:n,text:o,shortcut:i})=>(0,r.concatChildren)(e,t&&(0,r.createElement)(s.Z,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,r.createElement)(a.Z,{className:"components-tooltip__shortcut",shortcut:i}))))({grandchildren:N,isOver:f,position:t,text:n,shortcut:l});return A({child:k,eventHandlers:S,childrenWithPopover:R})}},7593:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(4184),o=n.n(r),i=n(9307),s=n(2004);const a=(0,i.forwardRef)((function({as:e="div",className:t,...n},r){return(0,s.k)({as:e,className:o()("components-visually-hidden",t),...n,ref:r})}))},2004:(e,t,n)=>{"use strict";n.d(t,{k:()=>o});var r=n(9307);function o({as:e="div",...t}){return"function"==typeof t.children?t.children(t):(0,r.createElement)(e,t)}},4787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(9307),o=n(444);const i=(0,r.createElement)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,r.createElement)(o.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"}))},7462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})}}]);