1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8237],{17069:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(28965);var r,o=(r=n(57588))&&r.__esModule?r:{default:r};function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=new(function(){var e,t;function Glue(){return(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,Glue),Glue.instance)?Glue.instance:(Glue.instance=this,this._name="Krypton Glue",this.configuration={},this.domain=null,this.formToken=null,this.publicKey=null,this.loaded=!1,this.loading=!1,this)}return e=[{key:"loadLibrary",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return this.loaded?this.getKrypton(t):e?t?/^(?:http(s)?:\/\/)[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=.]+$/g.test(e)?/^\d{2,8}:(|test)publickey_.+$/g.test(t)?(this.domain=e,this.publicKey=t,this.formToken=n,this.domain&&this.publicKey)?this.loadKryptonClient():Promise.reject("The library cannot be loaded"):(console.error("Public key format should be shopId:[test]publickey_*"),Promise.reject("[".concat(t,"] is not a valid public key"))):(console.error("Domain format should be https://domain.name"),Promise.reject("[".concat(e,"] is not a valid endpoint domain"))):Promise.reject("Public key not defined"):Promise.reject("Domain not defined")}},{key:"loadKryptonClient",value:function(){var e=this;if(!this.loading){var t=this.publicKey,n=this.domain;this.loading=!0;var r=document.createElement("script");r.type="text/javascript",/^.+\/$/.test(n)||(n+="/"),r.src="".concat(n,"static/js/krypton-client/V4.0/stable/kr-payment-form.min.js"),r.setAttribute("kr-public-key",t),r.setAttribute("kr-spa-mode","true"),this.formToken&&r.setAttribute("kr-form-token",this.formToken),!document.querySelector('script[src="'.concat(r.src,'"]'))&&document.body?document.body.appendChild(r):document.body||console.warn("document.body is undefined")}return new Promise(function(t){(0,o.default)(window,"KR",function(){(0,o.default)(window.KR,"ready",function(){e.loaded=!0,e.loading=!1,t({KR:window.KR})})})})}},{key:"getKrypton",value:function(e){var t=this;return new Promise(function(n,r){e&&e!==t.publicKey?window.KR.setFormConfig({publicKey:e}).then(n).catch(r):n({KR:window.KR})})}}],_defineProperties(Glue.prototype,e),t&&_defineProperties(Glue,t),Object.defineProperty(Glue,"prototype",{writable:!1}),Glue}());t.default=i},58237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=((r=n(17069))&&r.__esModule?r:{default:r}).default;t.default=o},57588:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:150;setTimeout(function checkVariable(){e[t]?n():setTimeout(checkVariable,r)},0)}},28965:function(e,t,n){"use strict";
vendor: 6,975 bytes, lines 1-7
1e.exports=n(1507).polyfill()},1507:function(e,t,n){var r=n(75409);/*! 2 * @overview es6-promise - a tiny implementation of Promises/A+. 3 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) 4 * @license Licensed under MIT license 5 * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE 6 * @version v4.2.8+1e68dce6 7 */e.exports=function(){"use strict";function isFunction(e){return"function"==typeof e}var e,t,o,i,s=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},u=0,a=void 0,l=void 0,asap=function(e,t){v[u]=e,v[u+1]=t,2===(u+=2)&&(l?l(flush):m())},c="undefined"!=typeof window?window:void 0,f=c||{},h=f.MutationObserver||f.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==r&&"[object process]"===({}).toString.call(r),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function useSetTimeout(){var e=setTimeout;return function(){return e(flush,1)}}var v=Array(1e3);function flush(){for(var e=0;e<u;e+=2)(0,v[e])(v[e+1]),v[e]=void 0,v[e+1]=void 0;u=0}var m=void 0;function then(e,t){var n=this,r=new this.constructor(noop);void 0===r[b]&&makePromise(r);var o=n._state;if(o){var i=arguments[o-1];asap(function(){return invokeCallback(o,r,i,n._result)})}else subscribe(n,r,e,t);return r}function resolve$1(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(noop);return resolve(t,e),t}d?m=function(){return r.nextTick(flush)}:h?(e=0,t=new h(flush),o=document.createTextNode(""),t.observe(o,{characterData:!0}),m=function(){o.data=e=++e%2}):p?((i=new MessageChannel).port1.onmessage=flush,m=function(){return i.port2.postMessage(0)}):m=void 0===c?function(){try{var e=Function("return this")().require("vertx");return a=e.runOnLoop||e.runOnContext,void 0!==a?function(){a(flush)}:useSetTimeout()}catch(e){return useSetTimeout()}}():useSetTimeout();var b=Math.random().toString(36).substring(2);function noop(){}var y=void 0;function handleMaybeThenable(e,t,n){t.constructor===e.constructor&&n===then&&t.constructor.resolve===resolve$1?1===t._state?fulfill(e,t._result):2===t._state?reject(e,t._result):subscribe(t,void 0,function(t){return resolve(e,t)},function(t){return reject(e,t)}):void 0===n?fulfill(e,t):isFunction(n)?asap(function(e){var r=!1,o=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,function(n){r||(r=!0,t!==n?resolve(e,n):fulfill(e,n))},function(t){r||(r=!0,reject(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&o&&(r=!0,reject(e,o))},e):fulfill(e,t)}function resolve(e,t){if(e===t)reject(e,TypeError("You cannot resolve a promise with itself"));else if(n=typeof t,null!==t&&("object"===n||"function"===n)){var n,r=void 0;try{r=t.then}catch(t){reject(e,t);return}handleMaybeThenable(e,t,r)}else fulfill(e,t)}function publishRejection(e){e._onerror&&e._onerror(e._result),publish(e)}function fulfill(e,t){e._state===y&&(e._result=t,e._state=1,0!==e._subscribers.length&&asap(publish,e))}function reject(e,t){e._state===y&&(e._state=2,e._result=t,asap(publishRejection,e))}function subscribe(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+1]=n,o[i+2]=r,0===i&&e._state&&asap(publish,e)}function publish(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,s=0;s<t.length;s+=3)r=t[s],o=t[s+n],r?invokeCallback(n,r,o,i):o(i);e._subscribers.length=0}}function invokeCallback(e,t,n,r){var o=isFunction(n),i=void 0,s=void 0,u=!0;if(o){try{i=n(r)}catch(e){u=!1,s=e}if(t===i){reject(t,TypeError("A promises callback cannot return that same promise."));return}}else i=r;t._state!==y||(o&&u?resolve(t,i):!1===u?reject(t,s):1===e?fulfill(t,i):2===e&&reject(t,i))}var _=0;function makePromise(e){e[b]=_++,e._state=void 0,e._result=void 0,e._subscribers=[]}var w=function(){function Enumerator(e,t){this._instanceConstructor=e,this.promise=new e(noop),this.promise[b]||makePromise(this.promise),s(t)?(this.length=t.length,this._remaining=t.length,this._result=Array(this.length),0===this.length?fulfill(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&fulfill(this.promise,this._result))):reject(this.promise,Error("Array Methods must be provided an Array"))}return Enumerator.prototype._enumerate=function(e){for(var t=0;this._state===y&&t<e.length;t++)this._eachEntry(e[t],t)},Enumerator.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===resolve$1){var o=void 0,i=void 0,s=!1;try{o=e.then}catch(e){s=!0,i=e}if(o===then&&e._state!==y)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===g){var u=new n(noop);s?reject(u,i):handleMaybeThenable(u,e,o),this._willSettleAt(u,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},Enumerator.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===y&&(this._remaining--,2===e?reject(r,n):this._result[t]=n),0===this._remaining&&fulfill(r,this._result)},Enumerator.prototype._willSettleAt=function(e,t){var n=this;subscribe(e,void 0,function(e){return n._settledAt(1,t,e)},function(e){return n._settledAt(2,t,e)})},Enumerator}(),g=function(){function Promise(e){this[b]=_++,this._result=this._state=void 0,this._subscribers=[],noop!==e&&("function"!=typeof e&&function(){throw TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof Promise?function(e,t){try{t(function(t){resolve(e,t)},function(t){reject(e,t)})}catch(t){reject(e,t)}}(this,e):function(){throw TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return Promise.prototype.catch=function(e){return this.then(null,e)},Promise.prototype.finally=function(e){var t=this.constructor;return isFunction(e)?this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})}):this.then(e,e)},Promise}();return g.prototype.then=then,g.all=function(e){return new w(this,e).promise},g.race=function(e){var t=this;return new t(s(e)?function(n,r){for(var o=e.length,i=0;i<o;i++)t.resolve(e[i]).then(n,r)}:function(e,t){return t(TypeError("You must pass an array to race."))})},g.resolve=resolve$1,g.reject=function(e){var t=new this(noop);return reject(t,e),t},g._setScheduler=function(e){l=e},g._setAsap=function(e){asap=e},g._asap=asap,g.polyfill=function(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=g},g.Promise=g,g}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.