(()=>{var e={849:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;t{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e=[],t=0;tlength)&&(t=length);for(var n=0,o=new Array(t);n1?n-1:0),r=1;r/gm),K=d(/\${[\w\W]*}/gm),j=d(/^data-[\-\w.\u00B7-\uFFFF]/),W=d(/^aria-[\-\w]+$/),z=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=d(/^(?:\w+script|data):/i),J=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=d(/^html$/i),q=function(){return"undefined"==typeof window?null:window};return function t(){var n=length>0&&void 0!==arguments[0]?arguments[0]:q(),r=function(e){return t(e)};if(version="2.4.7",removed=[],!n||!document||9!==nodetype)return issupported=!1,r;var a=document,i=document,s=documentfragment,l=htmltemplateelement,c=node,d=element,p=nodefilter,m=namednodemap,f=void 0===m?namednodemap||moznamedattrmap:m,h=htmlformelement,g=domparser,k=trustedtypes,Q=prototype,ee=M(Q,"cloneNode"),te=M(Q,"nextSibling"),ne=M(Q,"childNodes"),oe=M(Q,"parentNode");if("function"==typeof l){var re=createelement("template");content&&ownerdocument&&(i=ownerdocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof createpolicy)return null;var o=null,r="data-tt-policy-suffix";currentscript&&hasattribute(r)&&(o=getattribute(r));var a="dompurify"+(o?"#"+o:"");try{return createpolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return warn("TrustedTypes policy "+a+" could not be created."),null}}(k,a),ie=ae?createhtml(""):"",se=i,le=implementation,ce=createnodeiterator,ue=createdocumentfragment,de=getelementsbytagname,pe=importnode,me={};try{me=R(i).documentMode?documentmode:{}}catch(e){}var fe={};issupported="function"==typeof oe&&le&&void 0!==createhtmldocument&&9!==me;var he,ge,ve=G,ye=Z,Ce=K,Ee=j,be=W,we=Y,Ne=J,Se=z,xe=null,Ae=_({},[].concat(o(L),o(O),o(D),o(I),o(F))),Te=null,ke=_({},[].concat(o(B),o(H),o(V),o(U))),_e=seal(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}})),Re=null,Me=null,Le=!0,Oe=!0,De=!1,$e=!0,Ie=!1,Pe=!1,Fe=!1,Be=!1,He=!1,Ve=!1,Ue=!1,Ge=!0,Ze=!1,Ke=!0,je=!1,We={},ze=null,Ye=_({},["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"]),Je=null,Xe=_({},["audio","video","img","source","image","track"]),qe=null,Qe=_({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://w3/1998/Math/MathML",tt="http://w3/2000/svg",nt="http://w3/1999/xhtml",ot=nt,rt=!1,at=null,it=_({},[et,tt,nt],b),st=["application/xhtml+xml","text/html"],lt=null,ct=createelement("form"),ut=function(e){return e instanceof RegExp||e instanceof Function},dt=function(t){lt&<===t||(t&&"object"===e(t)||(t={}),t=R(t),he=he=-1===indexof(parser_MEDIA_TYPE)?"text/html":parser_MEDIA_TYPE,ge="application/xhtml+xml"===he?b:E,xe="ALLOWED_TAGS"in t?_({},allowed_TAGS,ge):Ae,Te="ALLOWED_ATTR"in t?_({},allowed_ATTR,ge):ke,at="ALLOWED_NAMESPACES"in t?_({},allowed_NAMESPACES,b):it,qe="ADD_URI_SAFE_ATTR"in t?_(R(Qe),add_URI_SAFE_ATTR,ge):Qe,Je="ADD_DATA_URI_TAGS"in t?_(R(Xe),add_DATA_URI_TAGS,ge):Xe,ze="FORBID_CONTENTS"in t?_({},forbid_CONTENTS,ge):Ye,Re="FORBID_TAGS"in t?_({},forbid_TAGS,ge):{},Me="FORBID_ATTR"in t?_({},forbid_ATTR,ge):{},We="USE_PROFILES"in t&&use_PROFILES,Le=!1!==allow_ARIA_ATTR,Oe=!1!==allow_DATA_ATTR,De=allow_UNKNOWN_PROTOCOLS||!1,$e=!1!==allow_SELF_CLOSE_IN_ATTR,Ie=safe_FOR_TEMPLATES||!1,Pe=whole_DOCUMENT||!1,He=return_DOM||!1,Ve=return_DOM_FRAGMENT||!1,Ue=return_TRUSTED_TYPE||!1,Be=force_BODY||!1,Ge=!1!==sanitize_DOM,Ze=sanitize_NAMED_PROPS||!1,Ke=!1!==keep_CONTENT,je=t_PLACE||!1,Se=allowed_URI_REGEXP||Se,ot=namespace||nt,_e=custom_ELEMENT_HANDLING||{},custom_ELEMENT_HANDLING&&ut(tagnamecheck)&&(tagnamecheck=tagnamecheck),custom_ELEMENT_HANDLING&&ut(attributenamecheck)&&(attributenamecheck=attributenamecheck),custom_ELEMENT_HANDLING&&"boolean"==typeof allowcustomizedbuiltinelements&&(allowcustomizedbuiltinelements=allowcustomizedbuiltinelements),Ie&&(Oe=!1),Ve&&(He=!0),We&&(xe=_({},o(F)),Te=[],!0===html&&(_(xe,L),_(Te,B)),!0===svg&&(_(xe,O),_(Te,H),_(Te,U)),!0===svgfilters&&(_(xe,D),_(Te,H),_(Te,U)),!0===mathml&&(_(xe,I),_(Te,V),_(Te,U))),add_TAGS&&(xe===Ae&&(xe=R(xe)),_(xe,add_TAGS,ge)),add_ATTR&&(Te===ke&&(Te=R(Te)),_(Te,add_ATTR,ge)),add_URI_SAFE_ATTR&&_(qe,add_URI_SAFE_ATTR,ge),forbid_CONTENTS&&(ze===Ye&&(ze=R(ze)),_(ze,forbid_CONTENTS,ge)),Ke&&(xe["#text"]=!0),Pe&&_(xe,["html","head","body"]),table&&(_(xe,["tbody"]),delete tbody),u&&u(t),lt=t)},pt=_({},["mi","mo","mn","ms","mtext"]),mt=_({},["foreignobject","desc","title","annotation-xml"]),ft=_({},["title","style","font","a","script"]),ht=_({},O);_(ht,D),_(ht,$);var gt=_({},I);_(gt,P);var vt=function(e){C(removed,{element:e});try{removechild(e)}catch(t){try{outerhtml=ie}catch(t){remove()}}},yt=function(e,t){try{C(removed,{attribute:getattributenode(e),from:t})}catch(e){C(removed,{attribute:null,from:t})}if(removeattribute(e),"is"===e&&!Te[e])if(He||Ve)try{vt(t)}catch(e){}else try{setattribute(e,"")}catch(e){}},Ct=function(e){var t,n;if(Be)e=""+e;else{var o=w(e,/^[\r\n\t ]+/);n=o&&o[0]}"application/xhtml+xml"===he&&ot===nt&&(e=''+e+"");var r=ae?createhtml(e):e;if(ot===nt)try{t=(new g).parseFromString(r,he)}catch(e){}if(!t||!documentelement){t=createdocument(ot,"template",null);try{innerhtml=rt?ie:r}catch(e){}}var a=body||documentelement;return e&&n&&insertbefore(createtextnode(n),childnodes[0]||null),ot===nt?call(t,Pe?"html":"body")[0]:Pe?documentelement:a},Et=function(e){return call(ownerdocument||e,e,show_ELEMENT|show_COMMENT|show_TEXT,null,!1)},bt=function(t){return"object"===e(c)?t instanceof c:t&&"object"===e(t)&&"number"==typeof nodetype&&"string"==typeof nodename},wt=function(e,t,n){fe[e]&&v(fe[e],(function(e){call(r,t,n,lt)}))},Nt=function(e){var t,n;if(wt("beforeSanitizeElements",e,null),(n=e)instanceof h&&("string"!=typeof nodename||"string"!=typeof textcontent||"function"!=typeof removechild||!(attributes instanceof f)||"function"!=typeof removeattribute||"function"!=typeof setattribute||"string"!=typeof namespaceuri||"function"!=typeof insertbefore||"function"!=typeof haschildnodes))return vt(e),!0;if(A(/[\u0080-\uFFFF]/,nodename))return vt(e),!0;var o=ge(nodename);if(wt("uponSanitizeElement",e,{tagName:o,allowedTags:xe}),haschildnodes()&&!bt(firstelementchild)&&(!bt(content)||!bt(firstelementchild))&&A(/<[/\w]/g,innerhtml)&&A(/<[/\w]/g,textcontent))return vt(e),!0;if("select"===o&&A(/=0;--s)insertbefore(ee(i[s],!0),te(e))}return vt(e),!0}return e instanceof d&&!function(e){var t=oe(e);t&&tagname||(t={namespaceURI:ot,tagName:"template"});var n=E(tagname),o=E(tagname);return!!at[namespaceuri]&&(namespaceuri===tt?namespaceuri===nt?"svg"===n:namespaceuri===et?"svg"===n&&("annotation-xml"===o||pt[o]):Boolean(ht[n]):namespaceuri===et?namespaceuri===nt?"math"===n:namespaceuri===tt?"math"===n&&mt[o]:Boolean(gt[n]):namespaceuri===nt?!(namespaceuri===tt&&!mt[o])&&!(namespaceuri===et&&!pt[o])&&!gt[n]&&(ft[n]||!ht[n]):!("application/xhtml+xml"!==he||!at[namespaceuri]))}(e)?(vt(e),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!A(/<\/no(script|embed|frames)/i,innerhtml)?(Ie&&3===nodetype&&(t=textcontent,t=N(t,ve," "),t=N(t,ye," "),t=N(t,Ce," "),textcontent!==t&&(C(removed,{element:clonenode()}),textcontent=t)),wt("afterSanitizeElements",e,null),!1):(vt(e),!0)},St=function(e,t,n){if(Ge&&("id"===t||"name"===t)&&(n in i||n in ct))return!1;if(Oe&&!Me[t]&&A(Ee,t));else if(Le&&A(be,t));else if(!Te[t]||Me[t]){if(!(xt(e)&&(tagnamecheck instanceof RegExp&&A(tagnamecheck,e)||tagnamecheck instanceof Function&&tagnamecheck(e))&&(attributenamecheck instanceof RegExp&&A(attributenamecheck,t)||attributenamecheck instanceof Function&&attributenamecheck(t))||"is"===t&&allowcustomizedbuiltinelements&&(tagnamecheck instanceof RegExp&&A(tagnamecheck,n)||tagnamecheck instanceof Function&&tagnamecheck(n))))return!1}else if(qe[t]);else if(A(Se,N(n,Ne,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Je[e])if(De&&!A(we,N(n,Ne,"")));else if(n)return!1;return!0},xt=function(e){return indexof("-")>0},At=function(t){var n,o,a,i;wt("beforeSanitizeAttributes",t,null);var s=attributes;if(s){var l={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te};for(i=length;i--;){var c=n=s[i],u=name,d=namespaceuri;if(o="value"===u?value:x(value),a=ge(u),attrname=a,attrvalue=o,keepattr=!0,forcekeepattr=void 0,wt("uponSanitizeAttribute",t,l),o=attrvalue,!forcekeepattr&&(yt(u,t),keepattr))if($e||!A(/\/>/i,o)){Ie&&(o=N(o,ve," "),o=N(o,ye," "),o=N(o,Ce," "));var p=ge(nodename);if(St(p,a,o)){if(!Ze||"id"!==a&&"name"!==a||(yt(u,t),o="user-content-"+o),ae&&"object"===e(k)&&"function"==typeof getattributetype)if(d);else switch(getattributetype(p,a)){case"TrustedHTML":o=createhtml(o);break;case"TrustedScriptURL":o=createscripturl(o)}try{d?setattributens(d,u,o):setattribute(u,o),y(removed)}catch(e){}}}else yt(u,t)}wt("afterSanitizeAttributes",t,null)}},Tt=function e(t){var n,o=Et(t);for(wt("beforeSanitizeShadowDOM",t,null);n=nextnode();)wt("uponSanitizeShadowNode",n,null),Nt(n)||(content instanceof s&&e(content),At(n));wt("afterSanitizeShadowDOM",t,null)};return sanitize=function(t){var o,i,l,u,d,p=length>1&&void 0!==arguments[1]?arguments[1]:{};if((rt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!bt(t)){if("function"!=typeof tostring)throw T("toString is not a function");if("string"!=typeof(t=tostring()))throw T("dirty is not a string, aborting")}if(!issupported){if("object"===e(tostatichtml)||"function"==typeof tostatichtml){if("string"==typeof t)return tostatichtml(t);if(bt(t))return tostatichtml(outerhtml)}return t}if(Fe||dt(p),removed=[],"string"==typeof t&&(je=!1),je){if(nodename){var m=ge(nodename);if(!xe[m]||Re[m])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof c)1===(i=(o=Ct("\x3c!----\x3e"))importnode(t,!0)).nodeType&&"BODY"===nodename||"HTML"===nodename?o=i:appendchild(i);else{if(!He&&!Ie&&!Pe&&-1===indexof("<"))return ae&&Ue?createhtml(t):t;if(!(o=Ct(t)))return He?null:Ue?ie:""}o&&Be&&vt(firstchild);for(var f=Et(je?t:o);l=nextnode();)3===nodetype&&l===u||Nt(l)||(content instanceof s&&Tt(content),At(l),u=l);if(u=null,je)return t;if(He){if(Ve)for(d=call(ownerdocument);firstchild;)appendchild(firstchild);else d=o;return(shadowroot||shadowrootmod)&&(d=call(a,d,!0)),d}var h=Pe?outerhtml:innerhtml;return Pe&&xe["!doctype"]&&ownerdocument&&doctype&&name&&A(X,name)&&(h=""+name+"\n"+h),Ie&&(h=N(h,ve," "),h=N(h,ye," "),h=N(h,Ce," ")),ae&&Ue?createhtml(h):h},setconfig=function(e){dt(e),Fe=!0},clearconfig=function(){lt=null,Fe=!1},isvalidattribute=function(e,t,n){lt||dt({});var o=ge(e),r=ge(t);return St(o,r,n)},addhook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],C(fe[e],t))},removehook=function(e){if(fe[e])return y(fe[e])},removehooks=function(e){fe[e]&&(fe[e]=[])},removeallhooks=function(){fe={}},r}()}()},29:()=>{},946:()=>{},194:()=>{},866:()=>{},150:()=>{},562:()=>{},729:()=>{},283:()=>{},847:()=>{},803:()=>{},43:()=>{},440:()=>{},942:()=>{},693:()=>{},203:()=>{},406:()=>{},878:()=>{},658:()=>{},785:()=>{},100:(e,t,n)=>{"use strict";t.O=void 0;const o=n(211);t.O=new Map([[countrycode,/^([A-Z]){1}([0-9][0-9]|[0-9]|[A-Z][0-9][A-Z]|[A-Z][0-9][0-9]|[A-Z][0-9]|[0-9][A-Z]){1}([ ])?([0-9][A-z][A-z]){1}$/i],[gb,/^([A-Z]){1}([0-9][0-9]|[0-9]|[A-Z][0-9][A-Z]|[A-Z][0-9][0-9]|[A-Z][0-9]|[0-9][A-Z]){1}([ ])?([0-9][A-z][A-z]){1}$/i],[je,/^JE\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[gg,/^GY\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[im,/^IM\d[\dA-Z]?[ ]?\d[ABD-HJLN-UW-Z]{2}$/],[countrycode,/^([0-9]{5})(?:-([0-9]{4}))?$/],[countrycode,/^([ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ])\s*([0-9][ABCEGHJKLMNPRSTVWXYZ][0-9])$/i],[ie,/^([AC-FHKNPRTV-Y][0-9]{2}|D6W)[ -]?[0-9AC-FHKNPRTV-Y]{4}$/],[countrycode,/^\d{5}$/],[countrycode,/^\d{3}-\d{4}$/],[countrycode,/^\d{2}[ ]?\d{3}$/],[countrycode,/^\d{4}$/],[countrycode,/^\d{5}$/],[countrycode,/^\d{4}$/],[at,/^(?!0)\d{4}$/],[countrycode,/^(?:0[1-9]|[1-4]\d|5[0-2])\d{3}$/],[countrycode,/^\d{4}[ ]?[A-Z]{2}$/],[countrycode,/^\d{4}$/],[dk,/^\d{4}$/],[se,/^(SE-)?\d{3}[ ]?\d{2}$/],[no,/^\d{4}$/],[countrycode,/^\d{5}[\-]?\d{3}$/],[pt,/^\d{4}([\-]\d{3})?$/],[fi,/^(FI-|AX-)?\d{5}$/],[ax,/^22\d{3}$/],[kr,/^\d{5}$/],[countrycode,/^\d{6}$/],[tw,/^\d{3}(\d{2,3})?$/],[sg,/^\d{6}$/],[dz,/^\d{5}$/],[ad,/^AD\d{3}$/],[ar,/^([A-HJ-NP-Z])?\d{4}([A-Z]{3})?$/],[am,/^(37)?\d{4}$/],[az,/^\d{4}$/],[bh,/^((1[0-2]|[2-9])\d{2})?$/],[bd,/^\d{4}$/],[bb,/^(BB\d{5})?$/],[countrycode,/^\d{6}$/],[bm,/^[A-Z]{2}[ ]?[A-Z0-9]{2}$/],[ba,/^\d{5}$/],[countrycode,/^BBND 1ZZ$/],[bn,/^[A-Z]{2}[ ]?\d{4}$/],[bg,/^\d{4}$/],[kh,/^\d{5}$/],[cv,/^\d{4}$/],[cl,/^\d{7}$/],[cr,/^(\d{4,5}|\d{3}-\d{4})$/],[hr,/^(HR-)?\d{5}$/],[cy,/^\d{4}$/],[cz,/^\d{3}[ ]?\d{2}$/],[do,/^\d{5}$/],[ec,/^([A-Z]\d{4}[A-Z]|(?:[A-Z]{2})?\d{6})?$/],[eg,/^\d{5}$/],[ee,/^\d{5}$/],[fo,/^\d{3}$/],[ge,/^\d{4}$/],[gr,/^\d{3}[ ]?\d{2}$/],[gl,/^39\d{2}$/],[gt,/^\d{5}$/],[ht,/^\d{4}$/],[hn,/^(?:\d{5})?$/],[hu,/^\d{4}$/],[is,/^\d{3}$/],[countrycode,/^\d{6}$/],[id,/^\d{5}$/],[il,/^\d{5,7}$/],[jo,/^\d{5}$/],[countrycode,/^\d{6}$/],[ke,/^\d{5}$/],[kw,/^\d{5}$/],[ky,/^KY[123]-\d{4}$/],[la,/^\d{5}$/],[lv,/^(LV-)?\d{4}$/],[lb,/^(\d{4}([ ]?\d{4})?)?$/],[li,/^(948[5-9])|(949[0-7])$/],[lt,/^(LT-)?\d{5}$/],[lu,/^(L-)?\d{4}$/],[mk,/^\d{4}$/],[my,/^\d{5}$/],[mv,/^\d{5}$/],[mt,/^[A-Z]{3}[ ]?\d{2,4}$/],[mu,/^((\d|[A-Z])\d{4})?$/],[mx,/^\d{5}$/],[md,/^\d{4}$/],[mc,/^980\d{2}$/],[ma,/^\d{5}$/],[np,/^\d{5}$/],[nz,/^\d{4}$/],[ni,/^((\d{4}-)?\d{3}-\d{3}(-\d{1})?)?$/],[ng,/^(\d{6})?$/],[om,/^(PC )?\d{3}$/],[pa,/^\d{4}$/],[pk,/^\d{5}$/],[py,/^\d{4}$/],[ph,/^\d{4}$/],[countrycode,/^\d{2}-\d{3}$/],[pr,/^00[679]\d{2}([ \-]\d{4})?$/],[ro,/^\d{6}$/],[countrycode,/^\d{6}$/],[sm,/^4789\d$/],[sa,/^\d{5}$/],[sn,/^\d{5}$/],[sk,/^\d{3}[ ]?\d{2}$/],[si,/^(SI-)?\d{4}$/],[za,/^\d{4}$/],[lk,/^\d{5}$/],[tj,/^\d{6}$/],[th,/^\d{5}$/],[tn,/^\d{4}$/],[tr,/^\d{5}$/],[tm,/^\d{6}$/],[countrycode,/^\d{5}$/],[uy,/^\d{5}$/],[uz,/^\d{6}$/],[va,/^00120$/],[ve,/^\d{4}$/],[zm,/^\d{5}$/],[as,/^96799$/],[cc,/^6799$/],[ck,/^\d{4}$/],[rs,/^\d{5,6}$/],[countrycode,/^8\d{4}$/],[cs,/^\d{5}$/],[yu,/^\d{5}$/],[cx,/^6798$/],[et,/^\d{4}$/],[fk,/^FIQQ 1ZZ$/],[nf,/^2899$/],[fm,/^(9694[1-4])([ \-]\d{4})?$/],[gf,/^9[78]3\d{2}$/],[gn,/^\d{3}$/],[gp,/^9[78][01]\d{2}$/],[gs,/^SIQQ 1ZZ$/],[gu,/^969[123]\d([ \-]\d{4})?$/],[gw,/^\d{4}$/],[hm,/^\d{4}$/],[iq,/^\d{5}$/],[kg,/^\d{6}$/],[lr,/^\d{4}$/],[ls,/^\d{3}$/],[mg,/^\d{3}$/],[mh,/^969[67]\d([ \-]\d{4})?$/],[mn,/^\d{6}$/],[mp,/^9695[012]([ \-]\d{4})?$/],[mq,/^9[78]2\d{2}$/],[nc,/^988\d{2}$/],[ne,/^\d{4}$/],[vi,/^008(([0-4]\d)|(5[01]))([ \-]\d{4})?$/],[vn,/^\d{6}$/],[pf,/^987\d{2}$/],[pg,/^\d{3}$/],[pm,/^9[78]5\d{2}$/],[pn,/^PCRN 1ZZ$/],[pw,/^96940$/],[re,/^9[78]4\d{2}$/],[sh,/^(ASCN|STHL) 1ZZ$/],[sj,/^\d{4}$/],[so,/^\d{5}$/],[sz,/^[HLMS]\d{3}$/],[tc,/^TKCA 1ZZ$/],[wf,/^986\d{2}$/],[xk,/^\d{5}$/],[yt,/^976\d{2}$/],[pe,/^\d{5}$/],[intl,/^(?:[A-Z0-9]+([- ]?[A-Z0-9]+)*)?$/i]])},211:(e,t)=>{"use strict";var n;defineproperty(t,"__esModule",{value:!0}),countrycode=void 0,(n=countrycode||(countrycode={})).UK="UK",gb="GB",je="JE",gg="GG",im="IM",n="US",n="CA",ie="IE",n="DE",n="JP",n="FR",n="AU",n="IT",n="CH",at="AT",n="ES",n="NL",n="BE",dk="DK",se="SE",no="NO",n="BR",pt="PT",fi="FI",ax="AX",kr="KR",n="CN",tw="TW",sg="SG",dz="DZ",ad="AD",ar="AR",am="AM",az="AZ",bh="BH",bd="BD",bb="BB",n="BY",bm="BM",ba="BA",n="IO",bn="BN",bg="BG",kh="KH",cv="CV",cl="CL",cr="CR",hr="HR",cy="CY",cz="CZ",do="DO",ec="EC",eg="EG",ee="EE",fo="FO",ge="GE",gr="GR",gl="GL",gt="GT",ht="HT",hn="HN",hu="HU",is="IS",n="IN",id="ID",il="IL",jo="JO",n="KZ",ke="KE",kw="KW",ky="KY",la="LA",lv="LV",lb="LB",li="LI",lt="LT",lu="LU",mk="MK",my="MY",mv="MV",mt="MT",mu="MU",mx="MX",md="MD",mc="MC",ma="MA",np="NP",nz="NZ",ni="NI",ng="NG",om="OM",pa="PA",pk="PK",py="PY",ph="PH",n="PL",pr="PR",ro="RO",n="RU",sm="SM",sa="SA",sn="SN",sk="SK",si="SI",za="ZA",lk="LK",tj="TJ",th="TH",tn="TN",tr="TR",tm="TM",n="UA",uy="UY",uz="UZ",va="VA",ve="VE",zm="ZM",as="AS",cc="CC",ck="CK",rs="RS",n="ME",cs="CS",yu="YU",cx="CX",et="ET",fk="FK",nf="NF",fm="FM",gf="GF",gn="GN",gp="GP",gs="GS",gu="GU",gw="GW",hm="HM",iq="IQ",kg="KG",lr="LR",ls="LS",mg="MG",mh="MH",mn="MN",mp="MP",mq="MQ",nc="NC",ne="NE",vi="VI",vn="VN",pf="PF",pg="PG",pm="PM",pn="PN",pw="PW",re="RE",sh="SH",sj="SJ",so="SO",sz="SZ",tc="TC",wf="WF",xk="XK",yt="YT",pe="PE",intl="INTL"}},t={};function n(o){var r=t[o];if(void 0!==r)return exports;var a=t[o]={exports:{}};return e[o].call(exports,a,exports,n),exports}n.n=e=>{var t=e&&e.__esModule?()=>default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&defineproperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&tostringtag&&defineproperty(e,tostringtag,{value:"Module"}),defineproperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{Button:()=>ne,CheckboxControl:()=>re,CheckboxList:()=>ae,Chip:()=>ie,FormStep:()=>pe,FormattedMonetaryAmount:()=>Te,Label:()=>ke,Panel:()=>Me,RadioControl:()=>$e,RadioControlAccordion:()=>Ie,RadioControlOption:()=>Oe,RadioControlOptionLayout:()=>Le,RemovableChip:()=>ce,SortSelect:()=>Pe,Spinner:()=>ee,StoreNotice:()=>je,StoreNoticesContainer:()=>Ot,Subtotal:()=>jt,TextInput:()=>$t,Textarea:()=>Dt,Title:()=>ue,TotalsFees:()=>zt,TotalsItem:()=>Zt,TotalsTaxes:()=>Wt,TotalsWrapper:()=>Yt,ValidatedTextInput:()=>Ut,ValidationInputError:()=>Pt});const e=react;var t=n.n(e);function r(){return r=assign?bind():function(e){for(var t=1;t(0===C&&y(!0),++C,()=>{1===C&&y(!1),--C})),[]),null}warning;const b=(0,createcontext)({slots:{},fills:{},registerSlot:()=>{"undefined"!=typeof process&&env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function w(e){const t=(0,usecontext)(b),n=slots[e]||{},o=fills[e],r=(0,usememo)((()=>o||[]),[o]);return{...n,updateSlot:(0,usecallback)((n=>{updateslot(e,n)}),[e,updateslot]),unregisterSlot:(0,usecallback)((n=>{unregisterslot(e,n)}),[e,unregisterslot]),fills:r,registerFill:(0,usecallback)((n=>{registerfill(e,n)}),[e,registerfill]),unregisterFill:(0,usecallback)((n=>{unregisterfill(e,n)}),[e,unregisterfill])}}const N=(0,createcontext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function S({name:e,children:t,registerFill:n,unregisterFill:o}){const r=(e=>{const{getSlot:t,subscribe:n}=(0,usecontext)(N),[o,r]=(0,usestate)(t(e));return(0,useeffect)((()=>(r(t(e)),n((()=>{r(t(e))})))),[e]),o})(e),i=(0,useref)({name:e,children:t});return(0,uselayouteffect)((()=>(n(e,current),()=>o(e,current))),[]),(0,uselayouteffect)((()=>{children=t,r&&forceupdate()}),[t]),(0,uselayouteffect)((()=>{e!==name&&(o(name,current),name=e,n(e,current))}),[e]),r&&node?((0,isfunction)(t)&&(t=t(fillprops)),(0,createportal)(t,node)):null}const x=e=>(0,createelement)(consumer,null,(({registerFill:t,unregisterFill:n})=>(0,createelement)(S,r({},e,{registerFill:t,unregisterFill:n}))));class A extends component{constructor(){super(arguments),isunmounted=!1,bindnode=bind(this)}componentDidMount(){const{registerSlot:e}=props;e(name,this)}componentWillUnmount(){const{unregisterSlot:e}=props;isunmounted=!0,e(name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:o}=props;name!==t&&(n(name),o(t,this))}bindNode(e){node=e}forceUpdate(){isunmounted||forceupdate()}render(){const{children:e,name:t,fillProps:n={},getFills:o}=props,r=(0,map)(o(t,this),(e=>{const t=(0,isfunction)(children)?children(n):children;return map(t,((e,t)=>{if(!e||(0,isstring)(e))return e;const n=key||t;return(0,cloneelement)(e,{key:n})}))})).filter((0,negate)(isemptyelement));return(0,createelement)(fragment,null,(0,isfunction)(e)?e(r):r)}}const T=e=>(0,createelement)(consumer,null,(({registerSlot:t,unregisterSlot:n,getFills:o})=>(0,createelement)(A,r({},e,{registerSlot:t,unregisterSlot:n,getFills:o}))));function k(){const[,e]=(0,usestate)({}),t=(0,useref)(!0);return(0,useeffect)((()=>()=>{current=!1}),[]),()=>{current&&e({})}}function _({name:e,children:t}){const n=w(e),o=(0,useref)({rerender:k()});return(0,useeffect)((()=>(registerfill(o),()=>{unregisterfill(o)})),[registerfill,unregisterfill]),ref&¤t?("function"==typeof t&&(t=t(fillprops)),(0,createportal)(t,current)):null}const R=(0,forwardref)((function({name:e,fillProps:t={},as:n="div",...o},i){const s=(0,usecontext)(b),l=(0,useref)();return(0,uselayouteffect)((()=>(registerslot(e,l,t),()=>{unregisterslot(e,l)})),[registerslot,unregisterslot,e]),(0,uselayouteffect)((()=>{updateslot(e,t)})),(0,createelement)(n,r({ref:(0,usemergerefs)([i,l])},o))}));function M(e){return(0,createelement)(fragment,null,(0,createelement)(x,e),(0,createelement)(_,e))}const L=(0,forwardref)((({bubblesVirtually:e,...t},n)=>e?(0,createelement)(R,r({},t,{ref:n})):(0,createelement)(T,t)));function O(e){return"appear"===e?"top":"left"}const D="Popover";function $(e,t){const{paddingTop:n,paddingBottom:o,paddingLeft:r,paddingRight:a}=(i=t)getcomputedstyle(i);var i;const s=n?parseInt(n,10):0,l=o?parseInt(o,10):0,c=r?parseInt(r,10):0,u=a?parseInt(a,10):0;return{x:left+c,y:top+s,width:width-c-u,height:height-s-l,left:left+c,right:right-u,top:top+s,bottom:bottom-l}}function I(e,t,n){n?getattribute(t)!==n&&setattribute(t,n):hasattribute(t)&&removeattribute(t)}function P(e,t,n=""){style[t]!==n&&(style[t]=n)}function F(e,t,n){n?contains(t)||add(t):contains(t)&&remove(t)}const B=(0,forwardref)((({headerTitle:e,onClose:t,children:n,className:o,noArrow:i=!0,isAlternate:l,position:c="bottom right",range:m,focusOnMount:v="firstElement",anchorRef:y,shouldAnchorIncludePadding:C,anchorRect:b,getAnchorRect:N,expandOnMobile:S,animate:x=!0,onClickOutside:A,onFocusOutside:T,__unstableStickyBoundaryElement:k,__unstableSlotName:_=D,__unstableObserveElement:R,__unstableBoundaryParent:L,__unstableForcePosition:B,__unstableForceXAlignment:H,...V},U)=>{const G=(0,useref)(null),Z=(0,useref)(null),K=(0,useref)(),j=(0,useviewportmatch)("medium","<"),[W,z]=(0,usestate)(),Y=w(_),J=S&&j,[q,Q]=(0,useresizeobserver)();i=J||i,(0,uselayouteffect)((()=>{if(J)return F(current,"is-without-arrow",i),F(current,"is-alternate",l),I(current,"data-x-axis"),I(current,"data-y-axis"),P(current,"top"),P(current,"left"),P(current,"maxHeight"),void P(current,"maxWidth");const e=()=>{if(!current||!current)return;let e=function(e,t,n,o=!1,r,a){if(t)return t;if(n){if(!current)return;const t=n(current);return g(t,ownerdocument||ownerdocument,a)}if(!1!==o){if(!(o&&range&&element&&domrect))return;if("function"==typeof(null==o?void 0:clonerange))return g((0,getrectanglefromrange)(o),ownerdocument,a);if("function"==typeof(null==o?void 0:getboundingclientrect)){const e=g(getboundingclientrect(),ownerdocument,a);return r?e:$(e,o)}const{top:e,bottom:t}=o,n=getboundingclientrect(),i=getboundingclientrect(),s=g(new domrect(left,top,width,top),ownerdocument,a);return r?s:$(s,o)}if(!current)return;const{parentNode:i}=current,s=getboundingclientrect();return r?s:$(s,i)}(G,b,N,y,C,current);if(!e)return;const{offsetParent:t,ownerDocument:n}=current;let o,r=0;if(t&&t!==body){const n=getboundingclientrect();r=top,e=new domrect(left,top,width,height)}var a;L&&(o=null===(a=closest(".popover-slot"))||void 0===a?void 0:parentnode);const s=height?Q:getboundingclientrect(),{popoverTop:u,popoverLeft:d,xAxis:m,yAxis:f,contentHeight:v,contentWidth:E}=function(e,t,n="top",o,r,a,i,s,l){const[c,u="center",d]=split(" "),p=function(e,t,n,o,r,a,i,s){const{height:l}=t;if(r){const t=getboundingclientrect().top+l-i;if(top<=t)return{yAxis:n,popoverTop:min(bottom,t)}}let c=top+height/2;"bottom"===o?c=bottom:"top"===o&&(c=top);const u={popoverTop:c,contentHeight:(c-l/2>0?l/2:c)+(c+l/2>innerheight?innerheight-c:l/2)},d={popoverTop:top,contentHeight:top-10-l>0?l:top-10},p={popoverTop:bottom,contentHeight:bottom+10+l>innerheight?bottom:l};let m,f=n,h=null;if(!r&&!s)if("middle"===n&&contentheight===l)f="middle";else if("top"===n&&contentheight===l)f="top";else if("bottom"===n&&contentheight===l)f="bottom";else{f=contentheight>contentheight?"top":"bottom";const e="top"===f?contentheight:contentheight;h=e!==l?e:null}return m="middle"===f?popovertop:"top"===f?popovertop:popovertop,{yAxis:f,popoverTop:m,contentHeight:h}}(e,t,c,d,o,0,a,s),m=function(e,t,n,o,r,a,i,s,l){const{width:c}=t;"left"===n&&(0,isrtl)()?n="right":"right"===n&&(0,isrtl)()&&(n="left"),"left"===o&&(0,isrtl)()?o="right":"right"===o&&(0,isrtl)()&&(o="left");const u=round(left+width/2),d={popoverLeft:u,contentWidth:(u-c/2>0?c/2:u)+(u+c/2>innerwidth?innerwidth-u:c/2)};let p=left;"right"===o?p=right:"middle"===a||l||(p=u);let m=right;"left"===o?m=left:"middle"===a||l||(m=u);const f={popoverLeft:p,contentWidth:p-c>0?c:p},g={popoverLeft:m,contentWidth:m+c>innerwidth?innerwidth-m:c};let v,y=n,C=null;if(!r&&!s)if("center"===n&&contentwidth===c)y="center";else if("left"===n&&contentwidth===c)y="left";else if("right"===n&&contentwidth===c)y="right";else{y=contentwidth>contentwidth?"left":"right";const e="left"===y?contentwidth:contentwidth;c>innerwidth&&(C=innerwidth),e!==c&&(y="center",popoverleft=innerwidth/2)}if(v="center"===y?popoverleft:"left"===y?popoverleft:popoverleft,i){const e=getboundingclientrect();v=min(v,right-c),(0,isrtl)()||(v=max(v,0))}return{xAxis:y,popoverLeft:v,contentWidth:C}}(e,t,u,d,o,yaxis,i,s,l);return{...m,...p}}(e,s,c,k,current,r,o,B,H);"number"==typeof u&&"number"==typeof d&&(P(current,"top",u+"px"),P(current,"left",d+"px")),F(current,"is-without-arrow",i||"center"===m&&"middle"===f),F(current,"is-alternate",l),I(current,"data-x-axis",m),I(current,"data-y-axis",f),P(current,"maxHeight","number"==typeof v?v+"px":""),P(current,"maxWidth","number"==typeof E?E+"px":""),z(({left:"right",right:"left"}[m]||"center")+" "+({top:"bottom",bottom:"top"}[f]||"middle"))};e();const{ownerDocument:t}=current,{defaultView:n}=t,o=setinterval(e,500);let r;const a=()=>{cancelanimationframe(r),r=requestanimationframe(e)};addeventlistener("click",a),addeventlistener("resize",e),addeventlistener("scroll",e,!0);const s=function(e){if(e)return endcontainer?ownerdocument:top?ownerdocument:ownerdocument}(y);let u;return s&&s!==t&&(addeventlistener("resize",e),addeventlistener("scroll",e,!0)),R&&(u=new mutationobserver(e),observe(R,{attributes:!0})),()=>{clearinterval(o),removeeventlistener("resize",e),removeeventlistener("scroll",e,!0),removeeventlistener("click",a),cancelanimationframe(r),s&&s!==t&&(removeeventlistener("resize",e),removeeventlistener("scroll",e,!0)),u&&disconnect()}}),[J,b,N,y,C,c,Q,k,R,L]);const ee=(e,n)=>{if("focus-outside"===e&&T)T(n);else if("focus-outside"===e&&A){const e=new mouseevent("click");defineproperty(e,"target",{get:()=>relatedtarget}),u()("Popover onClickOutside prop",{since:"5.3",alternative:"onFocusOutside"}),A(e)}else t&&t()},[te,ne]=(0,d.__experimentalUseDialog)({focusOnMount:v,__unstableOnClose:ee,onClose:ee}),oe=(0,usemergerefs)([K,te,U]),re=Boolean(x&&W)&&function(e){if("loading"===type)return s()("components-animate__loading");const{type:t,origin:n=O(t)}=e;if("appear"===t){const[e,t="center"]=split(" ");return s()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?s()("components-animate__slide-in","is-from-"+n):void 0}({type:"appear",origin:W});let ae=(0,createelement)("div",r({className:s()("components-popover",o,re,{"is-expanded":J,"is-without-arrow":i,"is-alternate":l})},V,{ref:oe},ne,{tabIndex:"-1"}),J&&(0,createelement)(E,null),J&&(0,createelement)("div",{className:"components-popover__header"},(0,createelement)("span",{className:"components-popover__header-title"},e),(0,createelement)(X,{className:"components-popover__close",icon:f,onClick:t})),(0,createelement)("div",{ref:Z,className:"components-popover__content"},(0,createelement)("div",{style:{position:"relative"}},q,n)));return ref&&(ae=(0,createelement)(M,{name:_},ae)),y||b?ae:(0,createelement)("span",{ref:G},ae)}));slot=(0,forwardref)((function({name:e=D},t){return(0,createelement)(L,{bubblesVirtually:!0,name:e,className:"popover-slot",ref:t})}));const H=B,V=function({shortcut:e,className:t}){if(!e)return null;let n,o;return(0,isstring)(e)&&(n=e),(0,isobject)(e)&&(n=display,o=arialabel),(0,createelement)("span",{className:t,"aria-label":o},n)},U=(0,createelement)("div",{className:"event-catcher"}),G=({eventHandlers:e,child:t,childrenWithPopover:n})=>(0,cloneelement)((0,createelement)("span",{className:"disabled-element-wrapper"},(0,cloneelement)(U,e),(0,cloneelement)(t,{children:n}),","),e),Z=({child:e,eventHandlers:t,childrenWithPopover:n})=>(0,cloneelement)(e,{...t,children:n}),K=(e,t,n)=>{if(1!==count(e))return;const o=only(e);"function"==typeof props[t]&&props[t](n)},j=function({children:e,position:t,text:n,shortcut:o}){const[r,i]=(0,usestate)(!1),[s,c]=(0,usestate)(!1),u=(0,usedebounce)(c,700),p=t=>{K(e,"onMouseDown",t),addeventlistener("mouseup",h),i(!0)},m=t=>{K(e,"onMouseUp",t),removeeventlistener("mouseup",h),i(!1)},f=e=>"mouseUp"===e?m:"mouseDown"===e?p:void 0,h=f("mouseUp"),g=(t,n)=>o=>{if(K(e,t,o),disabled)return;if("focus"===type&&r)return;cancel();const a=(0,includes)(["focus","mouseenter"],type);a!==s&&(n?u(a):c(a))},v=()=>{cancel(),removeeventlistener("mouseup",h)};if((0,useeffect)((()=>v),[]),1!==count(e))return e;const y={onMouseEnter:g("onMouseEnter",!0),onMouseLeave:g("onMouseLeave"),onClick:g("onClick"),onFocus:g("onFocus"),onBlur:g("onBlur"),onMouseDown:f("mouseDown")},C=only(e),{children:E,disabled:b}=props,w=b?G:Z,N=(({grandchildren:e,isOver:t,position:n,text:o,shortcut:r})=>(0,concatchildren)(e,t&&(0,createelement)(H,{focusOnMount:!1,position:n,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,createelement)(V,{className:"components-tooltip__shortcut",shortcut:r}))))({grandchildren:E,isOver:s,position:t,text:n,shortcut:o});return w({child:C,eventHandlers:y,childrenWithPopover:N})},W=function({icon:e,className:t,...n}){const o=["dashicon","dashicons","dashicons-"+e,t].filter(Boolean).join(" ");return(0,createelement)("span",r({className:o},n))},z=function({icon:e=null,size:t=24,...n}){if("string"==typeof e)return(0,createelement)(W,r({icon:e},n));if((0,isvalidelement)(e)&&W===type)return(0,cloneelement)(e,{...n});if("function"==typeof e)return prototype instanceof component?(0,createelement)(e,{size:t,...n}):e({size:t,...n});if(e&&("svg"===type||type===svg)){const o={width:t,height:t,props,...n};return(0,createelement)(svg,o)}return(0,isvalidelement)(e)?(0,cloneelement)(e,{size:t,...n}):e},Y=(0,forwardref)((function({as:e="div",className:t,...n},o){return function({as:e="div",...t}){return"function"==typeof children?children(t):(0,createelement)(e,t)}({as:e,className:s()("components-visually-hidden",t),...n,ref:o})})),J=["onMouseDown","onClick"],X=(0,forwardref)((function(e,t){const{href:n,target:o,isSmall:i,isPressed:c,isBusy:d,isDestructive:p,className:m,disabled:f,icon:h,iconPosition:g="left",iconSize:v,showTooltip:y,tooltipPosition:C,shortcut:E,label:b,children:w,text:N,variant:S,__experimentalIsFocusable:x,describedBy:A,...T}=function({isDefault:e,isPrimary:t,isSecondary:n,isTertiary:o,isLink:r,variant:a,...i}){let s=a;var l,c,d,p,m;return t&&(null!==(l=s)&&void 0!==l||(s="primary")),o&&(null!==(c=s)&&void 0!==c||(s="tertiary")),n&&(null!==(d=s)&&void 0!==d||(s="secondary")),e&&(u()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"'}),null!==(p=s)&&void 0!==p||(s="secondary")),r&&(null!==(m=s)&&void 0!==m||(s="link")),{...i,variant:s}}(e),k=s()("components-button",m,{"is-secondary":"secondary"===S,"is-primary":"primary"===S,"is-small":i,"is-tertiary":"tertiary"===S,"is-pressed":c,"is-busy":d,"is-link":"link"===S,"is-destructive":p,"has-text":!!h&&!!w,"has-icon":!!h}),_=f&&!x,R=void 0===n||_?"button":"a",M="a"===R?{href:n,target:o}:{type:"button",disabled:_,"aria-pressed":c};if(f&&x){M["aria-disabled"]=!0;for(const e of J)T[e]=e=>{stoppropagation(),preventdefault()}}const L=!_&&(y&&b||E||!!b&&(!w||(0,isarray)(w)&&!length)&&!1!==y),O=A?(0,uniqueid)():null,D=T["aria-describedby"]||O,$=(0,createelement)(R,r({},M,T,{className:k,"aria-label":T["aria-label"]||b,"aria-describedby":D,ref:t}),h&&"left"===g&&(0,createelement)(z,{icon:h,size:v}),N&&(0,createelement)(fragment,null,N),h&&"right"===g&&(0,createelement)(z,{icon:h,size:v}),w);return L?(0,createelement)(fragment,null,(0,createelement)(j,{text:A||b,shortcut:E,position:C},$),A&&(0,createelement)(Y,null,(0,createelement)("span",{id:O},A))):(0,createelement)(fragment,null,$,A&&(0,createelement)(Y,null,(0,createelement)("span",{id:O},A)))}));var q=n(849),Q=n.n(q);n(29),n(440);const ee=()=>(0,createelement)("span",{className:"wc-block-components-spinner","aria-hidden":"true"}),te=({className:t,showSpinner:n=!1,children:o,variant:r="contained",...a})=>{const i=Q()("wc-block-components-button","wp-element-button",t,r,{"wc-block-components-button--loading":n});return(0,createelement)(X,{className:i,...a},n&&(0,createelement)(ee,null),(0,createelement)("span",{className:"wc-block-components-button__text"},o))},ne=te;n(866);const oe=({className:t,label:n,id:o,onChange:r,children:a,hasError:i=!1,checked:s=!1,disabled:l=!1,...c})=>{const u=(0,useinstanceid)(oe),p=o||`checkbox-control-${u}`;return(0,createelement)("div",{className:Q()("wc-block-components-checkbox",{"has-error":i},t)},(0,createelement)("label",{htmlFor:p},(0,createelement)("input",{id:p,className:"wc-block-components-checkbox__input",type:"checkbox",onChange:e=>r(checked),"aria-invalid":!0===i,checked:s,disabled:l,...c}),(0,createelement)("svg",{className:"wc-block-components-checkbox__mark","aria-hidden":"true",xmlns:"http://w3/2000/svg",viewBox:"0 0 24 20"},(0,createelement)("path",{d:"M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"})),n&&(0,createelement)("span",{className:"wc-block-components-checkbox__label"},n),a))},re=oe;n(150);const ae=({className:t,onChange:n,options:o=[],checked:r=[],isLoading:i=!1,isDisabled:s=!1,limit:l=10})=>{const[c,u]=(0,usestate)(!1),d=(0,usememo)((()=>[array(5)].map(((t,n)=>(0,createelement)("li",{key:n,style:{width:floor(75*random())+25+"%"}}," ")))),[]),p=(0,usememo)((()=>{const t=length-l;return!c&&(0,createelement)("li",{key:"show-more",className:"show-more"},(0,createelement)("button",{onClick:()=>{u(!0)},"aria-expanded":!1,"aria-label":(0,sprintf)((0,h._n)("Show %s more option","Show %s more options",t,"woocommerce"),t)},(0,sprintf)((0,h._n)("Show %s more","Show %s more",t,"woocommerce"),t)))}),[o,l,c]),m=(0,usememo)((()=>c&&(0,createelement)("li",{key:"show-less",className:"show-less"},(0,createelement)("button",{onClick:()=>{u(!1)},"aria-expanded":!0,"aria-label":(0,h.__)("Show less options","woocommerce")},(0,h.__)("Show less","woocommerce")))),[c]),f=(0,usememo)((()=>{const t=length>l+5;return(0,createelement)(fragment,null,map(((o,i)=>(0,createelement)(fragment,{key:value},(0,createelement)("li",{...t&&!c&&i>=l&&{hidden:!0}},(0,createelement)(oe,{id:value,className:"wc-block-checkbox-list__checkbox",label:label,checked:includes(value),onChange:()=>{n(value)},disabled:s})),t&&i===l-1&&p))),t&&m)}),[o,n,r,c,l,m,p,s]),g=Q()("wc-block-checkbox-list","wc-block-components-checkbox-list",{"is-loading":i},t);return(0,createelement)("ul",{className:g},i?d:f)};n(562);const ie=({text:t,screenReaderText:n="",element:o="li",className:r="",radius:a="small",children:i=null,...s})=>{const l=o,c=Q()(r,"wc-block-components-chip","wc-block-components-chip--radius-"+a),u=Boolean(n&&n!==t);return(0,createelement)(l,{className:c,...s},(0,createelement)("span",{"aria-hidden":u,className:"wc-block-components-chip__text"},t),u&&(0,createelement)("span",{className:"screen-reader-text"},n),i)},se=(0,forwardref)((function({icon:e,size:t=24,...n},o){return(0,cloneelement)(e,{width:t,height:t,...n,ref:o})})),le=(0,createelement)(svg,{xmlns:"http://w3/2000/svg",viewBox:"0 0 24 24"},(0,createelement)(path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),ce=({ariaLabel:t="",className:n="",disabled:o=!1,onRemove:r=(()=>{}),removeOnAnyClick:a=!1,text:i,screenReaderText:s="",...l})=>{const c=a?"span":"button";if(!t){const e=s&&"string"==typeof s?s:i;t="string"!=typeof e?(0,h.__)("Remove","woocommerce"):(0,sprintf)((0,h.__)('Remove "%s"',"woocommerce"),e)}const u={"aria-label":t,disabled:o,onClick:r,onKeyDown:e=>{"Backspace"!==key&&"Delete"!==key||r()}},d=a?u:{},p=a?{"aria-hidden":!0}:u;return(0,createelement)(ie,{...l,...d,className:Q()(n,"is-removable"),element:a?"button":element,screenReaderText:s,text:i},(0,createelement)(c,{className:"wc-block-components-chip__remove",...p},(0,createelement)(se,{className:"wc-block-components-chip__remove-icon",icon:le,size:16,role:"img"})))};n(729),n(406);const ue=({children:t,className:n="",headingLevel:o,...r})=>{const a=Q()("wc-block-components-title",n),i=`h${o}`;return(0,createelement)(i,{className:a,...r},t)},de=({title:t,stepHeadingContent:n})=>(0,createelement)("div",{className:"wc-block-components-checkout-step__heading"},(0,createelement)(ue,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!n&&(0,createelement)("span",{className:"wc-block-components-checkout-step__heading-content"},n)),pe=({id:t,className:n,title:o,legend:r,description:a,children:i,disabled:s=!1,showStepNumber:l=!0,stepHeadingContent:c=(()=>{})})=>{const u=r||o?"fieldset":"div";return(0,createelement)(u,{className:Q()(n,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":l,"wc-block-components-checkout-step--disabled":s}),id:t,disabled:s},!(!r&&!o)&&(0,createelement)("legend",{className:"screen-reader-text"},r||o),!!o&&(0,createelement)(de,{title:o,stepHeadingContent:c()}),(0,createelement)("div",{className:"wc-block-components-checkout-step__container"},!!a&&(0,createelement)("p",{className:"wc-block-components-checkout-step__description"},a),(0,createelement)("div",{className:"wc-block-components-checkout-step__content"},i)))};function me(){}function fe(e){return!!(e||"").match(/\d/)}function he(e){return null==e}function ge(e){return replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function ve(e,t){void 0===t&&(t=!0);var n="-"===e[0],o=n&&t,r=(e=replace("-","")).split(".");return{beforeDecimal:r[0],afterDecimal:r[1]||"",hasNagation:n,addNegation:o}}function ye(e,t,n){for(var o="",r=n?"0":"",a=0;a<=t-1;a++)o+=e[a]||r;return o}function Ce(e,t){return Array(t+1).join(e)}function Ee(e,t){if(value=value,null!==e){if(createtextrange){var n=createtextrange();return move("character",t),select(),!0}return selectionstart||0===selectionstart?(focus(),setselectionrange(t,t),!0):(focus(),!1)}}function be(e,t,n){return min(max(e,t),n)}function we(e){return max(selectionstart,selectionend)}var Ne={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:me,onChange:me,onKeyDown:me,onMouseUp:me,onFocus:me,onBlur:me,isAllowed:function(){return!0}},Se=function(e){function n(t){call(this,t);var n=defaultvalue;validateprops();var o=formatvalueprop(n);state={value:o,numAsString:removeformatting(o),mounted:!1},selectionbeforeinput={selectionStart:0,selectionEnd:0},onchange=bind(this),onkeydown=bind(this),onmouseup=bind(this),onfocus=bind(this),onblur=bind(this)}return e&&(n.__proto__=e),prototype=create(e&&prototype),constructor=n,componentdidmount=function(){setstate({mounted:!0})},componentdidupdate=function(e){updatevalueifrequired(e)},componentwillunmount=function(){clearTimeout(focustimeout),clearTimeout(caretpositiontimeout)},updatevalueifrequired=function(e){var t=this,n=props,o=state,r=focusedelm,a=value,i=numasstring;if(void 0===i&&(i=""),e!==n){validateprops();var s=formatnumstring(i),l=he(value)?s:formatvalueprop(),c=removeformatting(l),u=parseFloat(c),d=parseFloat(i);(isNaN(u)&&isNaN(d)||u===d)&&s===a&&(null!==r||l===a)||updatevalue({formattedValue:l,numAsString:c,input:r,source:"prop",event:null})}},getfloatstring=function(e){void 0===e&&(e="");var t=decimalscale,n=getseparators().decimalSeparator,o=getnumberregex(!0),r="-"===e[0];r&&(e=replace("-","")),n&&0===t&&(e=split(n)[0]);var a=(e=(match(o)||[]).join("").replace(n,".")).indexOf(".");return-1!==a&&(e=substring(0,a)+"."+substring(a+1,length).replace(new RegExp(ge(n),"g"),"")),r&&(e="-"+e),e},getnumberregex=function(e,t){var n=props,o=format,r=decimalscale,a=customnumerals,i=getseparators().decimalSeparator;return new RegExp("[0-9"+(a?join(""):"")+"]"+(!i||0===r||t||o?"":"|"+ge(i)),e?"g":void 0)},getseparators=function(){var e=decimalseparator,t=props,n=thousandseparator,o=alloweddecimalseparators;return!0===n&&(n=","),o||(o=[e,"."]),{decimalSeparator:e,thousandSeparator:n,allowedDecimalSeparators:o}},getmaskatindex=function(e){var t=mask;return void 0===t&&(t=" "),"string"==typeof t?t:t[e]||" "},getvalueobject=function(e,t){var n=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(n)?void 0:n}},validateprops=function(){var e=mask,t=getseparators(),n=decimalseparator,o=thousandseparator;if(n===o)throw new Error("\n Decimal separator can't be same as thousand separator.\n thousandSeparator: "+o+' (thousandSeparator = {true} is same as thousandSeparator = ",")\n decimalSeparator: '+n+" (default value for decimalSeparator is .)\n ");if(e&&("string"===e?e:tostring()).match(/\d/g))throw new Error("\n Mask "+e+" should not contain numeric character;\n ")},setpatchedcaretposition=function(e,t,n){Ee(e,t),caretpositiontimeout=setTimeout((function(){value===n&&Ee(e,t)}),0)},correctcaretposition=function(e,t,n){var o=props,r=prefix,a=suffix,i=format;if(""===e)return 0;if(t=be(t,0,length),!i){var s="-"===e[0];return be(t,length+(s?1:0),length)}if("function"==typeof i)return t;if("#"===i[t]&&fe(e[t]))return t;if("#"===i[t-1]&&fe(e[t-1]))return t;var l=indexof("#");t=be(t,l,lastindexof("#")+1);for(var c=substring(t,length).indexOf("#"),u=t,d=t+(-1===c?0:c);u>l&&("#"!==i[u]||!fe(e[u]));)u-=1;return!fe(e[d])||"left"===n&&t!==l||t-u=i?o+=Ce("0",a-i):o=(substring(0,a)||"0")+"."+substring(a),t+o}(s),l=!0),"Infinity"===s&&l&&(s=""),l&&!n&&"number"==typeof o&&(s=function(e,t,n){if(-1!==["","-"].indexOf(e))return e;var o=-1!==indexof(".")&&t,r=ve(e),a=beforedecimal,i=afterdecimal,s=hasnagation,l=parseFloat("0."+(i||"0")),c=(length<=t?"0."+i:tofixed(t)).split(".");return(s?"-":"")+split("").reverse().reduce((function(e,t,n){return length>n?(Number(e[0])+Number(t)).toString()+substring(1,length):t+e}),c[0])+(o?".":"")+ye(c[1]||"",min(t,length),n)}(s,o,r)),l?formatnumstring(s):formatinput(s))},formatnegation=function(e){void 0===e&&(e="");var t=allownegative,n=new RegExp("(-)"),o=new RegExp("(-)(.)*(-)"),r=test(e),a=test(e);return e=replace(/-/g,""),r&&!a&&t&&(e="-"+e),e},formatinput=function(e){return void 0===e&&(e=""),format||(e=removeprefixandsuffix(e),e=formatnegation(e)),e=removeformatting(e),formatnumstring(e)},ischaracteraformat=function(e,t){var n=props,o=format,r=prefix,a=suffix,i=decimalscale,s=fixeddecimalscale,l=getseparators().decimalSeparator;return"string"==typeof o&&"#"!==o[e]||!(o||!(e=length||i&&s&&t[e]===l))},correctinputvalue=function(e,t,n){var o=this,r=props,a=format,i=allownegative,s=prefix,l=suffix,c=decimalscale,u=getseparators(),d=alloweddecimalseparators,p=decimalseparator,m=numasstring||"",f=selectionbeforeinput,h=selectionstart,g=selectionend,v=function(e,t){for(var n=0,o=0,r=length,a=length;e[n]===t[n]&&nn&&r-o>n;)o++;return{start:n,end:r-o}}(t,n),y=start,C=end;if(!a&&y===C&&-1!==indexof(n[h])){var E=0===c?"":p;return substr(0,h)+E+substr(h+1,length)}var b=a?0:length,w=length-(a?0:length);if(length>length||!length||y===C||0===h&&g===length||0===y&&C===length||h===b&&g===w)return n;var N=substr(y,C-y);if([].concat(N).find((function(e,n){return ischaracteraformat(n+y,t)}))){var S=substr(y),x={},A=[];[].concat(S).forEach((function(e,n){ischaracteraformat(n+y,t)?x[n]=e:n>length-1&&push(e)})),keys(x).forEach((function(e){length>e?splice(e,0,x[e]):push(x[e])})),n=substr(0,y)+join("")}if(!a){var T=removeformatting(n),k=ve(T,i),_=beforedecimal,R=afterdecimal,M=addnegation,L=eC;)y--;y=correctcaretposition(i,y,"left")}}else for(;!test(i[y])&&yE)&&(preventdefault(),setpatchedcaretposition(n,y,i)),isunittestrun&&setpatchedcaretposition(n,y,i),m(e)}else m(e)},onmouseup=function(e){var t=target,n=selectionstart,o=selectionend,r=value;if(void 0===r&&(r=""),n===o){var a=correctcaretposition(r,n);a!==n&&setpatchedcaretposition(t,a,r)}onmouseup(e)},onfocus=function(e){var t=this;persist(),focusedelm=target,focustimeout=setTimeout((function(){var n=target,o=selectionstart,r=selectionend,a=value;void 0===a&&(a="");var i=correctcaretposition(a,o);i===o||0===o&&r===length||setpatchedcaretposition(n,i,a),onfocus(e)}),0)},render=function(){var e=props,n=type,o=displaytype,r=custominput,a=rendertext,i=getinputref,s=format,l=(thousandseparator,decimalseparator,alloweddecimalseparators,thousandsgroupstyle,decimalscale,fixeddecimalscale,prefix,suffix,removeformatting,mask,defaultvalue,isnumericstring,allownegative,allowemptyformatting,allowleadingzeros,onvaluechange,isallowed,customnumerals,onchange,onkeydown,onmouseup,onfocus,onblur,value,function(e,t){var n={};for(var o in e)call(e,o)&&-1===indexof(o)&&(n[o]=e[o]);return n}(e,["type","displayType","customInput","renderText","getInputRef","format","thousandSeparator","decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","decimalScale","fixedDecimalScale","prefix","suffix","removeFormatting","mask","defaultValue","isNumericString","allowNegative","allowEmptyFormatting","allowLeadingZeros","onValueChange","isAllowed","customNumerals","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value"])),c=state,u=value,d=mounted&&function(e){return e||"undefined"!=typeof navigator&&!(platform&&/iPhone|iPod/.test(platform))}(s)?"numeric":void 0,p=assign({inputMode:d},l,{type:n,value:u,onChange:onchange,onKeyDown:onkeydown,onMouseUp:onmouseup,onFocus:onfocus,onBlur:onblur});if("text"===o)return a?a(u,l)||null:t().createElement("span",assign({},l,{ref:i}),u);if(r){var m=r;return t().createElement(m,assign({},p,{ref:i}))}return t().createElement("input",assign({},p,{ref:i}))},n}(t().Component);defaultprops=Ne;const xe=Se;n(283);const Ae=e=>({thousandSeparator:null==e?void 0:thousandseparator,decimalSeparator:null==e?void 0:decimalseparator,fixedDecimalScale:!0,prefix:null==e?void 0:prefix,suffix:null==e?void 0:suffix,isNumericString:!0}),Te=({className:t,value:n,currency:o,onValueChange:r,displayType:a="text",...i})=>{var s;const l="string"==typeof n?parseInt(n,10):n;if(!isfinite(l))return null;const c=l/10**minorunit;if(!isfinite(c))return null;const u=Q()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),d=null!==(s=decimalscale)&&void 0!==s?s:null==o?void 0:minorunit,p={...i,ae(o),decimalScale:d,value:void 0,currency:void 0,onValueChange:void 0},m=r?e=>{const t=+value*10**minorunit;r(t)}:()=>{};return(0,createelement)(xe,{className:u,displayType:a,...p,value:c,onValueChange:m})},ke=({label:t,screenReaderLabel:n,wrapperElement:o,wrapperProps:r={}})=>{let i;const s=null!=t,l=null!=n;return!s&&l?(i=o||"span",r={...r,className:Q()(classname,"screen-reader-text")},(0,createelement)(i,{...r},n)):(i=o||fragment,s&&l&&t!==n?(0,createelement)(i,{...r},(0,createelement)("span",{"aria-hidden":"true"},t),(0,createelement)("span",{className:"screen-reader-text"},n)):(0,createelement)(i,{...r},t))},_e=(0,createelement)(svg,{viewBox:"0 0 24 24",xmlns:"http://w3/2000/svg"},(0,createelement)(path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"})),Re=(0,createelement)(svg,{viewBox:"0 0 24 24",xmlns:"http://w3/2000/svg"},(0,createelement)(path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"}));n(847);const Me=({children:t,className:n,initialOpen:o=!1,hasBorder:r=!1,title:i,titleTag:s="div"})=>{const[l,c]=(0,usestate)(o);return(0,createelement)("div",{className:Q()(n,"wc-block-components-panel",{"has-border":r})},(0,createelement)(s,null,(0,createelement)("button",{"aria-expanded":l,className:"wc-block-components-panel__button",onClick:()=>c(!l)},(0,createelement)(se,{"aria-hidden":"true",className:"wc-block-components-panel__button-icon",icon:l?_e:Re}),i)),l&&(0,createelement)("div",{className:"wc-block-components-panel__content"},t))},Le=({label:t,secondaryLabel:n,description:o,secondaryDescription:r,id:a})=>(0,createelement)("div",{className:"wc-block-components-radio-control__option-layout"},(0,createelement)("div",{className:"wc-block-components-radio-control__label-group"},t&&(0,createelement)("span",{id:a&&`${a}__label`,className:"wc-block-components-radio-control__label"},t),n&&(0,createelement)("span",{id:a&&`${a}__secondary-label`,className:"wc-block-components-radio-control__secondary-label"},n)),(o||r)&&(0,createelement)("div",{className:"wc-block-components-radio-control__description-group"},o&&(0,createelement)("span",{id:a&&`${a}__description`,className:"wc-block-components-radio-control__description"},o),r&&(0,createelement)("span",{id:a&&`${a}__secondary-description`,className:"wc-block-components-radio-control__secondary-description"},r))),Oe=({checked:t,name:n,onChange:o,option:r,disabled:a=!1})=>{const{value:i,label:s,description:l,secondaryLabel:c,secondaryDescription:u}=r;return(0,createelement)("label",{className:Q()("wc-block-components-radio-control__option",{"wc-block-components-radio-control__option-checked":t}),htmlFor:`${n}-${i}`},(0,createelement)("input",{id:`${n}-${i}`,className:"wc-block-components-radio-control__input",type:"radio",name:n,value:i,onChange:e=>o(value),checked:t,"aria-describedby":Q()({[`${n}-${i}__label`]:s,[`${n}-${i}__secondary-label`]:c,[`${n}-${i}__description`]:l,[`${n}-${i}__secondary-description`]:u}),disabled:a}),(0,createelement)(Le,{id:`${n}-${i}`,label:s,secondaryLabel:c,description:l,secondaryDescription:u}))};n(803);const De=({className:t="",id:n,selected:o="",onChange:r,options:a=[],disabled:i=!1})=>{const s=(0,useinstanceid)(De),l=n||s;return length?(0,createelement)("div",{className:Q()("wc-block-components-radio-control",t)},map((t=>(0,createelement)(Oe,{key:`${l}-${value}`,name:`radio-control-${l}`,checked:value===o,option:t,onChange:e=>{r(e),"function"==typeof onchange&&onchange(e)},disabled:i})))):null},$e=De,Ie=(0,withinstanceid)((({className:t,instanceId:n,id:o,selected:r,onChange:a,options:i=[]})=>{const s=o||n;return length?(0,createelement)("div",{className:Q()("wc-block-components-radio-control",t)},map((t=>{const n="object"==typeof t&&"content"in t,o=value===r;return(0,createelement)("div",{className:"wc-block-components-radio-control-accordion-option",key:value},(0,createelement)(Oe,{name:`radio-control-${s}`,checked:o,option:t,onChange:e=>{a(e),"function"==typeof onchange&&onchange(e)}}),n&&o&&(0,createelement)("div",{className:Q()("wc-block-components-radio-control-accordion-content",{"wc-block-components-radio-control-accordion-content-hide":!o})},content))}))):null}));n(43);const Pe=(0,withinstanceid)((({className:t,instanceId:n,label:o="",onChange:r,options:a,screenReaderLabel:i,value:s="",readOnly:l=!1})=>{const c=`wc-block-components-sort-select__select-${n}`;return(0,createelement)("div",{className:Q()("wc-block-sort-select","wc-block-components-sort-select",t)},(0,createelement)(ke,{label:o,screenReaderLabel:i,wrapperElement:"label",wrapperProps:{className:"wc-block-sort-select__label wc-block-components-sort-select__label",htmlFor:c}}),(0,createelement)("select",{disabled:!!l,id:c,className:"wc-block-sort-select__select wc-block-components-sort-select__select",onChange:r,value:s},a&&map((t=>(0,createelement)("option",{key:key,value:key},label)))))})),Fe=(0,createelement)(svg,{xmlns:"http://w3/2000/svg",viewBox:"0 0 24 24"},(0,createelement)(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"}));n(946);const Be=(0,createelement)(svg,{xmlns:"http://w3/2000/svg",viewBox:"0 0 24 24"},(0,createelement)(path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),He=(0,createelement)(svg,{xmlns:"http://w3/2000/svg",viewBox:"0 0 24 24"},(0,createelement)(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"})),Ve=(0,createelement)(svg,{xmlns:"http://w3/2000/svg",viewBox:"0 0 24 24"},(0,createelement)(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"})),Ue=e=>{switch(e){case"success":case"warning":case"info":case"default":return"polite";default:return"assertive"}},Ge=e=>{switch(e){case"success":return Be;case"warning":case"info":case"error":return He;default:return Ve}},Ze=wp.a11y,Ke=({className:t,status:n="default",children:o,spokenMessage:r=o,onRemove:i=(()=>{}),isDismissible:s=!0,politeness:l=Ue(n),summary:c})=>(((e,t)=>{const n="string"==typeof e?e:(0,rendertostring)(e);(0,useeffect)((()=>{n&&(0,speak)(n,t)}),[n,t])})(r,l),(0,createelement)("div",{className:Q()(t,"wc-block-components-notice-banner","is-"+n,{"is-dismissible":s})},(0,createelement)(se,{icon:Ge(n)}),(0,createelement)("div",{className:"wc-block-components-notice-banner__content"},c&&(0,createelement)("p",{className:"wc-block-components-notice-banner__summary"},c),o),!!s&&(0,createelement)(te,{className:"wc-block-components-notice-banner__dismiss",icon:Fe,label:(0,h.__)("Dismiss this notice","woocommerce"),onClick:e=>{"function"==typeof(null==e?void 0:preventdefault)&&preventdefault&&preventdefault(),i()},showTooltip:!1}))),je=({className:t,children:n,status:o,...r})=>(0,createelement)(Ke,{className:Q()("wc-block-store-notice",t),status:o,...r},n),We=data,ze=wcblocksdata;let Ye=function(e){return cart="wc/cart",checkout="wc/checkout",payments="wc/checkout/payments",express_PAYMENTS="wc/checkout/express-payments",contact_INFORMATION="wc/checkout/contact-information",shipping_ADDRESS="wc/checkout/shipping-address",billing_ADDRESS="wc/checkout/billing-address",shipping_METHODS="wc/checkout/shipping-methods",checkout_ACTIONS="wc/checkout/checkout-actions",e}({});(0,h.__)("Something went wrong. Please contact us to get assistance.","woocommerce"),n(942);var Je=n(561),Xe=n.n(Je);const qe=["a","b","em","i","strong","p","br"],Qe=["target","href","rel","name","download"],et=(e,t)=>{const n=(null==t?void 0:tags)||qe,o=(null==t?void 0:attr)||Qe;return Xe().sanitize(e,{ALLOWED_TAGS:n,ALLOWED_ATTR:o})};function tt(e,t){const n=(0,useref)();return(0,useeffect)((()=>{current===e||t&&!t(e,current)||(current=e)}),[e,t]),current}const nt=htmlentities,ot=({className:t,notices:n})=>{const o=(0,useref)(null),{removeNotice:r}=(0,usedispatch)("core/notices"),i=map((e=>id)),s=tt(i);(0,useeffect)((()=>{const e=current;if(!e)return;const t=activeelement;t&&-1!==["input","select","button","textarea"].indexOf(tolowercase())&&"radio"!==getattribute("type")||filter((e=>!s||!includes(e))).length&&null!=e&&scrollintoview&&scrollintoview({behavior:"smooth"})}),[i,s,o]);const l=filter((({isDismissible:e})=>!!e)),c=filter((({isDismissible:e})=>!e)),u={error:filter((({status:e})=>"error"===e)),success:filter((({status:e})=>"success"===e)),warning:filter((({status:e})=>"warning"===e)),info:filter((({status:e})=>"info"===e)),default:filter((({status:e})=>"default"===e))};return(0,createelement)("div",{ref:o,className:Q()(t,"wc-block-components-notices")},map((t=>(0,createelement)(je,{key:id+"-"+context,...t},(0,createelement)(rawhtml,null,et((0,decodeentities)(content)))))),entries(u).map((([t,n])=>{if(!length)return null;const o=filter(((e,t,n)=>findindex((t=>content===content))===t)).map((e=>({...e,content:et((0,decodeentities)(content))}))),i={key:`store-notice-${t}`,status:t,onRemove:()=>{foreach((e=>{r(id,context)}))}};return 1===length?(0,createelement)(je,{...i},(0,createelement)(rawhtml,null,n[0].content)):(0,createelement)(je,{...i,summary:"error"===t?(0,h.__)("Please fix the following errors before continuing","woocommerce"):""},(0,createelement)("ul",null,map((t=>(0,createelement)("li",{key:id+"-"+context},(0,createelement)(rawhtml,null,content))))))})))};function rt(e,t){if(null==e)return{};var n,o,r={},a=keys(e);for(o=0;o=0||(r[n]=e[n]);return r}function at(e,t){return at=setprototypeof?bind():function(e,t){return e.__proto__=t,e},at(e,t)}function it(e,t){prototype=create(prototype),constructor=e,at(e,t)}const st=t().createContext(null);function lt(t,n){var o=create(null);return t&&map(t,(function(e){return e})).forEach((function(t){o[key]=function(t){return n&&(0,isvalidelement)(t)?n(t):t}(t)})),o}function ct(e,t,n){return null!=n[t]?n[t]:props[t]}function ut(t,n,o){var r=lt(children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=create(null),a=[];for(var i in e)i in t?length&&(r[i]=a,a=[]):push(i);var s={};for(var l in t){if(r[l])for(o=0;o{}),children:n,listRef:o,className:r,...i})=>((0,useeffect)((()=>{const e=setTimeout((()=>{t()}),1e4);return()=>clearTimeout(e)}),[t]),(0,createelement)(Ke,{className:Q()(r,"wc-block-components-notice-snackbar"),...i,onRemove:()=>{o&¤t&&focus(),t()}},n)),Rt=({notices:t,className:n,onRemove:o=(()=>{})})=>{const r=(0,useref)(null),i=(0,usereducedmotion)(),s=e=>()=>o((null==e?void 0:id)||"");return(0,createelement)("div",{className:Q()(n,"wc-block-components-notice-snackbar-list"),tabIndex:-1,ref:r},i?map((t=>{const{content:n,...o}=t;return(0,createelement)(_t,{...o,onRemove:s(t),listRef:r,key:id},content)})):(0,createelement)(mt,null,map((t=>{const{content:n,...o}=t;return(0,createelement)(kt,{key:"snackbar-"+id,timeout:500,classNames:"notice-transition"},(0,createelement)(_t,{...o,onRemove:s(t),listRef:r},n))}))))},Mt=({className:t,notices:n})=>{const{removeNotice:o}=(0,usedispatch)("core/notices");return(0,createelement)(Rt,{className:Q()(t,"wc-block-components-notices__snackbar"),notices:n,onRemove:e=>{foreach((t=>{explicitdismiss&&id===e?o(id,context):explicitdismiss||o(id,context)}))}})},Lt=(e,t)=>map((e=>({...e,context:t}))),Ot=({className:t="",context:n="",additionalNotices:o=[]})=>{const{registerContainer:r,unregisterContainer:i}=(0,usedispatch)(store_NOTICES_STORE_KEY),{suppressNotices:s,registeredContainers:l}=(0,useselect)((e=>({suppressNotices:e(payment_STORE_KEY).isExpressPaymentMethodActive(),registeredContainers:e(store_NOTICES_STORE_KEY).getRegisteredContainers()}))),c=(0,usememo)((()=>isarray(n)?n:[n]),[n]),u=values(Ye).filter((e=>some((t=>includes(t+"/")))&&!includes(e))),d=(0,useselect)((e=>{const{getNotices:t}=e("core/notices");return[flatmap((e=>Lt(t(e),e))),flatmap((e=>Lt(t(e).concat(o),e)))].filter(Boolean)}));return(0,useeffect)((()=>(map((e=>r(e))),()=>{map((e=>i(e)))})),[c,r,i]),s?null:(0,createelement)(fragment,null,(0,createelement)(ot,{className:t,notices:filter((e=>"default"===type))}),(0,createelement)(Mt,{className:t,notices:filter((e=>"snackbar"===type))}))};n(203);const Dt=({className:t="",disabled:n=!1,onTextChange:o,placeholder:r,value:a=""})=>(0,createelement)("textarea",{className:Q()("wc-block-components-textarea",t),disabled:n,onChange:e=>{o(value)},placeholder:r,rows:2,value:a});n(693);const $t=(0,forwardref)((({className:t,id:n,type:o="text",ariaLabel:r,ariaDescribedBy:i,label:s,screenReaderLabel:l,disabled:c,help:u,autoCapitalize:d="off",autoComplete:p="off",value:m="",onChange:f,required:h=!1,onBlur:g=(()=>{}),feedback:v,...y},C)=>{const[E,b]=(0,usestate)(!1);return(0,createelement)("div",{className:Q()("wc-block-components-text-input",t,{"is-active":E||m})},(0,createelement)("input",{type:o,id:n,value:(0,decodeentities)(m),ref:C,autoCapitalize:d,autoComplete:p,onChange:e=>{f(value)},onFocus:()=>b(!0),onBlur:e=>{g(value),b(!1)},"aria-label":r||s,disabled:c,"aria-describedby":u&&!i?n+"__help":i,required:h,...y}),(0,createelement)(ke,{label:s,screenReaderLabel:l||s,wrapperElement:"label",wrapperProps:{htmlFor:n},htmlFor:n}),!!u&&(0,createelement)("p",{id:n+"__help",className:"wc-block-components-text-input__help"},u),v)}));n(785);const It=({errorMessage:t="",propertyName:n="",elementId:o=""})=>{const{validationError:r,validationErrorId:a}=(0,useselect)((e=>{const t=e(validation_STORE_KEY);return{validationError:getvalidationerror(n),validationErrorId:getvalidationerrorid(o)}}));if(!t||"string"!=typeof t){if(null==r||!message||null!=r&&hidden)return null;t=message}return(0,createelement)("div",{className:"wc-block-components-validation-error",role:"alert"},(0,createelement)("p",{id:a},t))},Pt=It,Ft=(e,t)=>{const{valid:n,customError:o,valueMissing:r,badInput:a,typeMismatch:i}=validity;if(n||o)return validationmessage;const s=(0,sprintf)((0,h.__)("Please enter a valid %s","woocommerce"),tolowercase());return r||a||i?s:validationmessage||s};var Bt=n(100);const Ht=new Map([["BA",/^([7-8]{1})([0-9]{4})$/],["GB",/^([A-Z]){1}([0-9]{1,2}|[A-Z][0-9][A-Z]|[A-Z][0-9]{2}|[A-Z][0-9]|[0-9][A-Z]){1}([ ])?([0-9][A-Z]{2}){1}|BFPO(?:\s)?([0-9]{1,4})$|BFPO(c\/o[0-9]{1,3})$/i],["IN",/^[1-9]{1}[0-9]{2}\s{0,1}[0-9]{3}$/],["JP",/^([0-9]{3})([-]?)([0-9]{4})$/],["KH",/^[0-9]{6}$/],["LI",/^(94[8-9][0-9])$/],["NI",/^[1-9]{1}[0-9]{4}$/],["NL",/^([1-9][0-9]{3})(\s?)(?!SA|SD|SS)[A-Z]{2}$/i],["SI",/^([1-9][0-9]{3})$/]]),Vt=(new Map([bt.O,ht]),(0,forwardref)((({className:t,id:n,type:o="text",ariaDescribedBy:r,errorId:i,focusOnMount:s=!1,onChange:l,showError:c=!0,errorMessage:u="",value:p="",customValidation:m=(()=>!0),customFormatter:f=(e=>e),label:h,validateOnMount:g=!0,instanceId:v="",...y},C)=>{const[E,b]=(0,usestate)(!0),w=tt(p),N=(0,useref)(null),S=(0,useinstanceid)(Vt,"",v),x=void 0!==n?n:"textinput-"+S,A=void 0!==i?i:x,{setValidationErrors:T,hideValidationError:k,clearValidationError:_}=(0,usedispatch)(validation_STORE_KEY),R=(0,useref)(m);(0,useeffect)((()=>{current=m}),[m]);const{validationError:M,validationErrorId:L}=(0,useselect)((e=>{const t=e(validation_STORE_KEY);return{validationError:getvalidationerror(A),validationErrorId:getvalidationerrorid(A)}})),O=(0,usecallback)(((e=!0)=>{const t=current||null;null!==t&&(value=trim(),setcustomvalidity(""),checkvalidity()&¤t(t)?_(A):T({[A]:{message:h?Ft(h,t):validationmessage,hidden:e}}))}),[_,A,T,h]);var D;(0,useimperativehandle)(C,(function(){return{revalidate(){O(!p)}}}),[O,p]),(0,useeffect)((()=>{var e,t;if(p!==w&&(p||w)&&N&&null!==current&&(null===(e=current)||void 0===e||null===(t=ownerdocument)||void 0===t?void 0:activeelement)!==current){const e=f(value);e!==p?l(e):O(!0)}}),[O,f,p,w,l]),(0,useeffect)((()=>{var e;E&&(b(!1),s&&(null===(e=current)||void 0===e||focus()),!g&&s||O(!0))}),[g,s,E,b,O]),(0,useeffect)((()=>()=>{_(A)}),[_,A]),""!==u&&(!(e=>null===e)(D=M)&&D instanceof Object&&constructor===Object)&&(message=u);const $=(null==M?void 0:message)&&!(null!=M&&hidden),I=c&&$&&L?L:r;return(0,createelement)($t,{className:Q()(t,{"has-error":$}),"aria-invalid":!0===$,id:x,type:o,feedback:c?(0,createelement)(It,{errorMessage:u,propertyName:A}):null,ref:N,onChange:e=>{k(A),O(!0);const t=f(e);t!==p&&l(t)},onBlur:()=>O(!1),ariaDescribedBy:I,value:p,title:"",label:h,...y})}))),Ut=Vt;n(658);const Gt=({value:t,currency:n})=>(0,isvalidelement)(t)?(0,createelement)("div",{className:"wc-block-components-totals-item__value"},t):isfinite(t)?(0,createelement)(Te,{className:"wc-block-components-totals-item__value",currency:n||{},value:t}):null,Zt=({className:t,currency:n,label:o,value:r,description:a})=>(0,createelement)("div",{className:Q()("wc-block-components-totals-item",t)},(0,createelement)("span",{className:"wc-block-components-totals-item__label"},o),(0,createelement)(Gt,{value:r,currency:n}),(0,createelement)("div",{className:"wc-block-components-totals-item__description"},a)),Kt=wcsettings,jt=({currency:t,values:n,className:o})=>{const{total_items:r,total_items_tax:a}=n,i=parseInt(r,10),s=parseInt(a,10);return(0,createelement)(Zt,{className:o,currency:t,label:(0,h.__)("Subtotal","woocommerce"),value:(0,getsetting)("displayCartPricesIncludingTax",!1)?i+s:i})},Wt=({currency:t,values:n,className:o,showRateAfterTaxName:r})=>{const{total_tax:a,tax_lines:i}=n;if(!(0,getsetting)("taxesEnabled",!0)&&parseInt(a,10)<=0)return null;const s=(0,getsetting)("displayItemizedTaxes",!1),l=s&&length>0?(0,createelement)(fragment,null,map((({name:n,rate:a,price:i},s)=>{const l=`${n}${r?`${a}`:""}`;return(0,createelement)(Zt,{key:`tax-line-${s}`,className:Q()("wc-block-components-totals-taxes",o),currency:t,label:l,value:parseInt(i,10)})}))," "):null;return s?l:(0,createelement)(fragment,null,(0,createelement)(Zt,{className:Q()("wc-block-components-totals-taxes",o),currency:t,label:(0,h.__)("Taxes","woocommerce"),value:parseInt(a,10),description:null}))},zt=({currency:t,cartFees:n,className:o})=>(0,createelement)(fragment,null,map((({id:n,key:r,name:a,totals:i},s)=>{const l=parseInt(total,10);if(!l)return null;const c=parseInt(total_tax,10);return(0,createelement)(Zt,{key:n||`${s}-${a}`,className:Q()("wc-block-components-totals-fees","wc-block-components-totals-fees__"+r,o),currency:t,label:a||(0,h.__)("Fee","woocommerce"),value:(0,getsetting)("displayCartPricesIncludingTax",!1)?l+c:l})})));n(878);const Yt=({children:t,slotWrapper:n=!1,className:o})=>count(t)?(0,createelement)("div",{className:Q()(o,"wc-block-components-totals-wrapper",{"slot-wrapper":n})},t):null})(),(wc=wc||{}).blocksComponents=o})();