PageSourceSearch

https://www.seeedstudio.com/_next/static/chunks/bc809f43.7b28b0087b0225a7.js

js seeedstudio.com collected 2026-09-24 08:33:08 UTC 66,623 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6360],{11908:e=>{e.exports=function(){var e;return(function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var c=Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[a]={exports:{}};t[a][0].call(u.exports,function(e){return i(t[a][1][e]||e)},u,u.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i})({1:[function(e,t,r){"use strict";var n={};function i(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var i=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return i.src=e.src,i.id=e.id||"",i.async=!0,e.type&&i.setAttribute("type","".concat(e.type)),e.crossorigin&&i.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&i.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){i.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){i.addEventListener("load",function(){t(i)}),i.addEventListener("error",function(){r(Error("".concat(e.src," failed to load.")))}),i.addEventListener("abort",function(){r(Error("".concat(e.src," has aborted.")))}),a.appendChild(i)}),n[r]=t,t}i.clearCache=function(){n={}},t.exports=i},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";t.exports=function(){function e(){this._events={}}return e.prototype.on=function(e,t){this._events[e]?this._events[e].push(t):this._events[e]=[t]},e.prototype.off=function(e,t){var r=this._events[e];if(r){var n=r.indexOf(t);r.splice(n,1)}},e.prototype._emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this._events[e];n&&n.forEach(function(e){e.apply(void 0,t)})},e.prototype.hasListener=function(e){var t=this._events[e];return!!t&&t.length>0},e.createChild=function(t){t.prototype=Object.create(e.prototype,{constructor:t})},e}()},{}],4:[function(e,t,r){"use strict";var n="undefined"!=typeof Promise?Promise:null;t.exports=function(){function e(t){var r=this;if("function"==typeof t){this._promise=new e.Promise(t);return}this._promise=new e.Promise(function(e,t){r._resolveFunction=e,r._rejectFunction=t}),t=t||{},this._onResolve=t.onResolve||e.defaultOnResolve,this._onReject=t.onReject||e.defaultOnReject,e.shouldCatchExceptions(t)&&this._promise.catch(function(){}),this._resetState()}return e.defaultOnResolve=function(t){return e.Promise.resolve(t)},e.defaultOnReject=function(t){return e.Promise.reject(t)},e.setPromise=function(t){e.Promise=t},e.shouldCatchExceptions=function(t){return t.hasOwnProperty("suppressUnhandledPromiseMessage")?!!t.suppressUnhandledPromiseMessage:!!e.suppressUnhandledPromiseMessage},e.all=function(t){return e.Promise.all(t)},e.allSettled=function(t){return e.Promise.allSettled(t)},e.race=function(t){return e.Promise.race(t)},e.reject=function(t){return e.Promise.reject(t)},e.resolve=function(t){return e.Promise.resolve(t)},e.prototype.then=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=this._promise).catch.apply(e,t)},e.prototype.resolve=function(t){var r=this;return this.isFulfilled||(this._setResolved(),e.Promise.resolve().then(function(){return r._onResolve(t)}).then(function(e){r._resolveFunction(e)}).catch(function(e){r._resetState(),r.reject(e)})),this},e.prototype.reject=function(t){var r=this;return this.isFulfilled||(this._setRejected(),e.Promise.resolve().then(function(){return r._onReject(t)}).then(function(e){r._setResolved(),r._resolveFunction(e)}).catch(function(e){return r._rejectFunction(e)})),this},e.prototype._resetState=function(){this.isFulfilled=!1,this.isResolved=!1,this.isRejected=!1},e.prototype._setResolved=function(){this.isFulfilled=!0,this.isResolved=!0,this.isRejected=!1},e.prototype._setRejected=function(){this.isFulfilled=!0,this.isResolved=!1,this.isRejected=!0},e.Promise=n,e}()},{}],5:[function(e,t,r){"use strict";
1var n=e("./lib/set-attributes"),i=e("./lib/default-attributes"),o=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var t=document.createElement("iframe"),r=(0,o.assign)({},i.defaultAttributes,e);return r.style&&"string"!=typeof r.style&&((0,o.assign)(t.style,r.style),delete r.style),(0,n.setAttributes)(t,r),t.getAttribute("id")||(t.id=t.name),t}},{"./lib/assign":6,"./lib/default-attributes":7,"./lib/set-attributes":8}],6:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){"object"==typeof t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}},{}],7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.defaultAttributes=void 0,r.defaultAttributes={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no"}},{}],8:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=function(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];null==n?e.removeAttribute(r):e.setAttribute(r,n)}}},{}],9:[function(e,t,r){"use strict";t.exports=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)try{return crypto.randomUUID()}catch(e){}if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;for(var t=Array(256),r=0;r<256;r++)t[r]=(r<16?"0":"")+r.toString(16);return t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}throw Error("@braintree/uuid: No secure random source available")}},{}],10:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];setTimeout(function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}},1)}}},{}],11:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.once=function(e){var t=!1;return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t||(t=!0,e.apply(void 0,r))}}},{}],12:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=function(e,t){if(!t)return e;e.then(function(e){return t(null,e)}).catch(function(e){return t(e)})}},{}],13:[function(e,t,r){"use strict";var n=e("./lib/deferred"),i=e("./lib/once"),o=e("./lib/promise-or-callback");function a(e){return function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=i.once(n.deferred(t))),o.promiseOrCallback(e.apply(this,r),t)}}a.wrapPrototype=function(e,t){void 0===t&&(t={});var r=t.ignoreMethods||[],n=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter(function(t){var i,o="constructor"!==t&&"function"==typeof e.prototype[t],a=-1===r.indexOf(t);return i=!!n||"_"!==t.charAt(0),o&&i&&a}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=a(r)}),e},t.exports=a},{"./lib/deferred":10,"./lib/once":11,"./lib/promise-or-callback":12}],14:[function(t,r,n){var i,o;i=this,o=function(e){"use strict";function t(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function r(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var c=[o,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&c[0]?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[2&c[0],i.value]),c[0]){case 0:case 1:i=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!i||c[1]>i[0]&&c[1]<i[3])){a.label=c[1];break}if(6===c[0]&&a.label<i[1]){a.label=i[1],i=c;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(c);break}i[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(e){c=[6,e],n=0}finally{r=i=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var n,i,o={},a={};function s(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=a[r]))return t;var n=document.createElement("script"),i=e.dataAttributes||{},o=e.container||document.head;return n.src=e.src,n.id=e.id||"",n.async=!0,e.type&&n.setAttribute("type","".concat(e.type)),e.crossorigin&&n.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(i).forEac
1h(function(e){n.setAttribute("data-".concat(e),"".concat(i[e]))}),t=new Promise(function(t,r){n.addEventListener("load",function(){t(n)}),n.addEventListener("error",function(){r(Error("".concat(e.src," failed to load.")))}),n.addEventListener("abort",function(){r(Error("".concat(e.src," has aborted.")))}),o.appendChild(n)}),a[r]=t,t}s.clearCache=function(){a={}},Object.defineProperty(o,"__esModule",{value:!0}),o.loadStylesheet=c=o.loadScript=void 0;var c=o.loadScript=s;o.loadStylesheet=function(e){var t=document.querySelector('link[href="'.concat(e.href,'"]'));if(t)return Promise.resolve(t);t=document.createElement("link");var r=e.container||document.head;return t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e.href),t.setAttribute("id",e.id),r.firstChild?r.insertBefore(t,r.firstChild):r.appendChild(t),Promise.resolve(t)};var u="fastlane",d="connect-boba",l={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:d,LOCALE_PATH:"".concat(d,"/locales/"),CDNX_PROD:"https://www.paypalobjects.com"};function p(){return"function"==typeof window.define&&!!window.define.amd}function f(e,n,i){var o,a;return void 0===i&&(i=!0),t(this,void 0,void 0,function(){var t,s;return r(this,function(r){if((t=null==window?void 0:window.braintree)&&t[e.module])if(!n||(null==(o=t[e.module])?void 0:o.VERSION)===n)return[2,!0];else throw s=null==(a=t[e.module])?void 0:a.VERSION,Error("".concat(e.module," already loaded with version ").concat(s," cannot load version ").concat(n));if(!n)throw Error("Attempted to load ".concat(e.module," without specifying version"));return[2,function(e,t,r){if(void 0===r&&(r=!0),p()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var i=r?e.script.minified:e.script.unminified;return c({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(i)})}(e,n,i)]})})}var _="client",h="hostedFields",E="braintree",m=((n={})[_]="client",n[h]="hosted-fields",n),y=((i={})[_]={id:"client",module:_,amdModule:{unminified:"".concat(E,"/").concat(m[_]),minified:"".concat(E,"/").concat(m[_],".min")},script:{unminified:"".concat(m[_],".js"),minified:"".concat(m[_],".min.js")}},i[h]={id:"hcf",module:h,amdModule:{unminified:"".concat(E,"/").concat(m[h]),minified:"".concat(E,"/").concat(m[h],".min")},script:{unminified:"".concat(m[h],".js"),minified:"".concat(m[h],".min.js")}},i);function v(e,t){var r;if(void 0===t&&(t=!0),p()){p()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config&&requirejs.config({paths:((r={})[u]=e,r)});var n="".concat(u,"/").concat(t?l.AXO_ASSET_NAME.minified:l.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([n],e,t)})}return c({id:"axo-id",src:e,forceScriptReload:!0})}function b(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(l.CDNX_PROD,"/").concat(t)}e.constants=l,e.loadAxo=function(e){return t(this,void 0,void 0,function(){var t,n,i,o;return r(this,function(r){switch(r.label){case 0:var a,s,c,u,d;if(performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,c=(null==(a=e)?void 0:a.minified)!==!1?l.AXO_ASSET_NAME.minified:l.AXO_ASSET_NAME.unminified,i=b({assetUrl:p()?l.AXO_ASSET_PATH:"".concat(l.AXO_ASSET_PATH,"/").concat(c,".js"),bundleId:null==(s=null==a?void 0:a.metadata)?void 0:s.bundleIdOverride}),u=e,o=b({assetUrl:l.LOCALE_PATH,bundleId:null==(d=null==u?void 0:u.metadata)?void 0:d.bundleIdOverride}),"BT"!==e.platform)return[3,2];return[4,Promise.all([f(y.hostedFields,t,n),v(i,n)])];case 1:case 3:return r.sent(),[3,5];case 2:if("PPCP"!==e.platform)return[3,4];return[4,Promise.all([f(y.client,t,n),f(y.hostedFields,t,n),v(i,n)])];case 4:throw Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:o}}]}})})}},"object"==typeof n&&void 0!==r?o(n):"function"==typeof e&&e.amd?e(["exports"],o):o((i="undefined"!=typeof globalThis?globalThis:i||self).loadAxo={})},{}],15:[function(e,t,r){"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),i="undefined"!=typeof window&&window.Promise;r.Framebus=function(){function e(e){void 0===e&&(e={}),this.origin=e.origin||"*",this.channel=e.channel||"",this.verifyDomain=e.verifyDomain,this.targetFrames=e.targetFrames||[],this.limitBroadcastToFramesArray=!!e.targetFrames,this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=!!(this.verifyDomain||this.limitBroadcastToFramesArray)}return e.setPromise=function(t){e.Promise=t},e.target=function(t){return new e(t)},e.prototype.addTargetFrame=function(e){this.limitBroadcastToFramesArray&&this.targetFrames.push(e)},e.prototype.include=function(e){return null!=e&&null!=e.Window&&e.constructor===e.Window&&(n.childWindows.push(e),!0)},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,r){if(this.isDestroyed)return!1;var i=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e)||(0,n.isntString)(i))return!1;"function"==typeof t&&(r=t,t=void 0);var o=(0,n.packagePayload)(e,i,t,r);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,i)}):(0,n.broadcast)(o,{origin:i,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,r){var n=this;return new e.Promise(function(e,i){n.emit(t,r,function(t){e(t)})||i(Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,i=this.origin,o=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,o,i)&&(this.hasAdditionalChecksForOnListeners&&(o=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.passesVerifyDomainCheck(this&&this.origin)&&r.hasMatchingTargetFrame(this&&this.source)&&t.apply(void 0,e)}),this.listeners.push({eventName:e,handler:o,originalHandler:t}),n.subscribers[i]=n.subscribers[i]||{},n.subscribers[i][e]=n.subscribers[i][e]||[],n.subscribers[i][e].push(o),!0)},e.prototype.off=function(e,t){var r=t;if(this.isDestroyed)return!1;if(this.hasAdditionalChecksForOnListeners)for(var i=0;i<this.listeners.length;i++){var o=this.listeners[i];o.originalHandler===t&&(r=o.handler)}e=this.namespaceEvent(e);var a=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,a))return!1;var s=n.subscribers[a]&&n.subscribers[a][e];if(!s)return!1;for(var i=0;i<s.length;i++)if(s[i]===r)return s.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var e=0;e<this.listeners.length;e++){var t=this.listeners[e];this.off(t.eventName,t.handler)}this.listeners.length=0}},e.prototype.passesVerifyDomainCheck=function(e){return!this.verifyDomain||this.checkOrigin(e)},e.prototype.targetFramesAsWindows=function(){return this.limitBroadcastToFramesArray?this.targetFrames.map(function(e){return e instanceof HTMLIFrameElement?e.contentWindow:e}).filter(function(e){return e}):[]},e.prototype.hasMatchingTargetFrame=function(e){return!this.limitBroadcastToFramesArray||!!this.targetFramesAsWindows().find(function(t){return t===e})},e.prototype.checkOrigin=function(e){var t,r=document.createElement("a");return r.href=location.href,t="https:"===r.protocol?r.host.replace(/:443$/,""):"http:"===r.protocol?r.host.replace(/:80$/,""):r.host,r.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=i,e}()},{"./lib":23}],16:[function(e,t,r){"use strict";var n=e("./lib"),i=e("./framebus");(0,n.attach)(),t.exports=i.Framebus},{"./framebus":15,"./lib":23}],17:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),i=!1;r.attach=function(){i||"undefined"==typeof window||(i=!0,window.addEventListener("message",n.onMessage,!1))},r.detach=function(){i=!1,window.removeEventListener("message",n.onMessage,!1)}},{"./":23}],18:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");r.broadcastToChildWindows=function(e,t,r){for(var i=n.childWindows.length-1;i>=0;i--){var o=n.childWindows[i];
1o.closed?n.childWindows.splice(i,1):r!==o&&(0,n.broadcast)(e,{origin:t,frame:o.top})}}},{"./":23}],19:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");r.broadcast=function e(t,r){var i,o=0,a=r.origin,s=r.frame;try{for(s.postMessage(t,a),(0,n.hasOpener)(s)&&s.opener.top!==window.top&&e(t,{origin:a,frame:s.opener.top});i=s.frames[o];)e(t,{origin:a,frame:i}),o++}catch(e){}}},{"./":23}],20:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscribers=r.childWindows=r.prefix=void 0,r.prefix="/*framebus*/",r.childWindows=[],r.subscribers={}},{}],21:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");r.dispatch=function(e,t,r,i,o){if(n.subscribers[e]&&n.subscribers[e][t]){var a=[];r&&a.push(r),i&&a.push(i);for(var s=0;s<n.subscribers[e][t].length;s++)n.subscribers[e][t][s].apply(o,a)}}},{"./":23}],22:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=function(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}},{}],23:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./attach"),r),i(e("./broadcast-to-child-windows"),r),i(e("./broadcast"),r),i(e("./constants"),r),i(e("./dispatch"),r),i(e("./has-opener"),r),i(e("./is-not-string"),r),i(e("./message"),r),i(e("./package-payload"),r),i(e("./send-message"),r),i(e("./subscribe-replier"),r),i(e("./subscription-args-invalid"),r),i(e("./types"),r),i(e("./unpack-payload"),r)},{"./attach":17,"./broadcast":19,"./broadcast-to-child-windows":18,"./constants":20,"./dispatch":21,"./has-opener":22,"./is-not-string":24,"./message":25,"./package-payload":26,"./send-message":27,"./subscribe-replier":28,"./subscription-args-invalid":29,"./types":30,"./unpack-payload":31}],24:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=function(e){return"string"!=typeof e}},{}],25:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");r.onMessage=function(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var r=t.eventData,i=t.reply;(0,n.dispatch)("*",t.event,r,i,e),(0,n.dispatch)(e.origin,t.event,r,i,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}},{"./":23}],26:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");r.packagePayload=function(e,t,r,i){var o,a={event:e,origin:t};"function"==typeof i&&(a.reply=(0,n.subscribeReplier)(i,t)),a.eventData=r;try{o=n.prefix+JSON.stringify(a)}catch(e){throw Error("Could not stringify event: ".concat(e.message))}return o}},{"./":23}],27:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=function(e,t,r){try{e.postMessage(t,r)}catch(e){}}},{}],28:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeReplier=void 0;var i=e("../framebus"),o=n(e("@braintree/uuid"));r.subscribeReplier=function(e,t){var r=(0,o.default)();return i.Framebus.target({origin:t}).on(r,function n(o,a){e(o,a),i.Framebus.target({origin:t}).off(r,n)}),r}},{"../framebus":15,"@braintree/uuid":32}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");r.subscriptionArgsInvalid=function(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}},{"./":23}],30:[function(e,t,r){"use strict";
1Object.defineProperty(r,"__esModule",{value:!0})},{}],31:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");r.unpackPayload=function(e){var t;if(e.data.slice(0,n.prefix.length)!==n.prefix)return!1;try{t=JSON.parse(e.data.slice(n.prefix.length))}catch(e){return!1}if(t.reply){var r=e.origin,i=e.source,o=t.reply;t.reply=function(e){if(i){var t=(0,n.packagePayload)(o,r,e);t&&i.postMessage(t,r)}}}return t}},{"./":23}],32:[function(e,t,r){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},{}],33:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),i=e("./json-clone"),o=e("./constants");t.exports={addMetadata:function(e,t){var r,a=t?i(t):{},s=n(e.authorization).attrs,c=i(e.analyticsMetadata);for(r in a.braintreeLibraryVersion=o.BRAINTREE_LIBRARY_VERSION,a._meta)a._meta.hasOwnProperty(r)&&(c[r]=a._meta[r]);return a._meta=c,s.tokenizationKey?a.tokenizationKey=s.tokenizationKey:a.authorizationFingerprint=s.authorizationFingerprint,a},addEventMetadata:function(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,i="production"===t.gatewayConfiguration.environment,a={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:o.VERSION,component:"braintreeclientsdk",merchant_sdk_env:i?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:o.PLATFORM,platform_version:window.navigator.userAgent,session_id:t.analyticsMetadata.sessionId,client_session_id:t.analyticsMetadata.sessionId,tenant_name:"braintree",product_name:"BT_DCC",space_key:"SKDUYK"};return r.tokenizationKey?a.tokenization_key=r.tokenizationKey:a.auth_fingerprint=r.authorizationFingerprint,a}}},{"./constants":39,"./create-authorization-data":43,"./json-clone":50}],34:[function(e,t,r){"use strict";var n=e("./constants"),i=e("./add-metadata"),o=e("./assign").assign;function a(e,t,r,a){var s=Date.now();return"vault"===r.flow?r.context_type="BA_Token":"checkout"===r.flow&&(r.context_type="EC_Token"),Promise.resolve(e).then(function(e){var c,u,d=e._request,l=n.ANALYTICS_URL,p=n.ANALYTICS_PREFIX+t,f="production"===e.getConfiguration().gatewayConfiguration.environment,_={events:[],tracking:[]},h=i.addEventMetadata(e,_);return h.event_name=p,h.t=s,_.events=[{level:"info",event:p,payload:o({env:f?"production":"sandbox",timestamp:s},r)}],_.tracking=[h],r&&"object"==typeof r&&(_.tracking=[(c=h,Object.keys(u=o({},r)).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete u[e]}),o(c,u))]),d({url:l,method:"post",data:_,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},a)}).catch(function(e){a&&a(e)})}t.exports={sendEvent:function(e,t,r){return a(e,t,{},r)},sendEventPlus:a}},{"./add-metadata":33,"./assign":36,"./constants":39}],35:[function(e,t,r){"use strict";t.exports={loadScript:e("@braintree/asset-loader/load-script"),loadFastlane:e("@paypal/accelerated-checkout-loader").loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/accelerated-checkout-loader":14}],36:[function(e,t,r){"use strict";function n(e){var t,r,n;for(t=1;t<arguments.length;t++)for(n in r=arguments[t])r.hasOwnProperty(n)&&(e[n]=r[n]);return e}t.exports={assign:"function"==typeof Object.assign?Object.assign:n,_assign:n}},{}],37:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./errors"),o="3.142.0";t.exports={verify:function(e){var t,r,a;return e?(a=e.name,t=e.client,r=e.authorization,t||r)?r||t.getVersion()===o?Promise.resolve():Promise.reject(new n({type:i.INCOMPATIBLE_VERSIONS.type,code:i.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+a+" (version "+o+") components must be from the same SDK version."})):Promise.reject(new n({type:i.INSTANTIATION_OPTION_REQUIRED.type,code:i.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+a+"."})):Promise.reject(new n({type:i.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:i.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}}},{"./braintree-error":38,"./errors":47}],38:[function(e,t,r){"use strict";var n=e("./enumerate");function i(e){if(!i.types.hasOwnProperty(e.type))throw Error(e.type+" is not a valid type.");if(!e.code)throw Error("Error code required.");
1if(!e.message)throw Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),i.findRootError=function(e){return e instanceof i&&e.details&&e.details.originalError?i.findRootError(e.details.originalError):e},t.exports=i},{"./enumerate":46}],39:[function(e,t,r){"use strict";var n="3.142.0";t.exports={ANALYTICS_PREFIX:"web.",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:{production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},CLIENT_API_URLS:{production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},FRAUDNET_SOURCE:"BRAINTREE_SIGNIN",FRAUDNET_FNCLS:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",FRAUDNET_URL:"https://c.paypal.com/da/r/fb.js",BUS_CONFIGURATION_REQUEST_EVENT:"BUS_CONFIGURATION_REQUEST",GRAPHQL_URLS:{production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"},INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:"web",BRAINTREE_LIBRARY_VERSION:"braintree/web/"+n,ALLOWED_EXTRA_EVENT_FIELDS:["context_id","context_type","payment_ready_button_order","payment_ready_experiment_type","payment_ready_page_type","payment_ready_session_id","button_type","connectionStartTime","domain","endpoint","endTime","requestStartTime","startTime"]}},{}],40:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:i.METHOD_CALLED_AFTER_TEARDOWN.type,code:i.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":38,"./errors":47}],41:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports=function(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}},{"./braintree-error":38}],42:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;t.exports={create:function(e){return n.production}}},{"./constants":39}],43:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,i=e("../lib/constants").CLIENT_API_URLS;t.exports=function(e){var t,r,o,a,s={attrs:{},configUrl:""};return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)?(r=(t=e.split("_"))[0],s.environment=(a={merchantId:t.slice(2).join("_"),environment:r}).environment,s.attrs.tokenizationKey=e,s.configUrl=i[a.environment]+"/merchants/"+a.merchantId+"/client_api/v1/configuration"):(s.environment=(o=JSON.parse(n(e))).environment,s.attrs.authorizationFingerprint=o.authorizationFingerprint,s.configUrl=o.configUrl,s.graphQL=o.graphQL),s}},{"../lib/constants":39,"../lib/vendor/polyfill":53}],44:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./assets"),o=e("./errors"),a="3.142.0";t.exports={create:function(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=i.loadScript({src:e.assetsUrl+"/web/"+a+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:o.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:o.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:o.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==a?Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+a+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}}},{"./assets":35,"./braintree-error":38,"./errors":47}],45:[function(e,t,r){"use strict";t.exports=function(e){return function(){var t=arguments;setTimeout(function(){e.apply(null,t)},1)}}},{}],46:[function(e,t,r){"use strict";t.exports=function(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}},{}],47:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:n.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:n.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:n.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:n.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"}
1,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":38}],48:[function(e,t,r){"use strict";t.exports={isHTTPS:function(e){return"https:"===(e=e||window.location.protocol)}}},{}],49:[function(e,t,r){"use strict";var n,i={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};t.exports=function(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((n=n||document.createElement("a")).href=e,t=n.hostname.split(".").slice(-2).join("."),i.hasOwnProperty(t))}},{}],50:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],51:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],52:[function(e,t,r){"use strict";t.exports=function(e){return e?"":".min"}},{}],53:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:i;function i(e){var t,r,n,i,o,a,s,c,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d="";if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$/.test(e))throw Error("Non base64 encoded input passed to window.atob polyfill");c=0;do i=u.indexOf(e.charAt(c++)),o=u.indexOf(e.charAt(c++)),a=u.indexOf(e.charAt(c++)),s=u.indexOf(e.charAt(c++)),t=(63&i)<<2|o>>4&3,r=(15&o)<<4|a>>2&15,n=(3&a)<<6|63&s,d+=String.fromCharCode(t)+(r?String.fromCharCode(r):"")+(n?String.fromCharCode(n):"");while(c<e.length);return d}t.exports={atob:function(e){return n.call(window,e)},_atob:i}},{}],54:[function(e,t,r){"use strict";var n=e("../../../lib/assign").assign,i=e("../../../lib/analytics"),o=e("../../../lib/braintree-error"),a=e("../../../lib/is-verified-domain"),s=e("@braintree/extended-promise"),c=e("@braintree/event-emitter"),u=e("../../shared/errors"),d=e("@braintree/iframer"),l=e("framebus"),p=e("../../shared/constants"),f=e("@braintree/uuid"),_=e("../../shared/events"),h=e("../../../lib/use-min"),E=e("../../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT,m="3.142.0";function y(e){c.call(this),this._client=e.client,this._createPromise=e.createPromise,this._createOptions=e,this._client?(this._isDebug=this._client.getConfiguration().isDebug,this._assetsUrl=this._client.getConfiguration().gatewayConfiguration.assetsUrl):(this._isDebug=!!e.isDebug,this._assetsUrl=e.assetsUrl),this._assetsUrl=this._assetsUrl+"/web/"+m}s.suppressUnhandledPromiseMessage=!0,c.createChild(y),y.prototype._waitForClient=function(){return this._client?Promise.resolve():this._createPromise.then((function(e){this._client=e}).bind(this))},y.prototype.setUpEventListeners=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype.verifyCard=function(e,t){var r,n,o=this;return(t=t||{},n=this._checkForVerifyCardError(e,t))?Promise.reject(n):(this._verifyCardInProgress=!0,r=this._formatVerifyCardOptions(e),this._formatLookupData(r).then(function(e){return i.sendEvent(o._createPromise,"three-d-secure.verification-flow.started"),o._performLookup(r.nonce,e)}).then(function(e){return i.sendEvent(o._createPromise,"three-d-secure.verification-flow.3ds-version."+e.lookup.threeDSecureVersion),o._onLookupComplete(e,r)}).then(function(e){return o.initializeChallengeWithLookupResponse(e,r)}).then(function(e){return o._resetVerificationState(),i.sendEvent(o._createPromise,"three-d-secure.verification-flow.completed"),e}).catch(function(e){return o._resetVerificationState(),i.sendEvent(o._createPromise,"three-d-secure.verification-flow.failed"),Promise.reject(e)}))},y.prototype._checkForFrameworkSpecificVerifyCardErrors=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype._presentChallenge=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype.prepareLookup=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype._resetVerificationState=function(){this._verifyCardInProgress=!1,this._verifyCardPromisePlus=null,"function"==typeof this._reloadThreeDSecure&&this._reloadThreeDSecure()},y.prototype._performLookup=function(e,t){var r=this,n="payment_methods/"+e+"/three_d_secure/lookup";return this._waitForClient().then(function(){return r._client.request({endpoint:n,method:"post",data:t}).catch(function(e){var t,n=e&&e.details&&e.details.httpStatus,a="three-d-secure.verification-flow.lookup-failed";return 404===n?(t=u.THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR,a+=".404"):422===n?(t=u.THREEDS_LOOKUP_VALIDATION_ERROR,a+=".422"):t=u.THREEDS_LOOKUP_ERROR,i.sendEvent(r._createPromise,a),Promise.reject(new o({type:t.type,code:t.code,message:t.message,details:{originalError:e}}))})})},y.prototype._existsAndIsNumeric=function(e){return!(null==e||Array.isArray(e)||"boolean"==typeof e||"string"==typeof e&&""===e.trim()||isNaN(Number(e)))},y.prototype._checkForVerifyCardError=function(e,t){var r;return!0===this._verifyCardInProgress?new o(u.THREEDS_AUTHENTICATION_IN_PROGRESS):(e.nonce?this._existsAndIsNumeric(e.amount)||(r="an amount"):r="a nonce",r||(r=this._checkForFrameworkSpecificVerifyCardErrors(e,t)),r)?new o({type:u.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:u.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard o
1ptions must include "+r+"."}):null},y.prototype.initializeChallengeWithLookupResponse=function(e,t){var r=this;return t=t||{},this._lookupPaymentMethod=e.paymentMethod,r._verifyCardPromisePlus=r._verifyCardPromisePlus||new s,r._handleLookupResponse(e,t),r._verifyCardPromisePlus.then(function(e){return i.sendEvent(r._createPromise,"three-d-secure.verification-flow.liability-shifted."+String(e.liabilityShifted)),i.sendEvent(r._createPromise,"three-d-secure.verification-flow.liability-shift-possible."+String(e.liabilityShiftPossible)),e})},y.prototype._handleLookupResponse=function(e,t){var r,n=!!(e.lookup&&e.lookup.acsUrl);i.sendEvent(this._createPromise,"three-d-secure.verification-flow.challenge-presented."+String(n)),n?this._presentChallenge(e,t):((r=this._formatAuthResponse(e.paymentMethod,e.threeDSecureInfo)).verificationDetails=e.threeDSecureInfo,this._verifyCardPromisePlus.resolve(r))},y.prototype._onLookupComplete=function(e){return this._lookupPaymentMethod=e.paymentMethod,this._verifyCardPromisePlus=new s,Promise.resolve(e)},y.prototype._formatAuthResponse=function(e,t){return{nonce:e.nonce,type:e.type,binData:e.binData,details:e.details,description:e.description&&e.description.replace(/\+/g," "),liabilityShifted:t&&t.liabilityShifted,liabilityShiftPossible:t&&t.liabilityShiftPossible,threeDSecureInfo:e.threeDSecureInfo}},y.prototype._formatVerifyCardOptions=function(e){return n({},e)},y.prototype._formatLookupData=function(e){var t={amount:e.amount};return!0===e.collectDeviceData&&(t.browserColorDepth=window.screen.colorDepth,t.browserJavaEnabled=window.navigator.javaEnabled(),t.browserJavascriptEnabled=!0,t.browserLanguage=window.navigator.language,t.browserScreenHeight=window.screen.height,t.browserScreenWidth=window.screen.width,t.browserTimeZone=new Date().getTimezoneOffset(),t.deviceChannel="Browser"),Promise.resolve(t)},y.prototype._handleV1AuthResponse=function(e){var t=JSON.parse(e.auth_response);t.success?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(t.paymentMethod,t.threeDSecureInfo)):t.threeDSecureInfo&&t.threeDSecureInfo.liabilityShiftPossible?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(this._lookupPaymentMethod,t.threeDSecureInfo)):this._verifyCardPromisePlus.reject(new o({type:o.types.UNKNOWN,code:"UNKNOWN_AUTH_RESPONSE",message:t.error.message}))},y.prototype.cancelVerifyCard=function(){var e;return(this._verifyCardInProgress=!1,this._lookupPaymentMethod)?(e=this._lookupPaymentMethod.threeDSecureInfo,Promise.resolve(n({},this._lookupPaymentMethod,{liabilityShiftPossible:e&&e.liabilityShiftPossible,liabilityShifted:e&&e.liabilityShifted,verificationDetails:e&&e.verificationDetails}))):Promise.reject(new o(u.THREEDS_NO_VERIFICATION_PAYLOAD))},y.prototype._setupV1Bus=function(e){var t=this._client.getConfiguration(),r=window.location.href.split("#")[0],n=e.lookupResponse,i=f(),o=new l({channel:i,verifyDomain:a}),s=this._assetsUrl+"/html/three-d-secure-authentication-complete-frame.html?channel="+encodeURIComponent(i)+"&";return o.on(E,function(i){i({clientConfiguration:t,nonce:e.nonce,acsUrl:n.acsUrl,pareq:n.pareq,termUrl:n.termUrl+"&three_d_secure_version="+m+"&authentication_complete_base_url="+encodeURIComponent(s),md:n.md,parentUrl:r})}),o.on(_.AUTHENTICATION_COMPLETE,e.handleAuthResponse),o},y.prototype._setupV1Iframe=function(e){return d({src:this._assetsUrl+"/html/three-d-secure-bank-frame"+h(this._isDebug)+".html?showLoader="+e.showLoader,height:400,width:400,name:p.LANDING_FRAME_NAME+"_"+this._v1Bus.channel,title:"3D Secure Authorization Frame"})},y.prototype._setupV1Elements=function(e){this._v1Bus=this._setupV1Bus(e),this._v1Iframe=this._setupV1Iframe(e)},y.prototype._teardownV1Elements=function(){this._v1Bus&&(this._v1Bus.teardown(),this._v1Bus=null),this._v1Iframe&&this._v1Iframe.parentNode&&(this._v1Iframe.parentNode.removeChild(this._v1Iframe),this._v1Iframe=null),this._onV1Keyup&&(document.removeEventListener("keyup",this._onV1Keyup),this._onV1Keyup=null)},y.prototype.teardown=function(){return i.sendEvent(this._createPromise,"three-d-secure.teardown-completed"),this._teardownV1Elements(),Promise.resolve()},t.exports=y},{"../../../lib/analytics":34,"../../../lib/assign":36,"../../../lib/braintree-error":38,"../../../lib/constants":39,"../../../lib/is-verified-domain":49,"../../../lib/use-min":52,"../../shared/constants":62,"../../shared/errors":63,"../../shared/events":64,"@braintree/event-emitter":3,"@braintree/extended-promise":4,"@braintree/iframer":5,"@braintree/uuid":9,framebus:16}],55:[function(e,t,r){"use strict";var n=e("./songbird");function i(e){n.call(this,e)}i.prototype=Object.create(n.prototype,{constructor:n}),i.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div");return t.innerHTML='<div class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="CCAFrameModal-label" aria-hidden="true" style="display: block;"><div class="modal-dialog" style="width:440px;z-index:999999;"><div class="modal-content"><div class="modal-body" data-braintree-v1-fallback-iframe-container><button type="button" data-braintree-v1-fallback-close-button class="close" data-dismiss="modal" aria-hidden="true">\xd7</button></div></div></div><div data-braintree-v1-fallback-backdrop style="position: fixed;cursor: pointer;z-index: 999998;top: 0;left: 0;width: 100%;height: 100%;"></div></div>',t.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(e),t},i.prototype._createCardinalConfigurationOptions=function(e){var t=n.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="bootstrap3",t}
1,t.exports=i},{"./songbird":59}],56:[function(e,t,r){"use strict";var n=e("./songbird");function i(e){n.call(this,e)}i.prototype=Object.create(n.prototype,{constructor:n}),i.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div"),r=!!(this._createOptions&&this._createOptions.cardinalSDKConfig&&this._createOptions.cardinalSDKConfig.payment&&this._createOptions.cardinalSDKConfig.payment.displayExitButton);return t.innerHTML='<div style="position: fixed;z-index: 999999;top: 50%;left: 50%;padding: 24px 20px;transform: translate(-50%,-50%);border-radius: 2px;background: #fff;max-width: 100%;overflow: auto;"><div><button data-braintree-v1-fallback-close-button style="font-family: Helvetica,Arial,sans-serif;font-size: 25px;line-height: 12px;position: absolute;top: 2px;right: 0px;cursor: pointer;color: #999;border: 0;outline: none;background: none;" onMouseOver="this.style.color=\'#000\'" onMouseOut="this.style.color=\'#999\'">\xd7</button></div><div data-braintree-v1-fallback-iframe-container style="height: 400px;"></div></div><div data-braintree-v1-fallback-backdrop style="position: fixed;z-index: 999998;cursor: pointer;top: 0;left: 0;width: 100%;height: 100%;transition: opacity 1ms ease;background: rgba(0,0,0,.6);"></div>',r||(t.querySelector("[data-braintree-v1-fallback-close-button]").style.display="none"),t.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(e),t},t.exports=i},{"./songbird":59}],57:[function(e,t,r){"use strict";t.exports={"cardinal-modal":e("./cardinal-modal"),"bootstrap3-modal":e("./bootstrap3-modal"),"inline-iframe":e("./inline-iframe")}},{"./bootstrap3-modal":55,"./cardinal-modal":56,"./inline-iframe":58}],58:[function(e,t,r){"use strict";var n=e("./songbird"),i=e("../../../lib/braintree-error"),o=e("../../shared/errors"),a=e("../../../lib/enumerate");function s(e){n.call(this,e)}s.prototype=Object.create(n.prototype,{constructor:n}),s.events=a(["AUTHENTICATION_IFRAME_AVAILABLE"],"inline-iframe-framework:"),s.prototype.setUpEventListeners=function(e){n.prototype.setUpEventListeners.call(this,e),this.on(s.events.AUTHENTICATION_IFRAME_AVAILABLE,function(t,r){e("authentication-iframe-available",t,r)})},s.prototype._createCardinalConfigurationOptions=function(e){var t=n.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="inline",t},s.prototype._addV1IframeToPage=function(){this._emit(s.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:this._v1Modal},function(){})},s.prototype._setupFrameworkSpecificListeners=function(){this.setCardinalListener("ui.inline.setup",this._onInlineSetup.bind(this))},s.prototype._onInlineSetup=function(e,t,r,n){var a,c;if(e&&t?"CCA"!==t.paymentType?c=!0:"suppress"!==t.data.mode&&"static"!==t.data.mode&&(c=!0):c=!0,c)return void n(new i(o.THREEDS_INLINE_IFRAME_DETAILS_INCORRECT));(a=document.createElement("div")).innerHTML=e,"suppress"===t.data.mode?(a.style.display="none",document.body.appendChild(a),r()):"static"===t.data.mode&&this._emit(s.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:a},function(){r()})},t.exports=s},{"../../../lib/braintree-error":38,"../../../lib/enumerate":46,"../../shared/errors":63,"./songbird":59}],59:[function(e,t,r){"use strict";var n=e("./base"),i=e("../../../lib/assign").assign,o=e("../../../lib/deferred"),a=e("../../../lib/braintree-error"),s=e("../../../lib/convert-to-braintree-error"),c=e("../../../lib/analytics"),u=e("../../../lib/assets"),d=e("../../shared/errors"),l=e("../../../lib/enumerate"),p=e("@braintree/extended-promise"),f=e("../../../lib/constants").INTEGRATION_TIMEOUT_MS,_=e("../../../lib/constants").PLATFORM,h="3.142.0",E=["ui.close","ui.render","ui.renderHidden","ui.loading.close","ui.loading.render"],m=["low_value","transaction_risk_analysis"];function y(e){n.call(this,e),this._songbirdInitFailed=!1,this._clientMetadata={requestedThreeDSecureVersion:"2",sdkVersion:_+"/"+h},this.originalSetupOptions=e,this._getDfReferenceIdPromisePlus=new p,this.setupSongbird(e),this._cardinalEvents=[]}function v(e,t,r){t[r+"Line1"]=e.streetAddress,t[r+"Line2"]=e.extendedAddress,t[r+"Line3"]=e.line3,t[r+"City"]=e.locality,t[r+"State"]=e.region,t[r+"PostalCode"]=e.postalCode,t[r+"CountryCode"]=e.countryCodeAlpha2}p.suppressUnhandledPromiseMessage=!0,y.prototype=Object.create(n.prototype,{constructor:y}),y.events=l(["LOOKUP_COMPLETE","CUSTOMER_CANCELED","UI.CLOSE","UI.RENDER","UI.RENDERHIDDEN","UI.LOADING.CLOSE","UI.LOADING.RENDER"],"songbird-framework:"),y.prototype.setUpEventListeners=function(e){this.on(y.events.LOOKUP_COMPLETE,function(t,r){e("lookup-complete",t,r)}),this.on(y.events.CUSTOMER_CANCELED,function(){e("customer-canceled")}),this.on(y.events["UI.CLOSE"],function(){e("authentication-modal-close")}),this.on(y.events["UI.RENDER"],function(){e("authentication-modal-render")}),this.on(y.events["UI.RENDERHIDDEN"],function(){e("authentication-modal-render-hidden")}),this.on(y.events["UI.LOADING.CLOSE"],function(){e("authentication-modal-loader-close")}),this.on(y.events["UI.LOADING.RENDER"],function(){e("authentication-modal-loader-render")})},y.prototype.prepareLookup=function(e){var t=i({},e),r=this;return this.getDfReferenceId().then(function(e){t.dfReferenceId=e}).then(function(){return r._triggerCardinalBinProcess(e.bin)}).catch(function(){}).then(function(){return r._waitForClient()}).then(function(){return t.clientMetadata=r._clientMetadata,t.authorizationFingerprint=r._client.getConfiguration().authorizationFingerprint,t.braintreeLibraryVersion="braintree/web/"+h,t})},y.prototype.initializeChallengeWithLookupResponse=function(e,t){return this.setupSongbird().then((function(){return n.prototype.initializeChallengeWithLookupResponse.call(this,e,t)}).bind(this))},y.prototype.handleSongbirdError=function(e){this._songbirdInitFailed=!0,this._removeSongbirdListeners(),c.sendEvent(this._createPromise,"three-d-secure.cardinal-sdk.songbird-error."+e),this._songbirdPromise&&this._songbirdPromise.resolve()},y.prototype._triggerCardinalBinProcess=function(e){var t=this,r=Date.now();return window.Cardinal.trigger("bin.process",e).then(function(e){t._clientMetadata.issuerDeviceDataCollectionTimeElapsed=Date.now()-r,t._clientMetadata.issuerDeviceDataCollectionResult=e&&e.Status})},y.prototype.transformBillingAddress=function(e,t){return t&&(v(t,e,"billing"),e.billingPhoneNumber=t.phoneNumber,e.billingGivenName=t.givenName,e.billingSurname=t.surname),e},y.prototype.transformShippingAddress=function(e){var t=e.shippingAddress;return t&&(v(t,e,"shipping"),delete e.shippingAddress),e},y.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div");return t.innerHTML='<div data-braintree-v1-fallback-iframe-container="true" style="height: 400px;"></div>',t.querySelector('[data-braintree-v1-fallback-iframe-container="true"]').appendChild(e),t},y.prototype._createV1IframeModal=function(e){var t=this._createV1IframeModalElement(e),r=t.querySelector("[data-braintree-v1-fallback-close-button]"),n=t.querySelector("[data-braintree-v1-fallback-backdrop]"),i=this;function o(){t.parentNode.removeChild(t),i.cancelVerifyCard(d.THREEDS_CARDINAL_SDK_CANCELED),document.removeEventListener("keyup",i._onV1Keyup),i._onV1Keyup=null}return this._onV1Keyup=function(e){"Escape"===e.key&&t.parentNode&&o()},r&&r.addEventListener("click",o),n&&n.addEventListener("click",o),document.addEventListener("keyup",this._onV1Keyup),t},y.prototype._addV1IframeToPage=function(){document.body.appendChild(this._v1Modal)},y.prototype.setupSongbird=function(e){var t=this,r=Date.now();return this._songbirdPromise||(e=e||{},this._songbirdPromise=new p,this._v2SetupFailureReason="reason-unknown",t._loadCardinalScript(e).then(function(){return window.Cardinal?t._configureCardinalSdk({setupOptions:e,setupStartTime:r}):(t._v2SetupFailureReason="cardinal-global-unavailable",Promise.reject(new a(d.THREEDS_CARDINAL_SDK_SETUP_FAILED)))}).catch(function(e){var r=s(e,{type:d.THREEDS_CARDINAL_SDK_SETUP_FAILED.type,code:d.THREEDS_CARDINAL_SDK_SETUP_FAILED.code,message:d.THREEDS_CARDINAL_SDK_SETUP_FAILED.message});t._getDfReferenceIdPromisePlus.reject(r),window.clearTimeout(t._songbirdSetupTimeoutReference),c.sendEvent(t._client,"three-d-secure.cardinal-sdk.init.setup-failed"),t.handleSongbirdError("cardinal-sdk-setup-failed."+t._v2SetupFailureReason)})),this._songbirdPromise},y.prototype._configureCardinalSdk=function(e){var t=this;return this._waitForClient().then(function(){return t._client.getConfiguration().gatewayConfiguration.threeDSecure}).then(function(r){var n=r.cardinalAuthenticationJWT,i=e.setupOptions,o=e.setupStartTime,a=t._createCardinalConfigurationOptions(i);
1E.forEach(function(e){t.setCardinalListener(e,function(){t._emit(y.events[e.toUpperCase()])})}),t.setCardinalListener("payments.setupComplete",t._createPaymentsSetupCompleteCallback()),t._setupFrameworkSpecificListeners(),window.Cardinal.configure(a),window.Cardinal.setup("init",{jwt:n}),t._clientMetadata.cardinalDeviceDataCollectionTimeElapsed=Date.now()-o,t.setCardinalListener("payments.validated",t._createPaymentsValidatedCallback())}).catch(function(e){return t._v2SetupFailureReason="cardinal-configuration-threw-error",Promise.reject(e)})},y.prototype.setCardinalListener=function(e,t){this._cardinalEvents.push(e),window.Cardinal.on(e,t)},y.prototype._setupFrameworkSpecificListeners=function(){},y.prototype._createCardinalConfigurationOptions=function(e){var t=e.cardinalSDKConfig||{},r=t.payment||{};return!t.logging&&e.loggingEnabled&&(t.logging={level:"verbose"}),t.payment={},r.hasOwnProperty("displayLoading")&&(t.payment.displayLoading=r.displayLoading),r.hasOwnProperty("displayExitButton")&&(t.payment.displayExitButton=r.displayExitButton),t},y.prototype._loadCardinalScript=function(e){var t,r=this,n={};return this._waitForClient().then(function(){return n.src=r._client.getConfiguration().gatewayConfiguration.threeDSecure.cardinalSongbirdUrl,(t=r._client.getConfiguration().gatewayConfiguration.threeDSecure.cardinalSongbirdIdentityHash)&&(n.crossorigin="anonymous",n.integrity=t),r._songbirdSetupTimeoutReference=window.setTimeout(function(){c.sendEvent(r._client,"three-d-secure.cardinal-sdk.init.setup-timeout"),r.handleSongbirdError("cardinal-sdk-setup-timeout")},e.timeout||f),u.loadScript(n)}).catch(function(e){return r._v2SetupFailureReason="songbird-js-failed-to-load",Promise.reject(s(e,d.THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED))})},y.prototype._createPaymentsSetupCompleteCallback=function(){var e=this;return function(t){e._getDfReferenceIdPromisePlus.resolve(t.sessionId),window.clearTimeout(e._songbirdSetupTimeoutReference),c.sendEvent(e._createPromise,"three-d-secure.cardinal-sdk.init.setup-completed"),e._songbirdPromise.resolve()}},y.prototype.getDfReferenceId=function(){return this._getDfReferenceIdPromisePlus},y.prototype._performJWTValidation=function(e,t){var r=this,n=this._lookupPaymentMethod.nonce,i="payment_methods/"+n+"/three_d_secure/authenticate_from_jwt",o=e&&e.Payment&&e.Payment.ExtendedData&&e.Payment.ExtendedData.ChallengeCancel;return o&&(c.sendEvent(this._createPromise,"three-d-secure.verification-flow.cardinal-sdk.cancel-code."+o),"01"===o&&this._emit(y.events.CUSTOMER_CANCELED)),c.sendEvent(this._createPromise,"three-d-secure.verification-flow.upgrade-payment-method.started"),this._waitForClient().then(function(){return r._client.request({method:"post",endpoint:i,data:{jwt:t,paymentMethodNonce:n}})}).then(function(t){var n=t.paymentMethod||r._lookupPaymentMethod,i=r._formatAuthResponse(n,t.threeDSecureInfo);return i.rawCardinalSDKVerificationData=e,c.sendEvent(r._client,"three-d-secure.verification-flow.upgrade-payment-method.succeeded"),Promise.resolve(i)}).catch(function(e){var t=new a({type:d.THREEDS_JWT_AUTHENTICATION_FAILED.type,code:d.THREEDS_JWT_AUTHENTICATION_FAILED.code,message:d.THREEDS_JWT_AUTHENTICATION_FAILED.message,details:{originalError:e}});return c.sendEvent(r._client,"three-d-secure.verification-flow.upgrade-payment-method.errored"),Promise.reject(t)})},y.prototype._createPaymentsValidatedCallback=function(){var e=this;return function(t,r){var n;if(c.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk.action-code."+t.ActionCode.toLowerCase()),!e._verifyCardPromisePlus)return void e.handleSongbirdError("cardinal-sdk-setup-error.number-"+t.ErrorNumber);switch(t.ActionCode){case"SUCCESS":case"NOACTION":case"FAILURE":e._performJWTValidation(t,r).then(function(t){e._verifyCardPromisePlus.resolve(t)}).catch(function(t){e._verifyCardPromisePlus.reject(t)});break;case"ERROR":switch(c.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk-error."+t.ErrorNumber),t.ErrorNumber){case 10001:case 10002:n=new a(d.THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT);break;case 10003:case 10007:case 10009:n=new a(d.THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT);break;case 10005:case 10006:n=new a(d.THREEDS_CARDINAL_SDK_BAD_CONFIG);break;
1case 10008:case 10010:n=new a(d.THREEDS_CARDINAL_SDK_BAD_JWT);break;case 10011:c.sendEvent(e._createPromise,"three-d-secure.verification-flow.canceled"),n=new a(d.THREEDS_CARDINAL_SDK_CANCELED);break;default:n=new a(d.THREEDS_CARDINAL_SDK_ERROR)}n.details={originalError:{code:t.ErrorNumber,description:t.ErrorDescription}},e._verifyCardPromisePlus.reject(n)}}},y.prototype._checkForVerifyCardError=function(e,t){return e.bin?n.prototype._checkForVerifyCardError.call(this,e,t):new a({type:d.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:d.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard options must include a BIN."})},y.prototype._checkForFrameworkSpecificVerifyCardErrors=function(e,t){var r;return"function"==typeof e.onLookupComplete||t.ignoreOnLookupCompleteRequirement||(r="an onLookupComplete function"),r},y.prototype._formatVerifyCardOptions=function(e){var t=n.prototype._formatVerifyCardOptions.call(this,e),r=t.additionalInformation||{};return r=this.transformBillingAddress(r,e.billingAddress),r=this.transformShippingAddress(r),e.onLookupComplete&&(t.onLookupComplete=o(e.onLookupComplete)),e.email&&(r.email=e.email),e.mobilePhoneNumber&&(r.mobilePhoneNumber=e.mobilePhoneNumber),t.additionalInformation=r,t},y.prototype._onLookupComplete=function(e,t){var r=this;return n.prototype._onLookupComplete.call(this,e).then(function(e){return new Promise(function(n,i){function o(){n(e)}e.requiresUserAuthentication=!!(e.lookup&&e.lookup.acsUrl),r._verifyCardPromisePlus.catch(i),t.onLookupComplete?t.onLookupComplete(e,o):r._emit(y.events.LOOKUP_COMPLETE,e,o)})})},y.prototype._presentChallenge=function(e){!this._songbirdInitFailed&&e.lookup.transactionId&&window.Cardinal.continue("cca",{AcsUrl:e.lookup.acsUrl,Payload:e.lookup.pareq},{OrderDetails:{TransactionId:e.lookup.transactionId}})},y.prototype._formatLookupData=function(e){var t=this;return n.prototype._formatLookupData.call(this,e).then(function(r){if(r.additionalInfo=e.additionalInformation,e.accountType&&(r.accountType=e.accountType),e.challengeRequested&&(r.challengeRequested=e.challengeRequested),e.requestedExemptionType){if(!m.includes(e.requestedExemptionType))throw new a({code:d.THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID.code,type:d.THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID.type,message:"requestedExemptionType `"+e.requestedExemptionType+"` is not a valid exemption. The accepted values are: `"+m.join("`, `")+"`"});r.requestedExemptionType=e.requestedExemptionType}return e.customFields&&(r.customFields=e.customFields),e.dataOnlyRequested&&(r.dataOnlyRequested=e.dataOnlyRequested),e.exemptionRequested&&(r.exemptionRequested=e.exemptionRequested),e.requestVisaDAF&&(r.requestVisaDAF=e.requestVisaDAF),e.bin&&(r.bin=e.bin),null!=e.cardAdd&&(r.cardAdd=e.cardAdd),null!=e.cardAddChallengeRequested&&(r.cardAdd=e.cardAddChallengeRequested),e.merchantName&&(r.merchantName=e.merchantName),e.applySmartAuthentication&&(r.applySmartAuthentication=e.applySmartAuthentication),t.prepareLookup(r)})},y.prototype.cancelVerifyCard=function(e){var t=this;return n.prototype.cancelVerifyCard.call(this).then(function(r){return t._verifyCardPromisePlus&&(e=e||new a(d.THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT),t._verifyCardPromisePlus.reject(e)),r})},y.prototype._removeSongbirdListeners=function(){this._cardinalEvents.forEach(function(e){window.Cardinal.off(e)}),this._cardinalEvents=[]},y.prototype.teardown=function(){return window.Cardinal&&this._removeSongbirdListeners(),n.prototype.teardown.call(this)},y.prototype._reloadThreeDSecure=function(){var e=this,t=Date.now();return e.teardown().then(function(){e._configureCardinalSdk({setupOptions:e.originalSetupOptions,setupStartTime:t})})},t.exports=y},{"../../../lib/analytics":34,"../../../lib/assets":35,"../../../lib/assign":36,"../../../lib/braintree-error":38,"../../../lib/constants":39,"../../../lib/convert-to-braintree-error":41,"../../../lib/deferred":45,"../../../lib/enumerate":46,"../../shared/errors":63,"./base":54,"@braintree/extended-promise":4}],60:[function(e,t,r){"use strict";var n=e("@braintree/wrap-promise"),i=e("../../lib/methods"),o=e("../../lib/convert-methods-to-error"),a=e("@braintree/event-emitter"),s=e("./frameworks");function c(e){var t=this,r=s[e.framework];a.call(this),this._framework=new r(e),this._framework.setUpEventListeners(function(){t._emit.apply(t,arguments)})}a.createChild(c),c.prototype.verifyCard=function(e){var t;return this.hasListener("lookup-complete")&&(t={ignoreOnLookupCompleteRequirement:!0}),this._framework.verifyCard(e,t)},c.prototype.initializeChallengeWithLookupResponse=function(e){return"string"==typeof e&&(e=JSON.parse(e)),this._framework.initializeChallengeWithLookupResponse(e)},c.prototype.prepareLookup=function(e){return this._framework.prepareLookup(e).then(function(e){return JSON.stringify(e)})},c.prototype.cancelVerifyCard=function(){return this._framework.cancelVerifyCard()},c.prototype.teardown=function(){return o(this,i(c.prototype).concat(i(a.prototype))),this._framework.teardown()},t.exports=n.wrapPrototype(c)},{"../../lib/convert-methods-to-error":40,"../../lib/methods":51,"./frameworks":57,"@braintree/event-emitter":3,"@braintree/wrap-promise":13}],61:[function(e,t,r){"use strict";var n=e("./external/three-d-secure"),i=e("../lib/is-https").isHTTPS,o=e("../lib/basic-component-verification"),a=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),c=e("../lib/braintree-error"),u=e("../lib/analytics"),d=e("./shared/errors");t.exports={create:e("@braintree/wrap-promise")(function(e){var t="3D Secure",r=function(e){var t=String(e.version||"");if(!t||"1"===t)throw new c({code:d.THREEDS_UNSUPPORTED_VERSION.code,type:d.THREEDS_UNSUPPORTED_VERSION.type,message:d.THREEDS_UNSUPPORTED_VERSION.message});switch(t){case"2":case"2-cardinal-modal":return"cardinal-modal";case"2-bootstrap3-modal":return"bootstrap3-modal";case"2-inline-iframe":return"inline-iframe";default:throw new c({code:d.THREEDS_UNRECOGNIZED_VERSION.code,type:d.THREEDS_UNRECOGNIZED_VERSION.type,message:"Version `"+e.version+"` is not a recognized ver
1sion. You may need to update the version of your Braintree SDK to support this version."})}}(e);return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){var o=s.create(e.authorization),l=a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:o,name:t}).then(function(t){var r,n=t.getConfiguration(),o=n.gatewayConfiguration;return(e.client=t,o.threeDSecureEnabled||(r=d.THREEDS_NOT_ENABLED),"TOKENIZATION_KEY"===n.authorizationType&&(r=d.THREEDS_CAN_NOT_USE_TOKENIZATION_KEY),"production"!==o.environment||i()||(r=d.THREEDS_HTTPS_REQUIRED),o.threeDSecure&&o.threeDSecure.cardinalAuthenticationJWT||(u.sendEvent(e.client,"three-d-secure.initialization.failed.missing-cardinalAuthenticationJWT"),r=d.THREEDS_NOT_ENABLED_FOR_V2),r)?Promise.reject(new c(r)):(u.sendEvent(e.client,"three-d-secure.initialized"),t)}),p=new n({client:e.client,assetsUrl:o,createPromise:l,loggingEnabled:e.loggingEnabled,cardinalSDKConfig:e.cardinalSDKConfig,framework:r});return e.client?l.then(function(){return p}):p})}),VERSION:"3.142.0"}},{"../lib/analytics":34,"../lib/basic-component-verification":37,"../lib/braintree-error":38,"../lib/create-assets-url":42,"../lib/create-deferred-client":44,"../lib/is-https":48,"./external/three-d-secure":60,"./shared/errors":63,"@braintree/wrap-promise":13}],62:[function(e,t,r){"use strict";t.exports={LANDING_FRAME_NAME:"braintreethreedsecurelanding"}},{}],63:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={THREEDS_NOT_ENABLED:{type:n.types.MERCHANT,code:"THREEDS_NOT_ENABLED",message:"3D Secure is not enabled for this merchant."},THREEDS_CAN_NOT_USE_TOKENIZATION_KEY:{type:n.types.MERCHANT,code:"THREEDS_CAN_NOT_USE_TOKENIZATION_KEY",message:"3D Secure can not use a tokenization key for authorization."},THREEDS_HTTPS_REQUIRED:{type:n.types.MERCHANT,code:"THREEDS_HTTPS_REQUIRED",message:"3D Secure requires HTTPS."},THREEDS_NOT_ENABLED_FOR_V2:{type:n.types.MERCHANT,code:"THREEDS_NOT_ENABLED_FOR_V2",message:"3D Secure version 2 is not enabled for this merchant. Contact Braintree Support for assistance at https://help.braintreepayments.com/"},THREEDS_UNRECOGNIZED_VERSION:{type:n.types.MERCHANT,code:"THREEDS_UNRECOGNIZED_VERSION"},THREEDS_CARDINAL_SDK_SETUP_FAILED:{type:n.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_FAILED",message:"Something went wrong setting up Cardinal's Songbird.js library."},THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED:{type:n.types.NETWORK,code:"THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED",message:"Cardinal's Songbird.js library could not be loaded."},THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT:{type:n.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT",message:"Cardinal's Songbird.js took too long to setup."},THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT:{type:n.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT",message:"Cardinal's API took too long to respond."},THREEDS_CARDINAL_SDK_BAD_CONFIG:{type:n.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_CONFIG",message:"JWT or other required field missing. Please check your setup configuration."},THREEDS_CARDINAL_SDK_BAD_JWT:{type:n.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_JWT",message:"Cardinal JWT missing or malformed. Please check your setup configuration."},THREEDS_CARDINAL_SDK_ERROR:{type:n.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_ERROR",message:"A general error has occurred with Cardinal. See description for more information."},THREEDS_CARDINAL_SDK_CANCELED:{type:n.types.CUSTOMER,code:"THREEDS_CARDINAL_SDK_CANCELED",message:"Canceled by user."},THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT:{type:n.types.MERCHANT,code:"THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT",message:"3D Secure verfication canceled by merchant."},THREEDS_AUTHENTICATION_IN_PROGRESS:{type:n.types.MERCHANT,code:"THREEDS_AUTHENTICATION_IN_PROGRESS",message:"Cannot call verifyCard while existing authentication is in progress."},THREEDS_MISSING_VERIFY_CARD_OPTION:{type:n.types.MERCHANT,code:"THREEDS_MISSING_VERIFY_CARD_OPTION"},THREEDS_JWT_AUTHENTICATION_FAILED:{type:n.types.UNKNOWN,code:"THREEDS_JWT_AUTHENTICATION_FAILED",message:"Something went wrong authenticating the JWT from Cardinal"},THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR:{type:n.types.MERCHANT,code:"THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR",message:"Either the payment method nonce passed to `verifyCard` does not exist, or it was already consumed"},THREEDS_LOOKUP_VALIDATION_ERROR:{type:n.types.CUSTOMER,code:"THREEDS_LOOKUP_VALIDATION_ERROR",message:"The data passed in `verifyCard` did not pass validation checks. See details for more info"},THREEDS_LOOKUP_ERROR:{type:n.types.UNKNOWN,code:"THREEDS_LOOKUP_ERROR",message:"Something went wrong during the 3D Secure lookup"},THREEDS_INLINE_IFRAME_DETAILS_INCORRECT:{type:n.types.UNKNOWN,code:"THREEDS_INLINE_IFRAME_DETAILS_INCORRECT",message:"Something went wrong when attempting to add the authentication iframe to the page."},THREEDS_NO_VERIFICATION_PAYLOAD:{type:n.types.MERCHANT,code:"THREEDS_NO_VERIFICATION_PAYLOAD",message:"No verification payload available."},THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN:{type:n.types.INTERNAL,code:"THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN",message:"Term Url must be on a Braintree domain."}
1,THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED:{type:n.types.INTERNAL,code:"THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED",message:"Method not implemented for this framework."},THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID:{type:n.types.MERCHANT,code:"THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID",message:"Requested Exemption Type is invalid."},THREEDS_UNSUPPORTED_VERSION:{type:n.types.MERCHANT,code:"THREEDS_UNSUPPORTED_VERSION",message:"3D Secure `1` is deprecated and no longer supported. See available versions at https://braintree.github.io/braintree-web/current/module-braintree-web_three-d-secure.html#.create"}}},{"../../lib/braintree-error":38}],64:[function(e,t,r){"use strict";t.exports=e("../../lib/enumerate")(["AUTHENTICATION_COMPLETE"],"threedsecure:")},{"../../lib/enumerate":46}]},{},[61])(61)}()}}]);

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.