�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`�
Warning: session_start(): Session cannot be started after headers have already been sent in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 124

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 132

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 133

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 134

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 135

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 547

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 548

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 549

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 550

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 551
(()=>{var e={};(()=>{var t;globalThis.importScripts&&(t=globalThis.location+"");var n=globalThis.document;if(!t&&n&&(n.currentScript&&"SCRIPT"===n.currentScript.tagName.toUpperCase()&&(t=n.currentScript.src),!t)){var o=n.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!t||!/^http(s?):/.test(t));)t=o[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t})(),e.p=window.wcpayAssets.url,(()=>{"use strict";const t=e=>"undefined"!=typeof wcpayConfig&&void 0!==wcpayConfig[e]?wcpayConfig[e]:n(e),n=e=>{let t=null;if("undefined"!=typeof wcpay_upe_config)t=wcpay_upe_config;else{if("object"!=typeof wc||void 0===wc.wcSettings)return null;t=wc.wcSettings.getSetting("woocommerce_payments_data")||{}}return t[e]||null},o=(e,t="always")=>Object.keys(e).filter(t=>"link"!==t&&e[t].isReusable).reduce((e,n)=>(e[n]=t,e),{}),r=e=>void 0!==e.link&&void 0!==e.card;function a(e){return a="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},a(e)}var i=/^\s+/,c=/\s+$/;function s(e,t){if(t=t||{},(e=e||"")instanceof s)return e;if(!(this instanceof s))return new s(e,t);var n=function(e){var t,n,o,r={r:0,g:0,b:0},s=1,l=null,u=null,d=null,m=!1,p=!1;return"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(c,"").toLowerCase();var t,n=!1;if(x[e])e=x[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=N.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=N.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=N.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=N.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=N.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=N.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=N.hex8.exec(e))?{r:T(t[1]),g:T(t[2]),b:T(t[3]),a:P(t[4]),format:n?"name":"hex8"}:(t=N.hex6.exec(e))?{r:T(t[1]),g:T(t[2]),b:T(t[3]),format:n?"name":"hex"}:(t=N.hex4.exec(e))?{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),a:P(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=N.hex3.exec(e))&&{r:T(t[1]+""+t[1]),g:T(t[2]+""+t[2]),b:T(t[3]+""+t[3]),format:n?"name":"hex"}}(e)),"object"==a(e)&&(D(e.r)&&D(e.g)&&D(e.b)?(t=e.r,n=e.g,o=e.b,r={r:255*A(t,255),g:255*A(n,255),b:255*A(o,255)},m=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):D(e.h)&&D(e.s)&&D(e.v)?(l=I(e.s),u=I(e.v),r=function(e,t,n){e=6*A(e,360),t=A(t,100),n=A(n,100);var o=Math.floor(e),r=e-o,a=n*(1-t),i=n*(1-r*t),c=n*(1-(1-r)*t),s=o%6;return{r:255*[n,i,a,a,c,n][s],g:255*[c,n,n,i,a,a][s],b:255*[a,a,c,n,n,i][s]}}(e.h,l,u),m=!0,p="hsv"):D(e.h)&&D(e.s)&&D(e.l)&&(l=I(e.s),d=I(e.l),r=function(e,t,n){var o,r,a;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=A(e,360),t=A(t,100),n=A(n,100),0===t)o=r=a=n;else{var c=n<.5?n*(1+t):n+t-n*t,s=2*n-c;o=i(s,c,e+1/3),r=i(s,c,e),a=i(s,c,e-1/3)}return{r:255*o,g:255*r,b:255*a}}(e.h,l,d),m=!0,p="hsl"),e.hasOwnProperty("a")&&(s=e.a)),s=L(s),{ok:m,format:e.format||p,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:s}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}function l(e,t,n){e=A(e,255),t=A(t,255),n=A(n,255);var o,r,a=Math.max(e,t,n),i=Math.min(e,t,n),c=(a+i)/2;if(a==i)o=r=0;else{var s=a-i;switch(r=c>.5?s/(2-a-i):s/(a+i),a){case e:o=(t-n)/s+(t>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(s(o));return a}function C(e,t){t=t||6;for(var n=s(e).toHsv(),o=n.h,r=n.s,a=n.v,i=[],c=1/t;t--;)i.push(s({h:o,s:r,v:a})),a=(a+c)%1;return i}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o=this.toRgb();return e=o.r/255,t=o.g/255,n=o.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=L(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=u(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=u(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=l(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=l(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,o,r){var a=[E(Math.round(e).toString(16)),E(Math.round(t).toString(16)),E(Math.round(n).toString(16)),E(R(o))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*A(this._r,255))+"%",g:Math.round(100*A(this._g,255))+"%",b:Math.round(100*A(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%)":"rgba("+Math.round(100*A(this._r,255))+"%, "+Math.round(100*A(this._g,255))+"%, "+Math.round(100*A(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(F[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=s(e);n="#"+m(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0;return t||!o||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return s(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(b,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(g,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(h,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(S,arguments)},complement:function(){return this._applyCombination(v,arguments)},monochromatic:function(){return this._applyCombination(C,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(_,[3])},tetrad:function(){return this._applyCombination(_,[4])}},s.fromRatio=function(e,t){if("object"==a(e)){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]="a"===o?e[o]:I(e[o]));e=n}return s(e,t)},s.equals=function(e,t){return!(!e||!t)&&s(e).toRgbString()==s(t).toRgbString()},s.random=function(){return s.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},s.mix=function(e,t,n){n=0===n?0:n||50;var o=s(e).toRgb(),r=s(t).toRgb(),a=n/100;return s({r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a})},s.readability=function(e,t){var n=s(e),o=s(t);return(Math.max(n.getLuminance(),o.getLuminance())+.05)/(Math.min(n.getLuminance(),o.getLuminance())+.05)},s.isReadable=function(e,t,n){var o,r,a,i,c,l=s.readability(e,t);switch(r=!1,(a=n,"AA"!==(i=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==i&&(i="AA"),"small"!==(c=(a.size||"small").toLowerCase())&&"large"!==c&&(c="small"),o={level:i,size:c}).level+o.size){case"AAsmall":case"AAAlarge":r=l>=4.5;break;case"AAlarge":r=l>=3;break;case"AAAsmall":r=l>=7}return r},s.mostReadable=function(e,t,n){var o,r,a,i,c=null,l=0;r=(n=n||{}).includeFallbackColors,a=n.level,i=n.size;for(var u=0;ul&&(l=o,c=s(t[u]));return s.isReadable(e,c,{level:a,size:i})||!r?c:(n.includeFallbackColors=!1,s.mostReadable(e,["#fff","#000"],n))};var x=s.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=s.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(x);function L(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function A(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function M(e){return Math.min(1,Math.max(0,e))}function T(e){return parseInt(e,16)}function E(e){return 1==e.length?"0"+e:""+e}function I(e){return e<=1&&(e=100*e+"%"),e}function R(e){return Math.round(255*parseFloat(e)).toString(16)}function P(e){return T(e)/255}var V,W,j,N=(W="[\\s|\\(]+("+(V="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",j="[\\s|\\(]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")[,|\\s]+("+V+")\\s*\\)?",{CSS_UNIT:new RegExp(V),rgb:new RegExp("rgb"+W),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+W),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+W),hsva:new RegExp("hsva"+j),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function D(e){return!!N.CSS_UNIT.exec(e)}const Z=(e,t=document)=>{let n=null,o=0;for(;!n&&o=.5&&(n=a),o++}return n||"#ffffff"},H=e=>{const t=s(e),n=t.getAlpha();if(n<1){const e=t.toRgb();return s({r:Math.round(e.r*n+255*(1-n)),g:Math.round(e.g*n+255*(1-n)),b:Math.round(e.b*n+255*(1-n))}).getBrightness()>125}return t.getBrightness()>125},Y=["#payment","#order_review","form.checkout","body"],X={address_1:"billing_address_1",address_2:"billing_address_2",city:"billing_city",state:"billing_state",postcode:"billing_postcode",country:"billing_country",first_name:"billing_first_name",last_name:"billing_last_name"},G=e=>{const t="woocommerce_payments";return"card"===e?t:`${t}_${e}`},B=()=>{const e=document.querySelector('input[name="payment_method"][value*="woocommerce_payments"]:checked');return e?e.value.replace("woocommerce_payments_","").replace("woocommerce_payments","")||"card":null},q=e=>{const t={},r=function(e){if(n("cartContainsSubscription"))return!0;const t=document.querySelector(`.wcpay-upe-form[data-payment-method-type="${e}"]`);if(!t)return!1;const o=t.querySelector(`#wc-${G(e)}-new-payment-method`);return o?.checked||!1}(e)?"always":"never";var a;return t.terms=o(n("paymentMethodsConfig"),r),!n("isCheckout")||n("isOrderPay")||n("isChangingPayment")||(t.fields={billingDetails:(a=n("enabledBillingFields"),{name:a.billing_first_name||a.billing_last_name?"never":"auto",email:a.billing_email?"never":"auto",phone:a.billing_phone?"never":"auto",address:{country:a.billing_country?"never":"auto",line1:a.billing_address_1?"never":"auto",line2:a.billing_address_2?"never":"auto",city:a.billing_city?"never":"auto",state:a.billing_state?"never":"auto",postalCode:a.billing_postcode?"never":"auto"}})}),window.wcpayCustomerData&&(t.defaultValues={billingDetails:{name:window.wcpayCustomerData.name,email:window.wcpayCustomerData.email,address:{country:window.wcpayCustomerData.billing_country}}}),t},O=(e,t)=>{e.append(``)},z=window.wp.i18n,J=["color","padding","paddingTop","paddingRight","paddingBottom","paddingLeft"],$=["fontFamily","fontSize","lineHeight","letterSpacing","fontWeight","fontVariation","textDecoration","textShadow","textTransform","-webkit-font-smoothing","-moz-osx-font-smoothing","transition"],U=["backgroundColor","border","borderTop","borderRight","borderBottom","borderLeft","borderRadius","borderWidth","borderColor","borderStyle","borderTopWidth","borderTopColor","borderTopStyle","borderRightWidth","borderRightColor","borderRightStyle","borderBottomWidth","borderBottomColor","borderBottomStyle","borderLeftWidth","borderLeftColor","borderLeftStyle","borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius","outline","outlineOffset","boxShadow"],Q={".Label":[...J,...$],".Text":[...J,...$],".Input":[...J,...$,...U],".Error":[...J,...$,...U],".Tab":[...J,...$,...U],".TabIcon":[...J],".TabLabel":[...J,...$],".Block":[...J.slice(1),...U.slice(1)],".Container":[...U],".Header":[...J,...U,...$],".Footer":[...J,...U,...$]},K={".Label":Q[".Label"],".Label--floating":[...Q[".Label"],"transform"],".Input":[...Q[".Input"],"outlineColor","outlineWidth","outlineStyle"],".Error":Q[".Error"],".Tab":["backgroundColor","color","fontFamily"],".Tab--selected":["outlineColor","outlineWidth","outlineStyle","backgroundColor","color",...U],".TabIcon":Q[".TabIcon"],".TabIcon--selected":["color"],".TabLabel":Q[".TabLabel"],".Block":Q[".Block"],".Container":Q[".Container"],".Header":Q[".Header"],".Footer":Q[".Footer"],".Footer--link":Q[".Text"],".Text":Q[".Text"],".Text--redirect":Q[".Text"]},ee={default:{hiddenContainer:"#wcpay-hidden-div",hiddenInput:"#wcpay-hidden-input",hiddenInvalidInput:"#wcpay-hidden-invalid-input",hiddenValidActiveLabel:"#wcpay-hidden-valid-active-label"},classicCheckout:{appendTarget:".woocommerce-billing-fields__field-wrapper",upeThemeInputSelector:"#billing_first_name",upeThemeLabelSelector:".woocommerce-checkout .form-row label",upeThemeTextSelectors:["#payment .payment_methods li .payment_box fieldset",".woocommerce-checkout .form-row"],rowElement:"p",validClasses:["form-row"],invalidClasses:["form-row","woocommerce-invalid","woocommerce-invalid-required-field"],alternateSelectors:{appendTarget:"form.checkout",upeThemeInputSelector:'form.checkout input[type="text"]',upeThemeLabelSelector:"form.checkout label",upeThemeTextSelectors:["form.checkout",".woocommerce"]},backgroundSelectors:["li.wc_payment_method .wc-payment-form","li.wc_payment_method .payment_box","#payment","#order_review","form.checkout","body"],headingSelectors:["h1","h2","h3","h4","h5","h6"],buttonSelectors:["#place_order"]},blocksCheckout:{appendTarget:".wc-block-checkout__contact-fields",upeThemeInputSelector:".wc-block-components-text-input #email",upeThemeLabelSelector:".wc-block-components-text-input label",upeThemeTextSelectors:[".wc-block-components-checkout-step__description",".wc-block-components-text-input",".wc-block-components-radio-control__label",".wc-block-checkout__terms"],rowElement:"div",validClasses:["wc-block-components-text-input","is-active"],invalidClasses:["wc-block-components-text-input","has-error"],alternateSelectors:{appendTarget:"#billing.wc-block-components-address-form",upeThemeInputSelector:"#billing-first_name",upeThemeLabelSelector:".wc-block-components-checkout-step__description"},backgroundSelectors:["#payment-method .wc-block-components-radio-control-accordion-option","#payment-method","form.wc-block-checkout__form",".wc-block-checkout","body"],headingSelectors:["h1","h2","h3","h4","h5","h6"],buttonSelectors:[".wc-block-components-checkout-place-order-button"],containerSelectors:[".wp-block-woocommerce-checkout-order-summary-block"]},bnplProductPage:{appendTarget:".product .cart .quantity",upeThemeInputSelector:".product .cart .quantity .qty",upeThemeLabelSelector:".product .cart .quantity label",upeThemeTextSelectors:[".product .cart .quantity"],rowElement:"div",validClasses:["input-text"],invalidClasses:["input-text","has-error"],backgroundSelectors:["#payment-method-message","#main > .product > div.summary.entry-summary","#main > .product","#main","body"],headingSelectors:["h1","h2","h3","h4","h5","h6"],buttonSelectors:[".single_add_to_cart_button"]},bnplClassicCart:{appendTarget:".cart .quantity",upeThemeInputSelector:".cart .quantity .qty",upeThemeLabelSelector:".cart .quantity label",upeThemeTextSelectors:[".cart .quantity"],rowElement:"div",validClasses:["input-text"],invalidClasses:["input-text","has-error"],backgroundSelectors:["#payment-method-message","#main .entry-content .cart_totals","#main .entry-content","#main","body"],headingSelectors:["h1","h2","h3","h4","h5","h6"],buttonSelectors:[".checkout-button"],containerSelectors:[".shop_table"]},bnplCartBlock:{appendTarget:".wc-block-cart .wc-block-components-quantity-selector",upeThemeInputSelector:".wc-block-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input",upeThemeLabelSelector:".wc-block-components-text-input",upeThemeTextSelectors:[".wc-block-components-text-input"],rowElement:"div",validClasses:["wc-block-components-text-input"],invalidClasses:["wc-block-components-text-input","has-error"],backgroundSelectors:[".wc-block-components-bnpl-wrapper",".wc-block-components-order-meta",".wc-block-components-totals-wrapper",".wp-block-woocommerce-cart-order-summary-block",".wp-block-woocommerce-cart-totals-block",".wp-block-woocommerce-cart .wc-block-cart",".wp-block-woocommerce-cart","body"],headingSelectors:["h1","h2","h3","h4","h5","h6"],buttonSelectors:[".wc-block-cart__submit-button"],containerSelectors:[".wp-block-woocommerce-cart-line-items-block"]},wooPayClassicCheckout:{appendTarget:".woocommerce-billing-fields__field-wrapper",upeThemeInputSelector:"#billing_first_name",upeThemeLabelSelector:".woocommerce-checkout .form-row label",upeThemeTextSelectors:[".woocommerce-checkout .form-row"],rowElement:"p",validClasses:["form-row"],invalidClasses:["form-row","woocommerce-invalid","woocommerce-invalid-required-field"],alternateSelectors:{appendTarget:"form.checkout",upeThemeInputSelector:'form.checkout input[type="text"]',upeThemeLabelSelector:"form.checkout label",upeThemeTextSelectors:["form.checkout",".woocommerce"]},backgroundSelectors:["#customer_details","#order_review","form.checkout","body"],headingSelectors:["h1","h2","h3","h4","h5","h6"],buttonSelectors:["#place_order"],linkSelectors:["form.checkout a",".woocommerce a","main a",".entry-content a",".site-content a","#content a","#primary a","a"],containerSelectors:[".woocommerce-checkout-review-order-table"],headerSelectors:["header > div:has(nav)","header > div:has(.site-logo)","header > div:has(.custom-logo)",".site-header","#masthead","header > div:last-of-type","header"],footerSelectors:[".site-footer","#colophon","footer > div","footer"],footerLink:[".site-footer a","footer a"]},wooPayBlocksCheckout:{appendTarget:".wc-block-checkout__contact-fields",upeThemeInputSelector:".wc-block-components-text-input #email",upeThemeLabelSelector:".wc-block-components-text-input label",upeThemeTextSelectors:[".wc-block-components-checkout-step__description",".wc-block-components-text-input",".wc-block-components-radio-control__label",".wc-block-checkout__terms"],rowElement:"div",validClasses:["wc-block-components-text-input","is-active"],invalidClasses:["wc-block-components-text-input","has-error"],alternateSelectors:{appendTarget:"#billing.wc-block-components-address-form",upeThemeInputSelector:"#billing-first_name",upeThemeLabelSelector:".wc-block-components-checkout-step__description"},backgroundSelectors:["#payment-method .wc-block-components-radio-control-accordion-option","#payment-method","form.wc-block-checkout__form",".wc-block-checkout","body"],headingSelectors:["h1","h2","h3","h4","h5","h6"],buttonSelectors:[".wc-block-components-checkout-place-order-button"],linkSelectors:[".wc-block-checkout a",".wc-block-components-main a","main a",".entry-content a",".site-content a","#content a","#primary a","a"],containerSelectors:[".wp-block-woocommerce-checkout-order-summary-block"],headerSelectors:["header > div:has(nav)","header > div:has(.site-logo)","header > div:has(.custom-logo)",".site-header","#masthead","header > div:last-of-type","header"],footerSelectors:[".site-footer","#colophon","footer > div","footer"],footerLink:[".site-footer a","footer a"]},updateSelectors:function(e,t){return e.hasOwnProperty("alternateSelectors")&&(Object.entries(e.alternateSelectors).forEach(n=>{const[o,r]=n,a=e[o];if(Array.isArray(a))a.some(e=>{try{return t.querySelector(e)}catch(e){return!1}})||(e[o]=r);else try{t.querySelector(e[o])||(e[o]=r)}catch(t){e[o]=r}}),delete e.alternateSelectors),e},getSelectors:function(e,t){let n=this.blocksCheckout;switch(e){case"blocks_checkout":n=this.blocksCheckout;break;case"shortcode_checkout":n=this.classicCheckout;break;case"bnpl_product_page":n=this.bnplProductPage;break;case"bnpl_classic_cart":n=this.bnplClassicCart;break;case"bnpl_cart_block":n=this.bnplCartBlock;break;case"woopay_shortcode_checkout":n=this.wooPayClassicCheckout;break;case"woopay_blocks_checkout":n=this.wooPayBlocksCheckout}return{...this.default,...this.updateSelectors(n,t)}}},te={getHiddenContainer:function(e,t){const n=t.createElement("div");return n.setAttribute("id",this.getIDFromSelector(e)),n.style.border=0,n.style.clip="rect(0 0 0 0)",n.style.height="1px",n.style.margin="-1px",n.style.overflow="hidden",n.style.padding="0",n.style.position="absolute",n.style.width="1px",n},createRow:function(e,t=[],n){const o=n.createElement(e);return t.length&&o.classList.add(...t),o},appendClone:function(e,t,n,o){const r=o.querySelector(t);if(r){const t=r.cloneNode(!0);t.id=this.getIDFromSelector(n),t.value="",e.appendChild(t)}},getIDFromSelector:function(e){return e.startsWith("#")||e.startsWith(".")?e.slice(1):e},init:function(e,t){const n=ee.getSelectors(e),o=t.querySelector(n.appendTarget),r=t.querySelector(n.upeThemeInputSelector);if(!o||!r)return;t.querySelector(n.hiddenContainer)&&this.cleanup(t);const a=this.getHiddenContainer(n.hiddenContainer,t);o.appendChild(a);const i=this.createRow(n.rowElement,n.validClasses,t);a.appendChild(i);const c=this.createRow(n.rowElement,n.invalidClasses,t);a.appendChild(c),this.appendClone(i,n.upeThemeInputSelector,n.hiddenInput,t),this.appendClone(i,n.upeThemeLabelSelector,n.hiddenValidActiveLabel,t),this.appendClone(c,n.upeThemeInputSelector,n.hiddenInvalidInput,t),this.appendClone(c,n.upeThemeLabelSelector,n.hiddenInvalidInput,t),t.querySelector(n.hiddenInput).style.transition="none"},cleanup:function(e){const t=e.querySelector(ee.default.hiddenContainer);t&&t.remove()}},ne=(e,t,n=null,o)=>{const r=(Array.isArray(e)?e:[e]).map(e=>{try{return o.querySelector(e)}catch(e){return null}}).filter(Boolean);if(!r.length)return{};const a=o.defaultView||window,i=K[t],c=r[0],s=a.getComputedStyle(c),l={};if(i.forEach(e=>{const t=e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),n=s.getPropertyValue(t);if(n)if("color"!==e)if("lineHeight"!==e||"0"!==n&&"0px"!==n)l[e]=n;else for(let t=1;t{const t=e.match(/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(0?(\.\d+)?|1?(\.0+)?)\s*\)$/);if(t){const n=t[4]||1;e=`rgb(${t.slice(1,4).map(e=>Math.round(e*n+255*(1-n))).join(", ")})`}return e})(n)}),".Input"===t||".Tab--selected"===t){const e=((e,t="solid",n)=>e&&n?[e,t,n].join(" "):"")(l.outlineWidth,l.outlineStyle,l.outlineColor);""!==e&&(l.outline=e),delete l.outlineWidth,delete l.outlineColor,delete l.outlineStyle}const u=s.getPropertyValue("text-indent");return"0px"!==u&&"0px"===l.paddingLeft&&"0px"===l.paddingRight&&(l.paddingLeft=u,l.paddingRight=u),".Block"===t&&(l.backgroundColor=n),l},oe=(e=document)=>{const t=[],n=e.styleSheets,o=["fonts.googleapis.com","fonts.gstatic.com","use.typekit.net","fonts.bunny.net","fonts.wp.com"];for(let e=0;e{const o=t?re[e]??e:e,r=ee.getSelectors(o,n);te.init(o,n);const a=ne(r.hiddenInput,".Input",null,n),i=ne(r.hiddenInvalidInput,".Input",null,n),c=ne(r.upeThemeLabelSelector,".Label",null,n),l={fontSize:c.fontSize},u=ne(r.upeThemeTextSelectors,".Text",null,n),d=ne(r.upeThemeInputSelector,".Tab",null,n),m=ne(r.hiddenInput,".Tab--selected",null,n),p=(e=>{const t=Object.assign({},e);if(!e.backgroundColor||!e.color)return e;const n=((e,t)=>{const n={backgroundColor:e,color:t},o=s(e),r=s(t);if(!o.isValid()||!r.isValid())return{backgroundColor:"",color:""};const a=o.getBrightness()>50?s(o).darken(7):s(o).lighten(7),i=s.mostReadable(a,[r],{includeFallbackColors:!0});return n.backgroundColor=a.toRgbString(),n.color=i.toRgbString(),n})(e.backgroundColor,e.color);return t.backgroundColor=n.backgroundColor,t.color=n.color,t})(d),h={color:p.color},f={color:m.color},b=Z(r.backgroundSelectors,n),y=ne(r.upeThemeLabelSelector,".Block",b,n),g={colorBackground:b,colorText:u.color,fontFamily:u.fontFamily,fontSizeBase:u.fontSize},w=("blocks_checkout"===e||"woopay_blocks_checkout"===o)&&((e,t=document)=>{let n;try{n=t.querySelector(e)}catch(e){return!0}if(!n)return!0;const o=(t.defaultView||window).getComputedStyle(n).getPropertyValue("position");return!o||"absolute"===o||"fixed"===o})(r.hiddenValidActiveLabel,n);let v={variables:g,theme:H(b)?"stripe":"night",labels:w?"floating":"above",rules:JSON.parse(JSON.stringify({".Input":a,".Input--invalid":i,".Label":c,".Label--resting":l,".Block":y,".Tab":d,".Tab:hover":p,".Tab--selected":m,".TabIcon:hover":h,".TabIcon--selected":f,".Text":u,".Text--redirect":u}))};if(w&&(v=((e,t)=>{if(e.rules[".Label--floating"]=t,e.rules[".Label--floating"].transform&&"none"!==e.rules[".Label--floating"].transform){const t=e.rules[".Label--floating"].transform.match(/matrix\((.+)\)/);if(t&&t[1]){const n=t[1].split(", "),o=(parseFloat(n[0])+parseFloat(n[3]))/2,r=parseFloat(e.rules[".Label--floating"].lineHeight),a=Math.floor(r*o);e.rules[".Label--floating"].lineHeight=`${a}px`,e.rules[".Label--floating"].fontSize=`${a}px`}delete e.rules[".Label--floating"].transform}if(e.rules[".Input"].paddingTop&&(e.rules[".Input"].paddingTop=`calc(${e.rules[".Input"].paddingTop} - ${e.rules[".Label--floating"].lineHeight} - 4px - 1px)`),e.rules[".Input"].paddingBottom){const t=parseFloat(e.rules[".Input"].paddingBottom);e.rules[".Input"].paddingBottom=t-1+"px";const n=e.rules[".Label"].marginTop??"0";e.rules[".Label"].marginTop=`${Math.floor((t-1)/3)}px`,e.rules[".Label--floating"].marginTop=n}return e})(v,ne(r.hiddenValidActiveLabel,".Label--floating",null,n))),t){const e=ne(r.headerSelectors,".Header",null,n),t=ne(r.footerSelectors,".Footer",null,n);(!e.backgroundColor||s(e.backgroundColor).getAlpha()<.5)&&(e.backgroundColor=Z([...r.headerSelectors??[],"body"],n)),(!t.backgroundColor||s(t.backgroundColor).getAlpha()<.5)&&(t.backgroundColor=Z([...r.footerSelectors??[],"body"],n)),v.rules={...v.rules,".Heading":ne(r.headingSelectors,".Label",null,n),".Header":e,".Footer":t,".Footer-link":ne(r.footerLink,".Footer--link",null,n),".Button":ne(r.buttonSelectors,".Input",null,n),".Link":ne(r.linkSelectors,".Label",null,n),".Container":ne(r.containerSelectors,".Container",null,n)}}return te.cleanup(n),v};function ie(e){return"wcpay_appearance_"+e}const ce=(e,t=!1,n=!0,o=null)=>{let r="";r=e.includes("woocommerce-error")?e:'";let a=jQuery(".woocommerce-notices-wrapper, form.checkout");if(a=t?a.first():a.last(),!a.length)return;jQuery(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message").remove(),a.prepend('
'+r+"
"),n&&a.find(".input-text, select, input:checkbox").trigger("validate").blur();let i=jQuery(".woocommerce-NoticeGroup-checkout");i.length||(i=a),jQuery.scroll_to_notices(i),jQuery(document.body).trigger("checkout_error")};var se=function(){return se=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]=o+n?(o=a,[4,pe(0)]):[3,3]):[3,4];case 2:i.sent(),i.label=3;case 3:return++r,[3,1];case 4:return[2]}})})}function ye(e){e.then(void 0,function(){})}function ge(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function we(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function ve(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<>>32-t,e[1]<>>32-t]:(t-=32,[e[1]<>>32-t,e[0]<>>32-t])}function _e(e,t){return 0==(t%=64)?e:t<32?[e[0]<>>32-t,e[1]<>>1]),e=ke(e=we(e,[4283543511,3981806797]),[0,e[0]>>>1]),ke(e=we(e,[3301882366,444984403]),[0,e[0]>>>1])}function Ce(e){return parseInt(e)}function xe(e){return parseFloat(e)}function Fe(e,t){return"number"==typeof e&&isNaN(e)?t:e}function Le(e){return e.reduce(function(e,t){return e+(t?1:0)},0)}function Ae(e,t){if(void 0===t&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function Me(e){return e&&"object"==typeof e&&"message"in e?e:{message:e}}function Te(e,t,n){var o=Object.keys(e).filter(function(e){return!function(e,t){for(var n=0,o=e.length;n=4}function Ie(){var e=window,t=navigator;return Le(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,0===t.vendor.indexOf("Google"),"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Re(){var e=window,t=navigator;return Le(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,0===t.vendor.indexOf("Apple"),"getStorageUpdates"in t,"WebKitMediaKeys"in e])>=4}function Pe(){var e=window;return Le(["safari"in e,!("DeviceMotionEvent"in e),!("ongestureend"in e),!("standalone"in navigator)])>=3}function Ve(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function We(){var e=Ie(),t=function(){var e,t,n=window;return Le(["buildID"in navigator,"MozAppearance"in(null!==(t=null===(e=document.documentElement)||void 0===e?void 0:e.style)&&void 0!==t?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}();if(!e&&!t)return!1;var n=window;return Le(["onorientationchange"in n,"orientation"in n,e&&!("SharedWorker"in n),t&&/android/i.test(navigator.appVersion)])>=2}function je(e){var t=new Error(e);return t.name=e,t}function Ne(e,t,n){var o,r,a;return void 0===n&&(n=50),le(this,void 0,void 0,function(){var i,c;return ue(this,function(s){switch(s.label){case 0:i=document,s.label=1;case 1:return i.body?[3,3]:[4,pe(n)];case 2:return s.sent(),[3,1];case 3:c=i.createElement("iframe"),s.label=4;case 4:return s.trys.push([4,,10,11]),[4,new Promise(function(e,n){var o=!1,r=function(){o=!0,e()};c.onload=r,c.onerror=function(e){o=!0,n(e)};var a=c.style;a.setProperty("display","block","important"),a.position="absolute",a.top="0",a.left="0",a.visibility="hidden",t&&"srcdoc"in c?c.srcdoc=t:c.src="about:blank",i.body.appendChild(c);var s=function(){var e,t;o||("complete"===(null===(t=null===(e=c.contentWindow)||void 0===e?void 0:e.document)||void 0===t?void 0:t.readyState)?r():setTimeout(s,10))};s()})];case 5:s.sent(),s.label=6;case 6:return(null===(r=null===(o=c.contentWindow)||void 0===o?void 0:o.document)||void 0===r?void 0:r.body)?[3,8]:[4,pe(n)];case 7:return s.sent(),[3,6];case 8:return[4,e(c,c.contentWindow)];case 9:return[2,s.sent()];case 10:return null===(a=c.parentNode)||void 0===a||a.removeChild(c),[7];case 11:return[2]}})})}function De(e){for(var t=function(e){for(var t,n,o="Unexpected syntax '".concat(e,"'"),r=/^\s*([a-z-]*)(.*)$/i.exec(e),a=r[1]||void 0,i={},c=/([.:#][\w-]+|\[.+?\])/gi,s=function(e,t){i[e]=i[e]||[],i[e].push(t)};;){var l=c.exec(r[2]);if(!l)break;var u=l[0];switch(u[0]){case".":s("class",u.slice(1));break;case"#":s("id",u.slice(1));break;case"[":var d=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(u);if(!d)throw new Error(o);s(d[1],null!==(n=null!==(t=d[4])&&void 0!==t?t:d[5])&&void 0!==n?n:"");break;default:throw new Error(o)}}return[a,i]}(e),n=t[0],o=t[1],r=document.createElement(null!=n?n:"div"),a=0,i=Object.keys(o);a.6*n.length})).sort(),[2,r]}var c})})},fontPreferences:function(){return void 0===e&&(e=4e3),Ne(function(t,n){var o=n.document,r=o.body,a=r.style;a.width="".concat(e,"px"),a.webkitTextSizeAdjust=a.textSizeAdjust="none",Ie()?r.style.zoom="".concat(1/n.devicePixelRatio):Re()&&(r.style.zoom="reset");var i=o.createElement("div");return i.textContent=de([],Array(e/20|0),!0).map(function(){return"word"}).join(" "),r.appendChild(i),function(e,t){for(var n={},o={},r=0,a=Object.keys(ot);r');var e},audio:function(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(Re()&&!Pe()&&!function(){var e=window;return Le(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}())return-1;var n=new t(1,5e3,44100),o=n.createOscillator();o.type="triangle",o.frequency.value=1e4;var r=n.createDynamicsCompressor();r.threshold.value=-50,r.knee.value=40,r.ratio.value=12,r.attack.value=0,r.release.value=.25,o.connect(r),r.connect(n.destination),o.start(0);var a=function(e){var t=function(){};return[new Promise(function(n,o){var r=!1,a=0,i=0;e.oncomplete=function(e){return n(e.renderedBuffer)};var c=function(){setTimeout(function(){return o(je("timeout"))},Math.min(500,i+5e3-Date.now()))},s=function(){try{var t=e.startRendering();switch(he(t)&&ye(t),e.state){case"running":i=Date.now(),r&&c();break;case"suspended":document.hidden||a++,r&&a>=3?o(je("suspended")):setTimeout(s,500)}}catch(e){o(e)}};s(),t=function(){r||(r=!0,i>0&&c())}}),t]}(n),i=a[0],c=a[1],s=i.then(function(e){return function(e){for(var t=0,n=0;n=3||n.push(t.languages);else if("string"==typeof t.languages){var r=t.languages;r&&n.push(r.split(","))}return n},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return Fe(xe(navigator.deviceMemory),void 0)},screenResolution:function(){var e=screen,t=function(e){return Fe(Ce(e),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n},hardwareConcurrency:function(){return Fe(Ce(navigator.hardwareConcurrency),void 0)},timezone:function(){var e,t=null===(e=window.Intl)||void 0===e?void 0:e.DateTimeFormat;if(t){var n=(new t).resolvedOptions().timeZone;if(n)return n}var o,r=(o=(new Date).getFullYear(),-Math.max(xe(new Date(o,0,1).getTimezoneOffset()),xe(new Date(o,6,1).getTimezoneOffset())));return"UTC".concat(r>=0?"+":"").concat(Math.abs(r))},sessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},localStorage:function(){try{return!!window.localStorage}catch(e){return!0}},indexedDB:function(){var e,t;if(!(Ee()||(e=window,t=navigator,Le(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!Ee())))try{return!!window.indexedDB}catch(e){return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var e=navigator.platform;return"MacIntel"===e&&Re()&&!Pe()?function(){if("iPad"===navigator.platform)return!0;var e=screen,t=e.width/e.height;return Le(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}()?"iPad":"iPhone":e},plugins:function(){var e=navigator.plugins;if(e){for(var t=[],n=0;n>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}(function(e){for(var t="",n=0,o=Object.keys(e).sort();n=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(me,"/npm-monitoring"),!0),e.send()}catch(e){console.error(e)}}(),[4,ct(n)];case 1:return e.sent(),[2,st(Te(rt,{debug:o},[]),o)]}})})},hashComponents:it,componentsToDebugString:at};const ut=(0,z.__)("An error was encountered when preparing the payment form. Please try again later.","woocommerce-payments");var dt=function(e){return e.AFFIRM="affirm",e.AFTERPAY_CLEARPAY="afterpay_clearpay",e.ALIPAY="alipay",e.AMAZON_PAY="amazon_pay",e.APPLE_PAY="apple_pay",e.AU_BECS_DEBIT="au_becs_debit",e.BANCONTACT="bancontact",e.CARD="card",e.CARD_PRESENT="card_present",e.EPS="eps",e.GIROPAY="giropay",e.GOOGLE_PAY="google_pay",e.GRABPAY="grabpay",e.IDEAL="ideal",e.KLARNA="klarna",e.LINK="link",e.MULTIBANCO="multibanco",e.P24="p24",e.SEPA_DEBIT="sepa_debit",e.SOFORT="sofort",e.WECHAT_PAY="wechat_pay",e}(dt||{});(0,z.__)("ACH Credit Transfer","woocommerce-payments"),(0,z.__)("ACH Debit","woocommerce-payments"),(0,z.__)("ACSS Debit","woocommerce-payments"),(0,z.__)("Amazon Pay","woocommerce-payments"),(0,z.__)("American Express","woocommerce-payments"),(0,z.__)("Card Payment","woocommerce-payments"),(0,z.__)("In-Person Card Payment","woocommerce-payments"),(0,z.__)("Cartes Bancaires","woocommerce-payments"),(0,z.__)("Diners Club","woocommerce-payments"),(0,z.__)("Discover","woocommerce-payments"),(0,z.__)("eftpos","woocommerce-payments"),(0,z.__)("JCB","woocommerce-payments"),(0,z.__)("Mastercard","woocommerce-payments"),(0,z.__)("Stripe Account","woocommerce-payments"),(0,z.__)("Union Pay","woocommerce-payments"),(0,z.__)("Visa","woocommerce-payments");const mt=dt,pt={};let ht=null;for(const e in n("paymentMethodsConfig"))pt[e]={elements:null,upeElement:null,hasLoadError:!1};function ft(e){const t=n("stylesCacheVersion"),o=function(e,t){try{const n=localStorage.getItem(ie(e));if(!n)return null;const o=JSON.parse(n);if(o?.version===t)return o.appearance}catch{}return null}(e,t);if(o)return o;const r=ae(e);return function(e,t){document.dispatchEvent(new CustomEvent("wcpay_elements_appearance",{detail:{appearance:e,elementsLocation:t}}))}(r,e),function(e){if(!e?.rules)return!1;const t=e.rules[".Input"];return t&&Object.keys(t).length>0}(r)&&function(e,t,n){try{localStorage.setItem(ie(e),JSON.stringify({version:t,appearance:n}))}catch{}}(e,t,r),r}async function bt(e){await e.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}})}function yt(e){e.removeClass("processing").unblock()}async function gt(e,t,o){try{if(!ht){const{visitorId:e}=await(async()=>{const e=await lt.load({monitoring:!1});if(!e)throw new Error(ut);return await e.get()})();ht=e}}catch(e){return void ce(e.message)}const a=new Event("wc-credit-card-form-init");document.body.dispatchEvent(a);const i=t.dataset.paymentMethodType;if(!pt[i])return;const c=pt[i].upeElement||await async function(e,t,o){const a=Number(n("cartTotal")),i=(e=>{const t=[e];return"card"===e&&r(n("paymentMethodsConfig"))&&t.push("link"),t})(t),c=ft(o);document.querySelector(`.wcpay-upe-element[data-payment-method-type="${t}"]`)?.closest(".wc_payment_method")?.classList.add(`theme--${c.theme||"stripe"}`);const s={mode:a<1?"setup":"payment",currency:n("currency").toLowerCase(),amount:a,paymentMethodCreation:"manual",paymentMethodTypes:i,appearance:c,fonts:oe()},l=(await e.getStripeForUPE(t)).elements(s),u=l.create("payment",{...q(t),wallets:{applePay:"never",googlePay:"never",link:r(n("paymentMethodsConfig"))&&"add_payment_method"!==o?"auto":"never"}});return pt[t].elements=l,pt[t].upeElement=u,u}(e,i,o);c.mount(t),c.on("loaderror",e=>{pt[i].hasLoadError=!0,t.style.padding="0";const n=document.createElement("div");n.classList.add("woocommerce-error"),n.innerHTML=e.error.message,n.style.margin="0",t.appendChild(n);const o=t.closest(".payment_box")?.querySelector(".woocommerce-SavedPaymentMethods-saveNew");o&&(o.style.display="none")})}const wt=({id:e},t,n)=>n.setupIntent(e,ht??"").then(function(e){!function(e,t){const n=document.createElement("input");n.type="hidden",n.id="wcpay-setup-intent",n.name="wcpay-setup-intent",n.value=t.id,e.append(n)}(t,e)});let vt;const _t=(e,t,o,r=()=>Promise.resolve())=>{if(!vt)return(async()=>{try{await bt(t);const{elements:a,hasLoadError:i}=pt[o];if(i)throw new Error((0,z.__)("Invalid or missing payment details. Please ensure the provided payment method is correctly entered.","woocommerce-payments"));await function(e){return e.submit().then(e=>{if(e.error)throw new Error(e.error.message)})}(a);const c=await async function(e,t,o,r){let a={};return window.wcpayCustomerData&&(a={billing_details:{name:wcpayCustomerData.name||void 0,email:wcpayCustomerData.email,address:wcpayCustomerData.address||{country:wcpayCustomerData.billing_country}}}),"checkout"===o.attr("name")&&(a={billing_details:{...a.billing_details,name:`${document.querySelector(`#${X.first_name}`)?.value||""} ${document.querySelector(`#${X.last_name}`)?.value||""}`.trim()||void 0,email:document.querySelector("#billing_email")?.value,phone:document.querySelector("#billing_phone")?.value,address:{...a.billing_details?.address,city:document.querySelector(`#${X.city}`)?.value,country:document.querySelector(`#${X.country}`)?.value,line1:document.querySelector(`#${X.address_1}`)?.value,line2:document.querySelector(`#${X.address_2}`)?.value,postal_code:document.querySelector(`#${X.postcode}`)?.value?.trim(),state:document.querySelector(`#${X.state}`)?.value}}}),n("isOrderPay")&&function(e,t){if(![mt.AFTERPAY_CLEARPAY,mt.AFFIRM].includes(t))return!1;const n=e?.billing_details?.address;if(!n)return!1;const o=t===mt.AFFIRM?["line1","state","city","postal_code","country"]:["line1","postal_code","country"];for(const e of o)if(""===n[e]||null===n[e]||void 0===n[e])return!0;return t===mt.AFFIRM&&!e.name}(a,r)&&delete a.billing_details.address,(await e.getStripeForUPE(r)).createPaymentMethod({elements:t,params:a})}(e,a,t,o);c.error?(O(t,"woocommerce_payments_payment_method_error"),((e,t)=>{[["wcpay-payment-method-error-code",t.code],["wcpay-payment-method-error-decline-code",t.decline_code],["wcpay-payment-method-error-message",t.message],["wcpay-payment-method-error-type",t.type]].forEach(([t,n])=>{e.append(``)})})(t,c.error)):O(t,c.paymentMethod.id),((e,t="")=>{e.find('input[name="wcpay-fingerprint"]').remove();const n=``;e.append(n)})(t,ht),(e=>{const t=window.wcpayFraudPreventionToken??"";e.append(``)})(t),await r(c.paymentMethod,t,e),vt=!0,t.removeClass("processing").submit()}catch(e){vt=!1,yt(t),ce(e.message)}})(),!1;vt=!1},kt="https://cdn.sift.com/s.js",St=({beacon_key:e,session_id:t,user_id:n})=>{const o=window._sift=window._sift||[];if(o.push(["_setAccount",e]),o.push(["_setUserId",n]),o.push(["_setSessionId",t]),o.push(["_trackPageview"]),!document.querySelector(`[src="${kt}"]`)){const e=document.createElement("script");e.src=kt,e.async=!0,document.body.appendChild(e)}};(Object.getOwnPropertyDescriptor(St,"name")||{}).writable||Object.defineProperty(St,"name",{value:"default",configurable:!0});const Ct="https://js.stripe.com/v3",xt=()=>{if(!document.querySelector(`[src^="${Ct}"]`)){const e=document.createElement("script");e.src=Ct,e.async=!0,document.body.appendChild(e)}};(Object.getOwnPropertyDescriptor(xt,"name")||{}).writable||Object.defineProperty(xt,"name",{value:"default",configurable:!0});const Ft={sift:St,stripe:xt},Lt=e=>{for(const t in e){const n=Ft[t];n&&e[t]&&n(e[t])}};(Object.getOwnPropertyDescriptor(Lt,"name")||{}).writable||Object.defineProperty(Lt,"name",{value:"default",configurable:!0});const At=e=>{const n=e.confirmIntent(window.location.href,document.querySelector("#wc-woocommerce_payments-new-payment-method")?.checked??!1);return!0===n?Promise.resolve():(history.replaceState("",document.title,window.location.pathname+window.location.search),n.then(e=>{window.location=e}).catch(e=>{let n=e.message;e instanceof Error&&(n=t("genericErrorMessage")),ce(n)}))},Mt=e=>"object"==typeof wcpayExpressCheckoutParams&&wcpayExpressCheckoutParams.hasOwnProperty(e)?wcpayExpressCheckoutParams[e]:null,Tt=(e,t,n="wcpay_")=>e.toString().replace("%%endpoint%%",n+t);class Et{constructor(e,t){this.options=e,this.stripe=null,this.stripePlatform=null,this.request=t}createStripe(e,t,n="",o=[]){const r={locale:t};return n&&(r.stripeAccount=n),o&&(r.betas=o),new Stripe(e,r)}async getStripeForUPE(e){return this.options.forceNetworkSavedCards=n("paymentMethodsConfig")[e].forceNetworkSavedCards,this.getStripe()}async getStripe(e=!1){let t=0;for(;!window.Stripe;)if(await new Promise(e=>setTimeout(e,100)),t+=100,t>6e5)throw new Error("Stripe object not found");return this.__getStripe(e)}__getStripe(e=!1){const{publishableKey:t,accountId:n,forceNetworkSavedCards:o,locale:r,isStripeLinkEnabled:a}=this.options;if(o&&!e)return this.stripePlatform||(this.stripePlatform=this.createStripe(t,r)),this.stripePlatform;if(!this.stripe){let e=["card_country_event_beta_1"];a&&(e=e.concat(["link_autofill_modal_beta_1"])),this.stripe=this.createStripe(t,r,n,e)}return this.stripe}async loadStripeForExpressCheckout(){try{return this.getStripe(!0)}catch(e){return{error:e}}}confirmIntent(e,n=!1){const o=e.match(/#wcpay-confirm-(pi|si):([^:]+):([^:]+):([^:]+)(?::(.+))?$/);if(!o)return!0;const r="si"===o[1];let a=o[2];const i=o[3],c=o[4],s=o[5]||null,l=e.indexOf("order-pay"),u=l>-1&&e.substring(l).match(/\d+/);return u&&(a=u[0]),(async()=>{const{locale:e,publishableKey:n}=this.options,o=t("accountIdForIntentConfirmation");if(r){const e=await this.getStripe(!0);return s?e.confirmSetup({clientSecret:i,confirmParams:{confirmation_token:s},redirect:"if_required"}):e.handleNextAction({clientSecret:i})}return o?this.createStripe(n,e,o).confirmCardPayment(i):(await this.getStripe(!0)).handleNextAction({clientSecret:i})})().then(e=>{let o=null;e.paymentIntent?.last_payment_error&&(o={message:e.paymentIntent.last_payment_error.message}),"requires_action"===e.paymentIntent?.status&&(o={message:"Payment requires additional action."});const r=e.paymentIntent&&e.paymentIntent.id||e.setupIntent&&e.setupIntent.id||e.error&&e.error.payment_intent&&e.error.payment_intent.id||e.error.setup_intent&&e.error.setup_intent.id,i=Mt("ajax_url")??t("ajaxUrl"),s=t("isChangingPayment");return[this.request(i,{action:"update_order_status",order_id:a,_ajax_nonce:c,intent_id:r,should_save_payment_method:n?"true":"false",is_changing_payment:s?"true":"false"}),o,e.error]}).then(([e,t,n])=>{if(n)throw n;return e.then(e=>{const n="string"==typeof e?JSON.parse(e):e;if(n.error)throw n.error;if(t)throw t;return n.return_url})})}async setupIntent(e,n=""){const o=await this.request(t("ajaxUrl"),{action:"create_setup_intent","wcpay-payment-method":e,_ajax_nonce:t("createSetupIntentNonce"),"wcpay-fraud-prevention-token":window.wcpayFraudPreventionToken??"","wcpay-fingerprint":n});if(!o.success)throw o.data.error;if("succeeded"===o.data.status)return o.data;const r=await this.getStripe(),a=await r.confirmCardSetup(o.data.client_secret),{setupIntent:i,error:c}=a;if(c)throw c;return i}expressCheckoutAddToCart(e){const n=t("wcAjaxUrl"),o=t("addToCartNonce");return this.request(Tt(n,"add_to_cart"),{security:o,...e})}}function It(e,t="",n){for(const o in e){const r=e[o],a=t?t+"["+o+"]":o;"string"==typeof r||"number"==typeof r?n.append(a,r):"object"==typeof r&&It(r,a,n)}return n}async function Rt(e,t,n){const o=It(t,"",new FormData),r=await fetch(e,{method:"POST",body:o,...n});return await r.json()}window.wp.domReady;const Pt=(e,n={})=>{if(!1===(t("isShopperTrackingEnabled")??Mt("is_shopper_tracking_enabled")))return;const o=t("platformTrackerNonce")??Mt("nonce")?.platform_tracker,r=t("ajaxUrl")??Mt("ajax_url"),a=new FormData;a.append("tracksNonce",o),a.append("action","platform_tracks"),a.append("tracksEventName",e),a.append("tracksEventProp",JSON.stringify(n)),fetch(r,{method:"post",body:a}).then(e=>e.json())},Vt=e=>e?new Promise(t=>{if(document.querySelector(e))return t(document.querySelector(e));const n=document.querySelector('[data-block-name="woocommerce/checkout"]');if(!n)return t(null);new MutationObserver((n,o)=>{document.querySelector(e)&&(t(document.querySelector(e)),o.disconnect())}).observe(n,{childList:!0,subtree:!0})}):null,Wt=e=>new RegExp(/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[0-9a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]){2,}\.?$/i).test(e),jt=()=>{const e=document.cookie.split(";").find(e=>e.includes("skip_woopay"));if(!e)return!1;const t=e?.split("=");return"skip_woopay"===t[0].trim()&&"1"===t[1].trim()},Nt=()=>{jt()&&(document.cookie="skip_woopay=; path=/; expires=Thu, 01 Jan 1970 00:00:00 UTC;")},Dt=()=>!!t("isShortcodeCheckout"),Zt=()=>document.querySelector(".wp-block-woocommerce-checkout")?"blocks_checkout":document.querySelector(".woocommerce-billing-fields")?"woopay_shortcode_checkout":document.querySelector(".wp-block-woocommerce-cart")?"bnpl_cart_block":document.querySelector(".woocommerce-cart-form")?"bnpl_classic_cart":document.querySelector(".single-product")?"bnpl_product_page":void 0,Ht=(e,t,n="appearance")=>{Object.entries(t).forEach(([t,o])=>{const r=`${n}[${t}]`;null!=o&&(o&&"object"==typeof o&&!Array.isArray(o)?Ht(e,o,r):e.append(r,o))})};let Yt=!1;let Xt=!1;const Gt=async(e,n,o=!1)=>{if("true"===window.wcpayConfig?.pay_for_order)return;let r;const a=await Vt(e),i=await(async()=>{let e=(()=>{const e=document.cookie.split(";");for(let t=0;t{(m<=window.innerWidth&&b||m>window.innerWidth&&!b)&&(b=!b,u.contentWindow.postMessage({action:"setHeader",value:b},t("woopayHost"))),document.body.style.overflow="hidden"},g=()=>{if(!u)return;if(m>window.innerWidth)return u.style.left="0",void(u.style.right="");if(u.getBoundingClientRect().top<=0||window.innerHeight-(u.getBoundingClientRect().height+u.getBoundingClientRect().top)<=0){const e=50,t=document.documentElement.scrollTop+a.getBoundingClientRect().top-u.getBoundingClientRect().height/2-e;window.scrollTo({top:t})}const e=a.getBoundingClientRect(),t=u.getBoundingClientRect();u.style.top=Math.floor(e.top-t.height/2)+"px",d.style.top=Math.floor(e.top+e.height/2-parseFloat(window.getComputedStyle(d)["border-right-width"]))+"px",window.innerWidth-(e.right+t.width)<=50?(u.style.left="auto",d.style.left="auto",u.style.right="50px",d.style.right=`${t.width+50}px`):(u.style.left=`${e.right+5}px`,u.style.right="",d.style.left=e.right-10+"px",d.style.right="")};u.addEventListener("load",()=>{b=!0;const e=function(){const e=Zt();if(!(e=>["woopay_shortcode_checkout","woopay_blocks_checkout","blocks_checkout","bnpl_product_page","bnpl_classic_cart","bnpl_cart_block"].includes(e))(e)||!t("isWooPayGlobalThemeSupportEnabled"))return null;const n=t("woopayAppearance");if(n)return n;if(Dt()){const n=ae(e,!0);return(e=>{if(Yt||!e)return;Yt=!0;const n=t("wcAjaxUrl");if(!n)return;const o=Tt(n,"shopper_set_woopay_appearance"),r=oe(),a=new FormData;a.append("_ajax_nonce",t("woopaySessionNonce")),Ht(a,e),a.append("font_rules",JSON.stringify(r)),fetch(o,{method:"POST",body:a,credentials:"same-origin"}).catch(()=>{})})(n),n}return null}();t("isWoopayFirstPartyAuthEnabled")&&Rt(Tt(t("wcAjaxUrl"),"get_woopay_session"),{_ajax_nonce:t("woopaySessionNonce"),order_id:t("order_id"),key:t("key"),billing_email:t("billing_email"),appearance:e}).then(e=>{e?.data?.session&&u.contentWindow.postMessage({action:"setSessionData",value:e},t("woopayHost"))}),y(),window.addEventListener("resize",y),g(),window.addEventListener("resize",g),u.classList.add("open")}),l.insertBefore(d,null),l.insertBefore(u,null);const w=document.createElement("div");w.textContent=(0,z.__)("WooPay is unavailable at this time. Please complete your checkout below. Sorry for the inconvenience.","woocommerce-payments"),w.classList.add("wc-block-checkout__guest-checkout-notice");const v=(e=!0)=>{window.removeEventListener("resize",y),window.removeEventListener("resize",g),l.remove(),u.classList.remove("open"),e&&a.focus(),document.body.style.overflow=""};l.addEventListener("click",v);const _=()=>{(o?s.parentNode:s).insertBefore(w,null)};document.addEventListener("keyup",e=>{"Escape"===e.key&&v()&&e.stopPropagation()});const k=new AbortController,{signal:S}=k;S.addEventListener("abort",()=>{c.remove(),v(!1)}),o?(await Vt("button.wc-block-components-checkout-place-order-button")).addEventListener("click",()=>{k.abort()}):document.querySelector('form[name="checkout"]').addEventListener("submit",()=>{k.abort()});const C=e=>{const t=new CustomEvent("woopayUserCheck",{detail:{isRegisteredUser:e}});window.dispatchEvent(t)},x=async(e,n=!0)=>{s.insertBefore(c,a);const r=o?s.parentNode:s;r.contains(w)&&r.removeChild(w),Pt("checkout_email_address_woopay_check"),Rt(Tt(t("wcAjaxUrl"),"get_woopay_signature"),{_ajax_nonce:t("woopaySignatureNonce")}).then(e=>{if(e.success)return e.data;throw new Error((0,z.__)("Request for signature failed.","woocommerce-payments"))}).then(e=>{if(e.signature)return e.signature;throw new Error((0,z.__)("Signature not found.","woocommerce-payments"))}).then(n=>{const o=new URLSearchParams;return o.append("email",e),o.append("test_mode",!!t("testMode")),o.append("wcpay_version",t("wcpayVersionNumber")),o.append("blog_id",t("woopayMerchantId")),o.append("request_signature",n),fetch(`${t("woopayHost")}/wp-json/platform-checkout/v1/user/exists?${o.toString()}`,{signal:S})}).then(e=>(200!==e.status&&_(),e.json())).then(r=>{C(r["user-exists"]),r["user-exists"]?n&&(e=>{if(document.querySelector(".woopay-otp-iframe"))return;const n=window.document.documentElement.clientWidth,r=window.document.documentElement.clientHeight,a=new URLSearchParams;a.append("email",e),a.append("testMode",t("testMode")),a.append("needsHeader",m>window.innerWidth),a.append("wcpayVersion",t("wcpayVersionNumber")),a.append("is_blocks",o?"true":"false"),a.append("source_url",window.wcSettings?.storePages?.checkout?.permalink),a.append("viewport",`${n}x${r}`),i&&a.append("tracksUserIdentity",i),u.src=`${t("woopayHost")}/otp/?${a.toString()}`,s.insertBefore(l,null),g(),u.focus()})(e):"rest_invalid_param"!==r.code&&(Pt("checkout_woopay_save_my_info_offered"),window.woopayCheckout?.PRE_CHECK_SAVE_MY_INFO&&Pt("checkout_save_my_info_click",{status:"checked"}))}).catch(e=>{window.wcpayConfig.woopayIsCountryAvailable&&"TypeError"===e.name&&_()}).finally(()=>{c.remove()})};if(a.addEventListener("input",e=>{const t=e.currentTarget.value;clearTimeout(r),c.remove(),r=setTimeout(()=>{C(!1),Wt(t)&&x(t)},500)}),window.addEventListener("message",e=>{if(e.origin===new URL(t("woopayHost")).origin)switch(e.data.action){case"redirect_to_woopay_skip_session_init":e.data.redirectUrl&&(Nt(),window.location=(e=>{const t=window.wcpayConfig.pay_for_order,n=window.wcpayConfig.order_id,o=window.wcpayConfig.key,r=window.wcpayConfig.billing_email;if(!t||!n||!o)return e;const a=new URL(e);return a.searchParams.append("pay_for_order",t),a.searchParams.append("order_id",n),a.searchParams.append("key",o),a.searchParams.append("billing_email",r),a.href})(e.data.redirectUrl));break;case"redirect_to_platform_checkout":case"redirect_to_woopay":const o=((e,n,o)=>{if(Xt)return;Xt=!0;const r=t("wcAjaxUrl"),a=t("initWooPayNonce");let i=null,c=null;if(t("isWooPayGlobalThemeSupportEnabled"))if(Dt()){const e=Zt();i=ae(e,!0),c=oe()}else i=t("woopayAppearance"),c=t("woopayFontRules");return e(Tt(r,"init_woopay"),{_wpnonce:a,appearance:i,font_rules:c,email:n,user_session:o,order_id:t("order_id"),key:t("key"),billing_email:t("billing_email")}).finally(()=>{Xt=!1})})(n.request,a.value,e.data.platformCheckoutUserSession);if(!o)break;o.then(e=>{document.querySelector(".woopay-otp-iframe")&&("success"===e.result?(Nt(),window.location=e.url):(_(),v(!1)))}).catch(()=>{_(),v(!1)});break;case"otp_validation_failed":break;case"close_modal":v();break;case"iframe_height":if(e.data.height>300)if(m<=window.innerWidth){u.style.height=e.data.height+"px";const t=a.getBoundingClientRect();u.style.top=Math.floor(t.top-e.data.height/2)+"px",d.style.top=Math.floor(t.top+t.height/2-parseFloat(window.getComputedStyle(d)["border-right-width"]))+"px"}else u.style.height="",u.style.top=""}}),window.addEventListener("pageshow",function(e){e.persisted&&v(!1)}),a.value){const e=a.value;Wt(e)&&x(e,!1)}if(f){setTimeout(()=>{C(!0)},2e3),Pt("woopay_skipped",{}),p.delete("skip_woopay");let{pathname:e}=window.location;""!==p.toString()&&(e+="?"+p.toString()),history.replaceState(null,null,e),v(!1)}},Bt=()=>null!==new URLSearchParams(window.location.search).get("customize_messenger_channel")||t("isPreview");let qt=!1,Ot=!1;const zt=()=>{const e=t("adminAppearanceNonce");if(!e||!Bt())return;const n=Zt(),o=ae(n,!0);if(!o)return;const r=t("ajaxUrl");if(!r)return;const a=oe(),i=new FormData;i.append("action","wcpay_admin_set_woopay_appearance"),i.append("_ajax_nonce",e),Ht(i,o),i.append("font_rules",JSON.stringify(a)),fetch(r,{method:"POST",body:i,credentials:"same-origin"}).catch(()=>{})};let Jt=null;document.addEventListener("click",function(e){const t=e.target?.closest(".js-woopayments-copy-test-number");if(!t)return;e.preventDefault();const n=t.querySelector("span").innerText;navigator.clipboard?(navigator.clipboard.writeText(n),window.wp?.data?.dispatch("core/notices")?.createInfoNotice((0,z.__)("Test number copied to your clipboard!","woocommerce-payments"),{id:"woopayments/test-number-copied",type:"snackbar",context:"wc/checkout/payments"}),t.classList.add("state--success"),clearTimeout(Jt),Jt=setTimeout(()=>{t.classList.remove("state--success")},2e3)):prompt((0,z.__)("Copy the test number:","woocommerce-payments"),n)},!1);const $t=e.p+"../assets/images/payment-method-icons/visa.svg?ver=fc7cc4d4e752bdf85f3d",Ut=e.p+"../assets/images/payment-method-icons/mastercard.svg?ver=4d62eb12903d72705eba",Qt=e.p+"../assets/images/payment-method-icons/amex.svg?ver=f55d5deea3391ea7797b",Kt=e.p+"../assets/images/payment-method-icons/discover.svg?ver=9c04fa2a8eed50cc729c",en=e.p+"../assets/images/cards/jcb.svg?ver=3fc73f04b9db34caa6d9",tn=e.p+"../assets/images/cards/unionpay.svg?ver=e60ed9d9db08315ff5c9",nn=e.p+"../assets/images/cards/cartes_bancaires.svg?ver=d30151baf3e66bac2776";jQuery(function(e){Lt(n("fraudServices"));const t=n("publishableKey");if(!t)return;const a=e("form.checkout"),i=e("form#add_payment_method"),c=e("form#order_review"),s=jQuery(a).add(i).add(c),l=new Et({publishableKey:t,accountId:n("accountId"),forceNetworkSavedCards:n("forceNetworkSavedCards"),locale:n("locale"),isStripeLinkEnabled:r(n("paymentMethodsConfig"))},Rt);function u(){const e="night"===function(){const e=Z(Y);return H(e)?"stripe":"night"}();document.querySelectorAll(".wcpay-upe-element").forEach(t=>{const o=t.dataset.paymentMethodType;if("card"===o)return;const r=n("paymentMethodsConfig")?.[o],a=e?r?.darkIcon:r?.icon;a&&t.closest(".wc_payment_method")?.querySelectorAll("label img").forEach(e=>{e.src=a})})}function d(e){const t=B();if(!function(e){const t=document.querySelector(`.wcpay-upe-form[data-payment-method-type="${e}"]`);if(!t)return!1;const n=`wc-${G(e)}-payment-token-new`,o=t.querySelector(`input#${n}`);return!!o&&!o.checked}(t))return _t(l,e,t)}async function m(t){const n=e(".wcpay-upe-form").find(".wcpay-upe-element");if(n.length&&!n.children().length)for(const e of n.toArray())await gt(l,e,t),p(e)}function p(e){(e=>!!n("paymentMethodsConfig")[e.dataset.paymentMethodType].countries.length)(e)&&(e=>{const t=e?.closest(".wc_payment_method");if(!t)return;const o=n("paymentMethodsConfig"),r=e.dataset.paymentMethodType,a=o[r].countries,i=B();let c=e.closest("form.checkout, form#add_payment_method")?.querySelector('[name="billing_country"]');c||(c=document.querySelector("#billing_country"));const s=c?.value||window?.wcpayCustomerData?.billing_country||"";if(a.includes(s))t.style.removeProperty("display");else if(t.style.display="none",r===i){const e=document.querySelector('input[name="payment_method"][value="woocommerce_payments"]');e?.click()}})(e)}bt(s),At(l).finally(()=>{yt(s)}),e(document.body).on("updated_checkout",()=>{u(),m("shortcode_checkout"),async function(){const e=document.querySelector('label[for="payment_method_woocommerce_payments"]');if(!e)return;if(e.querySelector(".payment-methods--logos"))return;const t=e.querySelector("img");if(!t)return;const o=document.createElement("div");o.className="payment-methods--logos";const r=document.createElement("div");r.setAttribute("role","button"),r.setAttribute("tabindex","0"),r.setAttribute("data-testid","payment-methods-logos");const a=(()=>{const e=[{name:"visa",component:$t},{name:"mastercard",component:Ut},{name:"amex",component:Qt},{name:"discover",component:Kt}],t=[{name:"jcb",component:en},{name:"unionpay",component:tn}];return"FR"===n("storeCountry")&&t.push({name:"cartes_bancaires",component:nn}),[...e,...t]})();function i(){const e=window.innerWidth;return e>=768&&e<=900?1:3}function c(){return a.length>i()}function s(e,t){const n=t.closest("label");if(!n)return;const o=n.getBoundingClientRect(),r=window.getComputedStyle(n),a=parseInt(r.paddingRight,10);e.style.position="fixed",e.style.right=window.innerWidth-(o.right-a)+"px",e.style.top=o.top-25+"px",e.style.zIndex="1000",e.style.left="auto"}function l(){r.innerHTML="";const t=i(),n=a.slice(0,t),o=a.length-t;if(n.forEach(e=>{const t=document.createElement("img");t.src=e.component,t.alt=e.name,t.width=38,t.height=24,r.appendChild(t)}),c()){const e=document.createElement("div");e.className="payment-methods--logos-count",e.textContent=`+ ${o}`,e.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),d()}),r.appendChild(e)}const s=e.querySelector(".logo-popover");s&&!c()&&s.remove()}function u(){const t=function(e){const t=document.createElement("div");t.className="logo-popover",t.setAttribute("role","dialog"),t.setAttribute("aria-label","Supported Credit Card Brands"),e.forEach(e=>{const n=document.createElement("img");n.src=e.component,n.alt=e.name,n.width=38,n.height=24,t.appendChild(n)});const n=Math.min(e.length,5);t.style.gridTemplateColumns=`repeat(${n}, 38px)`;const o=38*n+8*(n-1)+16;return t.style.width=`${o}px`,t}(a.slice(i()));e.appendChild(t),s(t,r);const n=()=>s(t,r);window.addEventListener("resize",n),window.addEventListener("scroll",n);const o={},c=()=>{t.remove(),window.removeEventListener("resize",n),window.removeEventListener("scroll",n),document.removeEventListener("mousedown",o.handleOutsideClick),document.removeEventListener("keydown",o.handleEscapeKey)};o.handleOutsideClick=e=>{t.contains(e.target)||r.contains(e.target)||c()},o.handleEscapeKey=e=>{"Escape"===e.key&&c()},document.addEventListener("mousedown",o.handleOutsideClick),document.addEventListener("keydown",o.handleEscapeKey)}function d(){if(!c())return;const t=e.querySelector(".logo-popover");t?t.remove():u()}r.addEventListener("keydown",e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),d())}),o.appendChild(r),t.replaceWith(o),l(),window.addEventListener("resize",l)}()}),e(`[name="${X.country}"]`).on("change",function(){this.closest("form.checkout")?.querySelectorAll(".wcpay-upe-element").forEach(p)}),a.on(Object.values(n("paymentMethodsConfig")).map(e=>`checkout_place_order_${e.gatewayId}`).join(" "),function(){if(!(()=>{const e=n("enabledBillingFields");if(!`${document.querySelector(`#${X.first_name}`)?.value||""} ${document.querySelector(`#${X.last_name}`)?.value||""}`.trim()&&(e[X.first_name]||e[X.last_name]))return!0;const t=["billing_email",X.country,X.address_1,X.city,X.postcode].filter(t=>e[t]),o=t.includes(X.country)?document.querySelector(`#${X.country}`)?.value:null;return Boolean(t.find(t=>{const n=document.querySelector(`#${t}`);let r=e[t]?.required;const a=function(){try{return JSON.parse(wc_address_i18n_params.locale.replace(/"/g,'"'))}catch(e){return null}}();if(o&&a&&"billing_email"!==t){const e=t.replace("billing_","");r=a[o]?.[e]?.required??a.default?.[e]?.required}const i=n?.value;return r&&!i}))})())return d(e(this))}),a.on("click","#place_order",function(){B()&&Pt("checkout_place_order_button_click")}),window.addEventListener("hashchange",()=>{window.location.hash.startsWith("#wcpay-confirm-")&&(bt(s),At(l).finally(()=>{yt(s)}))}),document.addEventListener("change",function(e){e.target&&"wc-woocommerce_payments-new-payment-method"===e.target.id&&async function(e){const t=e.target.checked?"always":"never",r=B();if(!r)return;const a=pt[r].upeElement;a&&await a.update({terms:o(n("paymentMethodsConfig"),t)})}(e)}),i.length&&(m("add_payment_method"),u()),c.length&&(m("shortcode_checkout"),u()),i.on("submit",function(){if("woocommerce_payments"===i.find("input:checked[name='payment_method']").val())return e.blockUI.defaults.ignoreIfBlocked=!0,_t(l,i,B(),wt)}),c.on("submit",function(){if(null!==B())return d(c)}),n("isWooPayEnabled")&&n("isWooPayEmailInputEnabled")&&!Bt()&&Gt("#billing_email",l),window.addEventListener("load",()=>{qt||(qt=!0,zt(),!Ot&&window.wp?.customize&&(Ot=!0,window.wp.customize.bind("saved",()=>{zt()})))})})})()})();