woocommerce-paypal-payments/modules/ppcp-paypal-subscriptions/assets/js/paypal-subscription.js
Emili Castells Guasch a72f2f8e9a Bump 2.4.2 version
2023-11-28 11:09:58 +01:00

2 lines
No EOL
35 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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

(()=>{var t={9662:(t,r,e)=>{var n=e(614),o=e(6330),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},9483:(t,r,e)=>{var n=e(4411),o=e(6330),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a constructor")}},6077:(t,r,e)=>{var n=e(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},5787:(t,r,e)=>{var n=e(7976),o=TypeError;t.exports=function(t,r){if(n(r,t))return t;throw o("Incorrect invocation")}},9670:(t,r,e)=>{var n=e(111),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},8533:(t,r,e)=>{"use strict";var n=e(2092).forEach,o=e(9341)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},1318:(t,r,e)=>{var n=e(5656),o=e(1400),i=e(6244),c=function(t){return function(r,e,c){var a,u=n(r),s=i(u),f=o(c,s);if(t&&e!=e){for(;s>f;)if((a=u[f++])!=a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===e)return t||f||0;return!t&&-1}};t.exports={includes:c(!0),indexOf:c(!1)}},2092:(t,r,e)=>{var n=e(9974),o=e(1702),i=e(8361),c=e(7908),a=e(6244),u=e(5417),s=o([].push),f=function(t){var r=1==t,e=2==t,o=3==t,f=4==t,p=6==t,l=7==t,v=5==t||p;return function(d,y,h,m){for(var b,g,x=c(d),S=i(x),w=n(y,h),E=a(S),_=0,j=m||u,O=r?j(d,E):e||l?j(d,0):void 0;E>_;_++)if((v||_ in S)&&(g=w(b=S[_],_,x),t))if(r)O[_]=g;else if(g)switch(t){case 3:return!0;case 5:return b;case 6:return _;case 2:s(O,b)}else switch(t){case 4:return!1;case 7:s(O,b)}return p?-1:o||f?f:O}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},9341:(t,r,e)=>{"use strict";var n=e(7293);t.exports=function(t,r){var e=[][t];return!!e&&n((function(){e.call(null,r||function(){return 1},1)}))}},206:(t,r,e)=>{var n=e(1702);t.exports=n([].slice)},7475:(t,r,e)=>{var n=e(3157),o=e(4411),i=e(111),c=e(5112)("species"),a=Array;t.exports=function(t){var r;return n(t)&&(r=t.constructor,(o(r)&&(r===a||n(r.prototype))||i(r)&&null===(r=r[c]))&&(r=void 0)),void 0===r?a:r}},5417:(t,r,e)=>{var n=e(7475);t.exports=function(t,r){return new(n(t))(0===r?0:r)}},7072:(t,r,e)=>{var n=e(5112)("iterator"),o=!1;try{var i=0,c={next:function(){return{done:!!i++}},return:function(){o=!0}};c[n]=function(){return this},Array.from(c,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var e=!1;try{var i={};i[n]=function(){return{next:function(){return{done:e=!0}}}},t(i)}catch(t){}return e}},4326:(t,r,e)=>{var n=e(1702),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},648:(t,r,e)=>{var n=e(1694),o=e(614),i=e(4326),c=e(5112)("toStringTag"),a=Object,u="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=a(t),c))?e:u?i(r):"Object"==(n=i(r))&&o(r.callee)?"Arguments":n}},9920:(t,r,e)=>{var n=e(2597),o=e(3887),i=e(1236),c=e(3070);t.exports=function(t,r,e){for(var a=o(r),u=c.f,s=i.f,f=0;f<a.length;f++){var p=a[f];n(t,p)||e&&n(e,p)||u(t,p,s(r,p))}}},8880:(t,r,e)=>{var n=e(9781),o=e(3070),i=e(9114);t.exports=n?function(t,r,e){return o.f(t,r,i(1,e))}:function(t,r,e){return t[r]=e,t}},9114:t=>{t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},7045:(t,r,e)=>{var n=e(6339),o=e(3070);t.exports=function(t,r,e){return e.get&&n(e.get,r,{getter:!0}),e.set&&n(e.set,r,{setter:!0}),o.f(t,r,e)}},8052:(t,r,e)=>{var n=e(614),o=e(3070),i=e(6339),c=e(3072);t.exports=function(t,r,e,a){a||(a={});var u=a.enumerable,s=void 0!==a.name?a.name:r;if(n(e)&&i(e,s,a),a.global)u?t[r]=e:c(r,e);else{try{a.unsafe?t[r]&&(u=!0):delete t[r]}catch(t){}u?t[r]=e:o.f(t,r,{value:e,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},3072:(t,r,e)=>{var n=e(7854),o=Object.defineProperty;t.exports=function(t,r){try{o(n,t,{value:r,configurable:!0,writable:!0})}catch(e){n[t]=r}return r}},9781:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:t=>{var r="object"==typeof document&&document.all,e=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:e}},317:(t,r,e)=>{var n=e(7854),o=e(111),i=n.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(t,r,e)=>{var n=e(317)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},7871:(t,r,e)=>{var n=e(3823),o=e(5268);t.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},3823:t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1528:(t,r,e)=>{var n=e(8113);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},6833:(t,r,e)=>{var n=e(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5268:(t,r,e)=>{var n=e(4326);t.exports="undefined"!=typeof process&&"process"==n(process)},1036:(t,r,e)=>{var n=e(8113);t.exports=/web0s(?!.*chrome)/i.test(n)},8113:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:(t,r,e)=>{var n,o,i=e(7854),c=e(8113),a=i.process,u=i.Deno,s=a&&a.versions||u&&u.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&c&&(!(n=c.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=c.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1060:(t,r,e)=>{var n=e(1702),o=Error,i=n("".replace),c=String(o("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(c);t.exports=function(t,r){if(u&&"string"==typeof t&&!o.prepareStackTrace)for(;r--;)t=i(t,a,"");return t}},5392:(t,r,e)=>{var n=e(8880),o=e(1060),i=e(2914),c=Error.captureStackTrace;t.exports=function(t,r,e,a){i&&(c?c(t,r):n(t,"stack",o(e,a)))}},2914:(t,r,e)=>{var n=e(7293),o=e(9114);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",o(1,7)),7!==t.stack)}))},2109:(t,r,e)=>{var n=e(7854),o=e(1236).f,i=e(8880),c=e(8052),a=e(3072),u=e(9920),s=e(4705);t.exports=function(t,r){var e,f,p,l,v,d=t.target,y=t.global,h=t.stat;if(e=y?n:h?n[d]||a(d,{}):(n[d]||{}).prototype)for(f in r){if(l=r[f],p=t.dontCallGetSet?(v=o(e,f))&&v.value:e[f],!s(y?f:d+(h?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;u(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),c(e,f,l,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},2104:(t,r,e)=>{var n=e(4374),o=Function.prototype,i=o.apply,c=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?c.bind(i):function(){return c.apply(i,arguments)})},9974:(t,r,e)=>{var n=e(1470),o=e(9662),i=e(4374),c=n(n.bind);t.exports=function(t,r){return o(t),void 0===r?t:i?c(t,r):function(){return t.apply(r,arguments)}}},4374:(t,r,e)=>{var n=e(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:(t,r,e)=>{var n=e(4374),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},6530:(t,r,e)=>{var n=e(9781),o=e(2597),i=Function.prototype,c=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),u=a&&"something"===function(){}.name,s=a&&(!n||n&&c(i,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:s}},5668:(t,r,e)=>{var n=e(1702),o=e(9662);t.exports=function(t,r,e){try{return n(o(Object.getOwnPropertyDescriptor(t,r)[e]))}catch(t){}}},1470:(t,r,e)=>{var n=e(4326),o=e(1702);t.exports=function(t){if("Function"===n(t))return o(t)}},1702:(t,r,e)=>{var n=e(4374),o=Function.prototype,i=o.call,c=n&&o.bind.bind(i,i);t.exports=n?c:function(t){return function(){return i.apply(t,arguments)}}},5005:(t,r,e)=>{var n=e(7854),o=e(614);t.exports=function(t,r){return arguments.length<2?(e=n[t],o(e)?e:void 0):n[t]&&n[t][r];var e}},1246:(t,r,e)=>{var n=e(648),o=e(8173),i=e(8554),c=e(7497),a=e(5112)("iterator");t.exports=function(t){if(!i(t))return o(t,a)||o(t,"@@iterator")||c[n(t)]}},4121:(t,r,e)=>{var n=e(6916),o=e(9662),i=e(9670),c=e(6330),a=e(1246),u=TypeError;t.exports=function(t,r){var e=arguments.length<2?a(t):r;if(o(e))return i(n(e,t));throw u(c(t)+" is not iterable")}},8044:(t,r,e)=>{var n=e(1702),o=e(3157),i=e(614),c=e(4326),a=e(1340),u=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var r=t.length,e=[],n=0;n<r;n++){var s=t[n];"string"==typeof s?u(e,s):"number"!=typeof s&&"Number"!=c(s)&&"String"!=c(s)||u(e,a(s))}var f=e.length,p=!0;return function(t,r){if(p)return p=!1,r;if(o(this))return r;for(var n=0;n<f;n++)if(e[n]===t)return r}}}},8173:(t,r,e)=>{var n=e(9662),o=e(8554);t.exports=function(t,r){var e=t[r];return o(e)?void 0:n(e)}},7854:function(t,r,e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||function(){return this}()||this||Function("return this")()},2597:(t,r,e)=>{var n=e(1702),o=e(7908),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,r){return i(o(t),r)}},3501:t=>{t.exports={}},842:t=>{t.exports=function(t,r){try{1==arguments.length?console.error(t):console.error(t,r)}catch(t){}}},490:(t,r,e)=>{var n=e(5005);t.exports=n("document","documentElement")},4664:(t,r,e)=>{var n=e(9781),o=e(7293),i=e(317);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(t,r,e)=>{var n=e(1702),o=e(7293),i=e(4326),c=Object,a=n("".split);t.exports=o((function(){return!c("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):c(t)}:c},9587:(t,r,e)=>{var n=e(614),o=e(111),i=e(7674);t.exports=function(t,r,e){var c,a;return i&&n(c=r.constructor)&&c!==e&&o(a=c.prototype)&&a!==e.prototype&&i(t,a),t}},2788:(t,r,e)=>{var n=e(1702),o=e(614),i=e(5465),c=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return c(t)}),t.exports=i.inspectSource},8340:(t,r,e)=>{var n=e(111),o=e(8880);t.exports=function(t,r){n(r)&&"cause"in r&&o(t,"cause",r.cause)}},9909:(t,r,e)=>{var n,o,i,c=e(4811),a=e(7854),u=e(111),s=e(8880),f=e(2597),p=e(5465),l=e(6200),v=e(3501),d="Object already initialized",y=a.TypeError,h=a.WeakMap;if(c||p.state){var m=p.state||(p.state=new h);m.get=m.get,m.has=m.has,m.set=m.set,n=function(t,r){if(m.has(t))throw y(d);return r.facade=t,m.set(t,r),r},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var b=l("state");v[b]=!0,n=function(t,r){if(f(t,b))throw y(d);return r.facade=t,s(t,b,r),r},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(r){var e;if(!u(r)||(e=o(r)).type!==t)throw y("Incompatible receiver, "+t+" required");return e}}}},7659:(t,r,e)=>{var n=e(5112),o=e(7497),i=n("iterator"),c=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||c[i]===t)}},3157:(t,r,e)=>{var n=e(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:(t,r,e)=>{var n=e(4154),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},4411:(t,r,e)=>{var n=e(1702),o=e(7293),i=e(614),c=e(648),a=e(5005),u=e(2788),s=function(){},f=[],p=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,v=n(l.exec),d=!l.exec(s),y=function(t){if(!i(t))return!1;try{return p(s,f,t),!0}catch(t){return!1}},h=function(t){if(!i(t))return!1;switch(c(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!v(l,u(t))}catch(t){return!0}};h.sham=!0,t.exports=!p||o((function(){var t;return y(y.call)||!y(Object)||!y((function(){t=!0}))||t}))?h:y},4705:(t,r,e)=>{var n=e(7293),o=e(614),i=/#|\.prototype\./,c=function(t,r){var e=u[a(t)];return e==f||e!=s&&(o(r)?n(r):!!r)},a=c.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=c.data={},s=c.NATIVE="N",f=c.POLYFILL="P";t.exports=c},8554:t=>{t.exports=function(t){return null==t}},111:(t,r,e)=>{var n=e(614),o=e(4154),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},1913:t=>{t.exports=!1},2190:(t,r,e)=>{var n=e(5005),o=e(614),i=e(7976),c=e(3307),a=Object;t.exports=c?function(t){return"symbol"==typeof t}:function(t){var r=n("Symbol");return o(r)&&i(r.prototype,a(t))}},408:(t,r,e)=>{var n=e(9974),o=e(6916),i=e(9670),c=e(6330),a=e(7659),u=e(6244),s=e(7976),f=e(4121),p=e(1246),l=e(9212),v=TypeError,d=function(t,r){this.stopped=t,this.result=r},y=d.prototype;t.exports=function(t,r,e){var h,m,b,g,x,S,w,E=e&&e.that,_=!(!e||!e.AS_ENTRIES),j=!(!e||!e.IS_RECORD),O=!(!e||!e.IS_ITERATOR),T=!(!e||!e.INTERRUPTED),P=n(r,E),C=function(t){return h&&l(h,"normal",t),new d(!0,t)},L=function(t){return _?(i(t),T?P(t[0],t[1],C):P(t[0],t[1])):T?P(t,C):P(t)};if(j)h=t.iterator;else if(O)h=t;else{if(!(m=p(t)))throw v(c(t)+" is not iterable");if(a(m)){for(b=0,g=u(t);g>b;b++)if((x=L(t[b]))&&s(y,x))return x;return new d(!1)}h=f(t,m)}for(S=j?t.next:h.next;!(w=o(S,h)).done;){try{x=L(w.value)}catch(t){l(h,"throw",t)}if("object"==typeof x&&x&&s(y,x))return x}return new d(!1)}},9212:(t,r,e)=>{var n=e(6916),o=e(9670),i=e(8173);t.exports=function(t,r,e){var c,a;o(t);try{if(!(c=i(t,"return"))){if("throw"===r)throw e;return e}c=n(c,t)}catch(t){a=!0,c=t}if("throw"===r)throw e;if(a)throw c;return o(c),e}},7497:t=>{t.exports={}},6244:(t,r,e)=>{var n=e(7466);t.exports=function(t){return n(t.length)}},6339:(t,r,e)=>{var n=e(1702),o=e(7293),i=e(614),c=e(2597),a=e(9781),u=e(6530).CONFIGURABLE,s=e(2788),f=e(9909),p=f.enforce,l=f.get,v=String,d=Object.defineProperty,y=n("".slice),h=n("".replace),m=n([].join),b=a&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),g=String(String).split("String"),x=t.exports=function(t,r,e){"Symbol("===y(v(r),0,7)&&(r="["+h(v(r),/^Symbol\(([^)]*)\)/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!c(t,"name")||u&&t.name!==r)&&(a?d(t,"name",{value:r,configurable:!0}):t.name=r),b&&e&&c(e,"arity")&&t.length!==e.arity&&d(t,"length",{value:e.arity});try{e&&c(e,"constructor")&&e.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=p(t);return c(n,"source")||(n.source=m(g,"string"==typeof r?r:"")),t};Function.prototype.toString=x((function(){return i(this)&&l(this).source||s(this)}),"toString")},4758:t=>{var r=Math.ceil,e=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?e:r)(n)}},5948:(t,r,e)=>{var n,o,i,c,a,u=e(7854),s=e(9974),f=e(1236).f,p=e(261).set,l=e(8572),v=e(6833),d=e(1528),y=e(1036),h=e(5268),m=u.MutationObserver||u.WebKitMutationObserver,b=u.document,g=u.process,x=u.Promise,S=f(u,"queueMicrotask"),w=S&&S.value;if(!w){var E=new l,_=function(){var t,r;for(h&&(t=g.domain)&&t.exit();r=E.get();)try{r()}catch(t){throw E.head&&n(),t}t&&t.enter()};v||h||y||!m||!b?!d&&x&&x.resolve?((c=x.resolve(void 0)).constructor=x,a=s(c.then,c),n=function(){a(_)}):h?n=function(){g.nextTick(_)}:(p=s(p,u),n=function(){p(_)}):(o=!0,i=b.createTextNode(""),new m(_).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),w=function(t){E.head||n(),E.add(t)}}t.exports=w},8523:(t,r,e)=>{"use strict";var n=e(9662),o=TypeError,i=function(t){var r,e;this.promise=new t((function(t,n){if(void 0!==r||void 0!==e)throw o("Bad Promise constructor");r=t,e=n})),this.resolve=n(r),this.reject=n(e)};t.exports.f=function(t){return new i(t)}},6277:(t,r,e)=>{var n=e(1340);t.exports=function(t,r){return void 0===t?arguments.length<2?"":r:n(t)}},3009:(t,r,e)=>{var n=e(7854),o=e(7293),i=e(1702),c=e(1340),a=e(3111).trim,u=e(1361),s=n.parseInt,f=n.Symbol,p=f&&f.iterator,l=/^[+-]?0x/i,v=i(l.exec),d=8!==s(u+"08")||22!==s(u+"0x16")||p&&!o((function(){s(Object(p))}));t.exports=d?function(t,r){var e=a(c(t));return s(e,r>>>0||(v(l,e)?16:10))}:s},3070:(t,r,e)=>{var n=e(9781),o=e(4664),i=e(3353),c=e(9670),a=e(4948),u=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";r.f=n?i?function(t,r,e){if(c(t),r=a(r),c(e),"function"==typeof t&&"prototype"===r&&"value"in e&&v in e&&!e[v]){var n=f(t,r);n&&n[v]&&(t[r]=e.value,e={configurable:l in e?e[l]:n[l],enumerable:p in e?e[p]:n[p],writable:!1})}return s(t,r,e)}:s:function(t,r,e){if(c(t),r=a(r),c(e),o)try{return s(t,r,e)}catch(t){}if("get"in e||"set"in e)throw u("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},1236:(t,r,e)=>{var n=e(9781),o=e(6916),i=e(5296),c=e(9114),a=e(5656),u=e(4948),s=e(2597),f=e(4664),p=Object.getOwnPropertyDescriptor;r.f=n?p:function(t,r){if(t=a(t),r=u(r),f)try{return p(t,r)}catch(t){}if(s(t,r))return c(!o(i.f,t,r),t[r])}},8006:(t,r,e)=>{var n=e(6324),o=e(748).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},5181:(t,r)=>{r.f=Object.getOwnPropertySymbols},7976:(t,r,e)=>{var n=e(1702);t.exports=n({}.isPrototypeOf)},6324:(t,r,e)=>{var n=e(1702),o=e(2597),i=e(5656),c=e(1318).indexOf,a=e(3501),u=n([].push);t.exports=function(t,r){var e,n=i(t),s=0,f=[];for(e in n)!o(a,e)&&o(n,e)&&u(f,e);for(;r.length>s;)o(n,e=r[s++])&&(~c(f,e)||u(f,e));return f}},5296:(t,r)=>{"use strict";var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!e.call({1:2},1);r.f=o?function(t){var r=n(this,t);return!!r&&r.enumerable}:e},7674:(t,r,e)=>{var n=e(5668),o=e(9670),i=e(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=n(Object.prototype,"__proto__","set"))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return o(e),i(n),r?t(e,n):e.__proto__=n,e}}():void 0)},288:(t,r,e)=>{"use strict";var n=e(1694),o=e(648);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},2140:(t,r,e)=>{var n=e(6916),o=e(614),i=e(111),c=TypeError;t.exports=function(t,r){var e,a;if("string"===r&&o(e=t.toString)&&!i(a=n(e,t)))return a;if(o(e=t.valueOf)&&!i(a=n(e,t)))return a;if("string"!==r&&o(e=t.toString)&&!i(a=n(e,t)))return a;throw c("Can't convert object to primitive value")}},3887:(t,r,e)=>{var n=e(5005),o=e(1702),i=e(8006),c=e(5181),a=e(9670),u=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var r=i.f(a(t)),e=c.f;return e?u(r,e(t)):r}},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},3702:(t,r,e)=>{var n=e(7854),o=e(2492),i=e(614),c=e(4705),a=e(2788),u=e(5112),s=e(7871),f=e(3823),p=e(1913),l=e(7392),v=o&&o.prototype,d=u("species"),y=!1,h=i(n.PromiseRejectionEvent),m=c("Promise",(function(){var t=a(o),r=t!==String(o);if(!r&&66===l)return!0;if(p&&(!v.catch||!v.finally))return!0;if(!l||l<51||!/native code/.test(t)){var e=new o((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((e.constructor={})[d]=n,!(y=e.then((function(){}))instanceof n))return!0}return!r&&(s||f)&&!h}));t.exports={CONSTRUCTOR:m,REJECTION_EVENT:h,SUBCLASSING:y}},2492:(t,r,e)=>{var n=e(7854);t.exports=n.Promise},9478:(t,r,e)=>{var n=e(9670),o=e(111),i=e(8523);t.exports=function(t,r){if(n(t),o(r)&&r.constructor===t)return r;var e=i.f(t);return(0,e.resolve)(r),e.promise}},612:(t,r,e)=>{var n=e(2492),o=e(7072),i=e(3702).CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},2626:(t,r,e)=>{var n=e(3070).f;t.exports=function(t,r,e){e in t||n(t,e,{configurable:!0,get:function(){return r[e]},set:function(t){r[e]=t}})}},8572:t=>{var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var r={item:t,next:null},e=this.tail;e?e.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=r},4488:(t,r,e)=>{var n=e(8554),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},6340:(t,r,e)=>{"use strict";var n=e(5005),o=e(7045),i=e(5112),c=e(9781),a=i("species");t.exports=function(t){var r=n(t);c&&r&&!r[a]&&o(r,a,{configurable:!0,get:function(){return this}})}},8003:(t,r,e)=>{var n=e(3070).f,o=e(2597),i=e(5112)("toStringTag");t.exports=function(t,r,e){t&&!e&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:r})}},6200:(t,r,e)=>{var n=e(2309),o=e(9711),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:(t,r,e)=>{var n=e(7854),o=e(3072),i="__core-js_shared__",c=n[i]||o(i,{});t.exports=c},2309:(t,r,e)=>{var n=e(1913),o=e(5465);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.30.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},6707:(t,r,e)=>{var n=e(9670),o=e(9483),i=e(8554),c=e(5112)("species");t.exports=function(t,r){var e,a=n(t).constructor;return void 0===a||i(e=n(a)[c])?r:o(e)}},3111:(t,r,e)=>{var n=e(1702),o=e(4488),i=e(1340),c=e(1361),a=n("".replace),u=RegExp("^["+c+"]+"),s=RegExp("(^|[^"+c+"])["+c+"]+$"),f=function(t){return function(r){var e=i(o(r));return 1&t&&(e=a(e,u,"")),2&t&&(e=a(e,s,"$1")),e}};t.exports={start:f(1),end:f(2),trim:f(3)}},6293:(t,r,e)=>{var n=e(7392),o=e(7293),i=e(7854).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},261:(t,r,e)=>{var n,o,i,c,a=e(7854),u=e(2104),s=e(9974),f=e(614),p=e(2597),l=e(7293),v=e(490),d=e(206),y=e(317),h=e(8053),m=e(6833),b=e(5268),g=a.setImmediate,x=a.clearImmediate,S=a.process,w=a.Dispatch,E=a.Function,_=a.MessageChannel,j=a.String,O=0,T={},P="onreadystatechange";l((function(){n=a.location}));var C=function(t){if(p(T,t)){var r=T[t];delete T[t],r()}},L=function(t){return function(){C(t)}},R=function(t){C(t.data)},I=function(t){a.postMessage(j(t),n.protocol+"//"+n.host)};g&&x||(g=function(t){h(arguments.length,1);var r=f(t)?t:E(t),e=d(arguments,1);return T[++O]=function(){u(r,void 0,e)},o(O),O},x=function(t){delete T[t]},b?o=function(t){S.nextTick(L(t))}:w&&w.now?o=function(t){w.now(L(t))}:_&&!m?(c=(i=new _).port2,i.port1.onmessage=R,o=s(c.postMessage,c)):a.addEventListener&&f(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!l(I)?(o=I,a.addEventListener("message",R,!1)):o=P in y("script")?function(t){v.appendChild(y("script"))[P]=function(){v.removeChild(this),C(t)}}:function(t){setTimeout(L(t),0)}),t.exports={set:g,clear:x}},1400:(t,r,e)=>{var n=e(9303),o=Math.max,i=Math.min;t.exports=function(t,r){var e=n(t);return e<0?o(e+r,0):i(e,r)}},5656:(t,r,e)=>{var n=e(8361),o=e(4488);t.exports=function(t){return n(o(t))}},9303:(t,r,e)=>{var n=e(4758);t.exports=function(t){var r=+t;return r!=r||0===r?0:n(r)}},7466:(t,r,e)=>{var n=e(9303),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},7908:(t,r,e)=>{var n=e(4488),o=Object;t.exports=function(t){return o(n(t))}},7593:(t,r,e)=>{var n=e(6916),o=e(111),i=e(2190),c=e(8173),a=e(2140),u=e(5112),s=TypeError,f=u("toPrimitive");t.exports=function(t,r){if(!o(t)||i(t))return t;var e,u=c(t,f);if(u){if(void 0===r&&(r="default"),e=n(u,t,r),!o(e)||i(e))return e;throw s("Can't convert object to primitive value")}return void 0===r&&(r="number"),a(t,r)}},4948:(t,r,e)=>{var n=e(7593),o=e(2190);t.exports=function(t){var r=n(t,"string");return o(r)?r:r+""}},1694:(t,r,e)=>{var n={};n[e(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},1340:(t,r,e)=>{var n=e(648),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},6330:t=>{var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},9711:(t,r,e)=>{var n=e(1702),o=0,i=Math.random(),c=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+c(++o+i,36)}},3307:(t,r,e)=>{var n=e(6293);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:(t,r,e)=>{var n=e(9781),o=e(7293);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8053:t=>{var r=TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},4811:(t,r,e)=>{var n=e(7854),o=e(614),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},5112:(t,r,e)=>{var n=e(7854),o=e(2309),i=e(2597),c=e(9711),a=e(6293),u=e(3307),s=n.Symbol,f=o("wks"),p=u?s.for||s:s&&s.withoutSetter||c;t.exports=function(t){return i(f,t)||(f[t]=a&&i(s,t)?s[t]:p("Symbol."+t)),f[t]}},1361:t=>{t.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},9191:(t,r,e)=>{"use strict";var n=e(5005),o=e(2597),i=e(8880),c=e(7976),a=e(7674),u=e(9920),s=e(2626),f=e(9587),p=e(6277),l=e(8340),v=e(5392),d=e(9781),y=e(1913);t.exports=function(t,r,e,h){var m="stackTraceLimit",b=h?2:1,g=t.split("."),x=g[g.length-1],S=n.apply(null,g);if(S){var w=S.prototype;if(!y&&o(w,"cause")&&delete w.cause,!e)return S;var E=n("Error"),_=r((function(t,r){var e=p(h?r:t,void 0),n=h?new S(t):new S;return void 0!==e&&i(n,"message",e),v(n,_,n.stack,2),this&&c(w,this)&&f(n,this,_),arguments.length>b&&l(n,arguments[b]),n}));if(_.prototype=w,"Error"!==x?a?a(_,E):u(_,E,{name:!0}):d&&m in S&&(s(_,S,m),s(_,S,"prepareStackTrace")),u(_,S),!y)try{w.name!==x&&i(w,"name",x),w.constructor=_}catch(t){}return _}}},1703:(t,r,e)=>{var n=e(2109),o=e(7854),i=e(2104),c=e(9191),a="WebAssembly",u=o[a],s=7!==Error("e",{cause:7}).cause,f=function(t,r){var e={};e[t]=c(t,r,s),n({global:!0,constructor:!0,arity:1,forced:s},e)},p=function(t,r){if(u&&u[t]){var e={};e[t]=c(a+"."+t,r,s),n({target:a,stat:!0,constructor:!0,arity:1,forced:s},e)}};f("Error",(function(t){return function(r){return i(t,this,arguments)}})),f("EvalError",(function(t){return function(r){return i(t,this,arguments)}})),f("RangeError",(function(t){return function(r){return i(t,this,arguments)}})),f("ReferenceError",(function(t){return function(r){return i(t,this,arguments)}})),f("SyntaxError",(function(t){return function(r){return i(t,this,arguments)}})),f("TypeError",(function(t){return function(r){return i(t,this,arguments)}})),f("URIError",(function(t){return function(r){return i(t,this,arguments)}})),p("CompileError",(function(t){return function(r){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(r){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(r){return i(t,this,arguments)}}))},8862:(t,r,e)=>{var n=e(2109),o=e(5005),i=e(2104),c=e(6916),a=e(1702),u=e(7293),s=e(614),f=e(2190),p=e(206),l=e(8044),v=e(6293),d=String,y=o("JSON","stringify"),h=a(/./.exec),m=a("".charAt),b=a("".charCodeAt),g=a("".replace),x=a(1..toString),S=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,_=!v||u((function(){var t=o("Symbol")();return"[null]"!=y([t])||"{}"!=y({a:t})||"{}"!=y(Object(t))})),j=u((function(){return'"\\udf06\\ud834"'!==y("\udf06\ud834")||'"\\udead"'!==y("\udead")})),O=function(t,r){var e=p(arguments),n=l(r);if(s(n)||void 0!==t&&!f(t))return e[1]=function(t,r){if(s(n)&&(r=c(n,this,d(t),r)),!f(r))return r},i(y,null,e)},T=function(t,r,e){var n=m(e,r-1),o=m(e,r+1);return h(w,t)&&!h(E,o)||h(E,t)&&!h(w,n)?"\\u"+x(b(t,0),16):t};y&&n({target:"JSON",stat:!0,arity:3,forced:_||j},{stringify:function(t,r,e){var n=p(arguments),o=i(_?O:y,null,n);return j&&"string"==typeof o?g(o,S,T):o}})},1539:(t,r,e)=>{var n=e(1694),o=e(8052),i=e(288);n||o(Object.prototype,"toString",i,{unsafe:!0})},1058:(t,r,e)=>{var n=e(2109),o=e(3009);n({global:!0,forced:parseInt!=o},{parseInt:o})},821:(t,r,e)=>{"use strict";var n=e(2109),o=e(6916),i=e(9662),c=e(8523),a=e(2534),u=e(408);n({target:"Promise",stat:!0,forced:e(612)},{all:function(t){var r=this,e=c.f(r),n=e.resolve,s=e.reject,f=a((function(){var e=i(r.resolve),c=[],a=0,f=1;u(t,(function(t){var i=a++,u=!1;f++,o(e,r,t).then((function(t){u||(u=!0,c[i]=t,--f||n(c))}),s)})),--f||n(c)}));return f.error&&s(f.value),e.promise}})},4164:(t,r,e)=>{"use strict";var n=e(2109),o=e(1913),i=e(3702).CONSTRUCTOR,c=e(2492),a=e(5005),u=e(614),s=e(8052),f=c&&c.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(t){return this.then(void 0,t)}}),!o&&u(c)){var p=a("Promise").prototype.catch;f.catch!==p&&s(f,"catch",p,{unsafe:!0})}},3401:(t,r,e)=>{"use strict";var n,o,i,c=e(2109),a=e(1913),u=e(5268),s=e(7854),f=e(6916),p=e(8052),l=e(7674),v=e(8003),d=e(6340),y=e(9662),h=e(614),m=e(111),b=e(5787),g=e(6707),x=e(261).set,S=e(5948),w=e(842),E=e(2534),_=e(8572),j=e(9909),O=e(2492),T=e(3702),P=e(8523),C="Promise",L=T.CONSTRUCTOR,R=T.REJECTION_EVENT,I=T.SUBCLASSING,A=j.getterFor(C),N=j.set,k=O&&O.prototype,D=O,M=k,F=s.TypeError,B=s.document,q=s.process,G=P.f,U=G,V=!!(B&&B.createEvent&&s.dispatchEvent),z="unhandledrejection",H=function(t){var r;return!(!m(t)||!h(r=t.then))&&r},J=function(t,r){var e,n,o,i=r.value,c=1==r.state,a=c?t.ok:t.fail,u=t.resolve,s=t.reject,p=t.domain;try{a?(c||(2===r.rejection&&X(r),r.rejection=1),!0===a?e=i:(p&&p.enter(),e=a(i),p&&(p.exit(),o=!0)),e===t.promise?s(F("Promise-chain cycle")):(n=H(e))?f(n,e,u,s):u(e)):s(i)}catch(t){p&&!o&&p.exit(),s(t)}},W=function(t,r){t.notified||(t.notified=!0,S((function(){for(var e,n=t.reactions;e=n.get();)J(e,t);t.notified=!1,r&&!t.rejection&&K(t)})))},$=function(t,r,e){var n,o;V?((n=B.createEvent("Event")).promise=r,n.reason=e,n.initEvent(t,!1,!0),s.dispatchEvent(n)):n={promise:r,reason:e},!R&&(o=s["on"+t])?o(n):t===z&&w("Unhandled promise rejection",e)},K=function(t){f(x,s,(function(){var r,e=t.facade,n=t.value;if(Q(t)&&(r=E((function(){u?q.emit("unhandledRejection",n,e):$(z,e,n)})),t.rejection=u||Q(t)?2:1,r.error))throw r.value}))},Q=function(t){return 1!==t.rejection&&!t.parent},X=function(t){f(x,s,(function(){var r=t.facade;u?q.emit("rejectionHandled",r):$("rejectionhandled",r,t.value)}))},Y=function(t,r,e){return function(n){t(r,n,e)}},Z=function(t,r,e){t.done||(t.done=!0,e&&(t=e),t.value=r,t.state=2,W(t,!0))},tt=function(t,r,e){if(!t.done){t.done=!0,e&&(t=e);try{if(t.facade===r)throw F("Promise can't be resolved itself");var n=H(r);n?S((function(){var e={done:!1};try{f(n,r,Y(tt,e,t),Y(Z,e,t))}catch(r){Z(e,r,t)}})):(t.value=r,t.state=1,W(t,!1))}catch(r){Z({done:!1},r,t)}}};if(L&&(M=(D=function(t){b(this,M),y(t),f(n,this);var r=A(this);try{t(Y(tt,r),Y(Z,r))}catch(t){Z(r,t)}}).prototype,(n=function(t){N(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:0,value:void 0})}).prototype=p(M,"then",(function(t,r){var e=A(this),n=G(g(this,D));return e.parent=!0,n.ok=!h(t)||t,n.fail=h(r)&&r,n.domain=u?q.domain:void 0,0==e.state?e.reactions.add(n):S((function(){J(n,e)})),n.promise})),o=function(){var t=new n,r=A(t);this.promise=t,this.resolve=Y(tt,r),this.reject=Y(Z,r)},P.f=G=function(t){return t===D||void 0===t?new o(t):U(t)},!a&&h(O)&&k!==Object.prototype)){i=k.then,I||p(k,"then",(function(t,r){var e=this;return new D((function(t,r){f(i,e,t,r)})).then(t,r)}),{unsafe:!0});try{delete k.constructor}catch(t){}l&&l(k,M)}c({global:!0,constructor:!0,wrap:!0,forced:L},{Promise:D}),v(D,C,!1,!0),d(C)},8674:(t,r,e)=>{e(3401),e(821),e(4164),e(6027),e(683),e(6294)},6027:(t,r,e)=>{"use strict";var n=e(2109),o=e(6916),i=e(9662),c=e(8523),a=e(2534),u=e(408);n({target:"Promise",stat:!0,forced:e(612)},{race:function(t){var r=this,e=c.f(r),n=e.reject,s=a((function(){var c=i(r.resolve);u(t,(function(t){o(c,r,t).then(e.resolve,n)}))}));return s.error&&n(s.value),e.promise}})},683:(t,r,e)=>{"use strict";var n=e(2109),o=e(6916),i=e(8523);n({target:"Promise",stat:!0,forced:e(3702).CONSTRUCTOR},{reject:function(t){var r=i.f(this);return o(r.reject,void 0,t),r.promise}})},6294:(t,r,e)=>{"use strict";var n=e(2109),o=e(5005),i=e(1913),c=e(2492),a=e(3702).CONSTRUCTOR,u=e(9478),s=o("Promise"),f=i&&!a;n({target:"Promise",stat:!0,forced:i||a},{resolve:function(t){return u(f&&this===s?c:this,t)}})},4747:(t,r,e)=>{var n=e(7854),o=e(8324),i=e(8509),c=e(8533),a=e(8880),u=function(t){if(t&&t.forEach!==c)try{a(t,"forEach",c)}catch(r){t.forEach=c}};for(var s in o)o[s]&&u(n[s]&&n[s].prototype);u(i)}},r={};function e(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return t[n].call(i.exports,i,i.exports,e),i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var n in r)e.o(r,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:r[n]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),(()=>{"use strict";e(1058),e(1539),e(4747),e(8674),e(8862),e(1703),document.addEventListener("DOMContentLoaded",(function(){var t=document.querySelector(".woocommerce_variations"),r=function(){var r;null===(r=PayPalCommerceGatewayPayPalSubscriptionProducts)||void 0===r||r.forEach((function(r){"yes"===r.product_connected&&function(r){if(t)for(var e=t.children,n=0;n<e.length;n++){var o=e[n].querySelector("h3").getElementsByClassName("variable_post_id")[0].value;parseInt(o)===r&&(e[n].querySelector(".woocommerce_variable_attributes").getElementsByClassName("wc_input_subscription_period_interval")[0].setAttribute("disabled","disabled"),e[n].querySelector(".woocommerce_variable_attributes").getElementsByClassName("wc_input_subscription_period")[0].setAttribute("disabled","disabled"),e[n].querySelector(".woocommerce_variable_attributes").getElementsByClassName("wc_input_subscription_trial_length")[0].setAttribute("disabled","disabled"),e[n].querySelector(".woocommerce_variable_attributes").getElementsByClassName("wc_input_subscription_trial_period")[0].setAttribute("disabled","disabled"),e[n].querySelector(".woocommerce_variable_attributes").getElementsByClassName("wc_input_subscription_length")[0].setAttribute("disabled","disabled"))}document.querySelector("#_subscription_period_interval").setAttribute("disabled","disabled"),document.querySelector("#_subscription_period").setAttribute("disabled","disabled"),document.querySelector("._subscription_length_field").style.display="none",document.querySelector("._subscription_trial_length_field").style.display="none"}(r.product_id);var e=document.getElementById("ppcp-unlink-sub-plan-".concat(r.product_id));null==e||e.addEventListener("click",(function(t){t.preventDefault(),e.disabled=!0;var n=document.getElementById("spinner-unlink-plan");n.style.display="inline-block",fetch(r.ajax.deactivate_plan.endpoint,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({nonce:r.ajax.deactivate_plan.nonce,plan_id:r.plan_id,product_id:r.product_id})}).then((function(t){return t.json()})).then((function(t){if(!t.success)throw e.disabled=!1,n.style.display="none",console.error(t),Error(t.data.message);var r=document.getElementById("ppcp-enable-subscription"),o=document.getElementById("pcpp-product"),i=document.getElementById("pcpp-plan");r.style.display="none",o.style.display="none",i.style.display="none",document.getElementById("ppcp_enable_subscription_product").disabled=!0,document.getElementById("pcpp-plan-unlinked").style.display="block",setTimeout((function(){location.reload()}),1e3)}))}))}))};r(),jQuery("#woocommerce-product-data").on("woocommerce_variations_loaded",(function(){r()}))}))})()})();
//# sourceMappingURL=paypal-subscription.js.map