PageSourceSearch

https://www.lenstore.co.uk/_nuxt/3d53d75.js

js lenstore.co.uk collected 2026-10-02 07:44:17 UTC 2,041,780 bytes, 2 lines download raw bytes

1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[147],[function(e,t,r){"use strict";r.d(t,"h",function(){return n}),r.d(t,"i",function(){return o}),r.d(t,"j",function(){return c}),r.d(t,"g",function(){return l}),r.d(t,"l",function(){return d}),r.d(t,"m",function(){return f}),r.d(t,"q",function(){return h}),r.d(t,"p",function(){return m}),r.d(t,"b",function(){return y}),r.d(t,"a",function(){return v}),r.d(t,"wb",function(){return _}),r.d(t,"xb",function(){return E}),r.d(t,"yb",function(){return w}),r.d(t,"Sb",function(){return A}),r.d(t,"Ub",function(){return T}),r.d(t,"Xb",function(){return O}),r.d(t,"Tb",function(){return S}),r.d(t,"Eb",function(){return I}),r.d(t,"bc",function(){return C}),r.d(t,"ac",function(){return N}),r.d(t,"cc",function(){return P}),r.d(t,"zb",function(){return R}),r.d(t,"o",function(){return L}),r.d(t,"k",function(){return D}),r.d(t,"f",function(){return x}),r.d(t,"e",function(){return k}),r.d(t,"X",function(){return M}),r.d(t,"sb",function(){return F}),r.d(t,"rb",function(){return U}),r.d(t,"tb",function(){return j}),r.d(t,"ub",function(){return B}),r.d(t,"vb",function(){return H}),r.d(t,"Wb",function(){return V}),r.d(t,"Kb",function(){return z}),r.d(t,"Jb",function(){return Y}),r.d(t,"Ab",function(){return $}),r.d(t,"Bb",function(){return W}),r.d(t,"Cb",function(){return K}),r.d(t,"Nb",function(){return G}),r.d(t,"Lb",function(){return Q}),r.d(t,"Yb",function(){return X}),r.d(t,"Qb",function(){return J}),r.d(t,"Zb",function(){return Z}),r.d(t,"V",function(){return ee}),r.d(t,"W",function(){return te}),r.d(t,"fc",function(){return re}),r.d(t,"ec",function(){return ne}),r.d(t,"dc",function(){return ie}),r.d(t,"Ob",function(){return oe}),r.d(t,"r",function(){return ae}),r.d(t,"s",function(){return se}),r.d(t,"d",function(){return ce}),r.d(t,"c",function(){return ue}),r.d(t,"Rb",function(){return le}),r.d(t,"Vb",function(){return de}),r.d(t,"Fb",function(){return pe}),r.d(t,"Hb",function(){return fe}),r.d(t,"Db",function(){return he}),r.d(t,"Mb",function(){return me}),r.d(t,"Pb",function(){return ye}),r.d(t,"qc",function(){return ve}),r.d(t,"vc",function(){return ge}),r.d(t,"gc",function(){return _e}),r.d(t,"uc",function(){return be}),r.d(t,"nc",function(){return Ee}),r.d(t,"mc",function(){return we}),r.d(t,"oc",function(){return Ae}),r.d(t,"jc",function(){return Te}),r.d(t,"sc",function(){return Oe}),r.d(t,"tc",function(){return Se}),r.d(t,"rc",function(){return Ie}),r.d(t,"pc",function(){return Ce}),r.d(t,"Gb",function(){return Ne}),r.d(t,"Ib",function(){return Pe}),r.d(t,"kc",function(){return Re}),r.d(t,"lc",function(){return Le}),r.d(t,"hc",function(){return De}),r.d(t,"ic",function(){return xe}),r.d(t,"y",function(){return ke}),r.d(t,"H",function(){return Me}),r.d(t,"v",function(){return Fe}),r.d(t,"t",function(){return Ue}),r.d(t,"S",function(){return je}),r.d(t,"R",function(){return Be}),r.d(t,"Q",function(){return He}),r.d(t,"D",function(){return Ve}),r.d(t,"C",function(){return ze}),r.d(t,"z",function(){return Ye}),r.d(t,"A",function(){return qe}),r.d(t,"L",function(){return $e}),r.d(t,"O",function(){return We}),r.d(t,"K",function(){return Ke}),r.d(t,"u",function(){return Ge}),r.d(t,"M",function(){return Qe}),r.d(t,"T",function(){return Xe}),r.d(t,"G",function(){return Je}),r.d(t,"E",function(){return Ze}),r.d(t,"w",function(){return et}),r.d(t,"x",function(){return tt}),r.d(t,"F",function(){return nt}),r.d(t,"B",function(){return it}),r.d(t,"P",function(){return ot}),r.d(t,"J",function(){return at}),r.d(t,"I",function(){return st}),r.d(t,"U",function(){return ct}),r.d(t,"N",function(){return ut}),r.d(t,"n",function(){return lt}),r.d(t,"hb",function(){return pt}),r.d(t,"gb",function(){return ft}),r.d(t,"Z",function(){return ht}),r.d(t,"ab",function(){return mt}),r.d(t,"bb",function(){return yt}),r.d(t,"cb",function(){return vt}),r.d(t,"db",function(){return gt}),r.d(t,"ib",function(){return _t}),r.d(t,"jb",function(){return bt}),r.d(t,"lb",function(){return Et}),r.d(t,"ob",function(){return wt}),r.d(t,"nb",function(){return At}),r.d(t,"kb",function(){return Tt}),r.d(t,"mb",function(){return Ot}),r.d(t,"pb",function(){return St}),r.d(t,"fb",function(){return It}),r.d(t,"eb",function(){return Ct}),r.d(t,"qb",function(){return Nt}),r.d(t,"Y",function(){return Pt});var n=0,o=1,c=2,l=3,d=10,f=11,h=23,m=24,y=25,v=26,_=27,E=28,w=29,A=30,T=31,O=32,S=33,I=35,C=36,N=37,P=38,R=39,L=40,D=41,x=100,k=101,M=103,F=104,U=105,j=106,B=107,H=108,V=109,z=110,Y=111,$=112,W=113,K=114,G=115,Q=116,X=117,J=118,Z=119,ee=120,te=121,re=122,ne=123,ie=124,oe=125,ae=200,se=201,ce=202,ue=203,le=204,de
2=205,pe=206,fe=207,he=208,me=209,ye=210,ve=211,ge=212,_e=213,be=214,Ee=215,we=216,Ae=217,Te=218,Oe=219,Se=220,Ie=221,Ce=222,Ne=223,Pe=224,Re=225,Le=226,De=227,xe=228,ke=300,Me=301,Fe=302,Ue=303,je=304,Be=305,He=306,Ve=307,ze=308,Ye=309,qe=310,$e=311,We=312,Ke=313,Ge=314,Qe=315,Xe=316,Je=317,Ze=318,et=319,tt=320,nt=321,it=322,ot=324,at=325,st=326,ct=327,ut=328,lt=329,pt="settings",ft="Factory instantiation",ht="Client instantiation",mt="engine",yt=mt+":combiner: ",vt=mt+":matcher: ",gt=mt+":value: ",_t="sync",bt=_t+":sync-manager: ",Et=_t+":offline: ",wt=_t+":streaming: ",At=_t+":featureflag-changes: ",Tt=_t+":my-segments: ",Ot=_t+":polling-manager: ",St=_t+":submitter: ",It="impressions-tracker: ",Ct="events-tracker: ",Nt="unique-keys-tracker: ",Pt="cleanup: "},function(e,t,r){"use strict";r.d(t,"a",function(){return o}),r.d(t,"b",function(){return c}),r.d(t,"c",function(){return l}),r.d(t,"d",function(){return d}),r.d(t,"e",function(){return f}),r.d(t,"f",function(){return h}),r.d(t,"g",function(){return m}),r.d(t,"h",function(){return y}),r.d(t,"i",function(){return v}),r.d(t,"j",function(){return _}),r.d(t,"k",function(){return E}),r.d(t,"n",function(){return w}),r.d(t,"l",function(){return A}),r.d(t,"m",function(){return T}),r.d(t,"o",function(){return O}),r.d(t,"p",function(){return S}),r.d(t,"q",function(){return I});var n=r(22);function o(e,sub,t){return void 0===t&&(t=!1),!(!E(e)||!E(sub))&&(t&&(e=e.toLowerCase(),sub=sub.toLowerCase()),e.slice(e.length-sub.length)===sub)}function c(source,e){var t;if(_(source))for(var r=Object.keys(source),i=0;i<r.length&&!t;i++){var n=r[i];e(source[n],n,source)&&(t=source[n])}else if(Array.isArray(source))for(i=0;i<source.length&&!t;i++){e(source[i],i,source)&&(t=source[i])}return t}function l(source,e){if(Array.isArray(source)&&"function"==typeof e)for(var i=0;i<source.length;i++)if(!0===e(source[i],i,source))return i;return-1}function d(e,t){return Object.keys(e).forEach(function(r){return t(e[r],r,e)}),e}function f(e,t,r){var n=r;try{var o=t.split("."),c=e;o.forEach(function(e){return c=c[e]}),void 0!==c&&(n=c)}catch(e){}return n}function h(source,e){var map={};if(Array.isArray(source)&&E(e))for(var i=0;i<source.length;i++){var t=source[i][e];E(t)&&(map[t]||(map[t]=[]),map[t].push(source[i]))}return map}function m(e){return!0===e||!1===e}function y(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&(Number.isFinite?Number.isFinite(e):isFinite(e))}function v(e){return e instanceof Number&&(e=e.valueOf()),e!=e}function _(e){return null!==e&&"object"==typeof e&&(e.constructor===Object||null!=e.constructor&&"Object"===e.constructor.name)}function E(e){return"string"==typeof e||e instanceof String}function w(e){return E(e)?e.toUpperCase():e}function A(e,source){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=e;if(_(source)&&Object.keys(source).forEach(function(e){var t=source[e];_(t)&&(t=o[e]&&_(o[e])?A({},o[e],t):A({},t)),void 0!==t&&(o[e]=t)}),t&&t.length){var c=t.splice(0,1)[0];o=A.apply(void 0,Object(n.__spreadArray)([o,c],t,!1))}return o}function T(e,sub){return!(!E(e)||!E(sub))&&e.slice(0,sub.length)===sub}function O(e){if("number"==typeof e)return e;if(_(e)&&"function"==typeof e.valueOf){var t=e.valueOf();e=_(t)?t+"":t}return"string"!=typeof e?0===e?e:+e:+(e=e.replace(/^\s+|\s+$/g,""))}function S(e){if(null==e)return"";if("string"==typeof e)return e;if(Array.isArray(e))return e.map(function(e){return E(e)?e:""})+"";var t=e+"";return"0"===t&&1/e===Number.NEGATIVE_INFINITY?"-0":t}function I(e){var t={};return e.filter(function(e){return!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=!0)})}},,,,,,,,function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=Object.assign||function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");e=Object(e);for(var i=1;i<arguments.length;i++){var source=Object(arguments[i]);for(var t in source)Object.prototype.hasOwnProperty.call(source,t)&&(e[t]=source[t])}return e}},,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",function(){return o}),r.d(t,"__assign",function(){return c}),r.d(t,"__rest",function(){return l}),r.d(t,"__decorate",function(){return d}),r.d(t,"__param",function(){return f}),r.d(t,"__esDecorate",function(){return h}
2),r.d(t,"__runInitializers",function(){return m}),r.d(t,"__propKey",function(){return y}),r.d(t,"__setFunctionName",function(){return v}),r.d(t,"__metadata",function(){return _}),r.d(t,"__awaiter",function(){return E}),r.d(t,"__generator",function(){return w}),r.d(t,"__createBinding",function(){return A}),r.d(t,"__exportStar",function(){return T}),r.d(t,"__values",function(){return O}),r.d(t,"__read",function(){return S}),r.d(t,"__spread",function(){return I}),r.d(t,"__spreadArrays",function(){return C}),r.d(t,"__spreadArray",function(){return N}),r.d(t,"__await",function(){return P}),r.d(t,"__asyncGenerator",function(){return R}),r.d(t,"__asyncDelegator",function(){return L}),r.d(t,"__asyncValues",function(){return D}),r.d(t,"__makeTemplateObject",function(){return x}),r.d(t,"__importStar",function(){return F}),r.d(t,"__importDefault",function(){return U}),r.d(t,"__classPrivateFieldGet",function(){return j}),r.d(t,"__classPrivateFieldSet",function(){return B}),r.d(t,"__classPrivateFieldIn",function(){return H}),r.d(t,"__addDisposableResource",function(){return V}),r.d(t,"__disposeResources",function(){return Y}),r.d(t,"__rewriteRelativeImportExtension",function(){return $});
vendor: 9,603 bytes, line 2
2var n=function(e,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,b){e.__proto__=b}||function(e,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p])},n(e,b)};function o(e,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function t(){this.constructor=e}n(e,b),e.prototype=null===b?Object.create(b):(t.prototype=b.prototype,new t)}var c=function(){return c=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},c.apply(this,arguments)};function l(s,e){var t={};for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&e.indexOf(p)<0&&(t[p]=s[p]);if(null!=s&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(p=Object.getOwnPropertySymbols(s);i<p.length;i++)e.indexOf(p[i])<0&&Object.prototype.propertyIsEnumerable.call(s,p[i])&&(t[p[i]]=s[p[i]])}return t}function d(e,t,r,desc){var n,o=arguments.length,c=o<3?t:null===desc?desc=Object.getOwnPropertyDescriptor(t,r):desc;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,desc);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(c=(o<3?n(c):o>3?n(t,r,c):n(t,r))||c);return o>3&&c&&Object.defineProperty(t,r,c),c}function f(e,t){return function(r,n){t(r,n,e)}}function h(e,t,r,n,o,c){function l(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var d,f=n.kind,h="getter"===f?"get":"setter"===f?"set":"value",m=!t&&e?n.static?e:e.prototype:null,y=t||(m?Object.getOwnPropertyDescriptor(m,n.name):{}),v=!1,i=r.length-1;i>=0;i--){var _={};for(var p in n)_[p]="access"===p?{}:n[p];for(var p in n.access)_.access[p]=n.access[p];_.addInitializer=function(e){if(v)throw new TypeError("Cannot add initializers after decoration has completed");c.push(l(e||null))};var E=(0,r[i])("accessor"===f?{get:y.get,set:y.set}:y[h],_);if("accessor"===f){if(void 0===E)continue;if(null===E||"object"!=typeof E)throw new TypeError("Object expected");(d=l(E.get))&&(y.get=d),(d=l(E.set))&&(y.set=d),(d=l(E.init))&&o.unshift(d)}else(d=l(E))&&("field"===f?o.unshift(d):y[h]=d)}m&&Object.defineProperty(m,n.name,y),v=!0}function m(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function y(e){return"symbol"==typeof e?e:"".concat(e)}function v(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function _(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function E(e,t,r,n){return new(r||(r=Promise))(function(o,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(l,d)}f((n=n.apply(e,t||[])).next())})}function w(e,body){var t,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},g=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return g.next=c(0),g.throw=c(1),g.return=c(2),"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(c){return function(l){return function(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}var A=Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function T(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||A(t,e,p)}function O(e){var s="function"==typeof Symbol&&Symbol.iterator,t=s&&e[s],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function S(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c}function I(){for(var e=[],i=0;i<arguments.length;i++)e=e.concat(S(arguments[i]));return e}function C(){for(var s=0,i=0,e=arguments.length;i<e;i++)s+=arguments[i].length;var t=Array(s),r=0;for(i=0;i<e;i++)for(var a=arguments[i],n=0,o=a.length;n<o;n++,r++)t[r]=a[n];return t}function N(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function P(e){return this instanceof P?(this.v=e,this):new P(e)}function R(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,g=r.apply(e,t||[]),q=[];return i=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),n("next"),n("throw"),n("return",function(e){return function(t){return Promise.resolve(t).then(e,l)}}),i[Symbol.asyncIterator]=function(){return this},i;function n(e,t){g[e]&&(i[e]=function(t){return new Promise(function(a,b){q.push([e,t,a,b])>1||o(e,t)})},t&&(i[e]=t(i[e])))}function o(e,t){try{(r=g[e](t)).value instanceof P?Promise.resolve(r.value.v).then(c,l):d(q[0][2],r)}catch(e){d(q[0][3],e)}var r}function c(e){o("next",e)}function l(e){o("throw",e)}function d(e,t){e(t),q.shift(),q.length&&o(q[0][0],q[0][1])}}function L(e){var i,p;return i={},t("next"),t("throw",function(e){throw e}),t("return"),i[Symbol.iterator]=function(){return this},i;function t(t,r){i[t]=e[t]?function(n){return(p=!p)?{value:P(e[t](n)),done:!1}:r?r(n):n}:r}}function D(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,t=e[Symbol.asyncIterator];return t?t.call(e):(e=O(e),i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i);function r(t){i[t]=e[t]&&function(r){return new Promise(function(n,o){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,o,(r=e[t](r)).done,r.value)})}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},M=function(e){return M=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},M(e)};function F(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=M(e),i=0;i<r.length;i++)"default"!==r[i]&&A(t,e,r[i]);return k(t,e),t}function U(e){return e&&e.__esModule?e:{default:e}}function j(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function B(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function H(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function V(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n,o;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(o=n)}if("function"!=typeof n)throw new TypeError("Object not disposable.");o&&(n=function(){try{o.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var z="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function Y(e){function t(t){e.error=e.hasError?new z(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}var r,s=0;return function n(){for(;r=e.stack.pop();)try{if(!r.async&&1===s)return s=0,e.stack.push(r),Promise.resolve().then(n);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return s|=2,Promise.resolve(o).then(n,function(e){return t(e),n()})}else s|=1}catch(e){t(e)}
2if(1===s)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function $(path,e){return"string"==typeof path&&/^\.\.?\//.test(path)?path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(t,r,n,o,c){return r?e?".jsx":".js":!n||o&&c?n+o+"."+c.toLowerCase()+"js":t}):path}t.default={__extends:o,__assign:c,__rest:l,__decorate:d,__param:f,__esDecorate:h,__runInitializers:m,__propKey:y,__setFunctionName:v,__metadata:_,__awaiter:E,__generator:w,__createBinding:A,__exportStar:T,__values:O,__read:S,__spread:I,__spreadArrays:C,__spreadArray:N,__await:P,__asyncGenerator:R,__asyncDelegator:L,__asyncValues:D,__makeTemplateObject:x,__importStar:F,__importDefault:U,__classPrivateFieldGet:j,__classPrivateFieldSet:B,__classPrivateFieldIn:H,__addDisposableResource:V,__disposeResources:Y,__rewriteRelativeImportExtension:$}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.d(t,"a",function(){return l}),r.d(t,"c",function(){return h}),r.d(t,"b",function(){return v});var n=r(9),o=r(1),c=r(253),l={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR",NONE:"NONE"},d={DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5},f={debug:function(e){console.log("[DEBUG] "+e)},info:function(e){console.log("[INFO]  "+e)},warn:function(e){console.log("[WARN]  "+e)},error:function(e){console.log("[ERROR] "+e)}};function h(e){return!!Object(o.b)(l,function(t){return e===t})}function m(e,t){void 0===e&&(e=""),void 0===t&&(t=[]);var i=0;return e.replace(/%s/g,function(){var e=t[i++];if(Object(o.j)(e)||Array.isArray(e))try{e=JSON.stringify(e)}catch(e){}return e})}var y={prefix:"splitio",logLevel:l.NONE},v=function(){function e(e,t){this.options=Object(n.a)({},y,e),this.codes=t||new Map,this.logLevel=d[this.options.logLevel]}return e.prototype.setLogLevel=function(e){this.options.logLevel=e,this.logLevel=d[e]},e.prototype.setLogger=function(e){if(e){if(Object(c.b)(e))return void(this.logger=e);this.error("Invalid `logger` instance. It must be an object with `debug`, `info`, `warn` and `error` methods. Defaulting to `console.log`")}this.logger=void 0},e.prototype.debug=function(e,t){this._shouldLog(d.DEBUG)&&this._log("debug",e,t)},e.prototype.info=function(e,t){this._shouldLog(d.INFO)&&this._log("info",e,t)},e.prototype.warn=function(e,t){this._shouldLog(d.WARN)&&this._log("warn",e,t)},e.prototype.error=function(e,t){this._shouldLog(d.ERROR)&&this._log("error",e,t)},e.prototype._log=function(e,t,r){if("number"==typeof t){var n=this.codes.get(t);t=n?m(n,r):"Message code ".concat(t).concat(r?", with args: "+r.toString():"")}else r&&(t=m(t,r));if(this.options.prefix&&(t=this.options.prefix+" => "+t),this.logger)try{return void this.logger[e](t)}catch(e){}f[e](t)},e.prototype._shouldLog=function(e){return e>=this.logLevel},e}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.callWithNuxt=w,t.defineNuxtPlugin=function(e){return function(){var t=(0,o.default)(function*(t,r){var n=yield w(t.$_nuxtApp,e,[t.$_nuxtApp]);if(n&&n.provide)for(var o in n.provide)r(o,n.provide[o]);return n});return function(e,r){return t.apply(this,arguments)}}()},t.useRuntimeConfig=t.useNuxtApp=t.useNuxt2Meta=t.setNuxtAppInstance=void 0;var o=n(r(10)),c=n(r(8)),l=n(r(25));r(170),r(6);var d=r(5),f=r(312);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,c.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e){return e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e?Array.isArray(e)?e.map(i=>y(i)):(0,d.isRef)(e)?y(e.value):"object"==typeof e?Object.fromEntries(Object.entries(e).map(e=>{var t=(0,l.default)(e,2);return[t[0],y(t[1])]})):e:e}function v(e){return e instanceof Function?e:()=>e}var _;
2t.useNuxt2Meta=e=>{var t=null;try{var meta=(t=(0,d.getCurrentInstance)().proxy).$meta(),r=t.$root;if(!t._vueMeta){t._vueMeta=!0;for(var n=t.$parent;n&&n!==r;)void 0===n._vueMeta&&(n._vueMeta=!1),n=n.$parent}t.$options.head=t.$options.head||{};var o=(0,d.watch)(v(e),e=>{t.$metaInfo=m(m({},t.$metaInfo||{}),y(e)),meta.refresh()},{immediate:!0,deep:!0});(0,d.onBeforeUnmount)(o)}catch(t){var c=A().nuxt2Context.app;if("function"==typeof c.head){var l=c.head;c.head=function(){var head=l.call(this)||{};return(0,f.defu)(y(v(e)()),head)}}else c.head=(0,f.defu)(y(v(e)()),c.head)}};var E=e=>{_=e};function w(e,t,r){return E(e),r?t(...r):t()}t.setNuxtAppInstance=E;var A=()=>{var e=(0,d.getCurrentInstance)();if(!e){if(!_)throw new Error("nuxt app instance unavailable");return _}return e.proxy.$_nuxtApp};t.useNuxtApp=A;t.useRuntimeConfig=e=>{var t=A();return t._config||(t._config=(0,d.reactive)(t.$config)),t._config}},,,,function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},,,,,,,,,function(e,t,r){"use strict";(function(e){var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.PiniaVuePlugin=t.MutationType=void 0,t.acceptHMRUpdate=function(e,t){return()=>{};return r=>{var n=t.data.pinia||e._pinia;if(n)for(var o in t.data.pinia=n,r){var c=r[o];if(te(c)&&n._s.has(c.$id)){var l=c.$id;if(l!==e.$id)return console.warn('The id of the store changed from "'.concat(e.$id,'" to "').concat(l,'". Reloading.')),t.invalidate();var d=n._s.get(l);if(!d)return void console.log("[Pinia]: skipping hmr because store doesn't exist yet");c(n,d)}}}},t.createPinia=function(){var e=(0,l.effectScope)(!0),t=e.run(()=>(0,l.ref)({})),r=[],n=[],o=(0,l.markRaw)({install(e){f(o),l.isVue2||(o._a=e,e.provide(m,o),e.config.globalProperties.$pinia=o,"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&v&&Q(e,o),n.forEac
2h(e=>r.push(e)),n=[])},use(e){return this._a||l.isVue2?r.push(e):n.push(e),this},_p:r,_a:null,_e:e,_s:new Map,state:t});"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&v&&"undefined"!=typeof Proxy&&o.use(ee);return o},t.defineStore=function(e,t,r){var n,o,d="function"==typeof t;"string"==typeof e?(n=e,o=d?r:t):(o=e,n=e.id);function h(e,r){var h=(0,l.hasInjectionContext)();return(e=e||(h?(0,l.inject)(m,null):null))&&f(e),(e=c)._s.has(n)||(d?fe(n,t,o,e):function(e,t,r,n){var o,c=t.state,d=t.actions,h=t.getters,m=r.state.value[e];function y(){m||(l.isVue2?(0,l.set)(r.state.value,e,c?c():{}):r.state.value[e]=c?c():{});var t=(0,l.toRefs)(r.state.value[e]);return de(t,d,Object.keys(h||{}).reduce((t,n)=>(t[n]=(0,l.markRaw)((0,l.computed)(()=>{f(r);var t=r._s.get(e);if(!l.isVue2||t._r)return h[n].call(t,t)})),t),{}))}o=fe(e,y,t,r,n,!0)}(n,o,e)),e._s.get(n)}return h.$id=n,h},t.disposePinia=function(e){e._e.stop(),e._s.clear(),e._p.splice(0),e.state.value={},e._a=null},t.getActivePinia=void 0,t.mapActions=function(e,t){return Array.isArray(t)?t.reduce((t,r)=>(t[r]=function(){return e(this.$pinia)[r](...arguments)},t),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){return e(this.$pinia)[t[n]](...arguments)},r),{})},t.mapGetters=void 0,t.mapState=me,t.mapStores=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];0;return t.reduce((e,t)=>(e[t.$id+he]=function(){return t(this.$pinia)},e),{})},t.mapWritableState=function(e,t){return Array.isArray(t)?t.reduce((t,r)=>(t[r]={get(){return e(this.$pinia)[r]},set(t){return e(this.$pinia)[r]=t}},t),{}):Object.keys(t).reduce((r,n)=>(r[n]={get(){return e(this.$pinia)[t[n]]},set(r){return e(this.$pinia)[t[n]]=r}},r),{})},t.setActivePinia=void 0,t.setMapStoreSuffix=function(e){he=e},t.shouldHydrate=le,t.skipHydrate=function(e){return Object.defineProperty(e,ue,{})},t.storeToRefs=function(e){if(l.isVue2)return(0,l.toRefs)(e);var t=(0,l.toRaw)(e),r={},n=function(n){var o=t[n];o.effect?r[n]=(0,l.computed)({get:()=>e[n],set(t){e[n]=t}}):((0,l.isRef)(o)||(0,l.isReactive)(o))&&(r[n]=(0,l.toRef)(e,n))};for(var o in t)n(o);return r};var o=n(r(10));r(70),r(15),r(33),r(664),r(7),r(18),r(17),r(14),r(38),r(36),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(127),r(128),r(129),r(130),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(6),r(168),r(169),r(72);var c,l=r(434),d=r(675),f=e=>c=e;t.setActivePinia=f;t.getActivePinia=()=>(0,l.hasInjectionContext)()&&(0,l.inject)(m)||c;var h,m=Symbol();function y(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}!function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"}(h||(t.MutationType=h={}));var v="undefined"!=typeof window,_=(()=>"object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof e&&e.global===e?e:"object"==typeof globalThis?globalThis:{HTMLElement:null})();function E(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){I(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function w(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function A(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");
2t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var T,O="object"==typeof navigator?navigator:{userAgent:""},S=(()=>/Macintosh/.test(O.userAgent)&&/AppleWebKit/.test(O.userAgent)&&!/Safari/.test(O.userAgent))(),I=v?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!S?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"download",r=arguments.length>2?arguments[2]:void 0,a=document.createElement("a");a.download=t,a.rel="noopener","string"==typeof e?(a.href=e,a.origin!==location.origin?w(a.href)?E(e,t,r):(a.target="_blank",A(a)):A(a)):(a.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(a.href)},4e4),setTimeout(function(){A(a)},0))}:"msSaveOrOpenBlob"in O?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"download",r=arguments.length>2?arguments[2]:void 0;if("string"==typeof e)if(w(e))E(e,t,r);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){A(a)})}else navigator.msSaveOrOpenBlob(function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).autoBom;return void 0!==t&&t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,r),t)}:function(e,t,r,n){(n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading...");if("string"==typeof e)return E(e,t,r);var o="application/octet-stream"===e.type,c=/constructor/i.test(String(_.HTMLElement))||"safari"in _,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&c||S)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;if("string"!=typeof e)throw n=null,new Error("Wrong reader.result type");e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=e:location.assign(e),n=null},d.readAsDataURL(e)}else{var f=URL.createObjectURL(e);n?n.location.assign(f):location.href=f,n=null,setTimeout(function(){URL.revokeObjectURL(f)},4e4)}}:()=>{};function C(e,t){var r="🍍 "+e;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(r,t):"error"===t?console.error(r):"warn"===t?console.warn(r):console.log(r)}function N(e){return"_a"in e&&"install"in e}function P(){if(!("clipboard"in navigator))return C("Your browser doesn't support the Clipboard API","error"),!0}function R(e){return!!(e instanceof Error&&e.message.toLowerCase().includes("document is not focused"))&&(C('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0)}function L(){return(L=(0,o.default)(function*(e){if(!P())try{yield navigator.clipboard.writeText(JSON.stringify(e.state.value)),C("Global state copied to clipboard.")}catch(e){if(R(e))return;C("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}})).apply(this,arguments)}function D(){return(D=(0,o.default)(function*(e){if(!P())try{M(e,JSON.parse(yield navigator.clipboard.readText())),C("Global state pasted from clipboard.")}catch(e){if(R(e))return;C("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}})).apply(this,arguments)}function x(){return(x=(0,o.default)(function*(e){try{I(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){C("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}})).apply(this,arguments)}function k(){return(k=(0,o.default)(function*(e){try{var t=(T||((T=document.createElement("input")).type="file",T.accept=".json"),function(){return new Promise((e,t)=>{T.onchange=(0,o.default)(function*(){var t=T.files;if(!t)return e(null);var r=t.item(0);return e(r?{text:yield r.text(),file:r}:null)}),T.oncancel=()=>e(null),T.onerror=t,T.click()})}),r=yield t();if(!r)return;var text=r.text,n=r.file;M(e,JSON.parse(text)),C('Global state imported from "'.concat(n.name,'".'))}catch(e){C("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}})).apply(this,arguments)}function M(e,t){for(var r in t){var n=e.state.value[r];n?Object.assign(n,t[r]):e.state.value[r]=t[r]}}function F(e){return{_custom:{display:e}}}var U="🍍 Pinia (root)",j="_root";function B(e){return N(e)?{id:j,label:U}:{id:e.$id,label:e.$id}}function H(e){return e?Array.isArray(e)?e.reduce((data,e)=>(data.keys.push(e.key),data.operations.push(e.type),data.oldValue[e.key]=e.oldValue,data.newValue[e.key]=e.newValue,data),{oldValue:{},keys:[],operations:[],newValue:{}}
2):{operation:F(e.type),key:F(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function V(e){switch(e){case h.direct:return"mutation";case h.patchFunction:case h.patchObject:return"$patch";default:return"unknown"}}var z=!0,Y=[],$="pinia:mutations",W="pinia",K=Object.assign,G=e=>"🍍 "+e;function Q(e,t){(0,d.setupDevtoolsPlugin)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Y,app:e},r=>{var n,c;"function"!=typeof r.now&&C("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),r.addTimelineLayer({id:$,label:"Pinia 🍍",color:15064968}),r.addInspector({id:W,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{!function(e){L.apply(this,arguments)}(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:(c=(0,o.default)(function*(){yield function(e){return D.apply(this,arguments)}(t),r.sendInspectorTree(W),r.sendInspectorState(W)}),function(){return c.apply(this,arguments)}),tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{!function(e){x.apply(this,arguments)}(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:(n=(0,o.default)(function*(){yield function(e){return k.apply(this,arguments)}(t),r.sendInspectorTree(W),r.sendInspectorState(W)}),function(){return n.apply(this,arguments)}),tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:e=>{var r=t._s.get(e);r?"function"!=typeof r.$reset?C('Cannot reset "'.concat(e,'" store because it doesn\'t have a "$reset" method implemented.'),"warn"):(r.$reset(),C('Store "'.concat(e,'" reset.'))):C('Cannot reset "'.concat(e,"\" store because it wasn't found."),"warn")}}]}),r.on.inspectComponent((e,t)=>{var r=e.componentInstance&&e.componentInstance.proxy;if(r&&r._pStores){var n=e.componentInstance.proxy._pStores;Object.values(n).forEach(t=>{e.instanceData.state.push({type:G(t.$id),key:"state",editable:!0,value:t._isOptionsAPI?{_custom:{value:(0,l.toRaw)(t.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>t.$reset()}]}}:Object.keys(t.$state).reduce((e,r)=>(e[r]=t.$state[r],e),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:G(t.$id),key:"getters",editable:!1,value:t._getters.reduce((e,r)=>{try{e[r]=t[r]}catch(t){e[r]=t}return e},{})})})}}),r.on.getInspectorTree(r=>{if(r.app===e&&r.inspectorId===W){var n=[t];n=n.concat(Array.from(t._s.values())),r.rootNodes=(r.filter?n.filter(e=>"$id"in e?e.$id.toLowerCase().includes(r.filter.toLowerCase()):U.toLowerCase().includes(r.filter.toLowerCase())):n).map(B)}}),globalThis.$pinia=t,r.on.getInspectorState(r=>{if(r.app===e&&r.inspectorId===W){var n=r.nodeId===j?t:t._s.get(r.nodeId);if(!n)return;n&&(r.nodeId!==j&&(globalThis.$store=(0,l.toRaw)(n)),r.state=function(e){if(N(e)){var t=Array.from(e._s.keys()),r=e._s,n={state:t.map(t=>({editable:!0,key:t,value:e.state.value[t]})),getters:t.filter(e=>r.get(e)._getters).map(e=>{var t=r.get(e);return{editable:!1,key:e,value:t._getters.reduce((e,r)=>(e[r]=t[r],e),{})}})};return n}var o={state:Object.keys(e.$state).map(t=>({editable:!0,key:t,value:e.$state[t]}))};return e._getters&&e._getters.length&&(o.getters=e._getters.map(t=>({editable:!1,key:t,value:e[t]}))),e._customProperties.size&&(o.customProperties=Array.from(e._customProperties).map(t=>({editable:!0,key:t,value:e[t]}))),o}(n))}}),r.on.editInspectorState((r,n)=>{if(r.app===e&&r.inspectorId===W){var o=r.nodeId===j?t:t._s.get(r.nodeId);if(!o)return C('store "'.concat(r.nodeId,'" not found'),"error");var path=r.path;N(o)?path.unshift("state"):1===path.length&&o._customProperties.has(path[0])&&!(path[0]in o.$state)||path.unshift("$state"),z=!1,r.set(o,path,r.state.value),z=!0}}),r.on.editComponentState(e=>{if(e.type.startsWith("🍍")){var r=e.type.replace(/^🍍\s*/,""),n=t._s.get(r);if(!n)return C('store "'.concat(r,'" not found'),"error");var path=e.path;if("state"!==path[0])return C('Invalid path for store "'.concat(r,'":\n').concat(path,"\nOnly state can be modified."));path[0]="$state",z=!1,e.set(n,path,e.state.value),z=!0}})})}var X,J=0;function Z(e,t,r){var n=t.reduce((t,r)=>(t[r]=(0,l.toRaw)(e)[r],t),{}),o=function(t){e[t]=function(){var o=J,c=r?new Proxy(e,{get(){return X=o,Reflect.get(...arguments)},set(){return X=o,Reflect.set(...arguments)}}):e;X=o;var l=n[t].apply(c,arguments);return X=void 0,l}};for(var c in n)o(c)}function ee(e){var t=e.app,r=e.store,n=e.options;if(!r.$id.startsWith("__hot:")){if(r._isOptionsAPI=!!n.state,!r._p._testing){Z(r,Object.keys(n.actions),r._isOptionsAPI);var o=r._hotUpdate;(0,l.toRaw)(r)._hotUpdate=function(e){o.apply(this,arguments),Z(r,Object.keys(e._hmrPayload.actions),!!r._isOptionsAPI)}}!function(e,t){Y.includes(G(t.$id))||Y.push(G(t.$id)),(0,d.setupDevtoolsPlugin)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Y,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},e=>{var r="function"==typeof e.now?e.now.bind(e):Date.now;t.$onAction(n=>{var o=n.after,c=n.onError,l=n.name,d=n.args,f=J++;e.addTimelineEvent({layerId:$,event:{time:r(),title:"🛫 "+l,subt
2itle:"start",data:{store:F(t.$id),action:F(l),args:d},groupId:f}}),o(n=>{X=void 0,e.addTimelineEvent({layerId:$,event:{time:r(),title:"🛬 "+l,subtitle:"end",data:{store:F(t.$id),action:F(l),args:d,result:n},groupId:f}})}),c(n=>{X=void 0,e.addTimelineEvent({layerId:$,event:{time:r(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:F(t.$id),action:F(l),args:d,error:n},groupId:f}})})},!0),t._customProperties.forEach(n=>{(0,l.watch)(()=>(0,l.unref)(t[n]),(t,o)=>{e.notifyComponentUpdate(),e.sendInspectorState(W),z&&e.addTimelineEvent({layerId:$,event:{time:r(),title:"Change",subtitle:n,data:{newValue:t,oldValue:o},groupId:X}})},{deep:!0})}),t.$subscribe((n,o)=>{var c=n.events,l=n.type;if(e.notifyComponentUpdate(),e.sendInspectorState(W),z){var d={time:r(),title:V(l),data:K({store:F(t.$id)},H(c)),groupId:X};l===h.patchFunction?d.subtitle="⤵️":l===h.patchObject?d.subtitle="🧩":c&&!Array.isArray(c)&&(d.subtitle=c.type),c&&(d.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),e.addTimelineEvent({layerId:$,event:d})}},{detached:!0,flush:"sync"});var n=t._hotUpdate;t._hotUpdate=(0,l.markRaw)(o=>{n(o),e.addTimelineEvent({layerId:$,event:{time:r(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:F(t.$id),info:F("HMR update")}}}),e.notifyComponentUpdate(),e.sendInspectorTree(W),e.sendInspectorState(W)});var o=t.$dispose;t.$dispose=()=>{o(),e.notifyComponentUpdate(),e.sendInspectorTree(W),e.sendInspectorState(W),e.getSettings().logStoreChanges&&C('Disposed "'.concat(t.$id,'" store 🗑'))},e.notifyComponentUpdate(),e.sendInspectorTree(W),e.sendInspectorState(W),e.getSettings().logStoreChanges&&C('"'.concat(t.$id,'" store installed 🆕'))})}(t,r)}}var te=e=>"function"==typeof e&&"string"==typeof e.$id;var re=()=>{};function ne(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:re;e.push(t);var o=()=>{var r=e.indexOf(t);r>-1&&(e.splice(r,1),n())};return!r&&(0,l.getCurrentScope)()&&(0,l.onScopeDispose)(o),o}function ie(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];e.slice().forEach(e=>{e(...r)})}var oe=e=>e(),ae=Symbol(),se=Symbol();function ce(e,t){for(var r in e instanceof Map&&t instanceof Map?t.forEach((t,r)=>e.set(r,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e),t)if(t.hasOwnProperty(r)){var n=t[r],o=e[r];y(o)&&y(n)&&e.hasOwnProperty(r)&&!(0,l.isRef)(n)&&!(0,l.isReactive)(n)?e[r]=ce(o,n):e[r]=n}return e}var ue=Symbol();function le(e){return!y(e)||!e.hasOwnProperty(ue)}var de=Object.assign;function pe(e){return!(!(0,l.isRef)(e)||!e.effect)}function fe(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0,c=arguments.length>5?arguments[5]:void 0,d=de({actions:{}},n);var m,y,_={deep:!0};var E,w=[],A=[],T=o.state.value[e];c||T||(l.isVue2?(0,l.set)(o.state.value,e,{}):o.state.value[e]={});var O,S=(0,l.ref)({});function I(t){var r;m=y=!1,"function"==typeof t?(t(o.state.value[e]),r={type:h.patchFunction,storeId:e,events:E}):(ce(o.state.value[e],t),r={type:h.patchObject,payload:t,storeId:e,events:E});var n=O=Symbol();(0,l.nextTick)().then(()=>{O===n&&(m=!0)}),y=!0,ie(w,r,o.state.value[e])}var C=c?function(){var e=n.state,t=e?e():{};this.$patch(e=>{de(e,t)})}:re;var N=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(ae in t)return t[se]=r,t;var n=function(){f(o);var r,c=Array.from(arguments),l=[],d=[];ie(A,{args:c,name:n[se],store:L,after:function(e){l.push(e)},onError:function(e){d.push(e)}});try{r=t.apply(this&&this.$id===e?this:L,c)}catch(e){throw ie(d,e),e}return r instanceof Promise?r.then(e=>(ie(l,e),e)).catch(e=>(ie(d,e),Promise.reject(e))):(ie(l,r),r)};return n[ae]=!0,n[se]=r,n},P=(0,l.markRaw)({actions:{},getters:{},state:[],hotState:S}),R={_p:o,$id:e,$onAction:ne.bind(null,A),$patch:I,$reset:C,$subscribe(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=ne(w,t,n.detached,()=>d()),d=r.run(()=>(0,l.watch)(()=>o.state.value[e],r=>{("sync"===n.flush?y:m)&&t({storeId:e,type:h.direct,events:E},r)},de({},_,n)));return c}
2,$dispose:function(){r.stop(),w=[],A=[],o._s.delete(e)}};l.isVue2&&(R._r=!1);var L=(0,l.reactive)("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&v?de({_hmrPayload:P,_customProperties:(0,l.markRaw)(new Set)},R):R);o._s.set(e,L);var D=(o._a&&o._a.runWithContext||oe)(()=>o._e.run(()=>(r=(0,l.effectScope)()).run(()=>t({action:N}))));for(var x in D){var k=D[x];if((0,l.isRef)(k)&&!pe(k)||(0,l.isReactive)(k))c||(T&&le(k)&&((0,l.isRef)(k)?k.value=T[x]:ce(k,T[x])),l.isVue2?(0,l.set)(o.state.value[e],x,k):o.state.value[e][x]=k);else if("function"==typeof k){var M=N(k,x);l.isVue2?(0,l.set)(D,x,M):D[x]=M,d.actions[x]=k}else{}}if(l.isVue2?Object.keys(D).forEach(e=>{(0,l.set)(L,e,D[e])}):(de(L,D),de((0,l.toRaw)(L),D)),Object.defineProperty(L,"$state",{get:()=>o.state.value[e],set:e=>{I(t=>{de(t,e)})}}),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&v){var F={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(p=>{Object.defineProperty(L,p,de({value:L[p]},F))})}return l.isVue2&&(L._r=!0),o._p.forEach(e=>{if("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&v){var t=r.run(()=>e({store:L,app:o._a,pinia:o,options:d}));Object.keys(t||{}).forEach(e=>L._customProperties.add(e)),de(L,t)}else de(L,r.run(()=>e({store:L,app:o._a,pinia:o,options:d})))}),T&&c&&n.hydrate&&n.hydrate(L.$state,T),m=!0,y=!0,L}var he="Store";function me(e,t){return Array.isArray(t)?t.reduce((t,r)=>(t[r]=function(){return e(this.$pinia)[r]},t),{}):Object.keys(t).reduce((r,n)=>(r[n]=function(){var r=e(this.$pinia),o=t[n];return"function"==typeof o?o.call(this,r):r[o]},r),{})}t.mapGetters=me;t.PiniaVuePlugin=function(e){e.mixin({beforeCreate(){var e=this.$options;if(e.pinia){var t=e.pinia;if(!this._provided){var r={};Object.defineProperty(this,"_provided",{get:()=>r,set:e=>Object.assign(r,e)})}this._provided[m]=t,this.$pinia||(this.$pinia=t),t._a=this,v&&f(t),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&v&&Q(t._a,t)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed(){delete this._pStores}})}}).call(this,r(30))},,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(204),o=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=y;var c=Object.create(r(159));c.inherits=r(82);var l=r(297),d=r(203);c.inherits(y,l);for(var f=o(d.prototype),h=0;h<f.length;h++){var m=f[h];y.prototype[m]||(y.prototype[m]=d.prototype[m])}function y(e){if(!(this instanceof y))return new y(e);l.call(this,e),d.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||n.nextTick(_,this)}function _(e){e.end()}Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),y.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},,,function(e,t,r){"use strict";r.r(t),function(e){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n="function"==typeof AbortController?AbortController:class{constructor(){this.signal=new l}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},o="function"==typeof AbortSignal,c="function"==typeof n.AbortSignal,l=o?AbortSignal:c?n.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){"abort"===e.type&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(t=>t(e),this))}onabort(){}addEventListener(e,t){"abort"===e&&this._listeners.push(t)}removeEventListener(e,t){"abort"===e&&(this._listeners=this._listeners.filter(e=>e!==t))}},d=new Set,f=(e,t)=>{const code=`LRU_CACHE_OPTION_${e}`;y(code)&&v(code,`${e} option`,`options.${t}`,T)},h=(e,t)=>{const code=`LRU_CACHE_METHOD_${e}`;if(y(code)){const{prototype:r}=T,{get:n}=Object.getOwnPropertyDescriptor(r,e);v(code,`${e} method`,`cache.${t}()`,n)}},m=(...a)=>{"object"==typeof e&&e&&"function"==typeof e.emitWarning?e.emitWarning(...a):console.error(...a)},y=code=>!d.has(code),v=(code,e,t,r)=>{d.add(code);m(`The ${e} is deprecated. Please use ${t} instead.`,"DeprecationWarning",code,r)},_=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),E=e=>_(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?w:null:null;class w extends Array{constructor(e){super(e),this.fill(0)}}class A{constructor(e){if(0===e)return[];const t=E(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class T{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:o,updateAgeOnGet:c,updateAgeOnHas:l,allowStale:h,dispose:v,disposeAfter:w,noDisposeOnSet:O,noUpdateTTL:S,maxSize:I=0,maxEntrySize:C=0,sizeCalculation:N,fetchMethod:P,fetchContext:R,noDeleteOnFetchRejection:L,noDeleteOnStaleGet:D,allowStaleOnFetchRejection:x,allowStaleOnFetchAbort:k,ignoreFetchAbort:M}=e,{length:F,maxAge:U,stale:j}=e instanceof T?{}:e;if(0!==t&&!_(t))throw new TypeError("max option must be a nonnegative integer");const B=t?E(t):Array;if(!B)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=I,this.maxEntrySize=C||this.maxSize,this.sizeCalculation=N||F,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=P||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=R,!this.fetchMethod&&void 0!==R)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(t).fill(null),this.valList=new Array(t).fill(null),this.next=new B(t),this.prev=new B(t),this.head=0,this.tail=0,this.free=new A(t),this.initialFill=1,this.size=0,"function"==typeof v&&(this.dispose=v),"function"==typeof w?(this.disposeAfter=w,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!O,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!L,this.allowStaleOnFetchRejection=!!x,this.allowStaleOnFetchAbort=!!k,this.ignoreFetchAbort=!!M,0!==this.maxEntrySize){if(0!==this.maxSize&&!_(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!_(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!h||!!j,this.noDeleteOnStaleGet=!!D,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!l,this.ttlResolution=_(n)||0===n?n:1,this.ttlAutopurge=!!o,this.ttl=r||U||0,this.ttl){if(!_(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const code="LRU_CACHE_UNBOUNDED";if(y(code)){d.add(code);m("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",code,T)}}j&&f("stale","allowStale"),U&&f("maxAge","ttl"),F&&f("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new w(this.max),this.starts=new w(this.max),this.setItemTTL=(e,t,n=r.now())=>{if(this.starts[e]=0!==t?n:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout(()=>{this.isStale(e)&&this.delete(this.keyList[e])},t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0},this.statusTTL=(r,n)=>{r&&(r.ttl=this.ttls[n],r.start=this.starts[n],r.now=e||t(),r.remainingTTL=r.now+r.ttl-r.start)};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const r=setTimeout(()=>e=0,this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}statusTTL(e,t){}setItemTTL(e,t,r){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new w(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,r,n)=>
2{if(this.isBackgroundFetch(t))return 0;if(!_(r)){if(!n)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!_(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r)=>{if(this.sizes[e]=t,this.maxSize){const t=this.maxSize-this.sizes[e];for(;this.calculatedSize>t;)this.evict(!0)}this.calculatedSize+=this.sizes[e],r&&(r.entrySize=t,r.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let i=this.tail;this.isValidIndex(i)&&(!e&&this.isStale(i)||(yield i),i!==this.head);)i=this.prev[i]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let i=this.head;this.isValidIndex(i)&&(!e&&this.isStale(i)||(yield i),i!==this.tail);)i=this.next[i]}isValidIndex(e){return void 0!==e&&this.keyMap.get(this.keyList[e])===e}*entries(){for(const i of this.indexes())void 0===this.valList[i]||void 0===this.keyList[i]||this.isBackgroundFetch(this.valList[i])||(yield[this.keyList[i],this.valList[i]])}*rentries(){for(const i of this.rindexes())void 0===this.valList[i]||void 0===this.keyList[i]||this.isBackgroundFetch(this.valList[i])||(yield[this.keyList[i],this.valList[i]])}*keys(){for(const i of this.indexes())void 0===this.keyList[i]||this.isBackgroundFetch(this.valList[i])||(yield this.keyList[i])}*rkeys(){for(const i of this.rindexes())void 0===this.keyList[i]||this.isBackgroundFetch(this.valList[i])||(yield this.keyList[i])}*values(){for(const i of this.indexes())void 0===this.valList[i]||this.isBackgroundFetch(this.valList[i])||(yield this.valList[i])}*rvalues(){for(const i of this.rindexes())void 0===this.valList[i]||this.isBackgroundFetch(this.valList[i])||(yield this.valList[i])}[Symbol.iterator](){return this.entries()}find(e,t){for(const i of this.indexes()){const r=this.valList[i],n=this.isBackgroundFetch(r)?r.__staleWhileFetching:r;if(void 0!==n&&e(n,this.keyList[i],this))return this.get(this.keyList[i],t)}}forEach(e,t=this){for(const i of this.indexes()){const r=this.valList[i],n=this.isBackgroundFetch(r)?r.__staleWhileFetching:r;void 0!==n&&e.call(t,n,this.keyList[i],this)}}rforEach(e,t=this){for(const i of this.rindexes()){const r=this.valList[i],n=this.isBackgroundFetch(r)?r.__staleWhileFetching:r;void 0!==n&&e.call(t,n,this.keyList[i],this)}}get prune(){return h("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const i of this.rindexes({allowStale:!0}))this.isStale(i)&&(this.delete(this.keyList[i]),e=!0);return e}dump(){const e=[];for(const i of this.indexes({allowStale:!0})){const t=this.keyList[i],n=this.valList[i],o=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(void 0===o)continue;const c={value:o};if(this.ttls){c.ttl=this.ttls[i];const e=r.now()-this.starts[i];c.start=Math.floor(Date.now()-e)}this.sizes&&(c.size=this.sizes[i]),e.unshift([t,c])}return e}load(e){this.clear();for(const[t,n]of e){if(n.start){const e=Date.now()-n.start;n.start=r.now()-e}this.set(t,n.value,n)}}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,start:n,noDisposeOnSet:o=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,status:f}={}){if(c=this.requireSize(e,t,c,l),this.maxEntrySize&&c>this.maxEntrySize)return f&&(f.set="miss",f.maxEntrySizeExceeded=!0),this.delete(e),this;let h=0===this.size?void 0:this.keyMap.get(e);if(void 0===h)h=this.newIndex(),this.keyList[h]=e,this.valList[h]=t,this.keyMap.set(e,h),this.next[this.tail]=h,this.prev[h]=this.tail,this.tail=h,this.size++,this.addItemSize(h,c,f),f&&(f.set="add"),d=!1;else{this.moveToTail(h);const r=this.valList[h];if(t!==r){if(this.isBackgroundFetch(r)?r.__abortController.abort(new Error("replaced")):o||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(h),this.valList[h]=t,this.addItemSize(h,c,f),f){f.set="replace";
2const e=r&&this.isBackgroundFetch(r)?r.__staleWhileFetching:r;void 0!==e&&(f.oldValue=e)}}else f&&(f.set="update")}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),d||this.setItemTTL(h,r,n),this.statusTTL(f,h),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const head=this.head,t=this.keyList[head],r=this.valList[head];return this.isBackgroundFetch(r)?r.__abortController.abort(new Error("evicted")):(this.dispose(r,t,"evict"),this.disposeAfter&&this.disposed.push([r,t,"evict"])),this.removeItemSize(head),e&&(this.keyList[head]=null,this.valList[head]=null,this.free.push(head)),this.head=this.next[head],this.keyMap.delete(t),this.size--,head}has(e,{updateAgeOnHas:t=this.updateAgeOnHas,status:r}={}){const n=this.keyMap.get(e);if(void 0!==n){if(!this.isStale(n))return t&&this.updateItemAge(n),r&&(r.has="hit"),this.statusTTL(r,n),!0;r&&(r.has="stale",this.statusTTL(r,n))}else r&&(r.has="miss");return!1}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r))){const e=this.valList[r];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,r,o){const c=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(c))return c;const l=new n;r.signal&&r.signal.addEventListener("abort",()=>l.abort(r.signal.reason));const d={signal:l.signal,options:r,context:o},f=(n,o=!1)=>{const{aborted:c}=l.signal,f=r.ignoreFetchAbort&&void 0!==n;return r.status&&(c&&!o?(r.status.fetchAborted=!0,r.status.fetchError=l.signal.reason,f&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),!c||f||o?(this.valList[t]===p&&(void 0===n?p.__staleWhileFetching?this.valList[t]=p.__staleWhileFetching:this.delete(e):(r.status&&(r.status.fetchUpdated=!0),this.set(e,n,d.options))),n):h(l.signal.reason)},h=n=>{const{aborted:o}=l.signal,c=o&&r.allowStaleOnFetchAbort,d=c||r.allowStaleOnFetchRejection,f=d||r.noDeleteOnFetchRejection;if(this.valList[t]===p){!f||void 0===p.__staleWhileFetching?this.delete(e):c||(this.valList[t]=p.__staleWhileFetching)}if(d)return r.status&&void 0!==p.__staleWhileFetching&&(r.status.returnedStale=!0),p.__staleWhileFetching;if(p.__returned===p)throw n};r.status&&(r.status.fetchDispatched=!0);const p=new Promise((t,n)=>{this.fetchMethod(e,c,d).then(e=>t(e),n),l.signal.addEventListener("abort",()=>{r.ignoreFetchAbort&&!r.allowStaleOnFetchAbort||(t(),r.allowStaleOnFetchAbort&&(t=e=>f(e,!0)))})}).then(f,e=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=e),h(e)));return p.__abortController=l,p.__staleWhileFetching=c,p.__returned=null,void 0===t?(this.set(e,p,{...d.options,status:void 0}),t=this.keyMap.get(e)):this.valList[t]=p,p}isBackgroundFetch(p){return p&&"object"==typeof p&&"function"==typeof p.then&&Object.prototype.hasOwnProperty.call(p,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(p,"__returned")&&(p.__returned===p||null===p.__returned)}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:l=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:h=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,fetchContext:_=this.fetchContext,forceRefresh:E=!1,status:w,signal:A}={}){if(!this.fetchMethod)return w&&(w.fetch="get"),this.get(e,{allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,status:w});const T={allowStale:t,updateAgeOnGet:r,noDeleteOnStaleGet:n,ttl:o,noDisposeOnSet:c,size:l,sizeCalculation:d,noUpdateTTL:f,noDeleteOnFetchRejection:h,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:v,ignoreFetchAbort:y,status:w,signal:A};let O=this.keyMap.get(e);if(void 0===O){w&&(w.fetch="miss");const p=this.backgroundFetch(e,O,T,_);return p.__returned=p}{const n=this.valList[O];
2if(this.isBackgroundFetch(n)){const e=t&&void 0!==n.__staleWhileFetching;return w&&(w.fetch="inflight",e&&(w.returnedStale=!0)),e?n.__staleWhileFetching:n.__returned=n}const o=this.isStale(O);if(!E&&!o)return w&&(w.fetch="hit"),this.moveToTail(O),r&&this.updateItemAge(O),this.statusTTL(w,O),n;const p=this.backgroundFetch(e,O,T,_),c=void 0!==p.__staleWhileFetching,l=c&&t;return w&&(w.fetch=c&&o?"stale":"refresh",l&&o&&(w.returnedStale=!0)),l?p.__staleWhileFetching:p.__returned=p}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:n=this.noDeleteOnStaleGet,status:o}={}){const c=this.keyMap.get(e);if(void 0!==c){const l=this.valList[c],d=this.isBackgroundFetch(l);return this.statusTTL(o,c),this.isStale(c)?(o&&(o.get="stale"),d?(o&&(o.returnedStale=t&&void 0!==l.__staleWhileFetching),t?l.__staleWhileFetching:void 0):(n||this.delete(e),o&&(o.returnedStale=t),t?l:void 0)):(o&&(o.get="hit"),d?l.__staleWhileFetching:(this.moveToTail(c),r&&this.updateItemAge(c),l))}o&&(o.get="miss")}connect(p,e){this.prev[e]=p,this.next[p]=e}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return h("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort(new Error("deleted")):(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort(new Error("deleted"));else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return h("reset","clear"),this.clear}get length(){return((e,t)=>{const code=`LRU_CACHE_PROPERTY_${e}`;if(y(code)){const{prototype:r}=T,{get:n}=Object.getOwnPropertyDescriptor(r,e);v(code,`${e} property`,`cache.${t}`,n)}})("length","size"),this.size}static get AbortController(){return n}static get AbortSignal(){return l}}t.default=T}.call(this,r(32))},,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";e.exports=TypeError},function(e,t,r){"use strict";var n=r(439),o=r(292),c=o([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&c(e,".prototype.")>-1?o([r]):r}},function(e,t,r){"use strict";var n=r(710);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._browserSupportsWebAuthnInternals=void 0,t.browserSupportsWebAuthn=function(){return n.stubThis(void 0!==(null===globalThis||void 0===globalThis?void 0:globalThis.PublicKeyCredential)&&"function"==typeof globalThis.PublicKeyCredential)},r(36);var n=t._browserSupportsWebAuthnInternals={stubThis:e=>e}},function(e,t,r){"use strict";function n(){var e="__SPLITSOFTWARE__";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function o(e){return null!==e&&"object"==typeof e&&"function"==typeof e.setItem&&"function"==typeof e.getItem&&"function"==typeof e.removeItem}function c(e){if("number"==typeof e.length)try{return e.key(0),!0}catch(e){return!1}return!1}r.d(t,"a",function(){return n}),r.d(t,"b",function(){return o}),r.d(t,"c",function(){return c})},,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(713);e.exports=Function.prototype.bind||n},function(e,t,r){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e}
2,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(200).Buffer.isBuffer},,,,function(e,t,r){"use strict";(function(e,n){var o=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.MIMES=t.H3Response=t.H3Headers=t.H3Event=t.H3Error=void 0,t.appendCorsHeaders=je,t.appendCorsPreflightHeaders=Ue,t.appendHeaders=t.appendHeader=void 0,t.appendResponseHeader=Se,t.appendResponseHeaders=Te,t.assertMethod=U,t.callNodeListener=Lt,t.clearResponseHeaders=function(e,t){if(t&&t.length>0)for(var r of t)Ie(e,r);else for(var n of Object.entries(be(e))){Ie(e,(0,c.default)(n,1)[0])}},t.clearSession=ut,t.createApp=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],r=Ct(t,e),n=function(e){return function(){var t=(0,d.default)(function*(path){var t;for(var r of e)if(("/"!==r.route||r.handler.__resolve__)&&path.startsWith(r.route)&&(t=path.slice(r.route.length)||"/",!r.match||r.match(t,void 0))){var n={route:r.route,handler:r.handler};if(n.handler.__resolve__){var o=yield n.handler.__resolve__(t);if(!o)continue;n=T(T(T({},n),o),{},{route:(0,f.joinURL)(n.route||"/",o.route||"/")})}return n}});return function(e){return t.apply(this,arguments)}}()}(t);r.__resolve__=n;var o=(l=()=>{return t=n,T(T({},e.websocket),{},{resolve:e=>(0,d.default)(function*(){var r,n,o=(null===(r=e.request)||void 0===r?void 0:r.url)||e.url||"/",c=("string"==typeof o?(0,f.parseURL)(o):o).pathname,l=yield t(c);return(null==l||null===(n=l.handler)||void 0===n?void 0:n.__websocket__)||{}})()});var t},()=>(h||(h=l()),h)),c={use:(e,t,r)=>It(c,e,t,r),resolve:n,handler:r,stack:t,options:e,get websocket(){return o()}};var l,h;return c},t.createAppEventHandler=Ct,t.createError=C,t.createEvent=gt,t.createEventStream=function(e,t){return new ht(e,t)},t.createRouter=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,m.createRouter)({}),n={},o={},c=(path,e,t)=>{var l=n[path];if(l||(n[path]=l={path:path,handlers:{}},r.insert(path,l)),Array.isArray(t))for(var d of t)c(path,e,d);else l.handlers[t]=Tt(e);return o};o.use=o.add=(path,e,t)=>c(path,e,t||"all");var l=function(e){o[e]=(path,t)=>o.add(path,t,e)};for(var h of Rt)l(h);var y=function(){var path=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"get",n=path.indexOf("?");-1!==n&&(path=path.slice(0,Math.max(0,n)));var o=r.lookup(path);if(!o||!o.handlers)return{error:C({statusCode:404,name:"Not Found",statusMessage:"Cannot find any route matching ".concat(path||"/",".")})};var c=o.handlers[t]||o.handlers.all;if(!c){e||(e=(0,m.toRouteMatcher)(r));var l=e.matchAll(path).reverse();for(var d of l){if(d.handlers[t]){c=d.handlers[t],o.handlers[t]=o.handlers[t]||c;break}if(d.handlers.all){c=d.handlers.all,o.handlers.all=o.handlers.all||c;break}}}return c?{matched:o,handler:c}:{error:C({statusCode:405,name:"Method Not Allowed",statusMessage:"Method ".concat(t," is not allowed on this route.")})}},v=t.preemptive||t.preemtive;return o.handler=wt(e=>{var t=y(e.path,e.method.toLowerCase());if(!("error"in t)){e.context.matchedRoute=t.matched;var r=t.matched.params||{};return e.context.params=r,Promise.resolve(t.handler(e)).then(e=>void 0===e&&v?null:e)}if(v)throw t.error}),o.handler.__resolve__=function(){var e=(0,d.default)(function*(path){path=(0,f.withLeadingSlash)(path);var e=y(path);if(!("error"in e)){var t={route:e.matched.path,handler:e.handler};if(e.handler.__resolve__){var r=yield e.handler.__resolve__(path);if(!r)return;t=T(T({},t),r)}return t}});return function(t){return e.apply(this,arguments)}}(),o},t.defaultContentType=_e,t.defineEventHandler=_t,t.defineLazyEventHandler=Ot,t.defineNodeMiddleware=t.defineNodeListener=void 0,t.defineRequestMiddleware=function(e){return e},t.defineResponseMiddleware=function(e){return e},t.defineWebSocket=function(e){return e},t.defineWebSocketHandler=function(e){return _t({handler(){throw C({statusCode:426,statusMessage:"Upgrade Required"})},websocket:e})},t.deleteCookie=function(e,t,r){pe(e,t,"",T(T({},r),{},{maxAge:0}
2))},t.dynamicEventHandler=function(e){var t=e,r=wt(e=>{if(t)return t(e)});return r.set=e=>{t=e},r},t.eventHandler=void 0,t.fetchWithEvent=function(e,t,r,n){return We(null==n?void 0:n.fetch)(t,T(T({},r),{},{context:(null==r?void 0:r.context)||e.context,headers:T(T({},$e(e,{host:"string"==typeof t&&t.startsWith("/")})),null==r?void 0:r.headers)}))},t.fromNodeMiddleware=function(e){if(At(e))return e;if("function"!=typeof e)throw new TypeError("Invalid handler. It should be a function:",e);return wt(t=>Lt(e,t.node.req,t.node.res))},t.fromPlainHandler=function(e){return wt(function(){var t=(0,d.default)(function*(t){var r=yield e({method:t.method,path:t.path,headers:Object.fromEntries(t.headers.entries()),body:ie(t),context:t.context});for(var n of(ge(t,r.status,r.statusText),r.headers)){var o=(0,c.default)(n,2);Ae(t,o[0],o[1])}return r.body});return function(e){return t.apply(this,arguments)}}())},t.fromWebHandler=function(e){return wt(t=>e(W(t),t.context))},t.getCookie=function(e,t){return de(e)[t]},t.getHeaders=t.getHeader=void 0,t.getMethod=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET";return(e.node.req.method||t).toUpperCase()},t.getProxyRequestHeaders=$e,t.getQuery=k,t.getRequestFingerprint=function(e){return Be.apply(this,arguments)},t.getRequestHeader=B,t.getRequestHeaders=j,t.getRequestHost=V,t.getRequestIP=K,t.getRequestPath=function(e){return(e.node.req.url||"/").replace(Y,"/")},t.getRequestProtocol=z,t.getRequestURL=$,t.getRequestWebStream=ie,t.getResponseHeader=Ee,t.getResponseHeaders=be,t.getResponseStatus=function(e){return e.node.res.statusCode},t.getResponseStatusText=function(e){return e.node.res.statusMessage},t.getRouterParam=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return M(e,r)[t]},t.getRouterParams=M,t.getSession=Ze,t.getValidatedQuery=function(e,t){return L(k(e),t)},t.getValidatedRouterParams=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return L(M(e,r),t)},t.handleCacheHeaders=function(e,t){var r=["public",...t.cacheControls||[]],n=!1;void 0!==t.maxAge&&r.push("max-age=".concat(+t.maxAge),"s-maxage=".concat(+t.maxAge));if(t.modifiedTime){var o=new Date(t.modifiedTime),c=e.node.req.headers["if-modified-since"];e.node.res.setHeader("last-modified",o.toUTCString()),c&&new Date(c)>=o&&(n=!0)}if(t.etag){e.node.res.setHeader("etag",t.etag),e.node.req.headers["if-none-match"]===t.etag&&(n=!0)}if(e.node.res.setHeader("cache-control",r.join(", ")),n)return e.node.res.statusCode=304,e.handled||e.node.res.end(),!0;return!1},t.handleCors=function(e,t){var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={origin:"*",methods:"*",allowHeaders:"*",exposeHeaders:"*",credentials:!1,maxAge:!1,preflight:{statusCode:204}};return(0,y.defu)(e,t)}(t);if(De(e))return Ue(e,t),ve(e,r.preflight.statusCode),!0;return je(e,t),!1},t.isCorsOriginAllowed=xe,t.isError=P,t.isEvent=vt,t.isEventHandler=At,t.isMethod=F,t.isPreflightRequest=De,t.isStream=Ce,t.isWebResponse=Ne,t.lazyEventHandler=void 0,t.parseCookies=de,t.promisifyNodeListener=function(e){return function(t,r){return Lt(e,t,r)}},t.proxyRequest=function(e,t){return ze.apply(this,arguments)},t.readBody=Z,t.readFormData=function(e){return ne.apply(this,arguments)},t.readMultipartFormData=function(e){return re.apply(this,arguments)},t.readRawBody=J,t.readValidatedBody=function(e,t){return te.apply(this,arguments)},t.removeResponseHeader=Ie,t.sanitizeStatusCode=ue,t.sanitizeStatusMessage=ce,t.sealSession=ot,t.send=ye,t.sendError=N,t.sendIterable=function(e,t,r){var n,o=null!==(n=null==r?void 0:r.serializer)&&void 0!==n?n:he,c=function(e){"function"==typeof e&&(e=e());if(Symbol.iterator in e)return e[Symbol.iterator]();if(Symbol.asyncIterator in e)return e[Symbol.asyncIterator]();return e}(t);return Pe(e,new ReadableStream({pull:e=>(0,d.default)(function*(){var t=yield c.next(),r=t.value,n=t.done;if(void 0!==r){var l=o(r);void 0!==l&&e.enqueue(l)}n&&e.close()})(),cancel(){var e;null===(e=c.return)||void 0===e||e.call(c)}}))},t.sendNoContent=ve,t.sendProxy=Ye,t.sendRedirect=function(e,t){var code=arguments.length>2&&void 0!==arguments[2]?arguments[2]:302;e.node.res.statusCode=ue(code,e.node.res.statusCode),e.node.res.setHeader("location",t);var r=t.replace(/"/g,"%22"),html='<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url='.concat(r,'"></head></html>');return ye(e,html,ae.html)},t.sendStream=Pe,t.sendWebResponse=Le,t.serveStatic=function(e,t){return mt.apply(this,arguments)},t.setCookie=pe,t.setHeaders=t.setHeader=void 0,t.setResponseHeader=Ae,t.setResponseHeaders=we,t.setResponseStatus=ge,t.splitCookiesString=fe,t.toEventHandler=Tt,t.toNodeListener=function(e){var t=function(){var t=(0,d.default)(function*(t,r){var n=gt(t,r);try{yield e.handler(n)}catch(t){var o=C(t);if(P(t)||(o.unhandled=!0),ge(n,o.statusCode,o.statusMessage),e.options.onError&&(yield e.options.onError(o,n)),n.handled)return;(o.unhandled||o.fatal)&&console.error("[h3]",o.fatal?"[fatal]":"[unhandled]",o),e.options.onBeforeResponse&&!n._onBeforeResponseCalled&&(yield e.options.onBeforeResponse(n,{body:o})),yield N(n,o,!!e.options.debug),e.options.onAfterResponse&&!n._onAfterResponseCalled&&(yield e.options.onAfterResponse(n,{body:o}))}});return function(e,r){return t.apply(this,arguments)}}();return t},t.toPlainHandler=function(e){return t=>Dt(e,t)},t.toWebHandler=function(e){return(t,r)=>function(e,t,r){return Ft.apply(this,arguments)}(e,t,r)},t.toWebRequest=W,t.unsealSession=st,t.updateSession=nt,t.use=It,t.useBase=function(base,e){if(!(base=(0,f.withoutTrailingSlash)(base))||"/"===base)return e;return wt(function(){var t=(0,d.default)(function*(t){t.node.req.originalUrl=t.node.req.originalUrl||t.node.req.url||"/";var r=t._path||t.node.req.url||"/";t._path=(0,f.withoutBase)(t.path||"/",base),t.node.req.url=t._path;try{return yield e(t)}finally{t._path=t.node.req.url=r}});return function(e){return t.apply(this,arguments)}}())},t.useSession=function(e,t){return Je.apply(this,arguments)},t.writeEarlyHints=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Re;if(!e.node.res.socket)return void r();("string"==typeof t||Array.isArray(t))&&(t={link:t});t.link&&(t.link=Array.isArray(t.link)?t.link:t.link.split(","));var n=Object.entries(t).map(e=>[e[0].toLowerCase(),e[1]]);if(0===n.length)return void r();var o="HTTP/1.1 103 Early Hints";t.link&&(o+="\r\nLink: ".concat(t.link.join(", ")));for(var l of n){var d=(0,c.default)(l,2),header=d[0],f=d[1];"link"!==header&&(o+="\r\n".concat(header,": ").concat(f))}e.node.res.socket?e.node.res.socket.write("".concat(o,"\r\n\r\n"),"utf8",r):r()};var c=o(r(25)),l=o(r(8)),d=o(r(10));r(70),r(208),r(387),r(15),r(147),r(388),r(93),r(94),r(145),r(170),r(66),r(7),r(18),r(17),r(34),r(263),r(14),r(84),r(38),r(35),r(101),r(95),r(96),r(97),r(98),r(36),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(833),r(6),r(429),r(168),r(169),r(72);var f=r(205),h=r(546),m=r(837),y=r(312),v=o(r(548)),_=o(r(838)),E=r(839),w=r(840);function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?A(Object(r),!0).forEach(function(t){(0,l.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function O(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return O=function(e){this.s=e,this.n=e.next},O.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new O(e)}function S(e,t){try{return t in e}catch(e){return!1}}class I extends Error{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,t),this.statusCode=500,this.fatal=!1,this.unhandled=!1,t.cause&&!this.cause&&(this.cause=t.cause)}toJSON(){var e={message:this.message,statusCode:ue(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=ce(this.statusMessage)),void 0!==this.data&&(e.data=this.data),e}}function C(input){var e,t;if("string"==typeof input)return new I(input);if(P(input))return input;var r=new I(null!==(e=null!==(t=input.message)&&void 0!==t?t:input.statusMessage)&&void 0!==e?e:"",{cause:input.cause||input});if(S(input,"stack"))try{Object.defineProperty(r,"stack",{get:()=>input.stack})}catch(e){try{r.stack=input.stack}catch(e){}}if(input.data&&(r.data=input.data),input.statusCode?r.statusCode=ue(input.statusCode,r.statusCode):input.status&&(r.statusCode=ue(input.status,r.statusCode)),input.statusMessage?r.statusMessage=input.statusMessage:input.statusText&&(r.statusMessage=input.statusText),r.statusMessage){var n=r.statusMessage;ce(r.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return void 0!==input.fatal&&(r.fatal=input.fatal),void 0!==input.unhandled&&(r.unhandled=input.unhandled),r}function N(e,t,r){if(!e.handled){var n=P(t)?t:C(t),o={statusCode:n.statusCode,statusMessage:n.statusMessage,stack:[],data:n.data};if(r&&(o.stack=(n.stack||"").split("\n").map(e=>e.trim())),!e.handled)ge(e,Number.parseInt(n.statusCode),n.statusMessage),e.node.res.setHeader("content-type",ae.json),e.node.res.end(JSON.stringify(o,void 0,2))}}function P(input){var e;return!0===(null==input||null===(e=input.constructor)||void 0===e?void 0:e.__h3_error__)}function R(data,t){var r,n,o={},c=(null===(r=t.find(e=>"content-disposition"===e[0]))||void 0===r?void 0:r[1])||"";for(var i of c.split(";")){var s=i.split("=");if(2===s.length){var l=(s[0]||"").trim();if("name"===l||"filename"===l){var d=(s[1]||"").trim().replace(/"/g,"");o[l]=e.from(d,"latin1").toString("utf8")}}}var f=(null===(n=t.find(e=>"content-type"===e[0]))||void 0===n?void 0:n[1])||"";return f&&(o.type=f),o.data=e.from(data),o}function L(e,t){return D.apply(this,arguments)}function D(){return(D=(0,d.default)(function*(data,e){try{var t=yield e(data);if(!1===t)throw x();return!0===t?data:null!=t?t:data}catch(e){throw x(e)}})).apply(this,arguments)}function x(e){throw C({status:400,statusMessage:"Validation Error",message:(null==e?void 0:e.message)||"Validation Error",data:e})}function k(e){return(0,f.getQuery)(e.path||"")}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.context.params||{};if(t.decode)for(var n in r=T({},r))r[n]=(0,f.decode)(r[n]);return r}function F(e,t,r){if(r&&"HEAD"===e.method)return!0;if("string"==typeof t){if(e.method===t)return!0}else if(t.includes(e.method))return!0;return!1}function U(e,t,r){if(!F(e,t,r))throw C({statusCode:405,statusMessage:"HTTP method is not allowed."})}function j(e){var t={};for(var r in e.node.req.headers){var n=e.node.req.headers[r];t[r]=Array.isArray(n)?n.filter(Boolean).join(", "):n}return t}t.H3Error=I,I.__h3_error__=!0;t.getHeaders=j;function B(e,t){return j(e)[t.toLowerCase()]}var H=t.getHeader=B;function V(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2).xForwardedHost){var t,r=null===(t=(e.node.req.headers["x-forwarded-host"]||"").split(",").shift())||void 0===t?void 0:t.trim();if(r)return r}return e.node.req.headers.host||"localhost"}function z(e){var t;return!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).xForwardedProto&&"https"===e.node.req.headers["x-forwarded-proto"]||null!==(t=e.node.req.connection)&&void 0!==t&&t.encrypted?"https":"http"}var Y=/[/\\]{2,}/g;function $(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=V(e,t),n=z(e,t),path=(e.node.req.originalUrl||e.path).replace(/^[/\\]+/g,"/");return new URL(path,"".concat(n,"://").concat(r))}function W(e){var t;return(null===(t=e.web)||void 0===t?void 0:t.request)||new Request($(e),{duplex:"half",method:e.method,headers:e.headers,body:ie(e)})}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.context.clientAddress)return e.context.clientAddress;if(t.xForwardedFor){var r,n,o=null===(r=B(e,"x-forwarded-for"))||void 0===r||null===(n=r.split(",").shift())||void 0===n?void 0:n.trim();if(o)return o}return e.node.req.socket.remoteAddress?e.node.req.socket.remoteAddress:void 0}var G=Symbol.for("h3RawBody"),Q=Symbol.for("h3ParsedBody"),X=["PATCH","POST","PUT","DELETE"];function J(t){var r,n,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";U(t,X);var l=t._requestBody||(null===(r=t.web)||void 0===r||null===(n=r.request)||void 0===n?void 0:n.body)||t.node.req[G]||t.node.req.rawBody||t.node.req.body;if(l){var d=Promise.resolve(l).then(t=>e.isBuffer(t)?t:"function"==typeof t.pipeTo?new Promise((r,n)=>{var o=[];t.pipeTo(new WritableStream({write(e){o.push(e)},close(){r(e.concat(o))},abort(e){n(e)}})).catch(n)}):"function"==typeof t.pipe?new Promise((r,n)=>{var o=[];t.on("data",e=>{o.push(e)}).on("end",()=>{r(e.concat(o))}).on("error",n)}):t.constructor===Object?e.from(JSON.stringify(t)):t instanceof URLSearchParams?e.from(t.toString()):t instanceof FormData?new Response(t).bytes().then(t=>e.from(t)):e.from(t));return c?d.then(e=>e.toString(c)):d}if(!Number.parseInt(t.node.req.headers["content-length"]||"")&&!/\bchunked\b/i.test(String(null!==(o=t.node.req.headers["transfer-encoding"])&&void 0!==o?o:"")))return Promise.resolve(void 0);var f=t.node.req[G]=new Promise((r,n)=>{var o=[];t.node.req.on("error",e=>{n(e)}).on("data",e=>{o.push(e)}).on("end",()=>{r(e.concat(o))})});return c?f.then(e=>e.toString(c)):f}function Z(e){return ee.apply(this,arguments)}function ee(){return ee=(0,d.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.node.req;if(S(r,Q))return r[Q];var n,o,l=r.headers["content-type"]||"",body=yield J(e);if("application/json"===l)n=oe(body,null===(o=t.strict)||void 0===o||o);else if(l.startsWith("application/x-www-form-urlencoded"))n=function(body){var form=new URLSearchParams(body),e=Object.create(null);for(var t of form.entries()){var r=(0,c.default)(t,2),n=r[0],o=r[1];S(e,n)?(Array.isArray(e[n])||(e[n]=[e[n]]),e[n].push(o)):e[n]=o}return e}(body);else if(l.startsWith("text/"))n=body;else{var d;n=oe(body,null!==(d=t.strict)&&void 0!==d&&d)}return r[Q]=n,n}),ee.apply(this,arguments)}function te(){return(te=(0,d.default)(function*(e,t){return L(yield Z(e,{strict:!0}),t)})).apply(this,arguments)}function re(){return(re=(0,d.default)(function*(e){var t,r=B(e,"content-type");if(r&&r.startsWith("multipart/form-data")){var n=null===(t=r.match(/boundary=([^;]*)(;|$)/i))||void 0===t?void 0:t[1];if(n){var body=yield J(e,!1);if(body)return function(e,t){for(var r="",n=0,o=[],c=[],l=[],i=0;i<e.length;i++){var d=i>0?e[i-1]:null,f=e[i];10===f||13===f||(r+=String.fromCodePoint(f));var h=10===f&&13===d;if(0===n&&h)"--"+t===r&&(n=1),r="";else if(1===n&&h){if(r.length>0){var m=r.indexOf(":");if(m>0){var y=r.slice(0,m).toLowerCase(),v=r.slice(m+1).trim();l.push([y,v])}}else n=2,o=[];r=""}else if(2===n){if(r.length>t.length+4&&(r=""),"--"+t===r){var _=o.length-r.length,E=o.slice(0,_-1);c.push(R(E,l)),o=[],l=[],r="",n=3}else o.push(f);h&&(r="")}else 3===n&&h&&(n=1)}return c}(body,n)}}})).apply(this,arguments)}function ne(){return(ne=(0,d.default)(function*(e){return yield W(e).formData()})).apply(this,arguments)}function ie(e){var t,r;if(X.includes(e.method)){var n=(null===(t=e.web)||void 0===t||null===(r=t.request)||void 0===r?void 0:r.body)||e._requestBody;return n||(G in e.node.req||"rawBody"in e.node.req||"body"in e.node.req||"__unenv__"in e.node.req?new ReadableStream({start:t=>(0,d.default)(function*(){var r=yield J(e,!1);r&&t.enqueue(r),t.close()})()}):new ReadableStream({start:t=>{e.node.req.on("data",e=>{t.enqueue(e)}
2),e.node.req.on("end",()=>{t.close()}),e.node.req.on("error",e=>{t.error(e)})}}))}}function oe(){var body=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;if(body)try{return(0,v.default)(body,{strict:e})}catch(e){throw C({statusCode:400,statusMessage:"Bad Request",message:"Invalid JSON body"})}}var ae=t.MIMES={html:"text/html",json:"application/json"},se=/[^\u0009\u0020-\u007E]/g;function ce(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(se,"")}function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return e?("string"==typeof e&&(e=Number.parseInt(e,10)),e<100||e>999?t:e):t}function le(e,t){return[e,t.domain||"",t.path||"/"].join(";")}function de(e){return(0,h.parse)(e.node.req.headers.cookie||"")}function pe(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n.path||(n=T({path:"/"},n));var o=(0,h.serialize)(t,r,n),c=fe(e.node.res.getHeader("set-cookie"));if(0!==c.length){var l=le(t,n);for(var d of(e.node.res.removeHeader("set-cookie"),c)){var f=(0,h.parseSetCookie)(d);le(f.name,f)!==l&&e.node.res.appendHeader("set-cookie",d)}e.node.res.appendHeader("set-cookie",o)}else e.node.res.setHeader("set-cookie",o)}function fe(e){if(Array.isArray(e))return e.flatMap(e=>fe(e));if("string"!=typeof e)return[];for(var t,r,n,o,c,l=[],d=0,f=()=>{for(;d<e.length&&/\s/.test(e.charAt(d));)d+=1;return d<e.length},h=()=>"="!==(r=e.charAt(d))&&";"!==r&&","!==r;d<e.length;){for(t=d,c=!1;f();)if(","===(r=e.charAt(d))){for(n=d,d+=1,f(),o=d;d<e.length&&h();)d+=1;d<e.length&&"="===e.charAt(d)?(c=!0,d=o,l.push(e.slice(t,n)),t=d):d=n+1}else d+=1;(!c||d>=e.length)&&l.push(e.slice(t))}return l}function he(e){switch(typeof e){case"string":return e;case"boolean":case"number":case"bigint":case"symbol":return e.toString();case"function":case"undefined":return;case"object":return e instanceof Uint8Array?e:JSON.stringify(e)}}var me=void 0===n?e=>e():n;function ye(e,data,t){return t&&_e(e,t),new Promise(t=>{me(()=>{e.handled||e.node.res.end(data),t()})})}function ve(e,code){if(!e.handled){code||200===e.node.res.statusCode||(code=e.node.res.statusCode);var t=ue(code,204);204===t&&e.node.res.removeHeader("content-length"),e.node.res.writeHead(t),e.node.res.end()}}function ge(e,code,text){code&&(e.node.res.statusCode=ue(code,e.node.res.statusCode)),text&&(e.node.res.statusMessage=ce(text))}function _e(e,t){t&&304!==e.node.res.statusCode&&!e.node.res.getHeader("content-type")&&e.node.res.setHeader("content-type",t)}function be(e){return e.node.res.getHeaders()}function Ee(e,t){return e.node.res.getHeader(t)}function we(e,t){for(var r of Object.entries(t)){var n=(0,c.default)(r,2),o=n[0],l=n[1];e.node.res.setHeader(o,l)}}t.setHeaders=we;function Ae(e,t,r){e.node.res.setHeader(t,r)}t.setHeader=Ae;function Te(e,t){for(var r of Object.entries(t)){var n=(0,c.default)(r,2);Se(e,n[0],n[1])}}var Oe=t.appendHeaders=Te;function Se(e,t,r){var n=e.node.res.getHeader(t);n?(Array.isArray(n)||(n=[n.toString()]),e.node.res.setHeader(t,[...n,r])):e.node.res.setHeader(t,r)}t.appendHeader=Se;function Ie(e,t){return e.node.res.removeHeader(t)}function Ce(data){if(!data||"object"!=typeof data)return!1;if("function"==typeof data.pipe){if("function"==typeof data._read)return!0;if("function"==typeof data.abort)return!0}return"function"==typeof data.pipeTo}function Ne(data){return"undefined"!=typeof Response&&data instanceof Response}function Pe(e,t){if(!t||"object"!=typeof t)throw new Error("[h3] Invalid stream provided.");if(e.node.res._data=t,!e.node.res.socket)return e._handled=!0,Promise.resolve();if(S(t,"pipeTo")&&"function"==typeof t.pipeTo)return t.pipeTo(new WritableStream({write(t){e.node.res.write(t)}})).then(()=>{e.node.res.end()});if(S(t,"pipe")&&"function"==typeof t.pipe)return new Promise((r,n)=>{t.pipe(e.node.res),t.on&&(t.on("end",()=>{e.node.res.end(),r()}),t.on("error",e=>{n(e)})),e.node.res.on("close",()=>{t.abort&&t.abort()})});throw new Error("[h3] Invalid or incompatible stream provided.")}var Re=()=>{};function Le(e,t){for(var r of t.headers){var n=(0,c.default)(r,2),o=n[0],l=n[1];"set-cookie"===o?e.node.res.appendHeader(o,fe(l)):e.node.res.setHeader(o,l)}if(t.status&&(e.node.res.statusCode=ue(t.status,e.node.res.statusCode)),t.statusText&&(e.node.res.statusMessage=ce(t.statusText)),t.redirected&&e.node.res.setHeader("location",t.url),t.body)return Pe(e,t.body);e.node.res.end()}function De(e){var t=B(e,"origin"),r=B(e,"access-control-request-method");return"OPTIONS"===e.method&&!!t&&!!r}function xe(e,t){var r=t.origin;return!e||!r||"*"===r||"null"===r||(Array.isArray(r)?r.some(t=>t instanceof RegExp?t.test(e):e===t):r(e))}function ke(e,t){var r=t.origin,n=B(e,"origin");return n&&r&&"*"!==r?"string"==typeof r?{"access-control-allow-origin":r,vary:"origin"}:xe(n,t)?{"access-control-allow-origin":n,vary:"origin"}:{}:{"access-control-allow-origin":"*"}}function Me(e){return e.credentials?{"access-control-allow-credentials":"true"}:{}}function Fe(e){var t=e.exposeHeaders;return t?"*"===t?{"access-control-expose-headers":t}:{"access-control-expose-headers":t.join(",")}:{}}function Ue(e,t){Oe(e,ke(e,t)),Oe(e,Me(t)),Oe(e,Fe(t)),Oe(e,function(e){var t=e.methods;return t?"*"===t?{"access-control-allow-methods":"*"}:t.length>0?{"access-control-allow-methods":t.join(",")}:{}:{}}(t)),Oe(e,function(e,t){var r=t.allowHeaders;if(!r||"*"===r||0===r.length){var header=B(e,"access-control-request-headers");return header?{"access-control-allow-headers":header,vary:"access-control-request-headers"}:{}}return{"access-control-allow-headers":r.join(","),vary:"access-control-request-headers"}}(e,t))}function je(e,t){Oe(e,ke(e,t)),Oe(e,Me(t)),Oe(e,Fe(t))}function Be(){return Be=(0,d.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];!1!==t.ip&&r.push(K(e,{xForwardedFor:t.xForwardedFor})),!0===t.method&&r.push(e.method),!0===t.path&&r.push(e.path),!0===t.userAgent&&r.push(B(e,"user-agent"));var n=r.filter(Boolean).join("|");if(!n)return null;if(!1===t.hash)return n;var o=yield _.default.subtle.digest(t.hash||"SHA-1",(new TextEncoder).encode(n));return[...new Uint8Array(o)].map(b=>b.toString(16).padStart(2,"0")).join("")}),Be.apply(this,arguments)}
2var He=new Set(["PATCH","POST","PUT","DELETE"]),Ve=new Set(["transfer-encoding","accept-encoding","connection","keep-alive","upgrade","expect","host","accept"]);function ze(){return ze=(0,d.default)(function*(e,t){var r,n,body,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};He.has(e.method)&&(l.streamRequest?(body=ie(e),o="half"):body=yield J(e,!1).catch(()=>{}));var d=(null===(r=l.fetchOptions)||void 0===r?void 0:r.method)||e.method,f=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=r.filter(Boolean);if(0===o.length)return e;var l=new Headers(e);for(var input of o){var d=Array.isArray(input)?input:"function"==typeof input.entries?input.entries():Object.entries(input);for(var f of d){var h=(0,c.default)(f,2),m=h[0],y=h[1];void 0!==y&&l.set(m,y)}}return l}($e(e,{host:t.startsWith("/")}),null===(n=l.fetchOptions)||void 0===n?void 0:n.headers,l.headers);return Ye(e,t,T(T({},l),{},{fetchOptions:T(T({method:d,body:body,duplex:o},l.fetchOptions),{},{headers:f})}))}),ze.apply(this,arguments)}function Ye(e,t){return qe.apply(this,arguments)}function qe(){return qe=(0,d.default)(function*(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{r=yield We(n.fetch)(t,T({headers:n.headers,ignoreResponseError:!0},n.fetchOptions))}catch(e){throw C({status:502,statusMessage:"Bad Gateway",cause:e})}e.node.res.statusCode=ue(r.status,e.node.res.statusCode),e.node.res.statusMessage=ce(r.statusText);var o=[];for(var l of r.headers.entries()){var d=(0,c.default)(l,2),f=d[0],h=d[1];"content-encoding"!==f&&("content-length"!==f&&("set-cookie"!==f?e.node.res.setHeader(f,h):o.push(...fe(h))))}if(o.length>0&&e.node.res.setHeader("set-cookie",o.map(e=>(n.cookieDomainRewrite&&(e=Ke(e,n.cookieDomainRewrite,"domain")),n.cookiePathRewrite&&(e=Ke(e,n.cookiePathRewrite,"path")),e))),n.onResponse&&(yield n.onResponse(e,r)),void 0!==r._data)return r._data;if(!e.handled){if(!1===n.sendStream){var data=new Uint8Array(yield r.arrayBuffer());return e.node.res.end(data)}if(r.body){var m,y=!1,v=!1;try{for(var _,E=function(e){var t,r,n,o=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);o--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new O(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}(r.body);y=!(_=yield E.next()).done;y=!1){var w=_.value;e.node.res.write(w)}}catch(e){v=!0,m=e}finally{try{y&&null!=E.return&&(yield E.return())}finally{if(v)throw m}}}return e.node.res.end()}}),qe.apply(this,arguments)}function $e(e,t){var r=Object.create(null),n=j(e);for(var o in n)(!Ve.has(o)||"host"===o&&null!=t&&t.host)&&(r[o]=n[o]);return r}function We(e){if(e)return e;if(globalThis.fetch)return globalThis.fetch;throw new Error("fetch is not available. Try importing `node-fetch-native/polyfill` for Node.js.")}function Ke(header,map,e){var t="string"==typeof map?{"*":map}:map;return header.replace(new RegExp("(;\\s*".concat(e,"=)([^;]+)"),"gi"),(e,r,n)=>{var o;if(n in t)o=t[n];else{if(!("*"in t))return e;o=t["*"]}return o?r+o:""})}var Ge=Symbol("getSession"),Qe="h3",Xe={path:"/",secure:!0,httpOnly:!0};function Je(){return Je=(0,d.default)(function*(e,t){var r=t.name||Qe;yield Ze(e,t);var n,o={get id(){var t,n;return null===(t=e.context.sessions)||void 0===t||null===(n=t[r])||void 0===n?void 0:n.id},get data(){var t,n;return(null===(t=e.context.sessions)||void 0===t||null===(n=t[r])||void 0===n?void 0:n.data)||{}},update:(n=(0,d.default)(function*(r){if(!vt(e))throw new Error("[h3] Cannot update read-only session.");return yield nt(e,t,r),o}),function(e){return n.apply(this,arguments)}),clear:()=>{if(!vt(e))throw new Error("[h3] Cannot clear read-only session.");return ut(e,t),Promise.resolve(o)}};return o}
2),Je.apply(this,arguments)}function Ze(e,t){return et.apply(this,arguments)}function et(){return(et=(0,d.default)(function*(e,t){var r=t.name||Qe;e.context.sessions||(e.context.sessions=Object.create(null));var n=e.context.sessions[r];if(n)return n[Ge]||n;var o,c={id:"",createdAt:0,data:Object.create(null)};if(e.context.sessions[r]=c,!1!==t.sessionHeader){var l="string"==typeof t.sessionHeader?t.sessionHeader.toLowerCase():"x-".concat(r.toLowerCase(),"-session"),d=tt(e,l);"string"==typeof d&&(o=d)}if(!o){var f=tt(e,"cookie");f&&(o=(0,h.parse)(f+"")[r])}if(o){var m=st(e,t,o).catch(()=>{}).then(t=>(Object.assign(c,t),delete e.context.sessions[r][Ge],c));e.context.sessions[r][Ge]=m,yield m}if(!c.id){var y,v;if(!vt(e))throw new Error("Cannot initialize a new session. Make sure using `useSession(event)` in main handler.");c.id=null!==(y=null===(v=t.generateId)||void 0===v?void 0:v.call(t))&&void 0!==y?y:(t.crypto||_.default).randomUUID(),c.createdAt=Date.now(),yield nt(e,t)}return c})).apply(this,arguments)}function tt(e,t){var r,n;return e.node?null===(r=e.node)||void 0===r?void 0:r.req.headers[t]:e.request?null===(n=e.request.headers)||void 0===n?void 0:n.get(t):e.headers?e.headers.get(t):void 0}function nt(e,t,r){return it.apply(this,arguments)}function it(){return(it=(0,d.default)(function*(e,t,r){var n,o=t.name||Qe,c=(null===(n=e.context.sessions)||void 0===n?void 0:n[o])||(yield Ze(e,t));("function"==typeof r&&(r=r(c.data)),r&&Object.assign(c.data,r),!1!==t.cookie)&&pe(e,o,yield ot(e,t),T(T({},Xe),{},{expires:t.maxAge?new Date(c.createdAt+1e3*t.maxAge):void 0},t.cookie));return c})).apply(this,arguments)}
2function ot(e,t){return at.apply(this,arguments)}function at(){return(at=(0,d.default)(function*(e,t){var r,n=t.name||Qe,o=(null===(r=e.context.sessions)||void 0===r?void 0:r[n])||(yield Ze(e,t));return yield(0,E.seal)(t.crypto||_.default,o,t.password,T(T({},E.defaults),{},{ttl:t.maxAge?1e3*t.maxAge:0},t.seal))})).apply(this,arguments)}function st(e,t,r){return ct.apply(this,arguments)}function ct(){return(ct=(0,d.default)(function*(e,t,r){var n=yield(0,E.unseal)(t.crypto||_.default,r,t.password,T(T({},E.defaults),{},{ttl:t.maxAge?1e3*t.maxAge:0},t.seal));if(t.maxAge&&Date.now()-(n.createdAt||Number.NEGATIVE_INFINITY)>1e3*t.maxAge)throw new Error("Session expired!");return n})).apply(this,arguments)}function ut(e,t){var r,n=t.name||Qe;return null!==(r=e.context.sessions)&&void 0!==r&&r[n]&&delete e.context.sessions[n],pe(e,n,"",T(T({},Xe),t.cookie)),Promise.resolve()}function lt(e){var t="";e.id&&(t+="id: ".concat(pt(e.id),"\n")),e.event&&(t+="event: ".concat(pt(e.event),"\n")),"number"==typeof e.retry&&Number.isInteger(e.retry)&&(t+="retry: ".concat(e.retry,"\n"));var data="string"==typeof e.data?e.data:"";for(var line of data.split(/\r\n|\r|\n/))t+="data: ".concat(line,"\n");return t+="\n"}function pt(e){return e.replace(/[\n\r]/g,"")}function ft(e){var t={"Content-Type":"text/event-stream","Cache-Control":"private, no-cache, no-store, no-transform, must-revalidate, max-age=0","X-Accel-Buffering":"no"};(function(e){return void 0!==H(e,":path")&&void 0!==H(e,":method")})(e)||(t.Connection="keep-alive"),we(e,t)}class ht{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._transformStream=new TransformStream,this._encoder=new TextEncoder,this._writerIsClosed=!1,this._paused=!1,this._disposed=!1,this._handled=!1,this._h3Event=e,this._writer=this._transformStream.writable.getWriter(),this._writer.closed.then(()=>{this._writerIsClosed=!0}),!1!==t.autoclose&&this._h3Event.node.req.on("close",()=>this.close())}push(e){var t=this;return(0,d.default)(function*(){if("string"!=typeof e)if(Array.isArray(e)){if(0===e.length)return;if("string"==typeof e[0]){var r=[];for(var n of e)r.push({data:n});return void(yield t._sendEvents(r))}yield t._sendEvents(e)}else yield t._sendEvent(e);else yield t._sendEvent({data:e})})()}_sendEvent(e){var t=this;return(0,d.default)(function*(){t._writerIsClosed||(!t._paused||t._unsentData?t._paused?t._unsentData+=lt(e):yield t._writer.write(t._encoder.encode(lt(e))).catch():t._unsentData=lt(e))})()}_sendEvents(e){var t=this;return(0,d.default)(function*(){if(!t._writerIsClosed){var r=function(e){var t="";for(var r of e)t+=lt(r);return t}(e);!t._paused||t._unsentData?t._paused?t._unsentData+=r:yield t._writer.write(t._encoder.encode(r)).catch():t._unsentData=r}})()}pause(){this._paused=!0}get isPaused(){return this._paused}resume(){var e=this;return(0,d.default)(function*(){e._paused=!1,yield e.flush()})()}flush(){var e=this;return(0,d.default)(function*(){var t;e._writerIsClosed||null!==(t=e._unsentData)&&void 0!==t&&t.length&&(yield e._writer.write(e._encoder.encode(e._unsentData)),e._unsentData=void 0)})()}close(){var e=this;return(0,d.default)(function*(){if(!e._disposed){if(!e._writerIsClosed)try{yield e._writer.close()}catch(e){}e._h3Event._handled&&e._handled&&!e._h3Event.node.res.closed&&e._h3Event.node.res.end(),e._disposed=!0}})()}onClosed(e){this._writer.closed.then(e)}send(){var e=this;return(0,d.default)(function*(){ft(e._h3Event),ge(e._h3Event,200),e._h3Event._handled=!0,e._handled=!0,yield Pe(e._h3Event,e._transformStream.readable)})()}}function mt(){return(mt=(0,d.default)(function*(e,t){if("GET"!==e.method&&"HEAD"!==e.method){if(!t.fallthrough)throw C({statusMessage:"Method Not Allowed",statusCode:405});return!1}var r=(0,f.withLeadingSlash)((0,f.withoutTrailingSlash)((0,f.parseURL)(e.path).pathname));if(/(^|[\\/])(\.\.|%2e%2e|%2e\.|\.%2e)($|[\\/])/i.test(r)){if(!t.fallthrough)throw C({statusCode:404});return!1}var n=function(header,e){if(!e||!header)return[];return String(header||"").split(",").map(t=>e[t.trim()]).filter(Boolean)}(B(e,"accept-encoding"),t.encodings);n.length>1&&Ae(e,"vary","accept-encoding");var meta,o=r,c=function(e,t,r){var n=[];for(var o of["",...r])for(var c of[...t,""])n.push("".concat(e).concat(o).concat(c));return n}(r,n,t.indexNames||["/index.html"]);for(var l of c){var d=yield t.getMeta(l);if(d){meta=d,o=l;break}}if(!meta){if(!t.fallthrough)throw C({statusCode:404});return!1}if(meta.etag&&!Ee(e,"etag")&&Ae(e,"etag",meta.etag),meta.etag&&B(e,"if-none-match")===meta.etag)return ge(e,304,"Not Modified"),ye(e,"");if(meta.mtime){var h=new Date(meta.mtime),m=B(e,"if-modified-since");if(m&&new Date(m)>=h)return ge(e,304,"Not Modified"),ye(e,null);Ee(e,"last-modified")||Ae(e,"last-modified",h.toUTCString())}if(meta.type&&!Ee(e,"content-type")&&Ae(e,"content-type",meta.type),meta.encoding&&!Ee(e,"content-encoding")&&Ae(e,"content-encoding",meta.encoding),void 0!==meta.size&&meta.size>0&&!Ee(e,"content-length")&&Ae(e,"content-length",meta.size),"HEAD"===e.method)return ye(e,null);var y=yield t.getContents(o);return Ce(y)?Pe(e,y):ye(e,y)})).apply(this,arguments)}class yt{constructor(e,t){this.__is_event__=!0,this.context={},this._handled=!1,this.node={req:e,res:t}}get method(){return this._method||(this._method=(this.node.req.method||"GET").toUpperCase()),this._method}get path(){return this._path||this.node.req.url||"/"}get headers(){return this._headers||(this._headers=function(e){var t=new Headers;for(var r of Object.entries(e)){var n=(0,c.default)(r,2),o=n[0],l=n[1];if(Array.isArray(l))for(var d of l)t.append(o,d);else l&&t.set(o,l)}return t}(this.node.req.headers)),this._headers}get handled(){return this._handled||this.node.res.writableEnded||this.node.res.headersSent}respondWith(e){return Promise.resolve(e).then(e=>Le(this,e))}toString(){return"[".concat(this.method,"] ").concat(this.path)}toJSON(){return this.toString()}get req(){return this.node.req}get res(){return this.node.res}}function vt(input){return S(input,"__is_event__")}function gt(e,t){return new yt(e,t)}function _t(e){if("function"==typeof e)return e.__is_handler__=!0,e;var t={onRequest:bt(e.onRequest),onBeforeResponse:bt(e.onBeforeResponse)}
2,r=r=>function(e,t,r){return Et.apply(this,arguments)}(r,e.handler,t);return r.__is_handler__=!0,r.__resolve__=e.handler.__resolve__,r.__websocket__=e.websocket,r}function bt(input){return input?Array.isArray(input)?input:[input]:void 0}function Et(){return(Et=(0,d.default)(function*(e,t,r){if(r.onRequest)for(var n of r.onRequest)if(yield n(e),e.handled)return;var o={body:yield t(e)};if(r.onBeforeResponse)for(var c of r.onBeforeResponse)yield c(e,o);return o.body})).apply(this,arguments)}t.H3Event=yt;var wt=t.eventHandler=_t;function At(input){return S(input,"__is_handler__")}function Tt(input,e,t){return input}function Ot(e){var t,r,n=()=>r?Promise.resolve(r):(t||(t=Promise.resolve(e()).then(e=>{var t=e.default||e;if("function"!=typeof t)throw new TypeError("Invalid lazy handler result. It should be a function:",t);return r={handler:Tt(e.default||e)}})),t),o=wt(e=>r?r.handler(e):n().then(t=>t.handler(e)));return o.__resolve__=n,o}var St=t.lazyEventHandler=Ot;t.H3Headers=globalThis.Headers,t.H3Response=globalThis.Response;function It(e,t,r,n){if(Array.isArray(t))for(var i of t)It(e,i,r,n);else if(Array.isArray(r))for(var o of r)It(e,t,o,n);else"string"==typeof t?e.stack.push(Nt(T(T({},n),{},{route:t,handler:r}))):"function"==typeof t?e.stack.push(Nt(T(T({},r),{},{handler:t}))):e.stack.push(Nt(T({},t)));return e}function Ct(e,t){var r=t.debug?2:void 0;return wt(function(){var n=(0,d.default)(function*(n){n.node.req.originalUrl=n.node.req.originalUrl||n.node.req.url||"/";var o,c,path,l,d=n.node.req.url||"/",h=(o=n._path||d,c=o.indexOf("?"),path=-1===c?o:o.slice(0,c),l=-1===c?"":o.slice(c),(path.includes("%25")?(0,f.decodePath)(path.replace(/%25/g,"%2525")):(0,f.decodePath)(path))+l);n._path=h;var m,y=h!==d;for(var v of(t.onRequest&&(yield t.onRequest(n)),e)){if(v.route.length>1){if(!h.startsWith(v.route))continue;m=h.slice(v.route.length)||"/"}else m=h;if(!v.match||v.match(m,n)){n._path=m,n.node.req.url=y?v.route.length>1?d.slice(v.route.length)||"/":d:m;var _=yield v.handler(n),E=void 0===_?void 0:yield _;if(void 0!==E){var w={body:E};return t.onBeforeResponse&&(n._onBeforeResponseCalled=!0,yield t.onBeforeResponse(n,w)),yield Pt(n,w.body,r),void(t.onAfterResponse&&(n._onAfterResponseCalled=!0,yield t.onAfterResponse(n,w)))}if(n.handled)return void(t.onAfterResponse&&(n._onAfterResponseCalled=!0,yield t.onAfterResponse(n,void 0)))}}if(!n.handled)throw C({statusCode:404,statusMessage:"Cannot find any path matching ".concat(n.path||"/",".")});t.onAfterResponse&&(n._onAfterResponseCalled=!0,yield t.onAfterResponse(n,void 0))});return function(e){return n.apply(this,arguments)}}())}function Nt(input){var e=input.handler;return e.handler&&(e=e.handler),input.lazy?e=St(e):At(e)||(e=Tt(e,0,input.route)),{route:(0,f.withoutTrailingSlash)(input.route),match:input.match,handler:e}}function Pt(t,r,n){if(null===r)return ve(t);if(r){if(Ne(r))return Le(t,r);if(Ce(r))return Pe(t,r);if(r.buffer)return ye(t,r);if(r.arrayBuffer&&"function"==typeof r.arrayBuffer)return r.arrayBuffer().then(n=>ye(t,e.from(n),r.type));if(r instanceof Error)throw C(r);if("function"==typeof r.end)return!0}var o=typeof r;if("string"===o)return ye(t,r,ae.html);if("object"===o||"boolean"===o||"number"===o)return ye(t,JSON.stringify(r,void 0,n),ae.json);if("bigint"===o)return ye(t,r.toString(),ae.json);throw C({statusCode:500,statusMessage:"[h3] Cannot send ".concat(o," as response.")})}var Rt=["connect","delete","get","head","options","post","put","trace","patch"];t.defineNodeListener=e=>e;function Lt(e,t,r){var n=e.length>2;return new Promise((o,c)=>{var l=e=>(n&&(r.off("close",l),r.off("error",l)),e?c(C(e)):o(void 0));try{var d=e(t,r,l);n&&void 0===d?(r.once("close",l),r.once("error",l)):o(d)}catch(e){l(e)}})}function Dt(e,t){return xt.apply(this,arguments)}function xt(){return(xt=(0,d.default)(function*(e,t){var path=t.path,r=(t.method||"GET").toUpperCase(),n=new Headers(t.headers),o=new w.IncomingMessage,c=new w.ServerResponse(o);o.method=r,o.url=path,o.headers=Object.fromEntries(n.entries());var l=gt(o,c);l._method=r,l._path=path,l._headers=n,t.body&&(l._requestBody=t.body),t._eventOverrides&&Object.assign(l,t._eventOverrides),t.context&&Object.assign(l.context,t.context);try{yield e.handler(l)}catch(t){var d=C(t);
2P(t)||(d.unhandled=!0),e.options.onError&&(yield e.options.onError(d,l)),l.handled||((d.unhandled||d.fatal)&&console.error("[h3]",d.fatal?"[fatal]":"[unhandled]",d),yield N(l,d,!!e.options.debug))}return{status:c.statusCode,statusText:c.statusMessage,headers:kt(c._headers),body:c._data}})).apply(this,arguments)}function kt(input){var e=[],t=[];for(var r in input){var n=r.toLowerCase();if("set-cookie"!==n){var o=input[n];if(Array.isArray(o))for(var c of o)e.push([n,c]);else void 0!==o&&e.push([n,String(o)])}else t.push(...fe(input["set-cookie"]))}if(t.length>0)for(var l of t)e.push(["set-cookie",l]);return e}t.defineNodeMiddleware=e=>e;var Mt=new Set([101,204,205,304]);function Ft(){return(Ft=(0,d.default)(function*(e,t,r){var n=new URL(t.url),o=yield Dt(e,{_eventOverrides:{web:{request:t,url:n}},context:r,method:t.method,path:n.pathname+n.search,headers:t.headers,body:t.body}),body=Mt.has(o.status)||"HEAD"===t.method?null:o.body;return new Response(body,{status:o.status,statusText:o.statusText,headers:o.headers})})).apply(this,arguments)}}).call(this,r(545).Buffer,r(421).setImmediate)},,,,,,,,function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.useError=t.throwError=t.showError=t.isNuxtError=t.createError=t.clearError=t.NUXT_ERROR_SIGNATURE=void 0,r(7),r(14);var o=n(r(10)),c=r(163),l=r(5),d=r(78),f=t.NUXT_ERROR_SIGNATURE="__nuxt_error",h=()=>(0,l.toRef)((0,d.useNuxtApp)().payload,"error");t.useError=h;var m=e=>{var t=y(e);try{(0,d.useNuxtApp)().callHook("app:error",t);var r=h();r.value=r.value||t}catch(e){throw t}return t};t.showError=m;t.throwError=m,t.clearError=function(){var e=(0,o.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,d.useNuxtApp)(),r=h();t.callHook("app:error:cleared",e),e.redirect&&(yield t.$router.replace(e.redirect)),r.value=null});return function(){return e.apply(this,arguments)}}();t.isNuxtError=e=>!!e&&"object"==typeof e&&f in e;var y=e=>{var t=(0,c.createError)(e);return Object.defineProperty(t,f,{value:!0,configurable:!1,writable:!1}),t};t.createError=y},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){var n=r(200),o=n.Buffer;function c(e,t){for(var r in e)t[r]=e[r]}function l(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=l),l.prototype=Object.create(o.prototype),c(o,l),l.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},l.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},l.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},l.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";const n=r(437),o=r(438),c="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=f,t.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},t.INSPECT_MAX_BYTES=50;const l=2147483647;function d(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return y(e)}return h(e,t,r)}function h(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!f.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|w(e,t);let n=d(r);const o=n.write(e,t);o!==r&&(n=n.slice(0,o));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ne(e,Uint8Array)){const t=new Uint8Array(e);return _(t.buffer,t.byteOffset,t.byteLength)}return v(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ne(e,ArrayBuffer)||e&&ne(e.buffer,ArrayBuffer))return _(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(ne(e,SharedArrayBuffer)||e&&ne(e.buffer,SharedArrayBuffer)))return _(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return f.from(n,t,r);
vendor: 8,218 bytes, line 2
2const b=function(e){if(f.isBuffer(e)){const t=0|E(e.length),r=d(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||ie(e.length)?d(0):v(e);if("Buffer"===e.type&&Array.isArray(e.data))return v(e.data)}(e);if(b)return b;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function m(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function y(e){return m(e),d(e<0?0:0|E(e))}function v(e){const t=e.length<0?0:0|E(e.length),r=d(t);for(let i=0;i<t;i+=1)r[i]=255&e[i];return r}function _(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,f.prototype),n}function E(e){if(e>=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|e}function w(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ne(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return ee(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return te(e).length;default:if(o)return n?-1:ee(e).length;t=(""+t).toLowerCase(),o=!0}}function A(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return L(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function T(b,e,t){const i=b[e];b[e]=b[t],b[t]=i}function O(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),ie(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:S(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):S(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function S(e,t,r,n,o){let i,c=1,l=e.length,d=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;c=2,l/=2,d/=2,r/=2}function f(e,i){return 1===c?e[i]:e.readUInt16BE(i*c)}if(o){let n=-1;for(i=r;i<l;i++)if(f(e,i)===f(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===d)return n*c}else-1!==n&&(i-=i-n),n=-1}else for(r+d>l&&(r=l-d),i=r;i>=0;i--){let r=!0;for(let n=0;n<d;n++)if(f(e,i+n)!==f(t,n)){r=!1;break}if(r)return i}return-1}function I(e,t,r,n){r=Number(r)||0;const o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;const c=t.length;let i;for(n>c/2&&(n=c/2),i=0;i<n;++i){const n=parseInt(t.substr(2*i,2),16);if(ie(n))return i;e[r+i]=n}return i}function C(e,t,r,n){return re(ee(t,e.length-r),e,r,n)}function N(e,t,r,n){return re(function(e){const t=[];for(let i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,r,n)}function P(e,t,r,n){return re(te(t),e,r,n)}function R(e,t,r,n){return re(function(e,t){let r,n,o;const c=[];for(let i=0;i<e.length&&!((t-=2)<0);++i)r=e.charCodeAt(i),n=r>>8,o=r%256,c.push(o),c.push(n);return c}(t,e.length-r),e,r,n)}function L(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i<r;){const t=e[i];let o=null,c=t>239?4:t>223?3:t>191?2:1;if(i+c<=r){let r,n,l,d;switch(c){case 1:t<128&&(o=t);break;case 2:r=e[i+1],128==(192&r)&&(d=(31&t)<<6|63&r,d>127&&(o=d));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(d=(15&t)<<12|(63&r)<<6|63&n,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:r=e[i+1],n=e[i+2],l=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&l)&&(d=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&l,d>65535&&d<1114112&&(o=d))}}null===o?(o=65533,c=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=c}return function(e){const t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(n)}t.kMaxLength=l,f.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),f.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,t,r){return h(e,t,r)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,r){return function(e,t,r){return m(e),e<=0?d(e):void 0!==t?"string"==typeof r?d(e).fill(t,r):d(e).fill(t):d(e)}(e,t,r)},f.allocUnsafe=function(e){return y(e)},f.allocUnsafeSlow=function(e){return y(e)},f.isBuffer=function(b){return null!=b&&!0===b._isBuffer&&b!==f.prototype},f.compare=function(a,b){if(ne(a,Uint8Array)&&(a=f.from(a,a.offset,a.byteLength)),ne(b,Uint8Array)&&(b=f.from(b,b.offset,b.byteLength)),!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(a===b)return 0;let e=a.length,t=b.length;for(let i=0,r=Math.min(e,t);i<r;++i)if(a[i]!==b[i]){e=a[i],t=b[i];break}return e<t?-1:t<e?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);let i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;const r=f.allocUnsafe(t);let n=0;for(i=0;i<e.length;++i){let t=e[i];if(ne(t,Uint8Array))n+t.length>r.length?(f.isBuffer(t)||(t=f.from(t)),t.copy(r,n)):Uint8Array.prototype.set.call(r,t,n);else{if(!f.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,n)}n+=t.length}return r},f.byteLength=w,f.prototype._isBuffer=!0,f.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<e;i+=2)T(this,i,i+1);return this},f.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<e;i+=4)T(this,i,i+3),T(this,i+1,i+2);return this},f.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<e;i+=8)T(this,i,i+7),T(this,i+1,i+6),T(this,i+2,i+5),T(this,i+3,i+4);return this},f.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?D(this,0,e):A.apply(this,arguments)}
vendor: 11,994 bytes, line 2
2,f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(b){if(!f.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===f.compare(this,b)},f.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},c&&(f.prototype[c]=f.prototype.inspect),f.prototype.compare=function(e,t,r,n,o){if(ne(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let c=(o>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0);const d=Math.min(c,l),h=this.slice(n,o),m=e.slice(t,r);for(let i=0;i<d;++i)if(h[i]!==m[i]){c=h[i],l=m[i];break}return c<l?-1:l<c?1:0},f.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return O(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return O(this,e,t,r,!1)},f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let c=!1;for(;;)switch(n){case"hex":return I(this,e,t,r);case"utf8":case"utf-8":return C(this,e,t,r);case"ascii":case"latin1":case"binary":return N(this,e,t,r);case"base64":return P(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function k(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function M(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function F(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let i=t;i<r;++i)o+=oe[e[i]];return o}function U(e,t,r){const n=e.slice(t,r);let o="";for(let i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function j(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,o,c){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<c)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function H(e,t,r,n,o){Q(t,n,o,e,r,7);let c=Number(t&BigInt(4294967295));e[r++]=c,c>>=8,e[r++]=c,c>>=8,e[r++]=c,c>>=8,e[r++]=c;let l=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=l,l>>=8,e[r++]=l,l>>=8,e[r++]=l,l>>=8,e[r++]=l,r}function V(e,t,r,n,o){Q(t,n,o,e,r,7);let c=Number(t&BigInt(4294967295));e[r+7]=c,c>>=8,e[r+6]=c,c>>=8,e[r+5]=c,c>>=8,e[r+4]=c;let l=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=l,l>>=8,e[r+2]=l,l>>=8,e[r+1]=l,l>>=8,e[r]=l,r+8}function z(e,t,r,n,o,c){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Y(e,t,r,n,c){return t=+t,r>>>=0,c||z(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function $(e,t,r,n,c){return t=+t,r>>>=0,c||z(e,0,r,8),o.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,f.prototype),n},f.prototype.readUintLE=f.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n},f.prototype.readUintBE=f.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},f.prototype.readUint8=f.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readBigUInt64LE=ae(function(e){X(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))}),f.prototype.readBigUInt64BE=ae(function(e){X(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),f.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||j(e,t,this.length);let i=t,n=1,o=this[e+--i];for(;i>0&&(n*=256);)o+=this[e+--i]*n;return n*=128,o>=n&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readBigInt64LE=ae(function(e){X(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),f.prototype.readBigInt64BE=ae(function(e){X(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||J(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),f.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){B(this,e,t,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){B(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},f.prototype.writeUint8=f.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeBigUInt64LE=ae(function(e,t=0){return H(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeBigUInt64BE=ae(function(e,t=0){return V(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let i=0,o=1,sub=0;for(this[t]=255&e;++i<r&&(o*=256);)e<0&&0===sub&&0!==this[t+i-1]&&(sub=1),this[t+i]=(e/o|0)-sub&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);B(this,e,t,r,n-1,-n)}let i=r-1,o=1,sub=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/o|0)-sub&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeBigInt64LE=ae(function(e,t=0){return H(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeBigInt64BE=ae(function(e,t=0){return V(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),f.prototype.writeFloatLE=function(e,t,r){return Y(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return Y(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);const o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const code=e.charCodeAt(0);("utf8"===n&&code<128||"latin1"===n)&&(e=code)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;
vendor: 6,548 bytes, line 2
2else{const o=f.isBuffer(e)?e:f.from(e,n),c=o.length;if(0===c)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%c]}return this};const W={};function K(e,t,r){W[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function G(e){let t="",i=e.length;const r="-"===e[0]?1:0;for(;i>=r+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function Q(e,t,r,n,o,c){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let o;throw o=c>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(c+1)}${n}`:`>= -(2${n} ** ${8*(c+1)-1}${n}) and < 2 ** ${8*(c+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new W.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){X(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||J(t,e.length-(r+1))}(n,o,c)}function X(e,t){if("number"!=typeof e)throw new W.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,r){if(Math.floor(e)!==e)throw X(e,r),new W.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new W.ERR_BUFFER_OUT_OF_BOUNDS;throw new W.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}K("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),K("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),K("ERR_OUT_OF_RANGE",function(e,t,input){let r=`The value of "${e}" is out of range.`,n=input;return Number.isInteger(input)&&Math.abs(input)>2**32?n=G(String(input)):"bigint"==typeof input&&(n=String(input),(input>BigInt(2)**BigInt(32)||input<-(BigInt(2)**BigInt(32)))&&(n=G(n)),n+="n"),r+=` It must be ${t}. Received ${n}`,r},RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function ee(e,t){let r;t=t||1/0;const n=e.length;let o=null;const c=[];for(let i=0;i<n;++i){if(r=e.charCodeAt(i),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&c.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&c.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&c.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;c.push(r)}else if(r<2048){if((t-=2)<0)break;c.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;c.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return c}function te(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function re(e,t,r,n){let i;for(i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function ne(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ie(e){return e!=e}const oe=function(){const e="0123456789abcdef",table=new Array(256);for(let i=0;i<16;++i){const t=16*i;for(let r=0;r<16;++r)table[t+r]=e[i]+e[r]}return table}();function ae(e){return"undefined"==typeof BigInt?se:e}function se(){throw new Error("BigInt not supported")}},function(e,t,r){"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},function(e,t,r){"use strict";var n=r(442);e.exports=function(){return n()&&!!Symbol.toStringTag}},function(e,t,r){"use strict";(function(t){var n=r(204);function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var o=n.callback;t.pendingcb--,o(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=A;var c,l=n.nextTick;A.WritableState=w;var d=Object.create(r(159));d.inherits=r(82);var f={deprecate:r(725)},h=r(451),m=r(296).Buffer,y=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var v,_=r(452);function E(){}function w(e,t){c=c||r(111),e=e||{};var d=t instanceof c;this.objectMode=!!e.objectMode,d&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var f=e.highWaterMark,h=e.writableHighWaterMark,m=this.objectMode?16:16384;this.highWaterMark=f||0===f?f:d&&(h||0===h)?h:m,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var y=!1===e.decodeStrings;this.decodeStrings=!y,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,o=r.sync,c=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,o,c){--t.pendingcb,r?(n.nextTick(c,o),n.nextTick(N,e,t),e._writableState.errorEmitted=!0,e.emit("error",o)):(c(o),e._writableState.errorEmitted=!0,e.emit("error",o),N(e,t))}(e,r,o,t,c);else{var d=I(r);d||r.corked||r.bufferProcessing||!r.bufferedRequest||S(e,r),o?l(O,e,r,d,c):O(e,r,d,c)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function A(e){if(c=c||r(111),!(v.call(A,this)||this instanceof c))return new A(e);this._writableState=new w(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function T(e,t,r,n,o,c,l){t.writelen=n,t.writecb=l,t.writing=!0,t.sync=!0,r?e._writev(o,t.onwrite):e._write(o,c,t.onwrite),t.sync=!1}function O(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),N(e,t)}function S(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,c=new Array(n),l=t.corkedRequestsFree;l.entry=r;for(var d=0,f=!0;r;)c[d]=r,r.isBuf||(f=!1),r=r.next,d+=1;c.allBuffers=f,T(e,t,!0,t.length,c,"",l.finish),t.pendingcb++,t.lastBufferedRequest=null,l.next?(t.corkedRequestsFree=l.next,l.next=null):t.corkedRequestsFree=new o(t),t.bufferedRequestCount=0}else{for(;r;){var h=r.chunk,m=r.encoding,y=r.callback;
vendor: 4,450 bytes, line 2
2if(T(e,t,!1,t.objectMode?1:h.length,h,m,y),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function I(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function C(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),N(e,t)})}function N(e,t){var r=I(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(C,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}d.inherits(A,h),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:f.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(v=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(object){return!!v.call(this,object)||this===A&&(object&&object._writableState instanceof w)}})):v=function(object){return object instanceof this},A.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},A.prototype.write=function(e,t,r){var o,c=this._writableState,l=!1,d=!c.objectMode&&(o=e,m.isBuffer(o)||o instanceof y);return d&&!m.isBuffer(e)&&(e=function(e){return m.from(e)}(e)),"function"==typeof t&&(r=t,t=null),d?t="buffer":t||(t=c.defaultEncoding),"function"!=typeof r&&(r=E),c.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(d||function(e,t,r,o){var c=!0,l=!1;return null===r?l=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(e.emit("error",l),n.nextTick(o,l),c=!1),c}(this,c,e,r))&&(c.pendingcb++,l=function(e,t,r,n,o,c){if(!r){var l=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=m.from(t,r));return t}(t,n,o);n!==l&&(r=!0,o="buffer",n=l)}var d=t.objectMode?1:n.length;t.length+=d;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var h=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:c,next:null},h?h.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,d,n,o,c);return f}(this,c,d,e,t,r)),l},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},A.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},A.prototype._writev=null,A.prototype.end=function(e,t,r){var o=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,r){t.ending=!0,N(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,o,r)},Object.defineProperty(A.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),A.prototype.destroy=_.destroy,A.prototype._undestroy=_.undestroy,A.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(30))},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var c,i,l=arguments.length;switch(l){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,r)}
2);case 3:return t.nextTick(function(){e.call(null,r,n)});case 4:return t.nextTick(function(){e.call(null,r,n,o)});default:for(c=new Array(l-1),i=0;i<c.length;)c[i++]=arguments[i];return t.nextTick(function(){e.apply(null,c)})}}}:e.exports=t}).call(this,r(32))},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64URLStringToBuffer=function(e){for(var t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=t.padEnd(t.length+r,"="),o=atob(n),c=new ArrayBuffer(o.length),l=new Uint8Array(c),i=0;i<o.length;i++)l[i]=o.charCodeAt(i);return c},r(93),r(94),r(7),r(817),r(14),r(101),r(95),r(96),r(97),r(98)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebAuthnError=void 0;class n extends Error{constructor(e){var t=e.message,code=e.code,r=e.cause,n=e.name;super(t,{cause:r}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=null!=n?n:r.name,this.code=code}}t.WebAuthnError=n},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRequestEvent=c,t.useRequestFetch=function(){var e;return globalThis.$fetch;return(null===(e=c())||void 0===e?void 0:e.$fetch)||globalThis.$fetch},t.useRequestHeaders=function(e){return{};var t=c(),r=t?(0,n.getRequestHeaders)(t):{};if(!e)return r;return Object.fromEntries(e.map(e=>e.toLowerCase()).filter(e=>r[e]).map(e=>[e,r[e]]))},r(170),r(36);var n=r(163),o=r(78);function c(){arguments.length>0&&void 0!==arguments[0]||(0,o.useNuxtApp)()}},,function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.ValidHeadTags=t.UniqueTags=t.TagsWithInnerContent=t.TagEntityBits=t.TagConfigKeys=t.TAG_WEIGHTS=t.TAG_ALIASES=t.SortModifiers=t.SelfClosingTags=t.ScriptNetworkEvents=t.NetworkEvents=t.IsBrowser=t.HasElementTags=void 0,t.asArray=function(e){return Array.isArray(e)?e:[e]},t.composableNames=void 0,t.defineHeadPlugin=function(e){return e},t.hashCode=_,t.hashTag=function(e){if(e._h)return e._h;if(e._d)return _(e._d);var content="".concat(e.tag,":").concat(e.textContent||e.innerHTML||"",":");for(var t in e.props)content+="".concat(t,":").concat(String(e.props[t]),",");return _(content)},t.normaliseEntryTags=function(e){var t=[],input=e.resolvedInput;for(var r in input)if(Object.prototype.hasOwnProperty.call(input,r)){var n=input[r];if(void 0!==n&&m.has(r))if(Array.isArray(n))for(var o of n)t.push(x(r,o,e));else t.push(x(r,n,e))}if(0===t.length)return[];var c=[];return D(j(c,t,0),()=>c.map((t,i)=>(t._e=e._i,e.mode&&(t._m=e.mode),t._p=(e._i<<U)+i,t)))},t.normaliseProps=F,t.normaliseStyleClassProps=k,t.normaliseTag=x,t.packMeta=function(e){var t=Object.entries(w).map(e=>{var t=(0,o.default)(e,2);return[t[0],t[1].keyValue]});return(0,l.packArray)(e,{key:["name","property","httpEquiv","http-equiv","charset"],value:["content","charset"],resolveKey(e){var r,n,o=(null===(r=t.filter(t=>t[1]===e))||void 0===r||null===(n=r[0])||void 0===n?void 0:n[0])||e,c=(e,t)=>null==t?void 0:t.toUpperCase();return o=o.replace(/:([a-z])/g,c).replace(/-([a-z])/g,c)}})},t.processTemplateParams=function(s,p,e){var t=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("string"!=typeof s||!s.includes("%"))return s;var r=s;try{r=decodeURI(s)}catch(e){}var n=r.match(/%\w+(?:\.\w+)?/g);if(!n)return s;var o=s.includes($);s=s.replace(/%\w+(?:\.\w+)?/g,e=>{if(e===$||!n.includes(e))return e;var r=function(p,e){var t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("s"===e||"pageTitle"===e)t=p.pageTitle;else if(e.includes(".")){var n,o=e.indexOf(".");t=null===(n=p[e.substring(0,o)])||void 0===n?void 0:n[e.substring(o+1)]}else t=p[e];if(void 0!==t)return r?(t||"").replace(/"/g,'\\"'):t||"";return}(p,e.slice(1),t);return void 0!==r?r:e}).trim(),o&&(s.endsWith($)&&(s=s.slice(0,-$.length)),s.startsWith($)&&(s=s.slice($.length)),s=s.replace(W,e).trim());return s},t.resolveMetaKeyType=T,t.resolveMetaKeyValue=O,t.resolvePackedMetaObjectValue=C,t.resolveTitleTemplate=function(template,title){return null==template?title||null:"function"==typeof template?template(title):template},t.tagDedupeKey=function(e){var t=e.props,r=e.tag;if(y.has(r))return r;if("link"===r&&"canonical"===t.rel)return"canonical";if(t.charset)return"charset";if(t.id)return"".concat(r,":id:").concat(t.id);for(var n of Y)if(void 0!==t[n])return"".concat(r,":").concat(n,":").concat(t[n]);return!1},t.tagWeight=function(e){var t=e.tagPriority;if("number"==typeof t)return t;var r=100;"meta"===e.tag?"content-security-policy"===e.props["http-equiv"]?r=-30:e.props.charset?r=-20:"viewport"===e.props.name&&(r=-15):"link"===e.tag&&"preconnect"===e.props.rel?r=20:e.tag in V&&(r=V[e.tag]);if(t&&t in z)return r+z[t];return r},t.thenable=D,t.unpackMeta=L,t.whitelistSafeInput=function(input){var e={};return Object.keys(input).forEach(t=>{var r=input[t];if(r)switch(t){case"title":case"titleTemplate":case"templateParams":e[t]=r;break;case"htmlAttrs":case"bodyAttrs":e[t]=H(r),B[t].forEach(a=>{r[a]&&(e[t][a]=r[a])});break;case"meta":Array.isArray(r)&&(e[t]=r.map(meta=>{var e=H(meta);return B.meta.forEach(t=>{meta[t]&&(e[t]=meta[t])}),e}).filter(meta=>Object.keys(meta).length>0));break;case"link":Array.isArray(r)&&(e[t]=r.map(meta=>{var link=H(meta);
2return B.link.forEach(e=>{var t=meta[e];if("rel"!==e||"stylesheet"!==t&&"canonical"!==t&&"modulepreload"!==t&&"prerender"!==t&&"preload"!==t&&"prefetch"!==t)if("href"===e){if(t.includes("javascript:")||t.includes("data:"))return;link[e]=t}else t&&(link[e]=t)}),link}).filter(link=>Object.keys(link).length>1&&!!link.rel));break;case"noscript":Array.isArray(r)&&(e[t]=r.map(meta=>{var noscript=H(meta);return B.noscript.forEach(e=>{meta[e]&&(noscript[e]=meta[e])}),noscript}).filter(meta=>Object.keys(meta).length>0));break;case"script":Array.isArray(r)&&(e[t]=r.map(script=>{var e=H(script);return B.script.forEach(s=>{if(script[s])if("textContent"===s)try{var t="string"==typeof script[s]?JSON.parse(script[s]):script[s];e[s]=JSON.stringify(t,null,0)}catch(e){}else e[s]=script[s]}),e}).filter(meta=>Object.keys(meta).length>0))}}),e};var o=n(r(25)),c=n(r(8));r(15),r(79),r(66),r(7),r(18),r(131),r(17),r(34),r(14),r(84),r(38),r(35),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(6);var l=r(908);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,c.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.SelfClosingTags=new Set(["meta","link","base"]);var h=t.TagsWithInnerContent=new Set(["title","titleTemplate","script","style","noscript"]),m=(t.HasElementTags=new Set(["base","meta","link","style","script","noscript"]),t.ValidHeadTags=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"])),y=t.UniqueTags=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),v=t.TagConfigKeys=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]);t.IsBrowser="undefined"!=typeof window,t.composableNames=["getActiveHead","useHead","useSeoMeta","useHeadSafe","useServerHead","useServerSeoMeta","useServerHeadSafe"];function _(s){for(var e=9,i=0;i<s.length;)e=Math.imul(e^s.charCodeAt(i++),9**9);return(65536+(e^e>>>9)).toString(16).substring(1,8).toLowerCase()}var p=e=>({keyValue:e,metaKey:"property"}),E=e=>({keyValue:e}),w={appleItunesApp:{unpack:{entrySeparator:", ",resolve(e){var t=e.key,r=e.value;return"".concat(S(t),"=").concat(r)}}},articleExpirationTime:p("article:expiration_time"),articleModifiedTime:p("article:modified_time"),articlePublishedTime:p("article:published_time"),bookReleaseDate:p("book:release_date"),charset:{metaKey:"charset"},contentSecurityPolicy:{unpack:{entrySeparator:"; ",resolve(e){var t=e.key,r=e.value;return"".concat(S(t)," ").concat(r)}},metaKey:"http-equiv"},contentType:{metaKey:"http-equiv"},defaultStyle:{metaKey:"http-equiv"},fbAppId:p("fb:app_id"),msapplicationConfig:E("msapplication-Config"),msapplicationTileColor:E("msapplication-TileColor"),msapplicationTileImage:E("msapplication-TileImage"),ogAudioSecureUrl:p("og:audio:secure_url"),ogAudioUrl:p("og:audio"),ogImageSecureUrl:p("og:image:secure_url"),ogImageUrl:p("og:image"),ogSiteName:p("og:site_name"),ogVideoSecureUrl:p("og:video:secure_url"),ogVideoUrl:p("og:video"),profileFirstName:p("profile:first_name"),profileLastName:p("profile:last_name"),profileUsername:p("profile:username"),refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve(e){var t=e.key,r=e.value;if("seconds"===t)return"".concat(r)}}},robots:{unpack:{entrySeparator:", ",resolve(e){var t=e.key,r=e.value;return"boolean"==typeof r?"".concat(S(t)):"".concat(S(t),":").concat(r)}}},xUaCompatible:{metaKey:"http-equiv"}},A=new Set(["og","book","article","profile"]);function T(e){var t,r=S(e),n=r.indexOf(":");return A.has(r.substring(0,n))?"property":(null===(t=w[e])||void 0===t?void 0:t.metaKey)||"name"}function O(e){var t;return(null===(t=w[e])||void 0===t?void 0:t.keyValue)||S(e)}function S(e){var t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),r=t.indexOf("-"),n=t.substring(0,r);return"twitter"===n||A.has(n)?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function I(input){if(Array.isArray(input))return input.map(e=>I(e));if("object"!=typeof input||Array.isArray(input))return input;var output={};for(var e in input)Object.prototype.hasOwnProperty.call(input,e)&&(output[S(e)]=I(in
2put[e]));return output}function C(e,t){var r=w[t];return"refresh"===t?"".concat(e.seconds,";url=").concat(e.url):(0,l.unpackToString)(I(e),f({keyValueSeparator:"=",entrySeparator:", ",resolve(e){var t=e.value,r=e.key;return null===t?"":"boolean"==typeof t?"".concat(r):void 0}},null==r?void 0:r.unpack))}var N=new Set(["og:image","og:video","og:audio","twitter:image"]);function P(input){var e={};for(var t in input)if(Object.prototype.hasOwnProperty.call(input,t)){var r=input[t];"false"!==String(r)&&t&&(e[t]=r)}return e}function R(e,t){var r=P(t),n=S(e),o=T(n);if(N.has(n)){var input={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(input["".concat(e).concat("url"===c?"":"".concat(c[0].toUpperCase()).concat(c.slice(1)))]=r[c]);return L(input).sort((a,b)=>{var e,t;return((null===(e=a[o])||void 0===e?void 0:e.length)||0)-((null===(t=b[o])||void 0===t?void 0:t.length)||0)})}return[f({[o]:n},r)]}function L(input){var e=[],t={};for(var r in input)if(Object.prototype.hasOwnProperty.call(input,r)){var n=input[r];if(Array.isArray(n))for(var o of n)e.push(..."string"==typeof o?L({[r]:o}):R(r,o));else if("object"==typeof n&&n){if(N.has(S(r))){e.push(...R(r,n));continue}t[r]=P(n)}else t[r]=n}var meta=(0,l.unpackToArray)(t,{key:e=>T(e.key),value:e=>"charset"===e.key?"charset":"content",resolveKeyData:e=>O(e.key),resolveValueData(e){var t=e.value,r=e.key;return null===t?"_null":"object"==typeof t?C(t,r):"number"==typeof t?t.toString():t}});return[...e,...meta].map(e=>("_null"===e.content&&(e.content=null),e))}function D(e,t){return e instanceof Promise?e.then(t):t(e)}function x(e,input,t,r){var n=r||F("object"!=typeof input||"function"==typeof input||input instanceof Promise?{["script"===e||"noscript"===e||"style"===e?"innerHTML":"textContent"]:input}:f({},input),"templateParams"===e||"titleTemplate"===e);if(n instanceof Promise)return n.then(r=>x(e,input,t,r));var o={tag:e,props:n};for(var c of v){var l=void 0!==o.props[c]?o.props[c]:t[c];void 0!==l&&(("innerHTML"!==c&&"textContent"!==c&&"children"!==c||h.has(o.tag))&&(o["children"===c?"innerHTML":c]=l),delete o.props[c])}return o.props.body&&(o.tagPosition="bodyClose",delete o.props.body),"script"===o.tag&&"object"==typeof o.innerHTML&&(o.innerHTML=JSON.stringify(o.innerHTML),o.props.type=o.props.type||"application/json"),Array.isArray(o.props.content)?o.props.content.map(e=>f(f({},o),{},{props:f(f({},o.props),{},{content:e})})):o}function k(e,t){var r,n="class"===e?" ":";";return t&&"object"==typeof t&&!Array.isArray(t)&&(t=Object.entries(t).filter(e=>(0,o.default)(e,2)[1]).map(t=>{var r=(0,o.default)(t,2),n=r[0],c=r[1];return"style"===e?"".concat(n,":").concat(c):n})),null===(r=String(Array.isArray(t)?t.join(n):t))||void 0===r?void 0:r.split(n).filter(e=>Boolean(e.trim())).join(n)}function M(e,t,r,n){for(var o,c=function(i){var n=r[i];if("class"===n||"style"===n)return e[n]=k(n,e[n]),0;if(e[n]instanceof Promise)return{v:e[n].then(o=>(e[n]=o,M(e,t,r,i)))};if(!t&&!v.has(n)){var o=String(e[n]),c=n.startsWith("data-");"true"===o||""===o?e[n]=!c||"true":e[n]||(c&&"false"===o?e[n]="false":delete e[n])}},i=n;i<r.length;i+=1)if(0!==(o=c(i))&&o)return o.v}function F(e){var t=M(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],Object.keys(e),0);return t instanceof Promise?t.then(()=>e):e}var U=t.TagEntityBits=10;function j(e,t,r){for(var n,o=function(i){var r=t[i];if(r instanceof Promise)return{v:r.then(r=>(t[i]=r,j(e,t,i)))};Array.isArray(r)?e.push(...r):e.push(r)},i=r;i<t.length;i+=1)if(n=o(i))return n.v}var B={htmlAttrs:["id","class","lang","dir"],bodyAttrs:["id","class"],meta:["id","name","property","charset","content"],noscript:["id","textContent"],script:["id","type","textContent"],link:["id","color","crossorigin","fetchpriority","href","hreflang","imagesrcset","imagesizes","integrity","media","referrerpolicy","rel","sizes","type"]};function H(e){var t={};return Object.keys(e||{}).filter(a=>a.startsWith("data-")).forEach(a=>{t[a]=e[a]}),t}t.NetworkEvents=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),t.ScriptNetworkEvents=new Set(["onload","onerror"]);var V=t.TAG_WEIGHTS={base:-10,title:10},z=t.TAG_ALIASES={critical:-80,high:-10,low:20};t.SortModifiers=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}];var Y=["name","property","http-equiv"];var $="%separator";var W=new RegExp("".concat($,"(?:\\s*").concat($,")*"),"g")},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.d(t,"a",function(){return o}
2),r.d(t,"b",function(){return c});var n=r(45);function o(e){return"boolean"==typeof e?e?n.a.DEBUG:n.a.NONE:"string"==typeof e&&Object(n.c)(e)?e:void 0}function c(e){return null!==e&&"object"==typeof e&&"function"==typeof e.debug&&"function"==typeof e.info&&"function"==typeof e.warn&&"function"==typeof e.error}},function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(164),o=r.n(n);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],n=e[1],c=e[2],l=o.a.getUri({url:r,params:n,paramsSerializer:c}),d=l.split("?"),f=d[0],h=d[1];if(h){var m=h.split("&");return"".concat(f,"?").concat(m.sort().join("&"))}return l}},,,,,,function(e,t){function r(e){return"function"==typeof e.value||(console.warn("[Vue-click-outside:] provided expression",e.expression,"is not a function."),!1)}function n(e){return void 0!==e.componentInstance&&e.componentInstance.$isServer}e.exports={bind:function(e,t,o){if(r(t)){e.__vueClickOutside__={handler:l,callback:t.value};var c="ontouchstart"in document.documentElement?"touchstart":"click";!n(o)&&document.addEventListener(c,l)}function l(t){if(o.context){var r=t.path||t.composedPath&&t.composedPath();r&&r.length>0&&r.unshift(t.target),e.contains(t.target)||function(e,t){if(!e||!t)return!1;for(var i=0,r=t.length;i<r;i++)try{if(e.contains(t[i]))return!0;if(t[i].contains(e))return!1}catch(e){return!1}return!1}(o.context.popupItem,r)||e.__vueClickOutside__.callback(t)}}},update:function(e,t){r(t)&&(e.__vueClickOutside__.callback=t.value)},unbind:function(e,t,r){var o="ontouchstart"in document.documentElement?"touchstart":"click";!n(r)&&e.__vueClickOutside__&&document.removeEventListener(o,e.__vueClickOutside__.handler),delete e.__vueClickOutside__}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(443),o=r(444),c=r(712);e.exports=n?function(e){return n(e)}:o?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return o(e)}:c?function(e){return c(e)}:null},function(e,t,r){"use strict";var n=r(158),o=r(140),c=r(293),l=r(445);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new o("a function is required");return l(n,c,e)}},function(e,t,r){"use strict";e.exports=Function.prototype.call},function(e,t,r){"use strict";e.exports=Function.prototype.apply},function(e,t,r){"use strict";var n,o="object"==typeof Reflect?Reflect:null,c=o&&"function"==typeof o.apply?o.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var l=Number.isNaN||function(e){return e!=e};function d(){d.init.call(this)}e.exports=d,e.exports.once=function(e,t){return new Promise(function(r,n){function o(r){e.removeListener(t,c),n(r)}function c(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}T(e,t,c,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&T(e,"error",t,r)}(e,o,{once:!0})})},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var f=10;function h(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function m(e){return void 0===e._maxListeners?d.defaultMaxListeners:e._maxListeners}function y(e,t,r,n){var o,c,l,d;if(h(r),void 0===(c=e._events)?(c=e._events=Object.create(null),e._eventsCount=0):(void 0!==c.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),c=e._events),l=c[t]),void 0===l)l=c[t]=r,++e._eventsCount;else if("function"==typeof l?l=c[t]=n?[r,l]:[l,r]:n?l.unshift(r):l.push(r),(o=m(e))>0&&l.length>o&&!l.warned){l.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=l.length,d=f,console&&console.warn&&console.warn(d)}return e}function v(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=v.bind(n);return o.listener=r,n.wrapFn=o,o}function E(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(o):A(o,o.length)}function w(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function A(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function T(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(c){n.once&&e.removeEventListener(t,o),r(c)})}}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return f},set:function(e){if("number"!=typeof e||e<0||l(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");f=e}}),d.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},d.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||l(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},d.prototype.getMaxListeners=function(){return m(this)},d.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var r="error"===e,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var d=n[e];if(void 0===d)return!1;if("function"==typeof d)c(d,this,t);else{var f=d.length,h=A(d,f);for(i=0;i<f;++i)c(h[i],this,t)}return!0},d.prototype.addListener=function(e,t){return y(this,e,t,!1)},d.prototype.on=d.prototype.addListener,d.prototype.prependListener=function(e,t){return y(this,e,t,!0)},d.prototype.once=function(e,t){return h(t),this.on(e,_(this,e,t)),this},d.prototype.prependOnceListener=function(e,t){return h(t),this.prependListener(e,_(this,e,t)),this},d.prototype.removeListener=function(e,t){var r,n,o,i,c;if(h(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
vendor: 8,762 bytes, line 2
2("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){c=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,c||t)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},d.prototype.listeners=function(e){return E(this,e,!0)},d.prototype.rawListeners=function(e){return E(this,e,!1)},d.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):w.call(e,t)},d.prototype.listenerCount=w,d.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){var n=r(200),o=n.Buffer;function c(e,t){for(var r in e)t[r]=e[r]}function l(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=l),c(o,l),l.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},l.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},l.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},l.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";(function(t,n){var o=r(204);e.exports=S;var c,l=r(726);S.ReadableState=O;r(295).EventEmitter;var d=function(e,t){return e.listeners(t).length},f=r(451),h=r(296).Buffer,m=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var y=Object.create(r(159));y.inherits=r(82);var v=r(453),_=void 0;_=v&&v.debuglog?v.debuglog("stream"):function(){};var E,w=r(734),A=r(452);y.inherits(S,f);var T=["error","close","destroy","pause","resume"];function O(e,t){e=e||{};var n=t instanceof(c=c||r(111));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,l=e.readableHighWaterMark,d=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:n&&(l||0===l)?l:d,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new w,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(E||(E=r(454).StringDecoder),this.decoder=new E(e.encoding),this.encoding=e.encoding)}function S(e){if(c=c||r(111),!(this instanceof S))return new S(e);this._readableState=new O(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),f.call(this)}function I(e,t,r,n,o){var c,l=e._readableState;null===t?(l.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,R(e)}(e,l)):(o||(c=function(e,t){var r;n=t,h.isBuffer(n)||n instanceof m||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(l,t)),c?e.emit("error",c):l.objectMode||t&&t.length>0?("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===h.prototype||(t=function(e){return h.from(e)}(t)),n?l.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):C(e,l,t,!0):l.ended?e.emit("error",new Error("stream.push() after EOF")):(l.reading=!1,l.decoder&&!r?(t=l.decoder.write(t),l.objectMode||0!==t.length?C(e,l,t,!1):D(e,l)):C(e,l,t,!1))):n||(l.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(l)}function C(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&R(e)),D(e,t)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=A.destroy,S.prototype._undestroy=A.undestroy,S.prototype._destroy=function(e,t){this.push(null),t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=h.from(e,t),t=""),r=!0),I(this,e,t,!1,r)},S.prototype.unshift=function(e){return I(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){return E||(E=r(454).StringDecoder),this._readableState.decoder=new E(e),this._readableState.encoding=e,this};var N=8388608;function P(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=N?e=N:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function R(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(L,e):L(e))}function L(e){_("emit readable"),e.emit("readable"),F(e)}function D(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(x,e,t))}function x(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(_("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function k(e){_("readable nexttick read 0"),e.read(0)}function M(e,t){t.reading||(_("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),F(e),t.flowing&&!t.reading&&e.read(0)}function F(e){var t=e._readableState;for(_("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var p=t.head,r=1,n=p.data;e-=n.length;for(;p=p.next;){var o=p.data,c=e>o.length?o.length:e;if(c===o.length?n+=o:n+=o.slice(0,e),0===(e-=c)){c===o.length?(++r,p.next?t.head=p.next:t.head=t.tail=null):(t.head=p,p.data=o.slice(c));break}++r}return t.length-=r,n}(e,t):function(e,t){var r=h.allocUnsafe(e),p=t.head,n=1;p.data.copy(r),e-=p.data.length;for(;p=p.next;){var o=p.data,c=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,c),0===(e-=c)){c===o.length?(++n,p.next?t.head=p.next:t.head=t.tail=null):(t.head=p,p.data=o.slice(c));break}++n}return t.length-=n,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function j(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(B,t,e))}function B(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function H(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}S.prototype.read=function(e){_("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):R(this),null;if(0===(e=P(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,o=t.needReadable;return _("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&_("length less than watermark",o=!0),t.ended||t.reading?_("reading or ended",o=!1):o&&(_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=P(r,t))),null===(n=e>0?U(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit
vendor: 1,598 bytes, line 2
2("data",n),n},S.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(e,t){var r=this,c=this._readableState;switch(c.pipesCount){case 0:c.pipes=e;break;case 1:c.pipes=[c.pipes,e];break;default:c.pipes.push(e)}c.pipesCount+=1,_("pipe count=%d opts=%j",c.pipesCount,t);var f=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?m:S;function h(t,n){_("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,_("cleanup"),e.removeListener("close",T),e.removeListener("finish",O),e.removeListener("drain",y),e.removeListener("error",A),e.removeListener("unpipe",h),r.removeListener("end",m),r.removeListener("end",S),r.removeListener("data",w),v=!0,!c.awaitDrain||e._writableState&&!e._writableState.needDrain||y())}function m(){_("onend"),e.end()}c.endEmitted?o.nextTick(f):r.once("end",f),e.on("unpipe",h);var y=function(e){return function(){var t=e._readableState;_("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&d(e,"data")&&(t.flowing=!0,F(e))}}(r);e.on("drain",y);var v=!1;var E=!1;function w(t){_("ondata"),E=!1,!1!==e.write(t)||E||((1===c.pipesCount&&c.pipes===e||c.pipesCount>1&&-1!==H(c.pipes,e))&&!v&&(_("false write response, pause",c.awaitDrain),c.awaitDrain++,E=!0),r.pause())}function A(t){_("onerror",t),S(),e.removeListener("error",A),0===d(e,"error")&&e.emit("error",t)}function T(){e.removeListener("finish",O),S()}function O(){_("onfinish"),e.removeListener("close",T),S()}function S(){_("unpipe"),r.unpipe(e)}return r.on("data",w),function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 4,511 bytes, line 2
2ndListener(t,r);e._events&&e._events[t]?l(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",A),e.once("close",T),e.once("finish",O),e.emit("pipe",r),c.flowing||(_("pipe resume"),r.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var c=H(t.pipes,e);return-1===c||(t.pipes.splice(c,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var r=f.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&R(this):o.nextTick(k,this))}return r},S.prototype.addListener=S.prototype.on,S.prototype.resume=function(){var e=this._readableState;return e.flowing||(_("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(M,e,t))}(this,e)),this},S.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(_("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){(_("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o)||(r.objectMode||o&&o.length)&&(t.push(o)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<T.length;o++)e.on(T[o],this.emit.bind(this,T[o]));return this._read=function(t){_("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=U}).call(this,r(30),r(32))},function(e,t,r){(t=e.exports=r(297)).Stream=t,t.Readable=t,t.Writable=r(203),t.Duplex=r(111),t.Transform=r(299),t.PassThrough=r(455)},function(e,t,r){"use strict";e.exports=l;var n=r(111),o=Object.create(r(159));function c(e,data){var t=this._transformState;t.transforming=!1;var r=t.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));t.writechunk=null,t.writecb=null,null!=data&&this.push(data),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);n.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"==typeof this._flush?this._flush(function(t,data){f(e,t,data)}):f(this,null,null)}function f(e,t,data){if(t)return e.emit("error",t);if(null!=data&&e.push(data),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=r(82),o.inherits(l,n),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},,,,,,,,,function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToBase64URLString=function(e){var t=new Uint8Array(e),r="";for(var n of t)r+=String.fromCharCode(n);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},r(93),r(94),r(7),r(14),r(101),r(95),r(96),r(97),r(98),r(6)},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDomain=function(e){return"localhost"===e||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)},r(7)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebAuthnAbortService=void 0;t.WebAuthnAbortService=new class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){var e=new Error("Cancelling existing WebAuthn API call for new one");e.name="AbortError",this.controller.abort(e)}var t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){var e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.createDefu=f,t.defuFn=t.defuArrayFn=t.defu=t.default=void 0;var o=n(r(8));function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function l(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&(!(Symbol.iterator in e)&&(!(Symbol.toStringTag in e)||"[object Module]"===Object.prototype.toString.call(e)))}function d(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",n=arguments.length>3?arguments[3]:void 0;if(!l(t))return d(e,{},r,n);var object=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t);for(var f of Object.keys(e))if("__proto__"!==f&&"constructor"!==f){var h=e[f];null!=h&&(n&&n(object,f,h,r)||(Array.isArray(h)&&Array.isArray(object[f])?object[f]=[...h,...object[f]]:l(h)&&l(object[f])?object[f]=d(h,object[f],(r?"".concat(r,"."):"")+f.toString(),n):object[f]=h))}return object}function f(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce((p,t)=>d(p,t,"",e),{})}}r(33),r(18),r(6);t.defu=t.default=f(),t.defuFn=f((object,e,t)=>{if(void 0!==object[e]&&"function"==typeof t)return object[e]=t(object[e]),!0}),t.defuArrayFn=f((object,e,t)=>{if(Array.isArray(object[e])&&"function"==typeof t)return object[e]=t(object[e]),!0})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r(99),r(100),r(6),Object.defineProperty(t,"__esModule",{value:!0});var n={createApp:!0,Vue2:!0,isVue2:!0,isVue3:!0,install:!0,warn:!0,Fragment:!0,Transition:!0,TransitionGroup:!0,Teleport:!0,Suspense:!0,KeepAlive:!0,hasInjectionContext:!0,Vue:!0};t.TransitionGroup=t.Transition=t.Teleport=t.Suspense=t.KeepAlive=t.Fragment=void 0,Object.defineProperty(t,"Vue",{enumerable:!0,get:function(){return o.default}}),t.Vue2=void 0,t.createApp=function(e,t){var r,n={},c={config:o.default.config,use:o.default.use.bind(o.default),mixin:o.default.mixin.bind(o.default),component:o.default.component.bind(o.default),provide:function(e,t){return n[e]=t,this},directive:function(e,t){return t?(o.default.directive(e,t),c):o.default.directive(e)},mount:function(c,l){return r||((r=new o.default(Object.assign({propsData:t},e,{provide:Object.assign(n,e.provide)}))).$mount(c,l),r)},unmount:function(){r&&(r.$destroy(),r=void 0)}};return c},t.hasInjectionContext=function(){return!!(0,o.getCurrentInstance)()},t.install=function(){},t.warn=t.isVue3=t.isVue2=void 0;var o=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;
2return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,c={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return c;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,c)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?o(c,l,i):c[l]=e[l]);return c}(e,t)}(r(5));Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});t.isVue2=!0,t.isVue3=!1,t.Vue2=o.default,t.warn=o.default.util.warn;function c(e){return{setup(){throw new Error("[vue-demi] "+e+" is not supported in Vue 2. It's provided to avoid compiler errors.")}}}t.Fragment=c("Fragment"),t.Transition=c("Transition"),t.TransitionGroup=c("TransitionGroup"),t.Teleport=c("Teleport"),t.Suspense=c("Suspense"),t.KeepAlive=c("KeepAlive")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HOOK_SETUP=t.HOOK_PLUGIN_SETTINGS_SET=void 0;t.HOOK_SETUP="devtools-plugin:setup",t.HOOK_PLUGIN_SETTINGS_SET="plugin:settings:set"},function(e,t,r){"use strict";var n,o;function c(){var e;return void 0!==n||("undefined"!=typeof window&&window.performance?(n=!0,o=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(n=!0,o=globalThis.perf_hooks.performance):n=!1),n}Object.defineProperty(t,"__esModule",{value:!0}),t.isPerformanceSupported=c,t.now=function(){return c()?o.now():Date.now()},r(36)},function(e,t,r){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){var t,i,r=l(e),n=r[0],d=r[1],f=new c(function(e,t,r){return 3*(t+r)/4-r}(0,n,d)),h=0,m=d>0?n-4:n;for(i=0;i<m;i+=4)t=o[e.charCodeAt(i)]<<18|o[e.charCodeAt(i+1)]<<12|o[e.charCodeAt(i+2)]<<6|o[e.charCodeAt(i+3)],f[h++]=t>>16&255,f[h++]=t>>8&255,f[h++]=255&t;2===d&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,f[h++]=255&t);1===d&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,f[h++]=t>>8&255,f[h++]=255&t);return f},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,c=[],l=16383,i=0,d=r-o;i<d;i+=l)c.push(f(e,i,i+l>d?d:i+l));1===o?(t=e[r-1],c.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],c.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return c.join("")};for(var n=[],o=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)n[i]=code[i],o[code.charCodeAt(i)]=i;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function d(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,r){for(var n,output=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),output.push(d(n));return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,o){var c,l,d=8*o-n-1,f=(1<<d)-1,h=f>>1,m=-7,i=r?o-1:0,y=r?-1:1,s=e[t+i];for(i+=y,c=s&(1<<-m)-1,s>>=-m,m+=d;m>0;c=256*c+e[t+i],i+=y,m-=8);for(l=c&(1<<-m)-1,c>>=-m,m+=n;m>0;l=256*l+e[t+i],i+=y,m-=8);if(0===c)c=1-h;else{if(c===f)return l?NaN:1/0*(s?-1:1);l+=Math.pow(2,n),c-=h}return(s?-1:1)*l*Math.pow(2,c-n)},t.write=function(e,t,r,n,o,c){var l,d,f,h=8*c-o-1,m=(1<<h)-1,y=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=n?0:c-1,v=n?1:-1,s=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,l=m):(l=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-l))<1&&(l--,f*=2),(t+=l+y>=1?rt/f:rt*Math.pow(2,1-y))*f>=2&&(l++,f/=2),l+y>=m?(d=0,l=m):l+y>=1?(d=(t*f-1)*Math.pow(2,o),l+=y):(d=t*Math.pow(2,y-1)*Math.pow(2,o),l=0));o>=8;e[r+i]=255&d,i+=v,d/=256,o-=8);for(l=l<<o|d,h+=o;h>0;e[r+i]=255&l,i+=v,l/=256,h-=8);e[r+i-v]|=128*s}},function(e,t,r){"use strict";var n,o=r(440),c=r(697),l=r(698),d=r(699),f=r(700),h=r(441),m=r(140),y=r(701),v=r(702),_=r(703),E=r(704),w=r(705),A=r(706),T=r(707),O=r(708),S=Function,I=function(e){try{return S('"use strict"; return ('+e+").constructor;")()}catch(e){}},C=r(142),N=r(201),P=function(){throw new m},R=C?function(){try{return P}catch(e){try{return C(arguments,"callee").get}catch(e){return P}}}():P,L=r(711)(),D=r(291),x=r(444),k=r(443),M=r(294),F=r(293),U={},j="undefined"!=typeof Uint8Array&&D?D(Uint8Array):n,B={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":L&&D?D([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":U,"%AsyncGenerator%":U,"%AsyncGeneratorFunction%":U,"%AsyncIteratorPrototype%":U,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":c,"%eval%":eval,"%EvalError%":l,"%Float16Array%":"undefined"==typeof Float16Array?n:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":U,"%
2Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L&&D?D(D([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&L&&D?D((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":o,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":d,"%ReferenceError%":f,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&L&&D?D((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L&&D?D(""[Symbol.iterator]()):n,"%Symbol%":L?Symbol:n,"%SyntaxError%":h,"%ThrowTypeError%":R,"%TypedArray%":j,"%TypeError%":m,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":y,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet,"%Function.prototype.call%":F,"%Function.prototype.apply%":M,"%Object.defineProperty%":N,"%Object.getPrototypeOf%":x,"%Math.abs%":v,"%Math.floor%":_,"%Math.max%":E,"%Math.min%":w,"%Math.pow%":A,"%Math.round%":T,"%Math.sign%":O,"%Reflect.getPrototypeOf%":k};if(D)try{null.error}catch(e){var H=D(D(e));B["%Error.prototype%"]=H}var V=function e(t){var r;if("%AsyncFunction%"===t)r=I("async function () {}");else if("%GeneratorFunction%"===t)r=I("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=I("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&D&&(r=D(o.prototype))}return B[t]=r,r},z={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Y=r(158),$=r(446),W=Y.call(F,Array.prototype.concat),K=Y.call(M,Array.prototype.splice),G=Y.call(F,String.prototype.replace),Q=Y.call(F,String.prototype.slice),X=Y.call(F,RegExp.prototype.exec),J=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,ee=function(e,t){var r,n=e;if($(z,n)&&(n="%"+(r=z[n])[0]+"%"),$(B,n)){var o=B[n];
2if(o===U&&(o=V(n)),void 0===o&&!t)throw new m("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new h("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new m("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new m('"allowMissing" argument must be a boolean');if(null===X(/^%?[^%]*%?$/,e))throw new h("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=Q(e,0,1),r=Q(e,-1);if("%"===t&&"%"!==r)throw new h("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new h("invalid intrinsic syntax, expected opening `%`");var n=[];return G(e,J,function(e,t,r,o){n[n.length]=r?G(o,Z,"$1"):t||e}),n}(e),n=r.length>0?r[0]:"",o=ee("%"+n+"%",t),c=o.name,l=o.value,d=!1,f=o.alias;f&&(n=f[0],K(r,W([0,1],f)));for(var i=1,y=!0;i<r.length;i+=1){var v=r[i],_=Q(v,0,1),E=Q(v,-1);if(('"'===_||"'"===_||"`"===_||'"'===E||"'"===E||"`"===E)&&_!==E)throw new h("property names with quotes must have matching quotes");if("constructor"!==v&&y||(d=!0),$(B,c="%"+(n+="."+v)+"%"))l=B[c];else if(null!=l){if(!(v in l)){if(!t)throw new m("base intrinsic for "+e+" exists, but the property is not available.");return}if(C&&i+1>=r.length){var desc=C(l,v);l=(y=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:l[v]}else y=$(l,v),l=l[v];y&&!d&&(B[c]=l)}}return l}},function(e,t,r){"use strict";e.exports=Object},function(e,t,r){"use strict";e.exports=SyntaxError},function(e,t,r){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var c=Object.getOwnPropertyDescriptor(e,t);if(42!==c.value||!0!==c.enumerable)return!1}return!0}},function(e,t,r){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},function(e,t,r){"use strict";var n=r(440);e.exports=n.getPrototypeOf||null},function(e,t,r){"use strict";var n=r(158),o=r(294),c=r(293),l=r(714);e.exports=l||n.call(c,o)},function(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty,c=r(158);e.exports=c.call(n,o)},function(e,t,r){"use strict";var n=r(448);e.exports=function(e){return!!n(e)}},function(e,t,r){"use strict";(function(t){var n=r(715),o=r(717),c=r(719),l=r(141),d=r(142),f=r(291),h=l("Object.prototype.toString"),m=r(202)(),g="undefined"==typeof globalThis?t:globalThis,y=o(),v=l("String.prototype.slice"),_=l("Array.prototype.indexOf",!0)||function(e,t){for(var i=0;i<e.length;i+=1)if(e[i]===t)return i;return-1},E={__proto__:null};n(y,m&&d&&f?function(e){var t=new g[e];if(Symbol.toStringTag in t&&f){var r=f(t),n=d(r,Symbol.toStringTag);if(!n&&r){var o=f(r);n=d(o,Symbol.toStringTag)}if(n&&n.get){var l=c(n.get);E["$"+e]=l}}}:function(e){var t=new g[e],r=t.slice||t.set;if(r){var n=c(r);E["$"+e]=n}}),e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!m){var t=v(h(e),8,-1);return function(e){return _(y,e)>-1}(t)?t:"Object"===t&&function(e){var t=!1;return n(E,function(r,n){if(!t)try{r(e),t=v(n,1)}catch(e){}}),t}(e)}return d?function(e){var t=!1;return n(E,function(r,n){if(!t)try{"$"+r(e)===n&&(t=v(n,1))}catch(e){}}),t}(e):null}}).call(this,r(30))},function(e,t,r){(function(n){var o=r(450);"disable"===n.env.READABLE_STREAM&&o?(e.exports=o,(t=e.exports=o.Readable).Readable=o.Readable,t.Writable=o.Writable,t.Duplex=o.Duplex,t.Transform=o.Transform,t.PassThrough=o.PassThrough,t.Stream=o):((t=e.exp
vendor: 4,322 bytes, line 2
2orts=r(297)).Stream=o||t,t.Readable=t,t.Writable=r(203),t.Duplex=r(111),t.Transform=r(299),t.PassThrough=r(455))}).call(this,r(32))},function(e,t,r){e.exports=o;var n=r(295).EventEmitter;function o(){n.call(this)}r(82)(o,n),o.Readable=r(449),o.Writable=r(724),o.Duplex=r(736),o.Transform=r(737),o.PassThrough=r(738),o.Stream=o,o.prototype.pipe=function(e,t){var source=this;function r(t){e.writable&&!1===e.write(t)&&source.pause&&source.pause()}function o(){source.readable&&source.resume&&source.resume()}source.on("data",r),e.on("drain",o),e._isStdio||t&&!1===t.end||(source.on("end",l),source.on("close",d));var c=!1;function l(){c||(c=!0,e.end())}function d(){c||(c=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(h(),0===n.listenerCount(this,"error"))throw e}function h(){source.removeListener("data",r),e.removeListener("drain",o),source.removeListener("end",l),source.removeListener("close",d),source.removeListener("error",f),e.removeListener("error",f),source.removeListener("end",h),source.removeListener("close",h),e.removeListener("close",h)}return source.on("error",f),e.on("error",f),source.on("end",h),source.on("close",h),e.on("close",h),e.emit("pipe",source),e}},function(e,t,r){e.exports=r(295).EventEmitter},function(e,t,r){"use strict";var n=r(204);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,c=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return c||l?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(o,r,e)):n.nextTick(o,r,e):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++)r[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return r},o=/%[sdj%]/g;t.format=function(e){if(!O(e)){for(var t=[],i=0;i<arguments.length;i++)t.push(f(arguments[i]));return t.join(" ")}i=1;for(var r=arguments,n=r.length,c=String(e).replace(o,function(e){if("%%"===e)return"%";if(i>=n)return e;switch(e){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch(e){return"[Circular]"}default:return e}}),l=r[i];i<n;l=r[++i])A(l)||!C(l)?c+=" "+l:c+=" "+f(l);return c},t.deprecate=function(r,n){if(void 0!==e&&!0===e.noDeprecation)return r;if(void 0===e)return function(){return t.deprecate(r,n).apply(this,arguments)};var o=!1;return function(){if(!o){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),o=!0}return r.apply(this,arguments)}};var c={},l=/^$/;if(e.env.NODE_DEBUG){var d=e.env.NODE_DEBUG;d=d.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),l=new RegExp("^"+d+"$","i")}function f(e,r){var n={seen:[],stylize:m};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),w(r)?n.showHidden=r:r&&t._extend(n,r),S(n.showHidden)&&(n.showHidden=!1),S(n.depth)&&(n.depth=2),S(n.colors)&&(n.colors=!1),S(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=h),y(n,e,n.depth)}function h(e,t){var style=f.styles[t];return style?"�["+f.colors[style][0]+"m"+e+"�["+f.colors[style][1]+"m":e}function m(e,t){return e}function y(e,r,n){if(e.customInspect&&r&&R(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return O(o)||(o=y(e,o,n)),o}var c=function(e,t){if(S(t))return e.stylize("undefined","undefined");if(O(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";
vendor: 5,042 bytes, line 2
2return e.stylize(r,"string")}if(T(t))return e.stylize(""+t,"number");if(w(t))return e.stylize(""+t,"boolean");if(A(t))return e.stylize("null","null")}(e,r);if(c)return c;var l=Object.keys(r),d=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(l);if(e.showHidden&&(l=Object.getOwnPropertyNames(r)),P(r)&&(l.indexOf("message")>=0||l.indexOf("description")>=0))return v(r);if(0===l.length){if(R(r)){var f=r.name?": "+r.name:"";return e.stylize("[Function"+f+"]","special")}if(I(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(N(r))return e.stylize(Date.prototype.toString.call(r),"date");if(P(r))return v(r)}var output,base="",h=!1,m=["{","}"];(E(r)&&(h=!0,m=["[","]"]),R(r))&&(base=" [Function"+(r.name?": "+r.name:"")+"]");return I(r)&&(base=" "+RegExp.prototype.toString.call(r)),N(r)&&(base=" "+Date.prototype.toUTCString.call(r)),P(r)&&(base=" "+v(r)),0!==l.length||h&&0!=r.length?n<0?I(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),output=h?function(e,t,r,n,o){for(var output=[],i=0,c=t.length;i<c;++i)k(t,String(i))?output.push(_(e,t,r,n,String(i),!0)):output.push("");return o.forEach(function(o){o.match(/^\d+$/)||output.push(_(e,t,r,n,o,!0))}),output}(e,r,n,d,l):l.map(function(t){return _(e,r,n,d,t,h)}),e.seen.pop(),function(output,base,e){var t=output.reduce(function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);if(t>60)return e[0]+(""===base?"":base+"\n ")+" "+output.join(",\n  ")+" "+e[1];return e[0]+base+" "+output.join(", ")+" "+e[1]}(output,base,m)):m[0]+base+m[1]}function v(e){return"["+Error.prototype.toString.call(e)+"]"}function _(e,t,r,n,o,c){var l,d,desc;if((desc=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?d=desc.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):desc.set&&(d=e.stylize("[Setter]","special")),k(n,o)||(l="["+o+"]"),d||(e.seen.indexOf(desc.value)<0?(d=A(r)?y(e,desc.value,null):y(e,desc.value,r-1)).indexOf("\n")>-1&&(d=c?d.split("\n").map(function(line){return"  "+line}).join("\n").slice(2):"\n"+d.split("\n").map(function(line){return"   "+line}).join("\n")):d=e.stylize("[Circular]","special")),S(l)){if(c&&o.match(/^\d+$/))return d;(l=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(l=l.slice(1,-1),l=e.stylize(l,"name")):(l=l.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),l=e.stylize(l,"string"))}return l+": "+d}function E(e){return Array.isArray(e)}function w(e){return"boolean"==typeof e}function A(e){return null===e}function T(e){return"number"==typeof e}function O(e){return"string"==typeof e}function S(e){return void 0===e}function I(e){return C(e)&&"[object RegExp]"===L(e)}function C(e){return"object"==typeof e&&null!==e}function N(e){return C(e)&&"[object Date]"===L(e)}function P(e){return C(e)&&("[object Error]"===L(e)||e instanceof Error)}function R(e){return"function"==typeof e}function L(e){return Object.prototype.toString.call(e)}function D(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(r=r.toUpperCase(),!c[r])if(l.test(r)){var n=e.pid;c[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else c[r]=function(){};return c[r]},t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=r(727),t.isArray=E,t.isBoolean=w,t.isNull=A,t.isNullOrUndefined=function(e){return null==e},t.isNumber=T,t.isString=O,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=S,t.isRegExp=I,t.types.isRegExp=I,t.isObject=C,t.isDate=N,t.types.isDate=N,t.isError=P,t.types.isNativeError=P,t.isFunction=R,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(733);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,time;console.log("%s - %s",(e=new Date,time=[D(e.getHours()),D(e.getMinutes()),D(e.getSeconds())].join(":"),[e.getDate(),x[e.getMonth()],time].join(" ")),t.format.apply(t,arguments))},t.inherits=r(82),t._extend=function(e,t){if(!t||!C(t))return e;for(var r=Object.keys(t),i=r.length;i--;)e[r[i]]=t[r[i]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function F(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,
vendor: 4,938 bytes, line 2
2configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,n){e?r(e):t(n)});try{e.apply(this,o)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=M,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var o=this,c=function(){return n.apply(o,arguments)};t.apply(this,r).then(function(t){e.nextTick(c.bind(null,null,t))},function(t){e.nextTick(F.bind(null,t,c))})}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,n(t)),r}}).call(this,r(32))},function(e,t,r){"use strict";var n=r(735).Buffer,o=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function c(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=f,this.end=h,t=4;break;case"utf8":this.fillLast=d,t=4;break;case"base64":this.text=m,this.end=y,t=3;break;default:return this.write=v,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function l(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function d(e){var p=this.lastTotal-this.lastNeed,t=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==t?t:this.lastNeed<=e.length?(e.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,p,0,e.length),void(this.lastNeed-=e.length))}function f(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var r=t.charCodeAt(t.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",i,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function m(e,i){var t=(e.length-i)%3;return 0===t?e.toString("base64",i):(this.lastNeed=3-t,this.lastTotal=3,1===t?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",i,e.length-t))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function v(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):""}t.StringDecoder=c,c.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},c.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},c.prototype.text=function(e,i){var t=function(e,t,i){var r=t.length-1;if(r<i)return 0;var n=l(t[r]);if(n>=0)return n>0&&(e.lastNeed=n-1),n;if(--r<i||-2===n)return 0;if(n=l(t[r]),n>=0)return n>0&&(e.lastNeed=n-2),n;if(--r<i||-2===n)return 0;if(n=l(t[r]),n>=0)return n>0&&(2===n?n=0:e.lastNeed=n-3),n;return 0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var r=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",i,r)},c.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){"use strict";e.exports=c;var n=r(299),o=Object.create(r(159));function c(e){if(!(this instanceof c))return new c(e);n.call(this,e)}o.inherits=r(82),o.inherits(c,n),c.prototype._transform=function(e,t,r){r(null,e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(3);
2Object.defineProperty(t,"__esModule",{value:!0}),t.toPublicKeyCredentialDescriptor=function(e){var t=e.id;return d(d({},e),{},{id:(0,c.base64URLStringToBuffer)(t),transports:e.transports,type:e.type})};var o=n(r(8)),c=r(206);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toAuthenticatorAttachment=function(e){if(!e)return;if(n.indexOf(e)<0)return;return e};var n=["cross-platform","platform"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._browserSupportsWebAuthnAutofillInternals=void 0,t.browserSupportsWebAuthnAutofill=function(){if(!(0,n.browserSupportsWebAuthn)())return o.stubThis(new Promise(e=>e(!1)));var e=globalThis.PublicKeyCredential;if(void 0===(null==e?void 0:e.isConditionalMediationAvailable))return o.stubThis(new Promise(e=>e(!1)));return o.stubThis(e.isConditionalMediationAvailable())},r(36);var n=r(143);var o=t._browserSupportsWebAuthnAutofillInternals={stubThis:e=>e}},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t._getBrowserCapabilitiesInternals=void 0,t.getBrowserCapabilities=function(){return c.apply(this,arguments)};var o=n(r(10));function c(){return(c=(0,o.default)(function*(){if("function"==typeof PublicKeyCredential.getClientCapabilities){var e=yield PublicKeyCredential.getClientCapabilities(),t=l(e.userVerifyingPlatformAuthenticator);if("unknown"===t&&"function"==typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable)t=(yield PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable())?"supported":"unsupported";var r=l(e.conditionalGet);if("unknown"===r&&"function"==typeof PublicKeyCredential.isConditionalMediationAvailable)r=(yield PublicKeyCredential.isConditionalMediationAvailable())?"supported":"unsupported";return d.stubThis({conditionalCreate:l(e.conditionalCreate),conditionalGet:r,hybridTransport:l(e.hybridTransport),passkeyPlatformAuthenticator:l(e.passkeyPlatformAuthenticator),userVerifyingPlatformAuthenticator:t,relatedOrigins:l(e.relatedOrigins),signalAllAcceptedCredentials:l(e.signalAllAcceptedCredentials),signalCurrentUserDetails:l(e.signalCurrentUserDetails),signalUnknownCredential:l(e.signalUnknownCredential)})}return d.stubThis({conditionalCreate:"unknown",conditionalGet:"unknown",hybridTransport:"unknown",passkeyPlatformAuthenticator:"unknown",userVerifyingPlatformAuthenticator:"unknown",relatedOrigins:"unknown",signalAllAcceptedCredentials:"unknown",signalCurrentUserDetails:"unknown",signalUnknownCredential:"unknown"})})).apply(this,arguments)}function l(e){if(!0===e)return"supported";if(!1===e)return"unsupported";if(void 0===e)return"unknown";throw new Error("Unexpected capability value:",e)}var d=t._getBrowserCapabilitiesInternals={stubThis:e=>e}},,function(e,t,r){"use strict";(function(e){var n=r(437),o=r(438),c=r(831);function l(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(e,t){if(l()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=f.prototype:(null===e&&(e=new f(t)),e.length=t),e}function f(e,t,r){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return y(this,e)}return h(this,e,t,r)}function h(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);f.TYPED_ARRAY_SUPPORT?(e=t).__proto__=f.prototype:e=v(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!f.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|E(t,r);e=d(e,n);var o=e.write(t,r);o!==n&&(e=e.slice(0,o));return e}(e,t,r):function(e,t){if(f.isBuffer(t)){var r=0|_(t.length);return 0===(e=d(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?d(e,0):v(e,t);if("Buffer"===t.type&&c(t.data))return v(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function m(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function y(e,t){if(m(t),e=d(e,t<0?0:0|_(t)),!f.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function v(e,t){var r=t.length<0?0:0|_(t.length);e=d(e,r);for(var i=0;i<r;i+=1)e[i]=255&t[i];return e}function _(e){if(e>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function E(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 9,397 bytes, line 2
2(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(e).length;default:if(n)return G(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,r);case"utf8":case"utf-8":return D(this,t,r);case"ascii":return k(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return L(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function A(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function T(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:O(e,t,r,n,o);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):O(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function O(e,t,r,n,o){var i,c=1,l=e.length,d=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;c=2,l/=2,d/=2,r/=2}function f(e,i){return 1===c?e[i]:e.readUInt16BE(i*c)}if(o){var h=-1;for(i=r;i<l;i++)if(f(e,i)===f(t,-1===h?0:i-h)){if(-1===h&&(h=i),i-h+1===d)return h*c}else-1!==h&&(i-=i-h),h=-1}else for(r+d>l&&(r=l-d),i=r;i>=0;i--){for(var m=!0,y=0;y<d;y++)if(f(e,i+y)!==f(t,y)){m=!1;break}if(m)return i}return-1}function S(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var c=t.length;if(c%2!=0)throw new TypeError("Invalid hex string");n>c/2&&(n=c/2);for(var i=0;i<n;++i){var l=parseInt(t.substr(2*i,2),16);if(isNaN(l))return i;e[r+i]=l}return i}function I(e,t,r,n){return X(G(t,e.length-r),e,r,n)}function C(e,t,r,n){return X(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,r,n)}function N(e,t,r,n){return C(e,t,r,n)}function P(e,t,r,n){return X(Q(t),e,r,n)}function R(e,t,r,n){return X(function(e,t){for(var r,n,o,c=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o=r%256,c.push(o),c.push(n);return c}(t,e.length-r),e,r,n)}function L(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function D(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,c,l,d,f=e[i],h=null,m=f>239?4:f>223?3:f>191?2:1;if(i+m<=r)switch(m){case 1:f<128&&(h=f);break;case 2:128==(192&(o=e[i+1]))&&(d=(31&f)<<6|63&o)>127&&(h=d);break;case 3:o=e[i+1],c=e[i+2],128==(192&o)&&128==(192&c)&&(d=(15&f)<<12|(63&o)<<6|63&c)>2047&&(d<55296||d>57343)&&(h=d);break;case 4:o=e[i+1],c=e[i+2],l=e[i+3],128==(192&o)&&128==(192&c)&&128==(192&l)&&(d=(15&f)<<18|(63&o)<<12|(63&c)<<6|63&l)>65535&&d<1114112&&(h=d)}null===h?(h=65533,m=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=m}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r="",i=0;for(;i<t;)r+=String.fromCharCode.apply(String,e.slice(i,i+=x));return r}(n)}t.Buffer=f,t.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},t.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=l(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,r){return h(null,e,t,r)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(e,t,r){return function(e,t,r,n){return m(t),t<=0?d(e,t):void 0!==r?"string"==typeof n?d(e,t).fill(r,n):d(e,t).fill(r):d(e,t)}(null,e,t,r)},f.allocUnsafe=function(e){return y(null,e)},f.allocUnsafeSlow=function(e){return y(null,e)},f.isBuffer=function(b){return!(null==b||!b._isBuffer)},f.compare=function(a,b){if(!f.isBuffer(a)||!f.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var e=a.length,t=b.length,i=0,r=Math.min(e,t);i<r;++i)if(a[i]!==b[i]){e=a[i],t=b[i];break}return e<t?-1:t<e?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!c(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var r=f.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var o=e[i];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,n),n+=o.length}return r},f.byteLength=E,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<e;i+=2)A(this,i,i+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<e;i+=4)A(this,i,i+3),A(this,i+1,i+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<e;i+=8)A(this,i,i+7),A(this,i+1,i+6),A(this,i+2,i+5),A(this,i+3,i+4);return this},f.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?D(this,0,e):w.apply(this,arguments)},f.prototype.equals=function(b){if(!f.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===f.compare(this,b)},f.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,r,n,o){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var c=(o>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0),d=Math.min(c,l),h=this.slice(n,o),m=e.slice(t,r),i=0;i<d;++i)if(h[i]!==m[i]){c=h[i],l=m[i];break}return c<l?-1:l<c?1:0},f.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return T(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return T(this,e,t,r,!1)},f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var c=!1;;)switch(n){case"hex":return S(this,e,t,r);case"utf8":case"utf-8":return I(this,e,t,r);case"ascii":return C(this,e,t,r);case"latin1":case"binary":return N(this,e,t,r);case"base64":return P(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,t,r);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function k(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function F(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=K(e[i]);return o}function U(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function j(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,r,n,o,c){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<c)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function H(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function V(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>
vendor: 7,094 bytes, line 2
2>8*(n?i:3-i)&255}function z(e,t,r,n,o,c){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Y(e,t,r,n,c){return c||z(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function $(e,t,r,n,c){return c||z(e,0,r,8),o.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),f.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=f.prototype;else{var o=t-e;r=new f(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},f.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||j(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},f.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||j(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},f.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||j(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||j(e,t,this.length);for(var i=t,n=1,o=this[e+--i];i>0&&(n*=256);)o+=this[e+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||B(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||B(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):H(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):H(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):V(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):V(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);B(this,e,t,r,o-1,-o)}var i=0,c=1,sub=0;for(this[t]=255&e;++i<r&&(c*=256);)e<0&&0===sub&&0!==this[t+i-1]&&(sub=1),this[t+i]=(e/c|0)-sub&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);B(this,e,t,r,o-1,-o)}var i=r-1,c=1,sub=0;for(this[t+i]=255&e;--i>=0&&(c*=256);)e<0&&0===sub&&0!==this[t+i+1]&&(sub=1),this[t+i]=(e/c|0)-sub&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):H(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):H(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):V(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):V(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return Y(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return Y(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return $(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return $(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var code=e.charCodeAt(0);code<256&&(e=code)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=f.isBuffer(e)?e:G(new f(e,n).toString()),c=o.length;for(i=0;i<r-t;++i)this[i+t]=o[i%c]}return this};var W=/[^+\/0-9A-Za-z-_]/g;function K(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){var r;t=t||1/0;for(var n=e.length,o=null,c=[],i=0;i<n;++i){if((r=e.charCodeAt(i))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>
2-1&&c.push(239,191,189);continue}if(i+1===n){(t-=3)>-1&&c.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&c.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&c.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;c.push(r)}else if(r<2048){if((t-=2)<0)break;c.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;c.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return c}function Q(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(30))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r=new n,l=t||{},d=l.decode||o,f=0;for(;f<e.length;){var h=e.indexOf("=",f);if(-1===h)break;var m=e.indexOf(";",f);if(-1===m)m=e.length;else if(m<h){f=e.lastIndexOf(";",h-1)+1;continue}var y=e.slice(f,h).trim();
2if(null==l||!l.filter||null!=l&&l.filter(y)){if(void 0===r[y]){var v=e.slice(h+1,m).trim();34===v.codePointAt(0)&&(v=v.slice(1,-1)),r[y]=c(v,d)}f=m+1}else f=m+1}return r},t.parseSetCookie=function(e,t){var r=(e||"").split(";").filter(e=>"string"==typeof e&&!!e.trim()),n=function(e){var t="",r="",n=e.split("=");n.length>1?(t=n.shift(),r=n.join("=")):r=e;return{name:t,value:r}}(r.shift()||""),o=n.name,c=n.value;try{c=!1===(null==t?void 0:t.decode)?c:((null==t?void 0:t.decode)||decodeURIComponent)(c)}catch(e){}var l={name:o,value:c};for(var d of r){var f=d.split("="),h=(f.shift()||"").trimStart().toLowerCase(),m=f.join("=");switch(h){case"expires":l.expires=new Date(m);break;case"max-age":l.maxAge=Number.parseInt(m,10);break;case"secure":l.secure=!0;break;case"httponly":l.httpOnly=!0;break;case"samesite":l.sameSite=m;break;default:l[h]=m}}return l},t.serialize=function(e,t,r){var n=r||{},o=n.encode||encodeURIComponent;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!l.test(e))throw new TypeError("argument name is invalid");var c=o(t);if(c&&!l.test(c))throw new TypeError("argument val is invalid");var d=e+"="+c;if(void 0!==n.maxAge&&null!==n.maxAge){var f=n.maxAge-0;if(Number.isNaN(f)||!Number.isFinite(f))throw new TypeError("option maxAge is invalid");d+="; Max-Age="+Math.floor(f)}if(n.domain){if(!l.test(n.domain))throw new TypeError("option domain is invalid");d+="; Domain="+n.domain}if(n.path){if(!l.test(n.path))throw new TypeError("option path is invalid");d+="; Path="+n.path}if(n.expires){if(h=n.expires,!("[object Date]"===Object.prototype.toString.call(h)||h instanceof Date)||Number.isNaN(n.expires.valueOf()))throw new TypeError("option expires is invali
2d");d+="; Expires="+n.expires.toUTCString()}var h;n.httpOnly&&(d+="; HttpOnly");n.secure&&(d+="; Secure");if(n.priority){switch("string"==typeof n.priority?n.priority.toLowerCase():n.priority){case"low":d+="; Priority=Low";break;case"medium":d+="; Priority=Medium";break;case"high":d+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(n.sameSite){switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}n.partitioned&&(d+="; Partitioned");return d},t.splitSetCookieString=function e(t){if(Array.isArray(t))return t.flatMap(t=>e(t));if("string"!=typeof t)return[];var r,n,o,c,l,d=[],f=0,h=()=>{for(;f<t.length&&/\s/.test(t.charAt(f));)f+=1;return f<t.length},m=()=>"="!==(n=t.charAt(f))&&";"!==n&&","!==n;for(;f<t.length;){for(r=f,l=!1;h();)if(","===(n=t.charAt(f))){for(o=f,f+=1,h(),c=f;f<t.length&&m();)f+=1;f<t.length&&"="===t.charAt(f)?(l=!0,f=c,d.push(t.slice(r,o)),r=f):f=o+1}else f+=1;(!l||f>=t.length)&&d.push(t.slice(r))}return d},r(387),r(15),r(388),r(145),r(7),r(18),r(17),r(35),r(835),r(6);var n=(()=>{var e=function(){};return e.prototype=Object.create(null),e})();function o(e){return e.includes("%")?decodeURIComponent(e):e}function c(e,t){try{return t(e)}catch(t){return e}}var l=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/},,function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return d}),r.d(t,"destr",function(){return d}),r.d(t,"safeDestr",function(){return f});const n=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,o=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,c=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function l(e,t){if(!("__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t))return t;!function(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}(e)}function d(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!c.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(n.test(e)||o.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,l)}return JSON.parse(e)}catch(r){if(t.strict)throw r;return e}}function f(e,t={}){return d(e,{...t,strict:!0})}},,,,,,,,function(e,t,r){"use strict";function n(e,t={},r){for(const o in e){const c=e[o],l=r?`${r}:${o}`:o;"object"==typeof c&&null!==c?n(c,t,l):"function"==typeof c&&(t[l]=c)}return t}function o(...e){const t={};for(const r of e){const e=n(r);for(const r in e)t[r]?t[r].push(e[r]):t[r]=[e[r]]}for(const e in t)if(t[e].length>1){const r=t[e];t[e]=(...e)=>c(r,t=>t(...e))}else t[e]=t[e][0];return t}function c(e,t){return e.reduce((e,r)=>e.then(()=>t(r)),Promise.resolve())}r.r(t),r.d(t,"Hookable",function(){return _}),r.d(t,"createDebugger",function(){return A}),r.d(t,"createHooks",function(){return E}),r.d(t,"flatHooks",function(){return n}),r.d(t,"mergeHooks",function(){return o}),r.d(t,"parallelCaller",function(){return y}),r.d(t,"serial",function(){return c}),r.d(t,"serialCaller",function(){return m});const l={run:e=>e()},d=void 0!==console.createTask?console.createTask:()=>l;function f(e,t){const r=t.shift(),n=d(r);return e.reduce((e,r)=>e.then(()=>n.run(()=>r(...t))),Promise.resolve())}function h(e,t){const r=t.shift(),n=d(r);return Promise.all(e.map(e=>n.run(()=>e(...t))))}function m(e,t){return e.reduce((e,r)=>e.then(()=>r(...t||[])),Promise.resolve())}function y(e,t){return Promise.all(e.map(e=>e(...t||[])))}function v(e,t){for(const r of[...e])r(t)}class _{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,r={}){if(!e||"function"!=typeof t)return()=>{};const n=e;let o;for(;this._deprecatedHooks[e];)o=this._deprecatedHooks[e],e=o.to;if(o&&!r.allowDeprecated){let e=o.message;e||(e=`${n} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let r,n=(...e)=>("function"==typeof r&&r(),r=void 0,n=void 0,t(...e));return r=this.hook(e,n),r}removeHook(e,t){if(this._hooks[e]){const r=this._hooks[e].indexOf(t);-1!==r&&this._hooks[e].splice(r,1),0===this._hooks[e].length&&delete this._hooks[e]}}deprecateHook(e,t){this._deprecatedHooks[e]="string"==typeof t?{to:t}:t;const r=this._hooks[e]||[];delete this._hooks[e];for(const t of r)this.hook(e,t)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=n(e),r=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(const e of r.splice(0,r.length))e()}}removeHooks(e){const t=n(e);for(const e in t)this.removeHook(e,t[e])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...t){return t.unshift(e),this.callHookWith(f,e,...t)}callHookParallel(e,...t){return t.unshift(e),this.callHookWith(h,e,...t)}callHookWith(e,t,...r){const n=this._before||this._after?{name:t,args:r,context:{}}:void 0;this._before&&v(this._before,n);const o=e(t in this._hooks?[...this._hooks[t]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&n&&v(this._after,n)}):(this._after&&n&&v(this._after,n),o)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(void 0!==this._before){const t=this._before.indexOf(e);-1!==t&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(void 0!==this._after){const t=this._after.indexOf(e);-1!==t&&this._after.splice(t,1)}}}}function E(){return new _}const w="undefined"!=typeof window;function A(e,t={}){const r={inspect:w,group:w,filter:()=>!0,...t},n=r.filter,filter="string"==typeof n?e=>e.startsWith(n):n,o=r.tag?`[${r.tag}] `:"",c=e=>o+e.name+"".padEnd(e._id,"\0"),l={},d=e.beforeEach(e=>{(void 0===filter||filter(e.name))&&(l[e.name]=l[e.name]||0,e._id=l[e.name]++,console.time(c(e)))}),f=e.afterEach(e=>{(void 0===filter||filter(e.name))&&(r.group&&console.groupCollapsed(e.name),r.inspect?console.timeLog(c(e),e.args):console.timeEnd(c(e)),r.group&&console.groupEnd(),l[e.name]--)});return{close:()=>{d(),f()}}}},,function(e,t,r){"use strict";var n=r(3);
2Object.defineProperty(t,"__esModule",{value:!0}),t.useCookie=function(e,t){var r,n,o,d=y(y({},v),t),m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.parse)(document.cookie,e)}(d)||{};void 0!==d.maxAge?o=1e3*d.maxAge:d.expires&&(o=d.expires.getTime()-Date.now());var E=void 0!==o&&o<=0,w=E||void 0===m[e]||null===m[e],A=(0,h.klona)(E?void 0:null!==(r=m[e])&&void 0!==r?r:null===(n=d.default)||void 0===n?void 0:n.call(d)),T=o&&!E?function(e,t,r){var n,o,l=0,d=r?(0,c.ref)(e):{value:e};(0,c.getCurrentScope)()&&(0,c.onScopeDispose)(()=>{var e;null===(e=o)||void 0===e||e(),clearTimeout(n)});return(0,c.customRef)((track,e)=>{function f(){clearTimeout(n);var r=t-l,o=r<_?r:_;n=setTimeout(()=>{if((l+=o)<t)return f();d.value=void 0,e()},o)}return r&&(o=(0,c.watch)(d,e)),{get:()=>(track(),d.value),set(t){f(),d.value=t,e()}}})}(A,o,d.watch&&"shallow"!==d.watch):(0,c.ref)(A);0;var O=null;try{"undefined"!=typeof BroadcastChannel&&(O=new BroadcastChannel("nuxt:cookies:".concat(e)))}catch(e){}var S=function(){var t;(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||!d.readonly&&!(0,f.isEqual)(T.value,m[e]))&&(!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};document.cookie=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return(0,l.serialize)(e,t,y(y({},r),{},{maxAge:-1}));return(0,l.serialize)(e,t,r)}(e,t,r)}(e,T.value,d),null===(t=O)||void 0===t||t.postMessage(d.encode(T.value)))},I=!1;(0,c.getCurrentScope)()&&(0,c.onScopeDispose)(()=>{var e;I=!0,S(),null===(e=O)||void 0===e||e.close()}),O&&(O.onmessage=t=>{I=!0,m[e]=T.value=d.decode(t.data),(0,c.nextTick)(()=>{I=!1})}),d.watch&&(0,c.watch)(T,()=>{I||S()},{deep:"shallow"!==d.watch}),w&&S(w);return T};var o=n(r(8)),c=r(5),l=r(546),d=(r(163),r(548)),f=r(876),h=r(879);r(78),r(210);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v={path:"/",watch:!0,decode:e=>(0,d.destr)(decodeURIComponent(e)),encode:e=>encodeURIComponent("string"==typeof e?e:JSON.stringify(e))};var _=2147483647},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.isEqual=function(e,t){return e===t||d(e)===d(t)},t.serialize=d;var o=n(r(25)),c=n(r(877)),l=n(r(878));function d(input){return"string"==typeof input?"'".concat(input,"'"):(new m).serialize(input)}r(79),r(93),r(94),r(7),r(18),r(14),r(101),r(95),r(96),r(97),r(98),r(36),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(127),r(128),r(129),r(130),r(6);var f=function(){for(var e=new Uint8Array(128),i=0;i<69;i++)e[" _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz".charCodeAt(i)]=i+1;for(var code=65;code<=90;code++)e[code]=e[code+32];return e}();function h(a,b){if(a===b)return 0;for(var e=Math.min(a.length,b.length),t=0,i=0;i<e;i++){var r=a.charCodeAt(i),n=b.charCodeAt(i);if(r!==n){var o=r<128&&f[r]?f[r]:r+128,c=n<128&&f[n]?f[n]:n+128;if(o!==c)return o<c?-1:1;0===t&&(t=r>n?-1:1)}}return a.length!==b.length?a.length<b.length?-1:1:t}var m=function(){var e=(0,l.default)("context");class t{constructor(){Object.defineProperty(this,e,{writable:!0,value:new Map})}compare(a,b){var e=typeof a,t=typeof b;return"string"===e&&"string"===t?h(a,b):"number"===e&&"number"===t?a-b:h(this.serialize(a,!0),this.serialize(b,!0))}serialize(e,t){if(null===e)return"null";switch(typeof e){case"string":return t?e:"'".concat(e,"'");case"bigint":return"".concat(e,"n");case"object":return this.$object(e);case"function":return this.$function(e)}return String(e)}serializeObject(object){var e=Object.prototype.toString.call(object);if("[object Object]"!==e)return this.serializeBuiltInType(e.length<10?"unknown:".concat(e):e.slice(8,-1),object);var t=object.constructor,r=t===Object||void 0===t?"":t.name;if(""!==r&&globalThis[r]===t)return this.serializeBuiltInType(r,object);if("toJSON"in object&&"function"==typeof object.toJSON){var n=object.toJSON();return r+(null!==n&&"object"==typeof n?this.$object(n):"(".concat(this.serialize(n),")"))}for(var o=Object.keys(object).sort(h),content="".concat(r,"{"),i=0;i<o.length;i++){var c=o[i];content+="".concat(c,":").concat(this.serialize(object[c])),i<o.length-1&&(content+=",")}return content+"}"}serializeBuiltInType(e,object){var t=this["$"+e];if(t)return t.call(this,object);if("function"==typeof object.entries)return this.serializeObjectEntries(e,object.entries());throw new Error("Cannot serialize ".concat(e))}serializeObjectEntries(e,t){for(var r=Array.from(t).sort((a,b)=>this.compare(a[0],b[0])),content="".concat(e,"{"),i=0;i<r.length;i++){var n=(0,o.default)(r[i],2),c=n[0],l=n[1];content+="".concat(this.serialize(c,!0),":").concat(this.serialize(l)),i<r.length-1&&(content+=",")}return content+"}"}$object(object){var content=(0,c.default)(this,e)[e].get(object);return void 0===content&&((0,c.default)(this,e)[e].set(object,"#".concat((0,c.default)(this,e)[e].size)),content=this.serializeObject(object),(0,c.default)(this,e)[e].set(object,content)),content}$function(e){var t=Function.prototype.toString.call(e);return"[native code] }"===t.slice(-15)?"".concat(e.name||"","()[native]"):"".concat(e.name,"(").concat(e.length,")").concat(t.replace(/\s*\n\s*/g,""))}$Array(e){for(var content="[",i=0;i<e.length;i++)content+=this.serialize(e[i]),i<e.length-1&&(content+=",");return content+"]"}$Date(e){try{return"Date(".concat(e.toISOString(),")")}catch(e){return"Date(null)"}}
2$ArrayBuffer(e){return"ArrayBuffer[".concat(new Uint8Array(e).join(","),"]")}$Set(e){return"Set".concat(this.$Array(Array.from(e).sort((a,b)=>this.compare(a,b))))}$Map(map){return this.serializeObjectEntries("Map",map.entries())}}var r=function(e){t.prototype["$"+e]=function(t){return"".concat(e,"(").concat(t,")")}};for(var n of["Error","RegExp","URL"])r(n);var d=function(e){t.prototype["$"+e]=function(t){return"".concat(e,"[").concat(t.join(","),"]")}};for(var f of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])d(f);var m=function(e){t.prototype["$"+e]=function(t){return"".concat(e,"[").concat(t.join("n,")).concat(t.length>0?"n":"","]")}};for(var y of["BigInt64Array","BigUint64Array"])m(y);return t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(33),r(147),r(79),r(71),r(66),r(7),r(18),r(34),r(14),r(35),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(6);var n=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],o=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function c(e,t){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+e),t&&console.warn(t.stack))}var l=Array.isArray;function d(e){return null!==e&&"object"==typeof e}function f(e){return"boolean"==typeof e}function h(e){return"string"==typeof e}var m=Object.prototype.toString;function y(e){return"[object Object]"===m.call(e)}function v(e){return null==e}function _(e){return"function"==typeof e}function E(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=null,n=null;return 1===e.length?d(e[0])||l(e[0])?n=e[0]:"string"==typeof e[0]&&(r=e[0]):2===e.length&&("string"==typeof e[0]&&(r=e[0]),(d(e[1])||l(e[1]))&&(n=e[1])),{locale:r,params:n}}function w(e){return JSON.parse(JSON.stringify(e))}function A(e,t){return!!~e.indexOf(t)}var T=Object.prototype.hasOwnProperty;function O(e,t){return T.call(e,t)}function S(e){for(var t=arguments,output=Object(e),i=1;i<arguments.length;i++){var source=t[i];if(null!=source){var r=void 0;for(r in source)O(source,r)&&(d(source[r])?output[r]=S(output[r],source[r]):output[r]=source[r])}}return output}function I(a,b){if(a===b)return!0;var e=d(a),t=d(b);if(!e||!t)return!e&&!t&&String(a)===String(b);try{var r=l(a),n=l(b);if(r&&n)return a.length===b.length&&a.every(function(e,i){return I(e,b[i])});if(r||n)return!1;var o=Object.keys(a),c=Object.keys(b);return o.length===c.length&&o.every(function(e){return I(a[e],b[e])})}catch(e){return!1}}var C={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var data=t.data,r=t.parent,n=t.props,o=t.slots,c=r.$i18n;if(c){var path=n.path,l=n.locale,d=n.places,f=o(),h=c.i(path,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(f)||d?function(e,t){var r=t?function(e){0;return Array.isArray(e)?e.reduce(P,{}):Object.assign({},e)}(t):{};if(!e)return r;e=e.filter(function(e){return e.tag||""!==e.text.trim()});var n=e.every(R);0;return e.reduce(n?N:P,r)}(f.default,d):f),m=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return m?e(m,data,h):h}}};function N(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function P(e,t,r){return e[r]=t,e}function R(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var L,D={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var r=t.props,o=t.parent,data=t.data,c=o.$i18n;if(!c)return null;var l=null,f=null;h(r.format)?l=r.format:d(r.format)&&(r.format.key&&(l=r.format.key),f=Object.keys(r.format).reduce(function(e,t){var o;return A(n,t)?Object.assign({},e,((o={})[t]=r.format[t],o)):e},null));var m=r.locale||c.locale,y=c._ntp(r.value,m,l,f),v=y.map(function(e,t){var r,slot=data.scopedSlots&&data.scopedSlots[e.type];return slot?slot(((r={})[e.type]=e.value,r.index=t,r.parts=y,r)):e.value}),_=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return _?e(_,{attrs:data.attrs,class:data.class,staticClass:data.staticClass},v):v}};function x(e,t,r){F(e,r)&&U(e,t,r)}function k(e,t,r,n){if(F(e,r)){var o=r.context.$i18n;(function(e,t){var r=t.context;return e._locale===r.$i18n.locale})(e,r)&&I(t.value,t.oldValue)&&I(e._localeMessage,o.getLocaleMessage(o.locale))||U(e,t,r)}}function M(e,t,r,n){if(r.context){var o=r.context.$i18n||{};t.modifiers.preserve||o.preserveDirectiveContent||(e.textContent=""),e._vt=void 0,delete e._vt,e._locale=void 0,delete e._locale,e._localeMessage=void 0,delete e._localeMessage}else c("Vue instance does not exists in VNode context")}function F(e,t){var r=t.context;return r?!!r.$i18n||(c("VueI18n instance does not exists in Vue instance"),!1):(c("Vue instance does not exists in VNode context"),!1)}function U(e,t,r){var n,o,l=function(e){var path,t,r,n;h(e)?path=e:y(e)&&(path=e.path,t=e.locale,r=e.args,n=e.choice);return{path:path,locale:t,args:r,choice:n}}(t.value),path=l.path,d=l.locale,f=l.args,m=l.choice;if(path||d||f)if(path){var v=r.context;e._vt=e.textContent=null!=m?(n=v.$i18n).tc.apply(n,[path,m].concat(j(d,f))):(o=v.$i18n).t.apply(o,[path].concat(j(d,f))),e._locale=v.$i18n.locale,e._localeMessage=v.$i18n.getLocaleMessage(v.$i18n.locale)}else c("`path` is required in v-t directive");else c("value type not supported")}function j(e,t){var r=[];return e&&r.push(e),t&&(Array.isArray(t)||y(t))&&r.push(t),r}function B(e,t){void 0===t&&(t={bridge:!1}),B.installed=!0;(L=e).version&&Number(L.version.split(".")[0]);(function(e){e.prototype.hasOwnProperty("$i18n")||Object.defineProperty(e.prototype,"$i18n",{get:function(){return this._i18n}}),e.prototype.$t=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=this.$i18n;return n._t.apply(n,[e,n.locale,n._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];var o=this.$i18n;return o._tc.apply(o,[e,o.locale,o._getMessages(),this,t].concat(r))},e.prototype.$te=function(e,t){var r=this.$i18n;return r._te(e,r.locale,r._getMessages(),t)},e.prototype.$d=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).d.apply(t,[e].concat(r))},e.prototype.$n=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this.$i18n).n.apply(t,[e].concat(r))}})(L),L.mixin(function(e){function t(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===e&&(e=!1),e?{mounted:t}:{beforeCreate:function(){var e=this.$options;if(e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n){if(e.i18n instanceof ne){if(e.__i18nBridge||e.__i18n)try{var t=e.i18n&&e.i18n.messages?e.i18n.messages:{};
vendor: 6,949 bytes, line 2
2(e.__i18nBridge||e.__i18n).forEach(function(e){t=S(t,JSON.parse(e))}),Object.keys(t).forEach(function(r){e.i18n.mergeLocaleMessage(r,t[r])})}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(e.i18n)){var r=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ne?this.$root.$i18n:null;if(r&&(e.i18n.root=this.$root,e.i18n.formatter=r.formatter,e.i18n.fallbackLocale=r.fallbackLocale,e.i18n.formatFallbackMessages=r.formatFallbackMessages,e.i18n.silentTranslationWarn=r.silentTranslationWarn,e.i18n.silentFallbackWarn=r.silentFallbackWarn,e.i18n.pluralizationRules=r.pluralizationRules,e.i18n.preserveDirectiveContent=r.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var n=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach(function(e){n=S(n,JSON.parse(e))}),e.i18n.messages=n}catch(e){}var o=e.i18n.sharedMessages;o&&y(o)&&(e.i18n.messages=S(e.i18n.messages,o)),this._i18n=new ne(e.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===e.i18n.sync||e.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),r&&r.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ne?this._i18n=this.$root.$i18n:e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof ne&&(this._i18n=e.parent.$i18n)},beforeMount:function(){var e=this.$options;e.i18n=e.i18n||(e.__i18nBridge||e.__i18n?{}:null),e.i18n?(e.i18n instanceof ne||y(e.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ne||e.parent&&e.parent.$i18n&&e.parent.$i18n instanceof ne)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:t,beforeDestroy:function(){if(this._i18n){var e=this;this.$nextTick(function(){e._subscribing&&(e._i18n.unsubscribeDataChanging(e),delete e._subscribing),e._i18nWatcher&&(e._i18nWatcher(),e._i18n.destroyVM(),delete e._i18nWatcher),e._localeWatcher&&(e._localeWatcher(),delete e._localeWatcher)})}}}}(t.bridge)),L.directive("t",{bind:x,update:k,unbind:M}),L.component(C.name,C),L.component(D.name,D),L.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var H=function(){this._caches=Object.create(null)};H.prototype.interpolate=function(e,t){if(!t)return[e];var r=this._caches[e];return r||(r=function(e){var t=[],r=0,text="";for(;r<e.length;){var n=e[r++];if("{"===n){text&&t.push({type:"text",value:text}),text="";var sub="";for(n=e[r++];void 0!==n&&"}"!==n;)sub+=n,n=e[r++];var o="}"===n,c=V.test(sub)?"list":o&&z.test(sub)?"named":"unknown";t.push({value:sub,type:c})}else"%"===n?"{"!==e[r]&&(text+=n):text+=n}return text&&t.push({type:"text",value:text}),t}(e),this._caches[e]=r),function(e,t){var r=[],n=0,o=Array.isArray(t)?"list":d(t)?"named":"unknown";if("unknown"===o)return r;for(;n<e.length;){var c=e[n];switch(c.type){case"text":r.push(c.value);break;case"list":r.push(t[parseInt(c.value,10)]);break;case"named":"named"===o&&r.push(t[c.value])}n++}return r}(r,t)};var V=/^(?:\d)+/,z=/^(?:\w)+/;var Y=[];Y[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},Y[1]={ws:[1],".":[2],"[":[4],eof:[7]},Y[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},Y[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},Y[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},Y[5]={"'":[4,0],eof:8,else:[5,0]},Y[6]={'"':[4,0],eof:8,else:[6,0]};var $=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function W(e){if(null==e)return"eof";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function K(path){var e,a,t,r=path.trim();return("0"!==path.charAt(0)||!isNaN(path))&&(t=r,$.test(t)?(a=(e=r).charCodeAt(0))!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1):"*"+r)}var G=function(){this._cache=Object.create(null)};G.prototype.parsePath=function(path){var e=this._cache[path];return e||(e=function(path){var e,t,r,n,o,c,l,d=[],f=-1,h=0,m=0,y=[];function v(){var e=path[f+1];if(5===h&&"'"===e||6===h&&'"'===e)return f++,r="\\"+e,y[0](),!0}for(y[1]=function(){void 0!==t&&(d.push(t),t=void 0)},y[0]=function(){void 0===t?t=r:t+=r},y[2]=function(){y[0](),m++},y[3]=function(){if(m>0)m--,h=4,y[0]();else{if(m=0,void 0===t)return!1;if(!1===(t=K(t)))return!1;y[1]()}};null!==h;)if(f++,"\\"!==(e=path[f])||!v()){if(n=W(e),8===(o=(l=Y[h])[n]||l.else||8))return;if(h=o[0],(c=y[o[1]])&&(r=void 0===(r=o[2])?e:r,!1===c()))return;if(7===h)return d}}(path),e&&(this._cache[path]=e)),e||[]},G.prototype.getPathValue=function(e,path){if(!d(e))return null;var t=this.parsePath(path);if(0===t.length)return null;for(var r=t.length,n=e,i=0;i<r;){var o=n[t[i]];if(null==o)return null;n=o,i++}return n};var Q,X=/<\/?[\w\s="/.':;#-\/]+>/,J=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,Z=/^@(?:\.([a-zA-Z]+))?:/,ee=/[()]/g,te={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},re=new H,ne=function(e){var t=this;void 0===e&&(e={}),!L&&"undefined"!=typeof window&&window.Vue&&B(window.Vue);var r=e.locale||"en-US",n=!1!==e.fallbackLocale&&(e.fallbackLocale||"en-US"),o=e.messages||{},c=e.dateTimeFormats||e.datetimeFormats||{},l=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||re,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=void 0===e.sync||!!e.sync,this._fallbackRoot=void 0===e.fallbackRoot||!!e.fallbackRoot,this._fallbackRootWithEmptyString=void 0===e.fallbackRootWithEmptyString||!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==e.formatFallbackMessages&&!!e.formatFallbackMessages,this._silentTranslationWarn=void 0!==e.silentTranslationWarn&&e.silentTranslationWarn,this._silentFallbackWarn=void 0!==e.silentFallbackWarn&&!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new G,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==e.preserveDirectiveContent&&!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(e,r){var n=Object.getPrototypeOf(t);if(n&&n.getChoiceIndex)return n.getChoiceIndex.call(t,e,r);var o,c;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,r]):(o=e,c=r,o=Math.abs(o),2===c?o?o>1?1:0:1:o?Math.min(o,2):0)},this._exist=function(e,r){return!(!e||!r)&&(!v(t._path.getPathValue(e,r))||!!e[r])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(o).forEac
2h(function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])}),this._initVM({locale:r,fallbackLocale:n,messages:o,dateTimeFormats:c,numberFormats:l})},ie={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};ne.prototype._checkLocaleMessage=function(e,t,r){var n=function(e,t,r,o){if(y(r))Object.keys(r).forEach(function(c){var l=r[c];y(l)?(o.push(c),o.push("."),n(e,t,l,o),o.pop(),o.pop()):(o.push(c),n(e,t,l,o),o.pop())});else if(l(r))r.forEach(function(r,c){y(r)?(o.push("["+c+"]"),o.push("."),n(e,t,r,o),o.pop(),o.pop()):(o.push("["+c+"]"),n(e,t,r,o),o.pop())});else if(h(r)){if(X.test(r)){var d="Detected HTML in message '"+r+"' of keypath '"+o.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===e?c(d):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(d)}}};n(t,e,r,[])},ne.prototype._initVM=function(data){var e=L.config.silent;L.config.silent=!0,this._vm=new L({data:data,__VUE18N__INSTANCE__:!0}),L.config.silent=e},ne.prototype.destroyVM=function(){this._vm.$destroy()},ne.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)},ne.prototype.unsubscribeDataChanging=function(e){!function(e,t){if(e.delete(t));}(this._dataListeners,e)},ne.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",function(){for(var t,r,n=(t=e._dataListeners,r=[],t.forEach(function(a){return r.push(a)}),r),i=n.length;i--;)L.nextTick(function(){n[i]&&n[i].$forceUpdate()})},{deep:!0})},ne.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,r=this._vm;return this.vm.$watch("locale",function(n){r.$set(r,"locale",n),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=n),r.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var n=this._vm;return this._root.$i18n.vm.$watch("locale",function(e){n.$set(n,"locale",e),n.$forceUpdate()},{immediate:!0})},ne.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},ie.vm.get=function(){return this._vm},ie.messages.get=function(){return w(this._getMessages())},ie.dateTimeFormats.get=function(){return w(this._getDateTimeFormats())},ie.numberFormats.get=function(){return w(this._getNumberFormats())},ie.availableLocales.get=function(){return Object.keys(this.messages).sort()},ie.locale.get=function(){return this._vm.locale},ie.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},ie.fallbackLocale.get=function(){return this._vm.fallbackLocale},ie.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},ie.formatFallbackMessages.get=function(){return this._formatFallbackMessages},ie.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},ie.missing.get=function(){return this._missing},ie.missing.set=function(e){this._missing=e},ie.formatter.get=function(){return this._formatter},ie.formatter.set=function(e){this._formatter=e},ie.silentTranslationWarn.get=function(){return this._silentTranslationWarn},ie.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},ie.silentFallbackWarn.get=function(){return this._silentFallbackWarn},ie.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},ie.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},ie.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},ie.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},ie.warnHtmlInMessage.set=function(e){var t=this,r=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,r!==e&&("warn"===e||"error"===e)){var n=this._getMessages();
vendor: 10,691 bytes, line 2
2Object.keys(n).forEach(function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,n[e])})}},ie.postTranslation.get=function(){return this._postTranslation},ie.postTranslation.set=function(e){this._postTranslation=e},ie.sync.get=function(){return this._sync},ie.sync.set=function(e){this._sync=e},ne.prototype._getMessages=function(){return this._vm.messages},ne.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},ne.prototype._getNumberFormats=function(){return this._vm.numberFormats},ne.prototype._warnDefault=function(e,t,r,n,o,c){if(!v(r))return r;if(this._missing){var l=this._missing.apply(null,[e,t,n,o]);if(h(l))return l}else 0;if(this._formatFallbackMessages){var d=E.apply(void 0,o);return this._render(t,c,d.params,t)}return t},ne.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:v(e))&&!v(this._root)&&this._fallbackRoot},ne.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn},ne.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)},ne.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},ne.prototype._interpolate=function(e,t,r,n,o,c,d){if(!t)return null;var f,m=this._path.getPathValue(t,r);if(l(m)||y(m))return m;if(v(m)){if(!y(t))return null;if(!h(f=t[r])&&!_(f))return null}else{if(!h(m)&&!_(m))return null;f=m}return h(f)&&(f.indexOf("@:")>=0||f.indexOf("@.")>=0)&&(f=this._link(e,t,f,n,"raw",c,d)),this._render(f,o,c,r)},ne.prototype._link=function(e,t,r,n,o,c,d){var f=r,h=f.match(J);for(var m in h)if(h.hasOwnProperty(m)){var link=h[m],y=link.match(Z),v=y[0],_=y[1],E=link.replace(v,"").replace(ee,"");if(A(d,E))return f;d.push(E);var w=this._interpolate(e,t,E,n,"raw"===o?"string":o,"raw"===o?void 0:c,d);if(this._isFallbackRoot(w)){if(!this._root)throw Error("unexpected error");var T=this._root.$i18n;w=T._translate(T._getMessages(),T.locale,T.fallbackLocale,E,n,o,c)}w=this._warnDefault(e,E,w,n,l(c)?c:[c],o),this._modifiers.hasOwnProperty(_)?w=this._modifiers[_](w):te.hasOwnProperty(_)&&(w=te[_](w)),d.pop(),f=w?f.replace(link,w):f}return f},ne.prototype._createMessageContext=function(e,t,path,r){var n=this,o=l(e)?e:[],c=d(e)?e:{},f=this._getMessages(),h=this.locale;return{list:function(e){return o[e]},named:function(e){return c[e]},values:e,formatter:t,path:path,messages:f,locale:h,linked:function(e){return n._interpolate(h,f[h]||{},e,null,r,void 0,[e])}}},ne.prototype._render=function(e,t,r,path){if(_(e))return e(this._createMessageContext(r,this._formatter||re,path,t));var n=this._formatter.interpolate(e,r,path);return n||(n=re.interpolate(e,r,path)),"string"!==t||h(n)?n:n.join("")},ne.prototype._appendItemToChain=function(e,t,r){var n=!1;return A(e,t)||(n=!0,t&&(n="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),r&&r[t]&&(n=r[t]))),n},ne.prototype._appendLocaleToChain=function(e,t,r){var n,o=t.split("-");do{var c=o.join("-");n=this._appendItemToChain(e,c,r),o.splice(-1,1)}while(o.length&&!0===n);return n},ne.prototype._appendBlockToChain=function(e,t,r){for(var n=!0,i=0;i<t.length&&f(n);i++){var o=t[i];h(o)&&(n=this._appendLocaleToChain(e,o,r))}return n},ne.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var r=this._localeChainCache[e];if(!r){t||(t=this.fallbackLocale),r=[];for(var n,o=[e];l(o);)o=this._appendBlockToChain(r,o,t);(o=h(n=l(t)?t:d(t)?t.default?t.default:null:t)?[n]:n)&&this._appendBlockToChain(r,o,null),this._localeChainCache[e]=r}return r},ne.prototype._translate=function(e,t,r,n,o,c,l){for(var d,f=this._getLocaleChain(t,r),i=0;i<f.length;i++){var h=f[i];if(!v(d=this._interpolate(h,e[h],n,o,c,l,[n])))return d}return null},ne.prototype._t=function(e,t,r,n){for(var o,c=[],l=arguments.length-4;l-- >0;)c[l]=arguments[l+4];if(!e)return"";var d,f=E.apply(void 0,c);this._escapeParameterHtml&&(f.params=(null!=(d=f.params)&&Object.keys(d).forEach(function(e){"string"==typeof d[e]&&(d[e]=d[e].replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))}),d));var h=f.locale||t,m=this._translate(r,h,this.fallbackLocale,e,n,"string",f.params);if(this._isFallbackRoot(m)){if(!this._root)throw Error("unexpected error");return(o=this._root).$t.apply(o,[e].concat(c))}return m=this._warnDefault(h,e,m,n,c,"string"),this._postTranslation&&null!=m&&(m=this._postTranslation(m,e)),m},ne.prototype.t=function(e){for(var t,r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(r))},ne.prototype._i=function(e,t,r,n,o){var c=this._translate(r,t,this.fallbackLocale,e,n,"raw",o);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,o)}return this._warnDefault(t,e,c,n,[o],"raw")},ne.prototype.i=function(e,t,r){return e?(h(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,r)):""},ne.prototype._tc=function(e,t,r,n,o){for(var c,l=[],d=arguments.length-5;d-- >0;)l[d]=arguments[d+5];if(!e)return"";void 0===o&&(o=1);var f={count:o,n:o},h=E.apply(void 0,l);return h.params=Object.assign(f,h.params),l=null===h.locale?[h.params]:[h.locale,h.params],this.fetchChoice((c=this)._t.apply(c,[e,t,r,n].concat(l)),o)},ne.prototype.fetchChoice=function(e,t){if(!e||!h(e))return null;var r=e.split("|");return r[t=this.getChoiceIndex(t,r.length)]?r[t].trim():e},ne.prototype.tc=function(e,t){for(var r,n=[],o=arguments.length-2;o-- >0;)n[o]=arguments[o+2];return(r=this)._tc.apply(r,[e,this.locale,this._getMessages(),null,t].concat(n))},ne.prototype._te=function(e,t,r){for(var n=[],o=arguments.length-3;o-- >0;)n[o]=arguments[o+3];var c=E.apply(void 0,n).locale||t;return this._exist(r[c],e)},ne.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},ne.prototype.getLocaleMessage=function(e){return w(this._vm.messages[e]||{})},ne.prototype.setLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)},ne.prototype.mergeLocaleMessage=function(e,t){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,S(void 0!==this._vm.messages[e]&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))},ne.prototype.getDateTimeFormat=function(e){return w(this._vm.dateTimeFormats[e]||{})},ne.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)},ne.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,S(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)},ne.prototype._clearDateTimeFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}},ne.prototype._localizeDateTime=function(e,t,r,n,o,c){for(var l=t,d=n[l],f=this._getLocaleChain(t,r),i=0;i<f.length;i++){var h=f[i];if(l=h,!v(d=n[h])&&!v(d[o]))break}if(v(d)||v(d[o]))return null;var m,y=d[o];if(c)m=new Intl.DateTimeFormat(l,Object.assign({},y,c));else{var _=l+"__"+o;(m=this._dateTimeFormatters[_])||(m=this._dateTimeFormatters[_]=new Intl.DateTimeFormat(l,y))}return m.format(e)},ne.prototype._d=function(e,t,r,n){if(!r)return(n?new Intl.DateTimeFormat(t,n):new Intl.DateTimeFormat(t)).format(e);var o=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),r,n);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,r,t)}return o||""},ne.prototype.d=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var n=this.locale,c=null,l=null;return 1===t.length?(h(t[0])?c=t[0]:d(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(c=t[0].key)),l=Object.keys(t[0]).reduce(function(e,r){var n;return A(o,r)?Object.assign({},e,((n={})[r]=t[0][r],n)):e},null)):2===t.length&&(h(t[0])&&(c=t[0]),h(t[1])&&(n=t[1])),this._d(e,n,c,l)},ne.prototype.getNumberFormat=function(e){return w(this._vm.numberFormats[e]||{})},ne.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)},ne.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,S(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)},ne.prototype._clearNumberFormat=function(e,t){for(var r in t){var n=e+"__"+r;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}},ne.prototype._getNumberFormatter=function(e,t,r,n,o,c){for(var l=t,d=n[l],f=this._getLocaleChain(t,r),i=0;i<f.length;i++){var h=f[i];if(l=h,!v(d=n[h])&&!v(d[o]))break}if(v(d)||v(d[o]))return null;var m,y=d[o];if(c)m=new Intl.NumberFormat(l,Object.assign({},y,c));else{var _=l+"__"+o;(m=this._numberFormatters[_])||(m=this._numberFormatters[_]=new Intl.NumberFormat(l,y))}return m},ne.prototype._n=function(e,t,r,n){if(!ne.availabilities.numberFormat)return"";if(!r)return(n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t)).format(e);var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),r,n),c=o&&o.format(e);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:r,locale:t},n))}return c||""},ne.prototype.n=function(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];var o=this.locale,c=null,l=null;return 1===t.length?h(t[0])?c=t[0]:d(t[0])&&(t[0].locale&&(o=t[0].locale),t[0].key&&(c=t[0].key),l=Object.keys(t[0]).reduce(function(e,r){var o;return A(n,r)?Object.assign({},e,((o={})[r]=t[0][r],o)):e},null)):2===t.length&&(h(t[0])&&(c=t[0]),h(t[1])&&(o=t[1])),this._n(e,o,c,l)},ne.prototype._ntp=function(e,t,r,n){if(!ne.availabilities.numberFormat)return[];if(!r)return(n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t)).formatToParts(e);var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),r,n),c=o&&o.formatToParts(e);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,r,n)}return c||[]},Object.defineProperties(ne.prototype,ie),Object.defineProperty(ne,"availabilities",{get:function(){if(!Q){var e="undefined"!=typeof Intl;Q={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return Q}}),ne.install=B,ne.version="8.28.2";t.default=ne},,,,,,,,,,function(e,t,r){"use strict";var n=r(3);
2Object.defineProperty(t,"__esModule",{value:!0}),t.CapoPlugin=function(e){return(0,f.defineHeadPlugin)({hooks:{"tags:beforeResolve":t=>{var r=t.tags;for(var n of r){var o;if((!n.tagPosition||"head"===n.tagPosition)&&(n.tagPriority=n.tagPriority||(0,f.tagWeight)(n),100===n.tagPriority)){var c=e=>""===e||!0===e,l="script"===n.tag,d="link"===n.tag;l&&c(n.props.async)?n.tagPriority=30:"style"===n.tag&&n.innerHTML&&z.test(n.innerHTML)?n.tagPriority=40:!l||!n.props.src||c(n.props.defer)||c(n.props.async)||"module"===n.props.type||null!==(o=n.props.type)&&void 0!==o&&o.endsWith("json")?d&&"stylesheet"===n.props.rel||"style"===n.tag?n.tagPriority=60:!d||"preload"!==n.props.rel&&"modulepreload"!==n.props.rel?l&&c(n.props.defer)&&n.props.src&&!c(n.props.async)?n.tagPriority=80:!d||"prefetch"!==n.props.rel&&"dns-prefetch"!==n.props.rel&&"prerender"!==n.props.rel||(n.tagPriority=90):n.tagPriority=70:n.tagPriority=50}}(null==e?void 0:e.track)&&r.push({tag:"htmlAttrs",props:{"data-capo":""}})}}})},t.HashHydrationPlugin=function(){return(0,f.defineHeadPlugin)({})},Object.defineProperty(t,"composableNames",{enumerable:!0,get:function(){return f.composableNames}}),t.createHead=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},head=k(e);return head.use((0,d.DomPlugin)()),_=head},t.createHeadCore=k,t.createServerHead=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _=k(e)},t.getActiveHead=M,t.resolveScriptKey=H,t.unheadComposablesImports=void 0,t.useHead=F,t.useHeadSafe=U,t.useScript=function(e,t){var r,n,o,input="string"==typeof e?{src:e}:e,l=t||{},head=l.head||M();if(!head)throw new Error("Missing Unhead context.");var d=H(input),h=null===(r=head._scripts)||void 0===r?void 0:r[d];if(h)return h.setupTriggerHandler(l.trigger),h;null===(n=l.beforeInit)||void 0===n||n.call(l);var m=s=>{script.status=s,head.hooks.callHook("script:updated",w)};f.ScriptNetworkEvents.forEach(e=>{var t="function"==typeof input[e]?input[e].bind(l.eventContext):null;input[e]=r=>{m("onload"===e?"loaded":"onerror"===e?"error":"loading"),null==t||t(r)}});var y={loaded:[],error:[]},_=(e,t)=>
2{if(y[e]){var i=y[e].push(t);return()=>{var t;return null===(t=y[e])||void 0===t?void 0:t.splice(i-1,1)}}return t(script.instance),()=>{}},E=new Promise(e=>{if(!head.ssr)var t=t=>requestAnimationFrame(()=>e(t)),r=head.hooks.hook("script:updated",n=>{var o=n.script,c=o.status;if(o.id===d&&("loaded"===c||"error"===c)){if("loaded"===c)if("function"==typeof l.use){var f=l.use();f&&t(f)}else t({});else"error"===c&&e(!1);r()}})}),script=Object.assign(E,{instance:!head.ssr&&(null==l||null===(o=l.use)||void 0===o?void 0:o.call(l))||null,proxy:null,id:d,status:"awaitingLoad",remove(){var e,t;return null===(e=script._triggerAbortController)||void 0===e||e.abort(),script._triggerPromises=[],!!script.entry&&(script.entry.dispose(),script.entry=void 0,m("removed"),null===(t=head._scripts)||void 0===t||delete t[d],!0)},load(e){var t;if(null===(t=script._triggerAbortController)||void 0===t||t.abort(),script._triggerPromises=[],!script.entry){m("loading");var r={defer:!0,fetchpriority:"low"};input.src&&(input.src.startsWith("http")||input.src.startsWith("//"))&&(r.crossorigin="anonymous",r.referrerpolicy="no-referrer"),script.entry=head.push({script:[v(v(v({},r),input),{},{key:"script.".concat(d)})]},l)}return e&&_("loaded",e),E},onLoaded:e=>_("loaded",e),onError:e=>_("error",e),setupTriggerHandler(e){if("awaitingLoad"===script.status)if((void 0!==e&&"client"!==e||head.ssr)&&"server"!==e)if(e instanceof Promise){if(head.ssr)return;script._triggerAbortController||(script._triggerAbortController=new AbortController,script._triggerAbortPromise=new Promise(e=>{script._triggerAbortController.signal.addEventListener("abort",()=>{script._triggerAbortController=null,e()})})),script._triggerPromises=script._triggerPromises||[];var t=script._triggerPromises.push(Promise.race([e.then(e=>void 0===e||e?script.load:void 0),script._triggerAbortPromise]).catch(()=>{}).then(e=>{null==e||e()}).finally(()=>{var e;null===(e=script._triggerPromises)||void 0===e||e.splice(t,1)}))}else"function"==typeof e&&e(script.load);else script.load()},_cbs:y});E.then(e=>{var t,r;!1!==e?(script.instance=e,null===(t=y.loaded)||void 0===t||t.forEach(t=>t(e)),y.loaded=null):(null===(r=y.error)||void 0===r||r.forEach(e=>e()),y.error=null)});var w={script:script};script.setupTriggerHandler(l.trigger),script.$script=script;var A=(e,t,r)=>new Proxy((t?null==e?void 0:e[t]:e)||B,{get(n,o,c){if(head.hooks.callHook("script:instance-fn",{script:script,fn:o,exists:o in n}),!t){var d,f=null===(d=l.stub)||void 0===d?void 0:d.call(l,{script:script,fn:o});if(f)return f}return n&&o in n&&void 0!==n[o]?Reflect.get(n,o,c):o===Symbol.iterator?[][Symbol.iterator]:A(t?null==e?void 0:e[t]:e,o,r||[o])},apply:(e,t,n)=>(0,c.default)(function*(){if(!head.ssr||!e[j]){var t,o=e=>{t=e||t;for(var i=0;i<(r||[]).length;i++){var n,o=(r||[])[i];e=null===(n=e)||void 0===n?void 0:n[o]}return e},c=o(script.instance);return c||(c=yield new Promise(e=>{script.onLoaded(t=>{e(o(t))})})),"function"==typeof c?Reflect.apply(c,t,n):c}})()});script.proxy=A(script.instance);var T=new Proxy(script,{get(e,t){var r=t in script||"_"===String(t)[0]?script:script.proxy;return"then"===t||"catch"===t?script[t].bind(script):Reflect.get(r,t,r)}});return head._scripts=Object.assign(head._scripts||{},{[d]:T}),T},t.useSeoMeta=V,t.useServerHead=function(input){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return F(input,v(v({},e),{},{mode:"server"}))},t.useServerHeadSafe=function(input){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return U(input,v(v({},e),{},{mode:"server"}))},t.useServerSeoMeta=function(input,e){return V(input,v(v({},e),{},{mode:"server"}))};var o=n(r(85)),c=n(r(10)),l=n(r(8));r(70),r(79),r(66),r(7),r(18),r(131),r(14),r(38),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(6);var d=r(907),f=r(212),h=r(556),m=["title","titleTemplate"];function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?y(Object(r),!0).forEach(function(t){(0,l.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var _,E=new Set(["templateParams","htmlAttrs","bodyAttrs"]),w=(0,f.defineHeadPlugin)({hooks:{"tag:normalise":e=>{var t=e.tag;t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.key&&(t.key=t.props.key,delete t.props.key);var r=(0,f.tagDedupeKey)(t);!r||r.startsWith("meta:og:")||r.startsWith("meta:twitter:")||delete t.key;var n=r||!!t.key&&"".concat(t.tag,":").concat(t.key);n&&(t._d=n)},"tags:resolve":e=>{var t=Object.create(null);for(var r of e.tags){var n=(r.key?"".concat(r.tag,":").concat(r.key):r._d)||(0,f.hashTag)(r),o=t[n];if(o){var c=null==r?void 0:r.tagDuplicateStrategy;if(!c&&E.has(r.tag)&&(c="merge"),"merge"===c){var l=o.props;l.style&&r.props.style&&(";"!==l.style[l.style.length-1]&&(l.style+=";"),r.props.style="".concat(l.style," ").concat(r.props.style)),l.class&&r.props.class?r.props.class="".concat(l.class," ").concat(r.props.class):l.class&&(r.props.class=l.class),t[n].props=v(v({},l),r.props);continue}if(r._e===o._e){o._duped=o._duped||[],r._d="".concat(o._d,":").concat(o._duped.length+1),o._duped.push(r);continue}if((0,f.tagWeight)(r)>(0,f.tagWeight)(o))continue}r.innerHTML||r.textContent||0!==Object.keys(r.props).length||!f.HasElementTags.has(r.tag)?t[n]=r:delete t[n]}var d=[];for(var h in t){var m=t[h],y=m._duped;d.push(m),y&&(delete m._duped,d.push(...y))}e.tags=d,e.tags=e.tags.filter(e=>!("meta"===e.tag&&(e.props.name||e.props.property)&&!e.props.content))}}}),A=new Set(["script","link","bodyAttrs"]),T=(0,f.defineHeadPlugin)(head=>({hooks:{"tags:resolve":e=>{for(var t of e.tags)if(A.has(t.tag)){var r=t.props;for(var n in r)if("o"===n[0]&&"n"===n[1]&&Object.prototype.hasOwnProperty.call(r,n)){var o=r[n];"function"==typeof o&&(head.ssr&&f.NetworkEvents.has(n)?r[n]="this.dataset.".concat(n,"fired = true"):delete r[n],t._eventHandlers=t._eventHandlers||{},t._eventHandlers[n]=o)}head.ssr&&t._eventHandlers&&(t.props.src||t.props.href)&&(t.key=t.key||(0,f.hashCode)(t.props.src||t.props.href))}},"dom:renderTag":e=>{var t=e.$el,r=e.tag,n=null==t?void 0:t.dataset;if(n)for(var o in n){var c,l;if(o.endsWith("fired")){var d=o.slice(0,-5);f.NetworkEvents.has(d)&&(null===(c=r._eventHandlers)||void 0===c||null===(l=c[d])||void 0===l||l.call(t,new Event(d.substring(2))))}}}}})),O=new Set(["link","style","script","noscript"]),S=(0,f.defineHeadPlugin)({hooks:{"tag:normalise":e=>{var t=e.tag;t.key&&O.has(t.tag)&&(t.props["data-hid"]=t._h=(0,f.hashCode)(t.key))}}}),I=(0,f.defineHeadPlugin)({mode:"server",hooks:{"tags:beforeResolve":e=>{var t={},r=!1;for(var n of e.tags)"server"!==n._m||"titleTemplate"!==n.tag&&"templateParams"!==n.tag&&"title"!==n.tag||(t[n.tag]="title"===n.tag||"titleTemplate"===n.tag?n.textContent:n.props,r=!0);r&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}}),C=(0,f.defineHeadPlugin)({hooks:{"tags:resolve":e=>{for(var t of e.tags)if("string"==typeof t.tagPriority){var r,n=function(){var r,n=o.prefix,c=o.offset;if(!t.tagPriority.startsWith(n))return 0;var l=t.tagPriority.substring(n.length),d=null===(r=e.tags.find(e=>e._d===l))||void 0===r?void 0:r._p;return void 0!==d?(t._p=d+c,1):void 0};for(var o of f.SortModifiers)if(0!==(r=n())&&1===r)break}e.tags.sort((a,b)=>{var e=(0,f.tagWeight)(a),t=(0,f.tagWeight)(b);return e<t?-1:e>t?1:a._p-b._p})}}}),N={meta:"content",link:"href",htmlAttrs:"lang"},P=["innerHTML","textContent"],R=(0,f.defineHeadPlugin)(head=>({hooks:{"tags:resolve":e=>{for(var t,r,n=e.tags,i=0;i<n.length;i+=1){"templateParams"===n[i].tag&&(r=e.tags.splice(i,1)[0].props,i-=1)}var o=r||{},c=o.separator||"|";for(var l of(delete o.separator,o.pageTitle=(0,f.processTemplateParams)(o.pageTitle||(null===(t=n.find(e=>"title"===e.tag))||void 0===t?void 0:t.textContent)||"",o,c),n))if(!1!==l.processTemplateParams){var d=N[l.tag];if(d&&"string"==typeof l.props[d])l.props[d]=(0,f.processTemplateParams)(l.props[d],o,
2c);else if(l.processTemplateParams||"titleTemplate"===l.tag||"title"===l.tag)for(var p of P)"string"==typeof l[p]&&(l[p]=(0,f.processTemplateParams)(l[p],o,c,"script"===l.tag&&l.props.type.endsWith("json")))}head._templateParams=o,head._separator=c},"tags:afterResolve":e=>{for(var t,title,r=e.tags,i=0;i<r.length;i+=1){var n=r[i];"title"===n.tag&&!1!==n.processTemplateParams&&(title=n)}null!==(t=title)&&void 0!==t&&t.textContent&&(title.textContent=(0,f.processTemplateParams)(title.textContent,head._templateParams,head._separator))}}})),L=(0,f.defineHeadPlugin)({hooks:{"tags:resolve":e=>{for(var t,r,n=e.tags,i=0;i<n.length;i+=1){var o=n[i];"title"===o.tag?t=o:"titleTemplate"===o.tag&&(r=o)}if(r&&t){var c=(0,f.resolveTitleTemplate)(r.textContent,t.textContent);null!==c?t.textContent=c||t.textContent:e.tags.splice(e.tags.indexOf(t),1)}else if(r){var l=(0,f.resolveTitleTemplate)(r.textContent);null!==l&&(r.textContent=l,r.tag="title",r=void 0)}r&&e.tags.splice(e.tags.indexOf(r),1)}}}),D=(0,f.defineHeadPlugin)({hooks:{"tags:afterResolve":e=>{for(var t of e.tags)"string"==typeof t.innerHTML&&(!t.innerHTML||"application/ld+json"!==t.props.type&&"application/json"!==t.props.type?t.innerHTML=t.innerHTML.replace(new RegExp("</".concat(t.tag),"g"),"<\\/".concat(t.tag)):t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"))}}});function x(e,t){return!e||"server"===e&&t||"client"===e&&!t}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,h.createHooks)();t.addHooks(e.hooks||{}),e.document=e.document||(f.IsBrowser?document:void 0);var r=!e.document,n=()=>{head.dirty=!0,t.callHook("entries:updated",head)},o=0,l=[],d=[],head={plugins:d,dirty:!1,resolvedOptions:e,hooks:t,headEntries:()=>l,use(p){var e="function"==typeof p?p(head):p;e.key&&d.some(t=>t.key===e.key)||(d.push(e),x(e.mode,r)&&t.addHooks(e.hooks||{}))},push(input,e){null==e||delete e.head;var t=v({_i:o++,input:input},e);return x(t.mode,r)&&(l.push(t),n()),{dispose(){l=l.filter(e=>e._i!==t._i),n()},patch(e){for(var r of l)r._i===t._i&&(r.input=t.input=e);n()}}},resolveTags:()=>(0,c.default)(function*(){var e={tags:[],entries:[...l]};for(var r of(yield t.callHook("entries:resolve",e),e.entries)){var n=r.resolvedInput||r.input;if(r.resolvedInput=yield r.transform?r.transform(n):n,r.resolvedInput)for(var o of yield(0,f.normaliseEntryTags)(r)){var c={tag:o,entry:r,resolvedOptions:head.resolvedOptions};yield t.callHook("tag:normalise",c),e.tags.push(c.tag)}}return yield t.callHook("tags:beforeResolve",e),yield t.callHook("tags:resolve",e),yield t.callHook("tags:afterResolve",e),e.tags})(),ssr:r};return[w,I,T,S,C,R,L,D,...(null==e?void 0:e.plugins)||[]].forEach(p=>head.use(p)),head.hooks.callHook("init",head),head}t.unheadComposablesImports=[{from:"unhead",imports:f.composableNames}];function M(){return _}function F(input){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},head=e.head||M();return null==head?void 0:head.push(input,e)}function U(input,e){return F(input,v(v({},e),{},{transform:f.whitelistSafeInput}))}var j=Symbol("ScriptProxyTarget");function B(){}function H(input){return input.key||(0,f.hashCode)(input.src||("string"==typeof input.innerHTML?input.innerHTML:""))}function V(input,e){return F({title:input.title,titleTemplate:input.titleTemplate,_flatMeta:(0,o.default)(input,m)},v(v({},e),{},{transform(e){var t=(0,f.unpackMeta)(v({},e._flatMeta));return delete e._flatMeta,v(v({},e),{},{meta:t})}}))}B[j]=!0;var z=/@import/},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.V=void 0,t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},head=(0,n.createServerHead)(e);return head.use(f),head.install=m(head),head},t.c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.domDelayFn=e.domDelayFn||(e=>(0,o.nextTick)(()=>setTimeout(()=>e(),0)));var head=(0,n.createHead)(e);return head.use(f),head.install=m(head),head},t.h=void 0,t.i=function(){if(v in y)return y[v]();var head=(0,o.inject)(h);0;return head||(0,n.getActiveHead)()},t.r=d,t.s=function(e){y[v]=e},r(66),r(7),r(18),r(36),r(6);var n=r(570),o=r(5),c=r(212),l=t.V="3"===o.version[0];function d(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;var t,r="function"==typeof(t=e)?t():(0,o.unref)(t);if(!e||!r)return r;if(Array.isArray(r))return r.map(e=>d(e));if("object"==typeof r){var n={};for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&("titleTemplate"===c||"o"===c[0]&&"n"===c[1]?n[c]=(0,o.unref)(r[c]):n[c]=d(r[c])
2);return n}return r}var f=(0,c.defineHeadPlugin)({hooks:{"entries:resolve":e=>{for(var t of e.entries)t.resolvedInput=d(t.input)}}}),h=t.h="usehead";function m(head){return{install(e){l&&(e.config.globalProperties.$unhead=head,e.config.globalProperties.$head=head,e.provide(h,head))}}.install}var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},v="__unhead_injection_handler__"}).call(this,r(30))},,function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.clearNuxtData=function(e){var t=(0,d.useNuxtApp)(),r=Object.keys(t.payload.data),n=e?"function"==typeof e?r.filter(e):(0,f.toArray)(e):r;for(var o of n)E(t,o)},t.refreshNuxtData=function(e){0;var t=e?Array.isArray(e)?e:[e]:void 0;return(0,d.useNuxtApp)().callHook("app:data:refresh",t)},t.useAsyncData=_,t.useLazyAsyncData=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n="string"==typeof t[t.length-1]?t.pop():void 0;"string"!=typeof t[0]&&t.unshift(n);var o=t[0],c=t[1],l=t[2];return _(o,c,y(y({},l),{},{lazy:!0}),null)},r(15),r(17),r(6);var o=n(r(10)),c=n(r(8)),l=r(5),d=r(78),f=r(912),h=r(171);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach(function(t){(0,c.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v=e=>"defer"===e||!1===e;function _(){for(var e,t,r,n,c,f,m,_=arguments.length,w=new Array(_),A=0;A<_;A++)w[A]=arguments[A];var T="string"==typeof w[w.length-1]?w.pop():void 0;"string"!=typeof w[0]&&w.unshift(T);var O=w[0],S=w[1],I=w[2],C=void 0===I?{}:I;if("string"!=typeof O)throw new TypeError("asyncData key must be a string");if("function"!=typeof S)throw new TypeError("asyncData handler must be a function");var N=(0,d.useNuxtApp)();C.server=null===(e=C.server)||void 0===e||e,C.default=null!==(t=C.default)&&void 0!==t?t:()=>null,C.getCachedData=null!==(r=C.getCachedData)&&void 0!==r?r:()=>N.isHydrating?N.payload.data[O]:N.static.data[O];var P=()=>null!=C.getCachedData(O,N);if(C.lazy=null!==(n=C.lazy)&&void 0!==n&&n,C.immediate=null===(c=C.immediate)||void 0===c||c,C.deep=null!==(f=C.deep)&&void 0!==f&&f,C.dedupe=null!==(m=C.dedupe)&&void 0!==m?m:"cancel",!N._asyncData[O]||!C.immediate){var R,L;N.payload._errors[O]=null!==(R=N.payload._errors[O])&&void 0!==R?R:null;var D=C.deep?l.ref:l.shallowRef;N._asyncData[O]={data:D(null!==(L=C.getCachedData(O,N))&&void 0!==L?L:C.default()),pending:(0,l.ref)(!P()),error:(0,l.toRef)(N.payload._errors,O),status:(0,l.ref)("idle")}}var x=y({},N._asyncData[O]);x.refresh=x.execute=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(N._asyncDataPromises[O]){var t;if(v(null!==(t=e.dedupe)&&void 0!==t?t:C.dedupe))return N._asyncDataPromises[O];N._asyncDataPromises[O].cancelled=!0}if((e._initial||N.isHydrating&&!1!==e._initial)&&P())return Promise.resolve(C.getCachedData(O,N));x.pending.value=!0,x.status.value="pending";var r=new Promise((e,t)=>{try{e(S(N))}catch(e){t(e)}}).then(function(){var e=(0,o.default)(function*(e){if(r.cancelled)return N._asyncDataPromises[O];var t=e;C.transform&&(t=yield C.transform(e)),C.pick&&(t=function(e,t){var r={};for(var n of t)r[n]=e[n];return r}(t,C.pick)),N.payload.data[O]=t,x.data.value=t,x.error.value=null,x.status.value="success"});return function(t){return e.apply(this,arguments)}}()).catch(e=>{if(r.cancelled)return N._asyncDataPromises[O];x.error.value=(0,h.createError)(e),x.data.value=(0,l.unref)(C.default()),x.status.value="error"}).finally(()=>{r.cancelled||(x.pending.value=!1,delete N._asyncDataPromises[O])});return N._asyncDataPromises[O]=r,N._asyncDataPromises[O]},x.clear=()=>E(N,O);var k=()=>x.refresh({_initial:!0}),M=!1!==C.server&&N.payload.serverRendered,F=(0,l.getCurrentInstance)();if(F&&!F._nuxtOnBeforeMountCbs){var U=F._nuxtOnBeforeMountCbs=[];F&&((0,l.onBeforeMount)(()=>
2{U.forEach(e=>{e()}),U.splice(0,U.length)}),(0,l.onUnmounted)(()=>U.splice(0,U.length)))}M&&N.isHydrating&&(x.error.value||P())?x.pending.value=!1:F&&(N.payload.serverRendered&&N.isHydrating||C.lazy)&&C.immediate?F._nuxtOnBeforeMountCbs.push(k):C.immediate&&k();var j=(0,l.getCurrentScope)();if(C.watch){var B=(0,l.watch)(C.watch,()=>x.refresh());F?(0,l.onUnmounted)(B):j&&(0,l.onScopeDispose)(B)}var H=N.hook("app:data:refresh",e=>{if(!e||e.includes(O))return x.refresh()});F?(0,l.onUnmounted)(H):j&&(0,l.onScopeDispose)(H);var V=Promise.resolve(N._asyncDataPromises[O]).then(()=>x);return Object.assign(V,x),V}function E(e,t){t in e.payload.data&&(e.payload.data[t]=void 0),t in e.payload._errors&&(e.payload._errors[t]=null),e._asyncData[t]&&(e._asyncData[t].data.value=void 0,e._asyncData[t].error.value=null,e._asyncData[t].pending.value=!1,e._asyncData[t].status.value="idle"),t in e._asyncDataPromises&&(e._asyncDataPromises[t]&&(e._asyncDataPromises[t].cancelled=!0),e._asyncDataPromises[t]=void 0)}},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return h});var n=r(22),o=r(114),c=r(254),l=r(580),d=3e5,f=100;function h(t,r){var h=this;void 0===r&&(r={});var m=r.enabledByDefault,y=void 0===m||m,v=r.cacheFlag,_=void 0===v?"cache":v,E=r.defaultCache,w=void 0===E?new o.default({ttl:d,max:f}):E;return function(r){var o=r.url,d=r.method,f=r.params,m=r.paramsSerializer,v=r.forceUpdate,E=void 0!==r[_]&&null!==r[_]?r[_]:y;if("get"===d&&E){var A=Object(l.a)(E)?E:w,T=Object(c.a)(o,f,m),O=A.get(T);return!O||v?(O=Object(n.__awaiter)(h,void 0,void 0,function(){var e;return Object(n.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t(r)];case 1:return[2,n.sent()];case 2:throw e=n.sent(),"delete"in A?A.delete(T):A.del(T),e;case 3:return[2]}})}),A.set(T,O),O):("info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request cached by cache adapter --\x3e url: ".concat(T)),O)}return t(r)}}}).call(this,r(32))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return l});var n=r(22),o=r(114),c=r(254);function l(t,r){var l=this;void 0===r&&(r={});var d=r.threshold,f=void 0===d?1e3:d,h=r.cache,m=void 0===h?new o.default({max:10}):h;return function(r){var o=r.url,d=r.method,h=r.params,y=r.paramsSerializer,v=Object(c.a)(o,h,y),_=Date.now(),E=m.get(v)||{timestamp:_};if("get"===d){if(_-E.timestamp<=f){var w=E.value;if(w)return"info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request cached by throttle adapter --\x3e url: ".concat(v)),w}return function(e,r){var o=Object(n.__awaiter)(l,void 0,void 0,function(){var o,c;return Object(n.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t(r)];case 1:return o=n.sent(),m.set(e,{timestamp:Date.now(),value:Promise.resolve(o)}),[2,o];case 2:throw c=n.sent(),"delete"in m?m.delete(e):m.del(e),c;case 3:return[2]}})});return m.set(e,{timestamp:Date.now(),value:o}),o}(v,r)}return t(r)}}}).call(this,r(32))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return o});var n=r(22);function o(t,r){var o=this;void 0===r&&(r={});var c=r.times,l=void 0===c?2:c;return function(r){return Object(n.__awaiter)(o,void 0,void 0,function(){var o,c,d,f,h=this;return Object(n.__generator)(this,function(m){return o=r.retryTimes,c=void 0===o?l:o,d=0,f=function(){return Object(n.__awaiter)(h,void 0,void 0,function(){var o;return Object(n.__generator)(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t(r)];case 1:return[2,n.sent()];case 2:if(o=n.sent(),c===d)throw o;return d++,"info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request start retrying --\x3e url: ".concat(r.url," , time: ").concat(d)),[2,f()];case 3:return[2]}})})},[2,f()]})})}}}).call(this,r(32))},function(e,t,r){"use strict";const n=function*(){}.constructor;e.exports=()=>n},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return y});var n=r(45),o=r(144),c=r(579),l=r(581),d=r(253),f=new Map(l.a),h=String(c.a?e.env.SPLITIO_DEBUG:Object(o.a)()?localStorage.getItem("splitio_debug"):""),m=n.a.NONE;
2function y(e){var t=e.debug,r=e.logger,o=void 0!==t?Object(d.a)(t):m,c=new n.b({logLevel:o||m},f);return c.setLogger(r),o||c._log("error","Invalid Log Level - No changes to the logs will be applied."),c}/^(enabled?|on)/i.test(h)?m=n.a.DEBUG:Object(n.c)(h)&&(m=h)}).call(this,r(32))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return n});var n=!(void 0===e||void 0===e.version||!e.version)}).call(this,r(32))},function(e,t,r){"use strict";function n(e){return"function"==typeof e.get&&"function"==typeof e.set&&("function"==typeof e.delete||"function"==typeof e.del)}r.d(t,"a",function(){return n})},function(e,t,r){"use strict";r.d(t,"a",function(){return c});var n=r(0),o="Split SDK client is ready",c=[[n.y,n.bb+"Invalid feature flag, no valid rules or unsupported targeting rule type found"],[n.n,n.cb+"[%s] %s"],[n.H,"logger: Invalid Log Level - No changes to the logs will be applied."],[n.t,"The SDK will not get ready. Reason: %s"],[n.D,n.fb+"Could not store impressions bulk with %s impression(s). Error: %s"],[n.C,n.fb+"Impression listener logImpression method threw: %s."],[n.z,n.eb+"Failed to queue %s"],[n.S,n.lb+"There was an issue loading the mock feature flags data. No changes will be applied to the current cache. %s"],[n.R,n.ob+"Failed to connect or error on streaming connection, with error message: %s"],[n.Q,n.ob+"Failed to authenticate for streaming. Error: %s."],[n.B,"HTTP request failed with %s. URL: %s. Message: %s"],[n.v,"A listener was added for %s on the SDK, which has already fired and won't be emitted again. The callback won't be executed."],[n.u,"%s: Client has already been destroyed - no calls possible."],[n.A,'%s: you passed "%s", event_type must adhere to the regular expression /^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/g. This means an event_type must be alphanumeric, cannot be more than 80 characters long, and can only include a dash, underscore, period, or colon as separators of alphanumeric characters.'],[n.L,"%s: %s must be a plain object."],[n.O,"%s: the maximum size allowed for the properties is 32768 bytes, which was exceeded."],[n.K,"%s: value must be a finite number."],[n.M,"%s: you passed a null or undefined %s. It must be a non-empty string."],[n.T,"%s: %s too long. It must have 250 characters or less."],[n.G,"%s: Key must be an object with bucketingKey and matchingKey with valid string properties."],[n.E,"%s: you passed an invalid %s. It must be a non-empty string."],[n.w,"%s: you passed an empty %s. It must be a non-empty string."],[n.x,"%s: %s must be a non-empty array."],[n.J,"%s: provided param must be a boolean value."],[n.F,n.hb+': you passed an invalid "%s" config param. It should be one of the following values: %s. Defaulting to "%s".'],[n.P,n.hb+": the provided storage is invalid.%s Falling back into default MEMORY storage"],[n.I,n.hb+': the provided "%s" config param is lower than allowed. Setting to the minimum value %s seconds'],[n.U,n.hb+": the amount of flag sets provided are big causing uri length error."],[n.N,n.hb+": the Set filter is exclusive and cannot be used simultaneously with names or prefix filters. Ignoring names and prefixes."]].concat([[n.r,n.db+"Value %s doesn't match with expected type."],[n.s,n.db+"Defined attribute `%s`. No attributes received."],[n.Rb,n.kb+"Retrying fetch of memberships (attempt #%s). Reason: %s"],[n.Vb,n.nb+"Error while doing fetch of feature flags. %s"],[n.Fb,n.ob+"Error parsing SSE error notification: %s"],[n.Hb,n.ob+"Error parsing SSE message notification: %s"],[n.Db,n.ob+"Falling back to polling mode. Reason: %s"],[n.Mb,n.pb+"Dropping %s after retry. Reason: %s."],[n.Pb,n.pb
2+"Failed to push %s, keeping data to retry on next iteration. Reason: %s."],[n.c,"%s: the SDK is not ready to evaluate. Results may be incorrect%s. Make sure to wait for SDK readiness before using this method."],[n.d,"No listeners for SDK_READY event detected. Incorrect control treatments could have been logged if you called getTreatment/s while the SDK was not yet synchronized with the backend."],[n.qc,'%s: Property "%s" is of invalid type. Setting value to null.'],[n.vc,"%s: more than 300 properties were provided. Some of them will be trimmed when processed."],[n.gc,'%s: %s "%s" is not of type string, converting.'],[n.uc,'%s: %s "%s" has extra whitespace, trimming.'],[n.nc,'%s: feature flag "%s" does not exist in this environment. Please double check what feature flags exist in Harness FME UI.'],[n.mc,"%s: traffic_type_name should be all lowercase - converting string to lowercase."],[n.oc,'%s: traffic type "%s" does not have any corresponding feature flag in this environment, make sure you\'re tracking your events to a valid traffic type defined in Harness FME UI.'],[n.hc,"%s: you passed %s which is not part of the configured FlagSetsFilter, ignoring Flag Set."],[n.jc,n.hb+": %s integration item(s) at settings is invali
2d. %s"],[n.sc,n.hb+": feature flag filters are not applicable for Consumer modes where the SDK does not keep rollout data in sync. Filters were discarded"],[n.tc,n.hb+': feature flag filter at position %s is invalid. It must be an object with a valid filter type ("bySet", "byName" or "byPrefix") and a list of "values".'],[n.rc,n.hb+": feature flag filter configuration must be a non-empty array of filter objects."],[n.pc,n.hb+": You already have %s. We recommend keeping only one instance of the factory at all times (Singleton pattern) and reusing it throughout your application"],[n.Gb,n.ob+"Fetching Memberships due to an error processing %s notification: %s"],[n.Ib,n.ob+"Fetching SplitChanges due to an error processing %s notification: %s"],[n.kc,"%s: you passed %s, flag set must adhere to the regular expressions %s. This means a flag set must start with a letter or number, be in lowercase, alphanumeric and have a max length of 50 characters. %s was discarded."],[n.lc,"%s: flag set %s should be all lowercase - converting string to lowercase."],[n.ic,"%s: you passed %s flag set that does not contain cached feature flag names. Please double check what flag sets are in use in Harness FME UI."]]).concat([[n.f,o+" from cache"],[n.e,o],[n.X,n.fb+"Queueing impression. Feature flag: %s. Key: %s. Evaluation: %s. Label: %s"],[n.sb,"New shared client instance created."],[n.rb,"New Split SDK instance created. %s"],[n.V,n.eb+"Successfully queued %s"],[n.W,n.fb+"Successfully stored %s impression(s)."],[n.fc,"UserConsent: consent status changed from %s to %s."],[n.ec,"UserConsent: call had no effect because it was the current consent status (%s)."],[n.dc,"Starting the SDK with %s user consent. No data will be sent."],[n.tb,n.mb+"Turning segments data polling %s."],[n.ub,n.mb+"Starting polling"],[n.vb,n.mb+"Stopping polling"],[n.Wb,n.nb+"Retrying fetch of feature flags (attempt #%s). Reason: %s"],[n.Nb,n.pb+"Flushing full %s queue and resetting timer."],[n.Lb,n.pb+"Pushing %s."],[n.Ob,n.pb+"Flushing %s because page became hidden."],[n.Kb,n.ob+"Refreshing streaming token in %s seconds, and connecting streaming in %s seconds."],[n.Jb,n.ob+"Attempting to reconnect streaming in %s seconds."],[n.Ab,n.ob+"Connecting streaming."],[n.Bb,n.ob+"Streaming is disabled for given SDK key. Switching to polling mode."],[n.Cb,n.ob+"Disconnecting streaming."],[n.Yb,n.jb+"Streaming not available. Starting polling."],[n.Qb,n.jb+"Streaming couldn't connect. Continue polling."],[n.Zb,n.jb+"Streaming connected. Syncing and stopping polling."]]).concat([[n.h,n.bb+"[andCombiner] evaluates to %s"],[n.i,n.bb+"Treatment found: %s"],[n.j,n.bb+"All predicates evaluated, no treatment found."],[n.g,n.ab+': using algo "murmur" bucket %s for key %s using seed %s - treatment %s'],[n.l,n.cb+'[IN_SPLIT_TREATMENT] parent feature flag "%s" evaluated to "%s" with label "%s". %s evaluated treatment is part of %s ? %s.'],[n.m,n.cb+'[IN_SPLIT_TREATMENT] will evaluate parent feature flag: "%s" with key: %s %s'],[n.q,n.db+"Extracted attribute `%s`. %s will be used for matching."],[n.p,n.ab+":sanitize: Attempted to sanitize %s which should be of type %s. Sanitized and processed value => %s"],[n.o,n.cb+"[%s] Result: %s. Rule value: %s. Evaluation value: %s"],[n.k,n.ab+"Evaluates to default treatment. %s"],[n.b,n.Y+"Registering cleanup handler %s"],[n.a,n.Y+"Deregistering cleanup handler %s"],[n.wb,"Retrieving default SDK client."],[n.xb,"Retrieving existing SDK client."],[n.yb,"Retrieving manager instance."],[n.Sb,n.lb+"Feature flags data: \n%s"],[n.Ub,n.nb+"Spin up feature flags update using since = %s and rbSince = %s."],[n.Xb,n.nb+"New feature flags: %s. Removed feature flags: %s."],[n.Tb,n.nb+"New rule-based segments: %s. Removed rule-based segments: %s."],[n.Eb,n.ob+"New SSE message received, with data: %s."],[n.bc,n.ib+": Starting %s. Running each %s millis"],[n.ac,n.ib+": Running %s"],[n.cc,n.ib+": Stopping %s"],[n.zb,n.hb+': feature flags filtering criteria is "%s".']])},,function(e,t,r){"use strict";var n=r(950),o=r(951),c=r(952),l=r(953),d=r(954),f=r(955),h=r(956),m=r(957),y=r(958),v=r(959),_=r(960),E=r(961),w=r(962),A=r(963),T=r(964),O=r(965),S=r(966),I=r(967),C=r(968),N=r(969),P=r(970),R=r(971),L=r(972);e.exports={fastlane:l,americanExpress:n,applePay:o,client:c,dataCollector:d,hostedFields:f,instantVerification:y,localPayment:h,masterpass:m,googlePayment:T,paymentRequest:v,paymentReady:_,paypal:E,paypalCheckout:w,paypalCheckoutV6:A,threeDSecure:S,unionpay:I,usBankAccount:C,vaultManager:N,venmo:P,visaCheckout:R,sepa:O,preferredPaymentMethods:L,VERSION:"3.144.0"}},,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(3);
2Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.install=t.directive=t.default=t.SwiperSlide=t.Swiper=void 0,r(15),r(7),r(17),r(14);var o,c=n(r(991)),l=n(r(5));!function(e){e.SwiperComponent="Swiper",e.SwiperSlideComponent="SwiperSlide",e.SwiperDirective="swiper",e.SwiperInstance="$swiper"}(o||(o={}));var d,f,h=Object.freeze({containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide"});!function(e){e.Ready="ready",e.ClickSlide="clickSlide"}(d||(d={})),function(e){e.AutoUpdate="autoUpdate",e.AutoDestroy="autoDestroy",e.DeleteInstanceOnDestroy="deleteInstanceOnDestroy",e.CleanupStylesOnDestroy="cleanupStylesOnDestroy"}(f||(f={}));var m=["init","beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize","observerUpdate","beforeLoopFix","loopFix"];function y(){for(var s=0,i=0,e=arguments.length;i<e;i++)s+=arguments[i].length;var t=Array(s),r=0;for(i=0;i<e;i++)for(var a=arguments[i],n=0,o=a.length;n<o;n++,r++)t[r]=a[n];return t}var v,_=function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},E=function(e,t,r){var n,o,c;if(e&&!e.destroyed){var l=(null===(n=t.composedPath)||void 0===n?void 0:n.call(t))||t.path;if((null==t?void 0:t.target)&&l){var f=Array.from(e.slides),h=Array.from(l);if(f.includes(t.target)||h.some(function(e){return f.includes(e)})){var m=e.clickedIndex,y=Number(null===(c=null===(o=e.clickedSlide)||void 0===o?void 0:o.dataset)||void 0===c?void 0:c.swiperSlideIndex),v=Number.isInteger(y)?y:null;r(d.ClickSlide,m,v),r(_(d.ClickSlide),m,v)}}}},w=function(e,t){m.forEach(function(r){e.on(r,function(){for(var e=arguments,n=[],o=0;o<arguments.length;o++)n[o]=e[o];t.apply(void 0,y([r],n));var c=_(r);c!==r&&t.apply(void 0,y([c],n))})})};function A(e,t){var r=function(e,t){var r,n,o,c,l=null===(n=null===(r=e.data)||void 0===r?void 0:r.attrs)||void 0===n?void 0:n[t];return void 0!==l?l:null===(c=null===(o=e.data)||void 0===o?void 0:o.attrs)||void 0===c?void 0:c[_(t)]},n=function(element,e,t){return e.arg||r(t,"instanceName")||element.id||o.SwiperInstance},c=function(element,e,t){var r=n(element,e,t);return t.context[r]||null},l=function(e){return e.value||t},m=function(input){return[!0,void 0,null,""].includes(input)},y=function(e){var t,r,n=(null===(t=e.data)||void 0===t?void 0:t.on)||(null===(r=e.componentOptions)||void 0===r?void 0:r.listeners);return function(e){for(var t,r=arguments,o=[],c=1;c<arguments.length;c++)o[c-1]=r[c];var l=null===(t=n)||void 0===t?void 0:t[e];l&&l.fns.apply(l,o)}};return{bind:function(element,e,t){-1===element.className.indexOf(h.containerClass)&&(element.className+=(element.className?" ":"")+h.containerClass),element.addEventListener("click",function(r){var n=y(t),o=c(element,e,t);E(o,r,n)})},inserted:function(element,t,r){var o=r.context,c=l(t),f=n(element,t,r),h=y(r),m=o,v=null==m?void 0:m[f];v&&!v.destroyed||(v=new e(element,c),m[f]=v,w(v,h),h(d.Ready,v))},componentUpdated:function(element,e,t){var n,o,d,h,y,v,_,E,w,A,T,O,S=r(t,f.AutoUpdate);if(m(S)){var I=c(element,e,t);if(I){var C=l(e).loop;C&&(null===(o=null===(n=I)||void 0===n?void 0:n.loopDestroy)||void 0===o||o.call(n)),null===(d=null==I?void 0:I.update)||void 0===d||d.call(I),null===(y=null===(h=I.navigation)||void 0===h?void 0:h.update)||void 0===y||y.call(h),null===(_=null===(v=I.pagination)||void 0===v?void 0:v.render)||void 0===_||_.call(v),null===(w=null===(E=I.pagination)||void 0===E?void 0:E.update)||void 0===w||w.call(E),C&&(null===(T=null===(A=I)||void 0===A?void 0:A.loopCreate)||void 0===T||T.call(A),null===(O=null==I?void 0:I.update)||void 0===O||O.call(I))}}},unbind:function(element,e,t){var n,o=r(t,f.AutoDestroy);if(m(o)){var l=c(element,e,t);l&&l.initialized&&(null===(n=null==l?void 0:l.destroy)||void 0===n||n.call(l,m(r(t,f.DeleteInstanceOnDestroy)),m(r(t,f.CleanupStylesOnDestroy))))}}}}function T(e){var t;return l.default.extend({name:o.SwiperComponent,props:(t={defaultOptions:{type:Object,required:!1,default:function(){return{}}},options:{type:Object,required:!1}},t[f.AutoUpdate]={type:Boolean,default:!0},t[f.AutoDestroy]={type:Boolean,default:!0},t[f.DeleteInstanceOnDestroy]={type:Boolean,required:!1,default:!0},t[f.CleanupStylesOnDestroy]={type:Boolean,required:!1,default:!0},t),data:function(){var e;return(e={})[o.SwiperInstance]=null,e},computed:{swiperInstance:{cache:!1,set:function(e){this[o.SwiperInstance]=e},get:function(){return this[o.SwiperInstance]}},swiperOptions:function(){return this.options||this.defaultOptions},wrapperClass:function(){return this.swiperOptions.wrapperClass||h.wrapperClass}},methods:{handleSwiperClick:function(e){E(this.swiperInstance,e,this.$emit.bind(this))},autoReLoopSwiper:function(){var e,t;if(this.swiperInstance&&this.swiperOptions.loop){var r=this.swiperInstance;null===(e=null==r?void 0:r.loopDestroy)||void 0===e||e.call(r),null===(t=null==r?void 0:r.loopCreate)||void 0===t||t.call(r)}},updateSwiper:function(){var e,t,r,n,o,c,l,d;this[f.AutoUpdate]&&this.swiperInstance&&(this.autoReLoopSwiper(),null===(t=null===(e=this.swiperInstance)||void 0===e?void 0:e.update)||void 0===t||t.call(e),null===(n=null===(r=this.swiperInstance.navigation)||void 0===r?void 0:r.update)||void 0===n||n.call(r),null===(c=null===(o=this.swiperInstance.pagination)||void 0===o?void 0:o.render)||void 0===c||c.call(o),null===(d=null===(l=this.swiperInstance.pagination)||void 0===l?void 0:l.update)||void 0===d||d.call(l))},destroySwiper:function(){var e,t;this[f.AutoDestroy]&&this.swiperInstance&&this.swiperInstance.initialized&&(null===(t=null===(e=this.swiperInstance)||void 0===e?void 0:e.destroy)||void 0===t||t.call(e,this[f.DeleteInstanceOnDestroy],this[f.CleanupStylesOnDestroy]))},initSwiper:function(){this.swiperInstance=new e(this.$el,this.swiperOptions),w(this.swiperInstance,this.$emit.bind(this)),this.$emit(d.Ready,this.swiperInstance)}},mounted:function(){this.swiperInstance||this.initSwiper()},activated:function(){this.updateSwiper()},updated:function(){this.updateSwiper()},beforeDestroy:function(){this.$nextTick(this.destroySwiper)},render:function(e){return e("div",{staticClass:h.containerClass,on:{click:this.handleSwiperClick}},[this.$slots[v.ParallaxBg],e("div",{class:this.wrapperClass},this.$slots.default),this.$slots[v.Pagination],this.$slots[v.PrevButton],this.$slots[v.NextButton],this.$slots[v.Scrollbar]])}})}!function(e){e.ParallaxBg="parallax-bg",e.Pagination="pagination",e.Scrollbar="scrollbar",e.PrevButton="button-prev",e.NextButton="button-next"}(v||(v={}));var O=l.default.extend({name:o.SwiperSlideComponent,computed:{slideClass:function(){var e,t;return(null===(t=null===(e=this.$parent)||void 0===e?void 0:e.swiperOptions)||void 0===t?void 0:t.slideClass)||h.slideClass}},methods:{update:function(){var e,t=this.$parent;t[f.AutoUpdate]&&(null===(e=null==t?void 0:t.swiperInstance)||void 0===e||e.update(
2))}},mounted:function(){this.update()},updated:function(){this.update()},render:function(e){return e("div",{class:this.slideClass},this.$slots.default)}}),S=function(e){var t=function(r,n){if(!t.installed){var c=T(e);n&&(c.options.props.defaultOptions.default=function(){return n}),r.component(o.SwiperComponent,c),r.component(o.SwiperSlideComponent,O),r.directive(o.SwiperDirective,A(e,n)),t.installed=!0}};return t};var I,C,N=(I=c.default,(C={version:"4.1.1",install:S(I),directive:A(I)})[o.SwiperComponent]=T(I),C[o.SwiperSlideComponent]=O,C);t.version=N.version,t.install=N.install,t.directive=N.directive,t.Swiper=N.Swiper,t.SwiperSlide=N.SwiperSlide,t.default=N},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(804);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))});var o=r(819);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var c=r(821);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});var l=r(143);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var d=r(823);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var f=r(824);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))});var h=r(542);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))});var m=r(206);Object.keys(m).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))});var y=r(308);Object.keys(y).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))});var v=r(543);Object.keys(v).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))});var _=r(311);Object.keys(_).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))});var E=r(207);
2Object.keys(E).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))});var w=r(825);Object.keys(w).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))})},,,,,,function(e,t,r){(function(e){e.installComponents=function(component,e){var r="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(r.components=component.exports.options.components),r.components=r.components||{},e)r.components[i]=r.components[i]||e[i];r.functional&&function(component,e){if(component.exports[t])return;component.exports[t]=!0;var r=component.exports.render;component.exports.render=function(t,n){return r(t,Object.assign({},n,{_c:function(t,a,b){return n._c(e[t]||t,a,b)}}))}}(component,r.components)};var t="_functionalComponents"}).call(this,r(30))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={setupDevtoolsPlugin:!0};t.setupDevtoolsPlugin=function(e,t){var r=e,n=(0,o.getTarget)(),d=(0,o.getDevtoolsGlobalHook)(),f=o.isProxyAvailable&&r.enableEarlyProxy;if(!d||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&f){var h=f?new l.ApiProxy(r,d):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:h}),h&&t(h.proxiedTarget)}else d.emit(c.HOOK_SETUP,e,t)};var o=r(676),c=r(435),l=r(677),d=r(678);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var f=r(685);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))});var h=r(436);Object.keys(h).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))})},function(e,t,r){"use strict";function n(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}Object.defineProperty(t,"__esModule",{value:!0}),t.getDevtoolsGlobalHook=function(){return n().__VUE_DEVTOOLS_GLOBAL_HOOK__},t.getTarget=n,t.isProxyAvailable=void 0,r(36);t.isProxyAvailable="function"==typeof Proxy},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.ApiProxy=void 0;var o=n(r(10));r(15),r(17),r(6);var c=r(435),l=r(436);t.ApiProxy=class{constructor(e,t){var r=this;this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;var n={};if(e.settings)for(var o in e.settings){var d=e.settings[o];n[o]=d.defaultValue}var f="__vue-devtools-plugin-settings__".concat(e.id),h=Object.assign({},n);try{var m=localStorage.getItem(f),data=JSON.parse(m);Object.assign(h,data)}catch(e){}this.fallbacks={getSettings:()=>h,setSettings(e){try{localStorage.setItem(f,JSON.stringify(e))}catch(e){}h=e},now:()=>(0,l.now)()},t&&t.on(c.HOOK_PLUGIN_SETTINGS_SET,(e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)}),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];r.onQueue.push({method:t,args:n})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return r.targetQueue.push({method:t,args:n,resolve:()=>{}}),r.fallbacks[t](...n)}:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return new Promise(e=>{r.targetQueue.push({method:t,args:n,resolve:e})})}})}setRealTarget(e){var t=this;return(0,o.default)(function*(){for(var r of(t.target=e,t.onQueue))t.target.on[r.method](...r.args);for(var n of t.targetQueue)n.resolve(yield t.target[n.method](...n.args))})()}}},function(e,t,r){"use strict";
vendor: 6,990 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(679);Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))});var o=r(680);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))});var c=r(681);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))});var l=r(682);Object.keys(l).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))});var d=r(683);Object.keys(d).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))});var f=r(684);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},,,,,,function(e,t,r){"use strict";var n=r(82),o=r(692),c=r(199).Buffer,l=new Array(16);function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function f(e,t){return e<<t|e>>>32-t}function h(a,b,e,t,r,n,s){return f(a+(b&e|~b&t)+r+n|0,s)+b|0}function m(a,b,e,t,r,n,s){return f(a+(b&t|e&~t)+r+n|0,s)+b|0}function y(a,b,e,t,r,n,s){return f(a+(b^e^t)+r+n|0,s)+b|0}function v(a,b,e,t,r,n,s){return f(a+(e^(b|~t))+r+n|0,s)+b|0}n(d,o),d.prototype._update=function(){for(var e=l,i=0;i<16;++i)e[i]=this._block.readInt32LE(4*i);var a=this._a,b=this._b,t=this._c,r=this._d;a=h(a,b,t,r,e[0],3614090360,7),r=h(r,a,b,t,e[1],3905402710,12),t=h(t,r,a,b,e[2],606105819,17),b=h(b,t,r,a,e[3],3250441966,22),a=h(a,b,t,r,e[4],4118548399,7),r=h(r,a,b,t,e[5],1200080426,12),t=h(t,r,a,b,e[6],2821735955,17),b=h(b,t,r,a,e[7],4249261313,22),a=h(a,b,t,r,e[8],1770035416,7),r=h(r,a,b,t,e[9],2336552879,12),t=h(t,r,a,b,e[10],4294925233,17),b=h(b,t,r,a,e[11],2304563134,22),a=h(a,b,t,r,e[12],1804603682,7),r=h(r,a,b,t,e[13],4254626195,12),t=h(t,r,a,b,e[14],2792965006,17),a=m(a,b=h(b,t,r,a,e[15],1236535329,22),t,r,e[1],4129170786,5),r=m(r,a,b,t,e[6],3225465664,9),t=m(t,r,a,b,e[11],643717713,14),b=m(b,t,r,a,e[0],3921069994,20),a=m(a,b,t,r,e[5],3593408605,5),r=m(r,a,b,t,e[10],38016083,9),t=m(t,r,a,b,e[15],3634488961,14),b=m(b,t,r,a,e[4],3889429448,20),a=m(a,b,t,r,e[9],568446438,5),r=m(r,a,b,t,e[14],3275163606,9),t=m(t,r,a,b,e[3],4107603335,14),b=m(b,t,r,a,e[8],1163531501,20),a=m(a,b,t,r,e[13],2850285829,5),r=m(r,a,b,t,e[2],4243563512,9),t=m(t,r,a,b,e[7],1735328473,14),a=y(a,b=m(b,t,r,a,e[12],2368359562,20),t,r,e[5],4294588738,4),r=y(r,a,b,t,e[8],2272392833,11),t=y(t,r,a,b,e[11],1839030562,16),b=y(b,t,r,a,e[14],4259657740,23),a=y(a,b,t,r,e[1],2763975236,4),r=y(r,a,b,t,e[4],1272893353,11),t=y(t,r,a,b,e[7],4139469664,16),b=y(b,t,r,a,e[10],3200236656,23),a=y(a,b,t,r,e[13],681279174,4),r=y(r,a,b,t,e[0],3936430074,11),t=y(t,r,a,b,e[3],3572445317,16),b=y(b,t,r,a,e[6],76029189,23),a=y(a,b,t,r,e[9],3654602809,4),r=y(r,a,b,t,e[12],3873151461,11),t=y(t,r,a,b,e[15],530742520,16),a=v(a,b=y(b,t,r,a,e[2],3299628645,23),t,r,e[0],4096336452,6),r=v(r,a,b,t,e[7],1126891415,10),t=v(t,r,a,b,e[14],2878612391,15),b=v(b,t,r,a,e[5],4237533241,21),a=v(a,b,t,r,e[12],1700485571,6),r=v(r,a,b,t,e[3],2399980690,10),t=v(t,r,a,b,e[10],4293915773,15),b=v(b,t,r,a,e[1],2240044497,21),a=v(a,b,t,r,e[8],1873313359,6),r=v(r,a,b,t,e[15],4264355552,10),t=v(t,r,a,b,e[6],2734768916,15),b=v(b,t,r,a,e[13],1309151649,21),a=v(a,b,t,r,e[4],4149444226,6),r=v(r,a,b,t,e[11],3174756917,10),t=v(t,r,a,b,e[2],718787259,15),b=v(b,t,r,a,e[9],3951481745,21),this._a=this._a+a|0,this._b=this._b+b|0,this._c=this._c+t|0,this._d=this._d+r|0},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=c.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=d},function(e,t,r){"use strict";var n=r(199).Buffer,o=r(693),c=r(449).Transform;function l(e){c.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(82)(l,c),l.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},l.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},l.prototype.update=function(data,e){if(this._finalized)throw new Error("Digest already called");for(var t=o(data,e),r=this._block,n=0;this._blockOffset+t.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i]=t[n],i+=1,n+=1;this._update(),this._blockOffset=0}for(;n<t.length;)r[this._blockOffset]=t[n],this._blockOffset+=1,n+=1;for(var c=0,l=8*t.length;l>0;++c)this._length[c]+=l,(l=this._length[c]/4294967296|0)>0&&(this._length[c]-=4294967296*l);return this},l.prototype._update=function(){throw new Error("_update is not implemented")},l.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var i=0;i<4;++i)this._length[i]=0;return t},l.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=l},function(e,t,r){"use strict";var n=r(199).Buffer,o=r(694),c="undefined"!=typeof Uint8Array,l=c&&"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView;e.exports=function(e,t){if("string"==typeof e||n.isBuffer(e)||c&&e instanceof Uint8Array||l&&l(e))return o(e,t);throw new TypeError('The "data" argument must be a string, a Buffer, a Uint8Array, or a DataView')}},function(e,t,r){"use strict";var n=r(199).Buffer,o=r(695),c=r(696),l=ArrayBuffer.isView||function(e){try{return c(e),!0}catch(e){return!1}},d="undefined"!=typeof Uint8Array,f="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,h=f&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);e.exports=function(data,e){if(n.isBuffer(data))return data.constructor&&!("isBuffer"in data)?n.from(data):data;if("string"==typeof data)return n.from(data,e);
2if(f&&l(data)){if(0===data.byteLength)return n.alloc(0);if(h){var t=n.from(data.buffer,data.byteOffset,data.byteLength);if(t.byteLength===data.byteLength)return t}var r=data instanceof Uint8Array?data:new Uint8Array(data.buffer,data.byteOffset,data.byteLength),c=n.from(r);if(c.length===data.byteLength)return c}if(d&&data instanceof Uint8Array)return n.from(data);var m=o(data);if(m)for(var i=0;i<data.length;i+=1){var y=data[i];if("number"!=typeof y||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(m||n.isBuffer(data)&&data.constructor&&"function"==typeof data.constructor.isBuffer&&data.constructor.isBuffer(data))return n.from(data);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=r(140),o=r(141)("TypedArray.prototype.buffer",!0),c=r(447);e.exports=o||function(e){if(!c(e))throw new n("Not a Typed Array");return e.buffer}},function(e,t,r){"use strict";e.exports=Error},function(e,t,r){"use strict";e.exports=EvalError},function(e,t,r){"use strict";e.exports=RangeError},function(e,t,r){"use strict";e.exports=ReferenceError},function(e,t,r){"use strict";e.exports=URIError},function(e,t,r){"use strict";e.exports=Math.abs},function(e,t,r){"use strict";e.exports=Math.floor},function(e,t,r){"use strict";e.exports=Math.max},function(e,t,r){"use strict";e.exports=Math.min},function(e,t,r){"use strict";e.exports=Math.pow},function(e,t,r){"use strict";e.exports=Math.round},function(e,t,r){"use strict";var n=r(709);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},function(e,t,r){"use strict";e.exports=Number.isNaN||function(a){return a!=a}},function(e,t,r){"use strict";e.exports=Object.getOwnPropertyDescriptor},function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(442);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},function(e,t,r){"use strict";var n,o=r(292),c=r(142);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var desc=!!n&&c&&c(Object.prototype,"__proto__"),l=Object,d=l.getPrototypeOf;e.exports=desc&&"function"==typeof desc.get?o([desc.get]):"function"==typeof d&&function(e){return d(null==e?e:l(e))}},function(e,t,r){"use strict";var n=Object.prototype.toString,o=Math.max,c=function(a,b){for(var e=[],i=0;i<a.length;i+=1)e[i]=a[i];for(var t=0;t<b.length;t+=1)e[t+a.length]=b[t];return e};e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==n.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,l=function(e,t){for(var r=[],i=t||0,n=0;i<e.length;i+=1,n+=1)r[n]=e[i];return r}(arguments,1),d=o(0,t.length-l.length),f=[],i=0;i<d;i++)f[i]="$"+i;if(r=Function("binder","return function ("+function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r}(f,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof r){var n=t.apply(this,c(l,arguments));return Object(n)===n?n:this}return t.apply(e,c(l,arguments))}),t.prototype){var h=function(){};h.prototype=t.prototype,r.prototype=new h,h.prototype=null}return r}},function(e,t,r){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},function(e,t,r){"use strict";var n=r(716),o=Object.prototype.toString,c=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){if(!n(t))throw new TypeError("iterator must be a function");var l,d;arguments.length>=3&&(l=r),d=e,"[object Array]"===o.call(d)?function(e,t,r){for(var i=0,n=e.length;i<n;i++)c.call(e,i)&&(null==r?t(e[i],i,e):t.call(r,e[i],i,e))}(e,t,l):"string"==typeof e?function(e,t,r){for(var i=0,n=e.length;i<n;i++)null==r?t(e.charAt(i),i,e):t.call(r,e.charAt(i),i,e)}(e,t,l):function(object,e,t){for(var r in object)c.call(object,r)&&(null==t?e(object[r],r,object):e.call(t,object[r],r,object))}(e,t,l)}},function(e,t,r){"use strict";var n,o,c=Function.prototype.toString,l="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof l&&"function"==typeof Object.defineProperty)try{n=Object.defineProperty({},"length",{get:function(){throw o}}),o={},l(function(){throw 42}
2,null,n)}catch(e){e!==o&&(l=null)}else l=null;var d=/^\s*class\b/,f=function(e){try{var t=c.call(e);return d.test(t)}catch(e){return!1}},h=function(e){try{return!f(e)&&(c.call(e),!0)}catch(e){return!1}},m=Object.prototype.toString,y="function"==typeof Symbol&&!!Symbol.toStringTag,v=!(0 in[,]),_=function(){return!1};if("object"==typeof document){var E=document.all;m.call(E)===m.call(document.all)&&(_=function(e){if((v||!e)&&(void 0===e||"object"==typeof e))try{var t=m.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=l?function(e){if(_(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{l(e,null,n)}catch(e){if(e!==o)return!1}return!f(e)&&h(e)}:function(e){if(_(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(y)return h(e);if(f(e))return!1;var t=m.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&h(e)}},function(e,t,r){"use strict";(function(t){var n=r(718),g="undefined"==typeof globalThis?t:globalThis;e.exports=function(){for(var e=[],i=0;i<n.length;i++)"function"==typeof g[n[i]]&&(e[e.length]=n[i]);return e}}).call(this,r(30))},function(e,t,r){"use strict";e.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},function(e,t,r){"use strict";var n=r(720),o=r(201),c=r(292),l=r(723);e.exports=function(e){var t=c(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},o?o(e.exports,"apply",{value:l}):e.exports.apply=l},function(e,t,r){"use strict";var n=r(439),o=r(721),c=r(722)(),l=r(142),d=r(140),f=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new d("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||f(t)!==t)throw new d("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,h=!0;if("length"in e&&l){var desc=l(e,"length");desc&&!desc.configurable&&(n=!1),desc&&!desc.writable&&(h=!1)}return(n||h||!r)&&(c?o(e,"length",t,!0,!0):o(e,"length",t)),e}},function(e,t,r){"use strict";var n=r(201),o=r(441),c=r(140),l=r(142);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new c("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new c("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new c("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new c("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new c("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new c("`loose`, if provided, must be a boolean");var d=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,m=arguments.length>6&&arguments[6],desc=!!l&&l(e,t);if(n)n(e,t,{configurable:null===h&&desc?desc.configurable:!h,enumerable:null===d&&desc?desc.enumerable:!d,value:r,writable:null===f&&desc?desc.writable:!f});else{if(!m&&(d||f||h))throw new o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=r}}},function(e,t,r){"use strict";var n=r(201),o=function(){return!!n};o.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},function(e,t,r){"use strict";var n=r(158),o=r(294),c=r(445);e.exports=function(){return c(n,o,arguments)}},function(e,t,r){(function(t){var n=r(450),o=r(203);"disable"===t.env.READABLE_STREAM?e.exports=n&&n.Writable||o:e.exports=o}).call(this,r(32))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}
vendor: 4,201 bytes, line 2
2e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(30))},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";var n=r(728),o=r(729),c=r(448),l=r(447);function d(e){return e.call.bind(e)}var f="undefined"!=typeof BigInt,h="undefined"!=typeof Symbol,m=d(Object.prototype.toString),y=d(Number.prototype.valueOf),v=d(String.prototype.valueOf),_=d(Boolean.prototype.valueOf);if(f)var E=d(BigInt.prototype.valueOf);if(h)var w=d(Symbol.prototype.valueOf);function A(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function T(e){return"[object Map]"===m(e)}function O(e){return"[object Set]"===m(e)}function S(e){return"[object WeakMap]"===m(e)}function I(e){return"[object WeakSet]"===m(e)}function C(e){return"[object ArrayBuffer]"===m(e)}function N(e){return"undefined"!=typeof ArrayBuffer&&(C.working?C(e):e instanceof ArrayBuffer)}function P(e){return"[object DataView]"===m(e)}function R(e){return"undefined"!=typeof DataView&&(P.working?P(e):e instanceof DataView)}t.isArgumentsObject=n,t.isGeneratorFunction=o,t.isTypedArray=l,t.isPromise=function(input){return"undefined"!=typeof Promise&&input instanceof Promise||null!==input&&"object"==typeof input&&"function"==typeof input.then&&"function"==typeof input.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):l(e)||R(e)},t.isUint8Array=function(e){return"Uint8Array"===c(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===c(e)},t.isUint16Array=function(e){return"Uint16Array"===c(e)},t.isUint32Array=function(e){return"Uint32Array"===c(e)},t.isInt8Array=function(e){return"Int8Array"===c(e)},t.isInt16Array=function(e){return"Int16Array"===c(e)},t.isInt32Array=function(e){return"Int32Array"===c(e)},t.isFloat32Array=function(e){return"Float32Array"===c(e)},t.isFloat64Array=function(e){return"Float64Array"===c(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===c(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===c(e)},T.working="undefined"!=typeof Map&&T(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(T.working?T(e):e instanceof Map)},O.working="undefined"!=typeof Set&&O(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(O.working?O(e):e instanceof Set)},S.working="undefined"!=typeof WeakMap&&S(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(S.working?S(e):e instanceof WeakMap)},I.working="undefined"!=typeof WeakSet&&I(new WeakSet),t.isWeakSet=function(e){return I(e)},C.working="undefined"!=typeof ArrayBuffer&&C(new ArrayBuffer),t.isArrayBuffer=N,P.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&P(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=R;var L="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function D(e){return"[object SharedArrayBuffer]"===m(e)}function x(e){return void 0!==L&&(void 0===D.working&&(D.working=D(new L)),D.working?D(e):e instanceof L)}function k(e){return A(e,y)}function M(e){return A(e,v)}function F(e){return A(e,_)}function U(e){return f&&A(e,E)}function j(e){return h&&A(e,w)}t.isSharedArrayBuffer=x,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===m(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===m(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===m(e)},t.isGeneratorObject=function(e){return"[object Generator]"===m(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===m(e)},t.isNumberObject=k,t.isStringObject=M,t.isBooleanObject=F,t.isBigIntObject=U,t.isSymbolObject=j,t.isBoxedPrimitive=function(e){return k(e)||M(e)||F(e)||U(e)||j(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(N(e)||x(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})})},function(e,t,r){"use strict";
vendor: 1,521 bytes, line 2
2var n=r(202)(),o=r(141)("Object.prototype.toString"),c=function(e){return!(n&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},l=function(e){return!!c(e)||null!==e&&"object"==typeof e&&"length"in e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"callee"in e&&"[object Function]"===o(e.callee)},d=function(){return c(arguments)}();c.isLegacyArguments=l,e.exports=d?c:l},function(e,t,r){"use strict";var n=r(141),o=r(730)(/^\s*(?:function)?\*/),c=r(202)(),l=r(291),d=n("Object.prototype.toString"),f=n("Function.prototype.toString"),h=r(732);e.exports=function(e){if("function"!=typeof e)return!1;if(o(f(e)))return!0;if(!c)return"[object GeneratorFunction]"===d(e);if(!l)return!1;var t=h();return t&&l(e)===t.prototype}},function(e,t,r){"use strict";var n=r(141),o=r(731),c=n("RegExp.prototype.exec"),l=r(140);e.exports=function(e){if(!o(e))throw new l("`regex` must be a RegExp");return function(s){return null!==c(e,s)}}},function(e,t,r){"use strict";var n,o=r(141),c=r(202)(),l=r(446),d=r(142);if(c){var f=o("RegExp.prototype.exec"),h={},m=function(){throw h},y={toString:m,valueOf:m};"symbol"==typeof Symbol.toPrimitive&&(y[Symbol.toPrimitive]=m),n=function(e){if(!e||"object"!=typeof e)return!1;var t=d(e,"lastIndex");if(!(t&&l(t,"value")))return!1;try{f(e,y)}catch(e){return e===h}}}else{var v=o("Object.prototype.toString");n=function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===v(e)}}e.exports=n},function(e,t,r){"use strict";r.r(t);
2var n=r(577),o=r.n(n);t.default=o.a},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t,r){"use strict";var n=r(296).Buffer,o=r(453);function c(e,t,r){e.copy(t,r)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t=n.allocUnsafe(e>>>0),p=this.head,i=0;p;)c(p.data,t,i),i+=p.data.length,p=p.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t,r){var n=r(200),o=n.Buffer;function c(e,t){for(var r in e)t[r]=e[r]}function l(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(c(n,t),t.Buffer=l),c(o,l),l.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},l.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},l.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},l.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){e.exports=r(298).Duplex},function(e,t,r){e.exports=r(298).Transform},function(e,t,r){e.exports=r(298).PassThrough},,,,function(e,t,r){"use strict";var n=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===o}(e)}(e)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?m((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function l(e,source,t){return e.concat(source).map(function(element){return c(element,t)})}function d(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(symbol){return Object.propertyIsEnumerable.call(e,symbol)}):[]}(e))}function f(object,e){try{return e in object}catch(e){return!1}}function h(e,source,t){var r={};return t.isMergeableObject(e)&&d(e).forEach(function(n){r[n]=c(e[n],t)}),d(source).forEach(function(n){(function(e,t){return f(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,n)||(f(e,n)&&t.isMergeableObject(source[n])?r[n]=function(e,t){if(!t.customMerge)return m;var r=t.customMerge(e);return"function"==typeof r?r:m}(n,t)(e[n],source[n],t):r[n]=c(source[n],t))}),r}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||l,t.isMergeableObject=t.isMergeableObject||n,t.cloneUnlessOtherwiseSpecified=c;var r=Array.isArray(source);return r===Array.isArray(e)?r?t.arrayMerge(e,source,t):h(e,source,t):c(source,t)}m.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return m(e,r,t)},{})};var y=m;e.exports=y},function(e,t,r){"use strict";var n={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var r=t.parent,n=t.slots,o=t.props,c=n(),l=c.default;void 0===l&&(l=[]);var d=c.placeholder;return r._isMounted?l:(r.$once("hook:mounted",function(){r.$forceUpdate()}),o.placeholderTag&&(o.placeholder||d)?e(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||d):l.length>0?l.map(function(){return e(!1)}):e(!1))}};e.exports=n},function(e,t,r){"use strict";var n={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var r=t.parent,n=t.slots,o=t.props,c=n(),l=c.default;void 0===l&&(l=[]);var d=c.placeholder;return r._isMounted?l:(r.$once("hook:mounted",function(){r.$forceUpdate()}),o.placeholderTag&&(o.placeholder||d)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||d):l.length>0?l.map(function(){return e(!1)}):e(!1))}};e.exports=n},,,,,,,,,,,function(e,t,r){e.exports={}},function(e,t,r){e.exports={}},function(e,t,r){e.exports={}},,function(e,t,r){(function(e,n){var o;!function(){var c=t,l=(e&&e.exports,"object"==typeof n&&n);l.global!==l&&l.window;var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=/[\x01-\x7F]/g,h=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,m=/<\u20D2|=\u20E5|>
2\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,y
vendor: 21,211 bytes, line 2
2={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr","ª":"ordf","á":"aacute","Á":"Aacute","à":"agrave","À":"Agrave","ă":"abreve","Ă":"Abreve","â":"acirc","Â":"Acirc","å":"aring","Å":"angst","ä":"auml","Ä":"Auml","ã":"atilde","Ã":"Atilde","ą":"aogon","Ą":"Aogon","ā":"amacr","Ā":"Amacr","æ":"aelig","Æ":"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf","ℬ":"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf","ℭ":"Cfr","𝒞":"Cscr","ℂ":"Copf","ć":"cacute","Ć":"Cacute","ĉ":"ccirc","Ĉ":"Ccirc","č":"ccaron","Č":"Ccaron","ċ":"cdot","Ċ":"Cdot","ç":"ccedil","Ç":"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf","ď":"dcaron","Ď":"Dcaron","đ":"dstrok","Đ":"Dstrok","ð":"eth","Ð":"ETH","ⅇ":"ee","ℯ":"escr","𝔢":"efr","𝕖":"eopf","ℰ":"Escr","𝔈":"Efr","𝔼":"Eopf","é":"eacute","É":"Eacute","è":"egrave","È":"Egrave","ê":"ecirc","Ê":"Ecirc","ě":"ecaron","Ě":"Ecaron","ë":"euml","Ë":"Euml","ė":"edot","Ė":"Edot","ę":"eogon","Ę":"Eogon","ē":"emacr","Ē":"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf","ℱ":"Fscr","ff":"fflig","ffi":"ffilig","ffl":"ffllig","fi":"filig",fj:"fjlig","fl":"fllig","ƒ":"fnof","ℊ":"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr","ǵ":"gacute","ğ":"gbreve","Ğ":"Gbreve","ĝ":"gcirc","Ĝ":"Gcirc","ġ":"gdot","Ġ":"Gdot","Ģ":"Gcedil","𝔥":"hfr","ℎ":"planckh","𝒽":"hscr","𝕙":"hopf","ℋ":"Hscr","ℌ":"Hfr","ℍ":"Hopf","ĥ":"hcirc","Ĥ":"Hcirc","ℏ":"hbar","ħ":"hstrok","Ħ":"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf","ℐ":"Iscr","ℑ":"Im","í":"iacute","Í":"Iacute","ì":"igrave","Ì":"Igrave","î":"icirc","Î":"Icirc","ï":"iuml","Ï":"Iuml","ĩ":"itilde","Ĩ":"Itilde","İ":"Idot","į":"iogon","Į":"Iogon","ī":"imacr","Ī":"Imacr","ij":"ijlig","IJ":"IJlig","ı":"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf","ĵ":"jcirc","Ĵ":"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr","ķ":"kcedil","Ķ":"Kcedil","𝔩":"lfr","𝓁":"lscr","ℓ":"ell","𝕝":"lopf","ℒ":"Lscr","𝔏":"Lfr","𝕃":"Lopf","ĺ":"lacute","Ĺ":"Lacute","ľ":"lcaron","Ľ":"Lcaron","ļ":"lcedil","Ļ":"Lcedil","ł":"lstrok","Ł":"Lstrok","ŀ":"lmidot","Ŀ":"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf","ℳ":"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr","ℕ":"Nopf","𝒩":"Nscr","𝔑":"Nfr","ń":"nacute","Ń":"Nacute","ň":"ncaron","Ň":"Ncaron","ñ":"ntilde","Ñ":"Ntilde","ņ":"ncedil","Ņ":"Ncedil","№":"numero","ŋ":"eng","Ŋ":"ENG","𝕠":"oopf","𝔬":"ofr","ℴ":"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf","º":"ordm","ó":"oacute","Ó":"Oacute","ò":"ograve","Ò":"Ograve","ô":"ocirc","Ô":"Ocirc","ö":"ouml","Ö":"Ouml","ő":"odblac","Ő":"Odblac","õ":"otilde","Õ":"Otilde","ø":"oslash","Ø":"Oslash","ō":"omacr","Ō":"Omacr","œ":"oelig","Œ":"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf","ℙ":"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr","ℚ":"Qopf","ĸ":"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr","ℛ":"Rscr","ℜ":"Re","ℝ":"Ropf","ŕ":"racute","Ŕ":"Racute","ř":"rcaron","Ř":"Rcaron","ŗ":"rcedil","Ŗ":"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS","ś":"sacute","Ś":"Sacute","ŝ":"scirc","Ŝ":"Scirc","š":"scaron","Š":"Scaron","ş":"scedil","Ş":"Scedil","ß":"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf","ť":"tcaron","Ť":"Tcaron","ţ":"tcedil","Ţ":"Tcedil","™":"trade","ŧ":"tstrok","Ŧ":"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr","ú":"uacute","Ú":"Uacute","ù":"ugrave","Ù":"Ugrave","ŭ":"ubreve","Ŭ":"Ubreve","û":"ucirc","Û":"Ucirc","ů":"uring","Ů":"Uring","ü":"uuml","Ü":"Uuml","ű":"udblac","Ű":"Udblac","ũ":"utilde","Ũ":"Utilde","ų":"uogon","Ų":"Uogon","ū":"umacr","Ū":"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr","ŵ":"wcirc","Ŵ":"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf","ý":"yacute","Ý":"Yacute","ŷ":"ycirc","Ŷ":"Ycirc","ÿ":"yuml","Ÿ":"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf","ℨ":"Zfr","ℤ":"Zopf","𝒵":"Zscr","ź":"zacute","Ź":"Zacute","ž":"zcaron","Ž":"Zcaron","ż":"zdot","Ż":"Zdot","Ƶ":"imped","þ":"thorn","Þ":"THORN","ʼn":"napos","α":"alpha","Α":"Alpha","β":"beta","Β":"Beta","γ":"gamma","Γ":"Gamma","δ":"delta","Δ":"Delta","ε":"epsi","ϵ":"epsiv","Ε":"Epsilon","ϝ":"gammad","Ϝ":"Gammad","ζ":"zeta","Ζ":"Zeta","η":"eta","Η":"Eta","θ":"theta","ϑ":"thetav","Θ":"Theta","ι":"iota","Ι":"Iota","κ":"kappa","ϰ":"kappav","Κ":"Kappa","λ":"lambda","Λ":"Lambda","μ":"mu","µ":"micro","Μ":"Mu","ν":"nu","Ν":"Nu","ξ":"xi","Ξ":"Xi","ο":"omicron","Ο":"Omicron","π":"pi","ϖ":"piv","Π":"Pi","ρ":"rho","ϱ":"rhov","Ρ":"Rho","σ":"sigma","Σ":"Sigma","ς":"sigmaf","τ":"tau","Τ":"Tau","υ":"upsi","Υ":"Upsilon","ϒ":"Upsi","φ":"phi","ϕ":"phiv","Φ":"Phi","χ":"chi","Χ":"Chi","ψ":"psi","Ψ":"Psi","ω":"omega","Ω":"ohm","а":"acy","А":"Acy","б":"bcy","Б":"Bcy","в":"vcy","В":"Vcy","г":"gcy","Г":"Gcy","ѓ":"gjcy","Ѓ":"GJcy","д":"dcy","Д":"Dcy","ђ":"djcy","Ђ":"DJcy","е":"iecy","Е":"IEcy","ё":"iocy","Ё":"IOcy","є":"jukcy","Є":"Jukcy","ж":"zhcy","Ж":"ZHcy","з":"zcy","З":"Zcy","ѕ":"dscy","Ѕ":"DScy","и":"icy","И":"Icy","і":"iukcy","І":"Iukcy","ї":"yicy","Ї":"YIcy","й":"jcy","Й":"Jcy","ј":"jsercy","Ј":"Jsercy","к":"kcy","К":"Kcy","ќ":"kjcy","Ќ":"KJcy","л":"lcy","Л":"Lcy","љ":"ljcy","Љ":"LJcy","м":"mcy","М":"Mcy","н":"ncy","Н":"Ncy","њ":"njcy","Њ":"NJcy","о":"ocy","О":"Ocy","п":"pcy","П":"Pcy","р":"rcy","Р":"Rcy","с":"scy","С":"Scy","т":"tcy","Т":"Tcy","ћ":"tshcy","Ћ":"TSHcy","у":"ucy","У":"Ucy","ў":"ubrcy","Ў":"Ubrcy","ф":"fcy","Ф":"Fcy","х":"khcy","Х":"KHcy","ц":"tscy","Ц":"TScy","ч":"chcy","Ч":"CHcy","џ":"dzcy","Џ":"DZcy","ш":"shcy","Ш":"SHcy","щ":"shchcy","Щ":"SHCHcy","ъ":"hardcy","Ъ":"HARDcy","ы":"ycy","Ы":"Ycy","ь":"softcy","Ь":"SOFTcy","э":"ecy","Э":"Ecy","ю":"yucy","Ю":"YUcy","я":"yacy","Я":"YAcy","ℵ":"aleph","ℶ":"beth","ℷ":"gimel","ℸ":"daleth"},
2v=/["&'<>`]/g,_={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},E=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,w=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,A
vendor: 16,834 bytes, line 2
2=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,
2T
vendor: 28,726 bytes, line 2
2={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},
vendor: 3,891 bytes, line 2
2O={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},S={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},I=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],C=String.fromCharCode,N={}.hasOwnProperty,P=function(object,e){return N.call(object,e)},R=function(e,t){if(!e)return t;var r,n={};for(r in t)n[r]=P(e,r)?e[r]:t[r];return n},L=function(e,t){var output="";return e>=55296&&e<=57343||e>1114111?(t&&k("character reference outside the permissible Unicode range"),"�"):P(S,e)?(t&&k("disallowed character reference"),S[e]):(t&&function(e,t){for(var r=-1,n=e.length;++r<n;)if(e[r]==t)return!0;return!1}(I,e)&&k("disallowed character reference"),e>65535&&(output+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),output+=C(e))},D=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},x=function(e){return"&#"+e+";"},k=function(e){throw Error("Parse error: "+e)},M=function(e,t){(t=R(t,M.options)).strict&&w.test(e)&&k("forbidden code point");var r=t.encodeEverything,n=t.useNamedReferences,o=t.allowUnsafeSymbols,c=t.decimal?x:D,l=function(symbol){return c(symbol.charCodeAt(0))};return r?(e=e.replace(f,function(symbol){return n&&P(y,symbol)?"&"+y[symbol]+";":l(symbol)}),n&&(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),n&&(e=e.replace(m,function(e){return"&"+y[e]+";"}))):n?(o||(e=e.replace(v,function(e){return"&"+y[e]+";"})),e=(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(m,function(e){return"&"+y[e]+";"})):o||(e=e.replace(v,l)),e.replace(d,function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return c(1024*(t-55296)+r-56320+65536)}).replace(h,l)};M.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var F=function(html,e){var t=(e=R(e,F.options)).strict;return t&&E.test(html)&&k("malformed character reference"),html.replace(A,function(r,n,o,c,l,d,f,h,m){var y,v,_,E,w,A;return n?T[w=n]:o?(w=o,(A=c)&&e.isAttributeValue?(t&&"="==A&&k("`&` did n
2ot start a character reference"),r):(t&&k("named character reference was not terminated by a semicolon"),O[w]+(A||""))):l?(_=l,v=d,t&&!v&&k("character reference was not terminated by a semicolon"),y=parseInt(_,10),L(y,t)):f?(E=f,v=h,t&&!v&&k("character reference was not terminated by a semicolon"),y=parseInt(E,16),L(y,t)):(t&&k("named character reference was not terminated by a semicolon"),r)})};F.options={isAttributeValue:!1,strict:!1};var U={version:"1.2.0",encode:M,decode:F,escape:function(e){return e.replace(v,function(e){return _[e]})},unescape:F};void 0===(o=function(){return U}.call(t,r,t,e))||(e.exports=o)}()}).call(this,r(760)(e),r(30))},,function(e,t,r){"use strict";function n(e,t=100,r={}){if("function"!=typeof e)throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(t<0)throw new RangeError("`wait` must not be negative.");if("boolean"==typeof r)throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:n}=r;let o,c,l,d,f;function h(){const t=o,r=c;return o=void 0,c=void 0,f=e.apply(t,r),f}function m(){const e=Date.now()-d;e<t&&e>=0?l=setTimeout(m,t-e):(l=void 0,n||(f=h()))}const y=function(...e){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,c=e,d=Date.now();const r=n&&!l;if(l||(l=setTimeout(m,t)),r)return f=h(),f};return Object.defineProperty(y,"isPending",{get:()=>void 0!==l}),y.clear=()=>{l&&(clearTimeout(l),l=void 0,o=void 0,c=void 0)},y.flush=()=>{l&&y.trigger()},y.trigger=()=>{f=h(),y.clear()},y}r.r(t),r.d(t,"default",function(){return n})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.startRegistration=function(e){return w.apply(this,arguments)};var o=n(r(8)),c=n(r(10)),l=r(308),d=r(206),f=r(143),h=r(540),m=r(818),y=r(311),v=r(541);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(){return(w=(0,c.default)(function*(e){var t;!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});var r=e,n=r.optionsJSON,o=r.useAutoRegister,c=void 0!==o&&o;if(!(0,f.browserSupportsWebAuthn)())throw new Error("WebAuthn is not supported in this browser");var _,w=E(E({},n),{},{challenge:(0,d.base64URLStringToBuffer)(n.challenge),user:E(E({},n.user),{},{id:(0,d.base64URLStringToBuffer)(n.user.id)}),excludeCredentials:null===(t=n.excludeCredentials)||void 0===t?void 0:t.map(h.toPublicKeyCredentialDescriptor)}),T={};c&&(T.mediation="conditional"),T.publicKey=w,T.signal=y.WebAuthnAbortService.createNewAbortSignal();try{_=yield navigator.credentials.create(T)}catch(e){throw(0,m.identifyRegistrationError)({error:e,options:T})}if(!_)throw new Error("Registration was not completed");var O=_,S=O.id,I=O.rawId,C=O.response,N=O.type,P=void 0;"function"==typeof C.getTransports&&(P=C.getTransports());var R=void 0;if("function"==typeof C.getPublicKeyAlgorithm)try{R=C.getPublicKeyAlgorithm()}catch(e){A("getPublicKeyAlgorithm()",e)}var L,D=void 0;if("function"==typeof C.getPublicKey)try{var x=C.getPublicKey();null!==x&&(D=(0,l.bufferToBase64URLString)(x))}catch(e){A("getPublicKey()",e)}if("function"==typeof C.getAuthenticatorData)try{L=(0,l.bufferToBase64URLString)(C.getAuthenticatorData())}catch(e){A("getAuthenticatorData()",e)}return{id:S,rawId:(0,l.bufferToBase64URLString)(I),response:{attestationObject:(0,l.bufferToBase64URLString)(C.attestationObject),clientDataJSON:(0,l.bufferToBase64URLString)(C.clientDataJSON),transports:P,publicKeyAlgorithm:R,publicKey:D,authenticatorData:L},type:N,clientExtensionResults:_.getClientExtensionResults(),authenticatorAttachment:(0,v.toAuthenticatorAttachment)(_.authenticatorAttachment)}})).apply(this,arguments)}function A(e,t){console.warn("The browser extension that intercepted this WebAuthn API call incorrectly implemented ".concat(e,". You should report this error to them.\n"),t)}},,,,,,,,,,,,,,function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.identifyRegistrationError=function(e){var t=e.error,r=e.options,c=r.publicKey;if(!c)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(r.signal instanceof AbortSignal)return new o.WebAuthnError({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if("ConstraintError"===t.name){var l,d,f;if(!0===(null===(l=c.authenticatorSelection)||void 0===l?void 0:l.requireResidentKey))return new o.WebAuthnError({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if("conditional"===r.mediation&&"required"===(null===(d=c.authenticatorSelection)||void 0===d?void 0:d.userVerification))return new o.WebAuthnError({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if("required"===(null===(f=c.authenticatorSelection)||void 0===f?void 0:f.userVerification))return new o.WebAuthnError({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if("InvalidStateError"===t.name)return new o.WebAuthnError({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if("NotAllowedError"===t.name)return new o.WebAuthnError({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if("NotSupportedError"===t.name)return 0===c.pubKeyCredParams.filter(param=>"public-key"===param.type).length?new o.WebAuthnError({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new o.WebAuthnError({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if("SecurityError"===t.name){var h=globalThis.location.hostname;if(!(0,n.isValidDomain)(h))return new o.WebAuthnError({message:"".concat(globalThis.location.hostname," is an invalid domain"),code:"ERROR_INVALID_DOMAIN",cause:t});if(c.rp.id!==h)return new o.WebAuthnError({message:'The RP ID "'.concat(c.rp.id,'" is invalid for this domain'),code:"ERROR_INVALID_RP_ID",cause:t})}else if("TypeError"===t.name){if(c.user.id.byteLength<1||c.user.id.byteLength>64)return new o.WebAuthnError({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if("UnknownError"===t.name)return new o.WebAuthnError({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t},r(36);var n=r(310),o=r(207)},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.startAuthentication=function(e){return A.apply(this,arguments)};var o=n(r(8)),c=n(r(10)),l=r(308),d=r(206),f=r(143),h=r(542),m=r(540),y=r(820),v=r(311),_=r(541);function E(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?E(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function A(){return(A=(0,c.default)(function*(e){var t;!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});var r,n,o=e,c=o.optionsJSON,E=o.useBrowserAutofill,A=void 0!==E&&E,T=o.verifyBrowserAutofillInput,O=void 0===T||T;if(!(0,f.browserSupportsWebAuthn)())throw new Error("WebAuthn is not supported in this browser");0!==(null===(t=c.allowCredentials)||void 0===t?void 0:t.length)&&(r=null===(n=c.allowCredentials)||void 0===n?void 0:n.map(m.toPublicKeyCredentialDescriptor));var S,I=w(w({},c),{},{challenge:(0,d.base64URLStringToBuffer)(c.challenge),allowCredentials:r}),C={};if(A){if(!(yield(0,h.browserSupportsWebAuthnAutofill)()))throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&O)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');C.mediation="conditional",I.allowCredentials=[]}C.publicKey=I,C.signal=v.WebAuthnAbortService.createNewAbortSignal();try{S=yield navigator.credentials.get(C)}catch(e){throw(0,y.identifyAuthenticationError)({error:e,options:C})}if(!S)throw new Error("Authentication was not completed");var N=S,P=N.id,R=N.rawId,L=N.response,D=N.type,x=void 0;return L.userHandle&&(x=(0,l.bufferToBase64URLString)(L.userHandle)),{id:P,rawId:(0,l.bufferToBase64URLString)(R),response:{authenticatorData:(0,l.bufferToBase64URLString)(L.authenticatorData),clientDataJSON:(0,l.bufferToBase64URLString)(L.clientDataJSON),signature:(0,l.bufferToBase64URLString)(L.signature),userHandle:x},type:D,clientExtensionResults:S.getClientExtensionResults(),authenticatorAttachment:(0,_.toAuthenticatorAttachment)(S.authenticatorAttachment)}})).apply(this,arguments)}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.identifyAuthenticationError=function(e){var t=e.error,r=e.options,c=r.publicKey;if(!c)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(r.signal instanceof AbortSignal)return new o.WebAuthnError({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if("NotAllowedError"===t.name)return new o.WebAuthnError({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if("SecurityError"===t.name){var l=globalThis.location.hostname;if(!(0,n.isValidDomain)(l))return new o.WebAuthnError({message:"".concat(globalThis.location.hostname," is an invalid domain"),code:"ERROR_INVALID_DOMAIN",cause:t});if(c.rpId!==l)return new o.WebAuthnError({message:'The RP ID "'.concat(c.rpId,'" is invalid for this domain'),code:"ERROR_INVALID_RP_ID",cause:t})}else if("UnknownError"===t.name)return new o.WebAuthnError({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t},r(36);var n=r(310),o=r(207)},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.sendSignal=function(e){return l.apply(this,arguments)},r(36);var o=n(r(10)),c=r(822);function l(){return l=(0,o.default)(function*(e){var t=e.signalName;if("unknownCredential"===t)return function(e){return d.apply(this,arguments)}(e);if("allAcceptedCredentials"===t)return function(e){return f.apply(this,arguments)}(e);if("currentUserDetails"===t)return function(e){return h.apply(this,arguments)}(e);throw new Error('Received unrecognized signalName "'.concat(e.signalName,'"'))}),l.apply(this,arguments)}function d(){return(d=(0,o.default)(function*(e){var t=globalThis.PublicKeyCredential;if("function"!=typeof t.signalUnknownCredential)throw new Error("This browser does not support PublicKeyCredential.signalUnknownCredential()");try{yield t.signalUnknownCredential({rpId:e.rpID,credentialId:e.credentialID})}catch(t){throw(0,c.identifySignalError)({error:t,options:e})}})).apply(this,arguments)}function f(){return(f=(0,o.default)(function*(e){var t=globalThis.PublicKeyCredential;if("function"!=typeof t.signalAllAcceptedCredentials)throw new Error("This browser does not support PublicKeyCredential.signalAllAcceptedCredentials()");try{yield t.signalAllAcceptedCredentials({rpId:e.rpID,userId:e.userID,allAcceptedCredentialIds:e.allAcceptedCredentialIDs})}catch(t){throw(0,c.identifySignalError)({error:t,options:e})}})).apply(this,arguments)}function h(){return(h=(0,o.default)(function*(e){var t=globalThis.PublicKeyCredential;if("function"!=typeof t.signalCurrentUserDetails)throw new Error("This browser does not support PublicKeyCredential.signalCurrentUserDetails()");try{var r;yield t.signalCurrentUserDetails({rpId:e.rpID,userId:e.userID,name:e.userName,displayName:null!==(r=e.userDisplayName)&&void 0!==r?r:""})}catch(t){throw(0,c.identifySignalError)({error:t,options:e})}})).apply(this,arguments)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identifySignalError=function(e){var t=e.error,r=e.options;if("SecurityError"===t.name){var c=globalThis.location.hostname;return(0,n.isValidDomain)(c)?new o.WebAuthnError({message:'The browser does not support Related Origins to enable signals for RP ID "'.concat(r.rpID,'" on domain "').concat(globalThis.location.hostname,'"'),code:"ERROR_INVALID_RP_ID",cause:t}):new o.WebAuthnError({message:'"'.concat(globalThis.location.hostname,'" is an invalid domain'),code:"ERROR_INVALID_DOMAIN",cause:t})}if("unknownCredential"===r.signalName){if("TypeError"===t.name)return new o.WebAuthnError({message:"credentialID is an invalid base64url string",code:"ERROR_SIGNAL_INVALID_ARGUMENT",cause:t})}else if("allAcceptedCredentials"===r.signalName){if("TypeError"===t.name)return new o.WebAuthnError({message:"userID, or an entry in allAcceptedCredentialIDs, is an invalid base64url string",code:"ERROR_SIGNAL_INVALID_ARGUMENT",cause:t})}else if("currentUserDetails"===r.signalName&&"TypeError"===t.name)return new o.WebAuthnError({message:"userID is an invali
2d base64url string",code:"ERROR_SIGNAL_INVALID_ARGUMENT",cause:t});return new o.WebAuthnError({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t})},r(36);var n=r(310),o=r(207)},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.browserSupportsPasskeys=function(){return d.apply(this,arguments)};var o=n(r(10)),c=r(143),l=r(543);function d(){return(d=(0,o.default)(function*(){if(!(0,c.browserSupportsWebAuthn)())return new Promise(e=>e(!1));var e=yield(0,l.getBrowserCapabilities)(),t=e.passkeyPlatformAuthenticator,r=e.userVerifyingPlatformAuthenticator,n=e.hybridTransport;return"supported"===t||"supported"===n||"supported"===r})).apply(this,arguments)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.platformAuthenticatorIsAvailable=function(){if(!(0,n.browserSupportsWebAuthn)())return new Promise(e=>e(!1));return PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()};var n=r(143)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},,,,,,function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},,,,,,function(e,t,r){"use strict";r.r(t),r.d(t,"NODE_TYPES",function(){return n}),r.d(t,"createMatcherFromExport",function(){return _}),r.d(t,"createRouter",function(){return o}),r.d(t,"exportMatcher",function(){return y}),r.d(t,"toRouteMatcher",function(){return f});const n={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function o(e={}){const t={options:e,rootNode:l(),staticRoutesMap:{}},r=p=>e.strictTrailingSlash?p:p.replace(/\/$/,"")||"/";if(e.routes)for(const path in e.routes)c(t,r(path),e.routes[path]);return{ctx:t,lookup:path=>function(e,path){const t=e.staticRoutesMap[path];if(t)return t.data;const r=path.split("/"),n={};let o=!1,c=null,l=e.rootNode,d=null;for(let i=0;i<r.length;i++){const section=r[i];null!==l.wildcardChildNode&&(c=l.wildcardChildNode,d=r.slice(i).join("/"));const e=l.children.get(section);if(void 0===e){if(l&&l.placeholderChildren.length>1){const e=r.length-i;l=l.placeholderChildren.find(t=>t.maxDepth===e)||null}else l=l.placeholderChildren[0]||null;if(!l)break;l.paramName&&(n[l.paramName]=section),o=!0}else l=e}null!==l&&null!==l.data||null===c||(l=c,n[l.paramName||"_"]=d,o=!0);if(!l)return null;if(o)return{...l.data,params:o?n:void 0};return l.data}(t,r(path)),insert:(path,data)=>c(t,r(path),data),remove:path=>function(e,path){let t=!1;const r=path.split("/");let n=e.rootNode;for(const section of r)if(n=n.children.get(section),!n)return t;if(n.data){const e=r.at(-1)||"";n.data=null,0===Object.keys(n.children).length&&n.parent&&(n.parent.children.delete(e),n.parent.wildcardChildNode=null,n.parent.placeholderChildren=[]),t=!0}return t}(t,r(path))}}function c(e,path,data){let t=!0;const r=path.split("/");let o=e.rootNode,c=0;const f=[o];for(const section of r){let e;if(e=o.children.get(section))o=e;else{const r=d(section);e=l({type:r,parent:o}),o.children.set(section,e),r===n.PLACEHOLDER?(e.paramName="*"===section?"_"+c++:section.slice(1),o.placeholderChildren.push(e),t=!1):r===n.WILDCARD&&(o.wildcardChildNode=e,e.paramName=section.slice(3)||"_",t=!1),f.push(e),o=e}}for(const[e,t]of f.entries())t.maxDepth=Math.max(f.length-e,t.maxDepth||0);return o.data=data,!0===t&&(e.staticRoutesMap[path]=o),o}function l(e={}){return{type:e.type||n.NORMAL,maxDepth:0,parent:e.parent||null,children:new Map,data:e.data||null,paramName:e.paramName||null,wildcardChildNode:null,placeholderChildren:[]}}function d(e){return e.startsWith("**")?n.WILDCARD:":"===e[0]||"*"===e?n.PLACEHOLDER:n.NORMAL}function f(e){return h(A("",e.ctx.rootNode),e.ctx.options.strictTrailingSlash)}function h(table,e){return{ctx:{table:table},matchAll:path=>E(path,table,e)}}function m(table){const e=Object.create(null);for(const t in table)e[t]="dynamic"===t?Object.fromEntries([...table[t].entries()].map(([e,t])=>[e,m(t)])):Object.fromEntries(table[t].entries());return e}function y(e){return m(e.ctx.table)}function v(e){const table={};for(const t in e)table[t]="dynamic"===t?new Map(Object.entries(e[t]).map(([e,t])=>[e,v(t)])):new Map(Object.entries(e[t]));return table}function _(e){return h(v(e))}function E(path,table,e){!0!==e&&path.endsWith("/")&&(path=path.slice(0,-1)||"/");const t=[];for(const[e,r]of w(table.wildcard))(path===e||path.startsWith(e+"/"))&&t.push(r);for(const[e,r]of w(table.dynamic))if(path.startsWith(e+"/")){const n="/"+path.slice(e.length).split("/").splice(2).join("/");t.push(...E(n,r))}const r=table.static.get(path);return r&&t.push(r),t.filter(Boolean)}function w(e){return[...e.entries()].sort((a,b)=>a[0].length-b[0].length)}function A(e,t){const table={static:new Map,wildcard:new Map,dynamic:new Map};return function e(path,t){if(path)if(t.type!==n.NORMAL||path.includes("*")||path.includes(":")){if(t.type===n.WILDCARD)table.wildcard.set(path.replace("/**",""),t.data);else if(t.type===n.PLACEHOLDER){const e=A("",t);return t.data&&e.static.set("/",t.data),void table.dynamic.set(path.replace(/\/\*|\/:\w+/,""),e)}}else t.data&&table.static.set(path,t.data);for(const[r,n]of t.children.entries())e(`${path}/${r}`.replace("//","/"),n)}(e,t),table}},function(e,t,r){"use strict";r.r(t),r.d(t,"default",function(){return d}),r.d(t,"getRandomValues",function(){return l}),r.d(t,"randomUUID",function(){return c}),r.d(t,"subtle",function(){return o}
2);const n=globalThis.crypto,o=n.subtle,c=()=>n.randomUUID(),l=e=>n.getRandomValues(e),d={randomUUID:c,getRandomValues:l,subtle:o}},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.unseal=t.stringToBuffer=t.seal=t.randomBits=t.macPrefix=t.macFormatVersion=t.hmacWithPassword=t.generateKey=t.encrypt=t.defaults=t.decrypt=t.clone=t.bufferToString=t.base64urlEncode=t.base64urlDecode=t.algorithms=void 0;var o=n(r(10)),c=n(r(8));function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){(0,c.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r(93),r(94),r(145),r(7),r(18),r(131),r(263),r(101),r(95),r(96),r(97),r(98),r(6);for(var f={},h=Array.from({length:64}),i=0,m="A".charCodeAt(0),y="Z".charCodeAt(0);i+m<=y;i++){var v=String.fromCharCode(i+m);f[v]=i,h[i]=v}for(var _=0,E="a".charCodeAt(0),w="z".charCodeAt(0);_+E<=w;_++){var A=String.fromCharCode(_+E),T=_+26;f[A]=T,h[T]=A}for(var O=0;O<10;O++){f[O.toString(10)]=O+52;var S=O.toString(10),I=O+52;f[S]=I,h[I]=S}f["-"]=62,h[62]="-",f._=63,h[63]="_";var C=e=>(new TextEncoder).encode(e);t.stringToBuffer=C;var N=e=>(new TextDecoder).decode(e);t.bufferToString=N;var P=e=>{var input=e+"=".repeat((4-e.length%4)%4),t=input.length/4*3;input.endsWith("==")?t-=2:input.endsWith("=")&&t--;for(var r=new ArrayBuffer(t),n=new DataView(r),o=0;o<input.length;o+=4){for(var c=0,l=0,d=o,h=o+3;d<=h;d++)if("="===input[d])c>>=6;else{if(!(input[d]in f))throw new TypeError("Invalid character ".concat(input[d]," in base64 string."));c|=f[input[d]]<<6*(h-d),l+=6}var m=o/4*3;c>>=l%8;for(var y=Math.floor(l/8),v=0;v<y;v++){var _=8*(y-v-1);n.setUint8(m+v,(c&255<<_)>>_)}}return new Uint8Array(r)};t.base64urlDecode=P;var R=e=>{for(var input="string"==typeof e?C(e):e,t="",r=0;r<input.length;r+=3){for(var n=0,o=0,c=r,l=Math.min(r+3,input.length);c<l;c++)n|=input[c]<<8*(l-c-1),o+=8;var d=Math.ceil(o/6);n<<=6*d-o;for(var f=1;f<=d;f++){var m=6*(d-f);t+=h[(n&63<<m)>>m]}}return t};t.base64urlEncode=R;t.defaults={encryption:{saltBits:256,algorithm:"aes-256-cbc",iterations:1,minPasswordlength:32},integrity:{saltBits:256,algorithm:"sha256",iterations:1,minPasswordlength:32},ttl:0,timestampSkewSec:60,localtimeOffsetMsec:0};var L=e=>d(d({},e),{},{encryption:d({},e.encryption),integrity:d({},e.integrity)});t.clone=L;var D=t.algorithms={"aes-128-ctr":{keyBits:128,ivBits:128,name:"AES-CTR"},"aes-256-cbc":{keyBits:256,ivBits:128,name:"AES-CBC"},sha256:{keyBits:256,name:"SHA-256"}},x=(t.macFormatVersion="2",t.macPrefix="Fe26.2"),k=(e,t)=>{if(t<1)throw new Error("Invalid random bits count");return((e,t)=>{var r=new Uint8Array(t);return e.getRandomValues(r),r})(e,Math.ceil(t/8))};t.randomBits=k;var M=function(){var e=(0,o.default)(function*(e,t,r,n,o,c){var l=C(t),d=yield e.subtle.importKey("raw",l,{name:"PBKDF2"},!1,["deriveBits"]),f={name:"PBKDF2",hash:c,salt:C(r),iterations:n};return yield e.subtle.deriveBits(f,d,8*o)});return function(t,r,n,o,c,l){return e.apply(this,arguments)}}(),F=t.generateKey=function(){var e=(0,o.default)(function*(e,t,r){var n;if(!(null==t?void 0:t.length))throw new Error("Empty password");if(null==r||"object"!=typeof r)throw new Error("Bad options");if(!(r.algorithm in D))throw new Error("Unknown algorithm: ".concat(r.algorithm));var o=D[r.algorithm],c={},l=null!=(n=r.hmac)&&n,d=l?{name:"HMAC",hash:o.name}:{name:o.name},f=l?["sign","verify"]:["encrypt","decrypt"];if("string"==typeof t){if(t.length<r.minPasswordlength)throw new Error("Password string too short (min ".concat(r.minPasswordlength," characters required)"));var h=r.salt,m=void 0===h?"":h;if(!m){var y=r.saltBits,v=void 0===y?0:y;if(!v)throw new Error("Missing salt and saltBits options");var _=k(e,v);m=[...new Uint8Array(_)].map(e=>e.toString(16).padStart(2,"0")).join("")}var E=yield M(e,t,m,r.iterations,o.keyBits/8,"SHA-1"),w=yield e.subtle.importKey("raw",E,d,!1,f);c.key=w,c.salt=m}
2else{if(t.length<o.keyBits/8)throw new Error("Key buffer (password) too small");c.key=yield e.subtle.importKey("raw",t,d,!1,f),c.salt=""}return r.iv?c.iv=r.iv:"ivBits"in o&&(c.iv=k(e,o.ivBits)),c});return function(t,r,n){return e.apply(this,arguments)}}(),U=(e,t,data)=>["aes-128-ctr"===e?{name:"AES-CTR",counter:t.iv,length:128}:{name:"AES-CBC",iv:t.iv},t.key,"string"==typeof data?C(data):data],j=t.encrypt=function(){var e=(0,o.default)(function*(e,t,r,data){var n=yield F(e,t,r),o=yield e.subtle.encrypt(...U(r.algorithm,n,data));return{encrypted:new Uint8Array(o),key:n}});return function(t,r,n,o){return e.apply(this,arguments)}}(),B=t.decrypt=function(){var e=(0,o.default)(function*(e,t,r,data){var n=yield F(e,t,r),o=yield e.subtle.decrypt(...U(r.algorithm,n,data));return N(new Uint8Array(o))});return function(t,r,n,o){return e.apply(this,arguments)}}(),H=t.hmacWithPassword=function(){var e=(0,o.default)(function*(e,t,r,data){var n=yield F(e,t,d(d({},r),{},{hmac:!0})),o=C(data),c=yield e.subtle.sign({name:"HMAC"},n.key,o);return{digest:R(new Uint8Array(c)),salt:n.salt}});return function(t,r,n,o){return e.apply(this,arguments)}}(),V=e=>"string"==typeof e||e instanceof Uint8Array?{encryption:e,integrity:e}:"secret"in e?{id:e.id,encryption:e.secret,integrity:e.secret}:{id:e.id,encryption:e.encryption,integrity:e.integrity};t.seal=function(){var e=(0,o.default)(function*(e,object,t,r){if(!t)throw new Error("Empty password");var n=L(r),o=Date.now()+(n.localtimeOffsetMsec||0),c=JSON.stringify(object),l=V(t),d=l.id,f=void 0===d?"":d,h=l.encryption,m=l.integrity;if(f&&!/^\w+$/.test(f))throw new Error("Invalid password id");var y=yield j(e,h,n.encryption,c),v=y.encrypted,_=y.key,E=R(new Uint8Array(v)),w=R(_.iv),A=n.ttl?o+n.ttl:"",T="".concat(x,"*").concat(f,"*").concat(_.salt,"*").concat(w,"*").concat(E,"*").concat(A),O=yield H(e,m,n.integrity,T);return"".concat(T,"*").concat(O.salt,"*").concat(O.digest)});return function(t,r,n,o){return e.apply(this,arguments)}}(),t.unseal=function(){var e=(0,o.default)(function*(e,t,r,n){if(!r)throw new Error("Empty password");var o=L(n),c=Date.now()+(o.localtimeOffsetMsec||0),l=t.split("*");if(8!==l.length)throw new Error("Incorrect number of sealed components");var d=l[0],f=l[1],h=l[2],m=l[3],y=l[4],v=l[5],_=l[6],E=l[7],w="".concat(d,"*").concat(f,"*").concat(h,"*").concat(m,"*").concat(y,"*").concat(v);if(x!==d)throw new Error("Wrong mac prefix");if(v){if(!/^\d+$/.test(v))throw new Error("Invalid expiration");if(Number.parseInt(v,10)<=c-1e3*o.timestampSkewSec)throw new Error("Expired seal")}var A="";if(f=f||"default","string"==typeof r||r instanceof Uint8Array)A=r;else{if(!(f in r))throw new Error("Cannot find password: ".concat(f));A=r[f]}A=V(A);var T=o.integrity;if(T.salt=_,!((a,b)=>{var e=a.length===b.length?0:1;e&&(b=a);for(var t=0;t<a.length;t+=1)e|=a.charCodeAt(t)^b.charCodeAt(t);return 0===e})((yield H(e,A.integrity,T,w)).digest,E))throw new Error("Bad hmac value");var O=P(y),S=o.encryption;S.salt=h,S.iv=P(m);var I=yield B(e,A.encryption,S,O);return I?JSON.parse(I):null});return function(t,r,n,o){return e.apply(this,arguments)}}()},function(e,t,r){"use strict";var n=r(389),o=r(384),c=r(390),l=(r(553),r(555));function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}r(208),r(145),r(7),r(18),r(38),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(6),r(168),r(169),r(72);var f=r(845),h=r(848);function m(e){throw new Error("".concat(e," is not implemented yet!"))}class y extends f.EventEmitter{static from(e,t){return new y(t)}constructor(e){super(),this.__unenv__={},this.readableEncoding=null,this.readableEnded=!0,this.readableFlowing=!1,this.readableHighWaterMark=0,this.readableLength=0,this.readableObjectMode=!1,this.readableAborted=!1,this.readableDidRead=!1,this.closed=!1,this.errored=null,this.readable=!1,this.destroyed=!1}_read(e){}read(e){}setEncoding(e){return this}pause(){return this}resume(){return this}isPaused(){return!0}unpipe(e){return this}unshift(e,t){}wrap(e){return this}push(e,t){return!1}_destroy(e,t){this.removeAllListeners()}destroy(e){return this.destroyed=!0,this._destroy(e),this}pipe(e,t){return{}}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return this.destroy(),Promise.resolve()}[Symbol.asyncIterator](){return l(function*(){throw m("Readable.asyncIterator")})()}iterator(e){throw m("Readable.iterator")}map(e,t){throw m("Readable.map")}filter(e,t){throw m("Readable.filter")}forEach(e,t){throw m("Readable.forEach")}reduce(e,t,r){throw m("Readable.reduce")}find(e,t){throw m("Readable.find")}findIndex(e,t){throw m("Readable.findIndex")}some(e,t){throw m("Readable.some")}toArray(e){throw m("Readable.toArray")}every(e,t){throw m("Readable.every")}flatMap(e,t){throw m("Readable.flatMap")}drop(e,t){throw m("Readable.drop")}take(e,t){throw m("Readable.take")}asIndexedPairs(e){throw m("Readable.asIndexedPairs")}}class v extends f.EventEmitter{constructor(e){super(),this.__unenv__={},this.writable=!0,this.writableEnded=!1,this.writableFinished=!1,this.writableHighWaterMark=0,this.writableLength=0,this.writableObjectMode=!1,this.writableCorked=0,this.closed=!1,this.errored=null,this.writableNeedDrain=!1,this.writableAborted=!1,this.destroyed=!1,this._encoding="utf8"}pipe(e,t){return{}}_write(e,t,r){if(this.writableEnded)r&&r();else{if(void 0===this._data)this._data=e;else{var s="string"==typeof this._data?h.Buffer.from(this._data,this._encoding||t||"utf8"):this._data,i="string"==typeof e?h.Buffer.from(e,t||this._encoding||"utf8"):e;this._data=h.Buffer.concat([s,i])}this._encoding=t,r&&r()}}_writev(e,t){}_destroy(e,t){}_final(e){}write(e,t,r){var s="string"==typeof t?this._encoding:"utf8",i="function"==typeof t?t:"function"==typeof r?r:void 0;return this._write(e,s,i),!0}setDefaultEncoding(e){return this}end(e,t,r){var s="function"==typeof e?e:"function"==typeof t?t:"function"==typeof r?r:void 0;if(this.writableEnded)return s&&s(),this;var i=e===s?void 0:e;if(i){var u=t===s?void 0:t;this.write(i,u)}
2return this.writableEnded=!0,this.writableFinished=!0,this.emit("close"),this.emit("finish"),s&&s(),this}cork(){}uncork(){}destroy(e){return this.destroyed=!0,delete this._data,this.removeAllListeners(),this}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return Promise.resolve()}}var _=class{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new y,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new v;this.allowHalfOpen=!0,Object.assign(this,e),Object.assign(this,t),this._destroy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){for(var e of t)e(...arguments)}}(e._destroy,t._destroy)}};var E=(Object.assign(_.prototype,y.prototype),Object.assign(_.prototype,v.prototype),_);class w extends E{constructor(e){super(),this.__unenv__={},this.bufferSize=0,this.bytesRead=0,this.bytesWritten=0,this.connecting=!1,this.destroyed=!1,this.pending=!1,this.localAddress="",this.localPort=0,this.remoteAddress="",this.remoteFamily="",this.remotePort=0,this.autoSelectFamilyAttemptedAddresses=[],this.readyState="readOnly"}write(e,t,r){return!1}connect(e,t,r){return this}end(e,t,r){return this}setEncoding(e){return this}pause(){return this}resume(){return this}setTimeout(e,t){return this}setNoDelay(e){return this}setKeepAlive(e,t){return this}address(){return{}}unref(){return this}ref(){return this}destroySoon(){this.destroy()}resetAndDestroy(){var e=new Error("ERR_SOCKET_CLOSED");return e.code="ERR_SOCKET_CLOSED",this.destroy(e),this}}class A extends y{constructor(e){super(),this.aborted=!1,this.httpVersion="1.1",this.httpVersionMajor=1,this.httpVersionMinor=1,this.complete=!0,this.headers={},this.trailers={},this.method="GET",this.url="/",this.statusCode=200,this.statusMessage="",this.closed=!1,this.errored=null,this.readable=!1,this.socket=this.connection=e||new w}get rawHeaders(){var e=this.headers,t=[];for(var r in e)if(Array.isArray(e[r]))for(var s of e[r])t.push(r,s);else t.push(r,e[r]);return t}get rawTrailers(){return[]}setTimeout(e,t){return this}get headersDistinct(){return T(this.headers)}get trailersDistinct(){return T(this.trailers)}}function T(e){var t={};for(var r of Object.entries(e)){var n=c(r,2),o=n[0],l=n[1];o&&(t[o]=(Array.isArray(l)?l:[l]).filter(Boolean))}return t}class O extends v{constructor(e){super(),this.statusCode=200,this.statusMessage="",this.upgrading=!1,this.chunkedEncoding=!1,this.shouldKeepAlive=!1,this.useChunkedEncodingByDefault=!1,this.sendDate=!1,this.finished=!1,this.headersSent=!1,this.strictContentLength=!1,this.connection=null,this.socket=null,this._headers={},this.req=e}assignSocket(e){e._httpMessage=this,this.socket=e,this.connection=e,this.emit("socket",e),this._flush()}_flush(){this.flushHeaders()}detachSocket(e){}writeContinue(e){}writeHead(e,t,r){e&&(this.statusCode=e),"string"==typeof t&&(this.statusMessage=t,t=void 0);var s=r||t;if(s&&!Array.isArray(s))for(var i in s)this.setHeader(i,s[i]);return this.headersSent=!0,this}writeProcessing(){}setTimeout(e,t){return this}appendHeader(e,t){e=e.toLowerCase();var r=this._headers[e],s=[...Array.isArray(r)?r:[r],...Array.isArray(t)?t:[t]].filter(Boolean);return this._headers[e]=s.length>1?s:s[0],this}setHeader(e,t){return this._headers[e.toLowerCase()]=t,this}setHeaders(e){for(var t of Object.entries(e)){var r=c(t,2),n=r[0],o=r[1];this.setHeader(n,o)}return this}getHeader(e){return this._headers[e.toLowerCase()]}getHeaders(){return this._headers}getHeaderNames(){return Object.keys(this._headers)}hasHeader(e){return e.toLowerCase()in this._headers}removeHeader(e){delete this._headers[e.toLowerCase()]}addTrailers(e){}flushHeaders(){}writeEarlyHints(e,t){"function"==typeof t&&t()}}var S,I=((S=function(){}).prototype=Object.create(null),S);function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e instanceof Headers)return e;var t=new Headers;for(var r of Object.entries(e)){var n=c(r,2),o=n[0],l=n[1];if(void 0!==l){if(Array.isArray(l)){for(var s of l)t.append(o,String(s));continue}t.set(o,String(l))}}return t}var p=new Set([101,204,205,304]);function N(e,t){return P.apply(this,arguments)}function P(){return P=o(function*(e,t){var r,s,n=new A,o=new O(n);if(n.url=(null===(r=t.url)||void 0===r?void 0:r.toString())||"/",!n.url.startsWith("/")){var l=new URL(n.url);s=l.host,n.url=l.pathname+l.search+l.hash}n.method=t.method||"GET",n.headers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new I,r=Array.isArray(e)||function(e){return"function"==typeof(null==e?void 0:e.entries)}(e)?e:Object.entries(e);for(var n of r){var o=c(n,2),l=o[0],s=o[1];if(s){if(void 0===t[l]){t[l]=s;continue}t[l]=[...Array.isArray(t[l])?t[l]:[t[l]],...Array.isArray(s)?s:[s]]}}return t}(t.headers||{}),n.headers.host||(n.headers.host=t.host||s||"localhost"),n.connection.encrypted=n.connection.encrypted||"https"===t.protocol,n.body=t.body||null,
2n.__unenv__=t.context,yield e(n,o);var i=o._data;(p.has(o.statusCode)||"HEAD"===n.method.toUpperCase())&&(i=null,delete o._headers["content-length"]);var u={status:o.statusCode,statusText:o.statusMessage,headers:o._headers,body:i};return n.destroy(),o.destroy(),u}),P.apply(this,arguments)}function R(){return R=o(function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{var o=yield N(e,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({url:t},r));return new Response(o.body,{status:o.status,statusText:o.statusText,headers:C(o.headers)})}catch(o){return new Response(o.toString(),{status:Number.parseInt(o.statusCode||o.code)||500,statusText:o.statusText})}}),R.apply(this,arguments)}t.IncomingMessage=A,t.ServerResponse=O,t.callNodeRequestHandler=N,t.fetchNodeRequestHandler=function(e,t){return R.apply(this,arguments)}},,,,,function(e,t,r){"use strict";(function(e){var n=r(384),o=(r(553),r(555));r(208),r(604),r(6),r(847);var c=10,l=Object.getPrototypeOf(Object.getPrototypeOf(Object.getPrototypeOf(o(function*(){})()))),d=(e,t)=>e,g=Error,f=Error,h=Error,b=Error,m=Error,y=Symbol.for("nodejs.rejection"),v=Symbol.for("kCapture"),_=Symbol.for("events.errorMonitor"),p=Symbol.for("shapeMode"),E=Symbol.for("events.maxEventTargetListeners"),w=Symbol.for("kEnhanceStackBeforeInspector"),A=Symbol.for("nodejs.watermarkData"),T=Symbol.for("kAsyncResource"),O=Symbol.for("kFirstEventParam"),S=Symbol.for("kResistStopPropagation"),I=Symbol.for("events.maxEventTargetListenersWarned");class C{static get on(){return P}static get once(){return R}static get getEventListeners(){return D}static get getMaxListeners(){return x}static get addAbortListener(){return L}static get EventEmitterAsyncResource(){return N}static get EventEmitter(){return C}static setMaxListeners(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0===r.length)c=e;else for(var o of r)if(U(o))o[E]=e,o[I]=!1;else{if("function"!=typeof o.setMaxListeners)throw new h("eventTargets",["EventEmitter","EventTarget"],o);o.setMaxListeners(e)}}static listenerCount(e,t){if("function"==typeof e.listenerCount)return e.listenerCount(t);C.prototype.listenerCount.call(e,t)}static init(){throw new Error("EventEmitter.init() is not implemented.")}static get captureRejections(){return this[v]}static set captureRejections(e){this[v]=e}static get defaultMaxListeners(){return c}static set defaultMaxListeners(e){c=e}constructor(e){this._events=void 0,this._eventsCount=0,this._maxListeners=c,this[v]=!1,this[p]=!1,void 0===this._events||this._events===Object.getPrototypeOf(this)._events?(this._events={__proto__:null},this._eventsCount=0,this[p]=!1):this[p]=!0,this._maxListeners=this._maxListeners||void 0,null!=e&&e.captureRejections?this[v]=!!e.captureRejections:this[v]=C.prototype[v]}setMaxListeners(e){return this._maxListeners=e,this}getMaxListeners(){return H(this)}emit(e){for(var t="error"===e,s=this._events,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(void 0!==s)t&&void 0!==s[_]&&this.emit(_,...n),t=t&&void 0===s.error;else if(!t)return!1;if(t){var i,u;if(n.length>0&&(i=n[0]),i instanceof Error){try{var c,l={};null!==(c=Error.captureStackTrace)&&void 0!==c&&c.call(Error,l,C.prototype.emit),Object.defineProperty(i,w,{__proto__:null,value:Function.prototype.bind(V,this,i,l),configurable:!0})}catch(e){}throw i}try{u=d(i)}catch(e){u=i}var a=new f(u);throw a.context=i,a}var h=s[e];if(void 0===h)return!1;if("function"==typeof h){var m=h.apply(this,n);null!=m&&j(this,m,e,n)}else for(var y=h.length,v=K(h),E=0;E<y;++E){var A=v[E].apply(this,n);null!=A&&j(this,A,e,n)}return!0}addListener(e,t){return z(this,e,t,!1),this}on(e,t){return this.addListener(e,t)}prependListener(e,t){return z(this,e,t,!0),this}once(e,t){return this.on(e,$(this,e,t)),this}prependOnceListener(e,t){return this.prependListener(e,$(this,e,t)),this}removeListener(e,t){var r=this._events;if(void 0===r)return this;var s=r[e];if(void 0===s)return this;if(s===t||s.listener===t)this._eventsCount-=1,this[p]?r[e]=void 0:0===this._eventsCount?this._events={__proto__:null}
2:(delete r[e],r.removeListener&&this.emit("removeListener",e,s.listener||t));else if("function"!=typeof s){for(var n=-1,i=s.length-1;i>=0;i--)if(s[i]===t||s[i].listener===t){n=i;break}if(n<0)return this;0===n?s.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(s,n),1===s.length&&(r[e]=s[0]),void 0!==r.removeListener&&this.emit("removeListener",e,t)}return this}off(e,t){return this.removeListener(e,t)}removeAllListeners(e){var t=this._events;if(void 0===t)return this;if(void 0===t.removeListener)return 0===arguments.length?(this._events={__proto__:null},this._eventsCount=0):void 0!==t[e]&&(0===--this._eventsCount?this._events={__proto__:null}:delete t[e]),this[p]=!1,this;if(0===arguments.length){for(var s of Reflect.ownKeys(t))"removeListener"!==s&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events={__proto__:null},this._eventsCount=0,this[p]=!1,this}var r=t[e];if("function"==typeof r)this.removeListener(e,r);else if(void 0!==r)for(var n=r.length-1;n>=0;n--)this.removeListener(e,r[n]);return this}listeners(e){return W(this,e,!0)}rawListeners(e){return W(this,e,!1)}eventNames(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}listenerCount(e,t){var r=this._events;if(void 0!==r){var s=r[e];if("function"==typeof s)return null!=t?t===s||t===s.listener?1:0:1;if(void 0!==s){if(null!=t){for(var n=0,i=0,u=s.length;i<u;i++)(s[i]===t||s[i].listener===t)&&n++;return n}return s.length}}return 0}}C.captureRejectionSymbol=y,C.errorMonitor=_,C.kMaxEventTargetListeners=E,C.kMaxEventTargetListenersWarned=I,C.usingDomains=!1;class N extends C{constructor(e){var t,r;"string"==typeof e?(r=e,e=void 0):r=(null===(t=e)||void 0===t?void 0:t.name)||new.target.name,super(e),this[T]=new EventEmitterReferencingAsyncResource(this,r,e)}emit(e){if(void 0===this[T])throw new g("EventEmitterAsyncResource");for(var t=this.asyncResource,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return Array.prototype.unshift(n,super.emit,this,e),Reflect.apply(t.runInAsyncScope,t,n)}emitDestroy(){if(void 0===this[T])throw new g("EventEmitterAsyncResource");this.asyncResource.emitDestroy()}get asyncId(){if(void 0===this[T])throw new g("EventEmitterAsyncResource");return this.asyncResource.asyncId()}get triggerAsyncId(){if(void 0===this[T])throw new g("EventEmitterAsyncResource");return this.asyncResource.triggerAsyncId()}get asyncResource(){if(void 0===this[T])throw new g("EventEmitterAsyncResource");return this[T]}}var P=function(e,t){var r,n,o,c,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=d.signal;if(null!=f&&f.aborted)throw new b(void 0,{cause:null==f?void 0:f.reason});var s=null!==(r=null!==(n=d.highWaterMark)&&void 0!==n?n:d.highWatermark)&&void 0!==r?r:Number.MAX_SAFE_INTEGER,m=null!==(o=null!==(c=d.lowWaterMark)&&void 0!==c?c:d.lowWatermark)&&void 0!==o?o:1,i=new F,u=new F,a=!1,y=null,v=!1,_=0,E=Object.setPrototypeOf({next(){if(_){var t,r=i.shift();return _--,a&&_<m&&(null!==(t=e.resume)&&void 0!==t&&t.call(e),a=!1),Promise.resolve(G(r,!1))}if(y){var n=Promise.reject(y);return y=null,n}return v?R():new Promise(function(e,t){u.push({resolve:e,reject:t})})},return:()=>R(),throw(e){if(!(e&&e instanceof Error))throw new h("EventEmitter.AsyncIterator","Error",e);P(e)},[Symbol.asyncIterator](){return this},[A]:{get size(){return _},get low(){return m},get high(){return s},get isPaused(){return a}}},l),w=function(){var e=[];return{addEventListener(t,r,n,s){X(t,r,n,s),Array.prototype.push(e,[t,r,n,s])},removeAll(){for(;e.length>0;)Reflect.apply(Q,void 0,e.pop())}}}(),T=w.addEventListener,S=w.removeAll;T(e,t,d[O]?N:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return N(t)}),"error"!==t&&"function"==typeof e.on&&T(e,"error",P);var I=null==d?void 0:d.close;if(null!=I&&I.length)for(var C of I)T(e,C,R);var q=f?L(f,function(){P(new b(void 0,{cause:null==f?void 0:f.reason}))}):null;return E;function N(t){var r;u.isEmpty()?(_++,!a&&_>s&&(a=!0,null!==(r=e.pause)&&void 0!==r&&r.call(e)),i.push(t)):u.shift().resolve(G(t,!1))}function P(e){u.isEmpty()?y=e:u.shift().reject(e),R()}function R(){null!=q&&q[Symbol.dispose](),S(),v=!0;for(var e=G(void 0,!0);!u.isEmpty();)u.shift().resolve(e);return Promise.resolve(e)}},R=function(){var e=n(function*(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=null==r?void 0:r.signal;if(null!=n&&n.aborted)throw new b(void 0,{cause:null==n?void 0:n.reason});return new Promise((s,r)=>{var i=c=>{"function"==typeof e.removeListener&&e.removeListener(t,u),null!=n&&Q(n,"abort",o),r(c)},u=function(){for(var t=arguments.length,r=new Array(t),c=0;c<t;c++)r[c]=arguments[c];"function"==typeof e.removeListener&&e.removeListener("error",i),null!=n&&Q(n,"abort",o),s(r)};function o(){Q(e,t,u),Q(e,"error",i),r(new b(void 0,{cause:null==n?void 0:n.reason}))}X(e,t,u,{__proto__:null,once:!0,[S]:!0}),"error"!==t&&"function"==typeof e.once&&e.once("error",i),null!=n&&
2X(n,"abort",o,{__proto__:null,once:!0,[S]:!0})})});return function(t,r){return e.apply(this,arguments)}}(),L=function(e,t){if(void 0===e)throw new h("signal","AbortSignal",e);var r;return e.aborted?queueMicrotask(()=>t()):(e.addEventListener("abort",t,{__proto__:null,once:!0,[S]:!0}),r=()=>{e.removeEventListener("abort",t)}),{__proto__:null,[Symbol.dispose](){var e;null===(e=r)||void 0===e||e()}}},D=function(e,t){if("function"==typeof e.listeners)return e.listeners(t);if(U(e)){for(var r=e[kEvents].get(t),n=[],s=null==r?void 0:r.next;void 0!==(null===(o=s)||void 0===o?void 0:o.listener);){var o,c,l=null!==(c=s.listener)&&void 0!==c&&c.deref?s.listener.deref():s.listener;n.push(l),s=s.next}return n}throw new h("emitter",["EventEmitter","EventTarget"],e)},x=function(e){if("function"==typeof(null==e?void 0:e.getMaxListeners))return H(e);if(null!=e&&e[E])return e[E];throw new h("emitter",["EventEmitter","EventTarget"],e)},k=2047;class M{constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&k)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&k}shift(){var e=this.list[this.bottom];return void 0===e?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&k,e)}}class F{constructor(){this.head=this.tail=new M}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new M),this.head.push(e)}shift(){var e=this.tail,t=e.shift();return e.isEmpty()&&null!==e.next&&(this.tail=e.next,e.next=null),t}}function U(e){return"function"==typeof(null==e?void 0:e.addEventListener)}function j(t,r,n,o){if(t[v])try{var s=r.then;"function"==typeof s&&s.call(r,void 0,function(r){e.nextTick(B,t,r,n,o)})}catch(s){t.emit("error",s)}}function B(e,t,r,n){if("function"==typeof e[y])e[y](t,r,...n);else{var s=e[v];try{e[v]=!1,e.emit("error",t)}finally{e[v]=s}}}function H(e){return void 0===e._maxListeners?c:e._maxListeners}function V(e,t){var r="";try{var n=this.constructor.name;"EventEmitter"!==n&&(r=" on ".concat(n," instance"))}catch(e){}var o="\nEmitted 'error' event".concat(r," at:\n"),s=(t.stack||"").split("\n").slice(1);return e.stack+o+s.join("\n")}function z(t,r,n,o){var c,s,l,i;if(void 0===(l=t._events)?(l=t._events={__proto__:null},t._eventsCount=0):(void 0!==l.newListener&&(t.emit("newListener",r,null!==(c=n.listener)&&void 0!==c?c:n),l=t._events),i=l[r]),void 0===i)l[r]=n,++t._eventsCount;else if("function"==typeof i?i=l[r]=o?[n,i]:[i,n]:o?i.unshift(n):i.push(n),(s=H(t))>0&&i.length>s&&!i.warned){i.warned=!0;var u=new m("Possible EventEmitter memory leak detected. ".concat(i.length," ").concat(String(r)," listeners added to ").concat(d(t),". MaxListeners is ").concat(s,". Use emitter.setMaxListeners() to increase limit"),{name:"MaxListenersExceededWarning",emitter:t,type:r,count:i.length});e.emitWarning(u)}return t}function Y(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function $(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},s=Y.bind(n);return s.listener=r,n.wrapFn=s,s}function W(e,t,r){var n=e._events;if(void 0===n)return[];var s=n[t];return void 0===s?[]:"function"==typeof s?r?[s.listener||s]:[s]:r?function(e){for(var t=K(e),r=0;r<t.length;++r){var n=t[r].listener;"function"==typeof n&&(t[r]=n)}return t}(s):K(s)}function K(e){switch(e.length){case 2:return[e[0],e[1]];case 3:return[e[0],e[1],e[2]];case 4:return[e[0],e[1],e[2],e[3]];case 5:return[e[0],e[1],e[2],e[3],e[4]];case 6:return[e[0],e[1],e[2],e[3],e[4],e[5]]}return Array.prototype.slice.call(e)}function G(e,t){return{value:e,done:t}}function Q(e,t,r,n){if("function"==typeof e.removeListener)e.removeListener(t,r);else{if("function"!=typeof e.removeEventListener)throw new h("emitter","EventEmitter",e);e.removeEventListener(t,r,n)}}function X(e,t,r,n){if("function"==typeof e.on)null!=n&&n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new h("emitter","EventEmitter",e);e.addEventListener(t,r,n)}}t.EventEmitter=C}).call(this,r(32))},,,function(e,t,r){"use strict";r(70),r(15),r(93),r(94),r(145),r(7),r(18),r(17),r(14),r(35),r(101),r(95),r(96),r(97),r(98);for(var n=[],o=[],c=typeof Uint8Array>"u"?Array:Uint8Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",l=0;l<64;++l)n[l]=i[l],o[i.charCodeAt(l)]=l;function d(e){var t,r,n=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}(e),l=n[0],d=n[1],f=new c(function(e,t,r){return 3*(t+r)/4-r}(0,l,d)),h=0,m=d>0?l-4:l;for(r=0;r<m;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],f[h++]=t>>16&255,f[h++]=t>>8&255,f[h++]=255&t;return 2===d&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,f[h++]=255&t),1===d&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,f[h++]=t>>8&255,f[h++]=255&t),f}function u(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function f(e,t,r){for(var n,o=[],c=t;c<r;c+=3)n=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(255&e[c+2]),o.push(u(n));return o.join("")}function h(e){for(var t,r=e.length,o=r%3,c=[],l=16383,d=0,h=r-o;d<h;d+=l)c.push(f(e,d,d+l>h?h:d+l));return 1===o?(t=e[r-1],c.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],c.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),c.join("")}function m(e,t,r,n,o){var c,l,d=8*o-n-1,f=(1<<d)-1,h=f>>1,m=-7,y=r?o-1:0,v=r?-1:1,_=e[t+y];for(y+=v,c=_&(1<<-m)-1,_>>=-m,m+=d;m>0;)c=256*c+e[t+y],y+=v,m-=8;for(l=c&(1<<-m)-1,c>>=-m,m+=n;m>0;)l=256*l+e[t+y],y+=v,m-=8;if(0===c)c=1-h;else{if(c===f)return l?Number.NaN:(_?-1:1)*Number.POSITIVE_INFINITY;l+=Math.pow(2,n),c-=h}return(_?-1:1)*l*Math.pow(2,c-n)}function y(e,t,r,n,o,c){var l,d,f,h=8*c-o-1,m=(1<<h)-1,y=m>>1,v=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,_=n?0:c-1,rt=n?1:-1,E=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),Number.isNaN(t)||t===Number.POSITIVE_INFINITY?(d=Number.isNaN(t)?1:0,l=m):(l=Math.floor(Math.log2(t)),t*(f=Math.pow(2,-l))<1&&(l--,f*=2),(t+=l+y>=1?v/f:v*Math.pow(2,1-y))*f>=2&&(l++,f/=2),l+y>=m?(d=0,l=m):l+y>=1?(d=(t*f-1)*Math.pow(2,o),l+=y):(d=t*Math.pow(2,y-1)*Math.pow(2,o),l=0));o>=8;)e[r+_]=255&d,_+=rt,d/=256,o-=8;for(l=l<<o|d,h+=o;h>0;)e[r+_]=255&l,_+=rt,l/=256,h-=8;e[r+_-rt]|=128*E}o[45]=62,o[95]=63;var v="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null,_=2147483647;function E(e){if(e>_)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,w.prototype),t}function w(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return O(e)}return A(e,t,r)}function A(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!w.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|C(e,t),n=E(r),o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(a(e,Uint8Array)){var t=new Uint8Array(e);return I(t.buffer,t.byteOffset,t.byteLength)}return S(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(a(e,ArrayBuffer)||e&&a(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(a(e,SharedArrayBuffer)||e&&a(e.buffer,SharedArrayBuffer)))return I(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return w.from(n,t,r);var o=function(e){if(w.isBuffer(e)){var t=0|b(e.length),r=E(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||ie(e.length)?E(0):S(e);if("Buffer"===e.type&&Array.isArray(e.data))return S(e.data)}(e);if(o)return o;if(typeof Symbol<"u"&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return w.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function T(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function O(e){return T(e),E(e<0?0:0|b(e))}function S(e){for(var t=e.length<0?0:0|b(e.length),r=E(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function I(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,w.prototype),n}function b(e){if(e>=_)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+_.toString(16)+" bytes");return 0|e}function C(e,t){if(w.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||a(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return te(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return re(e).length;default:if(o)return n?-1:te(e).length;t=(""+t).toLowerCase(),o=!0}}function N(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0)||(r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return H(this,t,r);case"utf8":case"utf-8":return U(this,t,r);case"ascii":return B(this,t,r);case"latin1":case"binary":return hr(this,t,r);case"base64":return F(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function P(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function R(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),ie(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}
vendor: 5,381 bytes, line 2
2else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=w.from(t,n)),w.isBuffer(t))return 0===t.length?-1:L(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):L(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function L(e,t,r,n,o){var c,l=1,d=e.length,f=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;l=2,d/=2,f/=2,r/=2}function h(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(o){var m=-1;for(c=r;c<d;c++)if(h(e,c)===h(t,-1===m?0:c-m)){if(-1===m&&(m=c),c-m+1===f)return m*l}else-1!==m&&(c-=c-m),m=-1}else for(r+f>d&&(r=d-f),c=r;c>=0;c--){for(var y=!0,v=0;v<f;v++)if(h(e,c+v)!==h(t,v)){y=!1;break}if(y)return c}return-1}function D(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var c,l=t.length;for(n>l/2&&(n=l/2),c=0;c<n;++c){var d=Number.parseInt(t.slice(2*c,2*c+2),16);if(ie(d))return c;e[r+c]=d}return c}function tr(e,t,r,n){return ne(te(t,e.length-r),e,r,n)}function x(e,t,r,n){return ne(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return ne(re(t),e,r,n)}function M(e,t,r,n){return ne(function(e,t){for(var r,n,o,c=[],l=0;l<e.length&&!((t-=2)<0);++l)r=e.charCodeAt(l),n=r>>8,o=r%256,c.push(o,n);return c}(t,e.length-r),e,r,n)}function F(e,t,r){return 0===t&&r===e.length?h(e):h(e.slice(t,r))}function U(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var c=e[o],l=null,d=c>239?4:c>223?3:c>191?2:1;if(o+d<=r){var f=void 0,h=void 0,m=void 0,y=void 0;switch(d){case 1:c<128&&(l=c);break;case 2:128==(192&(f=e[o+1]))&&((y=(31&c)<<6|63&f)>127&&(l=y));break;case 3:f=e[o+1],h=e[o+2],128==(192&f)&&128==(192&h)&&((y=(15&c)<<12|(63&f)<<6|63&h)>2047&&(y<55296||y>57343)&&(l=y));break;case 4:f=e[o+1],h=e[o+2],m=e[o+3],128==(192&f)&&128==(192&h)&&128==(192&m)&&((y=(15&c)<<18|(63&f)<<12|(63&h)<<6|63&m)>65535&&y<1114112&&(l=y))}}null===l?(l=65533,d=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=d}return function(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=j));return r}(n)}w.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),!w.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&"function"==typeof console.error&&console.error("This environment lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(w.prototype,"parent",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.buffer}}),Object.defineProperty(w.prototype,"offset",{enumerable:!0,get:function(){if(w.isBuffer(this))return this.byteOffset}}),w.poolSize=8192,w.from=function(e,t,r){return A(e,t,r)},Object.setPrototypeOf(w.prototype,Uint8Array.prototype),Object.setPrototypeOf(w,Uint8Array),w.alloc=function(e,t,r){return function(e,t,r){return T(e),e<=0?E(e):void 0!==t?"string"==typeof r?E(e).fill(t,r):E(e).fill(t):E(e)}(e,t,r)},w.allocUnsafe=function(e){return O(e)},w.allocUnsafeSlow=function(e){return O(e)},w.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==w.prototype},w.compare=function(e,t){if(a(e,Uint8Array)&&(e=w.from(e,e.offset,e.byteLength)),a(t,Uint8Array)&&(t=w.from(t,t.offset,t.byteLength)),!w.isBuffer(e)||!w.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,c=Math.min(r,n);o<c;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},w.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},w.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return w.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=w.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var c=e[r];if(a(c,Uint8Array))o+c.length>n.length?(w.isBuffer(c)||(c=w.from(c.buffer,c.byteOffset,c.byteLength)),c.copy(n,o)):Uint8Array.prototype.set.call(n,c,o);else{if(!w.isBuffer(c))throw new TypeError('"list" argument must be an Array of Buffers');c.copy(n,o)}o+=c.length}return n},w.byteLength=C,w.prototype._isBuffer=!0,w.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)P(this,t,t+1);return this},w.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)P(this,t,t+3),P(this,t+1,t+2);return this},w.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)P(this,t,t+7),P(this,t+1,t+6),P(this,t+2,t+5),P(this,t+3,t+4);return this},w.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?U(this,0,e):Reflect.apply(N,this,arguments)}
vendor: 5,894 bytes, line 2
2,w.prototype.toLocaleString=w.prototype.toString,w.prototype.equals=function(e){if(!w.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===w.compare(this,e)},w.prototype.inspect=function(){var e="";return e=this.toString("hex",0,50).replace(/(.{2})/g,"$1 ").trim(),this.length>50&&(e+=" ... "),"<Buffer "+e+">"},v&&(w.prototype[v]=w.prototype.inspect),w.prototype.compare=function(e,t,r,n,o){if(a(e,Uint8Array)&&(e=w.from(e,e.offset,e.byteLength)),!w.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var c=(o>>>=0)-(n>>>=0),l=(r>>>=0)-(t>>>=0),d=Math.min(c,l),f=this.slice(n,o),h=e.slice(t,r),m=0;m<d;++m)if(f[m]!==h[m]){c=f[m],l=h[m];break}return c<l?-1:l<c?1:0},w.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},w.prototype.indexOf=function(e,t,r){return R(this,e,t,r,!0)},w.prototype.lastIndexOf=function(e,t,r){return R(this,e,t,r,!1)},w.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!Number.isFinite(t))throw new TypeError("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,Number.isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var c=!1;;)switch(n){case"hex":return D(this,e,t,r);case"utf8":case"utf-8":return tr(this,e,t,r);case"ascii":case"latin1":case"binary":return x(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,t,r);default:if(c)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),c=!0}},w.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function B(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function hr(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function H(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",c=t;c<r;++c)o+=oe[e[c]];return o}function V(e,t,r){for(var n=e.slice(t,r),o="",c=0;c<n.length-1;c+=2)o+=String.fromCharCode(n[c]+256*n[c+1]);return o}function s(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,r,n,o,c){if(!w.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<c)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function Y(e,t,r,n,o){J(t,n,o,e,r,7);var c=Number(t&BigInt(4294967295));e[r++]=c,c>>=8,e[r++]=c,c>>=8,e[r++]=c,c>>=8,e[r++]=c;var l=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=l,l>>=8,e[r++]=l,l>>=8,e[r++]=l,l>>=8,e[r++]=l,r}function $(e,t,r,n,o){J(t,n,o,e,r,7);var c=Number(t&BigInt(4294967295));e[r+7]=c,c>>=8,e[r+6]=c,c>>=8,e[r+5]=c,c>>=8,e[r+4]=c;var l=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=l,l>>=8,e[r+2]=l,l>>=8,e[r+1]=l,l>>=8,e[r]=l,r+8}function W(e,t,r,n,o,c){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function q(e,t,r,n,o){return t=+t,r>>>=0,o||W(e,0,r,4),y(e,t,r,n,23,4),r+4}function K(e,t,r,n,o){return t=+t,r>>>=0,o||W(e,0,r,8),y(e,t,r,n,52,8),r+8}w.prototype.slice=function(e,t){var r=this.length;(e=Math.trunc(e))<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:Math.trunc(t))<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,w.prototype),n},w.prototype.readUintLE=w.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||s(e,t,this.length);for(var n=this[e],o=1,c=0;++c<t&&(o*=256);)n+=this[e+c]*o;return n},w.prototype.readUintBE=w.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||s(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},w.prototype.readUint8=w.prototype.readUInt8=function(e,t){return e>>>=0,t||s(e,1,this.length),this[e]},w.prototype.readUint16LE=w.prototype.readUInt16LE=function(e,t){return e>>>=0,t||s(e,2,this.length),this[e]|this[e+1]<<8},w.prototype.readUint16BE=w.prototype.readUInt16BE=function(e,t){return e>>>=0,t||s(e,2,this.length),this[e]<<8|this[e+1]},w.prototype.readUint32LE=w.prototype.readUInt32LE=function(e,t){return e>>>=0,t||s(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},w.prototype.readUint32BE=w.prototype.readUInt32BE=function(e,t){return e>>>=0,t||s(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},w.prototype.readBigUInt64LE=ae(function(e){Z(e>>>=0,"offset");var t=this[e],r=this[e+7];(void 0===t||void 0===r)&&g(e,this.length-8);var n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))}),w.prototype.readBigUInt64BE=ae(function(e){Z(e>>>=0,"offset");var t=this[e],r=this[e+7];(void 0===t||void 0===r)&&g(e,this.length-8);var n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),w.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||s(e,t,this.length);for(var n=this[e],o=1,c=0;++c<t&&(o*=256);)n+=this[e+c]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},w.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||s(e,t,this.length);for(var n=t,o=1,c=this[e+--n];n>0&&(o*=256);)c+=this[e+--n]*o;return c>
2=(o*=128)&&(c-=Math.pow(2,8*t)),c},w.prototype.readInt8=function(e,t){return e>>>=0,t||s(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},w.prototype.readInt16LE=function(e,t){e>>>=0,t||s(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},w.prototype.readInt16BE=function(e,t){e>>>=0,t||s(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},w.prototype.readInt32LE=function(e,t){return e>>>=0,t||s(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},w.prototype.readInt32BE=function(e,t){return e>>>=0,t||s(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},w.prototype.readBigInt64LE=ae(function(e){Z(e>>>=0,"offset");var t=this[e],r=this[e+7];(void 0===t||void 0===r)&&g(e,this.length-8);var n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),w.prototype.readBigInt64BE=ae(function(e){Z(e>>>=0,"offset");var t=this[e],r=this[e+7];(void 0===t||void 0===r)&&g(e,this.length-8);var n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),w.prototype.readFloatLE=function(e,t){return e>>>=0,t||s(e,4,this.length),m(this,e,!0,23,4)},w.prototype.readFloatBE=function(e,t){return e>>>=0,t||s(e,4,this.length),m(this,e,!1,23,4)},w.prototype.readDoubleLE=function(e,t){return e>>>=0,t||s(e,8,this.length),m(this,e,!0,52,8)},w.prototype.readDoubleBE=function(e,t){return e>>>=0,t||s(e,8,this.length),m(this,e,!1,52,8)},w.prototype.writeUintLE=w.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||z(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,c=0;for(this[t]=255&e;++c<r&&(o*=256);)this[t+c]=e/o&255;return t+r},w.prototype.writeUintBE=w.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||z(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,c=1;for(this[t+o]=255&e;--o>=0&&(c*=256);)this[t+o]=e/c&255;return t+r},w.prototype.writeUint8=w.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,1,255,0),this[t]=255&e,t+1},w.prototype.writeUint16LE=w.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},w.prototype.writeUint16BE=w.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},w.prototype.writeUint32LE=w.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},w.prototype.writeUint32BE=w.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},w.prototype.writeBigUInt64LE=ae(function(e){return Y(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeBigUInt64BE=ae(function(e){return $(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))}),w.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);z(this,e,t,r,o-1,-o)}var c=0,l=1,d=0;for(this[t]=255&e;++c<r&&(l*=256);)e<0&&0===d&&0!==this[t+c-1]&&(d=1),this[t+c]=Math.trunc(e/l)-d&255;return t+r},w.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var o=Math.pow(2,8*r-1);z(this,e,t,r,o-1,-o)}var c=r-1,l=1,d=0;for(this[t+c]=255&e;--c>=0&&(l*=256);)e<0&&0===d&&0!==this[t+c+1]&&(d=1),this[t+c]=Math.trunc(e/l)-d&255;return t+r},w.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},w.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},w.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},w.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},w.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},w.prototype.writeBigInt64LE=ae(function(e){return Y(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeBigInt64BE=ae(function(e){return $(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),w.prototype.writeFloatLE=function(e,t,r){return q(this,e,t,!0,r)},w.prototype.writeFloatBE=function(e,t,r){return q(this,e,t,!1,r)},w.prototype.writeDoubleLE=function(e,t,r){return K(this,e,t,!0,r)},w.prototype.writeDoubleBE=function(e,t,r){return K(this,e,t,!1,r)},w.prototype.copy=function(e,t,r,n){if(!w.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),!n&&0!==n&&(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},w.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!w.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var c;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(c=t;c<r;++c)this[c]=e;else{var l=w.isBuffer(e)?e:w.from(e,n),d=l.length;
2if(0===d)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(c=0;c<r-t;++c)this[c+t]=l[c%d]}return this};var G={};function Q(e,t,r){G[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:Reflect.apply(t,this,arguments),writable:!0,configurable:!0}),this.name="".concat(this.name," [").concat(e,"]"),this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}}function X(e){for(var t="",r=e.length,n="-"===e[0]?1:0;r>=n+4;r-=3)t="_".concat(e.slice(r-3,r)).concat(t);return"".concat(e.slice(0,r)).concat(t)}function J(e,t,r,n,o,c){if(e>r||e<t){var l,d="bigint"==typeof t?"n":"";throw l=0===t||t===BigInt(0)?">= 0".concat(d," and < 2").concat(d," ** ").concat(8*(c+1)).concat(d):">= -(2".concat(d," ** ").concat(8*(c+1)-1).concat(d,") and < 2 ** ").concat(8*(c+1)-1).concat(d),new G.ERR_OUT_OF_RANGE("value",l,e)}!function(e,t,r){Z(t,"offset"),(void 0===e[t]||void 0===e[t+r])&&g(t,e.length-(r+1))}(n,o,c)}function Z(e,t){if("number"!=typeof e)throw new G.ERR_INVALID_ARG_TYPE(t,"number",e)}function g(e,t,r){throw Math.floor(e)!==e?(Z(e,r),new G.ERR_OUT_OF_RANGE("offset","an integer",e)):t<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE("offset",">= 0 and <= ".concat(t),e)}Q("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"},RangeError),Q("ERR_INVALID_ARG_TYPE",function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)},TypeError),Q("ERR_OUT_OF_RANGE",function(e,t,r){var n='The value of "'.concat(e,'" is out of range.'),o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=X(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=X(o)),o+="n"),n+=" It must be ".concat(t,". Received ").concat(o)},RangeError);var ee=/[^\w+/-]/g;function te(e,t){var r;t=t||Number.POSITIVE_INFINITY;for(var n=e.length,o=null,c=[],l=0;l<n;++l){if((r=e.charCodeAt(l))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&c.push(239,191,189);continue}if(l+1===n){(t-=3)>-1&&c.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&c.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&c.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;c.push(r)}else if(r<2048){if((t-=2)<0)break;c.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;c.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return c}function re(e){return d(function(e){if((e=(e=e.split("=")[0]).trim().replace(ee,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ne(e,t,r,n){var o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function a(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function ie(e){return e!=e}var oe=function(){for(var e="0123456789abcdef",t=Array.from({length:256}),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}();function ae(e){return typeof BigInt>"u"?se:e}function se(){throw new Error("BigInt not supported")}t.Buffer=w},,,,,,,,,,,function(e,t,r){"use strict";r(99),r(100);var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(8)),c=n(r(10));r(15),r(6);var l=function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,c={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return c;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,c)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?o(c,l,i):c[l]=e[l]);return c}(e,t)}(r(5)),d=r(556),f=r(78),h=r(860);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?m(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v=(e,t)=>e&&["function","object"].includes(typeof e)?e.__nuxt_installed?void 0:(e.__nuxt_installed=!0,t()):t();t.default=function(){var e=(0,c.default)(function*(e,t){var n,o={vueApp:{component:(e,t)=>v(t,()=>l.default.component(e,t)),config:{globalProperties:{}},directive:(e,t)=>v(t,()=>l.default.directive(e,t)),mixin:e=>v(e,()=>l.default.mixin(e)),mount:()=>{},provide:t,unmount:()=>{},use(e,t){v(e,()=>l.default.use(e,t))},version:l.version},provide:t,globalName:"nuxt",payload:(n=e.nuxtState,n._asyncData=n._asyncData||{},n._errors=n._errors||(0,l.reactive)({}),new Proxy(n,{get:(e,t)=>"data"===t?e._asyncData:"_data"===t?e.state:Reflect.get(e,t)})),_asyncDataPromises:{},_asyncData:{},static:{data:{}},isHydrating:!0,nuxt2Context:e};o.hooks=(0,d.createHooks)(),o.hook=o.hooks.hook,o.callHook=o.hooks.callHook;var m=yield Promise.resolve().then(r.t.bind(null,198,7)).then(e=>e.default);o._middleware=o._middleware||{global:h.globalMiddleware,named:m},e.app.router.beforeEach(function(){var t=(0,c.default)(function*(t,r,n){for(var c of(o._processingMiddleware=!0,o._middleware.global)){var l=yield c(y(y({},e),{},{route:t,from:r}));if(l||!1===l)return n(l)}n()});return function(e,r,n){return t.apply(this,arguments)}}()),e.app.router.afterEach(()=>{delete o._processingMiddleware}),Array.isArray(e.app.created)||(e.app.created=[e.app.created].filter(Boolean)),Array.isArray(e.app.mounted)||(e.app.mounted=[e.app.mounted].filter(Boolean)),e.app.created.push(function(){o.vue2App=this,l.default.config.errorHandler=o.vueApp.config.errorHandler}),e.app.mounted.push(()=>{o.isHydrating=!1});var _=new Proxy(o,{get(e,t){return"$store"===t?e.nuxt2Context.store:"$"===t[0]?e.nuxt2Context[t]||(null===(r=e.vue2App)||void 0===r?void 0:r[t]):Reflect.get(e,t);var r}});(0,f.setNuxtAppInstance)(_),window.onNuxtReady(()=>{o.hooks.callHook("app:mounted",o.vueApp)}),t("_nuxtApp",_)});return function(t,r){return e.apply(this,arguments)}}()},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=e=>{var t=e.$config;e.$config=new Proxy(t,{get(e,t){var r,n;return"public"===t?e.public:null!==(r=e[t])&&void 0!==r?r:null===(n=e.public)||void 0===n?void 0:n[t]},set:(e,t,r)=>"public"!==t&&"app"!==t&&(e[t]=r,"public"in e&&(e.public[t]=r),!0)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(15),r(17);t.default=function(e){var t=(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&e.headers?e.headers["x-forwarded-proto"]:void 0,r="string"==typeof t?t.includes("https"):void 0;if(r)return!0;var n=e.connection?e.connection.encrypted:void 0,o=void 0!==n?!0===n:void 0;return!!o||void 0===r&&void 0===o&&void 0}},,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.diff=function(e,t){var r=[];return d(e,t,"",r),r},Object.defineProperty(t,"isEqual",{enumerable:!0,get:function(){return c.isEqual}}),r(18),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(127),r(128),r(129),r(130),r(6);var o=n(r(25)),c=r(559),l="__proto__";function d(e,t,r,n){if(e!==t){var c=null===e||"object"!=typeof e,l=null===t||"object"!=typeof t;if(c||l){if(!h(e,c)&&!h(t,l)){var v=m(e,r,c),E=m(t,r,l);v.hash!==E.hash&&n.push(new _(r,"changed",E,v))}}else{var w=f(e),A=f(t);for(var T of w){var O=(0,o.default)(T,2),S=O[0],I=O[1],C=r?"".concat(r,".").concat(S):S;A.has(S)?d(I,A.get(S),C,n):n.push(new _(C,"removed",void 0,y(I,C)))}for(var N of A){var P=(0,o.default)(N,2),R=P[0],L=P[1];if(!w.has(R)){var D=r?"".concat(r,".").concat(R):R;n.push(new _(D,"added",y(L,D)))}}}}}function f(e){var t=new Map;for(var r in e)r!==l&&t.set(r,e[r]);return t}function h(e,t){if(t)return!1;for(var r in e)if(r!==l)return!0;return!1}function m(e,t,r){return r?new E(t,e,v(e)):new E(t,e,"{}",Object.create(null))}function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(null===e||"object"!=typeof e)return new E(t,e,v(e));var r=Object.create(null),n=[];for(var o in e)if(o!==l){var c=y(e[o],t?"".concat(t,".").concat(o):o);r[o]=c,n.push(c.hash)}return new E(t,e,"{".concat(n.join(":"),"}"),r)}function v(e){switch(typeof e){case"string":return"'".concat(e,"'");case"number":case"boolean":return""+e;case"bigint":return"".concat(e,"n");default:return(0,c.serialize)(e)}}var _=class{constructor(e,t,r,n){this.key=e,this.type=t,this.newValue=r,this.oldValue=n}toString(){return this.toJSON()}toJSON(){var e,t;switch(this.type){case"added":return"Added   `".concat(this.key,"`");case"removed":return"Removed `".concat(this.key,"`");case"changed":return"Changed `".concat(this.key,"` from `").concat((null===(e=this.oldValue)||void 0===e?void 0:e.toString())||"-","` to `").concat(null===(t=this.newValue)||void 0===t?void 0:t.toString(),"`")}}},E=class{constructor(e,t,r,n){this.key=e,this.value=t,this.hash=r,this.props=n}toString(){return this.props?"{".concat(Object.keys(this.props).join(","),"}"):JSON.stringify(this.value)}toJSON(){var e=this.key||".";return this.props?"".concat(e,"({").concat(Object.keys(this.props).join(","),"})"):"".concat(e,"(").concat(this.value,")")}}},,,function(e,t,r){"use strict";function n(e){if("object"!=typeof e)return e;var t,r,o=Object.prototype.toString.call(e);
2if("[object Object]"===o){if(e.constructor!==Object&&"function"==typeof e.constructor)for(t in r=new e.constructor,e)e.hasOwnProperty(t)&&r[t]!==e[t]&&(r[t]=n(e[t]));else for(t in r={},e)"__proto__"===t?Object.defineProperty(r,t,{value:n(e[t]),configurable:!0,enumerable:!0,writable:!0}):r[t]=n(e[t]);return r}if("[object Array]"===o){for(t=e.length,r=Array(t);t--;)r[t]=n(e[t]);return r}return"[object Set]"===o?(r=new Set,e.forEach(function(e){r.add(n(e))}),r):"[object Map]"===o?(r=new Map,e.forEach(function(e,t){r.set(n(t),n(e))}),r):"[object Date]"===o?new Date(+e):"[object RegExp]"===o?((r=new RegExp(e.source,e.flags)).lastIndex=e.lastIndex,r):"[object DataView]"===o?new e.constructor(n(e.buffer)):"[object ArrayBuffer]"===o?e.slice(0):"Array]"===o.slice(-6)?new e.constructor(e):e}r.r(t),r.d(t,"klona",function(){return n})},function(e,t,r){"use strict";function n(e,t,r){"object"==typeof r.value&&(r.value=o(r.value)),r.enumerable&&!r.get&&!r.set&&r.configurable&&r.writable&&"__proto__"!==t?e[t]=r.value:Object.defineProperty(e,t,r)}function o(e){if("object"!=typeof e)return e;var t,r,c,i=0,l=Object.prototype.toString.call(e);if("[object Object]"===l?c=Object.create(e.__proto__||null):"[object Array]"===l?c=Array(e.length):"[object Set]"===l?(c=new Set,e.forEach(function(e){c.add(o(e))})):"[object Map]"===l?(c=new Map,e.forEach(function(e,t){c.set(o(t),o(e))})):"[object Date]"===l?c=new Date(+e):"[object RegExp]"===l?c=new RegExp(e.source,e.flags):"[object DataView]"===l?c=new e.constructor(o(e.buffer)):"[object ArrayBuffer]"===l?c=e.slice(0):"Array]"===l.slice(-6)&&(c=new e.constructor(e)),c){for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)n(c,r[i],Object.getOwnPropertyDescriptor(e,r[i]));for(i=0,r=Object.getOwnPropertyNames(e);i<r.length;i++)Object.hasOwnProperty.call(c,t=r[i])&&c[t]===e[t]||n(c,t,Object.getOwnPropertyDescriptor(e,t))}return c||e}r.r(t),r.d(t,"klona",function(){return o})},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isVue3=t.isVue2=void 0;t.isVue2=!0,t.isVue3=!1},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.defineNuxtComponent=void 0;var o=n(r(8)),c=n(r(85)),l=r(906),d=r(78),f=["setup","head"];function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.defineNuxtComponent=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],h=n.setup,y=(n.head,(0,c.default)(n,f));return h||n.asyncData||n.head?m(m({_fetchKeyBase:o},y),{},{setup(e,t){var r=(0,d.useNuxtApp)(),o=h?(0,d.callWithNuxt)(r,h,[e,t]):{};if(n.head){var c=(0,d.useNuxtApp)();(0,l.useHead)("function"==typeof n.head?()=>n.head(c):n.head)}return o}}):m({},n)}},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CapoPlugin",{enumerable:!0,get:function(){return l.CapoPlugin}}),Object.defineProperty(t,"HashHydrationPlugin",{enumerable:!0,get:function(){return l.HashHydrationPlugin}}),t.VueHeadMixin=t.Vue2ProvideUnheadPlugin=void 0,Object.defineProperty(t,"createHead",{enumerable:!0,get:function(){return d.c}}),Object.defineProperty(t,"createHeadCore",{enumerable:!0,get:function(){return l.createHeadCore}}),Object.defineProperty(t,"createServerHead",{enumerable:!0,get:function(){return d.a}}),Object.defineProperty(t,"injectHead",{enumerable:!0,get:function(){return d.i}}),Object.defineProperty(t,"resolveUnrefHeadInput",{enumerable:!0,get:function(){return d.r}}),Object.defineProperty(t,"setHeadInjectionHandler",{enumerable:!0,get:function(){return d.s}}),t.unheadVueComposablesImports=void 0,Object.defineProperty(t,"useHead",{enumerable:!0,get:function(){return h.u}}),t.useHeadSafe=E,t.useScript=function(e,t){var input="string"==typeof e?{src:e}:e,r=t||{},head=(null==r?void 0:r.head)||(0,d.i)();r.head=head;var n=(0,m.getCurrentInstance)();if(r.eventContext=n,n&&void 0===r.trigger)r.trigger=m.onMounted;else if((0,m.isRef)(r.trigger)){var o,c=r.trigger;r.trigger=new Promise(e=>{o=(0,m.watch)(c,t=>{t&&e(!0)},{immediate:!0}),(0,m.onScopeDispose)(()=>e(!1),!0)}).then(e=>{var t;return null===(t=o)||void 0===t||t(),e})}head._scriptStatusWatcher=head._scriptStatusWatcher||head.hooks.hook("script:updated",e=>{var s=e.script;s._statusRef.value=s.status});var script=(0,l.useScript)(input,r);return script._statusRef=script._statusRef||(0,m.ref)(script.status),function(script,e){if(!e)return;var t=(e,t)=>{if(!script._cbs[e])return t(script.instance),()=>{};var i=script._cbs[e].push(t),r=()=>{var t;i&&(null===(t=script._cbs[e])||void 0===t||t.splice(i-1,1),i=null)};return(0,m.onScopeDispose)(r),r};script.onLoaded=e=>t("loaded",e),script.onError=e=>t("error",e),(0,m.onScopeDispose)(()=>{var e;null===(e=script._triggerAbortController)||void 0===e||e.abort()})}(script,n),new Proxy(script,{get:(e,t,a)=>Reflect.get(e,"status"===t?"_statusRef":t,a)})},t.useSeoMeta=w,t.useServerHead=function(input){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},head=e.head||(0,d.i)();if(delete e.head,head)return head.push(input,_(_({},e),{},{mode:"server"}))},t.useServerHeadSafe=function(input){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return E(input,_(_({},e),{},{mode:"server"}))},t.useServerSeoMeta=function(input,e){return w(input,_(_({},e),{},{mode:"server"}))};var o=n(r(85)),c=n(r(8));r(6);var l=r(570),d=r(571),f=r(212),h=r(909),m=r(5),y=["title","titleTemplate"];function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?v(Object(r),!0).forEach(function(t){(0,c.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.unheadVueComposablesImports={"@unhead/vue":["injectHead",...f.composableNames]};function E(input){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,h.u)(input,_(_({},e),{},{transform:f.whitelistSafeInput}))}function w(input,e){var title=input.title,t=input.titleTemplate,meta=(0,o.default)(input,y);return(0,h.u)({title:title,titleTemplate:t,_flatMeta:meta},_(_({},e),{},{transform(e){var t=(0,f.unpackMeta)(_({},e._flatMeta));return delete e._flatMeta,_(_({},e),{},{meta:t})}}))}t.Vue2ProvideUnheadPlugin=(e,head)=>{e.mixin({beforeCreate(){var e=this.$options,t=e.provide;e.provide=function(){return _(_({},"function"==typeof t?t.call(this):t||{}),{},{[d.h]:head})}}})};t.VueHeadMixin={created(){var source=!1;if(d.V){var e=(0,m.getCurrentInstance)();if(!e)return;var t=e.type;if(!t||!("head"in t))return;source="function"==typeof t.head?()=>t.head.call(e.proxy):t.head}else{var head=this.$options.head;head&&(source="function"==typeof head?()=>head.call(this):head)}source&&(0,h.u)(source)}}},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.DomPlugin=function(e){return(0,l.defineHeadPlugin)(head=>{var t,r,n=(null===(t=head.resolvedOptions.document)||void 0===t||null===(r=t.head.querySelector('script[id="unhead:payload"]'))||void 0===r?void 0:r.innerHTML)||!1;return n&&head.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":t=>{y(t,e)}}}})},t.debouncedRenderDOMHead=y,t.renderDOMHead=h,r(33),r(131),r(35),r(50),r(51),r(52),r(53),r(54),r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(6);var o=n(r(8)),c=n(r(10)),l=r(212);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e){return m.apply(this,arguments)}function m(){return m=(0,c.default)(function*(head){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).document||head.resolvedOptions.document;if(e&&head.dirty){var t={shouldRender:!0,tags:[]};if(yield head.hooks.callHook("dom:beforeRender",t),t.shouldRender)return head._domUpdatePromise||(head._domUpdatePromise=new Promise(function(){var t=(0,c.default)(function*(t){var r=(yield head.resolveTags()).map(e=>({tag:e,id:l.HasElementTags.has(e.tag)?(0,l.hashTag)(e):e.tag,shouldRender:!0})),n=head._dom;if(!n){n={elMap:{htmlAttrs:e.documentElement,bodyAttrs:e.body}};var o=new Set;for(var c of["body","head"]){var d,h=null===(d=e[c])||void 0===d?void 0:d.children,m=function*(e){var t=e.tagName.toLowerCase();if(!l.HasElementTags.has(t))return 1;for(var r={tag:t,props:yield(0,l.normaliseProps)(e.getAttributeNames().reduce((t,r)=>f(f({},t),{},{[r]:e.getAttribute(r)}),{})),innerHTML:e.innerHTML},c=(0,l.tagDedupeKey)(r),d=c,i=1;d&&o.has(d);)d="".concat(c,":").concat(i++);d&&(r._d=d,o.add(d)),n.elMap[e.getAttribute("data-hid")||(0,l.hashTag)(r)]=e};for(var y of h)yield*m(y)}}function track(e,t,r){var o="".concat(e,":").concat(t);n.sideEffects[o]=r,delete n.pendingSideEffects[o]}function v(t){var r=t.id,o=t.$el,c=t.tag,l=c.tag.endsWith("Attrs");if(n.elMap[r]=o,l||(c.textContent&&c.textContent!==o.textContent&&(o.textContent=c.textContent),c.innerHTML&&c.innerHTML!==o.innerHTML&&(o.innerHTML=c.innerHTML),track(r,"el",()=>{var e;null===(e=n.elMap[r])||void 0===e||e.remove(),delete n.elMap[r]})),c._eventHandlers)for(var d in c._eventHandlers)Object.prototype.hasOwnProperty.call(c._eventHandlers,d)&&""!==o.getAttribute("data-".concat(d))&&(("bodyAttrs"===c.tag?e.defaultView:o).addEventListener(d.substring(2),c._eventHandlers[d].bind(o)),o.setAttribute("data-".concat(d),""));var f=function(e){if(!Object.prototype.hasOwnProperty.call(c.props,e))return 0;var t=c.props[e],n="attr:".concat(e);
2if("class"===e){if(!t)return 0;var d=function(e){l&&track(r,"".concat(n,":").concat(e),()=>o.classList.remove(e)),!o.classList.contains(e)&&o.classList.add(e)};for(var f of t.split(" "))d(f)}else if("style"===e){if(!t)return 0;var h=function(){var e=m.indexOf(":"),t=m.substring(0,e).trim(),c=m.substring(e+1).trim();track(r,"".concat(n,":").concat(t),()=>{o.style.removeProperty(t)}),o.style.setProperty(t,c)};for(var m of t.split(";"))h()}else o.getAttribute(e)!==t&&o.setAttribute(e,!0===t?"":String(t)),l&&track(r,n,()=>o.removeAttribute(e))};for(var h in c.props)f(h)}n.pendingSideEffects=f({},n.sideEffects),n.sideEffects={};var _=[],E={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(var w of r){var A=w.tag,T=w.shouldRender,O=w.id;T&&("title"!==A.tag?(w.$el=w.$el||n.elMap[O],w.$el?v(w):l.HasElementTags.has(A.tag)&&_.push(w)):e.title=A.textContent)}for(var S of _){var I=S.tag.tagPosition||"head";S.$el=e.createElement(S.tag.tag),v(S),E[I]=E[I]||e.createDocumentFragment(),E[I].appendChild(S.$el)}for(var C of r)yield head.hooks.callHook("dom:renderTag",C,e,track);for(var N in E.head&&e.head.appendChild(E.head),E.bodyOpen&&e.body.insertBefore(E.bodyOpen,e.body.firstChild),E.bodyClose&&e.body.appendChild(E.bodyClose),n.pendingSideEffects)n.pendingSideEffects[N]();head._dom=n,yield head.hooks.callHook("dom:rendered",{renders:r}),t()});return function(e){return t.apply(this,arguments)}}()).finally(()=>{head._domUpdatePromise=void 0,head.dirty=!1})),head._domUpdatePromise}}),m.apply(this,arguments)}function y(head){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.delayFn||(e=>setTimeout(e,10));return head._domDebouncedUpdatePromise=head._domDebouncedUpdatePromise||new Promise(r=>t(()=>h(head,e).then(()=>{delete head._domDebouncedUpdatePromise,r()})))}},function(e,t,r){"use strict";r.r(t),r.d(t,"InternalKeySymbol",function(){return n}),r.d(t,"packArray",function(){return c}),r.d(t,"packObject",function(){return o}),r.d(t,"packString",function(){return l}),r.d(t,"unpackToArray",function(){return d}),r.d(t,"unpackToString",function(){return f});const n="_$key";function o(input,e){const t=Object.keys(input);let[r,o]=t;(e=e||{}).key=e.key||r,e.value=e.value||o,e.resolveKey=e.resolveKey||(e=>e);const c=r=>{const n=function(input){return Array.isArray(input)?input:[input]}(e[r]);return n.find(e=>"string"==typeof e&&e.includes(".")?e:e&&t.includes(e))},l=(e,t)=>{if(e.includes(".")){const r=e.split(".");let n=t;for(const path of r)n=n[path];return n}return t[e]};r=c("key")||r,o=c("value")||o;const d=input.key?`${n}${input.key}-`:"";let f=l(r,input);return f=e.resolveKey(f),{[`${d}${f}`]:l(o,input)}}function c(input,e){const t={};for(const i of input){const r=o(i,e),c=Object.keys(r)[0],l=c.startsWith(n);!l&&t[c]?(t[c]=Array.isArray(t[c])?t[c]:[t[c]],t[c].push(Object.values(r)[0])):t[l&&c.split("-").slice(1).join("-")||c]=r[c]}return t}function l(input){const output={};return input.split(" ").forEach(e=>{const t=e.replace(/"/g,"").split("=");output[t[0]]=t[1]}),output}function d(input,e){const t=[],r=e.resolveKeyData||(e=>e.key),n=e.resolveValueData||(e=>e.value);for(const[o,c]of Object.entries(input))t.push(...(Array.isArray(c)?c:[c]).map(i=>{const t={key:o,value:i},c=n(t);return"object"==typeof c?d(c,e):Array.isArray(c)?c:{["function"==typeof e.key?e.key(t):e.key]:r(t),["function"==typeof e.value?e.value(t):e.value]:c}}).flat());return t}function f(e,t){return Object.entries(e).map(([e,r])=>{if("object"==typeof r&&(r=f(r,t)),t.resolve){const n=t.resolve({key:e,value:r});if(void 0!==n)return n}return"number"==typeof r&&(r=r.toString()),"string"==typeof r&&t.wrapValue&&(r=r.replace(new RegExp(t.wrapValue,"g"),`\\${t.wrapValue}`),r=`${t.wrapValue}${r}${t.wrapValue}`),`${e}${t.keyValueSeparator||""}${r}`}).join(t.entrySeparator||"")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.u=function(input){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},head=e.head||(0,o.i)();if(head)return head.ssr?head.push(input,e):function(head,input){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=(0,n.ref)(!1),r=(0,n.ref)({});(0,n.watchEffect)(()=>{r.value=t.value?{}:(0,o.r)(input)});var c=head.push(r.value,e);(0,n.watch)(r,e=>{c.patch(e)}),(0,n.getCurrentInstance)()&&((0,n.onBeforeUnmount)(()=>{c.dispose()}),(0,n.onDeactivated)(()=>{t.value=!0}),(0,n.onActivated)(()=>{t.value=!1}));return c}(head,input,e)};var n=r(5),o=r(571)},function(e,t,r){"use strict";var n=r(3);
2Object.defineProperty(t,"__esModule",{value:!0}),t.navigateTo=t.defineNuxtRouteMiddleware=t.addRouteMiddleware=t.abortNavigation=void 0,t.resolveRouteObject=_,t.useRouter=t.useRoute=void 0,r(7),r(14);var o=n(r(25)),c=n(r(10)),l=r(5),d=(r(163),r(572)),f=r(205),h=r(78),m=r(171),y=()=>{var e;return(0,l.getCurrentInstance)()?(0,d.useRouter)():null===(e=(0,h.useNuxtApp)())||void 0===e?void 0:e.nuxt2Context.app.router};t.useRouter=y;function v(e){return function(){var t=(0,c.default)(function*(t){t.$_nuxtApp._processingMiddleware=!0;var r=yield(0,h.callWithNuxt)(t.$_nuxtApp,e,[t.route,t.from]);return delete t.$_nuxtApp._processingMiddleware,r instanceof Error?t.error(r):r?t.redirect(r):r});return function(e){return t.apply(this,arguments)}}()}t.useRoute=()=>{if((0,l.getCurrentInstance)())return(0,d.useRoute)();var e=(0,h.useNuxtApp)();e._route||(Object.defineProperty(e,"__route",{get:()=>e.nuxt2Context.app.context.route}),e._route=(0,l.reactive)(e.__route),y().afterEach(t=>Object.assign(e._route,t)));return e._route};t.navigateTo=(e,t)=>{e||(e="/");var r="string"==typeof e?e:"path"in e?_(e):y().resolve(e).href;if(null!=t&&t.open){var n=t.open,c=n.target,l=void 0===c?"_blank":c,d=n.windowFeatures,m=void 0===d?{}:d,v=Object.entries(m).filter(e=>{var t=(0,o.default)(e,2);t[0];return void 0!==t[1]}).map(e=>{var t=(0,o.default)(e,2),r=t[0],n=t[1];return"".concat(r.toLowerCase(),"=").concat(n)}).join(", ");return open(r,l,v),Promise.resolve()}var E=(null==t?void 0:t.external)||(0,f.hasProtocol)(r,{acceptRelative:!0});if(E&&(null==t||!t.external))throw new Error("Navigating to external URL is not allowed by default. Use `nagivateTo (url, { external: true })`.");if(E&&"script:"===(0,f.parseURL)(r).protocol)throw new Error("Cannot navigate to an URL with script protocol.");var w=(()=>{try{if((0,h.useNuxtApp)()._processingMiddleware)return!0}catch(e){return!0}return!1})();if(!E&&w)return e;var A=y(),T=(0,h.useNuxtApp)();return E?(null!=t&&t.replace?location.replace(r):location.href=r,w?!!T.isHydrating&&new Promise(()=>{}):Promise.resolve()):null!=t&&t.replace?A.replace(e):A.push(e)};t.abortNavigation=e=>{if(!e)return!1;if((e=(0,m.createError)(e)).fatal){var t=(0,h.useNuxtApp)();(0,h.callWithNuxt)(t,m.showError,[e])}throw e};t.defineNuxtRouteMiddleware=e=>v(e);t.addRouteMiddleware=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(0,h.useNuxtApp)();r.global||"function"==typeof e?n._middleware.global.push("function"==typeof e?e:t):n._middleware.named[e]=v(t)};function _(e){return(0,f.withQuery)(e.path||"",e.query||{})+(e.hash||"")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useState=void 0;var n=r(5),o=r(78);t.useState=(e,t)=>{var r=(0,o.useNuxtApp)();r.payload.useState||(r.payload.useState={}),(0,n.isReactive)(r.payload.useState)||(r.payload.useState=(0,n.reactive)(r.payload.useState)),e in r.payload.useState||(0,n.set)(r.payload.useState,e,void 0);var c=(0,n.toRef)(r.payload.useState,e);return void 0===c.value&&t&&(c.value=t()),c}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=function(e){return Array.isArray(e)?e:[e]}},function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.useFetch=_,t.useLazyFetch=function(e,t,r){var n="string"==typeof t?[{},t]:[t,r],o=(0,l.default)(n,2),c=o[0],d=void 0===c?{}:c,f=o[1];return _(e,v(v({},d),{},{lazy:!0}),f)};var o=n(r(8)),c=n(r(85));r(36),r(6);var l=n(r(25)),d=r(914),f=r(5),h=r(573),m=(r(210),["server","lazy","default","transform","pick","wat
2ch","immediate","getCachedData","deep","dedupe"]);function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach(function(t){(0,o.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _(e,t,r){var n="string"==typeof t?[{},t]:[t,r],o=(0,l.default)(n,2),y=o[0],_=void 0===y?{}:y,A=o[1],T=(0,f.computed)(()=>{var t=e;return"function"==typeof t&&(t=t()),E(t)}),O=_.key||(0,d.hash)([A,"string"==typeof T.value?T.value:"",...w(_)]);if(!O||"string"!=typeof O)throw new TypeError("[nuxt] [useFetch] key must be a string: "+O);if(!e)throw new Error("[nuxt] [useFetch] request is missing.");var S=O===A?"$f"+O:O;if(!_.baseURL&&"string"==typeof T.value&&"/"===T.value[0]&&"/"===T.value[1])throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');var I,C=_.server,N=_.lazy,P=_.default,R=_.transform,L=_.pick,D=_.watch,x=_.immediate,k=_.getCachedData,M=_.deep,F=_.dedupe,U=(0,c.default)(_,m),j=(0,f.reactive)(v(v({},U),{},{cache:"boolean"==typeof _.cache?void 0:_.cache})),B={server:C,lazy:N,default:P,transform:R,pick:L,immediate:x,getCachedData:k,deep:M,dedupe:F,watch:!1===D?[]:[j,T,...D||[]]};return(0,h.useAsyncData)(S,()=>{var e,t;null===(e=I)||void 0===e||null===(t=e.abort)||void 0===t||t.call(e),I="undefined"!=typeof AbortController?new AbortController:{};var r,n=E(_.timeout);return n&&(r=setTimeout(()=>I.abort(),n),I.signal.onabort=()=>clearTimeout(r)),(_.$fetch||globalThis.$fetch)(T.value,v({signal:I.signal},j)).finally(()=>{clearTimeout(r)})},B)}function E(e){return"function"==typeof e?e():(0,f.unref)(e)}function w(e){var t,r=[(null===(t=E(e.method))||void 0===t?void 0:t.toUpperCase())||"GET",E(e.baseURL)];for(var n of[e.params||e.query]){var o=E(n);if(o){var c={};for(var d of Object.entries(o)){var f=(0,l.default)(d,2),h=f[0],m=f[1];c[E(h)]=E(m)}r.push(c)}}return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"digest",{enumerable:!0,get:function(){return o.digest}}),t.hash=function(input){return(0,o.digest)((0,n.serialize)(input))},Object.defineProperty(t,"isEqual",{enumerable:!0,get:function(){return n.isEqual}}),Object.defineProperty(t,"serialize",{enumerable:!0,get:function(){return n.serialize}});var n=r(559),o=r(915)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.digest=function(e){return(new l).finalize(e).toBase64()},r(6);var n=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],o=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],c=[],l=class{constructor(){this._data=new d,this._hash=new d([...n]),this._nDataBytes=0,this._minBufferSize=0}finalize(e){e&&this._append(e);var t=8*this._nDataBytes,r=8*this._data.sigBytes;return this._data.words[r>>>5]|=128<<24-r%32,this._data.words[14+(r+64>>>9<<4)]=Math.floor(t/4294967296),this._data.words[15+(r+64>>>9<<4)]=t,this._data.sigBytes=4*this._data.words.length,this._process(),this._hash}_doProcessBlock(e,t){for(var r=this._hash.words,a=r[0],b=r[1],n=r[2],l=r[3],d=r[4],f=r[5],g=r[6],h=r[7],i=0;i<64;i++){if(i<16)c[i]=0|e[t+i];else{var m=c[i-15],y=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,v=c[i-2],_=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[i]=y+c[i-7]+_+c[i-16]}var E=a&b^a&n^b&n,w=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),A=h+((d<<26|d>>>6)^(d<<21|d>>>11)^(d<<7|d>>>25))+(d&f^~d&g)+o[i]+c[i];h=g,g=f,f=d,d=l+A|0,l=n,n=b,b=a,a=A+(w+E)|0}r[0]=r[0]+a|0,r[1]=r[1]+b|0,r[2]=r[2]+n|0,r[3]=r[3]+l|0,r[4]=r[4]+d|0,r[5]=r[5]+f|0,r[6]=r[6]+g|0,r[7]=r[7]+h|0}_append(data){"string"==typeof data&&(data=d.fromUtf8(data)),this._data.concat(data),this._nDataBytes+=data.sigBytes}_process(e){var t,r=this._data.sigBytes/64,n=16*(r=e?Math.ceil(r):Math.max((0|r)-this._minBufferSize,0)),o=Math.min(4*n,this._data.sigBytes);if(n){for(var c=0;c<n;c+=16)this._doProcessBlock(this._data.words,c);t=this._data.words.splice(0,n),this._data.sigBytes-=o}return new d(t,o)}},d=class e{constructor(e,t){e=this.words=e||[],this.sigBytes=void 0===t?4*e.length:t}static fromUtf8(input){for(var t=unescape(encodeURIComponent(input)),r=t.length,n=[],i=0;i<r;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new e(n,r)}toBase64(){for(var e=[],i=0;i<this.sigBytes;i+=3)for(var t=(this.words[i>>>2]>>>24-i%4*8&255)<<16|(this.words[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|this.words[i+2>>>2]>>>24-(i+2)%4*8&255,r=0;r<4&&8*i+6*r<8*this.sigBytes;r++)e.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(t>>>6*(3-r)&63));return e.join("")}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(var i=0;i<e.sigBytes;i++){var t=e.words[i>>>2]>>>24-i%4*8&255;this.words[this.sigBytes+i>>>2]|=t<<24-(this.sigBytes+i)%4*8}else for(var r=0;r<e.sigBytes;r+=4)this.words[this.sigBytes+r>>>2]=e.words[r>>>2];this.sigBytes+=e.sigBytes}}},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.useRequestURL=function(e){0;return new URL(window.location.href)},r(6),r(168),r(169),r(72);r(163),r(210)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useHydration=t.useFetch=t.useAsyncData=void 0;var n=()=>()=>{throw new Error("not implemented")};t.useAsyncData=n(),t.useFetch=n(),t.useHydration=n()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRuntimeHook=function(e,t){var r=(0,o.useNuxtApp)().hook(e,t);(0,n.onScopeDispose)(r)};var n=r(5),o=r(78)},,,,,,function(e,t){e.exports=function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=r(1);e.exports=function(t,r){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":n(document))&&"string"==typeof document.cookie,s="object"===(void 0===t?"undefined":n(t))&&"object"===(void 0===r?"undefined":n(r))&&void 0!==e,u=!a&&!s||a&&s,c=function(e){if(s){var n=t.headers.cookie||"";return e&&(n=(n=r.getHeaders())["set-cookie"]?n["set-cookie"].map(function(e){return e.split(";")[0]}).join(";"):""),n}if(a)return document.cookie||""},l=function(){var e=r.getHeader("Set-Cookie");return(e="string"==typeof e?[e]:e)||[]},p=function(e){return r.setHeader("Set-Cookie",e)},d=function(e,t){if(!t)return e;try{return JSON.parse(e)}catch(t){return e}},f={parseJSON:i,set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(t="object"===(void 0===t?"undefined":n(t))?JSON.stringify(t):t,s){var i=l();i.push(o.serialize(e,t,r)),p(i)}else document.cookie=o.serialize(e,t,r)},setAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];u||Array.isArray(e)&&e.forEach(function(e){var t=e.name,r=void 0===t?"":t,n=e.value,o=void 0===n?"":n,i=e.opts,a=void 0===i?{path:"/"}:i;f.set(r,o,a)})},get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fromRes:!1,parseJSON:f.parseJSON};if(u)return"";var r=o.parse(c(t.fromRes))[e];return d(r,t.parseJSON)},getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:f.parseJSON};if(u)return{};var t=o.parse(c(e.fromRes));for(var r in t)t[r]=d(t[r],e.parseJSON);return t},remove:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{path:"/"};u||(t.expires=new Date(0),f.set(e,"",t))},removeAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{path:"/"};if(!u){var t=o.parse(c());for(var r in t)f.remove(r,e)}},nodeCookie:o};return f}},function(e,t,r){"use strict";function i(e,t){try{return t(e)}catch(t){return e}}t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var r={},n=t||{},o=e.split(u),s=n.decode||a,c=0;c<o.length;c++){var l=o[c],p=l.indexOf("=");if(!(p<0)){var d=l.substr(0,p).trim(),f=l.substr(++p,l.length).trim();'"'==f[0]&&(f=f.slice(1,-1)),null==r[d]&&(r[d]=i(f,s))}}return r},t.serialize=function(e,t,r){var o=r||{},c=o.encode||s;if("function"!=typeof c)throw new TypeError("option encode is invalid");if(!n.test(e))throw new TypeError("argument name is invalid");var i=c(t);
2if(i&&!n.test(i))throw new TypeError("argument val is invalid");var a=e+"="+i;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");a+="; Max-Age="+Math.floor(u)}if(o.domain){if(!n.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw new TypeError("option path is invalid");a+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");a+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(a+="; HttpOnly"),o.secure&&(a+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"strict":a+="; SameSite=Strict";break;case"none":a+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return a};var a=decodeURIComponent,s=encodeURIComponent,u=/; */,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},,,,function(e,t,r){"use strict";(function(e){var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.VueDatePicker=void 0,r(70),r(15),r(116),r(71),r(7),r(18),r(17),r(34),r(14),r(35),r(36),r(6);var o=r(929),c=n(r(5)),l=n(r(930)),a=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},d={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:0,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"[".concat(e).concat(t[(r-20)%10]||t[r]||t[0],"]")},buttonValidate:"Ok",buttonCancel:"Cancel",rangeHeaderText:"From %d To %d"},s={name:"fr",weekdays:"Dimanche_Lundi_Mardi_Mercredi_Jeudi_Vendredi_Samedi".split("_"),months:"Janvier_Février_Mars_Avril_Mai_Juin_Juillet_Août_Septembre_Octobre_Novembre_Décembre".split("_"),weekStart:1,weekdaysShort:"Dim_Lun_Mar_Mer_Jeu_Ven_Sam".split("_"),monthsShort:"Janv_Févr_Mars_Avr_Mai_Juin_Juil_Août_Sept_Oct_Nov_Déc".split("_"),weekdaysMin:"Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},buttonValidate:"Ok",buttonCancel:"Annuler",rangeHeaderText:"Du %d Au %d"},f={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},ordinal:function(e){return"".concat(e,"º")},buttonValidate:"Ok",buttonCancel:"Anular",rangeHeaderText:"Del %d Al %d"},h={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return"".concat(e,".")},weekStart:1,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},buttonValidate:"Ok",buttonCancel:"Abbrechen",rangeHeaderText:"Vom %d Bis %d"},u={name:"he",weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳".split("_"),months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},buttonValidate:"אישור",buttonCancel:"ביטול",rangeHeaderText:"מתאריך %d עד תאריך %d"},m={name:"ru",weekdays:"Воскресенье_Понедельник_Вторник_Среда_Четверг_Пятница_Суббота".split("_"),weekdaysShort:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),weekdaysMin:"Вс_Пн_Вт_Ср_Чт_Пт_Сб".split("_"),months:"Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь".split("_"),monthsShort:"Янв_Фев_Мар_Апр_Май_Июн_Июл_Авг_Сен_Окт_Ноя_Дек".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){return e},buttonValidate:"Ок",buttonCancel:"Отмена",rangeHeaderText:"От %d До %d"},y={name:"sv",weekdays:"Söndag_Måndag_Tisdag_Onsdag_Torsdag_Fredag_Lördag".split("_"),weekdaysShort:"Sön_Mån_Tis_Ons_Tor_Fre_Lör".split("_"),weekdaysMin:"Sö_Må_Ti_On_To_Fr_Lö".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:0,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}
2,ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"[".concat(e).concat(t[(r-20)%10]||t[r]||t[0],"]")},buttonValidate:"Ok",buttonCancel:"Avbryt",rangeHeaderText:"Från %d till %d"},p=Object.freeze({__proto__:null,fr:s,en:d,es:f,de:h,he:u,ru:m,sv:y}),v=["name","weekdays","weekdaysShort","weekdaysMin","weekStart","months","monthsShort","ordinal","formats","buttonCancel","buttonValidate","rangeHeaderText"],_={date:"DD MMMM YYYY",month:"MMMM YYYY",quarter:"YYYY-[Q]Q",year:"YYYY",range:"DD MMMM YYYY"},E={date:"YYYY-MM-DD",month:"YYYY-MM",quarter:"YYYY-Q",year:"YYYY",range:"YYYY-MM-DD"},w={date:"dddd DD MMMM",month:"MMMM",quarter:"[Q]Q",year:"YYYY",range:"DD MMMM YYYY"},A="date",T="month",O="quarter",S="year",I=/(%d)+/,C=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34});function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function P(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?N(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var R=c.default.extend({name:"Localable",props:{locale:{type:Object,default:function(){return{lang:void 0}}}},computed:{currentLocale:function(){var e=this.locale.lang;return P(P({},this.locale),{},{lang:this.getLocale(e)})}},methods:{getDefaultLang:function(){return(this.$vuedatepicker&&this.$vuedatepicker.lang||"undefined"!=typeof window&&(window.navigator.userLanguage||window.navigator.language)||"en").substr(0,2)},isValidLocale:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e);return t.length>0&&t.every(function(e){return v.includes(e)})},getLocale:function(e){return this.isValidLocale(e)?e:p[e]||this.getLocale(this.getDefaultLang())}}}),L=c.default.extend({name:"Mobile",props:{mobileBreakpoint:{type:[Number,String],default:576,validator:function(e){return!isNaN(Number(e))}}},data:function(){return{width:0,mobile:!1,resizeTimeout:void 0}},computed:{isMobile:function(){return this.mobile}},created:function(){var e=this;window&&(window.addEventListener("resize",this.onResize,{passive:!0}),this.$on("hook:destroyed",function(){window.removeEventListener("resize",e.onResize,{passive:!0})}),this.update())},methods:{onResize:function(){clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.update,200)},update:function(){var e=this.getClientWidth();this.width=e,this.mobile=e<parseInt(this.mobileBreakpoint,10)},getClientWidth:function(){return"undefined"==typeof document?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}}});function D(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;var x=D(function(e){function t(r){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(r)}e.exports=t}),k=["click"],M=[],F={instances:M,bind:U,update:function(e,t){JSON.stringify(t.value)!==JSON.stringify(t.oldValue)&&U(e,t)},unbind:j};function U(e,t){var r=t.value;j(e);var n=r,i="function"==typeof n,a="object"===x(n);if((i||a)&&!1!==n.isActive){var o=function(e){var t=e.el,r=e.handler;return{el:t,eventHandlers:k.map(function(e){return{event:e,handler:function(e){return function(e){var t=e.event,r=e.el,n=e.handler,i=t.path||(t.composedPath?t.composedPath():void 0);if(i?i.indexOf(r)<0:!r.contains(t.target))return n(t,r)}({event:e,el:t,handler:r})}}})}}({el:e,handler:i?n:n.handler});o.eventHandlers.forEach(function(e){var t=e.event,r=e.handler;return setTimeout(function(){return document.addEventListener(t,r,!1)},0)}),M.push(o)}}function j(e){var t=M.findIndex(function(t){return t.el===e});
2-1!==t&&(M[t].eventHandlers.forEach(function(e){var t=e.event,r=e.handler;return document.removeEventListener(t,r,!1)}),M.splice(t,1))}var B={model:{prop:"value",event:"input"},props:{value:{type:Boolean,required:!1}},data:function(){return{isActive:!1}},watch:{value:{handler:function(e){this.isActive=e},immediate:!0},isActive:function(e){e!==this.value&&this.$emit("input",e)}}};function H(e){var t=x(e);return"boolean"===t||"string"===t||e.nodeType===Node.ELEMENT_NODE}function V(e){if(null!=e&&""!==e)return isNaN(+e)?String(e):"".concat(Number(e),"px")}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.$scopedSlots[t]?e.$scopedSlots[t]&&e.$scopedSlots[t](r):!e.$slots[t]||r&&!n?void 0:e.$slots[t]}function Y(e){return e&&e.nodeType===Node.ELEMENT_NODE?+window.getComputedStyle(e).getPropertyValue("z-index")||Y(e.parentNode):0}var $={mixins:[B],props:{activator:{default:void 0,validator:function(e){return["string","object"].includes(x(e))}},disabled:{type:Boolean,default:!1}},data:function(){return{activatorElement:void 0,activatorNode:[]}},watch:{activator:"resetActivator"},mounted:function(){var e,t,r=(t="activator",(e=this).$slots[t]&&e.$scopedSlots[t]&&e.$scopedSlots[t].name?"v-slot":e.$slots[t]?"normal":e.$scopedSlots[t]?"scoped":void 0);r&&["v-slot","normal"].includes(r)&&console.error('The activator slot must be bound, try \'<template v-slot:activator="{ on }"><button v-on="on">\'',this),this.getActivator()},methods:{resetActivator:function(){this.activatorElement=void 0,this.getActivator()},genActivator:function(){var e=z(this,"activator",Object.assign(this.getValueProxy(),{attrs:{role:"button","aria-haspopup":!0,"aria-expanded":String(this.isActive)}}))||[];return this.activatorNode=e,e},getActivator:function(e){if(this.activatorElement)return this.activatorElement;var t;if(this.activator){var r=document;t="string"==typeof this.activator?r.querySelector(this.activator):this.activator.$el?this.activator.$el:this.activator}else e?t=e.currentTarget||e.target:this.activatorNode.length&&(t=this.activatorNode[0].elm);return this.activatorElement=t,this.activatorElement},getContentSlot:function(){return z(this,"default",this.getValueProxy(),!0)},getValueProxy:function(){var e=this;return{get value(){return e.isActive},set value(t){e.isActive=t}}}}},W=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},K=function(e,t){if(e){if("string"==typeof e)return W(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?W(e,t):void 0}},G=function(e){return function(e){if(Array.isArray(e))return W(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||K(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()};function Q(e,t){if(e){var r=function(e){var t=e.getBoundingClientRect();return{top:Math.round(t.top),left:Math.round(t.left),bottom:Math.round(t.bottom),right:Math.round(t.right),width:Math.round(t.width),height:Math.round(t.height)}}(e);if(!1!==t){var n=window.getComputedStyle(e);r.left=parseInt(n.marginLeft||0),r.top=parseInt(n.marginTop||0)}return r}}function X(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function J(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?X(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Z={name:"VDMenu",mixins:[$,{name:"Detachable",mixins:[{name:"Bootable",data:function(){return{isBooted:!1}},computed:{hasContent:function(){return this.isBooted||this.isActive}},watch:{isActive:function(){this.isBooted=!0}},methods:{showLazyContent:function(e){return this.hasContent&&e?e():[this.$createElement()]}}}],props:{attach:{validator:H,default:!1},contentClass:{type:String,default:""}},data:function(){return{activatorNode:void 0,hasDetached:!1}},watch:{attach:function(){this.hasDetached=!1,this.initDetach()},hasContent:function(){this.$nextTick(this.initDetach)}},beforeMount:function(){var e=this;this.$nextTick(function(){e.activatorNode&&(Array.isArray(e.activatorNode)?e.activatorNode:[e.activatorNode]).forEac
2h(function(t){if(t.elm&&e.$el.parentNode){var r=e.$el===e.$el.parentNode.firstChild?e.$el:e.$el.nextSibling;e.$el.parentNode.insertBefore(t.elm,r)}})})},mounted:function(){this.hasContent&&this.initDetach()},deactivated:function(){this.isActive=!1},beforeDestroy:function(){try{this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content),this.activatorNode&&(Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode]).forEach(function(e){e.elm&&e.elm.parentNode&&e.elm.parentNode.removeChild(e.elm)})}catch(e){console.error(e)}},methods:{initDetach:function(){var e;this._isDestroyed||!this.$refs.content||this.hasDetached||""===this.attach||!0===this.attach||((e=!1===this.attach?document.querySelector("#app")||document.querySelector("body"):"string"==typeof this.attach?document.querySelector(this.attach):this.attach)?(e.appendChild(this.$refs.content),this.hasDetached=!0):console.error("Unable to locate target '".concat(this.attach,"'"),this))}}},{name:"DynamicPosition",data:function(){return{activatorFixed:!1,dimensions:{activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0,offsetLeft:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0}},isContentActive:!1,pageWidth:0,pageYOffset:0}},computed:{isAttached:function(){return!1!==this.attach},computedLeft:function(){var e=this.dimensions,t=e.activator,r=e.content,n=(this.isAttached?t.offsetLeft:t.left)||0;return this.rtl?t.right-r.width:n},computedTop:function(){var e=this.dimensions.activator,t=e.height;return((this.isAttached?e.offsetTop:e.top+this.pageYOffset)||0)+t},hasActivator:function(){return Boolean(this.$slots.activator)||Boolean(this.$scopedSlots.activator)||Boolean(this.activator)}},watch:{disabled:function(e){e&&this.callDeactivate()},isActive:function(e){this.disabled||(e?this.callActivate():this.callDeactivate())}},methods:{activate:function(){},deactivate:function(){},callActivate:function(){this.activate()},callDeactivate:function(){this.isContentActive=!1,this.deactivate()},calcLeft:function(e){return V(this.isAttached?this.computedLeft:this.calcXOverflow(this.computedLeft,e))},calcTop:function(){return V(this.isAttached?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow:function(e,t){var r=e+t-this.pageWidth+12;return(e=(!this.left||this.right)&&r>0?Math.max(e-r,0):Math.max(e,12))+(window.pageXOffset||document.documentElement.scrollLeft)},calcYOverflow:function(e){var t=this.pageYOffset+(window.innerHeight||document.documentElement.clientHeight),r=this.dimensions,n=r.activator,i=(r.content||{}).height,a=t<e+i;return a&&n.top>i?e=this.pageYOffset+(n.top-i):a&&!this.allowOverflow?e=t-i-12:e<this.pageYOffset&&!this.allowOverflow&&(e=this.pageYOffset+12),e<12?12:e},detectOrigin:function(e,t){var r=parseInt(e.split("px")[0]),n=parseInt(t.split("px")[0]),i=this.dimensions.activator,a=[];return a.push(i.top<n-this.pageYOffset?"top":"bottom"),a.push(i.left===r?"left":"right"),this.origin||a.join(" ")},checkForPageYOffset:function(){this.pageYOffset=this.activatorFixed?0:window.pageYOffset||document.documentElement.scrollTop},checkActivatorFixed:function(){if(!this.isAttached){var e=this.getActivator();this.activatorFixed=function(e){for(var t=["fixed","sticky"],r=e;r;){if(t.includes(window.getComputedStyle(r).position))return!0;r=r.offsetParent}return!1}(e)}},sneakPeek:function(e){var t=this;requestAnimationFrame(function(){var r=t.$refs.content;r&&"none"===r.style.display?(r.style.display="inline-block",e(),r.style.display="none"):e()})},startTransition:function(){var e=this;return new Promise(function(t){return requestAnimationFrame(function(){e.isContentActive=e.isActive,t()})})},updateDimensions:function(){var e=this;this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=window.innerWidth||document.documentElement.clientWidth;var t={},r=this.getActivator();r&&(t.activator=Q(r,this.attach),t.activator.offsetLeft=r.offsetLeft,this.isAttached?t.activator.offsetTop=r.offsetTop:t.activator.offsetTop=0,this.sneakPeek(function(){t.content=Q(e.$refs.content,e.attach),e.dimensions=t}))}}},{data:function(){return{stackMinZIndex:1e3}},computed:{activeZIndex:function(){var e=this.$refs.content,t=this.isActive?this.getMaxZIndex()+2:Y(e);return parseInt(t)}}
2,methods:{getMaxZIndex:function(){var e=this.$el,t=G(document.getElementsByClassName("menu__content--active")),r=[this.stackMinZIndex,Y(e)].concat(G(t.map(function(e){return Y(e)})));return Math.max.apply(Math,G(r))}}}],directives:{Resize:{inserted:function(e,t){var r=t.value,n=t.options||{passive:!0},i=!1,a=function(){i||(i=!0,window.requestAnimationFrame(r),i=!1)};window.addEventListener("resize",a,n),Object.assign(e,{onResize:{resizeCallback:a,options:n,running:i}}),t.modifiers&&t.modifiers.quiet||a()},unbind:function(e){if(e.onResize){var t=e.onResize,r=t.resizeCallback,n=t.options;window.removeEventListener("resize",r,n),delete e.onResize}}}},props:{transition:{type:String,default:"menu-transition"},origin:{type:String,default:void 0},allowOverflow:{type:Boolean,default:!1},rtl:{type:Boolean,default:!1},minWidth:{type:[Number,String],default:void 0},maxWidth:{type:[Number,String],default:void 0},maxHeight:{type:[Number,String],default:"auto"},zIndex:{type:Number,default:void 0},bottomSheet:{type:Boolean,default:!1}},data:function(){return{resizeTimeout:0,defaultOffset:8}},computed:{styles:function(){return{maxHeight:this.calculedMenuMaxHeight,minWidth:this.calculedMenuWidth,maxWidth:this.calculedMaxWidth,top:this.calculedTop,left:this.calculedLeft,transformOrigin:this.detectedOrigin,zIndex:this.zIndex||this.activeZIndex}},calculedMenuMaxHeight:function(){return V(this.maxHeight)},calculedMaxWidth:function(){return V(this.maxWidth)},calculedMenuWidth:function(){if(this.minWidth)return V(this.minWidth);var e=Math.min(this.dimensions.activator.width,Math.max(this.pageWidth-24,0)),t=(parseInt(this.calculedMaxWidth)===1*this.calculedMaxWidth?this.calculedMaxWidth:parseInt((this.calculedMaxWidth||"").split("px")[0]))||e;return V(Math.min(t,e))},calculedLeft:function(){var e=Math.max(this.dimensions.content.width,parseFloat(this.calculedMenuWidth));return this.calcLeft(e)||"0"},calculedTop:function(){return this.calcTop()||"0"},detectedOrigin:function(){return this.detectOrigin(this.calculedLeft,this.calculedTop)}},mounted:function(){this.isActive&&this.callActivate()},methods:{activate:function(){var e=this;this.updateDimensions(),requestAnimationFrame(function(){e.startTransition().then(function(){e.$emit("transitionEnd")})})},callDeactivate:function(){this.isContentActive=!1},onResize:function(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(this.updateDimensions,100))},genTransition:function(){return this.$createElement("transition",{props:{name:this.transition}},[this.genContent()])},genContent:function(){var e={attrs:{role:this.$attrs.role||"menu"},staticClass:"vd-menu__content",class:J(J({},this.contentClass&&a({},this.contentClass,!0)),{},{"vd-menu__content--active":this.isActive,"vd-menu__content--fixed":this.activatorFixed,"vd-menu__content--bottomsheet":this.bottomSheet}),style:this.styles,directives:[{name:"show",value:this.isContentActive}],ref:"content",on:{click:function(e){return e.stopPropagation()}}};return this.$createElement("div",e,[this.hasContent&&this.getContentSlot()])}},render:function(e){var t=this;return e("div",{staticClass:"vd-menu",class:{"menu--attached":this.isAttached},directives:[{arg:"500",name:"resize",value:this.onResize}]},[!this.activator&&this.genActivator(),this.showLazyContent(function(){return[t.genTransition()]})])}};function ee(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function te(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?ee(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function re(e){return Boolean(e)&&Boolean(e.match(/^(#|(rgb|hsl)a?\()/))}var rt={props:{color:{type:String}}
2,methods:{setBackgroundColor:function(e,t){return re(e)?t?te(te({},t),{},{style:te(te({},t.style),{},{"background-color":"".concat(e),"border-color":"".concat(e)})}):{"background-color":"".concat(e),"border-color":"".concat(e)}:t},setTextColor:function(e,t){return re(e)?t?te(te({},t),{},{style:te(te({},t.style),{},{color:"".concat(e)})}):{color:"".concat(e)}:t}}},ne={close:{path:"M193.94 256L296.5 153.44l21.15-21.15c3.12-3.12 3.12-8.19 0-11.31l-22.63-22.63c-3.12-3.12-8.19-3.12-11.31 0L160 222.06 36.29 98.34c-3.12-3.12-8.19-3.12-11.31 0L2.34 120.97c-3.12 3.12-3.12 8.19 0 11.31L126.06 256 2.34 379.71c-3.12 3.12-3.12 8.19 0 11.31l22.63 22.63c3.12 3.12 8.19 3.12 11.31 0L160 289.94 262.56 392.5l21.15 21.15c3.12 3.12 8.19 3.12 11.31 0l22.63-22.63c3.12-3.12 3.12-8.19 0-11.31L193.94 256z",viewBox:"0 0 320 512"},calendarAlt:{path:"M400 64h-48V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H128V12c0-6.6-5.4-12-12-12h-8c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM48 96h352c8.8 0 16 7.2 16 16v48H32v-48c0-8.8 7.2-16 16-16zm352 384H48c-8.8 0-16-7.2-16-16V192h384v272c0 8.8-7.2 16-16 16zM148 320h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 96h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-96 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm192 0h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12z",viewBox:"0 0 448 512"},chevronLeft:{path:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z",viewBox:"0 0 24 24"},chevronRight:{path:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z",viewBox:"0 0 24 24"}};function ie(){for(var e=arguments,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=e[i];return c.default.extend({mixins:r})}function oe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?oe(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var se=ie(rt).extend({name:"VDIcon",inheritAttrs:!1,props:{size:{type:[Number,String]},disabled:{type:Boolean,default:!1}},computed:{hasClickListener:function(){return Boolean(this.$listeners.click)}},methods:{getIconName:function(){return this.$slots.default?this.$slots.default[0].text&&this.$slots.default[0].text.trim():""},getIcon:function(){var e=this.getIconName();return ne[e]||e},getDefaultData:function(){return{staticClass:"vd-icon",class:{"vd-icon--disabled":this.disabled,"vd-icon--link":this.hasClickListener},attrs:ae({"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0},this.$attrs),on:this.$listeners}},renderSvgIcon:function(e,t){var r=this.hasClickListener?"button":"span",n=V(this.size),i=ae(ae({},this.getDefaultData()),{},{style:ae({},n&&{fontSize:n,height:n,width:n})}),a={attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:e.viewBox,height:this.size||16,width:this.size||16,role:"img","aria-hidden":!0,"data-icon":this.getIconName()}};return t(r,this.setTextColor(this.color,i),[t("svg",a,[t("path",{attrs:{fill:"currentColor",d:e.path}})])])}},render:function(e){var t=this.getIcon();return this.renderSvgIcon(t,e)}}),ce=ie(rt).extend({name:"VDPickerCustomInput",inject:["VDPicker"],props:{clearable:{type:Boolean},closeOnClickOutside:{type:Boolean,default:!0},color:{type:String},date:{type:[Object,Date,String]},disabled:{type:Boolean,default:!1},id:{type:String},isDateDefined:{type:Boolean,default:!1},isMenuActive:{type:Boolean,default:!1},name:{type:String},noCalendarIcon:{type:Boolean,default:!1},placeholder:{type:String},tabindex:{type:[String,Number]}},computed:{classes:function(){return{"vd-picker__input--disabled":this.disabled,"vd-picker__input--is-active":this.isMenuActive,"vd-picker__input--no-date":!this.isDateDefined}},computedColor:function(){return this.disabled?"":this.isMenuActive?this.color:""},isDirty:function(){return this.isDateDefined}},methods:{onKeyDown:function(e){this.$emit("keydown",e)},clearableCallback:function(){this.$emit("clearDate")},genCalendarIcon:function(){var e=[];this.VDPicker.$slots["input-icon"]?e.push(this.VDPicker.$slots["input-icon"]):e.push(this.$createElement(se,{props:{disabled:this.disabled}},["calendarAlt"]));var t=this.$createElement("div",{staticClass:"vd-picker__input-icon__wrapper"},e);return this.$createElement("div",{staticClass:"vd-picker__input-icon"},[t])},genInput:function(){return this.$createElement("input",{attrs:{id:this.id,name:this.name,disabled:this.disabled,"aria-disabled":this.disabled,placeholder:this.placeholder,tabindex:this.tabindex,role:"text",type:"text",readonly:!0,"aria-readonly":!0},domProps:{value:this.date},on:{keydown:this.onKeyDown},ref:"input"})}
2,genClearIcon:function(){var e=this,t=this.isDirty?"close":"",r={attrs:{"aria-label":"clearable icon",color:this.color,disabled:this.disabled},on:{click:function(t){t.preventDefault(),t.stopPropagation(),e.clearableCallback()},mouseup:function(e){e.preventDefault(),e.stopPropagation()}}},n=this.$createElement("div",{staticClass:"vd-picker__input-clear__icon"},[this.$createElement(se,r,t)]);return this.$createElement("div",{staticClass:"vd-picker__input-clear"},[n])}},render:function(e){return e("div",this.setTextColor(this.computedColor,{staticClass:"vd-picker__input",class:this.classes}),[!this.noCalendarIcon&&this.genCalendarIcon(),this.genInput(),this.clearable&&this.genClearIcon()])}}),ue=ie(rt,B).extend({name:"VDOverlay",props:{absolute:{type:Boolean,default:!1},color:{type:String,default:"rgba(93, 106, 137)"},opacity:{type:[Number,String],default:.84},value:{default:!0},zIndex:{type:[Number,String],default:void 0}},computed:{classes:function(){return{"vd-overlay--absolute":this.absolute,"vd-overlay--active":this.isActive}},styles:function(){return{zIndex:this.zIndex}},computedOpacity:function(){return Number(this.isActive?this.opacity:0)},overlayInner:function(){var e=this.setBackgroundColor(this.color,{staticClass:"vd-overlay__inner",style:{opacity:this.computedOpacity}});return this.$createElement("div",e)}},methods:{genContent:function(){return this.$createElement("div",{staticClass:"vd-overlay__content"},this.$slots.default)}},render:function(e){var t=[this.overlayInner];return this.isActive&&t.push(this.genContent()),e("div",{staticClass:"vd-overlay",class:this.classes,style:this.styles},t)}}),dt=c.default.extend(ue),le=c.default.extend({name:"Overlayable",props:{overlayColor:{type:String,default:void 0},overlayOpacity:{type:[Number,String],default:void 0}},data:function(){return{overlay:void 0}},beforeDestroy:function(){this.removeOverlay()},methods:{scrollListener:function(e){if("keydown"===e.type){if(["INPUT","TEXTAREA","SELECT"].includes(e.target.tagName)||e.target.isContentEditable)return;var t=[C.up,C.pageup],r=[C.down,C.pagedown];if(t.includes(e.keyCode))e.deltaY=-1;else{if(!r.includes(e.keyCode))return;e.deltaY=1}}(e.target===this.overlay||"keydown"!==e.type&&e.target===document.body||this.checkPath(e))&&e.preventDefault()},hasScrollbar:function(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e);return["auto","scroll"].includes(t.overflowY)&&e.scrollHeight>e.clientHeight},shouldScroll:function(e,t){return 0===e.scrollTop&&t<0||e.scrollTop+e.clientHeight===e.scrollHeight&&t>0},isInside:function(e,t){return e===t||null!==e&&e!==document.body&&this.isInside(e.parentNode,t)},checkPath:function(e){var t=e.path||this.composedPath(e),r=e.deltaY;if("keydown"===e.type&&t[0]===document.body){var n=this.$refs.dialog,i=window.getSelection()&&window.getSelection().anchorNode;return!(n&&this.hasScrollbar(n)&&this.isInside(i,n))||this.shouldScroll(n,r)}for(var a=0;a<t.length;a++){var o=t[a];if(o===document)return!0;if(o===document.documentElement)return!0;if(o===this.$refs.content)return!0;if(this.hasScrollbar(o))return this.shouldScroll(o,r)}return!0},composedPath:function(e){if(e.composedPath)return e.composedPath();for(var t=[],r=e.target;r;){if(t.push(r),"HTML"===r.tagName)return t.push(document),t.push(window),t;r=r.parentElement}return t},hideScroll:function(){window.addEventListener("wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener)},showScroll:function(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)},createOverlay:function(){var e=new dt({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});e.$mount();var t=document.querySelector("#app")||document.querySelector("body"),r=this.absolute?this.$el.parentNode:t;r&&r.insertBefore(e.$el,r.firstChild),this.overlay=e},genOverlay:function(){var e=this;return this.hideScroll(),this.overlay||this.createOverlay(),requestAnimationFrame(function(){e.overlay&&(void 0!==e.activeZIndex?e.overlay.zIndex=String(e.activeZIndex-1):e.$el&&(e.overlay.zIndex=Y(e.$el)),e.overlay.value=!0)}),!0},removeOverlay:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.overlay&&(function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,function i(a){r(a),e.removeEventListener(t,i,n)},n)}(this.overlay.$el,"transitionend",function(){e.overlay&&e.overlay.$el&&e.overlay.$el.parentNode&&!e.overlay.value&&(e.overlay.$el.parentNode.removeChild(e.overlay.$el),e.overlay.$destroy(),e.overlay=null)}),this.overlay.value=!1),t&&this.showScroll()}}}),de=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}}(e,t)||K(e,t)||function(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},pe=D(function(e,t){e.exports=function(e,t,r){var n=t.prototype,i=n.format;r.en.ordinal=function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"},n.format=function(e){var t=this,r=this.$locale(),n=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|gggg|Do|X|x|k{1,2}|S/g,function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return r.ordinal(t.$D);case"gggg":return t.weekYear();case"wo":return r.ordinal(t.week(),"W");case"w":case"ww":return n.s(t.week(),"w"===e?1:2,"0");case"k":case"kk":return n.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();default:return e}});return i.bind(this)(a)}}}),fe=D(function(e,t){e.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}),he=D(function(e,t){e.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}),me=D(function(e,t){e.exports=function(e,t,r){t.prototype.isToday=function(){var e=r();return this.format("YYYY-MM-DD")===e.format("YYYY-MM-DD")}}}),ye=D(function(e,t){var r,n;e.exports=(r="month",n="quarter",function(e,t){var i=t.prototype;i.quarter=function(e){return this.$utils().u(e)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(e-1))};var a=i.add;i.add=function(e,t){return e=Number(e),this.$utils().p(t)===n?this.add(3*e,r):a.bind(this)(e,t)};var o=i.startOf;i.startOf=function(e,t){var i=this.$utils(),a=!!i.u(t)||t;if(i.p(e)===n){var s=this.quarter()-1;return a?this.month(3*s).startOf(r).startOf("day"):this.month(3*s+2).endOf(r).endOf("day")}return o.bind(this)(e,t)}})}),ve=D(function(e,t){e.exports=function(e,t,r){var n=(new Date).getTimezoneOffset(),i=t.prototype;r.utc=function(e,r){return new t({date:e,utc:!0,format:r})},i.utc=function(){return r(this.toDate(),{locale:this.$L,utc:!0})},i.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var a=i.parse;i.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var o=i.init;i.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var s=i.utcOffset;i.utcOffset=function(e){var t=this.$utils().u;if(t(e))return this.$u?0:t(this.$offset)?s.call(this):this.$offset;var r,i=Math.abs(e)<=16?60*e:e;return 0!==e?(r=this.local().add(i+n,"minute")).$offset=i:r=this.utc(),r};var c=i.format;i.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,t)},i.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+n;return this.$d.valueOf()-6e4*e},i.isUTC=function(){return!!this.$u},i.toISOString=function(){return this.toDate().toISOString()},i.toString=function(){return this.toDate().toUTCString()}}}),ge=D(function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,r=this.$W,n=(r<t?r+7:r)-t;return this.$utils().u(e)?n:this.subtract(n,"day").add(e,"day")}}}),_e=D(function(e,t){var r,n;e.exports=(r="week",n="year",function(e,t){var i=t.prototype;i.week=function(e){if(void 0===e&&(e=null),null!==e)return this.add(7*(e-this.week()),"day");var t=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=this.startOf(n).add(1,n).date(t),a=this.endOf(r);if(i.isBefore(a))return 1}var o=this.startOf(n).date(t).startOf(r).subtract(1,"millisecond"),s=this.diff(o,r,!0);return s<0?this.startOf("week").week():Math.ceil(s)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}})});function be(){return E[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"date"]}function Ee(e,t){var r=e.regexText,n=e.startDate,i=e.endDate,a=r.replace(I,"".concat(n).concat(t?"|":"")).replace(I,"".concat(i).concat(t?"|":""));return t?a.split("|"):a}function we(e){return 3*e}function Ae(e){var t=e.date,r=e.min,n=e.max,i=e.type,a=void 0===i?"date":i,o=e.allowedFn,s=t.format(be(a));return(!o||o(s))&&(!r||Oe(s,r,a)||Ie(s,r,a))&&(!n||Oe(s,n,a)||Se(s,n,a))}function Te(e){var t=e.date,r=e.type,n=void 0===r?"date":r,i=e.locale;return Oe(Pe({date:t,locale:i,format:be(n)}),Pe({date:void 0,locale:i,format:be(n)}),"quarter"===n?"month":n)}function Oe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"date";return(0,l.default)(e,be(r)).isSame((0,l.default)(t,be(r)),r)}function Se(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";if("year"===r)return Boolean(t)&&e<(0,l.default)(t,"YYYY-MM-DD").get(r);var n=l.default.isDayjs(e)?e:(0,l.default)(e).startOf("day");return Boolean(t)&&n.isBefore((0,l.default)(t).startOf("day"),r)}function Ie(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";if("year"===r)return Boolean(t)&&e>(0,l.default)(t,"YYYY-MM-DD").get(r);var n=l.default.isDayjs(e)?e:(0,l.default)(e).startOf("day");return Boolean(t)&&n.isAfter((0,l.default)(t).startOf("day"),r)}function Ce(e,t,r){return Ie(e,t)&&Se(e,r)}function Ne(e){var t=e.date,r=e.locale,n=void 0===r?{lang:d}:r,a=e.type;return"year"===(void 0===a?"date":a)?(0,l.default)(t).utc():(0,l.default)(t).locale(n.lang)}function Pe(e){var t=e.date,r=e.locale,n=e.format;return Ne({date:t,locale:r}).format(n)}function Re(e){var t=e.year,r=e.month;return Ne({locale:e.locale}).year(t).month(r).startOf("month")}function Le(e){var t=e.startDate,r=e.endDate,n=e.locale,i=e.interval,a=void 0===i?"day":i,o=Ne({date:t,locale:n}),s=Ne({date:r,locale:n}).diff(o,a);return G(Array(s+1).keys()).map(function(e){return o.add(e,a)})}function De(e){var t=e.headerFormat,r=e.locale,n=e.date,i=e.range,a=e.rangeHeaderText;if(i&&a){var o=ke({dates:n,locale:r,format:t}).split(" ~ "),s=de(o,2),c=Ee({regexText:a,startDate:s[0],endDate:s[1]},!0),l=de(c,2),u=l[0],d=l[1];return[u.trim(),d.trim()]}return n?Pe({date:n,locale:r,format:t}):"--"}function xe(e){var t=e.date,r=e.type,n=e.locale;if(t)return Pe({date:t,locale:n,format:be(r)})}function ke(e){var t=e.dates,r=void 0===t?{}:t,n=e.locale,i=e.format,a=r.start,o=r.end;return a||o?!a&&o?"__ ~ ".concat(Ne({date:o,locale:n}).startOf("day").format(i)):a&&!o?"".concat(Ne({date:a,locale:n}).startOf("day").format(i)," ~ __"):"".concat(Ne({date:a,locale:n}).startOf("day").format(i)," ~ ").concat(Ne({date:o,locale:n}).startOf("day").format(i)):"__ ~ __"}l.default.extend(pe),l.default.extend(fe),l.default.extend(he),l.default.extend(me),l.default.extend(ye),l.default.extend(ve),l.default.extend(ge),l.default.extend(_e);var Me=ie(rt).extend({name:"VDPickerControls",props:{pickerDate:{type:Object,required:!0},transitionName:{type:String},color:{type:String},mode:{type:String,default:"date"},min:{type:[String,Number,Date]},max:{type:[String,Number,Date]}},computed:{monthFormatted:function(){return this.pickerDate.getMonthFormatted()},yearFormatted:function(){return this.pickerDate.getYearFormatted()},isPreviousDateDisabled:function(){var e=["month","quarter"].includes(this.mode),t=parseInt(this.yearFormatted,10)-1;return Se(e?t:"".concat(this.yearFormatted,"-").concat(this.pickerDate.month),this.min,e?"year":"month")},isNextDateDisabled:function(){var e=["month","quarter"].includes(this.mode),t=parseInt(this.yearFormatted,10)+1;return Ie(e?t:"".concat(this.yearFormatted,"-").concat(this.pickerDate.month+2),this.max,e?"year":"month")}},methods:{onNavigationClick:function(e){this.$emit("on-navigation-click",e)},genPrevButton:function(){var e=this,t=this.$createElement(se,"chevronLeft");return this.$createElement("button",{staticClass:"vd-picker__controls-prev",attrs:{disabled:this.isPreviousDateDisabled,type:"button"},on:{click:function(){return e.onNavigationClick("prev")}}},[t])},genNextButton:function(){var e=this,t=this.$createElement(se,"chevronRight");return this.$createElement("button",{staticClass:"vd-picker__controls-next",attrs:{disabled:this.isNextDateDisabled,type:"button"},on:{click:function(){return e.onNavigationClick("next")}}},[t])},genSelectors:function(){return this.$createElement("div",{staticClass:"vd-picker__controls-wrapper"},["date"===this.mode&&this.genMonthSelector(),this.genYearSelector()])},genChildrenSelectors:function(e){var t=this,r=e.value,n=e.key,i=e.type;return this.$createElement("div",this.setTextColor(this.color,{key:n,staticClass:"vd-picker__controls-label"}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return t.$emit("update-mode",i)}}},[r])])},genMonthSelector:function(){var e=this;return this.$createElement("transition-group",{staticClass:"vd-picker__controls-month",props:{name:this.transitionName,tag:"span"}},[this.pickerDate.month].map(function(t){return e.genChildrenSelectors({value:e.monthFormatted,key:t,type:"month"})}))},genYearSelector:function(){var e=this;return this.$createElement("transition-group",{staticClass:"vd-picker__controls-year",class:{"vd-picker__controls-year--center":["month","quarter"].includes(this.mode)},props:{name:this.transitionName,tag:"span"}},[this.pickerDate.year].map(function(t){return e.genChildrenSelectors({value:e.yearFormatted,key:t,type:"year"})}))}},render:function(e){return e("div",{staticClass:"vd-picker__controls"},[this.genPrevButton(),this.genSelectors(),this.genNextButton()])}});function Fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};
2r%2?Fe(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var je=ie(rt).extend({name:"VDPickerHeader",props:{formattedHeaderYear:{type:String},formattedHeaderDate:{type:[Array,String]},color:{type:String},mode:{type:String},mutableDate:{type:[String,Object]},range:{type:Boolean},transitionName:{type:String},type:{tpye:Boolean}},computed:{classes:function(){return a({"vd-picker-header--range":this.range},"vd-picker-header--".concat(this.type),this.type)},year:function(){return this.mutableDate?this.formattedHeaderYear:"-"},dateFormatted:function(){return this.formattedHeaderDate},isDateVisible:function(){return!this.range&&"year"!==this.type}},methods:{genYear:function(){var e=this,t=this.$createElement("span",{staticClass:"vd-picker-header__year-button",on:{click:function(){return e.$emit("update-mode","year")}}},[this.year]),r={staticClass:"vd-picker-header__year",class:{"vd-picker-header__year--active":"year"===this.mode}};return this.$createElement("div",r,[t])},genDate:function(){var e=this,t=this.genTransitionGroup({date:this.dateFormatted,isActive:"year"!==this.mode,onClick:function(){return e.$emit("update-mode","date")}});return this.$createElement("div",{staticClass:"vd-picker-header__wrap"},[t])},genRangeDate:function(){var e=this.genTransitionGroup({date:this.dateFormatted[0],isActive:Boolean(this.mutableDate.start)}),t=this.genTransitionGroup({date:this.dateFormatted[1],isActive:Boolean(this.mutableDate.end)});return this.$createElement("div",{staticClass:"vd-picker-header__wrap"},[e,t])},genTransitionGroup:function(e){var t=this,r=e.date,n=e.isActive,i=e.onClick;return this.$createElement("transition-group",{staticClass:"vd-picker-header__date",class:{"vd-picker-header__date--active":n},props:{name:this.transitionName,tag:"div"}},[r].map(function(e){return function(e){return t.$createElement("span",{staticClass:"vd-picker-header__wrap-button",key:e,on:Ue({},i&&{click:i})},[e])}(e)}))}},render:function(e){return e("div",this.setBackgroundColor(this.color,{staticClass:"vd-picker-header",class:this.classes}),[!this.range&&this.genYear(),this.isDateVisible&&this.genDate(),this.range&&this.genRangeDate()])}});function Be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?Be(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Ve=ie(rt,R).extend({name:"VDPickerPresets",props:{rangePresets:{type:Array},mutableDate:{type:Object},minDate:{type:[String,Number,Date]},maxDate:{type:[String,Number,Date]},color:{type:String}},computed:{presetsFormatted:function(){var e=this;if(this.rangePresets)return this.rangePresets.map(function(t){return He(He({},t),{},{availableDates:(r={dates:t.dates,minDate:e.minDate,maxDate:e.maxDate,locale:e.currentLocale},n=r.dates,a=void 0===n?{}:n,o=r.minDate,s=r.maxDate,c=r.locale,d=a.start,u=a.end,f=o||Ne({locale:c}).year(1900),h=s||Ne({locale:c}).year(3e3),Le({startDate:d,endDate:u,locale:c}).filter(function(e){return e.isSameOrAfter(f,"day")&&e.isSameOrBefore((0,l.default)(h,"day"))}))});var r,n,a,o,s,c,d,u,f,h}).splice(0,6)}},methods:{isPresetSelected:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).availableDates,t=void 0===e?[]:e;return!(0===t.length||!this.mutableDate)&&Oe(t[0],this.mutableDate.start)&&Oe(t[t.length-1],this.mutableDate.end)},isPresetValid:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).availableDates,t=void 0===e?[]:e;return!!this.mutableDate&&t.length>0},setPresetDates:function(e){var t=e.availableDates;this.isPresetSelected({availableDates:t})||this.$emit("update-range",{start:t[0],end:t[t.length-1]})},genWrapper:function(){return this.$createElement("div",{staticClass:"vd-picker-preset
2s__wrapper"},this.presetsFormatted.map(this.genButton))},genButton:function(e,t){var r=this,n=this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"vd-picker-preset__effect"})),i=this.$createElement("div",{staticClass:"vd-picker-preset__name",domProps:{innerHTML:e.name}});return this.$createElement("button",{key:t,staticClass:"vd-picker-preset",class:{"vd-picker-preset--selected":this.isPresetSelected(e),"vd-picker-preset--disabled":!this.isPresetValid(e)},attrs:{type:"button"},on:{click:function(){return r.setPresetDates(e)}}},[n,i])}},render:function(e){if(this.presetsFormatted)return e("div",{staticClass:"vd-picker-presets"},[this.genWrapper()])}});function ze(e){var t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:function(e){return function(e,t){var r=e.changedTouches[0];t.touchstartX=r.clientX,t.touchstartY=r.clientY,t.start&&t.start(Object.assign(e,t))}(e,t)},touchend:function(e){return function(e,t){var r=e.changedTouches[0];t.touchendX=r.clientX,t.touchendY=r.clientY,t.end&&t.end(Object.assign(e,t)),function(e){var t=e.touchstartX,r=e.touchendX,n=e.touchstartY,i=e.touchendY;e.offsetX=r-t,e.offsetY=i-n,Math.abs(e.offsetY)<.5*Math.abs(e.offsetX)&&(e.left&&r<t-16&&e.left(e),e.right&&r>t+16&&e.right(e)),Math.abs(e.offsetX)<.5*Math.abs(e.offsetY)&&(e.up&&i<n-16&&e.up(e),e.down&&i>n+16&&e.down(e))}(t)}(e,t)},touchmove:function(e){return function(e,t){var r=e.changedTouches[0];t.touchmoveX=r.clientX,t.touchmoveY=r.clientY,t.move&&t.move(Object.assign(e,t))}(e,t)}}}var Ye={inserted:function(e,t,r){var n=t.value,i=n.parent?e.parentElement:e,a=n.options||{passive:!0};if(i){var o=ze(t.value);i._touchHandlers=Object(i._touchHandlers),i._touchHandlers[r.context._uid]=o,Object.keys(o).forEach(function(e){i.addEventListener(e,o[e],a)})}},unbind:function(e,t,r){var n=t.value.parent?e.parentElement:e;if(n&&n._touchHandlers){var i=n._touchHandlers[r.context._uid];
2Object.keys(i).forEach(function(e){n.removeEventListener(e,i[e])}),delete n._touchHandlers[r.context._uid]}}};function qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var $e=ie(rt,R).extend({name:"VDPickerTableDay",inject:["VDPicker"],props:{allowedDates:{type:Function},color:{type:String},day:{type:Object,required:!0},maxDate:{type:[String,Number,Date]},minDate:{type:[String,Number,Date]},mutableDate:{type:[String,Object]},range:{type:Boolean},rangeCurrentHoveredDay:{type:String,default:void 0}},computed:{classes:function(){return{"vd-picker__table-day--selected":this.isSelected&&!this.isDisabled,"vd-picker__table-day--between":this.range&&this.isBetween,"vd-picker__table-day--in-range":this.range&&this.isInRange,"vd-picker__table-day--first":this.range&&this.firstInRange,"vd-picker__table-day--last":this.range&&this.lastInRange&&Boolean(this.mutableDate.end),"vd-picker__table-day--select-start":this.range&&!this.mutableDate.start,"vd-picker__table-day--select-end":this.range&&this.mutableDate.start&&!this.mutableDate.end,"vd-picker__table-day--disabled":this.isDisabled}},formattedDay:function(){return this.day.format("D")},isCurrent:function(){return Te({date:this.day,type:"date",locale:this.currentLocale})},isSelected:function(){return this.range?[].concat(G(this.mutableDate.start?[this.mutableDate.start.startOf("day").unix()]:[]),G(this.mutableDate.end?[this.mutableDate.end.startOf("day").unix()]:[])).includes(this.day.unix()):this.mutableDate&&this.mutableDate.startOf("day").unix()===this.day.unix()},isBetween:function(){return!(!this.mutableDate.start&&!this.mutableDate.end)&&Ce(this.day,this.mutableDate.start,this.mutableDate.end)},isInRange:function(){return!!this.rangeCurrentHoveredDay&&(Se(this.rangeCurrentHoveredDay,this.mutableDate.end)?Ce(this.day,this.rangeCurrentHoveredDay,this.mutableDate.end):Ce(this.day,this.mutableDate.start,this.rangeCurrentHoveredDay))},firstInRange:function(){return this.mutableDate.start&&this.mutableDate.start.startOf("day").unix()===this.day.unix()},lastInRange:function(){return this.mutableDate.end&&this.mutableDate.end.startOf("day").unix()===this.day.unix()},isDateAllowed:function(){return Ae({date:this.day,min:this.minDate,max:this.maxDate,allowedFn:this.allowedDates})},isDisabled:function(){return!this.isDateAllowed},scopedSlotDay:function(){return z(this.VDPicker,"day")}},methods:{onDayClick:function(e){this.$emit("select-day",e)},genWrapper:function(){return this.$createElement("div",{staticClass:"vd-picker__table-day__wrapper",attrs:{"data-date":this.day.format("YYYY-MM-DD")}},[this.isCurrent&&this.genDayCurrent(),this.genDayEffect(),this.genDayText()])},genDayCurrent:function(){return this.$createElement("span",{staticClass:"vd-picker__table-day__current"})},genDayEffect:function(){return this.$createElement("span",{staticClass:"vd-picker__table-day__effect"})},genDayText:function(){if(!this.scopedSlotDay)return this.$createElement("span",{staticClass:"vd-picker__table-day__text"},[this.formattedDay]);var e={formattedDay:this.formattedDay,isCurrent:this.isToday,isSelected:this.isSelected&&!this.isDisabled,isBetween:this.range&&this.isBetween,isInRange:this.range&&this.isInRange,isFirstRangeDay:this.range&&this.firstInRange,isLastRangeDay:this.range&&this.lastInRange&&Boolean(this.mutableDate.end),isFirstSelectedDay:this.range&&!this.mutableDate.start,isLastSelectedDay:this.range&&this.mutableDate.start&&!this.mutableDate.end,isDisabled:this.isDisabled},t=this.VDPicker.$scopedSlots.day(function(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?qe(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({day:this.formattedDay},e));return this.$createElement("span",{staticClass:"vd-picker__table-day__text"},[t])}},render:function(e){var t=this,r={staticClass:"vd-picker__table-day",class:this.classes,attrs:{type:"button",disabled:this.isDisabled,"data-date":this.day.format("YYYY-MM-DD")},on:{click:function(){return t.onDayClick(t.day)}}};return e("button",this.setTextColor(this.color,r),[this.genWrapper()])}}),We=ie(rt).extend({name:"VDPickerTableDate",directives:{Touch:Ye},props:{allowedDates:{type:Function},color:{type:String},pickerDate:{type:[String,Object]},isRangeSelected:{type:Boolean},maxDate:{type:[String,Number,Date]},minDate:{type:[String,Number,Date]},mutableDate:{type:[String,Object]},range:{type:Boolean},transitionName:{type:String}},data:function(){return{rangeCurrentHoveredDay:void 0}},computed:{weekDays:function(){return this.pickerDate.getWeekDays()},spaceBeforeFirstDay:function(){return G(Array(this.pickerDate.getWeekStart()).keys())}},watch:{rangeCurrentHoveredDay:function(e){e&&this.$emit("update-hovered-day",e)}},methods:{onDayClick:function(e){this.rangeCurrentHoveredDay=void 0,this.$emit("select-date",e)},handleMouseMove:function(e){var t=e.target,r="string"==typeof t.className&&"vd-picker__table-days"===t.className.split(" ")[0];if(this.range&&!this.isRangeSelected&&!r){var n=t.dataset.date;if(!n)return this.handleMouseMove({target:t.parentNode});var i=n===this.rangeCurrentHoveredDay;n&&!i&&(this.rangeCurrentHoveredDay=t.dataset.date)}},genWeek:function(){var e=this;return this.$createElement("div",{staticClass:"vd-picker__table-week"},this.weekDays.map(function(t,r){return e.$createElement("div",{key:r,domProps:{innerHTML:t},staticClass:"vd-picker__table-weekday"})}))},genDaysWrapper:function(){return this.$createElement("transition-group",{staticClass:"vd-picker__table-days__wrapper",props:{name:this.transitionName,tag:"div"}},[this.pickerDate].map(this.genDays))},genDays:function(e){var t=this;return this.$createElement("div",{staticClass:"vd-picker__table-days",key:e.month,on:{mousemove:this.handleMouseMove}},[this.spaceBeforeFirstDay.map(function(e){return t.$createElement("div",{staticClass:"vd-picker__table-day",key:"space-".concat(e)})}),this.pickerDate.getDays().map(this.genDay)])},genDay:function(e,t){return this.$createElement($e,{key:t,props:{allowedDates:this.allowedDates,color:this.color,day:e,maxDate:this.maxDate,minDate:this.minDate,mutableDate:this.mutableDate,range:this.range,rangeCurrentHoveredDay:this.rangeCurrentHoveredDay,locale:this.currentLocale}
2,on:{"select-day":this.onDayClick}})}},render:function(e){var t=this;return e("div",{staticClass:"vd-picker__table",directives:[{name:"touch",value:{left:function(){return t.$emit("update-month","next")},right:function(){return t.$emit("update-month","prev")}}}],on:{touchstart:function(e){return e.stopPropagation()}}},[this.genWeek(),this.genDaysWrapper()])}}),Ke={name:"VDPickerValidate",mixins:[rt],props:{buttonValidate:{type:String},buttonCancel:{type:String},color:{type:String},range:{type:Boolean},mutableDate:{type:Object}},computed:{isDisabledValidation:function(){return!(!this.range||"object"===x(this.mutableDate)&&Object.values(this.mutableDate).every(function(e){return Boolean(e)}))}},methods:{genButtonCancel:function(){var e=this;return this.$createElement("button",{staticClass:"vd-picker-validate__button vd-picker-validate__button-cancel",attrs:{type:"button"},on:{click:function(){return e.$emit("cancel")}}},[this.genButtonEffect(),this.genButtonText(this.buttonCancel)])},genButtonValidate:function(){var e=this;return this.$createElement("button",this.setTextColor(this.color,{staticClass:"vd-picker-validate__button vd-picker-validate__button-validate",attrs:{type:"button",disabled:this.isDisabledValidation},on:{click:function(){return e.$emit("validate")}}}),[this.genButtonEffect(),this.genButtonText(this.buttonValidate)])},genButtonEffect:function(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"vd-picker-validate__effect"}))},genButtonText:function(e){return this.$createElement("div",{staticClass:"vd-picker-validate__name",domProps:{innerHTML:e}})}},render:function(e){return e("div",{staticClass:"vd-picker-validate"},[this.genButtonCancel(),this.genButtonValidate()])}};function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qe(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?Ge(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ge(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Xe=ie(rt,R).extend({name:"VDPickerMonths",props:{active:{type:Boolean,default:!1},allowedDates:{type:Function},color:{type:String,default:String},pickerDate:{type:Object,default:Object},max:{type:[String,Number,Date]},min:{type:[String,Number,Date]},mutableDate:{type:Object,default:void 0},range:{type:Boolean,default:!1},transitionName:{type:String,default:String},type:{type:String},visibleYearsNumber:{type:Number,default:10}},computed:{yearFormatted:function(){return this.pickerDate.getYearFormatted()},getMonths:function(){return this.pickerDate.getMonths()}},methods:{isCurrent:function(e){return Te({date:Re({year:this.pickerDate.year,month:e,locale:this.currentLocale}),type:"month",locale:this.currentLocale})},isSelected:function(e){if(this.range||!this.mutableDate)return!1;var t=Re({year:this.pickerDate.year,month:e,locale:this.currentLocale});return Oe(this.mutableDate.format("YYYY-MM"),t.format("YYYY-MM"),"month")},isAllowed:function(e){return Ae({date:Re({year:this.yearFormatted,month:e,locale:this.currentLocale}),min:this.min,max:this.max,type:"month",allowedFn:this.allowedDates})},genTransition:function(){return this.$createElement("transition-group",{staticClass:"vd-picker__months-inner",props:{tag:"div",name:this.transitionName}},[this.pickerDate.year].map(this.genMonthList))},genMonthList:function(e){return this.$createElement("div",{staticClass:"vd-picker__months-list",key:e},[this.getMonths.map(this.genMonthButton)])},genMonthButton:function(e,t){var r=this,n=this.isCurrent(t)&&!this.isSelected(t),i=this.isSelected(t),a=this.$createElement("button",{key:t,staticClass:"vd-picker__months-button",style:Qe(Qe({},n&&{"border-color":this.color}),i&&Qe(Qe({},this.setTextColor("#fff")),this.setBackgroundColor(this.color))),attrs:{type:"button",disabled:!this.isAllowed(t)},on:{click:function(){return r.$emit("input",t,"month")}}},[e]);return this.$createElement("div",{staticClass:"vd-picker__months-button__wrapper"},[a])}},render:function(e){return e("div",{staticClass:"vd-picker__months"},[this.genTransition()])}});function Je(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};
2r%2?Je(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var et=ie(rt,R).extend({name:"VDPickerQuarters",props:{active:{type:Boolean,default:!1},allowedDates:{type:Function},color:{type:String,default:String},pickerDate:{type:Object,default:Object},max:{type:[String,Number,Date]},min:{type:[String,Number,Date]},mutableDate:{type:Object,default:void 0},transitionName:{type:String,default:String}},computed:{getQuarters:function(){return this.pickerDate.getQuarters()}},methods:{isCurrent:function(e){return Te({date:Re({year:this.pickerDate.year,month:e,locale:this.currentLocale}),type:"quarter",locale:this.currentLocale})},isSelected:function(e){if(!this.mutableDate)return!1;var t=Re({year:this.pickerDate.year,month:e,locale:this.currentLocale});return Oe(this.mutableDate.format("YYYY-MM"),t.format("YYYY-MM"),"month")},isAllowed:function(e){return Ae({date:Re({year:this.pickerDate.year,month:e,locale:this.currentLocale}),min:this.min,max:this.max,type:"month",allowedFn:this.allowedDates})},genTransition:function(){return this.$createElement("transition-group",{staticClass:"vd-picker__quarters-inner",props:{tag:"div",name:this.transitionName}},[this.pickerDate.year].map(this.genQuarterList))},genQuarterList:function(e){return this.$createElement("div",{staticClass:"vd-picker__quarters-list",key:e},[this.getQuarters.map(this.genQuarterButton)])},genQuarterButton:function(e,t){var r=this,n=we(t),i=this.isCurrent(n)&&!this.isSelected(n),a=this.isSelected(n),o=this.$createElement("button",{key:t,staticClass:"vd-picker__quarters-button",style:Ze(Ze({},i&&{"border-color":this.color}),a&&Ze(Ze({},this.setTextColor("#fff")),this.setBackgroundColor(this.color))),attrs:{type:"button",disabled:!this.isAllowed(t)},on:{click:function(){return r.$emit("input",t,"quarter")}}},[e]);return this.$createElement("div",{staticClass:"vd-picker__quarters-button__wrapper"},[o])}},render:function(e){return e("div",{staticClass:"vd-picker__quarters"},[this.genTransition()])}});function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?tt(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var it=ie(rt).extend({name:"VDPickerYears",props:{active:{type:Boolean,default:!1},allowedDates:{type:Function},color:{type:String,default:String},mutableDate:{type:Object,default:void 0},pickerDate:{type:Object,default:Object},max:{type:[String,Number,Date]},min:{type:[String,Number,Date]},visibleYearsNumber:{type:Number,default:10},range:{type:Boolean,default:!1}},computed:{yearFormatted:function(){return this.pickerDate.getYearFormatted()},activeYear:function(){if(!this.range)return this.mutableDate&&this.mutableDate.format("YYYY")},getYears:function(){return this.pickerDate.generateYearsRange({activeYear:this.activeYear,visibleYearsNumber:this.visibleYearsNumber,min:this.min,max:this.max})}},watch:{active:{handler:function(e){e&&!this.range&&setTimeout(this.computeScrollPosition)},immediate:!0}},methods:{isCurrent:function(e){return Te({date:Re({year:e,month:0,locale:this.currentLocale}),type:"year",locale:this.currentLocale})},isSelected:function(e){return this.activeYear===String(e)},isAllowed:function(e){return Ae({date:Re({year:e,month:0,locale:this.currentLocale}),min:this.min,max:this.max,type:"year",allowedFn:this.allowedDates})},computeScrollPosition:function(){var e=this.$el.getElementsByClassName("active")[0];this.$el.scrollTop=function(e){var t=e.activeItem,r=e.container,n=e.min,i=e.max;return t?t.offsetTop-r.offsetHeight/2+t.offsetHeight/2:n||i?0:r.scrollHeight/2-r.offsetHeight/2}({activeItem:e,container:this.$el,min:this.min,max:this.max})},genYearButton:function(e){var t=this,r=this.isCurrent(e)&&!this.isSelected(e),n=this.isSelected(e);return this.$createElement("li",{key:e,staticClass:"vd-picker__years-button",class:{active:this.isSelected(e)},style:nt(nt({},r&&{"border-color":this.color}),n&&nt(nt({}
2,this.setTextColor("#fff")),this.setBackgroundColor(this.color))),attrs:{disabled:!this.isAllowed(e)},on:{click:function(){return t.$emit("input",e,"year")}}},[e])}},render:function(e){var t=this;return e("ul",{staticClass:"vd-picker__years"},this.getYears.map(function(e){return t.genYearButton(e)}))}});function ot(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var at=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{lang:d};(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),l.default.locale(n.lang),this.locale=n,this.start=(0,l.default)().year(r).month(t).startOf("month"),this.end=this.start.endOf("month"),this.month=t,this.year=r}return function(e,t,r){t&&ot(e.prototype,t),r&&ot(e,r)}(e,[{key:"getWeekStart",value:function(){return this.start.weekday()}},{key:"getDays",value:function(){return Array.from(Le({startDate:this.start,endDate:this.end,locale:this.locale}))}},{key:"getWeekDays",value:function(){var e=this.locale,t=e.lang,r=e.weekDays,n=G(t.weekdaysShort);return t.weekStart&&1===t.weekStart&&n.push(n.shift()),r||n}},{key:"getMonths",value:function(){return Array.apply(0,Array(12)).map(function(e,t){return(0,l.default)().month(t).format("MMM")})}},{key:"getQuarters",value:function(){return Array.apply(0,Array(4)).map(function(e,t){var r=(0,l.default)().quarter(t+1).startOf("quarter").format("MMMM"),n=(0,l.default)().quarter(t+1).endOf("quarter").format("MMMM");return"".concat(r," - ").concat(n)})}},{key:"getMonthFormatted",value:function(){return this.start.format("MMMM")}},{key:"getYearFormatted",value:function(){return this.start.format("YYYY")}},{key:"generateYearsRange",value:function(e){var t=e.activeYear,r=e.visibleYearsNumber,n=e.min,a=e.max,o=parseInt(t,10)||parseInt((0,l.default)().format("YYYY"),10),s=a?parseInt(a,10):o+r,c=Math.min(s,n?parseInt(n,10):o-r);return G(Array(s-c+1).keys()).map(function(e){return s-e})}}]),e}();function st(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};r%2?st(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ut=ie(rt,le,R).extend({name:"VDPickerAgenda",props:{allowedDates:{type:Function},buttonCancel:{type:String},buttonValidate:{type:String},color:{type:String},date:{type:[Date,Object]},headerFormat:{type:String},fullscreen:{type:Boolean,default:!1},maxDate:{type:[String,Number,Date]},minDate:{type:[String,Number,Date]},name:{type:String},noHeader:{type:Boolean,default:!1},range:{type:Boolean,default:!1},rangeHeaderText:{type:String,default:String},rangePresets:{type:Array,default:void 0},rtl:{type:Boolean,default:!1},type:{type:String,default:"date"},validate:{type:Boolean,default:!1},value:{type:Boolean,default:!1},visibleYearsNumber:{type:Number}},data:function(){return{height:"auto",pickerDate:void 0,mutableDate:void 0,mode:A,transitionDaysName:"slide-h-next",transitionLabelName:"slide-v-next"}},computed:{classes:function(){return{"vd-picker--rtl":this.rtl,"vd-picker--bottomsheet":this.fullscreen,"vd-picker--no-header":this.noHeader,"vd-picker--validate":this.validate,"vd-picker--range":this.range,"vd-picker--range-selecting":this.range&&!this.isRangeSelected}},isRangeSelected:function(){return!!this.range&&"object"===x(this.mutableDate)&&Object.values(this.mutableDate).every(function(e){return Boolean(e)})},formatters:function(){return t=(e={headerFormat:this.headerFormat,locale:this.locale,maxDate:this.maxDate,minDate:this.minDate,mutableDate:this.mutableDate,range:this.range,rangeHeaderText:this.rangeHeaderText}).headerFormat,n=e.maxDate,i=e.minDate,o=e.range,s=e.rangeHeaderText,{formattedHeaderYear:Pe({date:a=e.mutableDate,locale:r=e.locale,format:"YYYY"}),formattedHeaderDate:De({date:a,headerFormat:t,locale:r,range:o,rangeHeaderText:s}),minDate:i,maxDate:n,minMonth:xe({date:i,type:"month",locale:r}),maxMonth:xe({date:n,type:"month",locale:r}),minYear:xe({date:i,type:"year",locale:r}),maxYear:xe({date:n,type:"year",locale:r})};var e,t,r,n,i,a,o,s}},created:function(){this.initAgenda()},beforeDestroy:function(){(0,o.clearAllBodyScrollLocks)()},watch:{value:"initAgenda",date:"initDatesForPicker",type:"updateMode",fullscreen:{handler:function(e){var t=this;this.$nextTick(function(){var i=t.$refs.body;e?((0,o.disableBodyScroll)(i),t.genOverlay()):(t.removeOverlay(!1),(0,o.enableBodyScroll)(i))})},immediate:!0},mode:function(e){var t=this;"year"===e&&this.fullscreen&&((0,o.enableBodyScroll)(this.$refs.body),this.$nextTick(function(){(0,o.disableBodyScroll)(t.$el.querySelector(".vd-picker__years"))}))}},methods:{initAgenda:function(){this.initDatesForPicker(this.date),this.updateMode(this.type)},updateTransitions:function(e){this.transitionDaysName="slide-h-".concat(e),this.transitionLabelName="slide-v-".concat(e)},reOrderSelectedDate:function(e){this.mutableDate&&(Se(e,this.mutableDate.start)?this.mutableDate={start:void 0,end:this.mutableDate.start}:Ie(e,this.mutableDate.end)&&(this.mutableDate={start:this.mutableDate.end,end:void 0}))},selectDate:function(e){if(this.range)return this.isRangeSelected||!this.mutableDate.start&&!this.mutableDate.end?void(this.mutableDate={start:e.clone(),end:void 0}):(this.reOrderSelectedDate(e),void this.emitSelectedDate(ct(ct(ct({},this.mutableDate),this.mutableDate.start&&{end:e.clone()}),this.mutableDate.end&&{start:e.clone()})));var t,r,n=(t=e,r=this.mutableDate,(0,l.default)(t).isAfter((0,l.default)(r))?"next":"prev");this.updateTransitions(n),this.emitSelectedDate(e.clone())},emitSelectedDate:function(e){this.range&&(this.pickerDate=new at(e.end.month(),e.end.year
2(),this.currentLocale)),this.mutableDate=e,this.$emit("selectDate",this.mutableDate)},initDatesForPicker:function(e){var t=Ne({date:this.range?e.end||e.start:e,locale:this.currentLocale});if(Ie(t,this.maxDate)&&(t=Ne({date:this.maxDate,locale:this.currentLocale})),this.range)return this.pickerDate=new at(t.month(),t.year(),this.currentLocale),void(this.mutableDate=e);null==e&&"quarter"===this.type&&(t=t.month(t.quarter())),null!=e&&"quarter"===this.type&&(t=t.month(we(t.month()))),this.pickerDate=new at(t.month(),t.year(),this.currentLocale),this.mutableDate=e&&e.month(t.month()).clone()},changeMonth:function(e){var t=this.pickerDate.month+("prev"===e?-1:1),r=this.pickerDate.year;(t>11||t<0)&&(r+="prev"===e?-1:1,t="prev"===e?11:0),this.updateTransitions(e),this.pickerDate=new at(t,r,this.currentLocale)},changeYear:function(e){var t=this.pickerDate.year+("prev"===e?-1:1),r=this.pickerDate.month;this.updateTransitions(e),this.pickerDate=new at(r,t,this.currentLocale)},updateMode:function(e){this.mode=e},updateSelectedYearMonth:function(e,t){var r=function(e,t,r){return"year"===r?{year:e,month:t.month}:"quarter"===r?{year:t.year,month:we(e)}:{year:t.year,month:e}}(e,this.pickerDate,t),n=r.year,i=r.month;if(this.pickerDate=new at(i,n,this.currentLocale),t===S&&"year"!==this.type){var a="quarter"===this.type?"quarter":"month";return this.updateMode(a)}if("date"===this.type)this.updateMode("date");else{var o=Re({year:this.pickerDate.year,month:this.pickerDate.month,locale:this.currentLocale});this.selectDate(o)}},genTitle:function(){var e=this,t=this.$createElement("p",this.name),r=this.$createElement(se,{on:{click:function(){return e.$emit("close")}}},["close"]);return this.$createElement("div",{staticClass:"vd-picker__title"},[t,this.$createElement("div",{staticClass:"vd-picker__title-close"},[r])])},genHeader:function(){return this.$createElement(je,{props:ct(ct({},this.formatters),{},{color:this.color,mode:this.yearMonthMode,mutableDate:this.mutableDate,range:this.range,transitionName:this.transitionLabelName,type:this.type}),on:{"update-mode":this.updateMode}})},genPresets:function(){return this.$createElement(Ve,{props:{rangePresets:this.rangePresets,mutableDate:this.mutableDate,minDate:this.minDate,maxDate:this.maxDate,color:this.color,locale:this.locale},on:{"update-range":this.emitSelectedDate}})},genBody:function(){var e=[this.mode!==S&&this.genControls(),this.mode===A&&this.genTableDate(),this.mode===T&&this.genMonths(),this.mode===O&&this.genQuarters(),this.mode===S&&this.genYears()];return this.$createElement("div",{staticClass:"vd-picker__body",ref:"body"},e)},genControls:function(){return this.$createElement(Me,{props:{pickerDate:this.pickerDate,transitionName:this.transitionLabelName,color:this.color,min:this.minDate,max:this.maxDate,mode:this.mode},on:{"on-navigation-click":this.mode===A?this.changeMonth:this.changeYear,"update-mode":this.updateMode}})},genTableDate:function(){return this.$createElement(We,{props:{allowedDates:this.allowedDates,color:this.color,pickerDate:this.pickerDate,isRangeSelected:this.isRangeSelected,locale:this.currentLocale,maxDate:this.maxDate,minDate:this.minDate,mutableDate:this.mutableDate,range:this.range,transitionName:this.transitionDaysName},on:{"update-month":this.changeMonth,"update-hovered-day":this.reOrderSelectedDate,"select-date":this.selectDate}})},genMonths:function(){var e=this.formatters,t=e.minMonth,r=e.maxMonth;return this.$createElement(Xe,{props:{active:this.mode===T,allowedDates:this.type===T?this.allowedDates:void 0,color:this.color,locale:this.currentLocale,max:r,min:t,mutableDate:this.mutableDate,pickerDate:this.pickerDate,range:this.range,transitionName:this.transitionDaysName},on:{input:this.updateSelectedYearMonth}})},genQuarters:function(){var e=this.formatters,t=e.minMonth,r=e.maxMonth;return this.$createElement(et,{props:{active:this.mode===O,allowedDates:this.type===O?this.allowedDates:void 0,color:this.color,locale:this.currentLocale,max:r,min:t,mutableDate:this.mutableDate,pickerDate:this.pickerDate,transitionName:this.transitionDaysName},on:{input:this.updateSelectedYearMonth}})},genYears:function(){var e=this.formatters,t=e.minYear,r=e.maxYear;return this.$createElement(it,{props:{active:this.mode===S,allowedDates:this.type===S?this.allowedDates:void 0,color:this.color,max:r,min:t,mutableDate:this.mutableDate,pickerDate:this.pickerDate,range:this.range,visibleYearsNumber:this.visibleYearsNumber},on:{input:this.updateSelectedYearMonth}})},genValidate:function(){var e=this;return this.$createElement(Ke,{props:{buttonValidate:this.buttonValidate,buttonCancel:this.buttonCancel,color:this.color,mutableDate:this.mutableDate,range:this.range},on:{cancel:function(){return e.$emit("close")},validate:function(){return e.$emit("validateDate")}}})}},render:function(e){return e("div",{staticClass:"vd-picker",class:this.classes,ref:"datepicker"},[this.fullscreen&&this.genTitle(),!this.noHeader&&this.genHeader(),this.range&&this.genPresets(),this.genBody(),this.validate&&this.genValidate()])}});function lt(e,t){var r=function(e){var t=e.message,r=e.vm;if(r){if(r.$_alreadyWarned=r.$_alreadyWarned||[],r.$_alreadyWarned.includes(t))return;r.$_alreadyWarned.push(t)}return"[VueDatePicker] ".concat(t)+(r?function(e){if(e._isVue&&e.$parent){for(var t=[],r=0;e;){if(t.length>0){var n=t[t.length-1];if(n.constructor===e.constructor){r++,e=e.$parent;continue}r>0&&(t[t.length-1]=[n,r],r=0)}t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map(function(e,t){return"".concat(0===t?"---\x3e ":" ".repeat(5+2*t)).concat(Array.isArray(e)?"".concat(ft(e[0]),"... (").concat(e[1]," recursive calls)"):ft(e))}).join("\n")}return"\n\n(found in ".concat(ft(e),")")}(r):"")}({message:e,vm:t});null!=r&&console.warn(r)}var pt=/(?:^|[-_])(\w)/g;function ft(e,t){if(e.$root===e)return"<Root>";var r="function"==typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{},n=r.name||r._componentTag,i=r.__file;if(!n&&i){var a=i.match(/([^/\\]+)\.vue$/);n=a&&a[1]}return(n?"<".concat(n.replace(pt,function(e){return e.toUpperCase()}).replace(/[-_]/g,""),">"):"<Anonymous>")+(i&&!1!==t?" at ".concat(i):"")}function ht(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function mt(e){for(var t=arguments,r=1;r<arguments.length;r++){var n=null!=t[r]?t[r]:{};
2r%2?ht(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ht(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var yt={minWidth:"290px",maxWidth:"315px"},vt=t.VueDatePicker=ie(R,L).extend({name:"VDPicker",provide:function(){return{VDPicker:this}},directives:{ClickOutside:F},props:{id:{type:String,default:void 0},name:{type:String,default:"datepicker"},clearable:{type:Boolean,default:!1},validate:{type:Boolean,default:!1},buttonValidate:{type:String,default:void 0},buttonCancel:{type:String,default:void 0},type:{type:String,default:"date"},range:{type:Boolean,default:!1},rangeInputText:{type:String,default:"%d ~ %d"},rangeHeaderText:{type:String,default:void 0},rangePresets:{type:Array,default:void 0},value:{type:[String,Object,Number,Date]},format:{type:String,default:void 0},formatHeader:{type:String,default:void 0},visible:{type:Boolean,default:!1},placeholder:{type:String,default:"YYYY-MM-DD"},color:{type:String,default:"#4f88ff"},contentClass:{type:String,default:""},allowedDates:{type:Function},minDate:{type:[String,Number,Date]},maxDate:{type:[String,Number,Date]},visibleYearsNumber:{type:Number,default:10},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},noHeader:{type:Boolean,default:!1},noCalendarIcon:{type:Boolean,default:!1},fullscreenMobile:{type:Boolean,default:!1},tabindex:{type:[String,Number],default:"0"},rtl:{type:Boolean,default:!1},origin:{type:String,default:void 0},allowOverflow:{type:Boolean,default:!0},attach:{validator:H,default:!1},zIndex:{type:Number,default:1002}},data:function(){return{date:void 0,isMenuActive:!1,isBooted:!1,activator:void 0}},computed:{classes:function(){return{"vd-wrapper--inline":this.inline,"vd-wrapper--disabled":this.disabled,"vd-wrapper--rtl":this.rtl}},componentId:function(){return this.id||"datepicker_".concat("_".concat(Math.random().toString(36).substr(2,9)))},inputFormat:function(){return this.format?this.format:function(){return _[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"date"]}(this.range?"range":this.type)},headerFormat:function(){return this.formatHeader?this.formatHeader:function(){return w[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"date"]}(this.range?"range":this.type)},outputFormat:function(){return be(this.range?"range":this.type)},textsFormat:function(){var e=this.currentLocale.lang,t=e.buttonValidate,r=e.buttonCancel,n=e.rangeHeaderText;return{buttonValidate:this.buttonValidate||t,buttonCancel:this.buttonCancel||r,rangeHeaderText:this.rangeHeaderText||n}},internalDate:{get:function(){return e=this.value,r=(t={range:this.range,locale:this.currentLocale,type:this.type}).locale,i=t.type,t.range?{start:e&&null!=e.start?Ne({date:e.start,locale:r}):void 0,end:e&&null!=e.end?Ne({date:e.end,locale:r}):void 0}:null!=e?Ne({date:e,locale:r,type:i}):void 0;var e,t,r,i},set:function(e){this.date=e}},isDateDefined:function(){var e=!this.range&&this.internalDate,t=this.range&&this.internalDate&&this.internalDate.start&&this.internalDate.end;return Boolean(e)||Boolean(t)},formattedInputDate:function(){return function(e){var t=e.inputFormat,r=e.internalDate,i=e.locale,n=e.rangeInputText,s=e.type;if(e.isDateDefined){if(e.range&&n){var o=ke({dates:r,locale:i,format:t}).split(" ~ "),c=de(o,2);return Ee({regexText:n,startDate:c[0],endDate:c[1]})}var u=r.month(),l="quarter"===s?we(u):u;return Pe({date:r.set("month",l),locale:i,format:t})}}({inputFormat:this.inputFormat,internalDate:this.internalDate,isDateDefined:this.isDateDefined,locale:this.currentLocale,range:this.range,rangeInputText:this.rangeInputText,type:this.type})},isFullScreenMode:function(){return this.fullscreenMobile&&this.isMobile}},watch:{visible:{handler:function(e){this.isMenuActive=e},immediate:!0},isFullScreenMode:function(){var e=this;this.isMenuActive&&(this.hideDatePicker(),setTimeout(function(){e.showDatePicker()},200))}},created:function(){var e,t,r,n,i=this;["no-input"].forEach(function(e){var t,r,n;i.$attrs.hasOwnProperty(e)&&(r=(t={original:e,vm:i}).original,n=t.vm,lt("[REMOVED] '".concat(r,"' has been removed. You can safely omit it."),n))}),this.$attrs.hasOwnProperty("fullscreen-breakpoint")&&(t=(e={original:"fullscreen-mobile",replacement:"mobile-breakpoint",vm:this}).original,r=e.replacement,n=e.vm,lt("[UPGRADE] '".concat(t,"' is deprecated, use '").concat(r,"' instead."),n))},mounted:function(){this.activator=this.$refs.activator},beforeDestroy:function(){this.hideDatePicker(),this.$emit("onDestroy")},methods:{showDatePicker:function(){this.disabled||(this.isMenuActive=!0,this.$emit("onOpen"))},hideDatePicker:function(){this.isMenuActive&&(this.isMenuActive=!1,this.isBooted=!1,(0,o.clearAllBodyScrollLocks)(),this.$emit("onClose"))},changeDate:function(e){this.internalDate=e,this.validate||this.validateDate()},validateDate:function(){var e,t;this.date?(this.$emit("input",(e=this.date,t=this.outputFormat,this.range?{start:e.start.format(t),end:e.end&&e.end.format(t)}:e.format(t))),this.$emit("onChange"),this.hideDatePicker()):this.hideDatePicker()},onKeyDown:function(e){var t=e.keyCode;if(this.$refs.menu)return[C.esc,C.tab].includes(t)?this.hideDatePicker(e):void 0},onClearDate:function(){this.$emit("input",void 0),this.$emit("onChange")}
2,genContent:function(){return this.inline?[this.genAgenda()]:[this.$scopedSlots.activator?this.genActivator():this.genCustomInput(),this.genMenuWithContent()]},genActivator:function(){return this.$createElement("div",{staticClass:"vd-activator",directives:[{name:"click-outside",value:{isActive:this.isMenuActive&&!this.isFullScreenMode,handler:this.hideDatePicker}}],on:{click:this.showDatePicker,keydown:this.onKeyDown},ref:"activator"},[this.$scopedSlots.activator({date:this.formattedInputDate})])},genCustomInput:function(){return this.$createElement(ce,{props:{clearable:this.clearable,color:this.color,date:this.formattedInputDate,disabled:this.disabled,id:this.componentId,isDateDefined:this.isDateDefined,isMenuActive:this.isMenuActive,name:this.name,noCalendarIcon:this.noCalendarIcon,placeholder:this.placeholder,tabindex:this.tabindex},directives:[{name:"click-outside",value:{isActive:this.isMenuActive&&!this.isFullScreenMode,handler:this.hideDatePicker}}],nativeOn:{click:this.showDatePicker},on:{keydown:this.onKeyDown,clearDate:this.onClearDate},ref:"activator"})},genMenuWithContent:function(){var e=this,t=this.isFullScreenMode,r=mt(mt({},yt),{},{value:this.isMenuActive,origin:this.origin,allowOverflow:this.allowOverflow,attach:!t&&this.attach,transition:t?"slide-in-out-transition":"scale-transition",bottomSheet:t}),n=this.activator;return this.$createElement(Z,{attrs:{role:"menu"},props:mt(mt({},r),{},{activator:n}),on:{transitionEnd:function(){e.isBooted=!0}},ref:"menu"},[this.genAgenda()])},genAgenda:function(){return this.$createElement(ut,{props:{allowedDates:this.allowedDates,buttonCancel:this.textsFormat.buttonCancel,buttonValidate:this.textsFormat.buttonValidate,color:this.color,date:this.internalDate,fullscreen:this.isBooted&&this.isMenuActive&&this.isFullScreenMode,headerFormat:this.headerFormat,locale:this.currentLocale,maxDate:this.maxDate,minDate:this.minDate,name:this.name,noHeader:this.noHeader,range:this.range,rangeHeaderText:this.textsFormat.rangeHeaderText,rangePresets:this.rangePresets,rtl:this.rtl,type:this.type,validate:this.validate,value:this.isMenuActive,visibleYearsNumber:this.visibleYearsNumber},on:{selectDate:this.changeDate,validateDate:this.validateDate,close:this.hideDatePicker},directives:[{name:"click-outside",value:{isActive:this.isBooted&&this.isMenuActive,handler:this.hideDatePicker}}],ref:"agenda"})}},render:function(e){return e("div",{staticClass:"vd-wrapper",class:this.classes},this.genContent())}}),gt=Object.freeze({__proto__:null,VueDatePicker:vt}),_t={installed:!1,version:"0.2.11",install:function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0,c.default!==t&&console.error("Multiple instances of Vue detected.");var i=r.components||{},a=r.options||{};t.prototype.$vuedatepicker=a,c.default.prototype.$vuedatepicker=a,Object.entries(i).forEach(function(e){var r=de(e,2),n=r[0],i=r[1];t.component(n,i)})}}},bt=_t.install;_t.install=function(e,t){bt.call(_t,e,{components:gt,options:t})},"undefined"!=typeof window&&window.Vue&&window.Vue.use(_t);t.default=_t}).call(this,r(30))},function(e,t,r){var n,o,c;o=[t],n=function(e){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var t=!1;if("undefined"!=typeof window){var r={get passive(){t=!0}};window.addEventListener("testPassive",null,r),window.removeEventListener("testPassive",null,r)}function n(e){return u.some(function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))})}function o(e){var t=e||window.event;return!!n(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)}function c(){setTimeout(function(){void 0!==f&&(document.body.style.paddingRight=f,f=void 0),void 0!==d&&(document.body.style.overflow=d,d=void 0)})}var a="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&1<window.navigator.maxTouchPoints),u=[],s=!1,l=-1,d=void 0,f=void 0;e.disableBodyScroll=function(e,r){if(a){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!u.some(function(t){return t.targetElement===e})){var c={targetElement:e,options:r||{}};u=[].concat(i(u),[c]),e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var r,c,d,i;1===t.targetTouches.length&&(c=e,i=(r=t).targetTouches[0].clientY-l,n(r.target)||(c&&0===c.scrollTop&&0<i||(d=c)&&d.scrollHeight-d.scrollTop<=d.clientHeight&&i<0?o(r):r.stopPropagation()))},s||(document.addEventListener("touchmove",o,t?{passive:!1}:void 0),s=!0)}}else{m=r,setTimeout(function(){if(void 0===f){var e=!!m&&!0===m.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(f=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===d&&(d=document.body.style.overflow,document.body.style.overflow="hidden")});var h={targetElement:e,options:r||{}};u=[].concat(i(u),[h])}var m},e.clearAllBodyScrollLocks=function(){a?(u.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),s&&(document.removeEventListener("touchmove",o,t?{passive:!1}:void 0),s=!1),u=[],l=-1):(c(),u=[])},e.enableBodyScroll=function(e){if(a){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,u=u.filter(function(t){return t.targetElement!==e}),s&&0===u.length&&(document.removeEventListener("touchmove",o,t?{passive:!1}:void 0),s=!1)}else(u=u.filter(function(t){return t.targetElement!==e})).length||c()}},void 0===(c="function"==typeof n?n.apply(t,o):n)||(e.exports=c)},function(e,t,r){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",i="day",s="week",u="month",o="quarter",a="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,l=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,591 bytes, line 2
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},f={s:d,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+d(n,2,"0")+":"+d(i,2,"0")},m:function(e,t){var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,u),i=t-n<0,s=e.clone().add(r+(i?-1:1),u);return Number(-(r+(t-n)/(i?n-s:s-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return{M:u,y:a,w:s,d:i,D:"date",h:n,m:r,s:t,ms:e,Q:o}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m="en",y={};y[m]=h;var v=function(e){return e instanceof w},_=function(e,t,r){var n;if(!e)return m;if("string"==typeof e)y[e]&&(n=e),t&&(y[e]=t,n=e);else{var i=e.name;y[i]=e,n=i}return!r&&n&&(m=n),n||!r&&m},g=function(e,t,r){if(v(e))return e.clone();var n=t?"string"==typeof t?{format:t,pl:r}:t:{};return n.date=e,new w(n)},E=f;E.l=_,E.i=v,E.w=function(e,t){return g(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var w=function(){function d(e){this.$L=this.$L||_(e.locale,null,!0),this.parse(e)}var f=d.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(c);if(n)return r?new Date(Date.UTC(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)):new Date(n[1],n[2]-1,n[3]||1,n[4]||0,n[5]||0,n[6]||0,n[7]||0)}return new Date(t)}(e),this.init()},f.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},f.$utils=function(){return E},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(e,t){var r=g(e);return this.startOf(t)<=r&&r<=this.endOf(t)},f.isAfter=function(e,t){return g(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<g(e)},f.$g=function(e,t,r){return E.u(e)?this[t]:this.set(r,e)},f.year=function(e){return this.$g(e,"$y",a)},f.month=function(e){return this.$g(e,"$M",u)},f.day=function(e){return this.$g(e,"$W",i)},f.date=function(e){return this.$g(e,"$D","date")},f.hour=function(e){return this.$g(e,"$H",n)},f.minute=function(e){return this.$g(e,"$m",r)},f.second=function(e){return this.$g(e,"$s",t)},f.millisecond=function(t){return this.$g(t,"$ms",e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,o){var c=this,l=!!E.u(o)||o,d=E.p(e),f=function(e,t){var r=E.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return l?r:r.endOf(i)},h=function(e,t){return E.w(c.toDate()[e].apply(c.toDate(),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},m=this.$W,y=this.$M,v=this.$D,_="set"+(this.$u?"UTC":"");switch(d){case a:return l?f(1,0):f(31,11);case u:return l?f(1,y):f(0,y+1);case s:var g=this.$locale().weekStart||0,w=(m<g?m+7:m)-g;return f(l?v-w:v+(6-w),y);case i:case"date":return h(_+"Hours",0);case n:return h(_+"Minutes",1);case r:return h(_+"Seconds",2);case t:return h(_+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(s,o){var c,l=E.p(s),d="set"+(this.$u?"UTC":""),f=(c={},c[i]=d+"Date",c.date=d+"Date",c[u]=d+"Month",c[a]=d+"FullYear",c[n]=d+"Hours",c[r]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[l],h=l===i?this.$D+(o-this.$W):o;if(l===u||l===a){var m=this.clone().set("date",1);m.$d[f](h),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else f&&this.$d[f](h);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[E.p(e)]()},f.add=function(e,o){var c,l=this;e=Number(e);var d=E.p(o),f=function(t){var r=g(l);return E.w(r.date(r.date()+Math.round(t*e)),l)};if(d===u)return this.set(u,this.$M+e);if(d===a)return this.set(a,this.$y+e);if(d===i)return f(1);if(d===s)return f(7);var h=(c={},c[r]=6e4,c[n]=36e5,c[t]=1e3,c)[d]||1,m=this.$d.getTime()+e*h;return E.w(m,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var r=e||"YYYY-MM-DDTHH:mm:ssZ",n=E.z(this),i=this.$locale(),s=this.$H,u=this.$m,o=this.$M,a=i.weekdays,c=i.months,d=function(e,n,i,s){return e&&(e[
2n]||e(t,r))||i[n].substr(0,s)},f=function(e){return E.s(s%12||12,e,"0")},h=i.meridiem||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:E.s(o+1,2,"0"),MMM:d(i.monthsShort,o,c,3),MMMM:c[o]||c(this,r),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:d(i.weekdaysMin,this.$W,a,2),ddd:d(i.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(s),HH:E.s(s,2,"0"),h:f(1),hh:f(2),a:h(s,u,!0),A:h(s,u,!1),m:String(u),mm:E.s(u,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:n};return r.replace(l,function(e,t){return t||m[e]||n.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(e,c,l){var d,f=E.p(c),h=g(e),m=6e4*(h.utcOffset()-this.utcOffset()),y=this-h,v=E.m(this,h);return v=(d={},d[a]=v/12,d[u]=v,d[o]=v/3,d[s]=(y-m)/6048e5,d[i]=(y-m)/864e5,d[n]=y/36e5,d[r]=y/6e4,d[t]=y/1e3,d)[f]||y,l?v:E.a(v)},f.daysInMonth=function(){return this.endOf(u).$D},f.$locale=function(){return y[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=_(e,t,!0);return n&&(r.$L=n),r},f.clone=function(){return E.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}();return g.prototype=w.prototype,g.extend=function(e,t){return e(t,w,g),g},g.locale=_,g.isDayjs=v,g.unix=function(e){return g(1e3*e)},g.en=y[m],g.Ls=y,g}()},,function(e,t,r){var n;r(70),r(33),r(147),r(79),r(116),r(71),r(66),r(7),r(92),r(18),r(34),r(14),r(84),r(35),r(99),r(933),r(36),r(118),r(119),r(120),r(121),r(122),r(123),r(124),r(125),r(126),r(127),r(128),r(129),r(130),r(100),r(6),"undefined"!=typeof self&&self,n=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},r.p="",r(r.s="fb15")}({"00ee":function(e,t,r){var n={};n[r("b622")("toStringTag")]="z",e.exports="[object z]"===String(n)},"0366":function(e,t,r){var n=r("1c0b");e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(a){return e.call(t,a)};case 2:return function(a,b){return e.call(t,a,b)};case 3:return function(a,b,r){return e.call(t,a,b,r)}}return function(){return e.apply(t,arguments)}}},"0497":function(e,t){e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},"057f":function(e,t,r){var n=r("fc6a"),o=r("241c").f,c={}.toString,l="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return l&&"[object Window]"==c.call(e)?function(e){try{return o(e)}catch(e){return l.slice()}}(e):o(n(e))}},"06cf":function(e,t,r){var n=r("83ab"),o=r("d1e7"),c=r("5c6c"),l=r("fc6a"),d=r("c04e"),f=r("5135"),h=r("0cfb"),m=Object.getOwnPropertyDescriptor;t.f=n?m:function(e,t){if(e=l(e),t=d(t,!0),h)try{return m(e,t)}catch(e){}if(f(e,t))return c(!o.f.call(e,t),e[t])}}
2,"07ac":function(e,t,r){var n=r("23e7"),o=r("6f53").values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},"0cfb":function(e,t,r){var n=r("83ab"),o=r("d039"),c=r("cc12");e.exports=!n&&!o(function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a})},1276:function(e,t,r){"use strict";var n=r("d784"),o=r("44e7"),c=r("825a"),l=r("1d80"),d=r("4840"),f=r("8aa5"),h=r("50c4"),m=r("14c3"),y=r("9263"),v=r("d039"),_=[].push,E=Math.min,w=4294967295,A=!v(function(){return!RegExp(w,"y")});n("split",2,function(e,t,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,r){var n=String(l(this)),c=void 0===r?w:r>>>0;if(0===c)return[];if(void 0===e)return[n];if(!o(e))return t.call(n,e,c);for(var d,f,h,output=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,E=new RegExp(e.source,m+"g");(d=y.call(E,n))&&!((f=E.lastIndex)>v&&(output.push(n.slice(v,d.index)),d.length>1&&d.index<n.length&&_.apply(output,d.slice(1)),h=d[0].length,v=f,output.length>=c));)E.lastIndex===d.index&&E.lastIndex++;return v===n.length?!h&&E.test("")||output.push(""):output.push(n.slice(v)),output.length>c?output.slice(0,c):output}:"0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:t.call(this,e,r)}:t,[function(t,r){var o=l(this),c=null==t?void 0:t[e];return void 0!==c?c.call(t,o,r):n.call(String(o),t,r)},function(e,o){var l=r(n,e,this,o,n!==t);if(l.done)return l.value;var y=c(e),v=String(this),_=d(y,RegExp),T=y.unicode,O=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(A?"y":"g"),S=new _(A?y:"^(?:"+y.source+")",O),I=void 0===o?w:o>>>0;if(0===I)return[];if(0===v.length)return null===m(S,v)?[v]:[];for(var p=0,q=0,C=[];q<v.length;){S.lastIndex=A?q:0;var N,P=m(S,A?v:v.slice(q));if(null===P||(N=E(h(S.lastIndex+(A?0:q)),v.length))===p)q=f(v,q,T);else{if(C.push(v.slice(p,q)),C.length===I)return C;for(var i=1;i<=P.length-1;i++)if(C.push(P[i]),C.length===I)return C;q=p=N}}return C.push(v.slice(p)),C}]},!A)},"13d5":function(e,t,r){"use strict";
2var n=r("23e7"),o=r("d58f").left,c=r("a640"),l=r("ae40"),d=c("reduce"),f=l("reduce",{1:0});n({target:"Array",proto:!0,forced:!d||!f},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,r){var n=r("c6b6"),o=r("9263");e.exports=function(e,t){var r=e.exec;if("function"==typeof r){var c=r.call(e,t);if("object"!=typeof c)throw TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==n(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"159b":function(e,t,r){var n=r("da84"),o=r("fdbc"),c=r("17c2"),l=r("9112");for(var d in o){var f=n[d],h=f&&f.prototype;if(h&&h.forEach!==c)try{l(h,"forEach",c)}catch(e){h.forEach=c}}},"17c2":function(e,t,r){"use strict";var n=r("b727").forEach,o=r("a640"),c=r("ae40"),l=o("forEach"),d=c("forEach");e.exports=l&&d?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,r){var n=r("d066");e.exports=n("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c7e":function(e,t,r){var n=r("b622")("iterator"),o=!1;try{var c=0,l={next:function(){return{done:!!c++}},return:function(){o=!0}};l[n]=function(){return this},Array.from(l,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var object={};object[n]=function(){return{next:function(){return{done:r=!0}}}},e(object)}catch(e){}return r}},"1d80":function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"1dde":function(e,t,r){var n=r("d039"),o=r("b622"),c=r("2d00"),l=o("species");e.exports=function(e){return c>=51||!n(function(){var t=[];return(t.constructor={})[l]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},"217d":function(e,t){e.exports={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var i=0,r=e.length;i<r&&!1!==t(e[i],i);i++);}}},"23cb":function(e,t,r){var n=r("a691"),o=Math.max,c=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):c(r,t)}},"23e7":function(e,t,r){var n=r("da84"),o=r("06cf").f,c=r("9112"),l=r("6eeb"),d=r("ce4e"),f=r("e893"),h=r("94ca");e.exports=function(e,source){var t,r,m,y,v,_=e.target,E=e.global,w=e.stat;if(t=E?n:w?n[_]||d(_,{}):(n[_]||{}).prototype)for(r in source){if(y=source[r],m=e.noTargetGet?(v=o(t,r))&&v.value:t[r],!h(E?r:_+(w?".":"#")+r,e.forced)&&void 0!==m){if(typeof y==typeof m)continue;f(y,m)}(e.sham||m&&m.sham)&&c(y,"sham",!0),l(t,r,y,e)}}},"241c":function(e,t,r){var n=r("ca84"),o=r("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},"25f0":function(e,t,r){"use strict";var n=r("6eeb"),o=r("825a"),c=r("d039"),l=r("ad6d"),d="toString",f=RegExp.prototype,h=f[d],m=c(function(){return"/a/b"!=h.call({source:"a",flags:"b"})}),y=h.name!=d;(m||y)&&n(RegExp.prototype,d,function(){var e=o(this),p=String(e.source),t=e.flags;return"/"+p+"/"+String(void 0===t&&e instanceof RegExp&&!("flags"in f)?l.call(e):t)},{unsafe:!0})},"2d00":function(e,t,r){var n,o,c=r("da84"),l=r("342f"),d=c.process,f=d&&d.versions,h=f&&f.v8;h?o=(n=h.split("."))[0]+n[1]:l&&(!(n=l.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=l.match(/Chrome\/(\d+)/))&&(o=n[1]),e.exports=o&&+o},"342f":function(e,t,r){var n=r("d066");e.exports=n("navigator","userAgent")||""},"35a1":function(e,t,r){var n=r("f5df"),o=r("3f8c"),c=r("b622")("iterator");e.exports=function(e){if(null!=e)return e[c]||e["@@iterator"]||o[n(e)]}},"37e8":function(e,t,r){var n=r("83ab"),o=r("9bf2"),c=r("825a"),l=r("df75");e.exports=n?Object.defineProperties:function(e,t){c(e);for(var r,n=l(t),d=n.length,f=0;d>f;)o.f(e,r=n[f++],t[r]);return e}},"3b81":function(e,t,r){},"3bbe":function(e,t,r){var n=r("861d");e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,r){"use strict";var n=r("6547").charAt,o=r("69f3"),c=r("7dd0"),l="String Iterator",d=o.set,f=o.getterFor(l);c(String,"String",function(e){d(this,{type:l,string:String(e),index:0})},function(){var e,t=f(this),r=t.string,o=t.index;return o>=r.length?{value:void 0,done:!0}:(e=n(r,o),t.index+=e.length,{value:e,done:!1})})},"3f8c":function(e,t){e.exports={}},4160:function(e,t,r){"use strict";
2var n=r("23e7"),o=r("17c2");n({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,r){var n=r("da84");e.exports=n},"42a0":function(e,t){var r,n,o=9007199254740991,c="[object Arguments]",l="[object Function]",d="[object GeneratorFunction]",f=/^(?:0|[1-9]\d*)$/,h=Object.prototype,m=h.hasOwnProperty,y=h.toString,v=h.propertyIsEnumerable,_=(r=Object.keys,n=Object,function(e){return r(n(e))}),E=Math.max,w=!v.call({valueOf:1},"valueOf");function A(e,t){var r=C(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&N(e)}(e)&&m.call(e,"callee")&&(!v.call(e,"callee")||y.call(e)==c)}(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var l in e)!t&&!m.call(e,l)||o&&("length"==l||O(l,n))||r.push(l);return r}function T(object,e,t){var r=object[e];m.call(object,e)&&I(r,t)&&(void 0!==t||e in object)||(object[e]=t)}function O(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}function S(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||h)}function I(e,t){return e===t||e!=e&&t!=t}var C=Array.isArray;function N(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!function(e){var t=P(e)?y.call(e):"";return t==l||t==d}(e)}function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var R,L=(R=function(object,source){if(w||S(source)||N(source))!function(source,e,object,t){object||(object={});for(var r=-1,n=e.length;++r<n;){var o=e[r],c=t?t(object[o],source[o],o,object,source):void 0;T(object,o,void 0===c?source[o]:c)}}(source,function(object){return N(object)?A(object):function(object){if(!S(object))return _(object);var e=[];for(var t in Object(object))m.call(object,t)&&"constructor"!=t&&e.push(t);return e}(object)}(source),object);else for(var e in source)m.call(source,e)&&T(object,e,source[e])},function(e,t){return t=E(void 0===t?e.length-1:t,0),function(){for(var r=arguments,n=-1,o=E(r.length-t,0),c=Array(o);++n<o;)c[n]=r[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=r[n];return l[t]=c,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,l)}}(function(object,e){var t=-1,r=e.length,n=r>1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(n=R.length>3&&"function"==typeof n?(r--,n):void 0,o&&function(e,t,object){if(!P(object))return!1;var r=typeof t;return!!("number"==r?N(object)&&O(t,object.length):"string"==r&&t in object)&&I(object[t],e)}(e[0],e[1],o)&&(n=r<3?void 0:n,r=1),object=Object(object);++t<r;){var source=e[t];source&&R(object,source,t,n)}return object}));e.exports=L},"44ad":function(e,t,r){var n=r("d039"),o=r("c6b6"),c="".split;e.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==o(e)?c.call(e,""):Object(e)}:Object},"44d2":function(e,t,r){var n=r("b622"),o=r("7c73"),c=r("9bf2"),l=n("unscopables"),d=Array.prototype;null==d[l]&&c.f(d,l,{configurable:!0,value:o(null)}),e.exports=function(e){d[l][e]=!0}},"44e7":function(e,t,r){var n=r("861d"),o=r("c6b6"),c=r("b622")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==o(e))}},"466d":function(e,t,r){"use strict";var n=r("d784"),o=r("825a"),c=r("50c4"),l=r("1d80"),d=r("8aa5"),f=r("14c3");n("match",1,function(e,t,r){return[function(t){var r=l(this),n=null==t?void 0:t[e];return void 0!==n?n.call(t,r):new RegExp(t)[e](String(r))},function(e){var n=r(t,e,this);if(n.done)return n.value;var l=o(e),h=String(this);if(!l.global)return f(l,h);var m=l.unicode;l.lastIndex=0;for(var y,v=[],_=0;null!==(y=f(l,h));){var E=String(y[0]);v[_]=E,""===E&&(l.lastIndex=d(h,c(l.lastIndex),m)),_++}return 0===_?null:v}]})},4840:function(e,t,r){var n=r("825a"),o=r("1c0b"),c=r("b622")("species");e.exports=function(e,t){var r,l=n(e).constructor;return void 0===l||null==(r=n(l)[c])?t:o(r)}},4930:function(e,t,r){var n=r("d039");e.exports=!!Object.getOwnPropertySymbols&&!n(function(){return!String(Symbol())})},"4d64":function(e,t,r){var n=r("fc6a"),o=r("50c4"),c=r("23cb"),l=function(e){return function(t,r,l){var d,f=n(t),h=o(f.length),m=c(l,h);if(e&&r!=r){for(;h>m;)if((d=f[m++])!=d)return!0}else for(;h>m;m++)if((e||m in f)&&f[m]===r)return e||m||0;return!e&&-1}};e.exports={includes:l(!0),indexOf:l(!1)}},"4de4":function(e,t,r){"use strict";
2var n=r("23e7"),o=r("b727").filter,c=r("1dde"),l=r("ae40"),d=c("filter"),f=l("filter");n({target:"Array",proto:!0,forced:!d||!f},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,r){"use strict";var n=r("0366"),o=r("7b0b"),c=r("9bdd"),l=r("e95a"),d=r("50c4"),f=r("8418"),h=r("35a1");e.exports=function(e){var t,r,m,y,v,_,E=o(e),w="function"==typeof this?this:Array,A=arguments.length,T=A>1?arguments[1]:void 0,O=void 0!==T,S=h(E),I=0;if(O&&(T=n(T,A>2?arguments[2]:void 0,2)),null==S||w==Array&&l(S))for(r=new w(t=d(E.length));t>I;I++)_=O?T(E[I],I):E[I],f(r,I,_);else for(v=(y=S.call(E)).next,r=new w;!(m=v.call(y)).done;I++)_=O?c(y,T,[m.value,I],!0):m.value,f(r,I,_);return r.length=I,r}},"50c4":function(e,t,r){var n=r("a691"),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},5135:function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},5692:function(e,t,r){var n=r("c430"),o=r("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,r){var n=r("d066"),o=r("241c"),c=r("7418"),l=r("825a");e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(l(e)),r=c.f;return r?t.concat(r(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,r){var n=r("1d80"),o="["+r("5899")+"]",c=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),d=function(e){return function(t){var r=String(n(t));return 1&e&&(r=r.replace(c,"")),2&e&&(r=r.replace(l,"")),r}};e.exports={start:d(1),end:d(2),trim:d(3)}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"60da":function(e,t,r){"use strict";var n=r("83ab"),o=r("d039"),c=r("df75"),l=r("7418"),d=r("d1e7"),f=r("7b0b"),h=r("44ad"),m=Object.assign,y=Object.defineProperty;e.exports=!m||o(function(){if(n&&1!==m({b:1},m(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},symbol=Symbol(),r="abcdefghijklmnopqrst";return e[symbol]=7,r.split("").forEach(function(e){t[e]=e}),7!=m({},e)[symbol]||c(m({},t)).join("")!=r})?function(e,source){for(var t=f(e),r=arguments.length,o=1,m=l.f,y=d.f;r>o;)for(var v,_=h(arguments[o++]),E=m?c(_).concat(m(_)):c(_),w=E.length,A=0;w>A;)v=E[A++],n&&!y.call(_,v)||(t[v]=_[v]);return t}:m},6547:function(e,t,r){var n=r("a691"),o=r("1d80"),c=function(e){return function(t,r){var c,l,d=String(o(t)),f=n(r),h=d.length;return f<0||f>=h?e?"":void 0:(c=d.charCodeAt(f))<55296||c>56319||f+1===h||(l=d.charCodeAt(f+1))<56320||l>57343?e?d.charAt(f):c:e?d.slice(f,f+2):l-56320+(c-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(e,t,r){var n=r("861d"),o=r("e8b5"),c=r("b622")("species");e.exports=function(e,t){var r;return o(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[c])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===t?0:t)}},"69f3":function(e,t,r){var n,o,c,l=r("7f9a"),d=r("da84"),f=r("861d"),h=r("9112"),m=r("5135"),y=r("f772"),v=r("d012"),_=d.WeakMap;if(l){var E=new _,w=E.get,A=E.has,T=E.set;n=function(e,t){return T.call(E,e,t),t},o=function(e){return w.call(E,e)||{}},c=function(e){return A.call(E,e)}}else{var O=y("state");v[O]=!0,n=function(e,t){return h(e,O,t),t},o=function(e){return m(e,O)?e[O]:{}},c=function(e){return m(e,O)}}e.exports={set:n,get:o,has:c,enforce:function(e){return c(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!f(t)||(r=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},"6dd8":function(e,t,r){"use strict";(function(e){var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var r=-1;return e.some(function(e,n){return e[0]===t&&(r=n,!0)}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var r=e(this.__entries__,t),n=this.__entries__[r];return n&&n[1]},t.prototype.set=function(t,r){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=r:this.__entries__.push([t,r])},t.prototype.delete=function(t){var r=this.__entries__,n=e(r,t);~n&&r.splice(n,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var r=0,n=this.__entries__;r<n.length;r++){var o=n[r];e.call(t,o[1],o[0])}},t}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),c="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},l=["top","right","bottom","left","width","height","size","weight"],d="undefined"!=typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var r=!1,n=!1,o=0;function l(){r&&(r=!1,e()),n&&f()}function d(){c(l)}function f(){var e=Date.now();if(r){if(e-o<2)return;n=!0}else r=!0,n=!1,setTimeout(d,t);o=e}return f}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=void 0===t?"":t;l.some(function(e){return!!~r.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 4,407 bytes, line 2
2w e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},m=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},y=T(0,0,0,0);function v(e){return parseFloat(e)||0}function _(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(t,r){return t+v(e["border-"+r+"-width"])},0)}function E(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return y;var n=m(e).getComputedStyle(e),o=function(e){for(var t={},r=0,n=["top","right","bottom","left"];r<n.length;r++){var o=n[r],c=e["padding-"+o];t[o]=v(c)}return t}(n),c=o.left+o.right,l=o.top+o.bottom,d=v(n.width),f=v(n.height);if("border-box"===n.boxSizing&&(Math.round(d+c)!==t&&(d-=_(n,"left","right")+c),Math.round(f+l)!==r&&(f-=_(n,"top","bottom")+l)),!function(e){return e===m(e).document.documentElement}(e)){var h=Math.round(d+c)-t,E=Math.round(f+l)-r;1!==Math.abs(h)&&(d-=h),1!==Math.abs(E)&&(f-=E)}return T(o.left,o.top,d,f)}var w="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof m(e).SVGGraphicsElement}:function(e){return e instanceof m(e).SVGElement&&"function"==typeof e.getBBox};function A(e){return n?w(e)?function(e){var t=e.getBBox();return T(0,0,t.width,t.height)}(e):E(e):y}function T(e,t,r,n){return{x:e,y:t,width:r,height:n}}var O=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var rect=A(this.target);return this.contentRect_=rect,rect.width!==this.broadcastWidth||rect.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var rect=this.contentRect_;return this.broadcastWidth=rect.width,this.broadcastHeight=rect.height,rect},e}(),S=function(e,t){var r,n,o,c,l,d,rect,f=(n=(r=t).x,o=r.y,c=r.width,l=r.height,d="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,rect=Object.create(d.prototype),h(rect,{x:n,y:o,width:c,height:l,top:o,right:n+c,bottom:l+o,left:n}),rect);h(this,{target:e,contentRect:f})},I=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof m(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new O(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof m(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new S(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),C="undefined"!=typeof WeakMap?new WeakMap:new r,N=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=f.getInstance(),n=new I(t,r,this);C.set(this,n)};["observe","unobserve","disconnect"].forEach(function(e){N.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}});var P=void 0!==o.ResizeObserver?o.ResizeObserver:N;t.a=P}).call(this,r("c8ba"))},"6ea2":function(e,t,r){"use strict";var n=r("890c");r.n(n).a},"6eeb":function(e,t,r){var n=r("da84"),o=r("9112"),c=r("5135"),l=r("ce4e"),d=r
2("8925"),f=r("69f3"),h=f.get,m=f.enforce,y=String(String).split("String");(e.exports=function(e,t,r,d){var f=!!d&&!!d.unsafe,h=!!d&&!!d.enumerable,v=!!d&&!!d.noTargetGet;"function"==typeof r&&("string"!=typeof t||c(r,"name")||o(r,"name",t),m(r).source=y.join("string"==typeof t?t:"")),e!==n?(f?!v&&e[t]&&(h=!0):delete e[t],h?e[t]=r:o(e,t,r)):h?e[t]=r:l(t,r)})(Function.prototype,"toString",function(){return"function"==typeof this&&h(this).source||d(this)})},"6f53":function(e,t,r){var n=r("83ab"),o=r("df75"),c=r("fc6a"),l=r("d1e7").f,d=function(e){return function(t){for(var r,d=c(t),f=o(d),h=f.length,i=0,m=[];h>i;)r=f[i++],n&&!l.call(d,r)||m.push(e?[r,d[r]]:d[r]);return m}};e.exports={entries:d(!0),values:d(!1)}},7156:function(e,t,r){var n=r("861d"),o=r("d2bb");e.exports=function(e,t,r){var c,l;return o&&"function"==typeof(c=t.constructor)&&c!==r&&n(l=c.prototype)&&l!==r.prototype&&o(e,l),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,r){var path=r("428f"),n=r("5135"),o=r("e538"),c=r("9bf2").f;e.exports=function(e){var t=path.Symbol||(path.Symbol={});n(t,e)||c(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,t,r){var n=r("1d80");e.exports=function(e){return Object(n(e))}},"7c73":function(e,t,r){var n,o=r("825a"),c=r("37e8"),l=r("7839"),d=r("d012"),html=r("1be4"),f=r("cc12"),h=r("f772"),m="prototype",y="script",v=h("IE_PROTO"),_=function(){},E=function(content){return"<"+y+">"+content+"</"+y+">"},w=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,iframe,t;w=n?function(e){e.write(E("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):(iframe=f("iframe"),t="java"+y+":",iframe.style.display="none",html.appendChild(iframe),iframe.src=String(t),(e=iframe.contentWindow.document).open(),e.write(E("document.F=Object")),e.close(),e.F);for(var r=l.length;r--;)delete w[m][l[r]];return w()};d[v]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(_[m]=o(e),r=new _,_[m]=null,r[v]=e):r=w(),void 0===t?r:c(r,t)}},"7dd0":function(e,t,r){"use strict";
2var n=r("23e7"),o=r("9ed3"),c=r("e163"),l=r("d2bb"),d=r("d44e"),f=r("9112"),h=r("6eeb"),m=r("b622"),y=r("c430"),v=r("3f8c"),_=r("ae93"),E=_.IteratorPrototype,w=_.BUGGY_SAFARI_ITERATORS,A=m("iterator"),T="keys",O="values",S="entries",I=function(){return this};e.exports=function(e,t,r,m,_,C,N){o(r,t,m);var P,R,L,D=function(e){if(e===_&&U)return U;if(!w&&e in M)return M[e];switch(e){case T:case O:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},x=t+" Iterator",k=!1,M=e.prototype,F=M[A]||M["@@iterator"]||_&&M[_],U=!w&&F||D(_),j="Array"==t&&M.entries||F;if(j&&(P=c(j.call(new e)),E!==Object.prototype&&P.next&&(y||c(P)===E||(l?l(P,E):"function"!=typeof P[A]&&f(P,A,I)),d(P,x,!0,!0),y&&(v[x]=I))),_==O&&F&&F.name!==O&&(k=!0,U=function(){return F.call(this)}),y&&!N||M[A]===U||f(M,A,U),v[t]=U,_)if(R={values:D(O),keys:C?U:D(T),entries:D(S)},N)for(L in R)(w||k||!(L in M))&&h(M,L,R[L]);else n({target:t,proto:!0,forced:w||k},R);return R}},"7f9a":function(e,t,r){var n=r("da84"),o=r("8925"),c=n.WeakMap;e.exports="function"==typeof c&&/native code/.test(o(c))},"825a":function(e,t,r){var n=r("861d");e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,r){var n=r("d039");e.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},8418:function(e,t,r){"use strict";var n=r("c04e"),o=r("9bf2"),c=r("5c6c");e.exports=function(object,e,t){var r=n(e);r in object?o.f(object,r,c(0,t)):object[r]=t}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"88bc":function(e,t,r){(function(t){var r=9007199254740991,n="[object Arguments]",o="[object Function]",c="[object GeneratorFunction]",l="[object Symbol]",d="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,h=d||f||Function("return this")();function m(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var y=Object.prototype,v=y.hasOwnProperty,_=y.toString,E=h.Symbol,w=y.propertyIsEnumerable,A=E?E.isConcatSpreadable:void 0,T=Math.max;function O(e,t,r,n,o){var c=-1,l=e.length;for(r||(r=S),o||(o=[]);++c<l;){var d=e[c];t>0&&r(d)?t>1?O(d,t-1,r,n,o):m(o,d):n||(o[o.length]=d)}return o}function S(e){return C(e)||function(e){return function(e){return N(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?_.call(e):"";return t==o||t==c}(e)}(e)}(e)&&v.call(e,"callee")&&(!w.call(e,"callee")||_.call(e)==n)}(e)||!!(A&&e&&e[A])}function I(e){if("string"==typeof e||function(e){return"symbol"==typeof e||N(e)&&_.call(e)==l}(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var C=Array.isArray;function N(e){return!!e&&"object"==typeof e}var P,R,L=(P=function(object,e){return null==object?{}:function(object,e){return function(object,e,t){for(var r=-1,n=e.length,o={};++r<n;){var c=e[r],l=object[c];t(l,c)&&(o[c]=l)}return o}(object=Object(object),e,function(e,t){return t in object})}(object,function(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}(O(e,1),I))},R=T(void 0===R?P.length-1:R,0),function(){for(var e=arguments,t=-1,r=T(e.length-R,0),n=Array(r);++t<r;)n[t]=e[R+t];t=-1;for(var o=Array(R+1);++t<R;)o[t]=e[t];return o[R]=n,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(P,this,o)});e.exports=L}).call(this,r("c8ba"))},"890c":function(e,t,r){},8925:function(e,t,r){var n=r("c6cd"),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return o.call(e)}),e.exports=n.inspectSource},"8aa5":function(e,t,r){"use strict";var n=r("6547").charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},"8e95":function(e,t,r){var n=r("c195");e.exports=new n},9020:function(e,t){function r(e){this.options=e,!e.deferSetup&&this.setup()}r.prototype={constructor:r,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=r},"90e3":function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},9112:function(e,t,r){var n=r("83ab"),o=r("9bf2"),c=r("5c6c");e.exports=n?function(object,e,t){return o.f(object,e,c(1,t))}:function(object,e,t){return object[e]=t,object}},9263:function(e,t,r){"use strict";var n,o,c=r("ad6d"),l=r("9f7f"),d=RegExp.prototype.exec,f=String.prototype.replace,h=d,m=(n=/a/,o=/b*/g,d.call(n,"a"),d.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),y=l.UNSUPPORTED_Y||l.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(m||v||y)&&(h=function(e){var t,r,n,i,o=this,l=y&&o.sticky,h=c.call(o),source=o.source,_=0,E=e;return l&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),E=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(source="(?: "+source+")",E=" "+E,_++),r=new RegExp("^(?:"+source+")",h)),v&&(r=new RegExp("^"+source+"$(?!\\s)",h)),m&&(t=o.lastIndex),n=d.call(l?r:o,E),l?n?(n.input=n.input.slice(_),n[0]=n[0].slice(_),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:m&&n&&(o.lastIndex=o.global?n.index+n[0].length:t),v&&n&&n.length>1&&f.call(n[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)}),n}),e.exports=h},"94ca":function(e,t,r){var n=r("d039"),o=/#|\.prototype\./,c=function(e,t){var r=data[l(e)];return r==f||r!=d&&("function"==typeof t?n(t):!!t)},l=c.normalize=function(e){return String(e).replace(o,".").toLowerCase()},data=c.data={},d=c.NATIVE="N",f=c.POLYFILL="P";e.exports=c},"99af":function(e,t,r){"use strict";
2var n=r("23e7"),o=r("d039"),c=r("e8b5"),l=r("861d"),d=r("7b0b"),f=r("50c4"),h=r("8418"),m=r("65f0"),y=r("1dde"),v=r("b622"),_=r("2d00"),E=v("isConcatSpreadable"),w=9007199254740991,A="Maximum allowed index exceeded",T=_>=51||!o(function(){var e=[];return e[E]=!1,e.concat()[0]!==e}),O=y("concat"),S=function(e){if(!l(e))return!1;var t=e[E];return void 0!==t?!!t:c(e)};n({target:"Array",proto:!0,forced:!T||!O},{concat:function(e){var i,t,r,n,o,c=d(this),l=m(c,0),y=0;for(i=-1,r=arguments.length;i<r;i++)if(S(o=-1===i?c:arguments[i])){if(y+(n=f(o.length))>w)throw TypeError(A);for(t=0;t<n;t++,y++)t in o&&h(l,y,o[t])}else{if(y>=w)throw TypeError(A);h(l,y++,o)}return l.length=y,l}})},"9bdd":function(e,t,r){var n=r("825a");e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var c=e.return;throw void 0!==c&&n(c.call(e)),t}}},"9bf2":function(e,t,r){var n=r("83ab"),o=r("0cfb"),c=r("825a"),l=r("c04e"),d=Object.defineProperty;t.f=n?d:function(e,t,r){if(c(e),t=l(t,!0),c(r),o)try{return d(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},"9ed3":function(e,t,r){"use strict";var n=r("ae93").IteratorPrototype,o=r("7c73"),c=r("5c6c"),l=r("d44e"),d=r("3f8c"),f=function(){return this};e.exports=function(e,t,r){var h=t+" Iterator";return e.prototype=o(n,{next:c(1,r)}),l(e,h,!1,!0),d[h]=f,e}},"9f7f":function(e,t,r){"use strict";var n=r("d039");function o(s,e){return RegExp(s,e)}t.UNSUPPORTED_Y=n(function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),t.BROKEN_CARET=n(function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")})},a15b:function(e,t,r){"use strict";
2var n=r("23e7"),o=r("44ad"),c=r("fc6a"),l=r("a640"),d=[].join,f=o!=Object,h=l("join",",");n({target:"Array",proto:!0,forced:f||!h},{join:function(e){return d.call(c(this),void 0===e?",":e)}})},a48b:function(e,t,r){var n=r("0497"),o=function(e){var t="",r=Object.keys(e);return r.forEach(function(o,c){var l=e[o];(function(e){return/[height|width]$/.test(e)})(o=n(o))&&"number"==typeof l&&(l+="px"),t+=!0===l?o:!1===l?"not "+o:"("+o+": "+l+")",c<r.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(q,r){t+=o(q),r<e.length-1&&(t+=", ")}),t):o(e)}},a4d3:function(e,t,r){"use strict";var n=r("23e7"),o=r("da84"),c=r("d066"),l=r("c430"),d=r("83ab"),f=r("4930"),h=r("fdbf"),m=r("d039"),y=r("5135"),v=r("e8b5"),_=r("861d"),E=r("825a"),w=r("7b0b"),A=r("fc6a"),T=r("c04e"),O=r("5c6c"),S=r("7c73"),I=r("df75"),C=r("241c"),N=r("057f"),P=r("7418"),R=r("06cf"),L=r("9bf2"),D=r("d1e7"),x=r("9112"),k=r("6eeb"),M=r("5692"),F=r("f772"),U=r("d012"),j=r("90e3"),B=r("b622"),H=r("e538"),V=r("746f"),z=r("d44e"),Y=r("69f3"),$=r("b727").forEach,W=F("hidden"),K="Symbol",G="prototype",Q=B("toPrimitive"),X=Y.set,J=Y.getterFor(K),Z=Object[G],ee=o.Symbol,te=c("JSON","stringify"),re=R.f,ne=L.f,ie=N.f,oe=D.f,ae=M("symbols"),se=M("op-symbols"),ce=M("string-to-symbol-registry"),ue=M("symbol-to-string-registry"),le=M("wks"),de=o.QObject,pe=!de||!de[G]||!de[G].findChild,fe=d&&m(function(){return 7!=S(ne({},"a",{get:function(){return ne(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=re(Z,t);n&&delete Z[t],ne(e,t,r),n&&e!==Z&&ne(Z,t,n)}:ne,he=function(e,t){var symbol=ae[e]=S(ee[G]);return X(symbol,{type:K,tag:e,description:t}),d||(symbol.description=t),symbol},me=h?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof ee},ye=function(e,t,r){e===Z&&ye(se,t,r),E(e);var n=T(t,!0);return E(r),y(ae,n)?(r.enumerable?(y(e,W)&&e[W][n]&&(e[W][n]=!1),r=S(r,{enumerable:O(0,!1)})):(y(e,W)||ne(e,W,O(1,{})),e[W][n]=!0),fe(e,n,r)):ne(e,n,r)},ve=function(e,t){E(e);var r=A(t),n=I(r).concat(Ee(r));return $(n,function(t){d&&!ge.call(r,t)||ye(e,t,r[t])}),e},ge=function(e){var t=T(e,!0),r=oe.call(this,t);return!(this===Z&&y(ae,t)&&!y(se,t))&&(!(r||!y(this,t)||!y(ae,t)||y(this,W)&&this[W][t])||r)},_e=function(e,t){var r=A(e),n=T(t,!0);if(r!==Z||!y(ae,n)||y(se,n)){var o=re(r,n);return!o||!y(ae,n)||y(r,W)&&r[W][n]||(o.enumerable=!0),o}},be=function(e){var t=ie(A(e)),r=[];return $(t,function(e){y(ae,e)||y(U,e)||r.push(e)}),r},Ee=function(e){var t=e===Z,r=ie(t?se:A(e)),n=[];return $(r,function(e){!y(ae,e)||t&&!y(Z,e)||n.push(ae[e])}),n};f||(ee=function(){if(this instanceof ee)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=j(e),r=function(e){this===Z&&r.call(se,e),y(this,W)&&y(this[W],t)&&(this[W][t]=!1),fe(this,t,O(1,e))};return d&&pe&&fe(Z,t,{configurable:!0,set:r}),he(t,e)},k(ee[G],"toString",function(){return J(this).tag}),k(ee,"withoutSetter",function(e){return he(j(e),e)}),D.f=ge,L.f=ye,R.f=_e,C.f=N.f=be,P.f=Ee,H.f=function(e){return he(B(e),e)},d&&(ne(ee[G],"description",{configurable:!0,get:function(){return J(this).description}}),l||k(Z,"propertyIsEnumerable",ge,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:ee}),$(I(le),function(e){V(e)}),n({target:K,stat:!0,forced:!f},{for:function(e){var t=String(e);if(y(ce,t))return ce[t];var symbol=ee(t);return ce[t]=symbol,ue[symbol]=t,symbol},keyFor:function(e){if(!me(e))throw TypeError(e+" is not a symbol");if(y(ue,e))return ue[e]},useSetter:function(){pe=!0},useSimple:function(){pe=!1}}),n({target:"Object",stat:!0,forced:!f,sham:!d},{create:function(e,t){return void 0===t?S(e):ve(S(e),t)},defineProperty:ye,defineProperties:ve,getOwnPropertyDescriptor:_e}),n({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:be,getOwnPropertySymbols:Ee}),n({target:"Object",stat:!0,forced:m(function(){P.f(1)})},{getOwnPropertySymbols:function(e){return P.f(w(e))}}),te&&n({target:"JSON",stat:!0,forced:!f||m(function(){var symbol=ee();return"[null]"!=te([symbol])||"{}"!=te({a:symbol})||"{}"!=te(Object(symbol))})},{stringify:function(e,t,r){for(var n,o=[e],c=1;arguments.length>c;)o.push(arguments[c++]);if(n=t,(_(t)||void 0!==e)&&!me(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!me(t))return t}),o[1]=t,te.apply(null,o)}}),ee[G][Q]||x(ee[G],Q,ee[G].valueOf),z(ee,K),U[W]=!0},a623:function(e,t,r){"use strict";
2var n=r("23e7"),o=r("b727").every,c=r("a640"),l=r("ae40"),d=c("every"),f=l("every");n({target:"Array",proto:!0,forced:!d||!f},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,r){var n=r("23e7"),o=r("4df4");n({target:"Array",stat:!0,forced:!r("1c7e")(function(e){Array.from(e)})},{from:o})},a640:function(e,t,r){"use strict";var n=r("d039");e.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){throw 1},1)})}},a691:function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},a9e3:function(e,t,r){"use strict";var n=r("83ab"),o=r("da84"),c=r("94ca"),l=r("6eeb"),d=r("5135"),f=r("c6b6"),h=r("7156"),m=r("c04e"),y=r("d039"),v=r("7c73"),_=r("241c").f,E=r("06cf").f,w=r("9bf2").f,A=r("58a8").trim,T="Number",O=o[T],S=O.prototype,I=f(v(S))==T,C=function(e){var t,r,n,o,c,l,d,code,f=m(e,!1);if("string"==typeof f&&f.length>2)if(43===(t=(f=A(f)).charCodeAt(0))||45===t){if(88===(r=f.charCodeAt(2))||120===r)return NaN}else if(48===t){switch(f.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+f}for(l=(c=f.slice(2)).length,d=0;d<l;d++)if((code=c.charCodeAt(d))<48||code>o)return NaN;return parseInt(c,n)}return+f};if(c(T,!O(" 0o1")||!O("0b1")||O("+0x1"))){for(var N,P=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof P&&(I?y(function(){S.valueOf.call(r)}):f(r)!=T)?h(new O(C(t)),r,P):C(t)},R=n?_(O):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),L=0;R.length>L;L++)d(O,N=R[L])&&!d(P,N)&&w(P,N,E(O,N));P.prototype=S,S.constructor=P,l(o,T,P)}},ac1f:function(e,t,r){"use strict";
2var n=r("23e7"),o=r("9263");n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(e,t,r){"use strict";var n=r("825a");e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ae40:function(e,t,r){var n=r("83ab"),o=r("d039"),c=r("5135"),l=Object.defineProperty,d={},f=function(e){throw e};e.exports=function(e,t){if(c(d,e))return d[e];t||(t={});var r=[][e],h=!!c(t,"ACCESSORS")&&t.ACCESSORS,m=c(t,0)?t[0]:f,y=c(t,1)?t[1]:void 0;return d[e]=!!r&&!o(function(){if(h&&!n)return!0;var e={length:-1};h?l(e,1,{enumerable:!0,get:f}):e[1]=1,r.call(e,m,y)})}},ae93:function(e,t,r){"use strict";var n,o,c,l=r("e163"),d=r("9112"),f=r("5135"),h=r("b622"),m=r("c430"),y=h("iterator"),v=!1;[].keys&&("next"in(c=[].keys())?(o=l(l(c)))!==Object.prototype&&(n=o):v=!0),null==n&&(n={}),m||f(n,y)||d(n,y,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},b041:function(e,t,r){"use strict";var n=r("00ee"),o=r("f5df");e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,t,r){var n=r("83ab"),o=r("9bf2").f,c=Function.prototype,l=c.toString,d=/^\s*function ([^ (]*)/,f="name";n&&!(f in c)&&o(c,f,{configurable:!0,get:function(){try{return l.call(this).match(d)[1]}catch(e){return""}}})},b622:function(e,t,r){var n=r("da84"),o=r("5692"),c=r("5135"),l=r("90e3"),d=r("4930"),f=r("fdbf"),h=o("wks"),m=n.Symbol,y=f?m:m&&m.withoutSetter||l;e.exports=function(e){return c(h,e)||(d&&c(m,e)?h[e]=m[e]:h[e]=y("Symbol."+e)),h[e]}}
2,b64b:function(e,t,r){var n=r("23e7"),o=r("7b0b"),c=r("df75");n({target:"Object",stat:!0,forced:r("d039")(function(){c(1)})},{keys:function(e){return c(o(e))}})},b727:function(e,t,r){var n=r("0366"),o=r("44ad"),c=r("7b0b"),l=r("50c4"),d=r("65f0"),f=[].push,h=function(e){var t=1==e,r=2==e,h=3==e,m=4==e,y=6==e,v=5==e||y;return function(_,E,w,A){for(var T,O,S=c(_),I=o(S),C=n(E,w,3),N=l(I.length),P=0,R=A||d,L=t?R(_,N):r?R(_,0):void 0;N>P;P++)if((v||P in I)&&(O=C(T=I[P],P,S),e))if(t)L[P]=O;else if(O)switch(e){case 3:return!0;case 5:return T;case 6:return P;case 2:f.call(L,T)}else if(m)return!1;return y?-1:h||m?m:L}};e.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},bcf7:function(e,t,r){var n=r("9020"),o=r("217d").each;function c(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var r=this;this.listener=function(e){r.mql=e.currentTarget||e,r.assess()},this.mql.addListener(this.listener)}c.prototype={constuctor:c,addHandler:function(e){var t=new n(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,function(r,i){if(r.equals(e))return r.destroy(),!t.splice(i,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){o(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";o(this.handlers,function(t){t[e]()})}},e.exports=c},c04e:function(e,t,r){var n=r("861d");e.exports=function(input,e){if(!n(input))return input;var t,r;if(e&&"function"==typeof(t=input.toString)&&!n(r=t.call(input)))return r;if("function"==typeof(t=input.valueOf)&&!n(r=t.call(input)))return r;if(!e&&"function"==typeof(t=input.toString)&&!n(r=t.call(input)))return r;throw TypeError("Can't convert object to primitive value")}},c195:function(e,t,r){var n=r("bcf7"),o=r("217d"),c=o.each,l=o.isFunction,d=o.isArray;function f(){if(!window.matchMedia)throw new Error("matchMedia n
2ot present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}f.prototype={constructor:f,register:function(q,e,t){var r=this.queries,o=t&&this.browserIsIncapable;return r[q]||(r[q]=new n(q,o)),l(e)&&(e={match:e}),d(e)||(e=[e]),c(e,function(e){l(e)&&(e={match:e}),r[q].addHandler(e)}),this},unregister:function(q,e){var t=this.queries[q];return t&&(e?t.removeHandler(e):(t.clear(),delete this.queries[q])),this}},e.exports=f},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},c6cd:function(e,t,r){var n=r("da84"),o=r("ce4e"),c="__core-js_shared__",l=n[c]||o(c,{});e.exports=l},c832:function(e,t,r){(function(t){var r,n="__lodash_hash_undefined__",o="[object Function]",c="[object GeneratorFunction]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,f=/^\./,h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/\\(\\)?/g,y=/^\[object .+?Constructor\]$/,v="object"==typeof t&&t&&t.Object===Object&&t,_="object"==typeof self&&self&&self.Object===Object&&self,E=v||_||Function("return this")(),w=Array.prototype,A=Function.prototype,T=Object.prototype,O=E["__core-js_shared__"],S=(r=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",I=A.toString,C=T.hasOwnProperty,N=T.toString,P=RegExp("^"+I.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=E.Symbol,L=w.splice,D=Y(E,"Map"),x=Y(Object,"create"),k=R?R.prototype:void 0,M=k?k.toString:void 0;function F(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function U(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function j(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function B(e,t){for(var r=e.length;r--;)if(G(e[r][0],t))return r;return-1}function H(object,path){var e;path=function(e,object){if(Q(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!J(e))||(d.test(e)||!l.test(e)||null!=object&&e in Object(object))}(path,object)?[path]:Q(e=path)?e:$(e);for(var t=0,r=path.length;null!=object&&t<r;)object=object[W(path[t++])];return t&&t==r?object:void 0}function V(e){if(!X(e)||(t=e,S&&S in t))return!1;var t,pattern=function(e){var t=X(e)?N.call(e):"";return t==o||t==c}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?P:y;return pattern.test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function z(map,e){var t,r,data=map.__data__;return("string"==(r=typeof(t=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?data["string"==typeof e?"string":"hash"]:data.map}function Y(object,e){var t=function(object,e){return null==object?void 0:object[e]}(object,e);return V(t)?t:void 0}F.prototype.clear=function(){this.__data__=x?x(null):{}},F.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},F.prototype.get=function(e){var data=this.__data__;if(x){var t=data[e];return t===n?void 0:t}return C.call(data,e)?data[e]:void 0},F.prototype.has=function(e){var data=this.__data__;return x?void 0!==data[e]:C.call(data,e)},F.prototype.set=function(e,t){return this.__data__[e]=x&&void 0===t?n:t,this},U.prototype.clear=function(){this.__data__=[]},U.prototype.delete=function(e){var data=this.__data__,t=B(data,e);return!(t<0||(t==data.length-1?data.pop():L.call(data,t,1),0))},U.prototype.get=function(e){var data=this.__data__,t=B(data,e);return t<0?void 0:data[t][1]},U.prototype.has=function(e){return B(this.__data__,e)>-1},U.prototype.set=function(e,t){var data=this.__data__,r=B(data,e);return r<0?data.push([e,t]):data[r][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new F,map:new(D||U),string:new F}},j.prototype.delete=function(e){return z(this,e).delete(e)},j.prototype.get=function(e){return z(this,e).get(e)},j.prototype.has=function(e){return z(this,e).has(e)},j.prototype.set=function(e,t){return z(this,e).set(e,t),this};var $=K(function(e){var t;
2e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(J(e))return M?M.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return f.test(e)&&r.push(""),e.replace(h,function(e,t,n,o){r.push(n?o.replace(m,"$1"):t||e)}),r});function W(e){if("string"==typeof e||J(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function K(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],c=r.cache;if(c.has(o))return c.get(o);var l=e.apply(this,n);return r.cache=c.set(o,l),l};return r.cache=new(K.Cache||j),r}function G(e,t){return e===t||e!=e&&t!=t}K.Cache=j;var Q=Array.isArray;function X(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function J(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==N.call(e)}e.exports=function(object,path,e){var t=null==object?void 0:H(object,path);return void 0===t?e:t}}).call(this,r("c8ba"))},c8ba:function(e,t){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}e.exports=g},c975:function(e,t,r){"use strict";
vendor: 1,513 bytes, line 2
2var n=r("23e7"),o=r("4d64").indexOf,c=r("a640"),l=r("ae40"),d=[].indexOf,f=!!d&&1/[1].indexOf(1,-0)<0,h=c("indexOf"),m=l("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:f||!h||!m},{indexOf:function(e){return f?d.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,r){var n=r("5135"),o=r("fc6a"),c=r("4d64").indexOf,l=r("d012");e.exports=function(object,e){var t,r=o(object),i=0,d=[];for(t in r)!n(l,t)&&n(r,t)&&d.push(t);for(;e.length>i;)n(r,t=e[i++])&&(~c(d,t)||d.push(t));return d}},cc12:function(e,t,r){var n=r("da84"),o=r("861d"),c=n.document,l=o(c)&&o(c.createElement);e.exports=function(e){return l?c.createElement(e):{}}},cca6:function(e,t,r){var n=r("23e7"),o=r("60da");n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},ce4e:function(e,t,r){var n=r("da84"),o=r("9112");e.exports=function(e,t){try{o(n,e,t)}catch(r){n[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},d066:function(e,t,r){var path=r("428f"),n=r("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(path[e])||o(n[e]):path[e]&&path[e][t]||n[e]&&n[e][t]}},d1e7:function(e,t,r){"use strict";var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!n.call({1:2},1);t.f=c?function(e){var t=o(this,e);return!!t&&t.enumerable}:n},d28b:function(e,t,r){r("746f")("iterator")},d2bb:function(e,t,r){var n=r("825a"),o=r("3bbe");
2e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,c){return n(r),o(c),t?e.call(r,c):r.__proto__=c,r}}():void 0)},d3b7:function(e,t,r){var n=r("00ee"),o=r("6eeb"),c=r("b041");n||o(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(e,t,r){var n=r("9bf2").f,o=r("5135"),c=r("b622")("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,c)&&n(e,c,{configurable:!0,value:t})}},d58f:function(e,t,r){var n=r("1c0b"),o=r("7b0b"),c=r("44ad"),l=r("50c4"),d=function(e){return function(t,r,d,f){n(r);var h=o(t),m=c(h),y=l(h.length),v=e?y-1:0,i=e?-1:1;if(d<2)for(;;){if(v in m){f=m[v],v+=i;break}if(v+=i,e?v<0:y<=v)throw TypeError("Reduce of empty array with no initial value")}for(;e?v>=0:y>v;v+=i)v in m&&(f=r(f,m[v],v,h));return f}};e.exports={left:d(!1),right:d(!0)}},d784:function(e,t,r){"use strict";r("ac1f");var n=r("6eeb"),o=r("d039"),c=r("b622"),l=r("9263"),d=r("9112"),f=c("species"),h=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),m="$0"==="a".replace(/./,"$0"),y=c("replace"),v=!!/./[y]&&""===/./[y]("a","$0"),_=!o(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]});e.exports=function(e,t,r,y){var E=c(e),w=!o(function(){var t={};return t[E]=function(){return 7},7!=""[e](t)}),A=w&&!o(function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[f]=function(){return r},r.flags="",r[E]=/./[E]),r.exec=function(){return t=!0,null},r[E](""),!t});if(!w||!A||"replace"===e&&(!h||!m||v)||"split"===e&&!_){var T=/./[E],O=r(E,""[e],function(e,t,r,n,o){return t.exec===l?w&&!o?{done:!0,value:T.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}},{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),S=O[0],I=O[1];n(String.prototype,e,S),n(RegExp.prototype,E,2==t?function(e,t){return I.call(e,this,t)}:function(e){return I.call(e,this)})}y&&d(RegExp.prototype[E],"sham",!0)}},d81d:function(e,t,r){"use strict";
2var n=r("23e7"),o=r("b727").map,c=r("1dde"),l=r("ae40"),d=c("map"),f=l("map");n({target:"Array",proto:!0,forced:!d||!f},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,r){(function(t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t&&t)||Function("return this")()}).call(this,r("c8ba"))},dbb4:function(e,t,r){var n=r("23e7"),o=r("83ab"),c=r("56ef"),l=r("fc6a"),d=r("06cf"),f=r("8418");n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(object){for(var e,t,r=l(object),n=d.f,o=c(r),h={},m=0;o.length>m;)void 0!==(t=n(r,e=o[m++]))&&f(h,e,t);return h}})},ddb0:function(e,t,r){var n=r("da84"),o=r("fdbc"),c=r("e260"),l=r("9112"),d=r("b622"),f=d("iterator"),h=d("toStringTag"),m=c.values;for(var y in o){var v=n[y],_=v&&v.prototype;if(_){if(_[f]!==m)try{l(_,f,m)}catch(e){_[f]=m}if(_[h]||l(_,h,y),o[y])for(var E in c)if(_[E]!==c[E])try{l(_,E,c[E])}catch(e){_[E]=c[E]}}}},df75:function(e,t,r){var n=r("ca84"),o=r("7839");e.exports=Object.keys||function(e){return n(e,o)}},e01a:function(e,t,r){"use strict";
vendor: 1,222 bytes, line 2
2var n=r("23e7"),o=r("83ab"),c=r("da84"),l=r("5135"),d=r("861d"),f=r("9bf2").f,h=r("e893"),m=c.Symbol;if(o&&"function"==typeof m&&(!("description"in m.prototype)||void 0!==m().description)){var y={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof v?new m(e):void 0===e?m():m(e);return""===e&&(y[t]=!0),t};h(v,m);var _=v.prototype=m.prototype;_.constructor=v;var E=_.toString,w="Symbol(test)"==String(m("test")),A=/^Symbol\((.*)\)[^)]+$/;f(_,"description",{configurable:!0,get:function(){var symbol=d(this)?this.valueOf():this,e=E.call(symbol);if(l(y,symbol))return"";var desc=w?e.slice(7,-1):e.replace(A,"$1");return""===desc?void 0:desc}}),n({global:!0,forced:!0},{Symbol:v})}},e163:function(e,t,r){var n=r("5135"),o=r("7b0b"),c=r("f772"),l=r("e177"),d=c("IE_PROTO"),f=Object.prototype;e.exports=l?Object.getPrototypeOf:function(e){return e=o(e),n(e,d)?e[d]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?f:null}},e177:function(e,t,r){var n=r("d039");e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},e260:function(e,t,r){"use strict";
2var n=r("fc6a"),o=r("44d2"),c=r("3f8c"),l=r("69f3"),d=r("7dd0"),f="Array Iterator",h=l.set,m=l.getterFor(f);e.exports=d(Array,"Array",function(e,t){h(this,{type:f,target:n(e),index:0,kind:t})},function(){var e=m(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),c.Arguments=c.Array,o("keys"),o("values"),o("entries")},e439:function(e,t,r){var n=r("23e7"),o=r("d039"),c=r("fc6a"),l=r("06cf").f,d=r("83ab"),f=o(function(){l(1)});n({target:"Object",stat:!0,forced:!d||f,sham:!d},{getOwnPropertyDescriptor:function(e,t){return l(c(e),t)}})},e538:function(e,t,r){var n=r("b622");t.f=n},e893:function(e,t,r){var n=r("5135"),o=r("56ef"),c=r("06cf"),l=r("9bf2");e.exports=function(e,source){for(var t=o(source),r=l.f,d=c.f,i=0;i<t.length;i++){var f=t[i];n(e,f)||r(e,f,d(source,f))}}},e8b5:function(e,t,r){var n=r("c6b6");e.exports=Array.isArray||function(e){return"Array"==n(e)}},e95a:function(e,t,r){var n=r("b622"),o=r("3f8c"),c=n("iterator"),l=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||l[c]===e)}},eaf9:function(e,t,r){"use strict";var n=r("3b81");r.n(n).a},f013:function(e,t,r){"use strict";var n=r("fdb2");r.n(n).a},f5df:function(e,t,r){var n=r("00ee"),o=r("c6b6"),c=r("b622")("toStringTag"),l="Arguments"==o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),c))?r:l?o(t):"Object"==(n=o(t))&&"function"==typeof t.callee?"Arguments":n}},f6fd:function(e,t){!function(e){var t="currentScript",r=e.getElementsByTagName("script");t in e||Object.defineProperty(e,t,{get:function(){try{throw new Error}catch(t){var i,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(t.stack)||[!1])[1];for(i in r)if(r[i].src==e||"interactive"==r[i].readyState)return r[i];return null}}})}(document)},f772:function(e,t,r){var n=r("5692"),o=r("90e3"),c=n("keys");e.exports=function(e){return c[e]||(c[e]=o(e))}},f7fe:function(e,t,r){(function(t){var r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,d="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,h=d||f||Function("return this")(),m=Object.prototype.toString,y=Math.max,v=Math.min,_=function(){return h.Date.now()};function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==m.call(e)}(e))return NaN;if(E(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=E(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var d=o.test(e);return d||c.test(e)?l(e.slice(2),d?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,r){var n,o,c,l,d,f,h=0,m=!1,A=!1,T=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function O(time){var t=n,r=o;return n=o=void 0,h=time,l=e.apply(r,t)}function S(time){var e=time-f;return void 0===f||e>=t||e<0||A&&time-h>=c}function I(){var time=_();if(S(time))return C(time);d=setTimeout(I,function(time){var e=t-(time-f);return A?v(e,c-(time-h)):e}(time))}function C(time){return d=void 0,T&&n?O(time):(n=o=void 0,l)}function N(){var time=_(),e=S(time);if(n=arguments,o=this,f=time,e){if(void 0===d)return function(time){return h=time,d=setTimeout(I,t),m?O(time):l}(f);if(A)return d=setTimeout(I,t),O(f)}return void 0===d&&(d=setTimeout(I,t)),l}return t=w(t)||0,E(r)&&(m=!!r.leading,c=(A="maxWait"in r)?y(w(r.maxWait)||0,t):c,T="trailing"in r?!!r.trailing:T),N.cancel=function(){void 0!==d&&clearTimeout(d),h=0,n=f=o=d=void 0},N.flush=function(){return void 0===d?l:C(_())},N}}).call(this,r("c8ba"))},fb15:function(e,t,r){"use strict";var n;function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable})),t.push.apply(t,r)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
2i%2?c(Object(source),!0).forEach(function(t){o(e,t,source[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))})}return e}r.r(t),"undefined"!=typeof window&&(r("f6fd"),(n=window.document.currentScript)&&(n=n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1])),r("4de4"),r("4160"),r("a15b"),r("d81d"),r("fb6a"),r("07ac"),r("159b"),r("a4d3"),r("e439"),r("dbb4"),r("b64b");var d=r("a48b"),f=r.n(d);function h(e,t,r,n,o,c,l,d){var f,h="function"==typeof e?e.options:e;if(t&&(h.render=t,h.staticRenderFns=r,h._compiled=!0),n&&(h.functional=!0),c&&(h._scopeId="data-v-"+c),l?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(l)},h._ssrRegister=f):o&&(f=d?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(h.functional){h._injectStyles=f;var m=h.render;h.render=function(e,t){return f.call(t),m(e,t)}}else{var y=h.beforeCreate;h.beforeCreate=y?[].concat(y,f):[f]}return{exports:e,options:h}}var m=h({computed:{isPropsUpdated:function(){var e=this;return Object.keys(this.$props).forEach(function(t){return e[t]}),this.updateSwitch=!this.updateSwitch}},watch:{isPropsUpdated:function(){"function"==typeof this.onPropsUpdated&&this.onPropsUpdated()}}},void 0,void 0,!1,null,null,null).exports,y=r("88bc"),v=r.n(y),_=r("42a0"),E=r.n(_),w=r("c832"),A=r.n(w),T=function(e,t,r){e&&(e.data=e.data||{},e.data[t]=l({},e.data[t],{},r))},O=function(e,t,r){e&&(e.data=e.data||{},e.data[t]=r)},S=["class","staticClass","style","attrs","props","domProps","on","nativeOn","directives","scopesSlots","slot","ref","key"],I=function e(t){var r=t.context&&t.context.$createElement,n=!!t.componentOptions,o=!t.tag,c=n?t.componentOptions.children:t.children;if(o)return t.text;var data=function(e,t){var data=v()(e.data,S);if(t){var r=e.componentOptions;E()(data,{props:r.propsData,on:r.listeners})}return data.key&&(data.key=data.key+"-cloned-cid"),data}(t,n);return r(n?t.componentOptions.Ctor:t.tag,data,c?c.map(function(t){return e(t)}):void 0)},C=function(e,path,t){if(e){var data=e.data||{};return void 0===path?data:A()(data,path,t)}},N=function(e){return l({},C(e,"staticStyle",{}),{},C(e,"style",{}))},P=(r("99af"),r("a623"),r("a630"),r("c975"),r("13d5"),r("a9e3"),r("ac1f"),r("3ca3"),r("466d"),function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}),R=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},L=function(e){return e.unslick||!e.infinite?0:e.slideCount},D=function(e){var t=e.slidesToShow,r=e.centerMode,n=e.rtl,o=e.centerPadding;if(r){var c=(t-1)/2+1;return parseInt(o)>0&&(c+=1),n&&t%2==0&&(c+=1),c}return n?0:t-1},x=function(e){var t=e.slidesToShow,r=e.centerMode,n=e.rtl,o=e.centerPadding;if(r){var c=(t-1)/2+1;return parseInt(o)>0&&(c+=1),n||t%2!=0||(c+=1),c}return n?t-1:0},k=function(e){return e.currentSlide-F(e)},M=function(e){return e.currentSlide+U(e)},F=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},U=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},j=function(e){for(var t=[],r=k(e),n=M(e),o=r;o<n;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},B=function(e,t){var r,n,o,c,d=e.slidesToScroll,f=e.slidesToShow,h=e.slideCount,m=e.currentSlide,y=e.lazyLoad,v=e.infinite;if(r=h%d!==0?0:(h-m)%d,"previous"===t.message)c=m-(o=0===r?d:f-r),y&&!v&&(c=-1===(n=m-o)?h-1:n);else if("next"===t.message)c=m+(o=0===r?d:r),y&&!v&&(c=(m+d)%h+r);else if("dots"===t.message){if((c=t.index*t.slidesToScroll)===t.currentSlide)return null}else if("children"===t.message){if((c=t.index)===t.currentSlide)return null;if(v){var _=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+D(e)?"left":"right":e.targetSlide<e.currentSlide-x(e)?"right":"left"}(l({},e,{targetSlide:c}));c>t.currentSlide&&"left"===_?c-=h:c<t.currentSlide&&"right"===_&&(c+=h)}}else if("index"===t.message&&(c=Number(t.index))===t.currentSlide)return null;return c},H=function(e){return Object.keys(e).filter(function(t){return void 0!==e[t]}).reduce(function(t,r){return t[r]=e[r],t},{})},V=function(e,t){var r=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,r=e.infinite?-1*e.slidesToShow:0,n=e.infinite?-1*e.slidesToShow:0,o=[];r<t;
2)o.push(r),r=n+e.slidesToScroll,n+=Math.min(e.slidesToScroll,e.slidesToShow);return o}(e),n=0;if(t>r[r.length-1])t=r[r.length-1];else for(var o in r){if(t<r[o]){t=n;break}n=r[o]}return t},z=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var r,n=e.listRef.querySelectorAll(".slick-slide");if(Array.from(n).every(function(n){if(e.vertical){if(n.offsetTop+G(n)/2>-1*e.swipeLeft)return r=n,!1}else if(n.offsetLeft-t+K(n)/2>-1*e.swipeLeft)return r=n,!1;return!0}),!r)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(r.dataset.index-o)||1}return e.slidesToScroll},Y=function(e,t){var r={};return t.forEach(function(t){return r[t]=e[t]}),r},$={TRACK:["fade","cssEase","speed","infinite","centerMode","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding"],DOT:["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","children","customPaging","infinite"],ARROW:["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]},W=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},K=function(e){return e&&e.offsetWidth||0},G=function(e){return e&&e.offsetHeight||0},Q=function(e){var t,r,n,o,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,r=e.startY-e.curY,n=Math.atan2(r,t),(o=Math.round(180*n/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":!0===c?o>=35&&o<=135?"up":"down":"vertical"},X=function(e){if(e.unslick)return 0;J(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,r,n=e.slideIndex,o=e.trackRef,c=e.infinite,l=e.centerMode,d=e.slideCount,f=e.slidesToShow,h=e.slidesToScroll,m=e.slideWidth,y=e.listWidth,v=e.variableWidth,_=e.slideHeight,E=e.fade,w=e.vertical;if(E||1===e.slideCount)return 0;var A=0;if(c?(A=-R(e),d%h!==0&&n+h>d&&(A=-(n>d?f-(n-d):d%h)),l&&(A+=parseInt(f/2))):(d%h!==0&&n+h>d&&(A=f-d%h),l&&(A=parseInt(f/2))),t=w?n*_*-1+A*_:n*m*-1+A*m,!0===v){var T,O=o.$el;if(T=n+R(e),t=(r=O&&O.childNodes[T])?-1*r.offsetLeft:0,!0===l){T=c?n+R(e):n,r=O&&O.children[T],t=0;for(var S=0;S<T;S++)t-=O&&O.children[S]&&O.children[S].offsetWidth;t-=parseInt(e.centerPadding),t+=r&&(y-r.offsetWidth)/2}}return t},J=function(e,t){return t.reduce(function(t,r){return t&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},Z=function(e){var t,r;J(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var n=e.slideCount+2*e.slidesToShow;e.vertical?r=n*e.slideHeight:t=function(e){return 1===e.slideCount?1:R(e)+e.slideCount+L(e)}(e)*e.slideWidth;var style={opacity:1,transition:"",WebkitTransition:""};return e.useTransform?style=l({},style,{WebkitTransform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",transform:e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",msTransform:e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)"}):e.vertical?style.top=e.left:style.left=e.left,e.fade&&(style={opacity:1}),t&&(style.width=t+"px"),r&&(style.height=r+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?style.marginTop=e.left+"px":style.marginLeft=e.left+"px"),style},ee=function(e){J(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var style=Z(e);return e.useTransform?(style.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,style.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?style.transition="top "+e.speed+"ms "+e.cssEase:style.transition="left "+e.speed+"ms "+e.cssEase,style},te={accessibility:{type:Boolean,default:!0},adaptiveHeight:{type:Boolean,default:!1},arrows:{type:Boolean,default:!0},asNavFor:{type:Object,default:null},autoplay:{type:Boolean,default:!1},autoplaySpeed:{type:Number,default:3e3},centerMode:{type:Boolean,default:!1},centerPadding:{type:String,default:"50px"},cssEase:{type:String,default:"ease"},dots:{type:Boolean,default:!1},dotsClass:{type:String,default:"slick-dots"},draggable:{type:Boolean,default:!0},edgeFriction:{type:Number,default:.35},fade:{type:Boolean,default:!1},focusOnSelect:{type:Boolean,default:!1},infinite:{type:Boolean,default:!0},initialSlide:{type:Number,default:0},lazyLoad:{type:String,default:null},pauseOnDotsHover:{type:Boolean,default:!1},pauseOnFocus:{type:Boolean,default:!1},pauseOnHover:{type:Boolean,default:!0},responsive:{type:Array,default:null},rows:{type:Number,default:1},rtl:{type:Boolean,default:!1},slidesPerRow:{type:Number,default:1},slidesToScroll:{type:Number,default:1},slidesToShow:{type:Number,default:1},speed:{type:Number,default:500},swipe:{type:Boolean,default:!0},swipeToSlide:{type:Boolean,default:!1},touchMove:{type:Boolean,default:!0},touchThreshold:{type:Number,default:5},useCSS:{type:Boolean,default:!0},useTransform:{type:Boolean,default:!0},variableWidth:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},waitForAnimate:{type:Boolean,default:!0}},re=Object.keys(te).reduce(function(e,t){return e[t]=te[t].default,e},{});function ne(source,e){if(null==source)return{};var t,i,r=function(source,e){if(null==source)return{};var t,i,r={},n=Object.keys(source);for(i=0;i<n.length;i++)t=n[i],e.indexOf(t)>=0||(r[t]=source[t]);return r}(source,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(source);for(i=0;i<n.length;i++)t=n[i],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(source,t)&&(r[t]=source[t])}return r}function ie(e){return ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie(e)}Object.keys(te).reduce(function(e,t){return e[t]=te[t].type,e},{}),r("cca6"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("ddb0");var oe=r("6dd8"),ae=r("f7fe"),se=r.n(ae),ce=function(e){var t,r,n,o,c;return n=(c=e.rtl?e.slideCount-1-e.index:e.index)<0||c>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),r=(c-e.currentSlide)%e.slideCount===0,c>e.currentSlide-o-1&&c<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=c&&c<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":r,"slick-cloned":n,"slick-current":c===e.currentSlide}},ue=function(e,t){return null!=e.key&&String(e.key)||t},le={name:"SliderTrack",props:$.TRACK,methods:{cloneSlide:function(e,t){var r=this,n=I(e);return n.key=t.key,T(n,"class",t.class),T(n,"attrs",t.attrs),T(n,"style",t.style),T(n,"on",{click:function(n){C(e,"on.click",function(){})(n),r.$emit("childClicked",t.childOnClickOptions)}}),n},renderSlides:function(e,t){var r,n=this,o=this.$createElement,c=[],d=[],f=[],h=t.length,m=k(e),y=M(e);return t.forEach(function(t,v){var _,E={message:"children",index:v,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};_=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(v)>=0?t:o("div");var w=function(e){var style={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(style.width="number"==typeof e.slideWidth?"".concat(e.slideWidth,"px"):e.slideWidth),e.fade&&(style.position="relative",e.vertical?style.top="".concat(-e.index*parseInt(e.slideHeight),"px"):style.left="".concat(-e.index*parseInt(e.slideWidth),"px"),style.opacity=e.currentSlide===e.index?1:0,style.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase),style}(l({},e,{index:v})),A=ce(l({},e,{index:v}));if(c.push(n.cloneSlide(_,{key:"original"+ue(_,v),class:A,style:l({outline:"none"},w),attrs:{tabIndex:"-1","data-index":v,"aria-hidden":"".concat(!A["slick-active"])},childOnClickOptions:E})),e.infinite&&!1===e.fade&&h>
2e.slidesToShow){var T=h-v;T<=R(e)&&h!==e.slidesToShow&&((r=-T)>=m&&(_=t),A=ce(l({},e,{index:r})),d.push(n.cloneSlide(_,{key:"precloned"+ue(_,r),class:A,style:w,attrs:{tabIndex:"-1","data-index":r,"aria-hidden":"".concat(!A["slick-active"])},childOnClickOptions:E}))),h!==e.slidesToShow&&((r=h+v)<y&&(_=t),A=ce(l({},e,{index:r})),f.push(n.cloneSlide(_,{key:"postcloned"+ue(_,r),class:A,style:w,attrs:{tabIndex:"-1","data-index":r,"aria-hidden":"".concat(!A["slick-active"])},childOnClickOptions:E})))}},this),e.rtl?d.concat(c,f).reverse():d.concat(c,f)}},render:function(){var e=arguments[0],t=this.renderSlides(this.$props,this.$slots.default);return e("div",{class:{"slick-track":!0,"slick-center":this.$props.centerMode},style:this.trackStyle},[t])}},de=le,pe=(r("6ea2"),h(de,void 0,void 0,!1,null,"e4caeaf8",null).exports);function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=new Array(t);i<t;i++)r[i]=e[i];return r}r("b0c0"),r("25f0");var he,me={name:"SliderArrow",props:[].concat((he=$.ARROW,function(e){if(Array.isArray(e))return fe(e)}(he)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(he)||function(e,t){if(e){if("string"==typeof e)return fe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?fe(e,t):void 0}}(he)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),["type"]),render:function(){var e,t=this,r=arguments[0],n={"slick-arrow":!0},o=!0,option={currentSlide:this.currentSlide,slideCount:this.slideCount};return"previous"===this.type?(n["slick-prev"]=!0,!this.infinite&&(0===this.currentSlide||this.slideCount<=this.slidesToShow)&&(n["slick-disabled"]=!0,o=!1),option.key="0",e=this.prevArrow?this.prevArrow(option)[0]:r("button",{attrs:{type:"button","data-role":"none"},style:"display: block;"},["Previous"])):(n["slick-next"]=!0,W(this.$props)||(n["slick-disabled"]=!0,o=!1),option.key="1",e=this.nextArrow?this.nextArrow(option)[0]:r("button",{attrs:{type:"button","data-role":"none"},style:"display: block;"},["Next"])),O(e,"key",option.key),T(e,"class",n),T(e,"on",{click:function(){o&&t.$emit("arrowClicked",{message:t.type})}}),e}},ye=me,ve=(r("f013"),h(ye,void 0,void 0,!1,null,"21137603",null).exports),ge=(r("1276"),{name:"SliderDots",props:$.DOT,render:function(){var e,t=this,r=arguments[0],n=(e={slideCount:this.slideCount,slidesToScroll:this.slidesToScroll,slidesToShow:this.slidesToShow,infinite:this.infinite}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,c=Array.apply(null,Array(n+1).join("0").split("")).map(function(e,i){var n=i*t.slidesToScroll,o=i*t.slidesToScroll+(t.slidesToScroll-1),c={"slick-active":t.currentSlide>=n&&t.currentSlide<=o},l={message:"dots",index:i,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide},d=t.customPaging?t.customPaging(i)[0]:r("button",[i+1]);return r("li",{key:i,class:c,on:{click:function(){return t.$emit("dotClicked",l)}}},[d])}),l=o({},this.dotsClass,!0);return r("ul",{style:{display:"block"},class:l},[c])}}),_e=h(ge,void 0,void 0,!1,null,null,null).exports,be={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0},Ee={name:"InnerSlider",components:{SliderTrack:pe,SliderArrow:ve,SliderDots:_e},mixins:[m],inheritAttrs:!1,props:l({},te,{unslick:{type:Boolean,default:!1},prevArrow:Function,nextArrow:Function,customPaging:Function}),data:function(){return l({},be,{currentSlide:this.initialSlide})},computed:{slideCount:function(){return this.$slots.default.length},spec:function(){return l({},this.$props,{},this.$data,{slideCount:this.slideCount})}},created:function(){if(this.callbackTimers=[],this.clickable=!0,this.debouncedResize=null,this.ssrInit(),this.$parent.$emit("init"),this.lazyLoad){var e=j(this.spec);e.length>0&&(this.lazyLoadedList=this.lazyLoadedList.concat(e),this.$parent.$emit("lazyLoad",e))}},mounted:function(){var e=this,t=l({listRef:this.$refs.list,trackRef:this.$refs.track,children:this.$slots.default},this.$props);this.updateState(t,!0),this.adaptHeight(),this.autoPlay&&this.autoPlay("update"),"progressive"===this.lazyLoad&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new oe.a(function(){e.animating?(e.onWindowResized(!1),e.callbackTimers.push(setTimeout(function(){return e.onWindowResized()},e.speed))):e.onWindowResized()}),this.ro.observe(this.$refs.list),Array.prototype.forEach.call(this.$refs.list.querySelectorAll(".slick-slide"),function(t){t.onfocus=e.pauseOnFocus?e.onSlideFocus:null,t.onblur=e.pauseOnFocus?e.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)},updated:function(){if(this.checkImagesLoad(),this.$parent.$emit("reInit"),this.lazyLoad){var e=j(l({},this.$props,{},this.$data));e.length>0&&(this.lazyLoadedList=this.lazyLoadedList.concat(e),this.$parent.$emit("lazyLoad",e))}this.adaptHeight()},beforeDestroy:function(){this.ro.unobserve(this.$refs.list),this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEac
2h(function(e){return clearTimeout(e)}),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer)},methods:{onPropsUpdated:function(){for(var e=this.$props,t=l({listRef:this.$refs.list,trackRef:this.$refs.track,children:this.$slots.default},e,{},this.$data),r=!1,n=0,o=Object.keys(this.$props);n<o.length;n++){var c=o[n];if(!e.hasOwnProperty(c)){r=!0;break}if("object"!==ie(e[c])&&"function"!=typeof e[c]&&e[c]!==this.$props[c]){r=!0;break}}this.updateState(t,r),this.currentSlide>=this.slideCount&&this.changeSlide({message:"index",index:this.slideCount-e.slidesToShow,currentSlide:this.currentSlide}),e.autoplay?this.autoPlay("update"):this.pause("paused")},updateState:function(e,t){var r=function(e){var t,r=e.children.length,n=Math.ceil(K(e.listRef)),o=Math.ceil(K(e.trackRef));if(e.vertical)t=n;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=n/100),t=Math.ceil((n-c)/e.slidesToShow)}var l=e.listRef&&G(e.listRef.querySelector('[data-index="0"]')),d=l*e.slidesToShow,f=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(f=r-1-e.initialSlide);var h=e.lazyLoadedList||[],m=j({currentSlide:f,lazyLoadedList:h});h.concat(m);var y={slideCount:r,slideWidth:t,listWidth:n,trackWidth:o,currentSlide:f,slideHeight:l,listHeight:d,lazyLoadedList:h};return null===e.autoplaying&&e.autoplay&&(y.autoplaying="playing"),y}(e);e=l({},e,{},r,{slideIndex:r.currentSlide}),e=l({},e,{left:X(e)});var n=Z(e);(t||this.slideCount!==e.children.length)&&(r.trackStyle=n),Object.assign(this.$data,r)},adaptHeight:function(){if(this.adaptiveHeight&&this.$refs.list){var e=this.$refs.list.querySelector('[data-index="'.concat(this.currentSlide,'"]'));this.$refs.list.style.height=G(e)+"px"}},ssrInit:function(){var e=R(this.spec),t=L(this.spec);if(this.variableWidth){var r=[],n=[],o=[];this.$slots.default.forEach(function(e){var t=N(e).width;o.push(t),r.push(t)});for(var i=0;i<e;i++)n.push(o[o.length-1-i]),r.push(o[o.length-1-i]);for(var c=0;c<t;c++)r.push(o[c]);for(var l=0;l<this.currentSlide;l++)n.push(o[l]);r=r.filter(function(e){return e}),n=n.filter(function(e){return e});var d={width:"calc(".concat(r.join(" + "),")"),left:"calc(".concat(n.map(function(e){return"-".concat(e)}).join(" + "),")")};if(this.centerMode){var f=o[this.currentSlide];d.left="calc(".concat(n.map(function(e){return"-".concat(e)}).join(" + ")," + (100% - ").concat(f,") / 2 )")}this.trackStyle=d}else{var h=e+t+this.slideCount,m=100/this.slidesToShow*h,y=100/h,v=-y*(e+this.currentSlide)*m/100;this.centerMode&&(v+=(100-y*m/100)/2),this.slideWidth=y+"%",this.trackStyle={width:m+"%",left:v+"%"}}},slideHandler:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.asNavFor,o=this.speed,c=this.currentSlide,d=function(e){var t=e.waitForAnimate,r=e.animating,n=e.fade,o=e.infinite,c=e.index,d=e.slideCount,f=e.lazyLoadedList,h=e.lazyLoad,m=e.currentSlide,y=e.centerMode,v=e.slidesToScroll,_=e.slidesToShow,E=e.useCSS;if(t&&r)return{};var w,A,T,O=c,S={},I={};if(n){if(!o&&(c<0||c>=d))return{};c<0?O=c+d:c>=d&&(O=c-d),h&&f.indexOf(O)<0&&f.push(O),S={animating:!0,currentSlide:O,lazyLoadedList:f},I={animating:!1}}else w=O,O<0?(w=O+d,o?d%v!==0&&(w=d-d%v):w=0):!W(e)&&O>m?O=w=m:y&&O>=d?(O=o?d:d-1,w=o?0:d-1):O>=d&&(w=O-d,o?d%v!==0&&(w=0):w=d-_),A=X(l({},e,{slideIndex:O})),T=X(l({},e,{slideIndex:w})),o||(A===T&&(O=w),A=T),h&&f.concat(j(l({},e,{currentSlide:O}))),E?(S={animating:!0,currentSlide:w,trackStyle:ee(l({},e,{left:A})),lazyLoadedList:f},I={animating:!1,currentSlide:w,trackStyle:Z(l({},e,{left:T})),swipeLeft:null}):S={currentSlide:w,trackStyle:Z(l({},e,{left:T})),lazyLoadedList:f};return{state:S,nextState:I}}(l({index:e},this.$props,{},this.$data,{trackRef:this.$refs.track,useCSS:this.useCSS&&!r})),f=d.state,h=d.nextState;if(f){this.$parent.$emit("beforeChange",c,f.currentSlide);var m=f.lazyLoadedList.filter(function(e){return t.lazyLoadedList.indexOf(e)<0});m.length&&this.$parent.$emit("lazyLoad",m),Object.assign(this.$data,f),n&&n.goTo(e),h&&(this.animationEndCallback=setTimeout(function(){var e=h.animating,r=ne(h,["animating"]);Object.assign(t.$data,r),t.callbackTimers.push(setTimeout(function(){t.animating=e},10)),t.$parent.$emit("afterChange",f.currentSlide),t.animationEndCallback=void 0},o))}},onWindowResized:function(e){var t=this;this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=se()(function(){return t.resizeWindow(e)},50),this.debouncedResize()},resizeWindow:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.$refs.track&&this.$refs.track.$el){var t=l({listRef:this.$refs.list,trackRef:this.$refs.track,children:this.$slots.default},this.$props,{},this.$data);this.updateState(t,e),this.autoplay?this.autoPlay("update"):this.pause("paused"),this.animating=!1,clearTimeout(this.animationEndCallback),this.animationEndCallback=void 0}},checkImagesLoad:function(){var e=this,t=this.$refs.list.querySelectorAll(".slick-slide img"),r=t.length,n=0;Array.prototype.forEach.call(t,function(image){var t=function(){return++n&&n>=r&&e.onWindowResized()};if(image.onclick){var o=image.onclick;image.onclick=function(){o(),image.parentNode.focus()}}else image.onclick=function(){return image.parentNode.focus()};image.onload||(e.lazyLoad?image.onload=function(){e.adaptHeight(),e.callbackTimers.push(setTimeout(e.onWindowResized,e.speed))}:(image.onload=t,image.onerror=function(){t(),e.$parent.$emit("lazyLoadError")}))})},progressiveLazyLoad:function(){for(var e=[],t=l({},this.$props,{},this.$data),r=this.currentSlide;r<this.slideCount+L(t);r++)if(this.lazyLoadedList.indexOf(r)<0){e.push(r);break}for(var n=this.currentSlide-1;n>=-R(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.lazyLoadedList=this.lazyLoadedList.concat(e),this.$parent.$emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),this.lazyLoadTimer=void 0)},clickHandler:function(e){!1===this.clickable&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler:function(e){var t=function(e,t,r){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.ke
2yCode?r?"next":"previous":39===e.keyCode?r?"previous":"next":""}(e,this.accessibility,this.rtl);""!==t&&this.changeSlide({message:t})},changeSlide:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=l({},this.$props,{},this.$data),n=B(r,e);(0===n||n)&&(!0===t?this.slideHandler(n,t):this.slideHandler(n))},swipeStart:function(e){this.verticalSwiping&&this.disableBodyScroll();var t=function(e,t,r){return!t||!r&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}}(e,this.swipe,this.draggable);""!==t&&Object.assign(this.$data,t)},swipeMove:function(e){var t=this,r=function(e,t){var r=t.scrolling,n=t.animating,o=t.vertical,c=t.swipeToSlide,d=t.verticalSwiping,f=t.rtl,h=t.currentSlide,m=t.edgeFriction,y=t.edgeDragged,v=t.onEdge,_=t.swiped,E=t.swiping,w=t.slideCount,A=t.slidesToScroll,T=t.infinite,O=t.touchObject,S=t.swipeEvent,I=t.listHeight,C=t.listWidth;if(!r){if(n)return e.preventDefault();o&&c&&d&&e.preventDefault();var N,P={},R=X(t);O.curX=e.touches?e.touches[0].pageX:e.clientX,O.curY=e.touches?e.touches[0].pageY:e.clientY,O.swipeLength=Math.round(Math.sqrt(Math.pow(O.curX-O.startX,2)));var L=Math.round(Math.sqrt(Math.pow(O.curY-O.startY,2)));if(!d&&!E&&L>10)return{scrolling:!0};d&&(O.swipeLength=L);var D=(f?-1:1)*(O.curX>O.startX?1:-1);d&&(D=O.curY>O.startY?1:-1);var x=Math.ceil(w/A),k=Q(t.touchObject,d),M=O.swipeLength;return T||(0===h&&"right"===k||h+1>=x&&"left"===k||!W(t)&&"left"===k)&&(M=O.swipeLength*m,!1===y&&v&&(v(k),P.edgeDragged=!0)),!_&&S&&(S(k),P.swiped=!0),N=o?R+M*(I/C)*D:f?R-M*D:R+M*D,d&&(N=R+M*D),P=l({},P,{touchObject:O,swipeLeft:N,trackStyle:Z(l({},t,{left:N}))}),Math.abs(O.curX-O.startX)<.8*Math.abs(O.curY-O.startY)||O.swipeLength>10&&(P.swiping=!0,e.preventDefault()),P}}(e,l({},this.$props,{},this.$data,{trackRef:this.$refs.track,listRef:this.$refs.list,slideIndex:this.currentSlide,onEdge:function(e){return t.$parent.$emit("edge",e)},swipeEvent:function(e){return t.$parent.$emit("swipe",e)}}));r&&(r.swiping&&(this.clickable=!1),Object.assign(this.$data,r))},swipeEnd:function(e){var t=function(e,t){var r=t.dragging,n=t.swipe,o=t.touchObject,c=t.listWidth,d=t.touchThreshold,f=t.verticalSwiping,h=t.listHeight,m=t.currentSlide,y=t.swipeToSlide,v=t.scrolling,_=t.onSwipe;if(!r)return n&&e.preventDefault(),{};var E=f?h/d:c/d,w=Q(o,f),A={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(v)return A;if(!o.swipeLength)return A;if(o.swipeLength>E){var T,O;switch(e.preventDefault(),_&&_(w),w){case"left":case"up":O=m+z(t),T=y?V(t,O):O,A.currentDirection=0;break;case"right":case"down":O=m-z(t),T=y?V(t,O):O,A.currentDirection=1;break;default:T=m}A.triggerSlideHandler=T}else{var S=X(t);A.trackStyle=ee(l({},t,{left:S}))}return A}(e,l({},this.$props,{},this.$data,{trackRef:this.$refs.track,listRef:this.$refs.list,slideIndex:this.currentSlide}));if(t){var r=t.triggerSlideHandler;this.triggerSlideHandler=void 0,Object.assign(this.$data,t),void 0!==r&&(this.slideHandler(r),this.verticalSwiping&&this.enableBodyScroll())}},prev:function(){var e=this;this.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"previous"})},0))},next:function(){var e=this;this.callbackTimers.push(setTimeout(function(){return e.changeSlide({message:"next"})},0))},goTo:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:e,currentSlide:t.currentSlide},r)},0))},play:function(){var e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!W(l({},this.$props,{},this.$data)))return!1;e=this.currentSlide+this.slidesToScroll}this.slideHandler(e)},autoPlay:function(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);var t=this.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.autoplaying="playing"},pause:function(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);var t=this.autoplaying;"paused"===e?this.autoplaying="paused":"focused"===e?"hovered"!==t&&"playing"!==t||(this.autoplaying="focused"):"playing"===t&&(this.autoplaying="hovered")},onDotsOver:function(){this.autoplay&&this.pause("hovered")},onDotsLeave:function(){this.autoplay&&"hovered"===this.autoplaying&&this.autoPlay("leave")},onTrackOver:function(){this.autoplay&&this.pause("hovered")},onTrackLeave:function(){this.autoplay&&"hovered"===this.autoplaying&&this.autoPlay("leave")},onSlideFocus:function(){this.autoplay&&this.pause("focused")}
2,onSlideBlur:function(){this.autoplay&&"focused"===this.autoplaying&&this.autoPlay("blur")},selectHandler:function(e){this.focusOnSelect&&this.changeSlide(e)}},render:function(){var e=arguments[0],t={"slick-slider":!0,"slick-initialized":!0,"slick-vertical":this.vertical},r=Y(this.spec,$.TRACK);r=H(l({},r));var n,o,c,d=this.pauseOnHover,f=H({mouseenter:d?this.onTrackOver:void 0,mouseover:d?this.onTrackOver:void 0,mouseleave:d?this.onTrackLeave:void 0});if(!0===this.dots&&this.slideCount>=this.slidesToShow){var h=Y(this.spec,$.DOT),m=this.pauseOnDotsHover,y=H({mouseenter:m?this.onDotsLeave:void 0,mouseover:m?this.onDotsOver:void 0,mouseleave:m?this.onDotsLeave:void 0});n=e(_e,{props:l({},h),nativeOn:l({},y),on:{dotClicked:this.changeSlide}})}var v=Y(this.spec,$.ARROW);this.arrows&&(o=e(ve,{props:l({},l({},v,{type:"previous"})),on:{arrowClicked:this.changeSlide}}),c=e(ve,{props:l({},l({},v,{type:"next"})),on:{arrowClicked:this.changeSlide}}));var _={};this.vertical&&(_={height:"".concat(this.listHeight,"px")});var E={};!1===this.vertical?!0===this.centerMode&&(E={padding:"0px "+this.centerPadding}):!0===this.centerMode&&(E={padding:this.centerPadding+" 0px"});var w,A=l({},this.$parent.$vnode.data.style);this.unslick||(A=l({},A,{},(w=_,Object.keys(w).filter(function(e){return void 0!==w[e]&&null!==w[e]}).reduce(function(e,t){return e[t]=w[t],e},{})),{},E));var T=this.accessibility,O=this.dragging,S=this.touchMove,I=H({click:this.clickHandler,mousedown:S?this.swipeStart:void 0,mousemove:O&&S?this.swipeMove:void 0,mouseup:S?this.swipeEnd:void 0,mouseleave:O&&S?this.swipeEnd:void 0,touchstart:S?this.swipeStart:void 0,touchmove:O&&S?this.swipeMove:void 0,touchend:S?this.swipeEnd:void 0,touchcancel:O&&S?this.swipeEnd:void 0,keydown:T?this.keyHandler:void 0});return e("div",{class:t,attrs:{dir:!this.unslick&&"ltr"}},[this.unslick?"":o,e("div",{ref:"list",class:"slick-list",on:l({},I),style:A},[e(pe,{ref:"track",props:l({},r),nativeOn:l({},f),on:{childClicked:this.selectHandler}},[this.$slots.default])]),this.unslick?"":c,this.unslick?"":n])}},we=Ee,Ae=(r("eaf9"),h(we,void 0,void 0,!1,null,"3d1a4f76",null).exports),Te=P()&&r("8e95"),Oe={name:"VueSlickCarousel",components:{InnerSlider:Ae},mixins:[m],inheritAttrs:!1,props:te,data:function(){return{breakpoint:null}},computed:{settings:function(){var e,t,r=this,n=H(this.$props);return e=this.breakpoint?"unslick"===(t=this.responsive.filter(function(e){return e.breakpoint===r.breakpoint}))[0].settings?"unslick":l({},re,{},n,{},t[0].settings):l({},re,{},n),e.centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1),e}},created:function(){this.makeBreakpoints()},beforeDestroy:function(){this.clearBreakpoints()},methods:{prev:function(){this.$refs.innerSlider.prev()},next:function(){this.$refs.innerSlider.next()},goTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$refs.innerSlider.goTo(e,t)},pause:function(){this.$refs.innerSlider.pause("paused")},play:function(){this.$refs.innerSlider.autoPlay("play")},onPropsUpdated:function(){this.clearBreakpoints(),this.makeBreakpoints()},clearBreakpoints:function(){this.responsiveMediaHandlers.forEach(function(e){return Te.unregister(e.query,e.handler)}),this.responsiveMediaHandlers=[]},media:function(e,t){P()&&(Te.register(e,t),this.responsiveMediaHandlers.push({query:e,handler:t}))},makeBreakpoints:function(){var e=this;if(this.breakpoint=null,this.responsiveMediaHandlers=[],this.responsive){var t=this.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(r,n){var o=f()({minWidth:0===n?0:t[n-1]+1,maxWidth:r});e.media(o,function(){e.breakpoint=r})});var r=f()({minWidth:t.slice(-1)[0]});this.media(r,function(){e.breakpoint=null})}}},render:function(){var e=arguments[0],t=this.settings,r=this.$slots.default||[];if("unslick"===t)return e("div",{class:"regular slider"},[r]);t.prevArrow=this.$scopedSlots.prevArrow,t.nextArrow=this.$scopedSlots.nextArrow,t.customPaging=this.$scopedSlots.customPaging,r=r.filter(function(e){return!!e.tag});for(var n=[],o=null,i=0;i<r.length;i+=t.rows*t.slidesPerRow){for(var c=[],d=i;d<i+t.rows*t.slidesPerRow;d+=t.slidesPerRow){for(var f=[],h=d;h<d+t.slidesPerRow&&(t.variableWidth&&N(r[h])&&(o=N(r[h]).width),!(h>=r.length));h+=1){var m=I(r[h]);O(m,"key",100*i+10*d+h),T(m,"attrs",{tabIndex:-1}),T(m,"style",{width:"".concat(100/t.slidesPerRow,"%"),display:"inline-block"}),f.push(m)}c.push(e("div",{key:10*i+d},[f]))}t.variableWidth?n.push(e("div",{key:i,style:{width:o}},[c])):n.push(e("div",{key:i},[c]))}return n.length<=t.slidesToShow&&(t.unslick=!0),e(Ae,{ref:"innerSlider",props:l({},t),key:Object.values(t).join("")},[n])}},Se=h(Oe,void 0,void 0,!1,null,null,null).exports;t.default=Se},fb6a:function(e,t,r){"use strict";
2var n=r("23e7"),o=r("861d"),c=r("e8b5"),l=r("23cb"),d=r("50c4"),f=r("fc6a"),h=r("8418"),m=r("b622"),y=r("1dde"),v=r("ae40"),_=y("slice"),E=v("slice",{ACCESSORS:!0,0:0,1:2}),w=m("species"),A=[].slice,T=Math.max;n({target:"Array",proto:!0,forced:!_||!E},{slice:function(e,t){var r,n,m,y=f(this),v=d(y.length),_=l(e,v),E=l(void 0===t?v:t,v);if(c(y)&&("function"!=typeof(r=y.constructor)||r!==Array&&!c(r.prototype)?o(r)&&null===(r=r[w])&&(r=void 0):r=void 0,r===Array||void 0===r))return A.call(y,_,E);for(n=new(void 0===r?Array:r)(T(E-_,0)),m=0;_<E;_++,m++)_ in y&&h(n,m,y[_]);return n.length=m,n}})},fc6a:function(e,t,r){var n=r("44ad"),o=r("1d80");e.exports=function(e){return n(o(e))}},fdb2:function(e,t,r){},fdbc:function(e,t){e.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}},fdbf:function(e,t,r){var n=r("4930");e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default},e.exports=n()},,,function(e,t,r){e.exports={}},,,function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Jsonld=void 0;var o=n(r(939)),c=n(r(941));t.Jsonld=c.default,t.default={install:function(e){e.mixin((0,o.default)())}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=c(r(940));t.default=function(){return{beforeCreate:function(){var e,t,r=this;if(this.$options&&"function"==typeof this.$options.jsonld){var n=null!==(e=this.$options.head)&&void 0!==e?e:null===(t=this.$options.computed)||void 0===t?void 0:t.$metaInfo;this.$options.head=function(){return l.default.call(r,n)}}}}}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},n.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getJsonLdHeadObject=void 0;t.getJsonLdHeadObject=function(e,t){var r=t.call(e);return null===r?null:{script:[{hid:"nuxt-jsonld-"+function(s){for(var e=0,i=0;i<s.length;i+=1)e=(e<<5)-e+s.charCodeAt(i),e&=e;return e}(JSON.stringify(r,null,"")).toString(16),type:"application/ld+json",json:r}]}};var c=function(e){return null==e||0===Object.keys(e).length};t.default=function(e){var head=function(e,t){return"function"==typeof t?t.call(e):t||null}(this,e),r=(0,t.getJsonLdHeadObject)(this,this.$options.jsonld);return c(head)&&null===r?{}:c(head)?r:null===r?head:n(n({},head),{script:o(o([],head.script||[],!0),r.script,!0)})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.options||{};t.methods&&t.methods.jsonld&&"function"==typeof t.methods.jsonld&&(t.jsonld=t.methods.jsonld,delete t.methods.jsonld)}},,function(e,t,r){"use strict";r.r(t);var n=r(114);r.d(t,"Cache",function(){return n.default});var o=r(574);r.d(t,"cacheAdapterEnhancer",function(){return o.a});var c=r(576);r.d(t,"retryAdapterEnhancer",function(){return c.a});var l=r(575);r.d(t,"throttleAdapterEnhancer",function(){return l.a})},function(e,t,r){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var n=r(22).__importDefault(r(164));t.default=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],o=e[1],c=e[2],l=n.default.getUri({url:r,params:o,paramsSerializer:c}),d=l.split("?"),f=d[0],h=d[1];if(h){var m=h.split("&");return"".concat(f,"?").concat(m.sort().join("&"))}return l}},,,,,,function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("./errors"),c=e("../lib/assign").assign,l=e("../lib/methods"),d=e("../lib/convert-methods-to-error"),f=e("@braintree/wrap-promise");function h(e){this._client=e.client}h.prototype.getRewardsBalance=function(e){var data,t=e.nonce;
2return t?(delete(data=c({_meta:{source:"american-express"},paymentMethodNonce:t},e)).nonce,this._client.request({method:"get",endpoint:"payment_methods/amex_rewards_balance",data:data}).catch(function(e){return Promise.reject(new n({type:o.AMEX_NETWORK_ERROR.type,code:o.AMEX_NETWORK_ERROR.code,message:"A network error occurred when getting the American Express rewards balance.",details:{originalError:e}}))})):Promise.reject(new n({type:o.AMEX_NONCE_REQUIRED.type,code:o.AMEX_NONCE_REQUIRED.code,message:"getRewardsBalance must be called with a nonce."}))},h.prototype.getExpressCheckoutProfile=function(e){return e.nonce?this._client.request({method:"get",endpoint:"payment_methods/amex_express_checkout_cards/"+e.nonce,data:{_meta:{source:"american-express"},paymentMethodNonce:e.nonce}}).catch(function(e){return Promise.reject(new n({type:o.AMEX_NETWORK_ERROR.type,code:o.AMEX_NETWORK_ERROR.code,message:"A network error occurred when getting the American Express Checkout nonce profile.",details:{originalError:e}}))}):Promise.reject(new n({type:o.AMEX_NONCE_REQUIRED.type,code:o.AMEX_NONCE_REQUIRED.code,message:"getExpressCheckoutProfile must be called with a nonce."}))},h.prototype.teardown=function(){return d(this,l(h.prototype)),Promise.resolve()},t.exports=f.wrapPrototype(h)},{"../lib/assign":12,"../lib/braintree-error":14,"../lib/convert-methods-to-error":16,"../lib/methods":21,"./errors":9,"@braintree/wrap-promise":6}],9:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={AMEX_NONCE_REQUIRED:{type:n.types.MERCHANT,code:"AMEX_NONCE_REQUIRED"},AMEX_NETWORK_ERROR:{type:n.types.NETWORK,code:"AMEX_NETWORK_ERROR"}}},{"../lib/braintree-error":14}],10:[function(e,t,r){"use strict";var n=e("./american-express"),o=e("../lib/basic-component-verification"),c=e("../lib/create-deferred-client"),l=e("../lib/create-assets-url"),d="3.144.0",f=e("@braintree/wrap-promise");function h(e){var t="American Express";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:t})}).then(function(t){return e.client=t,new n(e)})}t.exports={create:f(h),VERSION:d}},{"../lib/basic-component-verification":13,"../lib/create-assets-url":17,"../lib/create-deferred-client":18,"./american-express":8,"@braintree/wrap-promise":6}],11:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],12:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],13:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":14,"./errors":20}],14:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e}
2,t.exports=o},{"./enumerate":19}],15:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],16:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":14,"./errors":20}],17:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":15}],18:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":11,"./braintree-error":14,"./errors":20}],19:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],20:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":14}],21:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}]},{},[10])(10)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("../lib/analytics"),c=e("./errors"),l=e("../lib/methods"),d=e("../lib/convert-methods-to-error"),f=e("@braintree/wrap-promise"),h=e("../lib/in-iframe");function m(e){this._instantiatedWithClient=Boolean(!e.useDeferredClient),this._client=e.client,this._createPromise=e.createPromise,this._client&&this._setMerchantIdentifier()}m.prototype._waitForClient=function(){return this._client?Promise.resolve():this._createPromise.then(function(e){this._client=e,this._setMerchantIdentifier()}.bind(this))},m.prototype._setMerchantIdentifier=function(){var e=this._client.getConfiguration().gatewayConfiguration.applePayWeb;e&&Object.defineProperty(this,"merchantIdentifier",{value:e.merchantIdentifier,configurable:!1,writable:!1})},m.prototype.createPaymentRequest=function(e){return this._instantiatedWithClient?this._createPaymentRequestSynchronously(e):this._waitForClient().then(function(){return this._createPaymentRequestSynchronously(e)}.bind(this))},m.prototype._createPaymentRequestSynchronously=function(e){var t=this._client.getConfiguration().gatewayConfiguration.applePayWeb,r={countryCode:t.countryCode,currencyCode:t.currencyCode,merchantCapabilities:t.merchantCapabilities||["supports3DS"],supportedNetworks:t.supportedNetworks.map(function(e){return"mastercard"===e?"masterCard":e})};return Object.assign({},r,e)},m.prototype.performValidation=function(e){var t=this;return e&&e.validationURL?this._waitForClient().then(function(){var r={validationUrl:e.validationURL,domainName:e.domainName||(h()?window.parent.location.hostname:window.location.hostname),merchantIdentifier:e.merchantIdentifier||t.merchantIdentifier};return null!=e.displayName&&(r.displayName=e.displayName),t._client.request({method:"post",endpoint:"apple_pay_web/sessions",data:{_meta:{source:"apple-pay"},applePayWebSession:r}})}).then(function(e){return o.sendEvent(t._client,"applepay.performValidation.succeeded"),Promise.resolve(e)}).catch(function(e){return o.sendEvent(t._client,"applepay.performValidation.failed"),"CLIENT_REQUEST_ERROR"===e.code?Promise.reject(new n({type:c.APPLE_PAY_MERCHANT_VALIDATION_FAILED.type,code:c.APPLE_PAY_MERCHANT_VALIDATION_FAILED.code,message:c.APPLE_PAY_MERCHANT_VALIDATION_FAILED.message,details:{originalError:e.details.originalError}})):Promise.reject(new n({type:c.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.type,code:c.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.code,message:c.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.message,details:{originalError:e}}))}
2):Promise.reject(new n(c.APPLE_PAY_VALIDATION_URL_REQUIRED))},m.prototype.tokenize=function(e){var t=this;return e.token?this._waitForClient().then(function(){return t._client.request({method:"post",endpoint:"payment_methods/apple_payment_tokens",data:{_meta:{source:"apple-pay"},applePaymentToken:Object.assign({},e.token,{paymentData:btoa(JSON.stringify(e.token.paymentData))})}})}).then(function(e){return o.sendEvent(t._client,"applepay.tokenize.succeeded"),Promise.resolve(e.applePayCards[0])}).catch(function(e){return o.sendEvent(t._client,"applepay.tokenize.failed"),Promise.reject(new n({type:c.APPLE_PAY_TOKENIZATION.type,code:c.APPLE_PAY_TOKENIZATION.code,message:c.APPLE_PAY_TOKENIZATION.message,details:{originalError:e}}))}):Promise.reject(new n(c.APPLE_PAY_PAYMENT_TOKEN_REQUIRED))},m.prototype.teardown=function(){return d(this,l(m.prototype)),Promise.resolve()},t.exports=f.wrapPrototype(m)},{"../lib/analytics":12,"../lib/braintree-error":16,"../lib/convert-methods-to-error":18,"../lib/in-iframe":24,"../lib/methods":26,"./errors":9,"@braintree/wrap-promise":6}],9:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={APPLE_PAY_NOT_ENABLED:{type:n.types.MERCHANT,code:"APPLE_PAY_NOT_ENABLED",message:"Apple Pay is not enabled for this merchant."},APPLE_PAY_VALIDATION_URL_REQUIRED:{type:n.types.MERCHANT,code:"APPLE_PAY_VALIDATION_URL_REQUIRED",message:"performValidation must be called with a validationURL."},APPLE_PAY_MERCHANT_VALIDATION_NETWORK:{type:n.types.NETWORK,code:"APPLE_PAY_MERCHANT_VALIDATION_NETWORK",message:"A network error occurred when validating the Apple Pay merchant."},APPLE_PAY_MERCHANT_VALIDATION_FAILED:{type:n.types.MERCHANT,code:"APPLE_PAY_MERCHANT_VALIDATION_FAILED",message:"Make sure you have registered your domain name in the Braintree Control Panel."},APPLE_PAY_PAYMENT_TOKEN_REQUIRED:{type:n.types.MERCHANT,code:"APPLE_PAY_PAYMENT_TOKEN_REQUIRED",message:"tokenize must be called with a payment token."},APPLE_PAY_TOKENIZATION:{type:n.types.NETWORK,code:"APPLE_PAY_TOKENIZATION",message:"A network error occurred when processing the Apple Pay payment."}}},{"../lib/braintree-error":16}],10:[function(e,t,r){"use strict";var n=e("./apple-pay"),o=e("../lib/analytics"),c=e("../lib/braintree-error"),l=e("../lib/basic-component-verification"),d=e("../lib/create-assets-url"),f=e("../lib/create-deferred-client"),h=e("./errors"),m="3.144.0",y=e("@braintree/wrap-promise");function v(e){var t="Apple Pay";return l.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){var r,l=f.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:d.create(e.authorization),name:t}).then(function(e){return e.getConfiguration().gatewayConfiguration.applePayWeb?(o.sendEvent(e,"applepay.initialized"),e):Promise.reject(new c(h.APPLE_PAY_NOT_ENABLED))});return e.createPromise=l,r=new n(e),e.useDeferredClient?r:l.then(function(e){return r._client=e,r})})}t.exports={create:y(v),VERSION:m}},{"../lib/analytics":12,"../lib/basic-component-verification":15,"../lib/braintree-error":16,"../lib/create-assets-url":19,"../lib/create-deferred-client":21,"./apple-pay":8,"./errors":9,"@braintree/wrap-promise":6}],11:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":17,"./create-authorization-data":20,"./json-clone":25}],12:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":11,"./assign":14,"./constants":17}],13:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],14:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],15:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":16,"./errors":23}],16:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":22}],17:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],18:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":16,"./errors":23}],19:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":17}],20:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":17,"../lib/vendor/polyfill":27}],21:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":13,"./braintree-error":16,"./errors":23}],22:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],23:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":16}],24:[function(e,t,r){"use strict";t.exports=function(e){e=e||window;try{return e.self!==e.top}catch(e){return!0}}},{}],25:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],26:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],27:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}]},{},[10])(10)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],4:[function(e,t,r){"use strict";function n(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)}}
2Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],5:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],6:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],7:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":4,"./lib/once":5,"./lib/promise-or-callback":6}],8:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],9:[function(e,t,r){"use strict";var n=e("./constants").BRAINTREE_VERSION,o=e("./request/graphql"),c=e("./request"),l=e("../lib/is-verified-domain"),d=e("../lib/braintree-error"),f=e("../lib/convert-to-braintree-error"),h=e("./get-configuration").getConfiguration,m=e("../lib/create-authorization-data"),y=e("../lib/add-metadata"),v=e("@braintree/wrap-promise"),_=e("../lib/once"),E=e("../lib/deferred"),w=e("../lib/assign").assign,A=e("../lib/analytics"),T=e("./errors"),O=e("../lib/constants").VERSION,S=e("../lib/constants").GRAPHQL_URLS,I=e("../lib/methods"),C=e("../lib/convert-methods-to-error"),N=e("../lib/assets"),P=e("../lib/constants").FRA
2UDNET_FNCLS,R=e("../lib/constants").FRAUDNET_SOURCE,L=e("../lib/constants").FRAUDNET_URL,D={};function x(e){var t,r;if(e=e||{},t=JSON.stringify(e),!(r=e.gatewayConfiguration))throw new d(T.CLIENT_MISSING_GATEWAY_CONFIGURATION);if(["assetsUrl","clientApiUrl","configUrl"].forEach(function(e){if(e in r&&!l(r[e]))throw new d({type:T.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:T.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:e+" property is on an invalid domain."})}),this.getConfiguration=function(){return JSON.parse(t)},this._request=c,this._configuration=this.getConfiguration(),this._clientApiBaseUrl=r.clientApiUrl+"/v1/",r.graphQL){if(!l(r.graphQL.url))throw new d({type:T.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:T.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:"graphQL.url property is on an invalid domain."});this._graphQL=new o({graphQL:r.graphQL})}}function k(e,t){var r;if(-1===e?r=new d(T.CLIENT_REQUEST_TIMEOUT):401===e?r=new d(T.CLIENT_AUTHORIZATION_INVALID):403===e?r=new d(T.CLIENT_AUTHORIZATION_INSUFFICIENT):429===e?r=new d(T.CLIENT_RATE_LIMITED):e>=500?r=new d(T.CLIENT_GATEWAY_NETWORK):(e<200||e>=400)&&(r=f(t,{type:T.CLIENT_REQUEST_ERROR.type,code:T.CLIENT_REQUEST_ERROR.code,message:T.CLIENT_REQUEST_ERROR.message})),r)return r.details=r.details||{},r.details.httpStatus=e,r}function M(e){return{Authorization:"Bearer "+(e.authorizationFingerprint||e.authorization),"Braintree-Version":n}}x.initialize=function(e){var t,r,n=D[e.authorization];if(n)return A.sendEvent(n,"custom.client.load.cached"),n;try{r=m(e.authorization)}catch(e){return Promise.reject(new d(T.CLIENT_INVALID_AUTHORIZATION))}return n=h(r,e.sessionId).then(function(r){return e.debug&&(r.isDebug=!0),r.authorization=e.authorization,t=new x(r)}),D[e.authorization]=n,A.sendEvent(n,"custom.client.load.initialized"),n.then(function(e){return A.sendEvent(t,"custom.client.load.succeeded"),e}).catch(function(t){return delete D[e.authorization],Promise.reject(t)})},x.clearCache=function(){D={}},x.prototype._findOrCreateFraudnetJSON=function(e){var t,r,n,o,c=document.querySelector('script[fncls="'+P+'"]');c||((c=document.body.appendChild(document.createElement("script"))).type="application/json",c.setAttribute("fncls",P)),t=this.getConfiguration(),r={rda_tenant:"bt_card",mid:t.gatewayConfiguration.merchantId},(n=t.authorizationFingerprint)&&n.split("&").forEach(function(e){var component=e.split("=");"customer_id"===component[0]&&component.length>1&&(r.cid=component[1])}),o={f:e.substr(0,32),fp:r,bu:!1,s:R},c.text=JSON.stringify(o)},x.prototype.request=function(e,t){var r=this,n=new Promise(function(t,n){var o,c,l,h,m=Boolean("payment_methods/credit_cards"===e.endpoint&&r.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);if("graphQLApi"!==e.api&&(e.method?e.endpoint||(o="options.endpoint"):o="options.method"),o)throw new d({type:T.CLIENT_OPTION_REQUIRED.type,code:T.CLIENT_OPTION_REQUIRED.code,message:o+" is required when making a request."});if(c="api"in e?e.api:"clientApi",h={method:e.method,graphQL:r._graphQL,timeout:e.timeout,metadata:r._configuration.analyticsMetadata},"clientApi"===c)l=r._clientApiBaseUrl,h.data=y.addMetadata(r._configuration,e.data);
2else{if("graphQLApi"!==c)throw new d({type:T.CLIENT_OPTION_INVALID.type,code:T.CLIENT_OPTION_INVALID.code,message:"options.api is invalid."});l=S[r._configuration.gatewayConfiguration.environment],e.endpoint="",h.method="post",h.data=w({clientSdkMetadata:{platform:r._configuration.analyticsMetadata.platform,source:r._configuration.analyticsMetadata.source,integration:r._configuration.analyticsMetadata.integration,sessionId:r._configuration.analyticsMetadata.sessionId,version:O}},e.data),h.headers=M(r._configuration)}h.url=l+e.endpoint,h.sendAnalyticsEvent=function(e,t){t?A.sendEventPlus(r,e,t):A.sendEvent(r,e)},r._request(h,function(e,data,o){var l,d;(d=k(o,e))?n(d):"graphQLApi"===c&&data.errors?n(f(data.errors,{type:T.CLIENT_GRAPHQL_REQUEST_ERROR.type,code:T.CLIENT_GRAPHQL_REQUEST_ERROR.code,message:T.CLIENT_GRAPHQL_REQUEST_ERROR.message})):(l=w({_httpStatus:o},data),m&&l.creditCards&&l.creditCards.length>0&&(r._findOrCreateFraudnetJSON(l.creditCards[0].nonce),N.loadScript({src:L,forceScriptReload:!0})),t(l))})});return"function"==typeof t?(t=_(E(t)),void n.then(function(e){t(null,e,e._httpStatus)}).catch(function(e){var r=e&&e.details&&e.details.httpStatus;t(e,null,r)})):n},x.prototype.toJSON=function(){return this.getConfiguration()},x.prototype.getVersion=function(){return O},x.prototype.teardown=v(function(){var e=this;return delete D[e.getConfiguration().authorization],C(e,I(x.prototype)),Promise.resolve()}),t.exports=x},{"../lib/add-metadata":29,"../lib/analytics":30,"../lib/assets":31,"../lib/assign":32,"../lib/braintree-error":33,"../lib/constants":34,"../lib/convert-methods-to-error":35,"../lib/convert-to-braintree-error":36,"../lib/create-authorization-data":37,"../lib/deferred":38,"../lib/is-verified-domain":43,"../lib/methods":45,"../lib/once":46,"./constants":10,"./errors":11,"./get-configuration":12,"./request":25,"./request/graphql":23,"@braintree/wrap-promise":7}],10:[function(e,t,r){"use strict";t.exports={BRAINTREE_VERSION:"2018-05-10"}},{}],11:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN:{type:n.types.MERCHANT,code:"CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN"},CLIENT_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"CLIENT_OPTION_REQUIRED"}
2,CLIENT_OPTION_INVALID:{type:n.types.MERCHANT,code:"CLIENT_OPTION_INVALID"},CLIENT_MISSING_GATEWAY_CONFIGURATION:{type:n.types.INTERNAL,code:"CLIENT_MISSING_GATEWAY_CONFIGURATION",message:"Missing gatewayConfiguration."},CLIENT_INVALID_AUTHORIZATION:{type:n.types.MERCHANT,code:"CLIENT_INVALID_AUTHORIZATION",message:"Authorization is invalid. Make sure your client token or tokenization key is valid."},CLIENT_GATEWAY_NETWORK:{type:n.types.NETWORK,code:"CLIENT_GATEWAY_NETWORK",message:"Cannot contact the gateway at this time."},CLIENT_REQUEST_TIMEOUT:{type:n.types.NETWORK,code:"CLIENT_REQUEST_TIMEOUT",message:"Request timed out waiting for a reply."},CLIENT_REQUEST_ERROR:{type:n.types.NETWORK,code:"CLIENT_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_GRAPHQL_REQUEST_ERROR:{type:n.types.NETWORK,code:"CLIENT_GRAPHQL_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_RATE_LIMITED:{type:n.types.MERCHANT,code:"CLIENT_RATE_LIMITED",message:"You are being rate-limited; please try again in a few minutes."},CLIENT_AUTHORIZATION_INSUFFICIENT:{type:n.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INSUFFICIENT",message:"The authorization used has insufficient privileges."},CLIENT_AUTHORIZATION_INVALID:{type:n.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INVALID",message:"Either the client token has expired and a new one should be generated or the tokenization key has been deactivated or deleted."}}},{"../lib/braintree-error":33}],12:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("@braintree/wrap-promise"),c=e("./request"),l=e("@braintree/uuid"),d=e("../lib/constants"),f=e("./errors"),h=e("./request/graphql"),m=e("../lib/constants").GRAPHQL_URLS,y=e("../lib/is-date-string-before-or-on"),v=e("./constants").BRAINTREE_VERSION;function _(e,t){return new Promise(function(r,o){var _,E,w,A,T=t||l(),O={merchantAppId:window.location.host,platform:d.PLATFORM,sdkVersion:d.VERSION,source:d.SOURCE,integration:d.INTEGRATION,integrationType:d.INTEGRATION,sessionId:T};E=e.attrs,w=e.configUrl,E._meta=O,E.braintreeLibraryVersion=d.BRAINTREE_LIBRARY_VERSION,E.configVersion="3",A={url:w,method:"GET",data:E},E.authorizationFingerprint&&e.graphQL?(y(e.graphQL.date,v)&&(A.graphQL=new h({graphQL:{url:e.graphQL.url,features:["configuration"]}})),A.metadata=O):E.tokenizationKey&&(A.graphQL=new h({graphQL:{url:m[e.environment],features:["configuration"]}}),A.metadata=O),c(A,function(t,c,l){var d;if(t)return d=403===l?f.CLIENT_AUTHORIZATION_INSUFFICIENT:401===l?f.CLIENT_AUTHORIZATION_INVALID:f.CLIENT_GATEWAY_NETWORK,void o(new n({type:d.type,code:d.code,message:d.message,details:{originalError:t}}));_={authorizationType:E.tokenizationKey?"TOKENIZATION_KEY":"CLIENT_TOKEN",authorizationFingerprint:E.authorizationFingerprint,paymentMethodIdJwt:e.paymentMethodIdJwt,analyticsMetadata:O,gatewayConfiguration:c},r(_)})})}t.exports={getConfiguration:o(_)}},{"../lib/braintree-error":33,"../lib/constants":34,"../lib/is-date-string-before-or-on":41,"./constants":10,"./errors":11,"./request":25,"./request/graphql":23,"@braintree/uuid":3,"@braintree/wrap-promise":7}],13:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("./client"),c="3.144.0",l=e("@braintree/wrap-promise"),d=e("../lib/errors");function f(e){return e.authorization?o.initialize(e):Promise.reject(new n({type:d.INSTANTIATION_OPTION_REQUIRED.type,code:d.INSTANTIATION_OPTION_REQUIRED.code,message:"options.authorization is required when instantiating a client."}))}t.exports={create:l(f),VERSION:c}},{"../lib/braintree-error":33,"../lib/errors":40,"./client":9,"@braintree/wrap-promise":7}],14:[function(e,t,r){"use strict";var n=e("../../lib/querystring"),o=e("../../lib/assign").assign,c=e("./prep-body"),l=e("./parse-body"),d=e("./xhr"),f=d.isAvailable,h=e("./graphql/request"),m=e("./default-request"),y=1,v=408,_=/\/merchants\/[A-Za-z0-9_-]+\/client_api/,E=/payment_methods\/.*\/three_d_secure/;function w(e){return!e||e===v}function A(e,t){var r,path,n,o,c,l,d,f,h,m,y;try{r=(o=new URL(e)).hostname,path=o.pathname}catch(t){r=(e.match(/^https?:\/\/([^\/]+)/)||[])[1]||"",path=(e.match(/^https?:\/\/[^\/]+(\/.*)$/)||[])[1]||e}"/v1/tracking/batch/events"!==(n=path.replace(_,"").replace(E,"payment_methods/three_d_secure"))&&(c=e.replace(/:443(\/|$)/,"$1"),"undefined"!=typeof window&&window.performance&&window.performance.getEntriesByName&&(m=window.performance.getEntriesByName(c))&&m.length>0&&(l=(y=m[m.length-1]).connectStart?Math.round(y.connectStart):null,d=y.requestStart?Math.round(y.requestStart):null,h=Math.round(y.startTime),f=Math.round(y.responseEnd),t.sendAnalyticsEvent("core.api-request-latency",{connect_start_time:l,domain:r,endpoint:n,end_time:f,request_start_time:d,start_time:h})))}function T(body){var e=!body.data&&body.errors&&body.errors[0]&&body.errors[0].extensions&&body.errors[0].extensions.errorClass;return"UNKNOWN"===e||"INTERNAL"===e}function O(e,t,r){var v,_,E,body,S,I,C,N=e.url,P=e.graphQL,R=e.timeout,L=d.getRequestObject(),D=r,x=Boolean(P&&P.isGraphQLRequest(N,e.data));e.headers=o({"Content-Type":"application/json"},e.headers),E=x?new h(e):new m(e),N=E.getUrl(),body=E.getBody(),S=E.getMethod(),I=E.getHeaders(),"GET"===S&&(N=n.queryify(N,body),body=null),f?L.onreadystatechange=function(){if(4===L.readyState){if(0===L.status&&x)return delete e.graphQL,void O(e,t,r);if(C=l(L.responseText),_=E.adaptResponseBody(C),v=E.determineStatus(L.status,C),e.sendAnalyticsEvent&&A(N,e),v>=400||v<200){if(x&&T(C))return delete e.graphQL,void O(e,t,r);if(t<y&&w(v))return t++,void O(e,t,r);D(_||"error",null,v||500)}else D(null,_,v)}}:(e.headers&&(N=n.queryify(N,I)),L.onload=function(){D(null,l(L.responseText),L.status)},L.onerror=function(){D("error",null,500)},L.onprogress=function(){},L.ontimeout=function(){D("timeout",null,-1)});try{L.open(S,N,!0)}catch(n){if(!x)throw n;return delete e.graphQL,void O(e,t,r)}
2L.timeout=R,f&&Object.keys(I).forEach(function(e){L.setRequestHeader(e,I[e])});try{L.send(c(S,body))}catch(e){}}function S(e,t){O(e,0,t)}t.exports={request:S}},{"../../lib/assign":32,"../../lib/querystring":47,"./default-request":15,"./graphql/request":24,"./parse-body":26,"./prep-body":27,"./xhr":28}],15:[function(e,t,r){"use strict";function n(e){this._url=e.url,this._data=e.data,this._method=e.method,this._headers=e.headers}n.prototype.getUrl=function(){return this._url},n.prototype.getBody=function(){return this._data},n.prototype.getMethod=function(){return this._method},n.prototype.getHeaders=function(){return this._headers},n.prototype.adaptResponseBody=function(e){return e},n.prototype.determineStatus=function(e){return e},t.exports=n},{}],16:[function(e,t,r){"use strict";var n=e("./error"),o=e("../../../../lib/assign").assign,c={creditCard:{AMERICAN_EXPRESS:"American Express",DISCOVER:"Discover",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",SOLO:"Solo",UK_MAESTRO:"UK Maestro",UNION_PAY:"UnionPay",VISA:"Visa",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard"},applePayWeb:{VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",INTERNATIONAL_MAESTRO:"maestro",ELO:"elo"},visaCheckout:{VISA:"Visa",MASTERCARD:"MasterCard",DISCOVER:"Discover",AMERICAN_EXPRESS:"American Express"},googlePay:{VISA:"visa",MASTERCARD:"mastercard",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",INTERNATIONAL_MAESTRO:"maestro",ELO:"elo"},masterpass:{VISA:"visa",MASTERCARD:"master",DISCOVER:"discover",AMERICAN_EXPRESS:"amex",DINERS:"diners",INTERNATIONAL_MAESTRO:"maestro",JCB:"jcb"}};function l(e,t){return e.data&&!e.errors?d(e,t):n(e)}function d(body,e){var t,r=body.data.clientConfiguration;return t={environment:r.environment.toLowerCase(),clientApiUrl:r.clientApiUrl,assetsUrl:r.assetsUrl,analytics:{url:r.analyticsUrl},merchantId:r.merchantId,venmo:"off"},r.supportedFeatures&&(t.graphQL={url:e._graphQL._config.url,features:r.supportedFeatures.map(function(e){return e.toLowerCase()})}),r.braintreeApi&&(t.braintreeApi=r.braintreeApi),r.applePayWeb&&(t.applePayWeb=r.applePayWeb,t.applePayWeb.supportedNetworks=f(r.applePayWeb.supportedCardBrands,c.applePayWeb),delete t.applePayWeb.supportedCardBrands),r.fastlane&&(t.fastlane=r.fastlane),r.ideal&&(t.ideal=r.ideal),r.creditCard?(t.challenges=r.creditCard.challenges.map(function(e){return e.toLowerCase()}),t.creditCards={supportedCardTypes:f(r.creditCard.supportedCardBrands,c.creditCard)},t.threeDSecureEnabled=r.creditCard.threeDSecureEnabled,t.threeDSecure=r.creditCard.threeDSecure):(t.challenges=[],t.creditCards={supportedCardTypes:[]},t.threeDSecureEnabled=!1),r.googlePay&&(t.androidPay={displayName:r.googlePay.displayName,enabled:!0,environment:r.googlePay.environment.toLowerCase(),googleAuthorizationFingerprint:r.googlePay.googleAuthorization,paypalClientId:r.googlePay.paypalClientId,supportedNetworks:f(r.googlePay.supportedCardBrands,c.googlePay)}),r.venmo&&(t.payWithVenmo={merchantId:r.venmo.merchantId,accessToken:r.venmo.accessToken,environment:r.venmo.environment.toLowerCase(),enrichedCustomerDataEnabled:r.venmo.enrichedCustomerDataEnabled}),r.paypal?(t.paypalEnabled=!0,t.paypal=o({},r.paypal),t.paypal.currencyIsoCode=t.paypal.currencyCode,t.paypal.environment=t.paypal.environment.toLowerCase(),delete t.paypal.currencyCode):t.paypalEnabled=!1,r.unionPay&&(t.unionPay={enabled:!0,merchantAccountId:r.unionPay.merchantAccountId}),r.visaCheckout&&(t.visaCheckout={apikey:r.visaCheckout.apiKey,encryptionKey:r.visaCheckout.encryptionKey,externalClientId:r.visaCheckout.externalClientId,supportedCardTypes:f(r.visaCheckout.supportedCardBrands,c.visaCheckout)}),r.masterpass&&(t.masterpass={merchantCheckoutId:r.masterpass.merchantCheckoutId,supportedNetworks:f(r.masterpass.supportedCardBrands,c.masterpass)}),r.usBankAccount&&(t.usBankAccount={routeId:r.usBankAccount.routeId,plaid:{publicKey:r.usBankAccount.plaidPublicKey}}),r.openBanking&&(t.openBanking={businessNames:r.openBanking.businessNames,allowListedDomains:r.openBanking.allowListedDomains,profileId:r.openBanking.profileId}),t}function f(e,t){return e.reduce(function(e,r){return t.hasOwnProperty(r)?e.concat(t[r]):e},[])}t.exports=l},{"../../../../lib/assign":32,"./error":19}],17:[function(e,t,r){"use strict";var n=e("./error"),o={AMERICAN_EXPRESS:"American Express",DINERS:"Discover",DISCOVER:"Discover",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",UK_MAESTRO:"Maestro",UNION_PAY:"UnionPay",VISA:"Visa"},c={YES:"Yes",NO:"No",UNKNOWN:"Unknown"},l={PSDTWO:"psd2"};function d(e){return e.data&&!e.errors?f(e):n(e)}function f(body){var e,t,data=body.data.tokenizeCreditCardForPayPalConnect,r=data.paymentMethod.details,n=r.last4?r.last4.substr(2,4):"",d=r.binData;return d&&(["commercial","debit","durbinRegulated","healthcare","payroll","prepaid"].forEach(function(e){d[e]?d[e]=c[d[e]]:d[e]="Unknown"}),["issuingBank","countryOfIssuance","productId","business","consumer","purchase","corporate"].forEach(function(e){d[e]||(d[e]="Unknown")}
2)),e={creditCards:[{binData:d,consumed:!1,description:n?"ending in "+n:"",nonce:data.paymentMethod.id,details:{cardholderName:r.cardholderName,expirationMonth:r.expirationMonth,expirationYear:r.expirationYear,bin:r.bin||"",cardType:o[r.brandCode]||"Unknown",lastFour:r.last4||"",lastTwo:n},type:"CreditCard",threeDSecureInfo:null}]},data.authenticationInsight&&(t=data.authenticationInsight.customerAuthenticationRegulationEnvironment,e.creditCards[0].authenticationInsight={regulationEnvironment:l[t]||t.toLowerCase()}),e}t.exports=d},{"./error":19}],18:[function(e,t,r){"use strict";var n=e("./error"),o={AMERICAN_EXPRESS:"American Express",DINERS:"Discover",DISCOVER:"Discover",ELO:"Elo",HIPER:"Hiper",HIPERCARD:"Hipercard",INTERNATIONAL_MAESTRO:"Maestro",JCB:"JCB",MASTERCARD:"MasterCard",UK_MAESTRO:"Maestro",UNION_PAY:"UnionPay",VISA:"Visa"},c={YES:"Yes",NO:"No",UNKNOWN:"Unknown"},l={PSDTWO:"psd2"};function d(e){return e.data&&!e.errors?f(e):n(e)}function f(body){var e,t,data=body.data.tokenizeCreditCard,r=data.creditCard,n=r.last4?r.last4.substr(2,4):"",d=r.binData;return d&&(["commercial","debit","durbinRegulated","healthcare","payroll","prepaid"].forEach(function(e){d[e]?d[e]=c[d[e]]:d[e]="Unknown"}),["issuingBank","countryOfIssuance","productId","business","consumer","purchase","corporate"].forEach(function(e){d[e]||(d[e]="Unknown")})),e={creditCards:[{binData:d,consumed:!1,description:n?"ending in "+n:"",nonce:data.token,details:{cardholderName:r.cardholderName,expirationMonth:r.expirationMonth,expirationYear:r.expirationYear,bin:r.bin||"",cardType:o[r.brandCode]||"Unknown",lastFour:r.last4||"",lastTwo:n},type:"CreditCard",threeDSecureInfo:null}]},data.authenticationInsight&&(t=data.authenticationInsight.customerAuthenticationRegulationEnvironment,e.creditCards[0].authenticationInsight={regulationEnvironment:l[t]||t.toLowerCase()}),e}t.exports=d},{"./error":19}],19:[function(e,t,r){"use strict";function n(e){var t=e.errors&&e.errors[0]&&e.errors[0].extensions&&e.errors[0].extensions.errorClass;return"VALIDATION"===t?c(e):t?o(e):{error:{message:"There was a problem serving your request"},fieldErrors:[]}}function o(e){return{error:{message:e.errors[0].message},fieldErrors:[]}}function c(e){var t=l(e.errors);return 0===t.length?{error:{message:e.errors[0].message}}:{error:{message:f(t)},fieldErrors:t}}function l(e){var t=[];return e.forEach(function(e){e.extensions&&e.extensions.inputPath&&d(e.extensions.inputPath.slice(1),e,t)}),t}function d(e,t,r){var n,o=t.extensions.legacyCode,c=e[0];1!==e.length?(r.forEach(function(e){e.field===c&&(n=e)}),n||(n={field:c,fieldErrors:[]},r.push(n)),d(e.slice(1),t,n.fieldErrors)):r.push({code:o,field:c,message:t.message})}function f(e){return{creditCard:"Credit card is invalid"}[e[0].field]}t.exports=n},{}],20:[function(e,t,r){"use strict";var n="query ClientConfiguration {   clientConfiguration {     analyticsUrl     environment     merchantId     assetsUrl     clientApiUrl     creditCard {       supportedCardBrands       challenges       threeDSecureEnabled       threeDSecure {         cardinalAuthenticationJWT         cardinalSongbirdUrl         cardinalSongbirdIdentityHash       }     }     applePayWeb {       countryCode       currencyCode       merchantIdentifier       supportedCardBrands     }     fastlane {       enabled       tokensOnDemand {         enabled         tokenExchange {           enabled         }       }     }     googlePay {       displayName       supportedCardBrands       environment       googleAuthorization       paypalClientId     }     ideal {       routeId       assetsUrl     }     masterpass {       merchantCheckoutId       supportedCardBrands     }     openBanking {       businessNames       allowListedDomains       profileId     }     paypal {       displayName       clientId       assetsUrl       environment       environmentNoNetwork       unvettedMerchant       braintreeClientId       billingAgreementsEnabled       merchantAccountId       currencyCode       payeeEmail     }     unionPay {       merchantAccountId     }     usBankAccount {       routeId       plaidPublicKey     }     venmo {       merchantId       accessToken       environment       enrichedCustomerDataEnabled    }     visaCheckout {       apiKey       externalClientId       supportedCardBrands     }     braintreeApi {       accessToken       url     }     supportedFeatures   } }";function o(){return{query:n,operationName:"ClientConfiguration"}}t.exports=o},{}],21:[function(e,t,r){"use strict";var n=e("../../../../lib/assign").assign;function o(e){var t=e.hasAuthenticationInsight,r="mutation TokenizeCreditCardForPayPalConnect($input: TokenizeCreditCardForPayPalConnectInput!";return t&&(r+=", $authenticationInsightInput: AuthenticationInsightInput!"),r+=") {   tokenizeCreditCardForPayPalConnect(input: $input) {     clientMutationId     paymentMethod {       id       details {         ... on CreditCardDetail
2s {       bin       brandCode       last4       cardholderName       expirationMonth      expirationYear      binData {         prepaid         healthcare         debit         durbinRegulated         commercial         payroll         issuingBank         countryOfIssuance         productId         business         consumer         purchase         corporate       }         }       }     }",t&&(r+="    authenticationInsight(input: $authenticationInsightInput) {      customerAuthenticationRegulationEnvironment    }"),r+="  } }"}function c(body,e){var t=body.creditCard,r=t.fastlane||{},o="fastlane"in t&&"termsAndConditionsVersion"in t.fastlane&&t.fastlane.termsAndConditionsVersion,c="fastlane"in t&&"termsAndConditionsCountry"in t.fastlane&&t.fastlane.termsAndConditionsCountry,d=t.email,f="hasBuyerConsent"in r&&r.hasBuyerConsent,h=t.shippingAddress,m=l(body,e),y=n({},m.input,{email:d,optIn:f,phone:t.phone});return o&&(y.termsAndConditionsVersion=o),c&&(y.termsAndConditionsCountry=c),"authAssertion"in r&&(y.authAssertion=r.authAssertion),h&&(y.shippingAddress=h),{input:y}}function l(body,e){var t=body.creditCard,r=t&&t.billingAddress,n=t&&t.expirationDate,o=t&&(t.expirationMonth||n&&n.split("/")[0].trim()),c=t&&(t.expirationYear||n&&n.split("/")[1].trim()),l={input:{creditCard:{number:t&&t.number,expirationMonth:o,expirationYear:c,cvv:t&&t.cvv,cardholderName:t&&t.cardholderName},options:{}}};return e.hasAuthenticationInsight&&(l.authenticationInsightInput={merchantAccountId:body.merchantAccountId}),r&&(l.input.creditCard.billingAddress=r),l.input=d(body,l.input),l}function d(body,input){var e;return body.creditCard&&body.creditCard.options&&"boolean"==typeof body.creditCard.options.validate?e=body.creditCard.options.validate:body.authorizationFingerprint&&body.tokenizationKey||body.authorizationFingerprint?e=!0:body.tokenizationKey&&(e=!1),"boolean"==typeof e&&(input.options=n({validate:e},input.options)),input}function f(body){var e={hasAuthenticationInsight:Boolean(body.authenticationInsight&&body.merchantAccountId)};return{query:o(e),variables:c(body,e),operationName:"TokenizeCreditCardForPayPalConnect"}}t.exports=f},{"../../../../lib/assign":32}],22:[function(e,t,r){"use strict";var n=e("../../../../lib/assign").assign;function o(e){var t=e.hasAuthenticationInsight,r="mutation TokenizeCreditCard($input: TokenizeCreditCardInput!";return t&&(r+=", $authenticationInsightInput: AuthenticationInsightInput!"),r+=") {   tokenizeCreditCard(input: $input) {     token     creditCard {       bin       brandCode       last4       cardholderName       expirationMonth      expirationYear      binData {         prepaid         healthcare         debit         durbinRegulated         commercial         payroll         issuingBank         countryOfIssuance         productId         business         consumer         purchase         corporate       }     } ",t&&(r+="    authenticationInsight(input: $authenticationInsightInput) {      customerAuthenticationRegulationEnvironment    }"),r+="  } }"}function c(body,e){var t=body.creditCard,r=t&&t.billingAddress,n=t&&t.expirationDate,o=t&&(t.expirationMonth||n&&n.split("/")[0].trim()),c=t&&(t.expirationYear||n&&n.split("/")[1].trim()),d={input:{creditCard:{number:t&&t.number,expirationMonth:o,expirationYear:c,cvv:t&&t.cvv,cardholderName:t&&t.cardholderName},options:{}}};return e.hasAuthenticationInsight&&(d.authenticationInsightInput={merchantAccountId:body.merchantAccountId}),r&&(d.input.creditCard.billingAddress=r),d.input=l(body,d.input),d}function l(body,input){var e;return body.creditCard&&body.creditCard.options&&"boolean"==typeof body.creditCard.options.validate?e=body.creditCard.options.validate:body.authorizationFingerprint&&body.tokenizationKey||body.authorizationFingerprint?e=!0:body.tokenizationKey&&(e=!1),"boolean"==typeof e&&(input.options=n({validate:e},input.options)),input}function d(body){var e={hasAuthenticationInsight:Boolean(body.authenticationInsight&&body.merchantAccountId)};return{query:o(e),variables:c(body,e),operationName:"TokenizeCreditCard"}}t.exports=d},{"../../../../lib/assign":32}],23:[function(e,t,r){"use strict";var n={tokenize_credit_cards:"payment_methods/credit_cards",configuration:"configuration"},o=["creditCard.options.unionPayEnrollment"];function c(e){this._config=e.graphQL}function l(body){return o.some(function(e){return void 0!==e.split(".").reduce(function(e,t){return e&&e[t]},body)})}c.prototype.getGraphQLEndpoint=function(){return this._config.url},c.prototype.isGraphQLRequest=function(e,body){var t,path=this.getClientApiPath(e);return!(!this._isGraphQLEnabled()||!path)&&(t=this._config.features.some(function(e){return n[e]===path}),!l(body)&&t)},c.prototype.getClientApiPath=function(e){var path,t="/client_api/v1/",r=e.split(t);return r.length>1&&(path=r[1].split("?")[0]),path},c.prototype._isGraphQLEnabled=function(){return Boolean(this._config)},t.exports=c},{}],24:[function(e,t,r){"use strict";var n=e("../../constants").BRAINTREE_VERSION,o=e("../../../lib/assign").assign,c=e("../../../lib/snake-case-to-camel-case"),l=e("../../../lib/is-fastlane-checkout"),d=e("./generators/credit-card-tokenization"),f=e("./adapters/credit-card-tokenization"),h=e("./adapters/credit-card-tokenization-fastlane"),m=e("./generators/credit-card-for-fastlane-tokenization"),y=e("./generators/configuration"),v=e("./adapters/configuration"),_={"payment_methods/credit_cards":function(data,e){return e?m(data):d(data)},configuration:y},E={"payment_methods/credit_cards":function(e,t,r){return r?h(e,t):f(e,t)},configuration:v};function w(e){var t=e.graphQL.getClientApiPath(e.url);this._graphQL=e.graphQL,this._data=e.data,this._method=e.method,this._headers=e.headers,this._clientSdkMetadata={source:e.metadata.source,integration:e.metadata.integration,sessionId:e.metadata.sessionId},this._sendAnalyticsEvent=e.sendAnalyticsEvent||Function.prototype,this._generator=_[t],this._adapter=E[t],this._sendAnalyticsEvent("graphql.init")}function A(e,t){return!e&&t.errors[0].message}function T(e){var body={};return Object.keys(e).forEach(function(t){var r=c(t);"object"==typeof e[t]?body[r]=T(e[t]):"number"==typeof e[t]?body[r]=String(e[t]):body[r]=e[t]}),body}w.prototype.getUrl=function(){return this._graphQL.getGraphQLEndpoint()},w.prototype.getBody=function(){var e=T(this._data),t=this._generator(e,l(this._data.creditCard)),body=o({clientSdkMetadata:this._clientSdkMetadata},t);return JSON.stringify(body)},w.prototype.getMethod=function(){return"POST"},w.prototype.getHeaders=function(){var e,t;return this._data.authorizationFingerprint?(this._sendAnalyticsEvent("graphql.authorization-fingerprint"),e=this._data.authorizationFingerprint):(this._sendAnalyticsEvent("graphql.tokenization-key"),e=this._data.tokenizationKey),t={Authorization:"Bearer "+e,"Braintree-Version":n},o({},this._headers,t)},w.prototype.adaptResponseBody=function(e){return this._adapter(e,this,"creditCard"in this._data&&l(this._data.creditCard))},w.prototype.determineStatus=function(e,t){var r,n;
2return 200===e?(n=t.errors&&t.errors[0]&&t.errors[0].extensions&&t.errors[0].extensions.errorClass,r=t.data&&!t.errors?200:"VALIDATION"===n?422:"AUTHORIZATION"===n?403:"AUTHENTICATION"===n?401:A(n,t)?403:500):r=e||500,this._sendAnalyticsEvent("graphql.status."+e),this._sendAnalyticsEvent("graphql.determinedStatus."+r),r},t.exports=w},{"../../../lib/assign":32,"../../../lib/is-fastlane-checkout":42,"../../../lib/snake-case-to-camel-case":48,"../../constants":10,"./adapters/configuration":16,"./adapters/credit-card-tokenization":18,"./adapters/credit-card-tokenization-fastlane":17,"./generators/configuration":20,"./generators/credit-card-for-fastlane-tokenization":21,"./generators/credit-card-tokenization":22}],25:[function(e,t,r){"use strict";var n=e("../../lib/once"),o=e("./ajax-driver");t.exports=function(e,t){t=n(t||Function.prototype),e.method=(e.method||"GET").toUpperCase(),e.timeout=null==e.timeout?6e4:e.timeout,e.data=e.data||{},o.request(e,t)}},{"../../lib/once":46,"./ajax-driver":14}],26:[function(e,t,r){"use strict";t.exports=function(body){try{body=JSON.parse(body)}catch(e){}return body}},{}],27:[function(e,t,r){"use strict";t.exports=function(e,body){if("string"!=typeof e)throw new Error("Method must be a string");return"get"!==e.toLowerCase()&&null!=body&&(body="string"==typeof body?body:JSON.stringify(body)),body}},{}],28:[function(e,t,r){"use strict";var n="undefined"!=typeof window&&window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest;function o(){return n?new window.XMLHttpRequest:new window.XDomainRequest}t.exports={isAvailable:n,getRequestObject:o}},{}],29:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":34,"./create-authorization-data":37,"./json-clone":44}],30:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":29,"./assign":32,"./constants":34}],31:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":8}],32:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],33:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":39}],34:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],35:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":33,"./errors":40}],36:[function(e,t,r){"use strict";var n=e("./braintree-error");function o(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=o},{"./braintree-error":33}],37:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":34,"../lib/vendor/polyfill":49}],38:[function(e,t,r){"use strict";t.exports=function(e){return function(){var t=arguments;setTimeout(function(){e.apply(null,t)},1)}}},{}],39:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],40:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":33}],41:[function(e,t,r){"use strict";function n(e){var t=e.split("-");return new Date(t[0],t[1],t[2])}function o(e,t){return n(e)<=n(t)}t.exports=o},{}],42:[function(e,t,r){"use strict";
2t.exports=function(e){return e&&e.hasOwnProperty("fastlane")&&e.fastlane}},{}],43:[function(e,t,r){"use strict";var n,o={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};function c(e){return e.split(".").slice(-2).join(".")}function l(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((n=n||document.createElement("a")).href=e,t=c(n.hostname),o.hasOwnProperty(t))}t.exports=l},{}],44:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],45:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],46:[function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}t.exports=n},{}],47:[function(e,t,r){"use strict";function n(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)||!1}function c(e){return e=e||window.location.href,/\?/.test(e)}function l(e){return c(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}}function d(e,t){var r,n,p,c=[];for(p in e)e.hasOwnProperty(p)&&(n=e[p],r=t?o(e)?t+"[]":t+"["+p+"]":p,"object"==typeof n?c.push(d(n,r)):c.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return c.join("&")}function f(e,t){return e=e||"",null!=t&&"object"==typeof t&&n(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=d(t)),e}t.exports={parse:l,stringify:d,queryify:f,hasQueryParams:c}},{}],48:[function(e,t,r){"use strict";t.exports=function(e){return-1===e.indexOf("_")?e:e.toLowerCase().replace(/(\_\w)/g,function(e){return e[1].toUpperCase()})}},{}],49:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}]},{},[13])(13)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}
2Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={FASTLANE_SDK_LOAD_ERROR:{type:n.types.MERCHANT,code:"FASTLANE_SDK_LOAD_ERROR"}}},{"../lib/braintree-error":14}],9:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("./errors"),c=e("../lib/assets").loadFastlane,l=e("@braintree/wrap-promise"),d=e("../lib/assign").assign;function f(e){var t=e.client.getConfiguration(),r=e.client.getVersion(),l=!0;return"production"!==t.gatewayConfiguration.environment&&(l=!1),c(d({platform:"BT",btSdkVersion:r,minified:l},e)).then(function(t){var r={platform:"BT",authorization:e.authorization,client:e.client,deviceData:e.deviceData};return delete e.authorization,delete e.client,delete e.deviceData,delete e.minified,delete e.btSdkVersion,(window.braintree._fastlane&&window.braintree._fastlane.create?window.braintree._fastlane.create:window.braintree.fastlane.create)(d({platformOptions:r},e,t.metadata))}).catch(function(e){return Promise.reject(new n({type:o.FASTLANE_SDK_LOAD_ERROR.type,code:o.FASTLANE_SDK_LOAD_ERROR.code,message:e.message}))})}t.exports=l(f)},{"../lib/assets":11,"../lib/assign":12,"../lib/braintree-error":14,"./errors":8,"@braintree/wrap-promise":6}],10:[function(e,t,r){"use strict";var n=e("../lib/basic-component-verification"),o=e("./fastlane"),c=e("../lib/create-assets-url"),l=e("../lib/create-deferred-client"),d=e("@braintree/wrap-promise"),f="3.144.0",h=e("../lib/assign").assign;function m(e){var t="fastlane";return n.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return l.create({authorization:e.authorization,client:e.client,assetsUrl:c.create(e.authorization),name:t})}).then(function(t){return o(h({client:t,deviceData:e.deviceData},e))})}t.exports={create:d(m),VERSION:f}},{"../lib/assign":12,"../lib/basic-component-verification":13,"../lib/create-assets-url":16,"../lib/create-deferred-client":17,"./fastlane":9,"@braintree/wrap-promise":6}],11:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],12:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],13:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK ver
2sion."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":14,"./errors":19}],14:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":18}],15:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],16:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":15}],17:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":11,"./braintree-error":14,"./errors":19}],18:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],19:[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"}
2,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":14}]},{},[10])(10)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS:{type:n.types.MERCHANT,code:"DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS",message:"Data Collector must be created with Kount and/or PayPal."}}},{"../lib/braintree-error":13}],9:[function(e,t,r){"use strict";
2var n,o=e("../lib/constants").FRAUDNET_FNCLS,c=e("../lib/constants").FRAUDNET_SOURCE,l=e("../lib/constants").FRAUDNET_URL,d=e("../lib/assets").loadScript,f=32;function h(e){var t=new y;return!(e=e||{}).sessionId&&n?(t.sessionId=n,Promise.resolve(t)):t.initialize(e)}function m(){n=null}function y(){}function v(element){element&&element.parentNode&&element.parentNode.removeChild(element)}function _(e){return"https://b.stats.paypal.com/counter.cgi?i=127.0.0.1&p="+e+"&t="+(new Date).getTime()/1e3+"&a=14"}function E(e,t){var r=document.body.appendChild(document.createElement("script"));return"production"!==t&&(e.sandbox=!0),r.type="application/json",r.setAttribute("fncls",o),r.text=JSON.stringify(e),r}y.prototype.initialize=function(e){var t=this;this.sessionId=e.sessionId||e.clientSessionId,this.sessionId&&(this.sessionId=this.sessionId.substring(0,f)),e.sessionId||(n=this.sessionId);var r={f:this.sessionId,s:c};return e.hasOwnProperty("beacon")&&!0!==e.beacon?r.bu=!1:r.b=_(this.sessionId),e.hasOwnProperty("cb1")&&(r.cb1=e.cb1),this._parameterBlock=E(r,e.environment),d({src:l}).then(function(e){return t._thirdPartyBlock=e,t}).catch(function(){return null})},y.prototype.teardown=function(){v(document.querySelector('iframe[title="ppfniframe"]')),v(document.querySelector('iframe[title="pbf"]')),v(this._parameterBlock),v(this._thirdPartyBlock)},t.exports={setup:h,clearSessionIdCache:m}},{"../lib/assets":11,"../lib/constants":14}],10:[function(e,t,r){"use strict";var n=e("./fraudnet"),o=e("../lib/braintree-error"),c=e("../lib/basic-component-verification"),l=e("../lib/create-deferred-client"),d=e("../lib/create-assets-url"),f=e("../lib/methods"),h=e("../lib/convert-methods-to-error"),m="3.144.0",y=e("@braintree/wrap-promise"),v=e("./errors");function _(e){var t="Data Collector",r={_instances:[]},data={};return c.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return r._instantiatedWithAClient=!e.useDeferredClient,r._createPromise=l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:d.create(e.authorization),name:t}).then(function(t){var o=t.getConfiguration(),c={sessionId:e.riskCorrelationId||e.clientMetadataId||e.correlationId,clientSessionId:o.analyticsMetadata.sessionId,environment:o.gatewayConfiguration.environment,cb1:e.cb1};return e.hasOwnProperty("beacon")&&(c.beacon=e.beacon),n.setup(c).then(function(e){e&&(data.correlation_id=e.sessionId,r._instances.push(e))})}).then(function(){return 0===r._instances.length?Promise.reject(new o(v.DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS)):(r.deviceData=JSON.stringify(data),r.rawDeviceData=data,r)}),r.teardown=E(r),r.getDeviceData=w(r),r._instantiatedWithAClient?r._createPromise:r})}function E(e){return y(function(){return e._createPromise.then(function(){e._instances.forEach(function(e){e&&e.teardown()}),h(e,f(e))})})}function w(e){return y(function(t){return t=t||{},e._createPromise.then(function(){return t.raw?Promise.resolve(e.rawDeviceData):Promise.resolve(e.deviceData)})})}t.exports={create:y(_),VERSION:m}},{"../lib/basic-component-verification":12,"../lib/braintree-error":13,"../lib/convert-methods-to-error":15,"../lib/create-assets-url":16,"../lib/create-deferred-client":17,"../lib/methods":20,"./errors":8,"./fraudnet":9,"@braintree/wrap-promise":6}],11:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],12:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":13,"./errors":19}],13:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":18}],14:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],15:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":13,"./errors":19}],16:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":14}],17:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":11,"./braintree-error":13,"./errors":19}],18:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],19:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":13}],20:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}]},{},[10])(10)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],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(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/CrOS/i.test(e)}},{}],5:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),l=e("./is-opera"),d=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||n(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":6,"./is-edge":7,"./is-opera":15,"./is-samsung":17,"./is-silk":18}],6:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],7:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],8:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/Firefox/i.test(e)}},{}],9:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],10:[function(e,t,r){"use strict";var n=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&o(e)}},{"./is-ios":13}],11:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-firefox"),c=/webkit/i;function l(e){return c.test(e)}function d(e){return e.indexOf("CriOS")>-1}function f(e){return e.indexOf("FBAN")>-1}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&l(e)&&!d(e)&&!o(e)&&!f(e)}},{"./is-ios":13,"./is-ios-firefox":9}],12:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!n(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":13,"./is-ios-google-search-app":10}],13:[function(e,t,r){"use strict";var n=e("./is-ipados");t.exports=function(e,t,r){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||n(e,r):o}},{"./is-ipados":14}],14:[function(e,t,r){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],15:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],16:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/^Mozilla\/5\.0.*Safari\//.test(e)&&!/(iPhone|iPad|iPod|Android|SM-)/i.test(e)&&!/Chrome|CriOS|FxiOS|OPiOS|mercury/i.test(e)}},{}],17:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],18:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],19:[function(e,t,r){t.exports=e("./dist/is-android")},{"./dist/is-android":3}],20:[function(e,t,r){t.exports=e("./dist/is-chrome-os")},{"./dist/is-chrome-os":4}],21:[function(e,t,r){t.exports=e("./dist/is-chrome")},{"./dist/is-chrome":5}],22:[function(e,t,r){t.exports=e("./dist/is-firefox")},{"./dist/is-firefox":8}],23:[function(e,t,r){t.exports=e("./dist/is-ios-safari")},{"./dist/is-ios-safari":11}],24:[function(e,t,r){t.exports=e("./dist/is-ios-webview")},{"./dist/is-ios-webview":12}],25:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":13}],26:[function(e,t,r){t.exports=e("./dist/is-safari")},{"./dist/is-safari":16}],27:[function(e,t,r){"use strict";var n=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];
2n&&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}();t.exports=n},{}],28:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":29,"./lib/default-attributes":30,"./lib/set-attributes":31}],29:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],30:[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"}},{}],31:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],32:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],33:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],34:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],35:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],36:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":33,"./lib/once":34,"./lib/promise-or-callback":35}],37:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],38:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},n.apply(this,arguments)},o=e("./lib/card-types"),c=e("./lib/add-matching-cards-to-results"),l=e("./lib/is-valid-input-type"),d=e("./lib/find-best-match"),f=e("./lib/clone"),h={},m={VISA:"visa",MASTERCARD:"mastercard",AMERICAN_EXPRESS:"american-express",DINERS_CLUB:"diners-club",DISCOVER:"discover",JCB:"jcb",UNIONPAY:"unionpay",NARANJA:"naranja",VERVE:"verve",MAESTRO:"maestro",ELO:"elo",MIR:"mir",HIPER:"hiper",HIPERCARD:"hipercard"},y=[m.VISA,m.MASTERCARD,m.AMERICAN_EXPRESS,m.DINERS_CLUB,m.DISCOVER,m.JCB,m.UNIONPAY,m.NARANJA,m.VERVE,m.MAESTRO,m.ELO,m.MIR,m.HIPER,m.HIPERCARD],v=(0,f.clone)(y);function _(e){return h[e]||o[e]}function E(){return v.map(function(e){return(0,f.clone)(_(e))})}function w(e,t){void 0===t&&(t=!1);var r=v.indexOf(e);if(!t&&-1===r)throw new Error('"'+e+'" is not a supported card type.');return r}function A(e){var t=[];if(!(0,l.isValidInputType)(e))return t;if(0===e.length)return E();v.forEach(function(r){var n=_(r);(0,c.addMatchingCardsToResults)(e,n,t)});var r=(0,d.findBestMatch)(t);return r?[r]:t}A.getTypeInfo=function(e){return(0,f.clone)(_(e))},A.removeCard=function(e){var t=w(e);v.splice(t,1)},A.addCard=function(e){var t=w(e.type,!0);h[e.type]=e,-1===t&&v.push(e.type)},A.updateCard=function(e,t){var r=h[e]||o[e];if(!r)throw new Error('"'.concat(e,"\" is not a recognized type. Use `addCard` instead.'"));
2if(t.type&&r.type!==t.type)throw new Error("Cannot overwrite type parameter.");var c=(0,f.clone)(r);c=n(n({},c),t),h[c.type]=c},A.changeOrder=function(e,t){var r=w(e);v.splice(r,1),v.splice(t,0,e)},A.resetModifications=function(){v=(0,f.clone)(y),h={}},A.types=m,t.exports=A},{"./lib/add-matching-cards-to-results":39,"./lib/card-types":40,"./lib/clone":41,"./lib/find-best-match":42,"./lib/is-valid-input-type":43}],39:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.addMatchingCardsToResults=c;var n=e("./clone"),o=e("./matches");function c(e,t,r){var i,c;for(i=0;i<t.patterns.length;i++){var pattern=t.patterns[i];if((0,o.matches)(e,pattern)){var l=(0,n.clone)(t);c=Array.isArray(pattern)?String(pattern[0]).length:String(pattern).length,e.length>=c&&(l.matchStrength=c),r.push(l);break}}}},{"./clone":41,"./matches":44}],40:[function(e,t,r){"use strict";var n={visa:{niceType:"Visa",type:"visa",patterns:[4],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}},mastercard:{niceType:"Mastercard",type:"mastercard",patterns:[[51,55],[2221,2229],[223,229],[23,26],[270,271],2720],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},"american-express":{niceType:"American Express",type:"american-express",patterns:[34,37],gaps:[4,10],lengths:[15],code:{name:"CID",size:4}},"diners-club":{niceType:"Diners Club",type:"diners-club",patterns:[[300,305],36,38,39],gaps:[4,10],lengths:[14,16,19],code:{name:"CVV",size:3}},discover:{niceType:"Discover",type:"discover",patterns:[6011,[644,649],65],gaps:[4,8,12],lengths:[16,19],code:{name:"CID",size:3}},jcb:{niceType:"JCB",type:"jcb",patterns:[2131,1800,[3528,3589]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVV",size:3}},unionpay:{niceType:"UnionPay",type:"unionpay",patterns:[620,[62100,62182],[62184,62187],[62185,62197],[62200,62205],[622010,622999],622018,[62207,62209],[623,626],6270,6272,6276,[627700,627779],[627781,627799],[6282,6289],6291,6292,810,[8110,8131],[8132,8151],[8152,8163],[8164,8171]],gaps:[4,8,12],lengths:[14,15,16,17,18,19],code:{name:"CVN",size:3}},maestro:{niceType:"Maestro",type:"maestro",patterns:[493698,[5e5,504174],[504176,506698],[506779,508999],[56,59],63,67,6],gaps:[4,8,12],lengths:[12,13,14,15,16,17,18,19],code:{name:"CVC",size:3}},elo:{niceType:"Elo",type:"elo",patterns:[401178,401179,438935,457631,457632,431274,451416,457393,504175,[506699,506778],[509e3,509999],627780,636297,636368,[650031,650033],[650035,650051],[650405,650439],[650485,650538],[650541,650598],[650700,650718],[650720,650727],[650901,650978],[651652,651679],[655e3,655019],[655021,655058]],gaps:[4,8,12],lengths:[16],code:{name:"CVE",size:3}},mir:{niceType:"Mir",type:"mir",patterns:[[2200,2204]],gaps:[4,8,12],lengths:[16,17,18,19],code:{name:"CVP2",size:3}},hiper:{niceType:"Hiper",type:"hiper",patterns:[637095,63737423,63743358,637568,637599,637609,637612],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},hipercard:{niceType:"Hipercard",type:"hipercard",patterns:[606282],gaps:[4,8,12],lengths:[16],code:{name:"CVC",size:3}},naranja:{niceType:"Naranja",type:"naranja",patterns:[589562,402918,527572],gaps:[4,8,12],lengths:[16],code:{name:"CVV",size:3}},verve:{niceType:"Verve",type:"verve",patterns:[[506099,506127],506129,[506133,506150],[506158,506163],506166,506168,506170,506173,[506176,506180],506184,[506187,506188],506191,506195,506197,507865,507866,[507868,507877],[507880,507888],507900,507941],gaps:[4,8,12],lengths:[16,18,19],code:{name:"CVV",size:3}}};t.exports=n},{}],41:[function(e,t,r){"use strict";function n(e){return e?JSON.parse(JSON.stringify(e)):null}Object.defineProperty(r,"__esModule",{value:!0}),r.clone=n},{}],42:[function(e,t,r){"use strict";function n(e){var t=e.filter(function(e){return e.matchStrength}).length;return t>0&&t===e.length}function o(e){return n(e)?e.reduce(function(e,t){return e?Number(e.matchStrength)<Number(t.matchStrength)?t:e:t}):null}Object.defineProperty(r,"__esModule",{value:!0}),r.findBestMatch=o},{}],43:[function(e,t,r){"use strict";function n(e){return"string"==typeof e||e instanceof String}
2Object.defineProperty(r,"__esModule",{value:!0}),r.isValidInputType=n},{}],44:[function(e,t,r){"use strict";function n(e,t,r){var n=String(t).length,o=e.substr(0,n),c=parseInt(o,10);return t=parseInt(String(t).substr(0,o.length),10),r=parseInt(String(r).substr(0,o.length),10),c>=t&&c<=r}function o(e,pattern){return(pattern=String(pattern)).substring(0,e.length)===e.substring(0,pattern.length)}function c(e,pattern){return Array.isArray(pattern)?n(e,pattern[0],pattern[1]):o(e,pattern)}Object.defineProperty(r,"__esModule",{value:!0}),r.matches=c},{}],45:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":53}],46:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":45,"./lib":53}],47:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":53}],48:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":53}],49:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":53}],50:[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={}},{}],51:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":53}],52:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],53:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":47,"./broadcast":49,"./broadcast-to-child-windows":48,"./constants":50,"./dispatch":51,"./has-opener":52,"./is-not-string":54,"./message":55,"./package-payload":56,"./send-message":57,"./subscribe-replier":58,"./subscription-args-invalid":59,"./types":60,"./unpack-payload":61}],54:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],55:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":53}],56:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":53}],57:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],58:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeReplier=void 0;var o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":45,"@braintree/uuid":32}],59:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":53}],60:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],61:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":53}],62:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isIos=r.isIE9=r.isSamsungBrowser=r.isAndroidChrome=r.isKitKatWebview=void 0;var n="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent,o=e("@braintree/browser-detection/is-android"),c=e("@braintree/browser-detection/is-chrome-os"),l=e("@braintree/browser-detection/is-chrome"),d=e("@braintree/browser-detection/is-ios");r.isIos=d;var f=e("@braintree/browser-detection/is-ie9");r.isIE9=f;var h=/Version\/\d\.\d* Chrome\/\d*\.0\.0\.0/;function m(e){return!l(e)&&e.indexOf("Samsung")>-1}function y(e){return void 0===e&&(e=n),o(e)&&h.test(e)}function v(e){return void 0===e&&(e=n),(o(e)||c(e))&&l(e)}function _(e){return void 0===e&&(e=n),/SamsungBrowser/.test(e)||m(e)}r.isKitKatWebview=y,r.isAndroidChrome=v,r.isSamsungBrowser=_},{"@braintree/browser-detection/is-android":75,"@braintree/browser-detection/is-chrome":77,"@braintree/browser-detection/is-chrome-os":76,"@braintree/browser-detection/is-ie9":78,"@braintree/browser-detection/is-ios":79}],63:[function(e,t,r){"use strict";var n=e("./lib/device");t.exports=function(){return!(0,n.isSamsungBrowser)()}},{"./lib/device":62}],64:[function(e,t,r){arguments[4][3][0].apply(r,arguments)},{dup:3}],65:[function(e,t,r){arguments[4][4][0].apply(r,arguments)},{dup:4}],66:[function(e,t,r){arguments[4][5][0].apply(r,arguments)},{"./is-duckduckgo":67,"./is-edge":68,"./is-opera":72,"./is-samsung":73,"./is-silk":74,dup:5}],67:[function(e,t,r){arguments[4][6][0].apply(r,arguments)},{dup:6}],68:[function(e,t,r){arguments[4][7][0].apply(r,arguments)},{dup:7}],69:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("MSIE 9")}},{}],70:[function(e,t,r){arguments[4][13][0].apply(r,arguments)},{"./is-ipados":71,dup:13}],71:[function(e,t,r){arguments[4][14][0].apply(r,arguments)},{dup:14}],72:[function(e,t,r){arguments[4][15][0].apply(r,arguments)},{dup:15}],73:[function(e,t,r){arguments[4][17][0].apply(r,arguments)},{dup:17}],74:[function(e,t,r){arguments[4][18][0].apply(r,arguments)},{dup:18}],75:[function(e,t,r){arguments[4][19][0].apply(r,arguments)},{"./dist/is-android":64,dup:19}],76:[function(e,t,r){arguments[4][20][0].apply(r,arguments)},{"./dist/is-chrome-os":65,dup:20}],77:[function(e,t,r){arguments[4][21][0].apply(r,arguments)},{"./dist/is-chrome":66,dup:21}],78:[function(e,t,r){t.exports=e("./dist/is-ie9")},{"./dist/is-ie9":69}],79:[function(e,t,r){arguments[4][25][0].apply(r,arguments)},{"./dist/is-ios":70,dup:25}],80:[function(e,t,r){t.exports=e("./dist/supports-input-formatting")},{"./dist/supports-input-formatting":63}],81:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error"),o=e("../shared/errors"),c=e("../shared/constants").allowedAttributes;function l(e,t){var r;return c.hasOwnProperty(e)?null==t||d(e,t)||(r=new n({type:o.HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED.type,code:o.HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED.code,message:'Value "'+t+'" is not allowed for "'+e+'" attribute.'})):r=new n({type:o.HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED.type,code:o.HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED.code,message:'The "'+e+'" attribute is not supported in Hosted Fields.'}),r}function d(e,t){return"string"===c[e]?"string"==typeof t||"number"==typeof t:"boolean"===c[e]&&("true"===String(t)||"false"===String(t))}t.exports=l},{"../../lib/braintree-error":100,"../shared/constants":89,"../shared/errors":90}],82:[function(e,t,r){"use strict";var n=e("../shared/constants"),o=e("../../lib/use-min");t.exports=function(e,t,r){return e+"/web/"+n.VERSION+"/html/hosted-fields-frame"+o(r)+".html#"+t}}
2,{"../../lib/use-min":115,"../shared/constants":89}],83:[function(e,t,r){"use strict";var n=e("../shared/constants").navigationDirections,o=e("../shared/browser-detection"),c=e("../shared/focus-intercept"),l=e("../shared/find-parent-tags"),d=["INPUT","SELECT","TEXTAREA"],f=["hidden","button","reset","submit","checkbox","radio","file"];function h(element){return o.hasSoftwareKeyboard()?d.indexOf(element.tagName)>-1&&f.indexOf(element.type)<0:"hidden"!==element.type}function m(e,t){switch(e){case n.BACK:return{checkIndexBounds:function(e){return e<0},indexChange:-1};case n.FORWARD:return{checkIndexBounds:function(e){return e>t-1},indexChange:1}}return{}}function y(e){var t,element;for(t=0;t<e.length;t++)if(h(element=e[t]))return element;return null}t.exports={removeExtraFocusElements:function(e,t){var r=Array.prototype.slice.call(e.elements);[y(r),y(r.reverse())].forEach(function(input){input&&c.matchFocusElement(input.getAttribute("id"))&&t(input.getAttribute("id"))})},createFocusChangeHandler:function(e,t){return function(data){var r,n,o,d,f=document.getElementById("bt-"+data.field+"-"+data.direction+"-"+e);if(f)if(o=l(f,"form")[0],document.forms.length<1||!o)t.onRemoveFocusIntercepts();else{r=(o=[].slice.call(o.elements)).indexOf(f),d=m(data.direction,o.length);do{if(r+=d.indexChange,d.checkIndexBounds(r))return;n=o[r]}while(!h(n));c.matchFocusElement(n.getAttribute("id"))?t.onTriggerInputFocus(n.getAttribute("data-braintree-type")):n.focus()}}}}},{"../shared/browser-detection":88,"../shared/constants":89,"../shared/find-parent-tags":91,"../shared/focus-intercept":92}],84:[function(e,t,r){"use strict";var n=e("../shared/constants").allowedStyles;t.exports=function(e){var t,element=document.createElement("input"),r={};return"."===e[0]&&(e=e.substring(1)),element.className=e,element.style.display="none !important",element.style.position="fixed !important",element.style.left="-99999px !important",element.style.top="-99999px !important",document.body.appendChild(element),t=window.getComputedStyle(element),n.forEach(function(style){var e=t[style];e&&(r[style]=e)}),document.body.removeChild(element),r}},{"../shared/constants":89}],85:[function(e,t,r){"use strict";var n=e("../../lib/assign").assign,o=e("../../lib/create-assets-url"),c=e("../../lib/is-verified-domain"),l=e("../../lib/destructor"),d=e("@braintree/iframer"),f=e("framebus"),h=e("../../lib/create-deferred-client"),m=e("../../lib/braintree-error"),y=e("./compose-url"),v=e("./get-styles-from-class"),_=e("../shared/constants"),E=e("../shared/errors"),w=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,A=e("@braintree/uuid"),T=e("../shared/find-parent-tags"),O=e("../shared/browser-detection"),S=_.events,I=e("@braintree/event-emitter"),C=e("./inject-frame"),N=e("../../lib/analytics"),P=_.allowedFields,R=e("../../lib/methods"),shadow=e("../../lib/shadow"),L=e("../../lib/find-root-node"),D=e("../../lib/convert-methods-to-error"),x=e("../../lib/errors"),k=e("../shared/get-card-types"),M=e("./attribute-validation-error"),F=e("@braintree/wrap-promise"),U=e("./focus-change"),j=e("../shared/focus-intercept").destroy,B=5;function H(e){return function(t){var r,n=t.merchantPayload,o=n.emittedBy,c=e[o].containerElement;Object.keys(n.fields).forEach(function(t){n.fields[t].container=e[t].containerElement}),r=n.fields[o],c.classList.toggle(_.externalClasses.FOCUSED,r.isFocused),c.classList.toggle(_.externalClasses.VALID,r.isValid),c.classList.toggle(_.externalClasses.INVALID,!r.isPotentiallyValid),this._state={cards:n.cards,fields:n.fields},this._emit(t.type,n)}}function V(e){var t=e.getBoundingClientRect(),r=Math.floor(t.height/2),n=Math.floor(t.width/2);return t.top<(window.innerHeight-r||document.documentElement.clientHeight-r)&&t.right>n&&t.bottom>r&&t.left<(window.innerWidth-n||document.documentElement.clientWidth-n)}function z(e){var t,r,T,O,P,L=this,M={},F={},B=[],V=A(),$=e.sessionId;if(this._merchantConfigurationOptions=n({},e),e.client?(T=(r=e.client.getConfiguration(void 0,$)).gatewayConfiguration.assetsUrl,O=r.isDebug):(T=o.create(e.authorization),O=Boolean(e.isDebug)),this._clientPromise=h.create({client:e.client,authorization:e.authorization,debug:O,assetsUrl:T,name:"Hosted Fields",sessionId:$}),P=y(T,V,O),!e.fields||0===Object.keys(e.fields).length)throw new m
2({type:x.INSTANTIATION_OPTION_REQUIRED.type,code:x.INSTANTIATION_OPTION_REQUIRED.code,message:"options.fields is required when instantiating Hosted Fields."});if(void 0!==e.binVerificationLength&&("number"!=typeof e.binVerificationLength||6!==e.binVerificationLength&&8!==e.binVerificationLength))throw new m({type:x.INSTANTIATION_OPTION_INVALID.type,code:x.INSTANTIATION_OPTION_INVALID.code,message:"options.binVerificationLength must be either 6 or 8."});I.call(this),this._injectedNodes=[],this._destructor=new l,this._fields=M,this._state={fields:{},cards:k("")},this._bus=new f({channel:V,verifyDomain:c,targetFrames:[window]}),this._destructor.registerFunctionForTeardown(function(){L._bus.teardown()}),e.client?N.sendEvent(this._clientPromise,"custom.hosted-fields.initialized"):N.sendEvent(this._clientPromise,"custom.hosted-fields.initialized.deferred-client"),Object.keys(e.fields).forEach(function(t){var r,n,o,c,l;if(!_.allowedFields.hasOwnProperty(t))throw new m({type:E.HOSTED_FIELDS_INVALID_FIELD_KEY.type,code:E.HOSTED_FIELDS_INVALID_FIELD_KEY.code,message:'"'+t+'" is not a valid field.'});if("string"==typeof(n=(r=e.fields[t]).container||r.selector)&&(n=document.querySelector(n)),!n||1!==n.nodeType)throw new m({type:E.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.type,code:E.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.code,message:E.HOSTED_FIELDS_INVALID_FIELD_SELECTOR.message,details:{fieldSelector:r.selector,fieldContainer:r.container,fieldKey:t}});if(n.querySelector('iframe[name^="braintree-"]'))throw new m({type:E.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.type,code:E.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.code,message:E.HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME.message,details:{fieldSelector:r.selector,fieldContainer:r.container,fieldKey:t}});if(o=n,shadow.isShadowElement(o)&&(o=shadow.transformToSlot(o,"height: 100%")),r.maxlength&&"number"!=typeof r.maxlength)throw new m({type:E.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:E.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:"The value for maxlength must be a number.",details:{fieldKey:t}});if(r.minlength&&"number"!=typeof r.minlength)throw new m({type:E.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:E.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:"The value for minlength must be a number.",details:{fieldKey:t}});c=d({type:t,name:"braintree-hosted-field-"+t,style:_.defaultIFrameStyle,title:r.iframeTitle||"Secure Credit Card Frame - "+_.allowedFields[t].label}),this._bus.addTargetFrame(c),this._injectedNodes.push.apply(this._injectedNodes,C(V,c,o,function(){L.focus(t)})),this._setupLabelFocus(t,n),M[t]={frameElement:c,containerElement:n},l=new Promise(function(e){F[t]=e}),B.push(l),this._state.fields[t]={isEmpty:!0,isValid:!1,isPotentiallyValid:!0,isFocused:!1,container:n},setTimeout(function(){c.src=P},0)}.bind(this)),this._merchantConfigurationOptions.styles&&Object.keys(this._merchantConfigurationOptions.styles).forEach(function(e){var t=L._merchantConfigurationOptions.styles[e];"string"==typeof t&&(L._merchantConfigurationOptions.styles[e]=v(t))}),this._bus.on(S.REMOVE_FOCUS_INTERCEPTS,function(data){j(data&&data.id)}),this._bus.on(S.TRIGGER_FOCUS_CHANGE,U.createFocusChangeHandler(V,{onRemoveFocusIntercepts:function(element){L._bus.emit(S.REMOVE_FOCUS_INTERCEPTS,{id:element})},onTriggerInputFocus:function(e){L.focus(e)}})),this._bus.on(S.READY_FOR_CLIENT,function(e){L._clientPromise.then(function(t){e(t)})}),this._bus.on(S.CARD_FORM_ENTRY_HAS_BEGUN,function(){N.sendEvent(L._clientPromise,"hosted-fields.input.started")}),this._bus.on(S.BIN_AVAILABLE,function(e){L._emit("binAvailable",{bin:e})}),t=setTimeout(function(){N.sendEvent(L._clientPromise,"custom.hosted-fields.load.timed-out"),L._emit("timeout")},w),Promise.all(B).then(function(e){var r=e[0];clearTimeout(t),r(Y(L._merchantConfigurationOptions)),L._cleanUpFocusIntercepts(),L._emit("ready")}),this._bus.on(S.FRAME_READY,function(data,e){F[data.field](e)}),this._bus.on(S.INPUT_EVENT,H(M).bind(this)),this._destructor.registerFunctionForTeardown(function(){var e,t,r;for(e=0;e<L._injectedNodes.length;e++)(r=(t=L._injectedNodes[e]).parentNode).removeChild(t),r.classList.remove(_.externalClasses.FOCUSED,_.externalClasses.INVALID,_.externalClasses.VALID)}),this._destructor.registerFunctionForTeardown(function(){j()}),this._destructor.registerFunctionForTeardown(function(){var e=R(z.prototype).concat(R(I.prototype));D(L,e)})}function Y(e){var t=n({},e);return t.fields=n({}
2,t.fields),Object.keys(t.fields).forEach(function(e){t.fields[e]=n({},t.fields[e]),delete t.fields[e].container}),t}I.createChild(z),z.prototype._setupLabelFocus=function(e,t){var r,i,n=this,o=L(t);if(null!=t.id){for(r=Array.prototype.slice.call(document.querySelectorAll('label[for="'+t.id+'"]')),o!==document&&(r=r.concat(Array.prototype.slice.call(o.querySelectorAll('label[for="'+t.id+'"]')))),r=(r=r.concat(T(t,"label"))).filter(function(label,e,t){return t.indexOf(label)===e}),i=0;i<r.length;i++)r[i].addEventListener("click",c,!1);this._destructor.registerFunctionForTeardown(function(){for(i=0;i<r.length;i++)r[i].removeEventListener("click",c,!1)})}function c(){n.focus(e)}},z.prototype._getAnyFieldContainer=function(){var e=this;return Object.keys(this._fields).reduce(function(t,r){return t||e._fields[r].containerElement},null)},z.prototype._cleanUpFocusIntercepts=function(){var e,t;document.forms.length<1?this._bus.emit(S.REMOVE_FOCUS_INTERCEPTS):(e=this._getAnyFieldContainer(),(t=T(e,"form")[0])?U.removeExtraFocusElements(t,function(e){this._bus.emit(S.REMOVE_FOCUS_INTERCEPTS,{id:e})}.bind(this)):this._bus.emit(S.REMOVE_FOCUS_INTERCEPTS))},z.prototype._attachInvalidFieldContainersToError=function(e){e.details&&e.details.invalidFieldKeys&&e.details.invalidFieldKeys.length>0&&(e.details.invalidFields={},e.details.invalidFieldKeys.forEach(function(t){e.details.invalidFields[t]=this._fields[t].containerElement}.bind(this)))},z.prototype.getChallenges=function(){return this._clientPromise.then(function(e){return e.getConfiguration().gatewayConfiguration.challenges})},z.prototype.getSupportedCardTypes=function(){return this._clientPromise.then(function(e){return e.getConfiguration().gatewayConfiguration.creditCards.supportedCardTypes.map(function(e){return"MasterCard"===e?"Mastercard":e})})},z.prototype.teardown=function(){var e=this;return new Promise(function(t,r){e._destructor.teardown(function(n){N.sendEvent(e._clientPromise,"custom.hosted-fields.teardown-completed"),n?r(n):t()})})},z.prototype.tokenize=function(e){var t=this;return e||(e={}),new Promise(function(r,n){t._bus.emit(S.TOKENIZATION_REQUEST,e,function(e){var o=e[0],c=e[1];o?(t._attachInvalidFieldContainersToError(o),n(new m(o))):r(c)})})},z.prototype.addClass=function(e,t){var r;return P.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(S.ADD_CLASS,{field:e,classname:t}):r=new m({type:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot add class to "'+e+'" field because it is not part of the current Hosted Fields options.'}):r=new m({type:E.HOSTED_FIELDS_FIELD_INVALID.type,code:E.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when adding a class.'}),r?Promise.reject(r):Promise.resolve()},z.prototype.removeClass=function(e,t){var r;return P.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(S.REMOVE_CLASS,{field:e,classname:t}):r=new m({type:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot remove class from "'+e+'" field because it is not part of the current Hosted Fields options.'}):r=new m({type:E.HOSTED_FIELDS_FIELD_INVALID.type,code:E.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when removing a class.'}),r?Promise.reject(r):Promise.resolve()},z.prototype.setAttribute=function(e){var t,r;return P.hasOwnProperty(e.field)?this._fields.hasOwnProperty(e.field)?(t=M(e.attribute,e.value))?r=t:this._bus.emit(S.SET_ATTRIBUTE,{field:e.field,attribute:e.attribute,value:e.value}):r=new m({type:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot set attribute for "'+e.field+'" field because it is not part of the current Hosted Fields options.'}):r=new m({type:E.HOSTED_FIELDS_FIELD_INVALID.type,code:E.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e.field+'" is not a valid field. You must use a valid field option when setting an attribute.'}),r?Promise.reject(r):Promise.resolve()},z.prototype.setMonthOptions=function(e){var t,r=this,n=this._merchantConfigurationOptions.fields;return n.expirationMonth?n.expirationMonth.select||(t="Expiration month field must be a select element."):t="Expiration month field must exist to use setMonthOptions.",t?Promise.reject(new m({type:E.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.type,code:E.HOSTED_FIELDS_FIELD_PROPERTY_INVALID.code,message:t})):new Promise(function(t){r._bus.emit(S.SET_MONTH_OPTIONS,e,t)})},z.prototype.setMessage=function(e){this._bus.emit(S.SET_MESSAGE,{field:e.field,message:e.message})},z.prototype.removeAttribute=function(e){var t,r;return P.hasOwnProperty(e.field)?this._fields.hasOwnProperty(e.field)?(t=M(e.attribute))?r=t:this._bus.emit(S.REMOVE_ATTRIBUTE,{field:e.field,attribute:e.attribute}):r=new m({type:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot remove attribute for "'+e.field+'" field because it is not part of the current Hosted Fields options.'}):r=new m({type:E.HOSTED_FIELDS_FIELD_INVALID.type,code:E.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e.field+'" is not a valid field. You must use a valid field option when removing an attribute.'}),r?Promise.reject(r):Promise.resolve()},z.prototype.setPlaceholder=function(e,t){return this.setAttribute({field:e,attribute:"placeholder",value:t})},z.prototype.clear=function(e){var t;return P.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(S.CLEAR_FIELD,{field:e}):t=new m({type:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot clear "'+e+'" field because it is not part of the current Hosted Fields options.'}):t=new m({type:E.HOSTED_FIELDS_FIELD_INVALID.type,code:E.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when clearing a field.'}
2),t?Promise.reject(t):Promise.resolve()},z.prototype.focus=function(e){var t,r=this._fields[e];return P.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?(r.frameElement.focus(),this._bus.emit(S.TRIGGER_INPUT_FOCUS,{field:e}),O.isIos()&&setTimeout(function(){V(r.containerElement)||r.containerElement.scrollIntoView()},B)):t=new m({type:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.type,code:E.HOSTED_FIELDS_FIELD_NOT_PRESENT.code,message:'Cannot focus "'+e+'" field because it is not part of the current Hosted Fields options.'}):t=new m({type:E.HOSTED_FIELDS_FIELD_INVALID.type,code:E.HOSTED_FIELDS_FIELD_INVALID.code,message:'"'+e+'" is not a valid field. You must use a valid field option when focusing a field.'}),t?Promise.reject(t):Promise.resolve()},z.prototype.getState=function(){return this._state},t.exports=F.wrapPrototype(z)},{"../../lib/analytics":95,"../../lib/assign":97,"../../lib/braintree-error":100,"../../lib/constants":101,"../../lib/convert-methods-to-error":102,"../../lib/create-assets-url":103,"../../lib/create-deferred-client":105,"../../lib/destructor":106,"../../lib/errors":108,"../../lib/find-root-node":109,"../../lib/is-verified-domain":110,"../../lib/methods":112,"../../lib/shadow":114,"../shared/browser-detection":88,"../shared/constants":89,"../shared/errors":90,"../shared/find-parent-tags":91,"../shared/focus-intercept":92,"../shared/get-card-types":93,"./attribute-validation-error":81,"./compose-url":82,"./focus-change":83,"./get-styles-from-class":84,"./inject-frame":86,"@braintree/event-emitter":27,"@braintree/iframer":28,"@braintree/uuid":32,"@braintree/wrap-promise":36,framebus:46}],86:[function(e,t,r){"use strict";var n=e("../shared/focus-intercept"),o=e("../shared/constants").navigationDirections;t.exports=function(e,t,r,c){var l=t.getAttribute("type"),d=document.createElement("div"),f=document.createDocumentFragment(),h=n.generate(e,l,o.BACK,c),m=n.generate(e,l,o.FORWARD,c);return d.style.clear="both",f.appendChild(h),f.appendChild(t),f.appendChild(m),f.appendChild(d),r.appendChild(f),[t,d]}},{"../shared/constants":89,"../shared/focus-intercept":92}],87:[function(e,t,r){"use strict";var n=e("./external/hosted-fields"),o=e("../lib/basic-component-verification"),c=e("./shared/errors"),l=e("restricted-input/supports-input-formatting"),d=e("@braintree/wrap-promise"),f=e("../lib/braintree-error"),h="3.144.0";function m(e){return o.verify({name:"Hosted Fields",authorization:e.authorization,client:e.client}).then(function(){var t=new n(e);return new Promise(function(e,r){t.on("ready",function(){e(t)}),t.on("timeout",function(){r(new f(c.HOSTED_FIELDS_TIMEOUT))})})})}t.exports={supportsInputFormatting:l,create:d(m),VERSION:h}},{"../lib/basic-component-verification":98,"../lib/braintree-error":100,"./external/hosted-fields":85,"./shared/errors":90,"@braintree/wrap-promise":36,"restricted-input/supports-input-formatting":80}],88:[function(e,t,r){"use strict";var n=e("@braintree/browser-detection/is-android"),o=e("@braintree/browser-detection/is-chrome-os"),c=e("@braintree/browser-detection/is-ios"),l=e("@braintree/browser-detection/is-chrome"),d=e("@braintree/browser-detection/is-safari"),f=e("@braintree/browser-detection/is-ios-safari");function h(){return n()||o()||c()}function m(){return l()&&c()}t.exports={isAndroid:n,isChromeOS:o,isChromeIos:m,isFirefox:e("@braintree/browser-detection/is-firefox"),isIos:c,isIosWebview:e("@braintree/browser-detection/is-ios-webview"),isSafari:d,isIosSafari:f,hasSoftwareKeyboard:h}},{"@braintree/browser-detection/is-android":19,"@braintree/browser-detection/is-chrome":21,"@braintree/browser-detection/is-chrome-os":20,"@braintree/browser-detection/is-firefox":22,"@braintree/browser-detection/is-ios":25,"@braintree/browser-detection/is-ios-safari":23,"@braintree/browser-detection/is-ios-webview":24,"@braintree/browser-detection/is-safari":26}],89:[function(e,t,r){"use strict";var n=e("../../lib/enumerate"),o=e("./errors"),c={VERSION:"3.144.0",maxExpirationYearAge:19,externalEvents:{FOCUS:"focus",BLUR:"blur",EMPTY:"empty",NOT_EMPTY:"notEmpty",VALIDITY_CHANGE:"validityChange",CARD_TYPE_CHANGE:"cardTypeChange"},defaultMaxLengths:{number:19,postalCode:8,expirationDate:7,expirationMonth:2,expirationYear:4,cvv:3},externalClasses:{FOCUSED:"braintree-hosted-fields-focused",INVALID:"braintree-hosted-fields-invalid",VALID:"braintree-hosted-fields-valid"},navigationDirections:{BACK:"before",FORWARD:"after"},defaultIFrameStyle:{border:"none",width:"100%",height:"100%",float:"left"},tokenizationErrorCodes:{81724:o.HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE,81736:o.HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED},allowedStyles:["-moz-appearance","-moz-box-shadow","-moz-osx-font-smoothing","-moz-tap-highlight-color","-moz-transition","-webkit-appearance","-webkit-box-shadow","-webkit-font-smoothing","-webkit-tap-highlight-color","-webkit-text-fill-color","-webkit-transition","appearance","box-shadow","color","direction","font","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-weight","letter-spacing","line-height","margin","margin-top","margin-right","margin-bottom","margin-left","opacity","outline","padding","padding-top","padding-right","padding-bottom","padding-left","text-align","text-shadow","transition"],allowedFields:{cardholderName:{name:"cardholder-name",label:"Cardholder Name"},number:{name:"credit-card-number",label:"Credit Card Number"},cvv:{name:"cvv",label:"CVV"},expirationDate:{name:"expiration",label:"Expiration Date"},expirationMonth:{name:"expiration-month",label:"Expiration Month"},expirationYear:{name:"expiration-year",label:"Expiration Year"},postalCode:{name:"postal-code",label:"Postal Code"}},allowedAttributes:{"aria-invalid":"boolean","aria-required":"boolean",disabled:"boolean",placeholder:"string"},allowedBillingAddressFields:["company","countryCodeNumeric","countryCodeAlpha2","countryCodeAlpha3","countryName","extendedAddress","locality","region","firstName","lastName","postalCode","streetAddress"],allowedShippingAddressFields:["company","countryCodeNumeric","countryCodeAlpha2","countryCodeAlpha3","countryName","extendedAddress","locality","region","firstName","lastName","postalCode","streetAddress"],autocompleteMappings:{"cardholder-name":"cc-name","credit-card-number":"cc-number",expiration:"cc-exp","expiration-month":"cc-exp-month","expiration-year":"cc-exp-year",cvv:"cc-csc","postal-code":"billing postal-code"}};c.events=n(["ADD_CLASS","AUTOFILL_DATA_AVAILABLE","BIN_AVAILABLE","CARD_FORM_ENTRY_HAS_BEGUN","CLEAR_FIELD","CONFIGURATION","FRAME_READY","INPUT_EVENT","READY_FOR_CLIENT","REMOVE_ATTRIBUTE","REMOVE_CLASS","REMOVE_FOCUS_INTERCEPTS","SET_ATTRIBUTE","SET_MESSAGE","SET_MONTH_OPTIONS","TOKENIZATION_REQUEST","TRIGGER_FOCUS_CHANGE","TRIGGER_INPUT_FOCUS","VALIDATE_STRICT"],"hosted-fields:"),t.exp
2orts=c},{"../../lib/enumerate":107,"./errors":90}],90:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={HOSTED_FIELDS_TIMEOUT:{type:n.types.UNKNOWN,code:"HOSTED_FIELDS_TIMEOUT",message:"Hosted Fields timed out when attempting to set up."},HOSTED_FIELDS_INVALID_FIELD_KEY:{type:n.types.MERCHANT,code:"HOSTED_FIELDS_INVALID_FIELD_KEY"},HOSTED_FIELDS_INVALID_FIELD_SELECTOR:{type:n.types.MERCHANT,code:"HOSTED_FIELDS_INVALID_FIELD_SELECTOR",message:"Selector does not reference a valid DOM node."},HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME:{type:n.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME",message:"Element already contains a Braintree iframe."},HOSTED_FIELDS_FIELD_INVALID:{type:n.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_INVALID"},HOSTED_FIELDS_FIELD_NOT_PRESENT:{type:n.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_NOT_PRESENT"},HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR:{type:n.types.NETWORK,code:"HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE:{type:n.types.CUSTOMER,code:"HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE",message:"This credit card already exists in the merchant's vault."},HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED:{type:n.types.CUSTOMER,code:"HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED",message:"CVV verification failed during tokenization."},HOSTED_FIELDS_FAILED_TOKENIZATION:{type:n.types.CUSTOMER,code:"HOSTED_FIELDS_FAILED_TOKENIZATION",message:"The supplied card data failed tokenization."},HOSTED_FIELDS_FIELDS_EMPTY:{type:n.types.CUSTOMER,code:"HOSTED_FIELDS_FIELDS_EMPTY",message:"All fields are empty. Cannot tokenize empty card fields."},HOSTED_FIELDS_FIELDS_INVALID:{type:n.types.CUSTOMER,code:"HOSTED_FIELDS_FIELDS_INVALID",message:"Some payment input fields are invalid. Cannot tokenize invalid card fields."},HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED:{type:n.types.MERCHANT,code:"HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED"},HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED:{type:n.types.MERCHANT,code:"HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED"},HOSTED_FIELDS_FIELD_PROPERTY_INVALID:{type:n.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_PROPERTY_INVALID"}}},{"../../lib/braintree-error":100}],91:[function(e,t,r){"use strict";function n(element,e){for(var t=element.parentNode,r=[];null!=t;)null!=t.tagName&&t.tagName.toLowerCase()===e&&r.push(t),t=t.parentNode;return r}t.exports=n},{}],92:[function(e,t,r){"use strict";var n=e("./browser-detection"),o=e("./constants"),c=Object.keys(o.allowedFields),l=o.navigationDirections,d={generate:function(e,t,r,o){var input=document.createElement("input"),c={border:"none !important",display:"block !important",height:"1px !important",left:"-1px !important",opacity:"0 !important",position:"absolute !important",top:"-1px !important",width:"1px !important"};return n.hasSoftwareKeyboard()||n.isFirefox()?(input.setAttribute("aria-hidden","true"),input.setAttribute("autocomplete","off"),input.setAttribute("data-braintree-direction",r),input.setAttribute("data-braintree-type",t),input.setAttribute("id","bt-"+t+"-"+r+"-"+e),input.setAttribute("style",JSON.stringify(c).replace(/[{}"]/g,"").replace(/,/g,";")),input.classList.add("focus-intercept"),input.addEventListener("focus",function(e){o(e),n.hasSoftwareKeyboard()||input.blur()}),input):document.createDocumentFragment()},destroy:function(e){var t;e?t=[document.getElementById(e)]:(t=document.querySelectorAll("[data-braintree-direction]"),t=[].slice.call(t)),t.forEach(function(e){e&&1===e.nodeType&&d.matchFocusElement(e.getAttribute("id"))&&e.parentNode.removeChild(e)})},matchFocusElement:function(e){var t,r,n,o;return!!e&&!((t=e.split("-")).length<4)&&(r="bt"===t[0],n=c.indexOf(t[1])>-1,o=t[2]===l.BACK||t[2]===l.FORWARD,Boolean(r&&n&&o))}};t.exports=d},{"./browser-detection":88,"./constants":89}],93:[function(e,t,r){"use strict";var n=e("credit-card-type");t.exports=function(e){var t=n(e);return t.forEach(function(e){"mastercard"===e.type&&(e.type="master-card")}),t}},{"credit-card-type":38}],94:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":101,"./create-authorization-data":104,"./json-clone":111}],95:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":94,"./assign":97,"./constants":101}],96:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":37}],97:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],98:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":100,"./errors":108}],99:[function(e,t,r){"use strict";var n=e("./once");function o(e,t){0===e.length?(e(),t(null)):e(t)}t.exports=function(e,t){var i,r=e.length,c=r,l=n(t);if(0!==r)for(i=0;i<r;i++)o(e[i],d);else l(null);function d(e){e?l(e):0==(c-=1)&&l(null)}}},{"./once":113}],100:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":107}],101:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],102:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":100,"./errors":108}],103:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":101}],104:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":101,"../lib/vendor/polyfill":116}],105:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":96,"./braintree-error":100,"./errors":108}],106:[function(e,t,r){"use strict";var n=e("./batch-execute-functions");function o(){this._teardownRegistry=[],this._isTearingDown=!1}o.prototype.registerFunctionForTeardown=function(e){"function"==typeof e&&this._teardownRegistry.push(e)},o.prototype.teardown=function(e){this._isTearingDown?e(new Error("Destructor is already tearing down")):(this._isTearingDown=!0,n(this._teardownRegistry,function(t){this._teardownRegistry=[],this._isTearingDown=!1,"function"==typeof e&&e(t)}.bind(this)))},t.exports=o},{"./batch-execute-functions":99}],107:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],108:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":100}],109:[function(e,t,r){"use strict";t.exports=function(element){for(;element.parentNode;)element=element.parentNode;return element}},{}],110:[function(e,t,r){"use strict";var n,o={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};function c(e){return e.split(".").slice(-2).join(".")}function l(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((n=n||document.createElement("a")).href=e,t=c(n.hostname),o.hasOwnProperty(t))}t.exports=l},{}],111:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],112:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],113:[function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}t.exports=n},{}],114:[function(e,t,r){"use strict";var n=e("@braintree/uuid"),o=e("./find-root-node");function c(element){return"[object ShadowRoot]"===(element=o(element)).toString()}function l(element){return c(element=o(element))?element.host:null}function d(element,e){var t=o(element).querySelector("style"),r=l(element),f="shadow-slot-"+n(),slot=document.createElement("slot"),h=document.createElement("div");return slot.setAttribute("name",f),element.appendChild(slot),h.setAttribute("slot",f),r.appendChild(h),e&&(t||(t=document.createElement("style"),element.appendChild(t)),t.sheet.insertRule('::slotted([slot="'+f+'"]) { '+e+" }")),c(r)?d(h,e):h}t.exports={isShadowElement:c,getShadowHost:l,transformToSlot:d}},{"./find-root-node":109,"@braintree/uuid":32}],115:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],116:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}]},{},[87])(87)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],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(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),l=e("./is-opera"),d=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||n(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":5,"./is-edge":6,"./is-opera":13,"./is-samsung":14,"./is-silk":15}],5:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],6:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],7:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],8:[function(e,t,r){"use strict";var n=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&o(e)}},{"./is-ios":11}],9:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!n(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":11,"./is-ios-google-search-app":8}],10:[function(e,t,r){"use strict";var n=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,n(e)&&t}},{"./is-ios-webview":9}],11:[function(e,t,r){"use strict";var n=e("./is-ipados");t.exports=function(e,t,r){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||n(e,r):o}},{"./is-ipados":12}],12:[function(e,t,r){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],13:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],14:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],15:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],16:[function(e,t,r){"use strict";var n=48,o=e("./is-android"),c=e("./is-ios-firefox"),l=e("./is-ios-webview"),d=e("./is-chrome"),f=e("./is-samsung"),h=e("./is-duckduckgo");function m(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<n}function y(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}function v(e){var t=/Version\/[\d.]+/i;return e=e||window.navigator.userAgent,!!o(e)&&t.test(e)&&!y(e)&&!h(e)}function _(e){return!d(e)&&!f(e)&&/samsung/i.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,!(l(e)||c(e)||v(e)||y(e)||m(e)||_(e))}},{"./is-android":3,"./is-chrome":4,"./is-duckduckgo":5,"./is-ios-firefox":7,"./is-ios-webview":9,"./is-samsung":14}],17:[function(e,t,r){t.exports=e("./dist/is-android")},{"./dist/is-android":3}],18:[function(e,t,r){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":10}],19:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":11}],20:[function(e,t,r){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":16}],21:[function(e,t,r){"use strict";var n="undefined"!=typeof Promise?Promise:null,o=function(){function e(t){var r=this;"function"!=typeof t?(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.
2shouldCatchExceptions(t)&&this._promise.catch(function(){}),this._resetState()):this._promise=new e.Promise(t)}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")?Boolean(t.suppressUnhandledPromiseMessage):Boolean(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}();t.exports=o},{}],22:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":23,"./lib/default-attributes":24,"./lib/set-attributes":25}],23:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],24:[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"}},{}],25:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],26:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],27:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],28:[function(e,t,r){"use strict";function n(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))}}
2Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],29:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],30:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":27,"./lib/once":28,"./lib/promise-or-callback":29}],31:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],32:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":40}],33:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":32,"./lib":40}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":40}],35:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":40}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":40}],37:[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={}},{}],38:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":40}],39:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],40:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":34,"./broadcast":36,"./broadcast-to-child-windows":35,"./constants":37,"./dispatch":38,"./has-opener":39,"./is-not-string":41,"./message":42,"./package-payload":43,"./send-message":44,"./subscribe-replier":45,"./subscription-args-invalid":46,"./types":47,"./unpack-payload":48}],41:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],42:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":40}],43:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":40}],44:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],45:[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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":32,"@braintree/uuid":26}],46:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":40}],47:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],48:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":40}],49:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":55,"./create-authorization-data":59,"./json-clone":75}],50:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":49,"./assign":52,"./constants":55}],51:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":31}],52:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],53:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":54,"./errors":62}],54:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":61}],55:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],56:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":54,"./errors":62}],57:[function(e,t,r){"use strict";var n=e("./braintree-error");function o(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=o},{"./braintree-error":54}],58:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":55}],59:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":55,"../lib/vendor/polyfill":79}],60:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":51,"./braintree-error":54,"./errors":62}],61:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],62:[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"}
2,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":54}],63:[function(e,t,r){"use strict";var n=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),l=e("framebus"),d=e("../shared/events"),f=e("../shared/errors"),h=e("../shared/constants"),m=e("@braintree/uuid"),y=e("@braintree/iframer"),v=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("./../../assign").assign,w=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,A=["name","dispatchFrameUrl","openFrameUrl"];function T(){}function O(e){if(!e)throw new Error("Valid configuration is required");if(A.forEach(function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}function S(e){O(e),this._serviceId=m().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new l({channel:this._serviceId}),this._setBusEvents()}S.prototype.initialize=function(e){var t=function(){e(),this._bus.off(d.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(d.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},S.prototype._writeDispatchFrame=function(){var e=h.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=y({"aria-hidden":!0,name:e,title:e,src:t,class:h.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},S.prototype._setBusEvents=function(){this._bus.on(d.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}.bind(this)),this._bus.on(w,function(e){e(this.state)}.bind(this))},S.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(E(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(ne
2w v(f.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},S.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},S.prototype.close=function(){this.isFrameClosed()||this._frame.close()},S.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},S.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},S.prototype.createNoopHandler=function(){return{close:T,focus:T}},S.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},S.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},S.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},S.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new v(f.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),h.POPUP_POLL_INTERVAL),this._popupInterval},S.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),r=Boolean(window.popupBridge),l=E({},this._options,e);return r?new o(l):t?new n(l):new c(l)},t.exports=S},{"../../braintree-error":54,"../../constants":55,"../shared/browser-detection":70,"../shared/constants":71,"../shared/errors":72,"../shared/events":73,"./../../assign":52,"./strategies/modal":65,"./strategies/popup":68,"./strategies/popup-bridge":66,"@braintree/iframer":22,"@braintree/uuid":26,framebus:33}],64:[function(e,t,r){"use strict";var n=e("./frame-service");t.exports={create:function(e,t){var r=new n(e);r.initialize(function(){t(r)})}}},{"./frame-service":63}],65:[function(e,t,r){"use strict";var n=e("@braintree/iframer"),o=e("../../../assign").assign,c=e("../../shared/browser-detection"),l={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function d(){}function f(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}f.prototype.initialize=d,f.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},l),title:"Lightbox Frame"};c.isIos()?(c.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,l,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=n(e),this._el.appendChild(this._frame)):this._el=this._frame=n(e),this._closed=!1,this._container.appendChild(this._el)},f.prototype.focus=d,f.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},f.prototype.isClosed=function(){return Boolean(this._closed)},f.prototype.redirect=function(e){this._frame.src=e},f.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},f.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=f},{"../../../assign":52,"../../shared/browser-detection":70,"@braintree/iframer":22}],66:[function(e,t,r){"use strict";var n=e("../../../braintree-error"),o=e("../../shared/errors");function c(){}function l(e){this._closed=null,this._options=e}l.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(r,c){var l=!c&&!r;t._closed=!0,r||l?e(new n(o.FRAME_SERVICE_FRAME_CLOSED)):e(null,c)}},l.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)}
2,l.prototype.focus=c,l.prototype.close=c,l.prototype.isClosed=function(){return Boolean(this._closed)},l.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=l},{"../../../braintree-error":54,"../../shared/errors":72}],67:[function(e,t,r){"use strict";var n=e("../../../shared/constants"),o=e("./position");function c(e,t,r){return void 0!==t?t:o[e](r)}t.exports=function(e){var t=e.height||n.DEFAULT_POPUP_HEIGHT,r=e.width||n.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),l=c("left",e.left,r);return[n.POPUP_BASE_OPTIONS,"height="+t,"width="+r,"top="+o,"left="+l].join(",")}},{"../../../shared/constants":71,"./position":69}],68:[function(e,t,r){"use strict";var n=e("./compose-options");function o(){}function c(e){this._frame=null,this._options=e||{}}c.prototype.initialize=o,c.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,n(this._options))},c.prototype.focus=function(){this._frame.focus()},c.prototype.close=function(){this._frame.closed||this._frame.close()},c.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},c.prototype.redirect=function(e){this._frame.location.href=e},t.exports=c},{"./compose-options":67}],69:[function(e,t,r){"use strict";function n(e){return c(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)}function o(e){return c(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)}function c(e,t,r){return(e-t)/2+r}t.exports={top:n,left:o,center:c}},{}],70:[function(e,t,r){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ios":19,"@braintree/browser-detection/is-ios-wkwebview":18,"@braintree/browser-detection/supports-popups":20}],71:[function(e,t,r){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],72:[function(e,t,r){"use strict";var n=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":54}],73:[function(e,t,r){"use strict";var n=e("../../enumerate");t.exports=n(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":61}],74:[function(e,t,r){"use strict";t.exports=function(e){e=e||window;try{return e.self!==e.top}catch(e){return!0}}},{}],75:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],76:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],77:[function(e,t,r){"use strict";function n(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)||!1}function c(e){return e=e||window.location.href,/\?/.test(e)}function l(e){return c(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}}function d(e,t){var r,n,p,c=[];for(p in e)e.hasOwnProperty(p)&&(n=e[p],r=t?o(e)?t+"[]":t+"["+p+"]":p,"object"==typeof n?c.push(d(n,r)):c.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return c.join("&")}function f(e,t){return e=e||"",null!=t&&"object"==typeof t&&n(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=d(t)),e}t.exports={parse:l,stringify:d,queryify:f,hasQueryParams:c}},{}],78:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],79:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],80:[function(e,t,r){"use strict";t.exports={REQUIRED_OPTIONS_FOR_START_PAYMENT:["givenName","surname","currencyCode","paymentType","amount","fallback"],REQUIRED_OPTIONS_FOR_PAY_UPON_INVOICE_PAYMENT_TYPE:["givenName","surname","currencyCode","onPaymentStart","paymentType","amount","address","billingAddress","birthDate","email","locale","customerServiceInstructions","correlationId","phone","phoneCountryCode","lineItems"],REQUIRED_OPTIONS_FOR_ADDRESS:["streetAddress","locality","postalCode","countryCode"],REQUIRED_OPTIONS_FOR_LINE_ITEMS:["category","name","quantity","unitAmount","unitTaxAmount"],REQUIRED_OPTIONS_FOR_BLIK_SEAMLESS_PAYMENT_TYPE:["givenName","surname","currencyCode","paymentType","amount"],REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_LEVEL_0:["authCode"],REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_FIRST:["authCode","consumerReference","aliasLabel"],REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_SUBSEQUENT:["consumerReference","aliasKey"]}},{}],81:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error"),o=e("../shared/errors");function c(e,t){var r,c;if(!e||"string"!=typeof e||!/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/.test(e))throw new n(o.LOCAL_PAYMENT_QR_CODE_INVALID_DATA);if("string"==typeof t){if(!(r=document.querySelector(t)))throw new n({type:n.types.MERCHANT,code:"LOCAL_PAYMENT_QR_CODE_CONTAINER_NOT_FOUND",message:"QR code container element not found: "+t})}else{if(!t||t.nodeType!==Node.ELEMENT_NODE)throw new n(o.LOCAL_PAYMENT_QR_CODE_INVALID_CONTAINER);r=t}return r.innerHTML="",(c=document.createElement("img")).src="data:image/png;base64,"+e,c.alt="QR Code for payment",c.style.display="block",c.style.maxWidth="100%",c.style.height="auto",r.appendChild(c),c}t.exports=c},{"../../lib/braintree-error":54,"../shared/errors":85}],82:[function(e,t,r){"use strict";var n=e("../../lib/frame-service/external"),o=e("../../lib/braintree-error"),c=e("../../lib/use-min"),l="3.144.0",d=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,f=e("../../lib/analytics"),h=e("../../lib/methods"),m=e("../../lib/convert-methods-to-error"),y=e("../../lib/convert-to-braintree-error"),v=e("@braintree/extended-promise"),_=e("../../lib/querystring"),E=e("@braintree/wrap-promise"),w=e("./constants"),A=e("../shared/errors"),T=e("../../lib/assign").assign,O=e("../../lib/in-iframe"),S=e("../shared/browser-detection"),I=e("./inject-qr-code"),C=1282,N=720;function P(e){this._client=e.client,this._assetsUrl=e.client.getConfiguration().gatewayConfiguration.assetsUrl+"/web/"+l,this._isDebug=e.client.getConfiguration().isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/local-payment-landing-frame"+c(this._isDebug)+".html",this._authorizationInProgress=!1,this._paymentType="unknown",this._merchantAccountId=e.merchantAccountId,e.redirectUrl&&(this._redirectUrl=e.redirectUrl,this._isRedirectFlow=!0)}function R(e){var t=e.blikOptions||{},r="string"==typeof e.paymentType?e.paymentType.toLowerCase():e.paymentType;return"blik"===r?t.hasOwnProperty("level_0")||t.hasOwnProperty("oneClick"):!("swish"!==r||!e.swishOptions||!e.swishOptions.requestQrCode)||["pay_upon_invoice","mbway","bancomatpay"].includes(r)}function L(e){var i,option;for(i=0;i<w.REQUIRED_OPTIONS_FOR_ADDRESS.length;i++)if(option=w.REQUIRED_OPTIONS_FOR_ADDRESS[i],!e.hasOwnProperty(option))return option;return!1}function D(e){var i,t,r,option;for(t=0;t<e.length;t++)for(r=e[t],i=0;i<w.REQUIRED_OPTIONS_FOR_LINE_ITEMS.length;i++)if(option=w.REQUIRED_OPTIONS_FOR_LINE_ITEMS[i],!r.hasOwnProperty(option))return option;return!1}function x(e){var i,option,t,r=e.blikOptions||{};for(e.redirectUrl||w.REQUIRED_OPTIONS_FOR_BLIK_SEAMLESS_PAYMENT_TYPE.push("onPaymentStart"),i=0;i<w.REQUIRED_OPTIONS_FOR_BLIK_SEAMLESS_PAYMENT_TYPE.length;i++)if(option=w.REQUIRED_OPTIONS_FOR_BLIK_SEAMLESS_PAYMENT_TYPE[i],!e.hasOwnProperty(option))return option;if(r.hasOwnProperty("level_0")){for(i=0;i<w.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_LEVEL_0.length;i++)if(option=w.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_LEVEL_0[i],!r.level_0.hasOwnProperty(option))return"blikOptions.level_0."+option}else if(r.hasOwnProperty("oneClick"))if((t=r.oneClick||{}).hasOwnProperty("aliasKey")){for(i=0;i<w.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_SUBSEQUENT.length;i++)if(option=w.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_SUBSEQUENT[i],!t.hasOwnProperty(option))return"blikOptions.oneClick."+option}else for(i=0;i<w.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_FIRST.length;i++)if(option=w.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_FIRST[i],!t.hasOwnProperty(option))return"blikOptions.oneClick."+option;return!1}function k(e){return!(e.cryptoOptions||{}).approvalUrl&&"cryptoOptions.approvalUrl"}function M(e){var i,option,t=e.swishOptions||{},r=["givenName","surname","currencyCode","paymentType","amount"];for(i=0;i<r.length;i++)if(option=r[i],!e.hasOwnProperty(option))return option;return t.requestQrCode&&!t.qrContainer?"swishOptions.qrContainer":!(t.requestQrCode||t.returnUrl||e.redirectUrl||!S.isMobileDevice()
2)&&"swishOptions.returnUrl"}function F(e,t,r){return!!("swish"===r&&e.swishOptions&&e.swishOptions.requestQrCode&&t.paymentResource.qrDetails&&t.paymentResource.qrDetails.qrImage)}function U(e){var i,option,t,r,n;if(!e)return!0;if("crypto"===(n=e.paymentType||"").toLowerCase())return k(e);if("swish"===n.toLowerCase())return M(e);if(R(e)){if("pay_upon_invoice"===n.toLowerCase())for(i=0;i<w.REQUIRED_OPTIONS_FOR_PAY_UPON_INVOICE_PAYMENT_TYPE.length;i++){if(option=w.REQUIRED_OPTIONS_FOR_PAY_UPON_INVOICE_PAYMENT_TYPE[i],!e.hasOwnProperty(option))return option;if("address"===option||"billingAddress"===option){if(t=L(e[option]))return option+"."+t}else if("lineItems"===option&&(r=D(e[option])))return option+"."+r}else if("blik"===n.toLowerCase())return x(e)}else{for(e.redirectUrl||w.REQUIRED_OPTIONS_FOR_START_PAYMENT.push("onPaymentStart"),i=0;i<w.REQUIRED_OPTIONS_FOR_START_PAYMENT.length;i++)if(option=w.REQUIRED_OPTIONS_FOR_START_PAYMENT[i],!e.hasOwnProperty(option))return option;if(!e.fallback.url)return"fallback.url";if(!e.fallback.buttonText)return"fallback.buttonText";if(!0===e.recurrent&&!e.customerId)return"customerId"}return!1}v.suppressUnhandledPromiseMessage=!0,P.prototype._initialize=function(){var e=this,t=this._client,r=setTimeout(function(){f.sendEvent(t,"local-payment.load.timed-out")},d);return new Promise(function(o){n.create({name:"localpaymentlandingpage",dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+c(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},function(n){e._frameService=n,clearTimeout(r),f.sendEvent(t,"local-payment.load.succeeded"),o(e)})})},P.prototype.startPayment=function(e){var t,r,address,n,l,d,h,m,E,w,O,P,L=this;if(L._isRedirectFlow?e.redirectUrl=L._redirectUrl:w=L._frameService._serviceId,t=U(e))return r=new o(A.LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION),"string"==typeof t&&(r.details="Missing required '"+t+"' option."),Promise.reject(r);if(e.paymentType&&"swish"===e.paymentType.toLowerCase()&&e.swishOptions&&e.swishOptions.requestQrCode){if(S.isMobileDevice())return Promise.reject(new o(A.LOCAL_PAYMENT_QR_CODE_NOT_SUPPORTED));if(!e.swishOptions.qrContainer)return Promise.reject(new o(A.LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION))}return m=e.windowOptions||{},address=e.address||{},n=e.fallback||{},h=e.billingAddress||{},l={amount:e.amount,billingAddress:{line1:h.streetAddress,line2:h.extendedAddress,city:h.locality,state:h.region,postalCode:h.postalCode,countryCode:h.countryCode},birthDate:e.birthDate,blikOptions:e.blikOptions,city:address.locality,correlationId:e.correlationId,countryCode:address.countryCode,currencyIsoCode:e.currencyCode,discountAmount:e.discountAmount,experienceProfile:{brandName:e.displayName,customerServiceInstructions:e.customerServiceInstructions,locale:e.locale,noShipping:!e.shippingAddressRequired},firstName:e.givenName,fundingSource:e.paymentType,intent:"sale",lastName:e.surname,line1:address.streetAddress,line2:address.extendedAddress,lineItems:e.lineItems,merchantAccountId:L._merchantAccountId,merchantOrPartnerCustomerId:e.customerId,payerEmail:e.email,paymentTypeCountryCode:e.paymentTypeCountryCode,phone:e.phone,phoneCountryCode:e.phoneCountryCode,postalCode:address.postalCode,recurrent:e.recurrent,shippingAmount:e.shippingAmount,state:address.region},L._paymentType=e.paymentType.toLowerCase(),"swish"===L._paymentType&&S.isMobileDevice()&&(l.redirectToApp=!0,L._isRedirectFlow=!0),"crypto"===L._paymentType&&(L._isRedirectFlow=!0),L._isRedirectFlow?"swish"===L._paymentType&&e.swishOptions&&e.swishOptions.returnUrl&&S.isMobileDevice()?(O=_.queryify(e.swishOptions.returnUrl,{wasCanceled:!0}),P=e.swishOptions.returnUrl):(O=_.queryify(L._redirectUrl,{wasCanceled:!0}),P=L._redirectUrl):(O=_.queryify(L._assetsUrl+"/html/local-payment-redirect-frame"+c(L._isDebug)+".html",{channel:w,r:n.cancelUrl||n.url,t:n.cancelButtonText||n.buttonText,c:1}),P=_.queryify(L._assetsUrl+"/html/local-payment-redirect-frame"+c(L._isDebug)+".html",{channel:w,r:n.url,t:n.buttonText})),T(l,{cancelUrl:O,returnUrl:P}),L._authorizationInProgress&&!L._isRedirectFlow?(f.sendEvent(L._client,L._paymentType+".local-payment.start-payment.error.already-opened"),Promise.reject(new o(A.LOCAL_PAYMENT_ALREADY_IN_PROGRESS))
2):(L._authorizationInProgress=!0,d=new v,R(e)||L._isRedirectFlow||(L._startPaymentCallback=L._createStartPaymentCallback(function(e){d.resolve(e)},function(e){d.reject(e)}),L._frameService.open({width:m.width||C,height:m.height||N},L._startPaymentCallback)),"crypto"===L._paymentType?(f.sendEvent(L._client,L._paymentType+".local-payment.start-payment.redirected"),L._redirectToPaymentResource(e.cryptoOptions.approvalUrl),d.resolve(),d):(L._client.request({method:"post",endpoint:"local_payments/create",data:l}).then(function(t){var r=t.paymentResource.redirectUrl;if(L._isRedirectFlow?f.sendEvent(L._client,L._paymentType+".local-payment.start-payment.redirected"):f.sendEvent(L._client,L._paymentType+".local-payment.start-payment.opened"),L._startPaymentOptions=e,F(e,t,L._paymentType)){L._authorizationInProgress=!1;try{I(t.paymentResource.qrDetails.qrImage,e.swishOptions.qrContainer)}catch(e){return d.reject(e)}"function"==typeof e.onPaymentStart&&(E=e.onPaymentStart({paymentId:t.paymentResource.paymentToken}))instanceof Promise?E.then(function(){d.resolve()}).catch(function(e){d.reject(e)}):d.resolve()}else R(e)?(L._authorizationInProgress=!1,"string"==typeof r&&r.length?d.reject(new o(A.LOCAL_PAYMENT_START_PAYMENT_DEFERRED_PAYMENT_FAILED)):(E=e.onPaymentStart({paymentId:t.paymentResource.paymentToken}))instanceof Promise?E.then(function(){d.resolve()}).catch(function(e){d.reject(e)}):d.resolve()):"function"==typeof e.onPaymentStart?Promise.resolve(e.onPaymentStart({paymentId:t.paymentResource.paymentToken},function(){L._isRedirectFlow||L._frameService.redirect(r)})).then(function(){L._isRedirectFlow&&(L._redirectToPaymentResource(r),d.resolve())}):L._isRedirectFlow?(L._redirectToPaymentResource(r),d.resolve()):L._isRedirectFlow||L._frameService.redirect(r);return d}).catch(function(e){var t=e.details&&e.details.httpStatus;L._isRedirectFlow||L._frameService.close(),L._authorizationInProgress=!1,422!==t?d.reject(y(e,{type:A.LOCAL_PAYMENT_START_PAYMENT_FAILED.type,code:A.LOCAL_PAYMENT_START_PAYMENT_FAILED.code,message:A.LOCAL_PAYMENT_START_PAYMENT_FAILED.message})):d.reject(new o({type:A.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.type,code:A.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.code,message:A.LOCAL_PAYMENT_INVALID_PAYMENT_OPTION.message,details:{originalError:e}}))}),d))},P.prototype._redirectToPaymentResource=function(e){O()?window.top.location.href=e:window.location.href=e},P.prototype.tokenize=function(e){var t=this,r=this._client;return(e=e||_.parse()).queryItems&&(e=e.queryItems),e.c||e.wasCanceled?Promise.reject(new o({type:A.LOCAL_PAYMENT_CANCELED.type,code:A.LOCAL_PAYMENT_CANCELED.code,message:A.LOCAL_PAYMENT_CANCELED.message,details:{originalError:{errorcode:e.errorcode,token:e.btLpToken}}})):e.errorcode?Promise.reject(new o({type:A.LOCAL_PAYMENT_START_PAYMENT_FAILED.type,code:A.LOCAL_PAYMENT_START_PAYMENT_FAILED.code,message:A.LOCAL_PAYMENT_START_PAYMENT_FAILED.message,details:{originalError:{errorcode:e.errorcode,token:e.btLpToken}}})):r.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e)}).then(function(e){var n=t._formatTokenizePayload(e);return window.popupBridge?f.sendEvent(r,t._paymentType+".local-payment.tokenization.success-popupbridge"):f.sendEvent(r,t._paymentType+".local-payment.tokenization.success"),n}).catch(function(e){return f.sendEvent(r,t._paymentType+".local-payment.tokenization.failed"),Promise.reject(y(e,{type:A.LOCAL_PAYMENT_TOKENIZATION_FAILED.type,code:A.LOCAL_PAYMENT_TOKENIZATION_FAILED.code,message:A.LOCAL_PAYMENT_TOKENIZATION_FAILED.message}))})},P.prototype.closeWindow=function(){this._authoriztionInProgress&&f.sendEvent(this._client,this._paymentType+".local-payment.start-payment.closed.by-merchant"),this._frameService.close()},P.prototype.focusWindow=function(){this._frameService.focus()},P.prototype._createStartPaymentCallback=function(e,t){var r=this,n=this._client;return function(c,l){if(r._authorizationInProgress=!1,c)if("FRAME_SERVICE_FRAME_CLOSED"===c.code){if(l&&"processing_error"===l.errorcode)return f.sendEvent(n,r._paymentType+".local-payment.failed-in-window"),void t(new o(A.LOCAL_PAYMENT_START_PAYMENT_FAILED));f.sendEvent(n,r._paymentType+".local-payment.tokenization.closed.by-user"),t(new o(A.LOCAL_PAYMENT_WINDOW_CLOSED))}else c.code&&c.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1&&t(new o({code:A.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.code,type:A.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.type,message:A.LOCAL_PAYMENT_WINDOW_OPEN_FAILED.message,details:{originalError:c}}));else l&&(window.popupBridge||r._frameService.redirect(r._loadingFrameUrl),r.tokenize(l).then(e).catch(t).then(function(){r._frameService.close()}))}},P.prototype._formatTokenizePayload=function(e){var t,r={};return e.paypalAccounts&&(r=e.paypalAccounts[0]),t={nonce:r.nonce,details:{},type:r.type},r.details&&(r.details.payerInfo&&(t.details=r.details.payerInfo),r.details.correlationId&&(t.correlationId=r.details.correlationId)),t},P.prototype.hasTokenizationParams=function(){var e=_.parse();return!(!e.errorcode&&!e.token)||Boolean(e.btLpToken&&e.btLpPaymentId&&e.btLpPayerId)},P.prototype._formatTokenizeData=function(e){var t=this._client.getConfiguration().gatewayConfiguration;return{merchantAccountId:this._merchantAccountId,paypalAccount:{correlationId:e.btLpToken||e.token,paymentToken:e.btLpPaymentId||e.paymentId,payerId:e.btLpPayerId||e.PayerID,unilateral:t.paypal.unvettedMerchant,intent:"sale"}}},P.prototype.teardown=function(){var e=this;return e._isRedirectFlow||e._frameService.teardown(),m(e,h(P.prototype)),f.sendEvent(e._client,"local-payment.teardown-completed"),Promise.resolve()},t.exports=E.wrapPrototype(P)},{"../../lib/analytics":50,"../../lib/assign":52,"../../lib/braintree-error":54,"../../lib/constants":55,"../../lib/convert-methods-to-error":56,"../../lib/convert-to-braintree-error":57,"../../lib/frame-service/external":64,"../../lib/in-iframe":74,"../../lib/methods":76,"../../lib/querystring":77,"../../lib/use-min":78,"../shared/browser-detection":84,"../shared/errors":85,"./constants":80,"./inject-qr-code":81,"@braintree/extended-promise":21,"@braintree/wrap-promise":30}],83:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/basic-component-verification"),c=e("../lib/create-deferred-client"),l=e("../lib/create-assets-url"),d=e("./external/local-payment"),f="3.144.0",h=e("@braintree/wrap-promise"),m=e("../lib/braintree-error"),y=e("./shared/errors"),v=e("../lib/querystring").parse;function _(e){var t="Local Payment";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:t})}).then(function(t){var r,o,c=t.getConfiguration();return e.client=t,!0!==c.gatewayConfiguration.paypalEnabled?Promise.reject(new m(y.LOCAL_PAYMENT_NOT_ENABLED)):(n.sendEvent(t,"local-payment.initialized"),r=new d(e),e.redirectUrl?(o=v(window.location.href)).token||o.wasCanceled?r.tokenize(o).then(function(e){return r.tokenizePayload=e,r}).catch(function(e){return console.log("Error while tokenizing: ",e),r}):r:r._initialize())})}t.exports={create:h(_),VERSION:f}},{"../lib/analytics":50,"../lib/basic-component-verification":53,"../lib/braintree-error":54,"../lib/create-assets-url":58,"../lib/create-deferred-client":60,"../lib/querystring":77,"./external/local-payment":82,"./shared/errors":85,"@braintree/wrap-promise":30}],84:[function(e,t,r){"use strict";var n=e("@braintree/browser-detection/is-android"),o=e("@braintree/browser-detection/is-ios");function c(){return n()||o()}t.exports={isMobileDevice:c}},{"@braintree/browser-detection/is-android":17,"@braintree/browser-detection/is-ios":19}],85:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={LOCAL_PAYMENT_NOT_ENABLED:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_NOT_ENABLED",message:"LocalPayment is not enabled for this merchant."},LOCAL_PAYMENT_ALREADY_IN_PROGRESS:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_ALREADY_IN_PROGRESS",message:"LocalPayment payment is already in progress."},LOCAL_PAYMENT_CANCELED:{type:n.types.CUSTOMER,code:"LOCAL_PAYMENT_CANCELED",message:"Customer canceled the LocalPayment before authorizing."},LOCAL_PAYMENT_WINDOW_CLOSED:{type:n.types.CUSTOMER,code:"LOCAL_PAYMENT_WINDOW_CLOSED",message:"Customer closed LocalPayment window before authorizing."},LOCAL_PAYMENT_WINDOW_OPEN_FAILED:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_WINDOW_OPEN_FAILED",message:"LocalPayment window failed to open;
2 make sure startPayment was called in response to a user action."},LOCAL_PAYMENT_START_PAYMENT_FAILED:{type:n.types.NETWORK,code:"LOCAL_PAYMENT_START_PAYMENT_FAILED",message:"LocalPayment startPayment failed."},LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION",message:"Missing required option for startPayment."},LOCAL_PAYMENT_START_PAYMENT_DEFERRED_PAYMENT_FAILED:{type:n.types.UNKNOWN,code:"LOCAL_PAYMENT_START_PAYMENT_DEFERRED_PAYMENT_FAILED",message:"LocalPayment startPayment deferred payment failed."},LOCAL_PAYMENT_TOKENIZATION_FAILED:{type:n.types.NETWORK,code:"LOCAL_PAYMENT_TOKENIZATION_FAILED",message:"Could not tokenize user's local payment method."},LOCAL_PAYMENT_INVALID_PAYMENT_OPTION:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_INVALID_PAYMENT_OPTION",message:"Local payment options are invalid."},LOCAL_PAYMENT_QR_CODE_INVALID_DATA:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_QR_CODE_INVALID_DATA",message:"QR code data must be a valid base64 string."},LOCAL_PAYMENT_QR_CODE_CONTAINER_NOT_FOUND:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_QR_CODE_CONTAINER_NOT_FOUND",message:"QR code container element not found."},LOCAL_PAYMENT_QR_CODE_INVALID_CONTAINER:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_QR_CODE_INVALID_CONTAINER",message:"QR code container must be a valid CSS selector string or HTML element."},LOCAL_PAYMENT_QR_CODE_NOT_SUPPORTED:{type:n.types.MERCHANT,code:"LOCAL_PAYMENT_QR_CODE_NOT_SUPPORTED",message:"QR code is only supported on desktop devices."}}},{"../../lib/braintree-error":54}]},{},[83])(83)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],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(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),l=e("./is-opera"),d=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||n(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":5,"./is-edge":6,"./is-opera":13,"./is-samsung":14,"./is-silk":15}],5:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],6:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],7:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],8:[function(e,t,r){"use strict";var n=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&o(e)}},{"./is-ios":11}],9:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!n(e)&&(!!o(e)||/.+AppleWeb
2Kit(?!.*Safari)/i.test(e))}},{"./is-ios":11,"./is-ios-google-search-app":8}],10:[function(e,t,r){"use strict";var n=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,n(e)&&t}},{"./is-ios-webview":9}],11:[function(e,t,r){"use strict";var n=e("./is-ipados");t.exports=function(e,t,r){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||n(e,r):o}},{"./is-ipados":12}],12:[function(e,t,r){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],13:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],14:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],15:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],16:[function(e,t,r){"use strict";var n=48,o=e("./is-android"),c=e("./is-ios-firefox"),l=e("./is-ios-webview"),d=e("./is-chrome"),f=e("./is-samsung"),h=e("./is-duckduckgo");function m(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<n}function y(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}function v(e){var t=/Version\/[\d.]+/i;return e=e||window.navigator.userAgent,!!o(e)&&t.test(e)&&!y(e)&&!h(e)}function _(e){return!d(e)&&!f(e)&&/samsung/i.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,!(l(e)||c(e)||v(e)||y(e)||m(e)||_(e))}},{"./is-android":3,"./is-chrome":4,"./is-duckduckgo":5,"./is-ios-firefox":7,"./is-ios-webview":9,"./is-samsung":14}],17:[function(e,t,r){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":10}],18:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":11}],19:[function(e,t,r){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":16}],20:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":21,"./lib/default-attributes":22,"./lib/set-attributes":23}],21:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],22:[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"}},{}],23:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],24:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],25:[function(e,t,r){"use strict";function n(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)}}
2Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],26:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],27:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],28:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":25,"./lib/once":26,"./lib/promise-or-callback":27}],29:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],30:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":38}],31:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":30,"./lib":38}],32:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":38}],33:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":38}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":38}],35:[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={}},{}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":38}],37:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],38:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":32,"./broadcast":34,"./broadcast-to-child-windows":33,"./constants":35,"./dispatch":36,"./has-opener":37,"./is-not-string":39,"./message":40,"./package-payload":41,"./send-message":42,"./subscribe-replier":43,"./subscription-args-invalid":44,"./types":45,"./unpack-payload":46}],39:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],40:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":38}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":38}],42:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],43:[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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":30,"@braintree/uuid":24}],44:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":38}],45:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],46:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":38}],47:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":53,"./create-authorization-data":57,"./json-clone":72}],48:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":47,"./assign":50,"./constants":53}],49:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":29}],50:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],51:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":52,"./errors":60}],52:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":59}],53:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],54:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":52,"./errors":60}],55:[function(e,t,r){"use strict";var n=e("./braintree-error");function o(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=o},{"./braintree-error":52}],56:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":53}],57:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":53,"../lib/vendor/polyfill":74}],58:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":49,"./braintree-error":52,"./errors":60}],59:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],60:[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"}
2,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":52}],61:[function(e,t,r){"use strict";var n=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),l=e("framebus"),d=e("../shared/events"),f=e("../shared/errors"),h=e("../shared/constants"),m=e("@braintree/uuid"),y=e("@braintree/iframer"),v=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("./../../assign").assign,w=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,A=["name","dispatchFrameUrl","openFrameUrl"];function T(){}function O(e){if(!e)throw new Error("Valid configuration is required");if(A.forEach(function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}function S(e){O(e),this._serviceId=m().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new l({channel:this._serviceId}),this._setBusEvents()}S.prototype.initialize=function(e){var t=function(){e(),this._bus.off(d.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(d.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},S.prototype._writeDispatchFrame=function(){var e=h.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=y({"aria-hidden":!0,name:e,title:e,src:t,class:h.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},S.prototype._setBusEvents=function(){this._bus.on(d.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}.bind(this)),this._bus.on(w,function(e){e(this.state)}.bind(this))},S.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(E(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(ne
2w v(f.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},S.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},S.prototype.close=function(){this.isFrameClosed()||this._frame.close()},S.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},S.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},S.prototype.createNoopHandler=function(){return{close:T,focus:T}},S.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},S.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},S.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},S.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new v(f.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),h.POPUP_POLL_INTERVAL),this._popupInterval},S.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),r=Boolean(window.popupBridge),l=E({},this._options,e);return r?new o(l):t?new n(l):new c(l)},t.exports=S},{"../../braintree-error":52,"../../constants":53,"../shared/browser-detection":68,"../shared/constants":69,"../shared/errors":70,"../shared/events":71,"./../../assign":50,"./strategies/modal":63,"./strategies/popup":66,"./strategies/popup-bridge":64,"@braintree/iframer":20,"@braintree/uuid":24,framebus:31}],62:[function(e,t,r){"use strict";var n=e("./frame-service");t.exports={create:function(e,t){var r=new n(e);r.initialize(function(){t(r)})}}},{"./frame-service":61}],63:[function(e,t,r){"use strict";var n=e("@braintree/iframer"),o=e("../../../assign").assign,c=e("../../shared/browser-detection"),l={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function d(){}function f(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}f.prototype.initialize=d,f.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},l),title:"Lightbox Frame"};c.isIos()?(c.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,l,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=n(e),this._el.appendChild(this._frame)):this._el=this._frame=n(e),this._closed=!1,this._container.appendChild(this._el)},f.prototype.focus=d,f.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},f.prototype.isClosed=function(){return Boolean(this._closed)},f.prototype.redirect=function(e){this._frame.src=e},f.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},f.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=f},{"../../../assign":50,"../../shared/browser-detection":68,"@braintree/iframer":20}],64:[function(e,t,r){"use strict";var n=e("../../../braintree-error"),o=e("../../shared/errors");function c(){}function l(e){this._closed=null,this._options=e}l.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(r,c){var l=!c&&!r;t._closed=!0,r||l?e(new n(o.FRAME_SERVICE_FRAME_CLOSED)):e(null,c)}},l.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)}
2,l.prototype.focus=c,l.prototype.close=c,l.prototype.isClosed=function(){return Boolean(this._closed)},l.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=l},{"../../../braintree-error":52,"../../shared/errors":70}],65:[function(e,t,r){"use strict";var n=e("../../../shared/constants"),o=e("./position");function c(e,t,r){return void 0!==t?t:o[e](r)}t.exports=function(e){var t=e.height||n.DEFAULT_POPUP_HEIGHT,r=e.width||n.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),l=c("left",e.left,r);return[n.POPUP_BASE_OPTIONS,"height="+t,"width="+r,"top="+o,"left="+l].join(",")}},{"../../../shared/constants":69,"./position":67}],66:[function(e,t,r){"use strict";var n=e("./compose-options");function o(){}function c(e){this._frame=null,this._options=e||{}}c.prototype.initialize=o,c.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,n(this._options))},c.prototype.focus=function(){this._frame.focus()},c.prototype.close=function(){this._frame.closed||this._frame.close()},c.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},c.prototype.redirect=function(e){this._frame.location.href=e},t.exports=c},{"./compose-options":65}],67:[function(e,t,r){"use strict";function n(e){return c(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)}function o(e){return c(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)}function c(e,t,r){return(e-t)/2+r}t.exports={top:n,left:o,center:c}},{}],68:[function(e,t,r){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ios":18,"@braintree/browser-detection/is-ios-wkwebview":17,"@braintree/browser-detection/supports-popups":19}],69:[function(e,t,r){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],70:[function(e,t,r){"use strict";var n=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":52}],71:[function(e,t,r){"use strict";var n=e("../../enumerate");t.exports=n(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":59}],72:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],73:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],74:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],75:[function(e,t,r){"use strict";var n=e("../../lib/frame-service/external"),o=e("../../lib/braintree-error"),c=e("../shared/errors"),l="3.144.0",d=e("../../lib/methods"),f=e("@braintree/wrap-promise"),h=e("../../lib/analytics"),m=e("../../lib/convert-methods-to-error"),y=e("../../lib/convert-to-braintree-error"),v=e("../shared/constants"),_=e("../../lib/constants").INTEGRATION_TIMEOUT_MS;function E(e){var t=e.client.getConfiguration();this._client=e.client,this._assetsUrl=t.gatewayConfiguration.assetsUrl+"/web/"+l,this._isDebug=t.isDebug,this._authInProgress=!1,window.popupBridge&&"function"==typeof window.popupBridge.getReturnUrlPrefix?this._callbackUrl=window.popupBridge.getReturnUrlPrefix()+"return":this._callbackUrl=this._assetsUrl+"/html/redirect-frame"+(this._isDebug?"":".min")+".html"}function w(e){return[e.oauth_verifier,e.oauth_token,e.checkout_resource_url].some(function(element){return null==element||"null"===element})}function A(e){var i,option;for(i=0;i<v.REQUIRED_OPTIONS_FOR_TOKENIZE.length;i++)if(option=v.REQUIRED_OPTIONS_FOR_TOKENIZE[i],!e.hasOwnProperty(option))return!0;return!1}E.prototype._initialize=function(){var e=this;return new Promise(function(t){var r=setTimeout(function(){h.sendEvent(e._client,"masterpass.load.timed-out")},_);n.create({name:v.LANDING_FRAME_NAME,height:v.POPUP_HEIGHT,width:v.POPUP_WIDTH,dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+(e._isDebug?"":".min")+".html",openFrameUrl:e._assetsUrl+"/html/masterpass-landing-frame"+(e._isDebug?"":".min")+".html"},function(n){e._frameService=n,clearTimeout(r),h.sendEvent(e._client,"masterpass.load.succeeded"),t(e)})})},E.prototype.tokenize=function(e){var t=this;return!e||A(e)?Promise.reject(new o(c.MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION)):t._authInProgress?Promise.reject(new o(c.MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS)):new Promise(function(r,n){t._navigateFrameToLoadingPage(e).catch(n),t._frameService.open(e.frameOptions,t._createFrameOpenHandler(r,n))})},E.prototype._navigateFrameToLoadingPage=function(e){var t=this;return this._authInProgress=!0,this._client.request({method:"post",endpoint:"masterpass/request_token",data:{requestToken:{originUrl:window.location.protocol+"//"+window.location.hostname,subtotal:e.subtotal,currencyCode:e.currencyCode,callbackUrl:this._callbackUrl}}}).then(function(r){var n,o=t._assetsUrl+"/html/masterpass-loading-frame"+(t._isDebug?"":".min")+".html?",c=t._client.getConfiguration().gatewayConfiguration,l=e.config||{};n={environment:c.environment,requestToken:r.requestToken,callbackUrl:t._callbackUrl,merchantCheckoutId:c.masterpass.merchantCheckoutId,allowedCardTypes:c.masterpass.supportedNetworks,version:v.MASTERPASS_VERSION},Object.keys(l).forEach(function(e){"function"!=typeof l[e]&&(n[e]=l[e])}),o+=Object.keys(n).map(function(e){return e+"="+n[e]}).join("&"),t._frameService.redirect(o)}).catch(function(e){var r=e.details&&e.details.httpStatus;return t._closeWindow(),422===r?Promise.reject(y(e,c.MASTERPASS_INVALID_PAYMENT_OPTION)):Promise.reject(y(e,c.MASTERPASS_FLOW_FAILED))})},E.prototype._createFrameOpenHandler=function(e,t){var r=this;return window.popupBridge?function(n,l){return r._authInProgress=!1,n?(h.sendEvent(r._client,"masterpass.tokenization.closed-popupbridge.by-user"),void t(y(n,c.MASTERPASS_POPUP_CLOSED))):l.queryItems?void r._tokenizeMasterpass(l.queryItems).then(e).catch(t):(h.sendEvent(r._client,"masterpass.tokenization.failed-popupbridge"),void t(new o(c.MASTERPASS_FLOW_FAILED)))}:function(n,l){if(n)return r._authInProgress=!1,"FRAME_SERVICE_FRAME_CLOSED"===n.co
2de?(h.sendEvent(r._client,"masterpass.tokenization.closed.by-user"),void t(new o(c.MASTERPASS_POPUP_CLOSED))):n.code&&n.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1?(h.sendEvent(r._client,"masterpass.tokenization.failed.to-open"),void t(new o({code:c.MASTERPASS_POPUP_OPEN_FAILED.code,type:c.MASTERPASS_POPUP_OPEN_FAILED.type,message:c.MASTERPASS_POPUP_OPEN_FAILED.message,details:{originalError:n}}))):(h.sendEvent(r._client,"masterpass.tokenization.failed"),r._closeWindow(),void t(y(n,c.MASTERPASS_FLOW_FAILED)));r._tokenizeMasterpass(l).then(e).catch(t)}},E.prototype._tokenizeMasterpass=function(e){var t=this;return"success"!==e.mpstatus?(h.sendEvent(t._client,"masterpass.tokenization.closed.by-user"),t._closeWindow(),Promise.reject(new o(c.MASTERPASS_POPUP_CLOSED))):w(e)?(h.sendEvent(t._client,"masterpass.tokenization.closed.missing-payload"),t._closeWindow(),Promise.reject(new o(c.MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS))):t._client.request({endpoint:"payment_methods/masterpass_cards",method:"post",data:{masterpassCard:{checkoutResourceUrl:e.checkout_resource_url,requestToken:e.oauth_token,verifierToken:e.oauth_verifier}}}).then(function(e){return t._closeWindow(),window.popupBridge?h.sendEvent(t._client,"masterpass.tokenization.success-popupbridge"):h.sendEvent(t._client,"masterpass.tokenization.success"),e.masterpassCards[0]}).catch(function(e){return t._closeWindow(),window.popupBridge?h.sendEvent(t._client,"masterpass.tokenization.failed-popupbridge"):h.sendEvent(t._client,"masterpass.tokenization.failed"),Promise.reject(y(e,c.MASTERPASS_ACCOUNT_TOKENIZATION_FAILED))})},E.prototype._closeWindow=function(){this._authInProgress=!1,this._frameService.close()},E.prototype.teardown=function(){var e=this;return new Promise(function(t){e._frameService.teardown(),m(e,d(E.prototype)),h.sendEvent(e._client,"masterpass.teardown-completed"),t()})},t.exports=f.wrapPrototype(E)},{"../../lib/analytics":48,"../../lib/braintree-error":52,"../../lib/constants":53,"../../lib/convert-methods-to-error":54,"../../lib/convert-to-braintree-error":55,"../../lib/frame-service/external":62,"../../lib/methods":73,"../shared/constants":78,"../shared/errors":79,"@braintree/wrap-promise":28}],76:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("../lib/basic-component-verification"),c=e("./shared/browser-detection"),l=e("./external/masterpass"),d=e("../lib/create-deferred-client"),f=e("../lib/create-assets-url"),h="3.144.0",m=e("./shared/errors"),y=e("@braintree/wrap-promise");function v(e){var t="Masterpass";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return _()?Promise.resolve():Promise.reject(new n(m.MASTERPASS_BROWSER_NOT_SUPPORTED))}).then(function(){return d.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:f.create(e.authorization),name:t})}).then(function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.masterpass?new l(e)._initialize():Promise.reject(new n(m.MASTERPASS_NOT_ENABLED))})}function _(){return Boolean(window.popupBridge||c.supportsPopups())}t.exports={create:y(v),isSupported:_,VERSION:h}},{"../lib/basic-component-verification":51,"../lib/braintree-error":52,"../lib/create-assets-url":56,"../lib/create-deferred-client":58,"./external/masterpass":75,"./shared/browser-detection":77,"./shared/errors":79,"@braintree/wrap-promise":28}],77:[function(e,t,r){"use strict";t.exports={supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/supports-popups":19}],78:[function(e,t,r){"use strict";t.exports={LANDING_FRAME_NAME:"braintreemasterpasslanding",POPUP_WIDTH:450,POPUP_HEIGHT:660,MASTERPASS_VERSION:"v6",REQUIRED_OPTIONS_FOR_TOKENIZE:["subtotal","currencyCode"]}},{}],79:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={MASTERPASS_BROWSER_NOT_SUPPORTED:{type:n.types.CUSTOMER,code:"MASTERPASS_BROWSER_NOT_SUPPORTED",message:"Browser is not supported."},MASTERPASS_NOT_ENABLED:{type:n.types.MERCHANT,code:"MASTERPASS_NOT_ENABLED",message:"Masterpass is not enabled for this merchant."},MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION:{type:n.types.MERCHANT,code:"MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION",message:"Missing required option for tokenize."},MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS:{type:n.types.MERCHANT,code:"MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS",message:"Masterpass tokenization is already in progress."},MASTERPASS_ACCOUNT_TOKENIZATION_FAILED:{type:n.types.NETWORK,code:"MASTERPASS_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's Masterpass account."},MASTERPASS_POPUP_OPEN_FAILED:{type:n.types.MERCHANT,code:"MASTERPASS_POPUP_OPEN_FAILED",message:"Masterpass popup failed to open. Make sure to tokenize in response to a user action, such as a click."},MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS:{type:n.types.MERCHANT,code:"MASTERPASS_POPUP_MISSING_REQUIRED_PARAMETERS",message:"Masterpass popup failed to return all required parameters needed to continue tokenization."},MASTERPASS_POPUP_CLOSED:{type:n.types.CUSTOMER,code:"MASTERPASS_POPUP_CLOSED",message:"Customer closed Masterpass popup before authorizing."},MASTERPASS_INVALID_PAYMENT_OPTION:{type:n.types.MERCHANT,code:"MASTERPASS_INVALID_PAYMENT_OPTION",message:"Masterpass payment options are invalid."},MASTERPASS_FLOW_FAILED:{type:n.types.NETWORK,code:"MASTERPASS_FLOW_FAILED",message:"Could not initialize Masterpass flow."}}},{"../../lib/braintree-error":52}]},{},[76])(76)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";
2var n={sandbox:"https://www.sandbox.paypal.com/openfinance/v1/bank/payment-method/create",production:"https://www.paypal.com/openfinance/v1/bank/payment-method/create"},o="query AchMandateDetails($id: ID!) { node(id: $id) { id ... on PaymentMethod { id legacyId usage createdAt verifications { edges { node { status } } } details { __typename ... on UsBankAccountDetails { accountholderName accountType ownershipType bankName last4 routingNumber verified } } } } }";t.exports={EXPERIENCE_URL:n,ACH_MANDATE_DETAILS_QUERY:o}},{}],9:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={INSTANT_VERIFICATION_ERROR:{type:n.types.MERCHANT,code:"INSTANT_VERIFICATION_ERROR"},INSTANT_VERIFICATION_NOT_ENABLED:{type:n.types.MERCHANT,code:"INSTANT_VERIFICATION_NOT_ENABLED",message:"Instant Verification is not enabled for this merchant account."},INSTANT_VERIFICATION_CANCELED:{type:n.types.CUSTOMER,code:"INSTANT_VERIFICATION_CANCELED",message:"Customer canceled the Instant Verification payment before authorizing."},INSTANT_VERIFICATION_FAILURE:{type:n.types.UNKNOWN,code:"INSTANT_VERIFICATION_FAILURE",message:"Instant Verification payment failed during authorizing."},INSTANT_VERIFICATION_JWT_REQUIRED:{type:n.types.MERCHANT,code:"INSTANT_VERIFICATION_JWT_MISSING",message:"JWT is required for Instant Verification payment flow."},INSTANT_VERIFICATION_MANDATE_ID_REQUIRED:{type:n.types.MERCHANT,code:"INSTANT_VERIFICATION_MANDATE_ID_REQUIRED",message:"Mandate ID is required to fetch ACH mandate details."},INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED:{type:n.types.NETWORK,code:"INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED",message:"Failed to fetch ACH mandate details."}}},{"../lib/braintree-error":17}],10:[function(e,t,r){"use strict";var n=e("../lib/basic-component-verification"),o=e("../lib/braintree-error"),c=e("../lib/create-assets-url"),l=e("../lib/create-deferred-client"),d=e("./errors"),f=e("./instant-verification"),h="3.144.0",m=e("@braintree/wrap-promise");function y(e){var t="Instant Verification";return n.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:t})}).then(function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.openBanking?new f(e):Promise.reject(new o(d.INSTANT_VERIFICATION_NOT_ENABLED))})}t.exports={create:m(y),VERSION:h}},{"../lib/basic-component-verification":16,"../lib/braintree-error":17,"../lib/create-assets-url":19,"../lib/create-deferred-client":21,"./errors":9,"./instant-verification":11,"@braintree/wrap-promise":6}],11:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/analytics"),c=e("../lib/braintree-error"),l=e("./constants"),d=e("./errors"),f=e("../lib/querystring"),h=e("@braintree/wrap-promise");function m(e){this._instantiatedWithClient=Boolean(!e.useDeferredClient),this._client=e.client,this._createPromise=e.createPromise,o.sendEvent(this._client,"instant-verification.component.initialized")}function y(e){var t=l.EXPERIENCE_URL.production;return e&&e.gatewayConfiguration&&e.gatewayConfiguration.environment&&l.EXPERIENCE_URL[e.gatewayConfiguration.environment]&&(t=l.EXPERIENCE_URL[e.gatewayConfiguration.environment]),t}function v(e){return{accountHolderName:e.details.accountholderName,accountType:e.details.accountType,bankName:e.details.bankName,last4:e.details.last4,ownershipType:e.details.ownershipType,routingNumber:e.details.routingNumber}}m.prototype.startPayment=function(e){var t=this,r=t._client.getConfiguration().authorizationFingerprint,n="";return e.jwt?(n=y(t._client.getConfiguration())+"?"+f.stringify({ct:e.jwt,at:r}),"undefined"!=typeof window&&window.location&&(o.sendEvent(t._client,"instant-verification.redirect.initiated"),window.location.href=n),Promise.resolve()):Promise.reject(new c(d.INSTANT_VERIFICATION_JWT_REQUIRED))},m.prototype.handleRedirect=function(e){var t,r,l,f=this;return e.success?(r=JSON.parse(n(e.success)),o.sendEvent(f._client,"instant-verification.redirect.completed.success"),r.tokenizedAccounts&&r.tokenizedAccounts[0]&&(l=r.tokenizedAccounts[0].tokenized_account),Promise.resolve(l)):(e.cancel&&(r=JSON.parse(n(e.cancel)),o.sendEvent(f._client,"instant-verification.redirect.completed.canceled"),t=new c(d.INSTANT_VERIFICATION_CANCELED)),e.error&&(r=JSON.parse(n(e.error)),o.sendEvent(f._client,"instant-verification.redirect.completed.error"),t=new c(d.INSTANT_VERIFICATION_FAILURE)),Promise.reject(t))},m.prototype.getAchMandateDetails=function(e){var t=this,r=e&&e.mandateId;return new Promise(function(e,n){r?t._client.request({api:"graphQLApi",method:"post",data:{query:l.ACH_MANDATE_DETAILS_QUERY,variables:{id:r},operationName:"AchMandateDetails"}},function(r,l){if(r)return o.sendEvent(t._client,"instant-verification.ach-mandate-details.failed"),void n(new c({type:d.INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED.type,code:d.INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED.code,message:d.INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED.message,details:{originalError:r}}));if(l.data&&l.data.node){var f=l.data.node;f.details?(o.sendEvent(t._client,"instant-verification.ach-mandate-details.succeeded"),e(v(f))):n(new c({type:d.INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED.type,code:d.INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED.code,message:"Mandate details are missing in the response."}))}else n(new c({type:d.INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED.type,code:d.INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED.code,message:"No mandate details found for the provided ID."}))}):n(new c(d.INSTANT_VERIFICATION_MANDATE_ID_REQUIRED))})},t.exports=h.wrapPrototype(m)},{"../lib/analytics":13,"../lib/braintree-error":17,"../lib/querystring":25,"../lib/vendor/polyfill":26,"./constants":8,"./errors":9,"@braintree/wrap-promise":6}],12:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":18,"./create-authorization-data":20,"./json-clone":24}],13:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":12,"./assign":15,"./constants":18}],14:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],15:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],16:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":17,"./errors":23}],17:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":22}],18:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],19:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":18}],20:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":18,"../lib/vendor/polyfill":26}],21:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":14,"./braintree-error":17,"./errors":23}],22:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],23:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":17}],24:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],25:[function(e,t,r){"use strict";function n(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)||!1}function c(e){return e=e||window.location.href,/\?/.test(e)}function l(e){return c(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}}function d(e,t){var r,n,p,c=[];for(p in e)e.hasOwnProperty(p)&&(n=e[p],r=t?o(e)?t+"[]":t+"["+p+"]":p,"object"==typeof n?c.push(d(n,r)):c.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return c.join("&")}function f(e,t){return e=e||"",null!=t&&"object"==typeof t&&n(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=d(t)),e}t.exports={parse:l,stringify:d,queryify:f,hasQueryParams:c}},{}],26:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}]},{},[10])(10)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";var n=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];
2n&&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}();t.exports=n},{}],4:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":5,"./lib/default-attributes":6,"./lib/set-attributes":7}],5:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],6:[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"}},{}],7:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],8:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],9:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],10:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],11:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],12:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":9,"./lib/once":10,"./lib/promise-or-callback":11}],13:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],14:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":22}],15:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":14,"./lib":22}],16:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":22}],17:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":22}],18:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":22}],19:[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={}},{}],20:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":22}],21:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],22:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":16,"./broadcast":18,"./broadcast-to-child-windows":17,"./constants":19,"./dispatch":20,"./has-opener":21,"./is-not-string":23,"./message":24,"./package-payload":25,"./send-message":26,"./subscribe-replier":27,"./subscription-args-invalid":28,"./types":29,"./unpack-payload":30}],23:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],24:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":22}],25:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":22}],26:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],27:[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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":14,"@braintree/uuid":8}],28:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":22}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],30:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":22}],31:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":37,"./create-authorization-data":40,"./json-clone":45}],32:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":31,"./assign":34,"./constants":37}],33:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":13}],34:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],35:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":36,"./errors":43}],36:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":42}],37:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],38:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":36,"./errors":43}],39:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":37}],40:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":37,"../lib/vendor/polyfill":48}],41:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":33,"./braintree-error":36,"./errors":43}],42:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],43:[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"}
2,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":36}],44:[function(e,t,r){"use strict";var n="3.144.0",o=e("./assign").assign;function c(e,t){var r=e.analyticsMetadata,c={gateway:"braintree","braintree:merchantId":e.gatewayConfiguration.merchantId,"braintree:apiVersion":"v1","braintree:sdkVersion":n,"braintree:metadata":JSON.stringify({source:r.source,integration:r.integration,sessionId:r.sessionId,version:n,platform:r.platform})};return o({},c,t)}t.exports=function(e,t,r){var data,n,o=e.gatewayConfiguration.androidPay,l="production"===e.gatewayConfiguration.environment?"PRODUCTION":"TEST";return 2===t?(data={apiVersion:2,apiVersionMinor:0,environment:l,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:o.supportedNetworks.map(function(e){return e.toUpperCase()})},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:c(e,{"braintree:authorizationFingerprint":o.googleAuthorizationFingerprint})}}]},r&&(data.merchantInfo={merchantId:r}),o.paypalClientId&&(n={type:"PAYPAL",parameters:{purchase_context:{purchase_units:[{payee:{client_id:o.paypalClientId},recurring_payment:!0}]}},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:c(e,{"braintree:paypalClientId":o.paypalClientId})}},data.allowedPaymentMethods.push(n))):(data={environment:l,allowedPaymentMethods:["CARD","TOKENIZED_CARD"],paymentMethodTokenizationParameters:{tokenizationType:"PAYMENT_GATEWAY",parameters:c(e,{"braintree:authorizationFingerprint":o.googleAuthorizationFingerprint})},cardRequirements:{allowedCardNetworks:o.supportedNetworks.map(function(e){return e.toUpperCase()})}},"TOKENIZATION_KEY"===e.authorizationType&&(data.paymentMethodTokenizationParameters.parameters["braintree:clientKey"]=e.authorization),r&&(data.merchantId=r),t&&(data.apiVersion=t)),data}},{"./assign":34}],45:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],46:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],47:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],48:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],49:[function(e,t,r){"use strict";var n=e("../../lib/analytics"),o=e("../../lib/assign").assign,c=e("framebus"),l=e("../../lib/convert-methods-to-error"),d=e("../../lib/generate-google-pay-configuration"),f=e("@braintree/iframer"),h=e("@braintree/uuid"),m=e("../../lib/use-min"),y=e("../../lib/methods"),v=e("@braintree/event-emitter"),_=e("../../lib/braintree-error"),E="3.144.0",w=e("../shared/constants"),A=w.events,T=w.errors,O=e("@braintree/wrap-promise"),S={Visa:"visa",MasterCard:"mastercard","American Express":"amex","Diners Club":"diners",Discover:"discover",JCB:"jcb",UnionPay:"unionpay",Maestro:"maestro"},I="18278000977346790994";function C(e,t,r){return e+"/web/"+E+"/html/payment-request-frame"+m(r)+".html#"+t}function N(e){var t=e.enabledPaymentMethods||{};v.call(this),this._componentId=h(),this._client=e.client,this._enabledPaymentMethods={basicCard:!1!==t.basicCard,googlePay:!1!==t.googlePay},this._googlePayVersion=2===e.googlePayVersion?2:1,this._googleMerchantId=I,this._supportedPaymentMethods=this._constructDefaultSupp
2ortedPaymentMethods(),this._defaultSupportedPaymentMethods=Object.keys(this._supportedPaymentMethods).map(function(e){return this._supportedPaymentMethods[e]}.bind(this)),this._bus=new c({channel:this._componentId})}v.createChild(N),N.prototype._constructDefaultSupportedPaymentMethods=function(){var e=this._client.getConfiguration(),t=e.gatewayConfiguration.androidPay,r=e.gatewayConfiguration.creditCards,n={};return this._enabledPaymentMethods.basicCard&&r&&r.supportedCardTypes.length>0&&(n.basicCard={supportedMethods:"basic-card",data:{supportedNetworks:r.supportedCardTypes.reduce(function(e,t){return t in S&&e.push(S[t]),e},[])}}),this._enabledPaymentMethods.googlePay&&t&&t.enabled&&(n.googlePay={supportedMethods:"https://google.com/pay",data:d(e,this._googlePayVersion,this._googleMerchantId)}),n},N.prototype.initialize=function(){var e=this._client.getConfiguration(),t=this;return this._frame=f({allowPaymentRequest:!0,name:"braintree-payment-request-frame",class:"braintree-payment-request-frame",height:0,width:0,style:{position:"absolute",left:"-9999px"},title:"Secure Payment Frame"}
2),0===this._defaultSupportedPaymentMethods.length?Promise.reject(new _(T.PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS)):new Promise(function(r){t._bus.on(A.FRAME_READY,function(e){e(t._client)}),t._bus.on(A.FRAME_CAN_MAKE_REQUESTS,function(){n.sendEvent(t._client,"payment-request.initialized"),t._bus.on(A.SHIPPING_ADDRESS_CHANGE,function(e){var r={target:{shippingAddress:e},updateWith:function(e){t._bus.emit(A.UPDATE_SHIPPING_ADDRESS,e)}};t._emit("shippingAddressChange",r),t._emit("shippingaddresschange",r)}),t._bus.on(A.SHIPPING_OPTION_CHANGE,function(e){var r={target:{shippingOption:e},updateWith:function(e){t._bus.emit(A.UPDATE_SHIPPING_OPTION,e)}};t._emit("shippingOptionChange",r),t._emit("shippingoptionchange",r)}),r(t)}),t._frame.src=C(e.gatewayConfiguration.assetsUrl,t._componentId,e.isDebug),document.body.appendChild(t._frame)})},N.prototype.createSupportedPaymentMethodsConfiguration=function(e,t){var r;if(!e)throw new _(T.PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE);if(!this._enabledPaymentMethods[e])throw new _(T.PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED);return(r=o({},this._supportedPaymentMethods[e])).data=o({},r.data,t),r},N.prototype.tokenize=function(e){var t=this;return new Promise(function(r,o){t._bus.emit(A.PAYMENT_REQUEST_INITIALIZED,{supportedPaymentMethods:e.supportedPaymentMethods||t._defaultSupp
2ortedPaymentMethods,details:e.details,options:e.options},function(e){var c=e[0],l=e[1];c?o(t._formatTokenizationError(c)):(n.sendEvent(t._client,"payment-request.tokenize.succeeded"),r({nonce:l.nonce,type:l.type,description:l.description,details:{rawPaymentResponse:l.details.rawPaymentResponse,cardType:l.details.cardType,lastFour:l.details.lastFour,lastTwo:l.details.lastTwo},binData:l.binData}))})})},N.prototype.canMakePayment=function(e){var t,r=this;return window.PaymentRequest?e.supportedPaymentMethods&&(e.supportedPaymentMethods.forEach(function(e){var r=e.supportedMethods;r in w.SUPPORTED_METHODS||(t=r)}),t)?Promise.reject(new _({type:T.PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD.type,code:T.PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD.code,message:t+" is not a supported payment method."})):new Promise(function(t,o){r._bus.emit(A.CAN_MAKE_PAYMENT,{supportedPaymentMethods:e.supportedPaymentMethods||r._defaultSupportedPaymentMethods,details:e.details,options:e.options},function(e){var c=e[0],l=e[1];c?o(r._formatCanMakePaymentError(c)):(n.sendEvent(r._client,"payment-request.can-make-payment."+l),t(l))})}):(n.sendEvent(r._client,"payment-request.can-make-payment.not-available"),Promise.resolve(!1))},N.prototype.teardown=function(){return this._bus.teardown(),this._frame.parentNode.removeChild(this._frame),l(this,y(N.prototype)),n.sendEvent(this._client,"payment-request.teardown-completed"),Promise.resolve()},N.prototype._formatTokenizationError=function(e){var t;switch(e.name){case"AbortError":return t=new _({type:T.PAYMENT_REQUEST_CANCELED.type,code:T.PAYMENT_REQUEST_CANCELED.code,message:T.PAYMENT_REQUEST_CANCELED.message,details:{originalError:e}}),n.sendEvent(this._client,"payment-request.tokenize.canceled"),t;case"PAYMENT_REQUEST_INITIALIZATION_FAILED":t=new _({type:T.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.type,code:T.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.code,message:T.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.message,details:{originalError:e}});break;case"BRAINTREE_GATEWAY_GOOGLE_PAYMENT_TOKENIZATION_ERROR":t=new _({type:T.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.type,code:T.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.code,message:T.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.message,details:{originalError:e}});break;case"BRAINTREE_GATEWAY_GOOGLE_PAYMENT_PARSING_ERROR":t=new _({type:T.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.type,code:T.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.code,message:T.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.message,details:{originalError:e}});break;default:t=new _({code:T.PAYMENT_REQUEST_NOT_COMPLETED.code,type:e.type||_.types.CUSTOMER,message:T.PAYMENT_REQUEST_NOT_COMPLETED.message,details:{originalError:e}})}return n.sendEvent(this._client,"payment-request.tokenize.failed"),t},N.prototype._formatCanMakePaymentError=function(e){var t;switch(e.name){case"PAYMENT_REQUEST_INITIALIZATION_FAILED":t=new _({type:T.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.type,code:T.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.code,message:T.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.message,details:{originalError:e}});break;case"NotAllowedError":t=new _({type:T.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.type,code:T.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.code,message:T.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.message,details:{originalError:e}});break;default:t=new _({code:T.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.code,type:T.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.type,message:T.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.message,details:{originalError:e}})}return n.sendEvent(this._client,"payment-request.can-make-payment.failed"),t},t.exports=O.wrapPrototype(N)},{"../../lib/analytics":32,"../../lib/assign":34,"../../lib/braintree-error":36,"../../lib/convert-methods-to-error":38,"../../lib/generate-google-pay-configuration":44,"../../lib/methods":46,"../../lib/use-min":47,"../shared/constants":51,"@braintree/event-emitter":3,"@braintree/iframer":4,"@braintree/uuid":8,"@braintree/wrap-promise":12,framebus:15}],50:[function(e,t,r){"use strict";var n=e("./external/payment-request"),o=e("../lib/basic-component-verification"),c=e("../lib/create-deferred-client"),l=e("../lib/create-assets-url"),d=e("@braintree/wrap-promise"),f="3.144.0";function h(e){var t="Payment Request";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:t})}).then(function(t){return e.client=t,new n(e).initialize()})}t.exports={create:d(h),VERSION:f}},{"../lib/basic-component-verification":35,"../lib/create-assets-url":39,"../lib/create-deferred-client":41,"./external/payment-request":49,"@braintree/wrap-promise":12}],51:[function(e,t,r){"use strict";var n=e("../../lib/enumerate"),o=e("./errors"),c={};c.events=n(["CAN_MAKE_PAYMENT","FRAME_READY","FRAME_CAN_MAKE_REQUESTS","PAYMENT_REQUEST_INITIALIZED","SHIPPING_ADDRESS_CHANGE","UPDATE_SHIPPING_ADDRESS","SHIPPING_OPTION_CHANGE","UPDATE_SHIPPING_OPTION"],"payment-request:"),c.errors=o,c.SUPPORTED_METHODS={"basic-card":!0,"https://google.com/pay":!0},t.exports=c},{"../../lib/enumerate":42,"./errors":52}],52:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS:{type:n.types.MERCHANT,code:"PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS",message:"There are no supported payment methods associated with this account."},PAYMENT_REQUEST_CANCELED:{type:n.types.CUSTOMER,code:"PAYMENT_REQUEST_CANCELED",message:"Payment request was canceled."},PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED:{type:n.types.MERCHANT,code:"PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED",message:"Something went wrong when configuring the payment request."},PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED:{type:n.types.UNKNOWN,code:"PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED",message:"Something went wrong when calling `canMakePayment`"},PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED:{type:n.types.MERCHANT,code:"PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED",message:"Something went wrong when calling `canMakePayment`. Most likely, `canMakePayment` was called multiple times with different supportedMethods configurations."},PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD:{type:n.types.MERCHANT,code:"PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD"}
2,PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE:{type:n.types.MERCHANT,code:"PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE",message:"Something went wrong when tokenizing the Google Pay card."},PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR:{type:n.types.UNKNOWN,code:"PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR",message:"Something went wrong when tokenizing the Google Pay card."},PAYMENT_REQUEST_NOT_COMPLETED:{code:"PAYMENT_REQUEST_NOT_COMPLETED",message:"Payment request could not be completed."},PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE:{type:n.types.MERCHANT,code:"PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE",message:"createSupportedPaymentMethodsConfiguration must include a type parameter."},PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED:{type:n.types.MERCHANT,code:"PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED",message:"createSupportedPaymentMethodsConfiguration type parameter must be valid or enabled."}}},{"../../lib/braintree-error":36}]},{},[50])(50)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":14,"./create-authorization-data":16,"./json-clone":21}],9:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":8,"./assign":11,"./constants":14}],10:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],11:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],12:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":13,"./errors":19}],13:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":18}],14:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],15:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":14}],16:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":14,"../lib/vendor/polyfill":22}],17:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":10,"./braintree-error":13,"./errors":19}],18:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],19:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":13}],20:[function(e,t,r){"use strict";function n(e,t){var i,option;for(t=t||[],i=0;i<t.length;i++)if(option=t[i],!e.hasOwnProperty(option))return!0;return!1}t.exports=n},{}],21:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],22:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],23:[function(e,t,r){"use strict";t.exports={CREATE_PAYMENT_READY_SESSION_QUERY:"mutation CreateCustomerSession($input: CreateCustomerSessionInput!) {\n  createCustomerSession(input: $input) {\n    sessionId\n clientMutationId\n }\n}",BUTTON_ORDER:{FIRST:"first",SECOND:"second",THIRD:"third",FOURTH:"fourth",FIFTH:"fifth",SIXTH:"sixth",SEVENTH:"seventh",EIGHT:"eight",OTHER:"other"},BUTTON_TYPE:{PAYPAL:"paypal",VENMO:"venmo",OTHER:"other"},EVENT_BUTTON_PRESENTED:"payment-ready.button_presented",EVENT_BUTTON_SELECTED:"payment-ready.button_selected",EXPERIMENT_TYPE:{CONTROL:"control",TEST:"test"},PAGE_TYPE:{HOMEPAGE:"homepage",ABOUT:"about",PRODUCT_CATEGORY:"product_category",PRODUCT_DETAILS:"product_details",SEARCH:"search",CART:"cart",CHECKOUT:"checkout",ORDER_REVIEW:"order_review",ORDER_CONFIRMATION:"order_confirmation",MINICART:"minicart",OTHER:"other"},UPDATE_PAYMENT_READY_SESSION_QUERY:"mutation UpdateCustomerSession($input: UpdateCustomerSessionInput!) {\n  updateCustomerSession(input: $input) {\n    sessionId\n clientMutationId\n }\n}",GENERATE_CUSTOMER_RECOMMENDATIONS_QUERY:"mutation GenerateCustomerRecommendations($input: GenerateCustomerRecommendationsInput!) {\n  generateCustomerRecommendations(input: $input) {\n     clientMutationId\n      sessionId\n      paymentRecommendations {\n        paymentOption\n        recommendedPriority\n      }\n      isInPayPalNetwork\n  }\n}",REQUIRED_OPTIONS_CREATE_SESSION:["customer"],REQUIRED_OPTIONS_UPDATE_SESSION:["sessionId","customer"],REQUIRED_OPTIONS_GET_RECOMMENDATIONS:["sessionId"]}},{}],24:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={PAYMENT_READY_ERROR:{type:n.types.MERCHANT,code:"PAYMENT_READY_ERROR"},PAYMENT_READY_MISSING_REQUIRED_OPTION:{type:n.types.MERCHANT,code:"PAYMENT_READY_MISSING_REQUIRED_OPTION",message:"Missing required option for Payment Ready method."},PAYMENT_READY_CREATE_SESSION_ERROR:{type:n.types.NETWORK,code:"PAYMENT_READY_CREATE_SESSION_ERROR",message:"Error creating customer session."},PAYMENT_READY_UPDATE_SESSION_ERROR:{type:n.types.NETWORK,code:"PAYMENT_READY_UPDATE_SESSION_ERROR",message:"Error updating customer session."},PAYMENT_READY_NO_SESSION_ID:{type:n.types.MERCHANT,code:"PAYMENT_READY_NO_SESSION_ID",message:"A session ID is required"},PAYMENT_READY_GET_RECOMMENDATIONS_ERROR:{type:n.types.NETWORK,code:"PAYMENT_READY_GET_RECOMMENDATIONS_ERROR",message:"Error getting customer recommendations"}}},{"../lib/braintree-error":13}],25:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("./payment-ready"),c=e("../lib/create-assets-url"),l=e("../lib/create-deferred-client"),d=e("../lib/basic-component-verification"),f=e("@braintree/wrap-promise"),h="3.144.0";function m(e){var t="PAYMENT READY";return d.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:t})}).then(function(t){return e.client=t,n.sendEvent(t,"payment-ready.client.initialized"),new o(e)})}t.exports={create:f(m),VERSION:h}},{"../lib/analytics":9,"../lib/basic-component-verification":12,"../lib/create-assets-url":15,"../lib/create-deferred-client":17,"./payment-ready":26,"@braintree/wrap-promise":6}],26:[function(e,t,r){"use strict";var n=e("@braintree/wrap-promise"),o=e("../lib/analytics"),c=e("../lib/braintree-error"),l=e("./constants"),d=e("./errors"),f=e("../lib/has-missing-option");function h(e){this._instantiatedWithClient=Boolean(!e.useDeferredClient),this._client=e.client,this._createPromise=e.createPromise}function m(e){var t={button_type:e.buttonType,payment_ready_session_id:e.sessionId};return e.buttonOrder&&(t.payment_ready_button_order=e.buttonOrder),e.experimentType&&(t.payment_ready_experiment_type=e.experimentType),e.pageType&&(t.payment_ready_page_type=e.pageType),t}h.prototype.createCustomerSession=function(e){var t=this;return!e||f(e,l.REQUIRED_OPTIONS_CREATE_SESSION)?(o.sendEvent(t._client,"payment-ready.create-customer-session.missing-options"),Promise.reject(new c(d.PAYMENT_READY_MISSING_REQUIRED_OPTION))):t._client.request({api:"graphQLApi",data:{query:l.CREATE_PAYMENT_READY_SESSION_QUERY,variables:{input:{sessionId:e.sessionId,customer:e.customer}}}}).then(function(e){return o.sendEvent(t._client,"payment-ready.create-customer-session.succeeded"),e.data.createCustomerSession}
2).catch(function(e){return o.sendEvent(t._client,"payment-ready.create-customer-session.failed"),Promise.reject(new c({type:e.type||d.PAYMENT_READY_CREATE_SESSION_ERROR.type,code:e.code||d.PAYMENT_READY_CREATE_SESSION_ERROR.code,message:e.message||d.PAYMENT_READY_CREATE_SESSION_ERROR.message,details:{originalError:e}}))})},h.prototype.updateCustomerSession=function(e){var t=this;return!e||f(e,l.REQUIRED_OPTIONS_UPDATE_SESSION)?(o.sendEvent(t._client,"payment-ready.update-customer-session.missing-options"),Promise.reject(new c(d.PAYMENT_READY_MISSING_REQUIRED_OPTION))):t._client.request({api:"graphQLApi",data:{query:l.UPDATE_PAYMENT_READY_SESSION_QUERY,variables:{input:{sessionId:e.sessionId,customer:e.customer}}}}).then(function(e){return o.sendEvent(t._client,"payment-ready.update-customer-session.succeeded"),e.data.updateCustomerSession}).catch(function(e){return o.sendEvent(t._client,"payment-ready.update-customer-session.failed"),Promise.reject(new c({type:e.type||d.PAYMENT_READY_UPDATE_SESSION_ERROR.type,code:e.code||d.PAYMENT_READY_UPDATE_SESSION_ERROR.code,message:e.message||d.PAYMENT_READY_UPDATE_SESSION_ERROR.message,details:{originalError:e}}))})},h.prototype.getCustomerRecommendations=function(e){var t=this;return!e||f(e,l.REQUIRED_OPTIONS_GET_RECOMMENDATIONS)?(o.sendEvent(t._client,"payment-ready.get-customer-recommendations.missing-options"),Promise.reject(new c(d.PAYMENT_READY_NO_SESSION_ID))):t._client.request({api:"graphQLApi",data:{query:l.GENERATE_CUSTOMER_RECOMMENDATIONS_QUERY,variables:{input:{sessionId:e.sessionId,customer:e.customer,domain:e.domain,purchaseUnits:e.purchaseUnits}}}}).then(function(e){return o.sendEvent(t._client,"payment-ready.get-customer-recommendations.succeeded"),e.data.generateCustomerRecommendations}).catch(function(e){return o.sendEvent(t._client,"payment-ready.get-customer-recommendations.failed"),Promise.reject(new c({type:e.type||d.PAYMENT_READY_GET_RECOMMENDATIONS_ERROR.type,code:e.code||d.PAYMENT_READY_GET_RECOMMENDATIONS_ERROR.code,message:e.message||d.PAYMENT_READY_GET_RECOMMENDATIONS_ERROR.message,details:{originalError:e}}))})},h.prototype.sendPresentedEvent=function(e){var t=e.presentmentDetails?e.presentmentDetails.experimentType:null,r=e.presentmentDetails?e.presentmentDetails.pageType:null,n=e.presentmentDetails?e.presentmentDetails.buttonOrder:null;if(e.paymentReadySessionId&&"string"==typeof e.paymentReadySessionId)if(e.buttonType&&"string"==typeof e.buttonType){var c,d=e.buttonType;Object.values(l.BUTTON_TYPE).includes(d)||(d=l.BUTTON_TYPE.OTHER),n&&!Object.values(l.BUTTON_ORDER).includes(n)&&(n=l.BUTTON_ORDER.OTHER),t&&!Object.values(l.EXPERIMENT_TYPE).includes(t)&&(t=l.EXPERIMENT_TYPE.TEST),r&&!Object.values(l.PAGE_TYPE).includes(r)&&(r=l.PAGE_TYPE.OTHER),c=m({buttonOrder:n,buttonType:d,experimentType:t,pageType:r,sessionId:e.paymentReadySessionId}),o.sendEventPlus(this._client,l.EVENT_BUTTON_PRESENTED,c)}else console.warn("sendPresentedEvent: buttonType is missing");else console.warn("sendPresentedEvent: paymentReadySessionId is missing or invalid")},h.prototype.sendSelectedEvent=function(e){if(e.paymentReadySessionId&&"string"==typeof e.paymentReadySessionId)if(e.buttonType&&"string"==typeof e.buttonType){var t=e.buttonType;Object.values(l.BUTTON_TYPE).includes(t)||(t=l.BUTTON_TYPE.OTHER),o.sendEventPlus(this._client,l.EVENT_BUTTON_SELECTED,{payment_ready_session_id:e.paymentReadySessionId,button_type:t})}else console.warn("sendSelectedEvent: buttonType is missing");else console.warn("sendSelectedEvent: paymentReadySessionId is missing or invalid")},t.exports=n.wrapPrototype(h)},{"../lib/analytics":9,"../lib/braintree-error":13,"../lib/has-missing-option":20,"./constants":23,"./errors":24,"@braintree/wrap-promise":6}]},{},[25])(25)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],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(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),l=e("./is-opera"),d=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||n(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":5,"./is-edge":6,"./is-opera":13,"./is-samsung":14,"./is-silk":15}],5:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],6:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],7:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],8:[function(e,t,r){"use strict";var n=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&o(e)}},{"./is-ios":11}],9:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!n(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":11,"./is-ios-google-search-app":8}],10:[function(e,t,r){"use strict";var n=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,n(e)&&t}},{"./is-ios-webview":9}],11:[function(e,t,r){"use strict";var n=e("./is-ipados");t.exports=function(e,t,r){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||n(e,r):o}},{"./is-ipados":12}],12:[function(e,t,r){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],13:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],14:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],15:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],16:[function(e,t,r){"use strict";var n=48,o=e("./is-android"),c=e("./is-ios-firefox"),l=e("./is-ios-webview"),d=e("./is-chrome"),f=e("./is-samsung"),h=e("./is-duckduckgo");function m(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<n}function y(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}function v(e){var t=/Version\/[\d.]+/i;return e=e||window.navigator.userAgent,!!o(e)&&t.test(e)&&!y(e)&&!h(e)}function _(e){return!d(e)&&!f(e)&&/samsung/i.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,!(l(e)||c(e)||v(e)||y(e)||m(e)||_(e))}},{"./is-android":3,"./is-chrome":4,"./is-duckduckgo":5,"./is-ios-firefox":7,"./is-ios-webview":9,"./is-samsung":14}],17:[function(e,t,r){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":10}],18:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":11}],19:[function(e,t,r){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":16}],20:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}}
2,{"./lib/assign":21,"./lib/default-attributes":22,"./lib/set-attributes":23}],21:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],22:[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"}},{}],23:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],24:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],25:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],26:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],27:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],28:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":25,"./lib/once":26,"./lib/promise-or-callback":27}],29:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],30:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":38}],31:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":30,"./lib":38}],32:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":38}],33:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":38}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":38}],35:[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={}},{}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":38}],37:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],38:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":32,"./broadcast":34,"./broadcast-to-child-windows":33,"./constants":35,"./dispatch":36,"./has-opener":37,"./is-not-string":39,"./message":40,"./package-payload":41,"./send-message":42,"./subscribe-replier":43,"./subscription-args-invalid":44,"./types":45,"./unpack-payload":46}],39:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],40:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":38}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":38}],42:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],43:[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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":30,"@braintree/uuid":24}],44:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":38}],45:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],46:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":38}],47:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":53,"./create-authorization-data":57,"./json-clone":73}],48:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":47,"./assign":50,"./constants":53}],49:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":29}],50:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],51:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":52,"./errors":61}],52:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":60}],53:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],54:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":52,"./errors":61}],55:[function(e,t,r){"use strict";var n=e("./braintree-error");function o(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=o},{"./braintree-error":52}],56:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":53}],57:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":53,"../lib/vendor/polyfill":78}],58:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":49,"./braintree-error":52,"./errors":61}],59:[function(e,t,r){"use strict";
2t.exports=function(e){return function(){var t=arguments;setTimeout(function(){e.apply(null,t)},1)}}},{}],60:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],61:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":52}],62:[function(e,t,r){"use strict";var n=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),l=e("framebus"),d=e("../shared/events"),f=e("../shared/errors"),h=e("../shared/constants"),m=e("@braintree/uuid"),y=e("@braintree/iframer"),v=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("./../../assign").assign,w=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,A=["name","dispatchFrameUrl","openFrameUrl"];function T(){}function O(e){if(!e)throw new Error("Valid configuration is required");if(A.forEach(function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}function S(e){O(e),this._serviceId=m().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new l({channel:this._serviceId}),this._setBusEvents()}S.prototype.initialize=function(e){var t=function(){e(),this._bus.off(d.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(d.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},S.prototype._writeDispatchFrame=function(){var e=h.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=y({"aria-hidden":!0,name:e,title:e,src:t,class:h.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},S.prototype._setBusEvents=function(){this._bus.on(d.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}.bind(this)),this._bus.on(w,function(e){e(this.state)}.bind(this))},S.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(E(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(ne
2w v(f.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},S.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},S.prototype.close=function(){this.isFrameClosed()||this._frame.close()},S.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},S.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},S.prototype.createNoopHandler=function(){return{close:T,focus:T}},S.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},S.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},S.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},S.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new v(f.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),h.POPUP_POLL_INTERVAL),this._popupInterval},S.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),r=Boolean(window.popupBridge),l=E({},this._options,e);return r?new o(l):t?new n(l):new c(l)},t.exports=S},{"../../braintree-error":52,"../../constants":53,"../shared/browser-detection":69,"../shared/constants":70,"../shared/errors":71,"../shared/events":72,"./../../assign":50,"./strategies/modal":64,"./strategies/popup":67,"./strategies/popup-bridge":65,"@braintree/iframer":20,"@braintree/uuid":24,framebus:31}],63:[function(e,t,r){"use strict";var n=e("./frame-service");t.exports={create:function(e,t){var r=new n(e);r.initialize(function(){t(r)})}}},{"./frame-service":62}],64:[function(e,t,r){"use strict";var n=e("@braintree/iframer"),o=e("../../../assign").assign,c=e("../../shared/browser-detection"),l={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function d(){}function f(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}f.prototype.initialize=d,f.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},l),title:"Lightbox Frame"};c.isIos()?(c.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,l,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=n(e),this._el.appendChild(this._frame)):this._el=this._frame=n(e),this._closed=!1,this._container.appendChild(this._el)},f.prototype.focus=d,f.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},f.prototype.isClosed=function(){return Boolean(this._closed)},f.prototype.redirect=function(e){this._frame.src=e},f.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},f.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=f},{"../../../assign":50,"../../shared/browser-detection":69,"@braintree/iframer":20}],65:[function(e,t,r){"use strict";var n=e("../../../braintree-error"),o=e("../../shared/errors");function c(){}function l(e){this._closed=null,this._options=e}l.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(r,c){var l=!c&&!r;t._closed=!0,r||l?e(new n(o.FRAME_SERVICE_FRAME_CLOSED)):e(null,c)}},l.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)}
2,l.prototype.focus=c,l.prototype.close=c,l.prototype.isClosed=function(){return Boolean(this._closed)},l.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=l},{"../../../braintree-error":52,"../../shared/errors":71}],66:[function(e,t,r){"use strict";var n=e("../../../shared/constants"),o=e("./position");function c(e,t,r){return void 0!==t?t:o[e](r)}t.exports=function(e){var t=e.height||n.DEFAULT_POPUP_HEIGHT,r=e.width||n.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),l=c("left",e.left,r);return[n.POPUP_BASE_OPTIONS,"height="+t,"width="+r,"top="+o,"left="+l].join(",")}},{"../../../shared/constants":70,"./position":68}],67:[function(e,t,r){"use strict";var n=e("./compose-options");function o(){}function c(e){this._frame=null,this._options=e||{}}c.prototype.initialize=o,c.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,n(this._options))},c.prototype.focus=function(){this._frame.focus()},c.prototype.close=function(){this._frame.closed||this._frame.close()},c.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},c.prototype.redirect=function(e){this._frame.location.href=e},t.exports=c},{"./compose-options":66}],68:[function(e,t,r){"use strict";function n(e){return c(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)}function o(e){return c(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)}function c(e,t,r){return(e-t)/2+r}t.exports={top:n,left:o,center:c}},{}],69:[function(e,t,r){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ios":18,"@braintree/browser-detection/is-ios-wkwebview":17,"@braintree/browser-detection/supports-popups":19}],70:[function(e,t,r){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],71:[function(e,t,r){"use strict";var n=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":52}],72:[function(e,t,r){"use strict";var n=e("../../enumerate");t.exports=n(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":60}],73:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],74:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],75:[function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}t.exports=n},{}],76:[function(e,t,r){"use strict";function n(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)||!1}function c(e){return e=e||window.location.href,/\?/.test(e)}function l(e){return c(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}}function d(e,t){var r,n,p,c=[];for(p in e)e.hasOwnProperty(p)&&(n=e[p],r=t?o(e)?t+"[]":t+"["+p+"]":p,"object"==typeof n?c.push(d(n,r)):c.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return c.join("&")}function f(e,t){return e=e||"",null!=t&&"object"==typeof t&&n(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=d(t)),e}t.exports={parse:l,stringify:d,queryify:f,hasQueryParams:c}},{}],77:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],78:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],79:[function(e,t,r){"use strict";var n=e("../../lib/frame-service/external"),o=e("../../lib/braintree-error"),c=e("../../lib/convert-to-braintree-error"),l=e("../../lib/use-min"),d=e("../../lib/once"),f="3.144.0",h=e("../shared/constants"),m=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,y=e("../../lib/analytics"),v=e("../../lib/methods"),_=e("../../lib/deferred"),E=e("../shared/errors"),w=e("../../lib/convert-methods-to-error"),A=e("../../lib/querystring"),T=e("@braintree/wrap-promise");function O(e){this._client=e.client,this._assetsUrl=e.client.getConfiguration().gatewayConfiguration.paypal.assetsUrl+"/web/"+f,this._isDebug=e.client.getConfiguration().isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+l(this._isDebug)+".html",this._authorizationInProgress=!1}O.prototype._initialize=function(){var e=this,t=this._client,r=setTimeout(function(){y.sendEvent(t,"paypal.load.timed-out")},m);return new Promise(function(o){n.create({name:h.LANDING_FRAME_NAME,dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+l(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},function(n){e._frameService=n,clearTimeout(r),y.sendEvent(t,"paypal.load.succeeded"),o(e)})})},O.prototype.tokenize=function(e,t){var r,n,c=this,l=this._client;return t&&(t=d(_(t))),e&&h.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(r=new Promise(function(t,r){c._authorizationInProgress?(y.sendEvent(l,"paypal.tokenization.error.already-opened"),r(new o(E.PAYPAL_TOKENIZATION_REQUEST_ACTIVE))):(c._authorizationInProgress=!0,window.popupBridge||y.sendEvent(l,"paypal.tokenization.opened"),!0===e.offerCredit&&y.sendEvent(l,"paypal.credit.offered"),!0===e.offerPayLater&&y.sendEvent(l,"paypal.paylater.offered"),c._navigateFrameToAuth(e).catch(r),c._frameService.open({},c._createFrameServiceCallback(e,t,r)))}),t?(r.then(function(e){t(null,e)}).catch(t),this._frameService.createHandler({beforeClose:function(){y.sendEvent(l,"paypal.tokenization.closed.by-merchant")}})):r):(n=new o(E.PAYPAL_FLOW_OPTION_REQUIRED),t?(t(n),this._frameService.createNoopHandler()):Promise.reject(n))},O.prototype._createFrameServiceCallback=function(e,t,r){var n=this,c=this._client;return window.popupBridge?function(l,d){var f=d&&d.path&&"/cancel"===d.path.substring(0,7);n._authorizationInProgress=!1,l||f?(y.sendEvent(c,"popup-bridge:paypal:canceled"),r(new o(E.PAYPAL_POPUP_CLOSED))):d&&n._tokenizePayPal(e,d.queryItems).then(t).catch(r)}:function(l,d){n._authorizationInProgress=!1,l?"FRAME_SERVICE_FRAME_CLOSED"===l.code?(y.sendEvent(c,"paypal.tokenization.closed.by-user"),r(new o(E.PAYPAL_POPUP_CLOSED))):l.code&&l.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1&&r(new o({code:E.PAYPAL_POPUP_OPEN_FAILED.code,type:E.PAYPAL_POPUP_OPEN_FAILED.type,message:E.PAYPAL_POPUP_OPEN_FAILED.message,details:{originalError:l}})):d&&n._tokenizePayPal(e,d).then(t).catch(r)}},O.prototype._tokenizePayPal=function(e,t){var r=this,n=this._client;return window.popupBridge||this._frameService.redirect(this._loadingFrameUrl),n.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e,t)}).then(function(e){var t=r._formatTokenizePayload(e);return window.popupBridge?y.sendEvent(n,"popup-bridge:paypal:succeeded"):y.sendEvent(n,"paypal.tokenization.success"),t.creditFinancingOffered&&y.sendEvent(n,"paypal.credit.accepted"),r._frameService.close(),t}).catch(function(e){return window.popupBridge?y.sendEvent(n,"popup-bridge:paypal:failed"):y.sendEvent(n,"paypal.tokenization.failed"),r._frameService.close(),Promise.reject(c(e,{type:E.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.type,code:E.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.code,message:E.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.message}))})},O.prototype._formatTokenizePayload=function(e){var t,r={};return e.paypalAccounts&&(r=e.paypalAccounts[0]),t={nonce:r.nonce,details:{},type:r.type},r.details&&r.details.payerInfo&&(t.details=r.details.payerInfo),r.details&&r.details.creditFinancingOffered&&(t.creditFinancingOffered=r.details.creditFinancingOffered),t},O.prototype._formatTokenizeData=function(e,t){var r=this._client.getConfiguration(),n=r.gatewayConfiguration,o="TOKENIZATION_KEY"===r.authorizationType,data={paypalAccount:{correlationId:t.ba_token||t.token,options:{validate:"vault"===e.flow&&!o}}};return t.ba_token?data.paypalAccount.billingAgreementToken=t.ba_token:(data.paypalAccount.paymentToken=t.paymentId,data.paypalAccount.payerId=t.PayerID,data.paypalAccount.unilateral=n.paypal.unvettedMerchant,e.hasOwnProperty("intent")&&(data.paypalAccount.intent=e.intent)),data},O.prototype._navigateFrameToAuth=function(e){var t=this,r=this._client,n="paypal_hermes/"+h.FLOW_ENDPOINTS[e.flow];return r.request({endpoint:n,method:"post",data:this._formatPaymentResourceData(e)}).then(function(n){var o;o="checkout"===e.flow?n.paymentResource.redirectUrl:n.agreementSetup.approvalUrl,"commit"===e.useraction&&(o=A.queryify(o,{useraction:"commit"})),window.popupBridge&&y.sendEvent(r,"popup-bridge:paypal:started"),t._frameService.redirect(o)}).catch(function(e){var r=e.details&&e.details.httpStatus;return t._frameService.close(),t._authorizationInProgress=!1,422===r?Promise.reject(new o({type:E.PAYPAL_INVALID_PAYMENT_OPTION.type,code:E.PAYPAL_INVALID_PAYMENT_OPTION.code,message:E.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}})):Promise.reject(c(e,{type:E.PAYPAL_FLOW_FAILED.type,code:E.PAYPAL_FLOW_FAILED.code,message:E.PAYPAL_FLOW_FAILED.message}))})},O.prototype._formatPaymentResourceData=function(e){var t,r=this._client.getConfiguration().gatewayConfiguration,n=this._frameService._serviceId,o={returnUrl:r.paypal.assetsUrl+"/web/"+f+"/html/redirect-frame"+l(this._isDebug)+".html?channel="+n,cancelUrl:r.paypal.assetsUrl+"/web/"+f+"/html/cancel-frame"+l(this._isDebug)+".html?channel="+n,offerPaypalCredit:!0===e.offerCredit,offerPayLater:!0===e.offerPayLater,experienceProfile:{brandName:e.displayName||r.payp
2al.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),addressOverride:!1===e.shippingAddressEditable,landingPageType:e.landingPageType}};if(window.popupBridge&&"function"==typeof window.popupBridge.getReturnUrlPrefix&&(o.returnUrl=window.popupBridge.getReturnUrlPrefix()+"return",o.cancelUrl=window.popupBridge.getReturnUrlPrefix()+"cancel"),"checkout"===e.flow)for(t in o.amount=e.amount,o.currencyIsoCode=e.currency,e.hasOwnProperty("intent")&&(o.intent=e.intent),e.shippingAddressOverride)e.shippingAddressOverride.hasOwnProperty(t)&&(o[t]=e.shippingAddressOverride[t]);else o.shippingAddress=e.shippingAddressOverride,e.billingAgreementDescription&&(o.description=e.billingAgreementDescription);return o},O.prototype.closeWindow=function(){this._authorizationInProgress&&y.sendEvent(this._client,"paypal.tokenize.closed.by-merchant"),this._frameService.close()},O.prototype.focusWindow=function(){this._frameService.focus()},O.prototype.teardown=T(function(){var e=this;return e._frameService.teardown(),w(e,v(O.prototype)),y.sendEvent(e._client,"paypal.teardown-completed"),Promise.resolve()}),t.exports=O},{"../../lib/analytics":48,"../../lib/braintree-error":52,"../../lib/constants":53,"../../lib/convert-methods-to-error":54,"../../lib/convert-to-braintree-error":55,"../../lib/deferred":59,"../../lib/frame-service/external":63,"../../lib/methods":74,"../../lib/once":75,"../../lib/querystring":76,"../../lib/use-min":77,"../shared/constants":81,"../shared/errors":82,"@braintree/wrap-promise":28}],80:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/basic-component-verification"),c=e("../lib/create-deferred-client"),l=e("../lib/create-assets-url"),d=e("../lib/braintree-error"),f=e("./shared/errors"),h=e("./external/paypal"),m="3.144.0",y=e("@braintree/wrap-promise");function v(e){var t="PayPal";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:t})}).then(function(t){var r=t.getConfiguration();return e.client=t,!0!==r.gatewayConfiguration.paypalEnabled?Promise.reject(new d(f.PAYPAL_NOT_ENABLED)):(n.sendEvent(e.client,"paypal.initialized"),new h(e)._initialize())})}function _(){return!0}t.exports={create:y(v),isSupported:_,VERSION:m}},{"../lib/analytics":48,"../lib/basic-component-verification":51,"../lib/braintree-error":52,"../lib/create-assets-url":56,"../lib/create-deferred-client":58,"./external/paypal":79,"./shared/errors":82,"@braintree/wrap-promise":28}],81:[function(e,t,r){"use strict";t.exports={LANDING_FRAME_NAME:"braintreepaypallanding",FLOW_ENDPOINTS:{checkout:"create_payment_resource",vault:"setup_billing_agreement"},REQUIRED_OPTIONS:["paymentId","currency"],ENVIRONMENT:{stage:"https://www.msmaster.qa.paypal.com/sdk/js?",sandbox:"https://www.sandbox.paypal.com/sdk/js?",teBraintree:"https://www.braintree.stage.paypal.com/sdk/js?"},BT_INTEGRATION_SOURCE:"BRAINTREE_WEB_SDK",CREATE_BILLING_AGREEMENT_JWT_MUTATION:"mutation CreateBillingAgreementJwt($input: CreateBillingAgreementJwtInput!) { createBillingAgreementJwt(input: $input) { jwt } }"}},{}],82:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:n.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_TOKENIZATION_REQUEST_ACTIVE:{type:n.types.MERCHANT,code:"PAYPAL_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},PAYPAL_ACCOUNT_TOKENIZATION_FAILED:{type:n.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:n.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_POPUP_OPEN_FAILED:{type:n.types.MERCHANT,code:"PAYPAL_POPUP_OPEN_FAILED",message:"PayPal popup failed to open, make sure to tokenize in response to a user action."},PAYPAL_POPUP_CLOSED:{type:n.types.CUSTOMER,code:"PAYPAL_POPUP_CLOSED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_INVALID_PAYMENT_OPTION:{type:n.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."}}},{"../../lib/braintree-error":52}]},{},[80])(80)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],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(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),l=e("./is-opera"),d=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||n(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":5,"./is-edge":6,"./is-opera":13,"./is-samsung":14,"./is-silk":15}],5:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],6:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],7:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],8:[function(e,t,r){"use strict";var n=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&o(e)}},{"./is-ios":11}],9:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!n(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":11,"./is-ios-google-search-app":8}],10:[function(e,t,r){"use strict";var n=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,n(e)&&t}},{"./is-ios-webview":9}],11:[function(e,t,r){"use strict";var n=e("./is-ipados");t.exports=function(e,t,r){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||n(e,r):o}},{"./is-ipados":12}],12:[function(e,t,r){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],13:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],14:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],15:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],16:[function(e,t,r){"use strict";var n=48,o=e("./is-android"),c=e("./is-ios-firefox"),l=e("./is-ios-webview"),d=e("./is-chrome"),f=e("./is-samsung"),h=e("./is-duckduckgo");function m(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<n}function y(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}function v(e){var t=/Version\/[\d.]+/i;return e=e||window.navigator.userAgent,!!o(e)&&t.test(e)&&!y(e)&&!h(e)}function _(e){return!d(e)&&!f(e)&&/samsung/i.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,!(l(e)||c(e)||v(e)||y(e)||m(e)||_(e))}},{"./is-android":3,"./is-chrome":4,"./is-duckduckgo":5,"./is-ios-firefox":7,"./is-ios-webview":9,"./is-samsung":14}],17:[function(e,t,r){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":10}],18:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":11}],19:[function(e,t,r){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":16}],20:[function(e,t,r){"use strict";var n="undefined"!=typeof Promise?Promise:null,o=function(){function e(t){var r=this;"function"!=typeof t?(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()):this._promise=new e.Promise(t)}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")?Boolean(t.suppressUnhandledPromiseMessage):Boolean(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}();t.exports=o},{}],21:[function(e,t,r){"use strict";
2var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":22,"./lib/default-attributes":23,"./lib/set-attributes":24}],22:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],23:[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"}},{}],24:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],25:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],26:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],27:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],28:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],29:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":26,"./lib/once":27,"./lib/promise-or-callback":28}],30:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],31:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":39}],32:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":31,"./lib":39}],33:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":39}],34:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":39}],35:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":39}],36:[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={}},{}],37:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":39}],38:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],39:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":33,"./broadcast":35,"./broadcast-to-child-windows":34,"./constants":36,"./dispatch":37,"./has-opener":38,"./is-not-string":40,"./message":41,"./package-payload":42,"./send-message":43,"./subscribe-replier":44,"./subscription-args-invalid":45,"./types":46,"./unpack-payload":47}],40:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":39}],42:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":39}],43:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],44:[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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":31,"@braintree/uuid":25}],45:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":39}],46:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],47:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":39}],48:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":54,"./create-authorization-data":58,"./json-clone":73}],49:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":48,"./assign":51,"./constants":54}],50:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":30}],51:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],52:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":53,"./errors":61}],53:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":60}],54:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],55:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":53,"./errors":61}],56:[function(e,t,r){"use strict";var n=e("./braintree-error");function o(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=o},{"./braintree-error":53}],57:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":54}],58:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":54,"../lib/vendor/polyfill":77}],59:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":50,"./braintree-error":53,"./errors":61}],60:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],61:[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"}
2,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":53}],62:[function(e,t,r){"use strict";var n=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),l=e("framebus"),d=e("../shared/events"),f=e("../shared/errors"),h=e("../shared/constants"),m=e("@braintree/uuid"),y=e("@braintree/iframer"),v=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("./../../assign").assign,w=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,A=["name","dispatchFrameUrl","openFrameUrl"];function T(){}function O(e){if(!e)throw new Error("Valid configuration is required");if(A.forEach(function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}function S(e){O(e),this._serviceId=m().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new l({channel:this._serviceId}),this._setBusEvents()}S.prototype.initialize=function(e){var t=function(){e(),this._bus.off(d.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(d.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},S.prototype._writeDispatchFrame=function(){var e=h.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=y({"aria-hidden":!0,name:e,title:e,src:t,class:h.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},S.prototype._setBusEvents=function(){this._bus.on(d.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}.bind(this)),this._bus.on(w,function(e){e(this.state)}.bind(this))},S.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(E(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(ne
2w v(f.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},S.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},S.prototype.close=function(){this.isFrameClosed()||this._frame.close()},S.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},S.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},S.prototype.createNoopHandler=function(){return{close:T,focus:T}},S.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},S.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},S.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},S.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new v(f.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),h.POPUP_POLL_INTERVAL),this._popupInterval},S.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),r=Boolean(window.popupBridge),l=E({},this._options,e);return r?new o(l):t?new n(l):new c(l)},t.exports=S},{"../../braintree-error":53,"../../constants":54,"../shared/browser-detection":69,"../shared/constants":70,"../shared/errors":71,"../shared/events":72,"./../../assign":51,"./strategies/modal":64,"./strategies/popup":67,"./strategies/popup-bridge":65,"@braintree/iframer":21,"@braintree/uuid":25,framebus:32}],63:[function(e,t,r){"use strict";var n=e("./frame-service");t.exports={create:function(e,t){var r=new n(e);r.initialize(function(){t(r)})}}},{"./frame-service":62}],64:[function(e,t,r){"use strict";var n=e("@braintree/iframer"),o=e("../../../assign").assign,c=e("../../shared/browser-detection"),l={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function d(){}function f(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}f.prototype.initialize=d,f.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},l),title:"Lightbox Frame"};c.isIos()?(c.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,l,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=n(e),this._el.appendChild(this._frame)):this._el=this._frame=n(e),this._closed=!1,this._container.appendChild(this._el)},f.prototype.focus=d,f.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},f.prototype.isClosed=function(){return Boolean(this._closed)},f.prototype.redirect=function(e){this._frame.src=e},f.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},f.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=f},{"../../../assign":51,"../../shared/browser-detection":69,"@braintree/iframer":21}],65:[function(e,t,r){"use strict";var n=e("../../../braintree-error"),o=e("../../shared/errors");function c(){}function l(e){this._closed=null,this._options=e}l.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(r,c){var l=!c&&!r;t._closed=!0,r||l?e(new n(o.FRAME_SERVICE_FRAME_CLOSED)):e(null,c)}},l.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)}
2,l.prototype.focus=c,l.prototype.close=c,l.prototype.isClosed=function(){return Boolean(this._closed)},l.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=l},{"../../../braintree-error":53,"../../shared/errors":71}],66:[function(e,t,r){"use strict";var n=e("../../../shared/constants"),o=e("./position");function c(e,t,r){return void 0!==t?t:o[e](r)}t.exports=function(e){var t=e.height||n.DEFAULT_POPUP_HEIGHT,r=e.width||n.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),l=c("left",e.left,r);return[n.POPUP_BASE_OPTIONS,"height="+t,"width="+r,"top="+o,"left="+l].join(",")}},{"../../../shared/constants":70,"./position":68}],67:[function(e,t,r){"use strict";var n=e("./compose-options");function o(){}function c(e){this._frame=null,this._options=e||{}}c.prototype.initialize=o,c.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,n(this._options))},c.prototype.focus=function(){this._frame.focus()},c.prototype.close=function(){this._frame.closed||this._frame.close()},c.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},c.prototype.redirect=function(e){this._frame.location.href=e},t.exports=c},{"./compose-options":66}],68:[function(e,t,r){"use strict";function n(e){return c(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)}function o(e){return c(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)}function c(e,t,r){return(e-t)/2+r}t.exports={top:n,left:o,center:c}},{}],69:[function(e,t,r){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ios":18,"@braintree/browser-detection/is-ios-wkwebview":17,"@braintree/browser-detection/supports-popups":19}],70:[function(e,t,r){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],71:[function(e,t,r){"use strict";var n=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":53}],72:[function(e,t,r){"use strict";var n=e("../../enumerate");t.exports=n(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":60}],73:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],74:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],75:[function(e,t,r){"use strict";function n(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)||!1}function c(e){return e=e||window.location.href,/\?/.test(e)}function l(e){return c(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}}function d(e,t){var r,n,p,c=[];for(p in e)e.hasOwnProperty(p)&&(n=e[p],r=t?o(e)?t+"[]":t+"["+p+"]":p,"object"==typeof n?c.push(d(n,r)):c.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return c.join("&")}function f(e,t){return e=e||"",null!=t&&"object"==typeof t&&n(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=d(t)),e}t.exports={parse:l,stringify:d,queryify:f,hasQueryParams:c}},{}],76:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],77:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],78:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:n.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED:{type:n.types.MERCHANT,code:"PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED",message:"A linked PayPal Sandbox account is required to use PayPal Checkout in Sandbox. See https://developer.paypal.com/braintree/docs/guides/paypal/testing-go-live#linked-paypal-testing for details on linking your PayPal sandbox with Braintree."},PAYPAL_ACCOUNT_TOKENIZATION_FAILED:{type:n.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:n.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED:{type:n.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED"},PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED:{type:n.types.NETWORK,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED",message:"Something went wrong when setting up the checkout workflow."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED:{type:n.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED",message:"PayPal popup failed to open, make sure to initiate the vault checkout in response to a user action."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED:{type:n.types.CUSTOMER,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS:{type:n.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS",message:"Vault initiated checkout already in progress."},PAYPAL_INVALID_PAYMENT_OPTION:{type:n.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."},PAYPAL_MISSING_REQUIRED_OPTION:{type:n.types.MERCHANT,code:"PAYPAL_MISSING_REQUIRED_OPTION",message:"Missing required option."},PAYPAL_BILLING_AGREEMENT_JWT_FAILED:{type:n.types.NETWORK,code:"PAYPAL_BILLING_AGREEMENT_JWT_FAILED",message:"Could not create a billing agreement token from the payment method JWT."}}},{"../lib/braintree-error":53}],79:[function(e,t,r){"use strict";var n=e("../lib/basic-component-verification"),o=e("@braintree/wrap-promise"),c=e("./paypal-checkout"),l="3.144.0";function d(e){var t="PayPal Checkout";return n.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return new c(e)._initialize(e)})}function f(){return!0}t.exports={create:o(d),isSupported:f,VERSION:l}},{"../lib/basic-component-verification":52,"./paypal-checkout":80,"@braintree/wrap-promise":29}],80:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/assign").assign,c=e("../lib/create-deferred-client"),l=e("../lib/create-assets-url"),d=e("@braintree/extended-promise"),f=e("@braintree/wrap-promise"),h=e("../lib/braintree-error"),m=e("../lib/convert-to-braintree-error"),y=e("./errors"),v=e("../paypal/shared/constants"),_=e("../lib/frame-service/external"),E=e("../lib/create-authorization-data"),w=e("../lib/methods"),A=e("../lib/use-min"),T=e("../lib/convert-methods-to-error"),O=e("../lib/querystring"),S="3.144.0",I=e("../lib/constants").INTEGRATION_TIMEOUT_MS,C=["amount","currency","vaultInitiatedCheckoutPaymentMethodToken"],N="https://www.{ENV}paypal.com/smart/buttons/preload";function P(e){this._merchantAccountId=e.merchantAccountId,this._autoSetDataUserIdToken=Boolean(e.autoSetDataUserIdToken)}d.suppressUnhandledPromiseMessage=!0,P.prototype._initialize=function(e){var t;return e.client?(t=e.client.getConfiguration(),this._authorizationInformation={fingerprint:t.authorizationFingerprint,environment:t.gatewayConfiguration.environment}):(t=E(e.authorization),this._authorizationInformation={fingerprint:t.attrs.authorizationFingerprint,environment:t.environment}),this._clientPromise=c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:"PayPal Checkout"}).then(function(e){return this._configuration=e.getConfiguration(),this._merchantAccountId||(this._configuration.gatewayConfiguration.paypalEnabled?!0===this._configuration.gatewayConfiguration.paypal.environmentNoNetwork&&(this._setupError=ne
2w h(y.PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED)):this._setupError=new h(y.PAYPAL_NOT_ENABLED)),this._setupError?Promise.reject(this._setupError):(n.sendEvent(e,"paypal-checkout.initialized"),this._frameServicePromise=this._setupFrameService(e),this._billingAgreementJwtPromise=this._createBillingAgreementJwt(e),e)}.bind(this)),e.client?this._clientPromise.then(function(){return this}.bind(this)):Promise.resolve(this)},P.prototype._createBillingAgreementJwt=function(e){var t=this,r=this._configuration.paymentMethodIdJwt;return r?e.request({api:"graphQLApi",data:{query:v.CREATE_BILLING_AGREEMENT_JWT_MUTATION,variables:{input:{paymentMethodJwt:r}}}}).then(function(r){t._billingAgreementJwt=r.data.createBillingAgreementJwt.jwt,n.sendEvent(e,"paypal-checkout.create-billing-agreement-jwt.succeeded")}).catch(function(r){t._billingAgreementJwtError=new h({type:y.PAYPAL_BILLING_AGREEMENT_JWT_FAILED.type,code:y.PAYPAL_BILLING_AGREEMENT_JWT_FAILED.code,message:y.PAYPAL_BILLING_AGREEMENT_JWT_FAILED.message,details:{originalError:r}}),n.sendEvent(e,"paypal-checkout.create-billing-agreement-jwt.failed")}):Promise.resolve()},P.prototype._setupFrameService=function(e){var t=new d,r=e.getConfiguration(),o=setTimeout(function(){n.sendEvent(e,"paypal-checkout.frame-service.timed-out"),t.reject(new h(y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED))},I);return this._assetsUrl=r.gatewayConfiguration.paypal.assetsUrl+"/web/"+S,this._isDebug=r.isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+A(this._isDebug)+".html",_.create({name:"braintreepaypallanding",dispatchFrameUrl:this._assetsUrl+"/html/dispatch-frame"+A(this._isDebug)+".html",openFrameUrl:this._loadingFrameUrl},function(e){this._frameService=e,clearTimeout(o),t.resolve()}.bind(this)),t},P.prototype.createPayment=function(e){var t=this;return e&&v.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(n.sendEvent(this._clientPromise,"paypal-checkout.createPayment"),this._createPaymentResource(e).then(function(r){var n;return n="checkout"===e.flow?O.parse(r.paymentResource.redirectUrl).token:r.agreementSetup.tokenId,t._contextId=n,n})):Promise.reject(new h(y.PAYPAL_FLOW_OPTION_REQUIRED))},P.prototype._createPaymentResource=function(e,t){var r=this,o="paypal_hermes/"+v.FLOW_ENDPOINTS[e.flow];return this._flow=e.flow,delete this.intentFromCreatePayment,t=t||{},!0===e.offerCredit&&n.sendEvent(this._clientPromise,"paypal-checkout.credit.offered"),this._clientPromise.then(function(e){return Promise.all([e,r._billingAgreementJwtPromise||Promise.resolve()])}).then(function(n){return n[0].request({endpoint:o,method:"post",data:r._formatPaymentResourceData(e,t)}).then(function(data){return r.intentFromCreatePayment=e.intent,data})}).catch(function(e){return r._setupError?Promise.reject(r._setupError):422===(e.details&&e.details.httpStatus)?Promise.reject(new h({type:y.PAYPAL_INVALID_PAYMENT_OPTION.type,code:y.PAYPAL_INVALID_PAYMENT_OPTION.code,message:y.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}})):Promise.reject(m(e,{type:y.PAYPAL_FLOW_FAILED.type,code:y.PAYPAL_FLOW_FAILED.code,message:y.PAYPAL_FLOW_FAILED.message}))})},P.prototype.updatePayment=function(e){var t=this,r="paypal_hermes/patch_payment_resource";return!e||this._hasMissingOption(e,v.REQUIRED_OPTIONS)?(n.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment.missing-options",{flow:t._flow,context_id:t._contextId}),Promise.reject(new h(y.PAYPAL_MISSING_REQUIRED_OPTION))):this._verifyConsistentCurrency(e)?(n.sendEventPlus(this._clientPromise,"paypal-checkout.updatePayment",{flow:t._flow,context_id:t._contextId}),this._clientPromise.then(function(n){return n.request({endpoint:r,method:"post",data:t._formatUpdatePaymentData(e)})}).catch(function(e){return 422===(e.details&&e.details.httpStatus)?(n.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment.invalid",{flow:t._flow,context_id:t._contextId}),Promise.reject(new h({type:y.PAYPAL_INVALID_PAYMENT_OPTION.type,code:y.PAYPAL_INVALID_PAYMENT_OPTION.code,message:y.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}}))):(n.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment."+y.PAYPAL_FLOW_FAILED.code,{flow:t._flow,context_id:t._contextId}),Promise.reject(m(e,{type:y.PAYPAL_FLOW_FAILED.type,code:y.PAYPAL_FLOW_FAILED.code,message:y.PAYPAL_FLOW_FAILED.message})))})):(n.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment.inconsistent-currencies",{flow:t._flow,context_id:t._contextId}),Promise.reject(new h({type:y.PAYPAL_INVALID_PAYMENT_OPTION.type,code:y.PAYPAL_INVALID_PAYMENT_OPTION.code,message:y.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:new Error("One or more shipping option currencies differ from checkout currency.")}})))},P.prototype.startVaultInitiatedCheckout=function(e){var t,r=this;return this._vaultInitiatedCheckoutInProgress?(n.sendEventPlus(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.error.already-in-progress",{flow:r._flow,context_id:r._contextId}),Promise.reject(new h(y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS))
2):(C.forEach(function(param){e.hasOwnProperty(param)||(t=param)}),t?Promise.reject(new h({type:y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED.type,code:y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED.code,message:"Required param "+t+" is missing."})):(this._vaultInitiatedCheckoutInProgress=!0,this._addModalBackdrop(e),e=o({},e,{flow:"checkout"}),n.sendEventPlus(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.started",{flow:r._flow,context_id:r._contextId}),this._waitForVaultInitiatedCheckoutDependencies().then(function(){var t=new d,n=r._createPaymentResource(e,{returnUrl:r._constructVaultCheckoutUrl("redirect-frame"),cancelUrl:r._constructVaultCheckoutUrl("cancel-frame")}).then(function(e){var n=e.paymentResource.redirectUrl;return r._frameService.redirect(n),t});return r._frameService.open({},r._createFrameServiceCallback(t)),n}).catch(function(e){return r._vaultInitiatedCheckoutInProgress=!1,r._removeModalBackdrop(),"FRAME_SERVICE_FRAME_CLOSED"===e.code?(n.sendEventPlus(r._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.canceled.by-customer",{flow:r._flow,context_id:r._contextId}),Promise.reject(new h(y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED))):(r._frameService&&r._frameService.close(),e.code&&e.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1?(n.sendEventPlus(r._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.failed.popup-not-opened",{flow:r._flow,context_id:r._contextId}),Promise.reject(new h({code:y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.code,type:y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.type,message:y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_POPUP_OPEN_FAILED.message,details:{originalError:e}}))):Promise.reject(e))}).then(function(e){return r._frameService.close(),r._vaultInitiatedCheckoutInProgress=!1,r._removeModalBackdrop(),n.sendEventPlus(r._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.succeeded",{flow:r._flow,context_id:r._contextId}),Promise.resolve(e)})))},P.prototype._addModalBackdrop=function(e){e.optOutOfModalBackdrop||(this._modalBackdrop||(this._modalBackdrop=document.createElement("div"),this._modalBackdrop.setAttribute("data-braintree-paypal-vault-initiated-checkout-modal",!0),this._modalBackdrop.style.position="fixed",this._modalBackdrop.style.top=0,this._modalBackdrop.style.bottom=0,this._modalBackdrop.style.left=0,this._modalBackdrop.style.right=0,this._modalBackdrop.style.zIndex=9999,this._modalBackdrop.style.background="black",this._modalBackdrop.style.opacity="0.7",this._modalBackdrop.addEventListener("click",function(){this.focusVaultInitiatedCheckoutWindow()}.bind(this))),document.body.appendChild(this._modalBackdrop))},P.prototype._removeModalBackdrop=function(){this._modalBackdrop&&this._modalBackdrop.parentNode&&this._modalBackdrop.parentNode.removeChild(this._modalBackdrop)},P.prototype.closeVaultInitiatedCheckoutWindow=function(){return this._vaultInitiatedCheckoutInProgress&&n.sendEventPlus(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.canceled.by-merchant",{flow:this._flow,context_id:this._contextId}),this._waitForVaultInitiatedCheckoutDependencies().then(function(){this._frameService.close()}.bind(this))},P.prototype.focusVaultInitiatedCheckoutWindow=function(){return this._waitForVaultInitiatedCheckoutDependencies().then(function(){this._frameService.focus()}.bind(this))},P.prototype._createFrameServiceCallback=function(e){var t=this;return function(r,n){r?e.reject(r):n&&(t._frameService.redirect(t._loadingFrameUrl),t.tokenizePayment({paymentToken:n.token,payerID:n.PayerID,paymentID:n.paymentId,orderID:n.orderId}).then(function(t){e.resolve(t)}).catch(function(t){e.reject(t)}))}},P.prototype._waitForVaultInitiatedCheckoutDependencies=function(){var e=this;return this._clientPromise.then(function(){return e._frameServicePromise})},P.prototype._constructVaultCheckoutUrl=function(e){var t=this._frameService._serviceId;return this._assetsUrl+"/html/"+e+A(this._isDebug)+".html?channel="+t},P.prototype.tokenizePayment=function(e){var t,r=this,o=!0,c={flow:this._flow,intent:e.intent||this.intentFromCreatePayment},l={ecToken:e.paymentToken,billingToken:e.billingToken,payerId:e.payerID,paymentId:e.paymentID,orderId:e.orderID,shippingOptionsId:e.shippingOptionsId};return e.hasOwnProperty("vault")&&(o=e.vault),c.vault=o,n.sendEventPlus(this._clientPromise,"paypal-checkout.tokenization.started",{flow:r._flow,context_id:r._contextId}),this._clientPromise.then(function(e){return e.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:r._formatTokenizeData(c,l)})}).then(function(e){return t=r._formatTokenizePayload(e),n.sendEventPlus(r._clientPromise,"paypal-checkout.tokenization.success",{flow:r._flow,context_id:r._contextId}),t.creditFinancingOffered&&n.sendEventPlus(r._clientPromise,"paypal-checkout.credit.accepted",{flow:r._flow,context_id:r._contextId}),t}).catch(function(e){return r._setupError?Promise.reject(r._setupError):(n.sendEventPlus(r._clientPromise,"paypal-checkout.tokenization.failed",{flow:r._flow,context_id:r._contextId}),Promise.reject(m(e,{type:y.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.type,code:y.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.code,message:y.PAYPAL_ACCOUNT_TOKENIZATION_FAILED.message})))})},P.prototype.getClientId=function(){return this._clientPromise.then(function(e){return e.getConfiguration().gatewayConfiguration.paypal.clientId})},P.prototype.loadPayPalSDK=function(e){var t,r,n=new d,c=e&&e.dataAttributes||{},l=c["user-id-token"]||c["data-user-id-token"],f=l;return this._configuration&&(c["client-metadata-id"]=c["client-metadata-id"]?c["client-metadata-id"]:this._configuration.analyticsMetadata.sessionId,c["data-sdk-integration-source"]=v.BT_INTEGRATION_SOURCE),f||(f=this._authorizationInformation.fingerprint&&this._authorizationInformation.fingerprint.split("?")[0]),this._paypalScript=document.createElement("script"),delete(e=o({},{components:"buttons"},e)).dataAttributes,e.vault?e.intent=e.intent||"tokenize":(e.intent=e.intent||"authorize",e.currency=e.currency||"USD"),r=v.ENVIRONMENT[e.env]||"https://www.paypal.com/sdk/js?",delete e.env,this._paypalScript.onload=function(){n.resolve()}
2,Object.keys(c).forEach(function(e){this._paypalScript.setAttribute("data-"+e.replace(/^data\-/,""),c[e])}.bind(this)),t=e["client-id"]?Promise.resolve(e["client-id"]):this.getClientId(),Promise.all([t,this._billingAgreementJwtPromise||Promise.resolve()]).then(function(t){var n=t[0];e["client-id"]=n,this._billingAgreementJwt&&!l?this._paypalScript.setAttribute("data-user-id-token",this._billingAgreementJwt):this._autoSetDataUserIdToken&&f&&(this._paypalScript.setAttribute("data-user-id-token",f),this._attachPreloadPixel({id:n,userIdToken:f,amount:c.amount,currency:e.currency,merchantId:e["merchant-id"]})),this._paypalScript.src=O.queryify(r,e),document.head.insertBefore(this._paypalScript,document.head.firstElementChild)}.bind(this)),n.then(function(){return this}.bind(this))},P.prototype._attachPreloadPixel=function(e){var t,r=e.id,n=e.userIdToken,o="production"===this._authorizationInformation.environment?"":"sandbox.",c=N.replace("{ENV}",o),l={"client-id":r,"user-id-token":n};e.amount&&(l.amount=e.amount),e.currency&&(l.currency=e.currency),e.merchantId&&(l["merchant-id"]=e.merchantId),(t=new XMLHttpRequest).open("GET",O.queryify(c,l)),t.send()},P.prototype._formatPaymentResourceData=function(e,t){var r=this,n=this._configuration.gatewayConfiguration,o={returnUrl:t.returnUrl||"https://www.paypal.com/checkoutnow/error",cancelUrl:t.cancelUrl||"https://www.paypal.com/checkoutnow/error",offerPaypalCredit:!0===e.offerCredit,merchantAccountId:this._merchantAccountId,experienceProfile:{brandName:e.displayName||n.paypal.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),addressOverride:!1===e.shippingAddressEditable,landingPageType:e.landingPageType},shippingOptions:e.shippingOptions,payer_email:e.userAuthenticationEmail};return e.hasOwnProperty("returnUrl")&&(o.returnUrl=e.returnUrl),e.hasOwnProperty("cancelUrl")&&(o.cancelUrl=e.cancelUrl),e.hasOwnProperty("appSwitchPreference")&&(o.appSwitchPreference=e.appSwitchPreference),e.hasOwnProperty("shippingCallbackUrl")&&(o.shippingCallbackUrl=e.shippingCallbackUrl),e.hasOwnProperty("paymentReadySessionId")&&(o.paymentReadySessionId=e.paymentReadySessionId),e.hasOwnProperty("amountBreakdown")&&(o.amountBreakdown=e.amountBreakdown),e.planType&&(o.planType=e.planType),e.planMetadata&&(o.planMetadata=this._formatPlanMetadata(e.planMetadata)),r._formatPaymentResourceCheckoutData(o,e),r._formatPaymentResourceVaultData(o,e),this._riskCorrelationId=e.riskCorrelationId,e.riskCorrelationId&&(o.correlationId=this._riskCorrelationId),o},P.prototype._formatPaymentResourceVaultData=function(e,t){"checkout"!==t.flow&&(e.shippingAddress=t.shippingAddressOverride,t.billingAgreementDescription&&(e.description=t.billingAgreementDescription),t.hasOwnProperty("userAction")&&(e.experienceProfile.userAction=t.userAction))},P.prototype._formatPaymentResourceCheckoutData=function(e,t){var r,n=t.intent;if("checkout"===t.flow){for(r in e.amount=t.amount,e.currencyIsoCode=t.currency,e.requestBillingAgreement=t.requestBillingAgreement,t.hasOwnProperty("userAction")&&(e.experienceProfile.userAction=t.userAction),n&&("capture"===n&&(n="sale"),e.intent=n),t.hasOwnProperty("lineItems")&&(e.lineItems=t.lineItems),t.hasOwnProperty("vaultInitiatedCheckoutPaymentMethodToken")&&(e.vaultInitiatedCheckoutPaymentMethodToken=t.vaultInitiatedCheckoutPaymentMethodToken),t.hasOwnProperty("shippingOptions")&&(e.shippingOptions=t.shippingOptions),t.shippingAddressOverride)t.shippingAddressOverride.hasOwnProperty(r)&&(e[r]=t.shippingAddressOverride[r]);t.contactPreference&&(e.contactPreference=t.contactPreference),t.hasOwnProperty("billingAgreementDetails")&&(e.billingAgreementDetails=t.billingAgreementDetails),!0===t.editBillingAgreement&&this._configuration.paymentMethodIdJwt&&(e.editBillingAgreementJwt=this._configuration.paymentMethodIdJwt)}},P.prototype._verifyConsistentCurrency=function(e){return!(e.currency&&e.hasOwnProperty("shippingOptions")&&Array.isArray(e.shippingOptions))||e.shippingOptions.every(function(t){return t.amount&&t.amount.currency&&e.currency.toLowerCase()===t.amount.currency.toLowerCase()})},P.prototype._hasMissingOption=function(e,t){var i,option;if(t=t||[],!e.hasOwnProperty("amount")&&!e.hasOwnProperty("lineItems"))return!0;for(i=0;i<t.length;i++)if(option=t[i],!e.hasOwnProperty(option))return!0;return!1},P.prototype._formatPlanMetadata=function(e){var i,t,r,n,o=["currencyIsoCode","name","oneTimeFeeAmount","productDescription","productPrice","productQuantity","shippingAmount","taxAmount","totalAmount"],c=["billingFrequency","billingFrequencyUnit","numberOfExecutions","sequence","startDate","trial","pricingScheme"],l={billingCycles:[]};if(e.hasOwnProperty("billingCycles"))for(l.billingCycles=[],i=0;i<e.billingCycles.length;i++){for(r=e.billingCycles[i],n={},t=0;t<c.length;t++)n[c[t]]=r[c[t]];l.billingCycles.push(n)}for(i=0;i<o.length;i++)l[o[i]]=e[o[i]];return l},P.prototype._formatUpdatePaymentData=function(e){var t=this,r={merchantAccountId:this._merchantAccountId,paymentId:e.paymentId||e.orderId,currencyIsoCode:e.currency};return e.hasOwnProperty("amount")&&(r.amount=e.amount),e.hasOwnProperty("lineItems")&&(r.lineItems=e.lineItems),e.hasOwnProperty("shippingOptions")&&(r.shippingOptions=e.shippingOptions),e.hasOwnProperty("amountBreakdown")&&(r.amountBreakdown=e.amountBreakdown),e.hasOwnProperty("shippingAddress")&&(n.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment.shippingAddress.provided.by-the-merchant",{flow:t._flow,context_id:t._contextId}),r.line1=e.shippingAddress.line1,e.shippingAddress.hasOwnProperty("line2")&&(r.line2=e.shippingAddress.line2),r.city=e.shippingAddress.city,r.state=e.shippingAddress.state,r.postalCode=e.shippingAddress.postalCode,r.countryCode=e.shippingAddress.countryCode,e.shippingAddress.hasOwnProperty("phone")&&(r.phone=e.shippingAddress.phone),e.shippingAddress.hasOwnProperty("recipientName")&&(r.recipientName=e.shippingAddress.recipientName)),r},P.prototype._formatTokenizeData=function(e,t){var r=this._configuration,n=r.gatewayConfiguration,o="TOKENIZATION_KEY"===r.authorizationType,c="vault"===e.flow||null==e.flow&&!t.paymentId,data={paypalAccount:{correlationId:this._riskCorrelationId||t.billingToken||t.ecToken,options:{validate:c&&!o&&e.vault}}};return c?data.paypalAccount.billingAgreementToken=t.billingToken:(data.paypalAccount.paymentToken=t.paymentId||t.orderId,data.paypalAccount.payerId=t.payerId,data.paypalAccount.unilateral=n.paypal.unvettedMerchant,e.intent&&(data.paypalAccount.intent=e.intent)),this._merchantAccountId&&(data.merchantAccountId=this._merchantAccountId),data},P.prototype._formatTokenizePayload=function(e){var t,r={};return e.paypalAccounts&&(r=e.paypalAccounts[0]),t={nonce:r.nonce,details:{},type:r.type},r.details&&r.details.payerInfo&&(t.details=r.details.payerInfo),r.details&&r.details.creditFinancingOffered&&(t.creditFinancingOffered=r.details.creditFinancingOffered),r.details&&r.details.shippingOptionId&&(t.shippingOptionId=r.details.shippingOptionId),r.details&&r.details.cobrandedCardLabel&&(t.cobrandedCardLabel=r.details.cobrandedCardLabel),t},P.prototype.teardown=function(){var e=this;return T(this,w(P.prototype)),this._paypalScript&&this._paypalScript.parentNode&&this._paypalScript.parentNode.removeChild(this._paypalScript),this._frameServicePromise.catch(function(){}).then(function(){return e._frameService?e._frameService.teardown():Promise.resolve()})},t.exports=f.wrapPrototype(P)},{"../lib/analytics":49,"../lib/assign":51,"../lib/braintree-error":53,"../lib/constants":54,"../lib/convert-methods-to-error":55,"../lib/convert-to-braintree-error":56,"../lib/create-assets-url":57,"../lib/create-authorization-data":58,"../lib/create-deferred-client":59,"../lib/frame-service/external":63,"../lib/methods":74,"../lib/querystring":75,"../lib/use-min":76,"../paypal/shared/constants":81,"./errors":78,"@braintree/extended-promise":20,"@braintree/wrap-promise":29}],81:[function(e,t,r){"use strict";
2t.exports={LANDING_FRAME_NAME:"braintreepaypallanding",FLOW_ENDPOINTS:{checkout:"create_payment_resource",vault:"setup_billing_agreement"},REQUIRED_OPTIONS:["paymentId","currency"],ENVIRONMENT:{stage:"https://www.msmaster.qa.paypal.com/sdk/js?",sandbox:"https://www.sandbox.paypal.com/sdk/js?",teBraintree:"https://www.braintree.stage.paypal.com/sdk/js?"},BT_INTEGRATION_SOURCE:"BRAINTREE_WEB_SDK",CREATE_BILLING_AGREEMENT_JWT_MUTATION:"mutation CreateBillingAgreementJwt($input: CreateBillingAgreementJwtInput!) { createBillingAgreementJwt(input: $input) { jwt } }"}},{}]},{},[79])(79)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],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(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),l=e("./is-opera"),d=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||n(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":5,"./is-edge":6,"./is-opera":13,"./is-samsung":14,"./is-silk":15}],5:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],6:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],7:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],8:[function(e,t,r){"use strict";var n=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&o(e)}},{"./is-ios":11}],9:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!n(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":11,"./is-ios-google-search-app":8}],10:[function(e,t,r){"use strict";var n=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,n(e)&&t}},{"./is-ios-webview":9}],11:[function(e,t,r){"use strict";var n=e("./is-ipados");t.exports=function(e,t,r){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||n(e,r):o}},{"./is-ipados":12}],12:[function(e,t,r){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],13:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],14:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],15:[function(e,t,r){"use strict";
2t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],16:[function(e,t,r){"use strict";var n=48,o=e("./is-android"),c=e("./is-ios-firefox"),l=e("./is-ios-webview"),d=e("./is-chrome"),f=e("./is-samsung"),h=e("./is-duckduckgo");function m(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<n}function y(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}function v(e){var t=/Version\/[\d.]+/i;return e=e||window.navigator.userAgent,!!o(e)&&t.test(e)&&!y(e)&&!h(e)}function _(e){return!d(e)&&!f(e)&&/samsung/i.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,!(l(e)||c(e)||v(e)||y(e)||m(e)||_(e))}},{"./is-android":3,"./is-chrome":4,"./is-duckduckgo":5,"./is-ios-firefox":7,"./is-ios-webview":9,"./is-samsung":14}],17:[function(e,t,r){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":10}],18:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":11}],19:[function(e,t,r){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":16}],20:[function(e,t,r){"use strict";var n="undefined"!=typeof Promise?Promise:null,o=function(){function e(t){var r=this;"function"!=typeof t?(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()):this._promise=new e.Promise(t)}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")?Boolean(t.suppressUnhandledPromiseMessage):Boolean(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}();t.exports=o},{}],21:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":22,"./lib/default-attributes":23,"./lib/set-attributes":24}],22:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],23:[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"}},{}],24:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}
2Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],25:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],26:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],27:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],28:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],29:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":26,"./lib/once":27,"./lib/promise-or-callback":28}],30:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],31:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":39}],32:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":31,"./lib":39}],33:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":39}],34:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":39}],35:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":39}],36:[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={}},{}],37:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":39}],38:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],39:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":33,"./broadcast":35,"./broadcast-to-child-windows":34,"./constants":36,"./dispatch":37,"./has-opener":38,"./is-not-string":40,"./message":41,"./package-payload":42,"./send-message":43,"./subscribe-replier":44,"./subscription-args-invalid":45,"./types":46,"./unpack-payload":47}],40:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":39}],42:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":39}],43:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],44:[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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":31,"@braintree/uuid":25}],45:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":39}],46:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],47:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":39}],48:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":54,"./create-authorization-data":58,"./json-clone":73}],49:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":48,"./assign":51,"./constants":54}],50:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":30}],51:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],52:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":53,"./errors":61}],53:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":60}],54:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],55:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":53,"./errors":61}],56:[function(e,t,r){"use strict";var n=e("./braintree-error");function o(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=o},{"./braintree-error":53}],57:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":54}],58:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":54,"../lib/vendor/polyfill":76}],59:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":50,"./braintree-error":53,"./errors":61}],60:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],61:[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"}
2,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":53}],62:[function(e,t,r){"use strict";var n=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),l=e("framebus"),d=e("../shared/events"),f=e("../shared/errors"),h=e("../shared/constants"),m=e("@braintree/uuid"),y=e("@braintree/iframer"),v=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("./../../assign").assign,w=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,A=["name","dispatchFrameUrl","openFrameUrl"];function T(){}function O(e){if(!e)throw new Error("Valid configuration is required");if(A.forEach(function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}function S(e){O(e),this._serviceId=m().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new l({channel:this._serviceId}),this._setBusEvents()}S.prototype.initialize=function(e){var t=function(){e(),this._bus.off(d.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(d.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},S.prototype._writeDispatchFrame=function(){var e=h.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=y({"aria-hidden":!0,name:e,title:e,src:t,class:h.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},S.prototype._setBusEvents=function(){this._bus.on(d.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}.bind(this)),this._bus.on(w,function(e){e(this.state)}.bind(this))},S.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(E(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(ne
2w v(f.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},S.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},S.prototype.close=function(){this.isFrameClosed()||this._frame.close()},S.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},S.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},S.prototype.createNoopHandler=function(){return{close:T,focus:T}},S.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},S.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},S.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},S.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new v(f.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),h.POPUP_POLL_INTERVAL),this._popupInterval},S.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),r=Boolean(window.popupBridge),l=E({},this._options,e);return r?new o(l):t?new n(l):new c(l)},t.exports=S},{"../../braintree-error":53,"../../constants":54,"../shared/browser-detection":69,"../shared/constants":70,"../shared/errors":71,"../shared/events":72,"./../../assign":51,"./strategies/modal":64,"./strategies/popup":67,"./strategies/popup-bridge":65,"@braintree/iframer":21,"@braintree/uuid":25,framebus:32}],63:[function(e,t,r){"use strict";var n=e("./frame-service");t.exports={create:function(e,t){var r=new n(e);r.initialize(function(){t(r)})}}},{"./frame-service":62}],64:[function(e,t,r){"use strict";var n=e("@braintree/iframer"),o=e("../../../assign").assign,c=e("../../shared/browser-detection"),l={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function d(){}function f(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}f.prototype.initialize=d,f.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},l),title:"Lightbox Frame"};c.isIos()?(c.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,l,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=n(e),this._el.appendChild(this._frame)):this._el=this._frame=n(e),this._closed=!1,this._container.appendChild(this._el)},f.prototype.focus=d,f.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},f.prototype.isClosed=function(){return Boolean(this._closed)},f.prototype.redirect=function(e){this._frame.src=e},f.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},f.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=f},{"../../../assign":51,"../../shared/browser-detection":69,"@braintree/iframer":21}],65:[function(e,t,r){"use strict";var n=e("../../../braintree-error"),o=e("../../shared/errors");function c(){}function l(e){this._closed=null,this._options=e}l.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(r,c){var l=!c&&!r;t._closed=!0,r||l?e(new n(o.FRAME_SERVICE_FRAME_CLOSED)):e(null,c)}},l.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)}
2,l.prototype.focus=c,l.prototype.close=c,l.prototype.isClosed=function(){return Boolean(this._closed)},l.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=l},{"../../../braintree-error":53,"../../shared/errors":71}],66:[function(e,t,r){"use strict";var n=e("../../../shared/constants"),o=e("./position");function c(e,t,r){return void 0!==t?t:o[e](r)}t.exports=function(e){var t=e.height||n.DEFAULT_POPUP_HEIGHT,r=e.width||n.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),l=c("left",e.left,r);return[n.POPUP_BASE_OPTIONS,"height="+t,"width="+r,"top="+o,"left="+l].join(",")}},{"../../../shared/constants":70,"./position":68}],67:[function(e,t,r){"use strict";var n=e("./compose-options");function o(){}function c(e){this._frame=null,this._options=e||{}}c.prototype.initialize=o,c.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,n(this._options))},c.prototype.focus=function(){this._frame.focus()},c.prototype.close=function(){this._frame.closed||this._frame.close()},c.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},c.prototype.redirect=function(e){this._frame.location.href=e},t.exports=c},{"./compose-options":66}],68:[function(e,t,r){"use strict";function n(e){return c(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)}function o(e){return c(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)}function c(e,t,r){return(e-t)/2+r}t.exports={top:n,left:o,center:c}},{}],69:[function(e,t,r){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ios":18,"@braintree/browser-detection/is-ios-wkwebview":17,"@braintree/browser-detection/supports-popups":19}],70:[function(e,t,r){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],71:[function(e,t,r){"use strict";var n=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":53}],72:[function(e,t,r){"use strict";var n=e("../../enumerate");t.exports=n(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":60}],73:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],74:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],75:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],76:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],77:[function(e,t,r){"use strict";var n="3.144.0",o="https://www.{ENV}paypal.com/web-sdk/v6/core",c={stage:"https://www.msmaster.qa.paypal.com/web-sdk/v6/core",teBraintree:"https://www.braintree.stage.paypal.com/web-sdk/v6/core"},l="paypal-checkout-v6",d={INITIALIZED:l+".initialized",TEARDOWN:l+".teardown",SDK_ALREADY_LOADED:l+".sdk-already-loaded",SDK_LOAD_STARTED:l+".load-sdk.started",SDK_LOAD_SUCCEEDED:l+".sdk-load.succeeded",SDK_LOAD_FAILED:l+".sdk-load.failed",CREATE_INSTANCE_STARTED:l+".create-instance.started",CREATE_INSTANCE_SUCCEEDED:l+".create-instance.succeeded",CREATE_INSTANCE_FAILED:l+".create-instance.failed",SESSION_CHECKOUT_CREATED:l+".session.checkout.created",SESSION_VAULT_CREATED:l+".session.vault.created",SESSION_CHECKOUT_WITH_VAULT_CREATED:l+".session.checkout-with-vault.created",PAYMENT_STARTED:l+".payment.started",PAYMENT_APPROVED:l+".payment.approved",PAYMENT_CANCELED:l+".payment.canceled",CHECKOUT_WITH_VAULT_STARTED:l+".checkout-with-vault.started",CHECKOUT_WITH_VAULT_APPROVED:l+".checkout-with-vault.approved",CHECKOUT_WITH_VAULT_CANCELED:l+".checkout-with-vault.canceled",CREATE_ORDER_STARTED:l+".create-order.started",CREATE_ORDER_SUCCEEDED:l+".create-order.succeeded",CREATE_ORDER_FAILED:l+".create-order.failed",CREATE_BA_TOKEN_STARTED:l+".create-billing-agreement-token.started",CREATE_BA_TOKEN_SUCCEEDED:l+".create-billing-agreement-token.succeeded",CREATE_BA_TOKEN_FAILED:l+".create-billing-agreement-token.failed",CREATE_BA_SESSION_STARTED:l+".create-billing-agreement-session.started",CREATE_BA_SESSION_INSTANCE_CREATED:l+".create-billing-agreement-session.instance-created",CREATE_BA_SESSION_SDK_NOT_LOADED:l+".create-billing-agreement-session.sdk-not-loaded",CREATE_BA_SESSION_SESSION_CREATED:l+".create-billing-agreement-session.session-created",CREATE_BA_SESSION_APPROVED:l+".create-billing-agreement-session.approved",CREATE_BA_SESSION_CANCELED:l+".create-billing-agreement-session.canceled",CREATE_BA_SESSION_FAILED:l+".create-billing-agreement-session.failed",TOKENIZE_PAYMENT_PREFIX:l+".tokenize-payment",TOKENIZE_BA_PREFIX:l+".tokenize-billing-agreement",CREDIT_OFFERED:l+".credit.offered",CREDIT_ACCEPTED:l+".credit.accepted",PAY_LATER_OFFERED:l+".pay-later.offered",PAY_LATER_ACCEPTED:l+".pay-later.accepted",FIND_ELIGIBLE_METHODS_STARTED:l+".find-eligible-methods.started",FIND_ELIGIBLE_METHODS_SUCCEEDED:l+".find-eligible-methods.succeeded",FIND_ELIGIBLE_METHODS_FAILED:l+".find-eligible-methods.failed",CREATE_MESSAGES_STARTED:l+".create-messages.started",CREATE_MESSAGES_SUCCEEDED:l+".create-messages.succeeded",CREATE_MESSAGES_FAILED:l+".create-messages.failed"};t.exports={VERSION:n,PAYPAL_V6_SDK_BASE_URL:o,PAYPAL_V6_ENVIRONMENT:c,ANALYTICS_PREFIX:l,ANALYTICS_EVENTS:d}},{}],78:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={PAYPAL_CHECKOUT_V6_NOT_ENABLED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_CHECKOUT_V6_SANDBOX_ACCOUNT_NOT_LINKED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_SANDBOX_ACCOUNT_NOT_LINKED",message:"A linked PayPal Sandbox account is required to use PayPal Checkout V6 in Sandbox. See https://developer.paypal.com/braintree/docs/guides/paypal/testing-go-live#linked-paypal-testing for details on linking your PayPal sandbox with Braintree."},PAYPAL_CHECKOUT_V6_TOKENIZATION_KEY_NOT_SUPPORTED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_TOKENIZATION_KEY_NOT_SUPPORTED",message:"PayPal Checkout V6 requires a client token for authorization. Tokenization keys are not supported."},PAYPAL_CHECKOUT_V6_SDK_SCRIPT_LOAD_FAILED:{type:n.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_SDK_SCRIPT_LOAD_FAILED",message:"PayPal V6 SDK script failed to load."},PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED:{type:n.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED",message:"PayPal V6 SDK instance creation failed."},PAYPAL_CHECKOUT_V6_CLIENT_TOKEN_INVALID:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_CLIENT_TOKEN_INVALID",message:"Client token is invali
2d or expired."},PAYPAL_CHECKOUT_V6_SDK_NOT_INITIALIZED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_SDK_NOT_INITIALIZED",message:"PayPal SDK has not been initialized. Call loadPayPalSDK() before using this method."},PAYPAL_CHECKOUT_V6_ELIGIBILITY_CHECK_FAILED:{type:n.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_ELIGIBILITY_CHECK_FAILED",message:"Failed to check payment method eligibility."},PAYPAL_CHECKOUT_V6_INVALID_ELIGIBILITY_OPTIONS:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_INVALID_ELIGIBILITY_OPTIONS",message:"Eligibility check options are invalid or missing required fields (amount, currency)."},PAYPAL_CHECKOUT_V6_SESSION_CREATION_FAILED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_SESSION_CREATION_FAILED",message:"Failed to create PayPal payment session."},PAYPAL_CHECKOUT_V6_PAYMENT_START_FAILED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_PAYMENT_START_FAILED",message:"Failed to start PayPal payment flow."},PAYPAL_CHECKOUT_V6_PAYMENT_CANCELED:{type:n.types.CUSTOMER,code:"PAYPAL_CHECKOUT_V6_PAYMENT_CANCELED",message:"Customer canceled the PayPal payment."},PAYPAL_CHECKOUT_V6_INVALID_SESSION_OPTIONS:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_INVALID_SESSION_OPTIONS",message:"PayPal session options are invalid or missing required fields."},PAYPAL_CHECKOUT_V6_SHIPPING_CALLBACK_CONFLICT:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_SHIPPING_CALLBACK_CONFLICT",message:"Cannot use both shippingCallbackUrl and client-side shipping callbacks (onShippingAddressChange/onShippingOptionsChange)."},PAYPAL_CHECKOUT_V6_APP_SWITCH_URLS_REQUIRED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_APP_SWITCH_URLS_REQUIRED",message:"returnUrl and cancelUrl are required when using direct-app-switch presentation mode."},PAYPAL_CHECKOUT_V6_INSTANCE_NOT_READY:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_INSTANCE_NOT_READY",message:"PayPal SDK instance is not ready. Ensure loadPayPalSDK() has completed before calling start()."},PAYPAL_CHECKOUT_V6_ORDER_CREATION_FAILED:{type:n.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_ORDER_CREATION_FAILED",message:"Could not create PayPal order."},PAYPAL_CHECKOUT_V6_INVALID_ORDER_OPTIONS:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_INVALID_ORDER_OPTIONS",message:"PayPal order options are invalid or missing required fields."},PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED:{type:n.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED",message:"Could not tokenize PayPal account."},PAYPAL_CHECKOUT_V6_MISSING_TOKENIZATION_DATA:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_MISSING_TOKENIZATION_DATA",message:"Missing required tokenization data (payerID and (orderID or paymentID))."},PAYPAL_CHECKOUT_V6_INVALID_UPDATE_OPTIONS:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_INVALID_UPDATE_OPTIONS",message:"PayPal update options are invalid or missing required fields."},PAYPAL_CHECKOUT_V6_PAYMENT_NOT_FOUND:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_PAYMENT_NOT_FOUND",message:"The specified payment ID cannot be found or is no longer active."},PAYPAL_CHECKOUT_V6_CURRENCY_MISMATCH:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_CURRENCY_MISMATCH",message:"The currency provided for the update does not match the original payment currency."},PAYPAL_CHECKOUT_V6_UPDATE_FAILED:{type:n.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_UPDATE_FAILED",message:"Could not update PayPal payment details."},PAYPAL_CHECKOUT_V6_INVALID_LINE_ITEMS:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_INVALID_LINE_ITEMS",message:"Line items have invalid format or inconsistent currency."},PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CREATION_FAILED:{type:n.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CREATION_FAILED",message:"Could not create PayPal billing agreement."},PAYPAL_CHECKOUT_V6_INVALID_BILLING_AGREEMENT_OPTIONS:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_INVALID_BILLING_AGREEMENT_OPTIONS",message:"Billing agreement options are invalid or missing required fields."},PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CANCELED:{type:n.types.CUSTOMER,code:"PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CANCELED",message:"Customer canceled the billing agreement."},PAYPAL_CHECKOUT_V6_MESSAGES_CREATION_FAILED:{type:n.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_MESSAGES_CREATION_FAILED",message:"Could not create PayPal Messages instance."},PAYPAL_CHECKOUT_V6_VIC_PARAM_REQUIRED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_VIC_PARAM_REQUIRED",message:"A required vault initiated checkout parameter is missing."},PAYPAL_CHECKOUT_V6_VIC_POPUP_OPEN_FAILED:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_VIC_POPUP_OPEN_FAILED",message:"PayPal popup failed to open, make sure to initiate in response to a user action."}
2,PAYPAL_CHECKOUT_V6_VIC_CANCELED:{type:n.types.CUSTOMER,code:"PAYPAL_CHECKOUT_V6_VIC_CANCELED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_CHECKOUT_V6_VIC_IN_PROGRESS:{type:n.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_VIC_IN_PROGRESS",message:"Vault initiated checkout already in progress."}}},{"../lib/braintree-error":53}],79:[function(e,t,r){"use strict";var n=e("../lib/basic-component-verification"),o=e("@braintree/wrap-promise"),c=e("./paypal-checkout-v6"),l="3.144.0";function d(e){var t="PayPal Checkout V6";return n.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return new c(e)._initialize(e)})}function f(){return!0}t.exports={create:o(d),isSupported:f,VERSION:l}},{"../lib/basic-component-verification":52,"./paypal-checkout-v6":80,"@braintree/wrap-promise":29}],80:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/assign").assign,c=e("../lib/braintree-error"),l=e("../lib/convert-to-braintree-error"),d=e("../lib/create-deferred-client"),f=e("../lib/create-assets-url"),h=e("../lib/create-authorization-data"),m=e("./errors"),y=e("../lib/frame-service/external"),v=e("../lib/methods"),_=e("../lib/convert-methods-to-error"),E=e("../lib/use-min"),w=e("@braintree/wrap-promise"),A=e("@braintree/extended-promise"),T=e("./constants"),O=e("../lib/constants").INTEGRATION_TIMEOUT_MS;A.suppressUnhandledPromiseMessage=!0;var S=["amount","currency","vaultInitiatedCheckoutPaymentMethodToken"];function I(e){this._merchantAccountId=e.merchantAccountId}I.prototype._initialize=function(e){var t;return e.client?(t=e.client.getConfiguration(),this._authorizationInformation={fingerprint:t.authorizationFingerprint,environment:t.gatewayConfiguration.environment}):(t=h(e.authorization),this._authorizationInformation={fingerprint:t.attrs.authorizationFingerprint,environment:t.environment}),this._clientPromise=d.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:e.authorization?f.create(e.authorization):void 0,name:"PayPal Checkout V6"}).then(function(e){return this._configuration=e.getConfiguration(),"TOKENIZATION_KEY"===this._configuration.authorizationType?this._setupError=new c(m.PAYPAL_CHECKOUT_V6_TOKENIZATION_KEY_NOT_SUPPORTED):this._merchantAccountId||(this._configuration.gatewayConfiguration.paypalEnabled?!0===this._configuration.gatewayConfiguration.paypal.environmentNoNetwork&&(this._setupError=new c(m.PAYPAL_CHECKOUT_V6_SANDBOX_ACCOUNT_NOT_LINKED)):this._setupError=new c(m.PAYPAL_CHECKOUT_V6_NOT_ENABLED)),this._setupError?Promise.reject(this._setupError):(this._client=e,n.sendEvent(e,T.ANALYTICS_EVENTS.INITIALIZED),this._frameServicePromise=this._setupFrameService(e),e)}.bind(this)),e.client?this._clientPromise.then(function(){return this}.bind(this)):Promise.resolve(this)},I.prototype.getClientId=function(){return this._clientPromise.then(function(e){return e.getConfiguration().gatewayConfiguration.paypal.clientId})},I.prototype._setupFrameService=function(e){var t=new A,r=e.getConfiguration(),o=setTimeout(function(){n.sendEvent(e,"paypal-checkout-v6.frame-service.timed-out"),t.reject(new c(m.PAYPAL_CHECKOUT_V6_SESSION_CREATION_FAILED))},O);return this._assetsUrl=r.gatewayConfiguration.paypal.assetsUrl+"/web/"+T.VERSION,this._isDebug=r.isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+E(this._isDebug)+".html",y.create({name:"braintreepaypallanding",dispatchFrameUrl:this._assetsUrl+"/html/dispatch-frame"+E(this._isDebug)+".html",openFrameUrl:this._loadingFrameUrl},function(e){this._frameService=e,clearTimeout(o),t.resolve()}.bind(this)),t},I.prototype._isPayPalSdkAvailable=function(){return Boolean(window.paypal&&window.paypal.createInstance)},I.prototype._validateAppSwitchUrls=function(e,t){return"direct-app-switch"!==t||e.returnUrl&&e.cancelUrl?null:new c(m.PAYPAL_CHECKOUT_V6_APP_SWITCH_URLS_REQUIRED)},I.prototype._formatPlanMetadata=function(e){var t,r,n,o,c,l=["currencyIsoCode","name","oneTimeFeeAmount","productDescription","productPrice","productQuantity","shippingAmount","taxAmount","totalAmount"],d=["billingFrequency","billingFrequencyUnit","numberOfExecutions","sequence","startDate","trial","pricingScheme"],f={billingCycles:[]};if(e.hasOwnProperty("billingCycles"))for(t=0;t<e.billingCycles.length;t++){for(r=e.billingCycles[t],n={},o=0;o<d.length;o++)n[d[o]]=r[d[o]];f.billingCycles.push(n)}for(c=0;c<l.length;c++)f[l[c]]=e[l[c]];return f},I.prototype.loadPayPalSDK=function(e){var t=this;return this._clientPromise.then(function(r){var o,l=new A,d="production"===r.getConfiguration().gatewayConfiguration.environment?"":"sandbox.";return o=e&&e.env&&T.PAYPAL_V6_ENVIRONMENT[e.env]?T.PAYPAL_V6_ENVIRONMENT[e.env]:T.PAYPAL_V6_SDK_BASE_URL.replace("{ENV}",d),window.paypal&&window.paypal.version?(n.sendEvent(r,T.ANALYTICS_EVENTS.SDK_ALREADY_LOADED),Promise.resolve(t)):(n.sendEvent(r,T.ANALYTICS_EVENTS.SDK_LOAD_STARTED),t._paypalScript=document.createElement("script"),t._paypalScript.src=o,t._paypalScript.async=!0,t._paypalScript.onload=function(){n.sendEvent(r,T.ANALYTICS_EVENTS.SDK_LOAD_SUCCEEDED),l.resolve(t)},t._paypalScript.onerror=function(){n.sendEvent(r,T.ANALYTICS_EVENTS.SDK_LOAD_FAILED),l.reject(new c(m.PAYPAL_CHECKOUT_V6_SDK_SCRIPT_LOAD_FAILED))},document.head.appendChild(t._paypalScript),l)})},I.prototype._createPayPalInstance=function(e){return this._clientPromise.then(function(t){var r=t.getConfiguration(),c=r.gatewayConfiguration.paypal.clientId;return e=o({clientId:c,components:e.components,pageType:"checkout"},e),r.analyticsMetadata&&r.analyticsMetadata.sessionId&&(e.clientMetadataId=r.analyticsMetadata.sessionId),n.sendEvent(t,T.ANALYTICS_EVENTS.CREATE_INSTANCE_STARTED),window.paypal.createInstance(e).then(function(e){return n.sendEvent(t,T.ANALYTICS_EVENTS.CREATE_INSTANCE_SUCCEEDED),e}).catch(function(e){throw n.sendEvent(t,T.ANALYTICS_EVENTS.CREATE_INSTANCE_FAILED),l(e,{type:m.PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED.message})})})},I.prototype._initializePayPalInstance=function(e){var t=this,r={checkout:{instanceKey:"_paypalInstance",promiseKey:"_checkoutInstancePromise",components:["payp
2al-payments"]},vault:{instanceKey:"_paypalVaultInstance",promiseKey:"_vaultInstancePromise",components:["paypal-billing-agreements"]},messages:{instanceKey:"_paypalMessagesSdkInstance",promiseKey:"_messagesInstancePromise",components:["paypal-messages"]}}[e],n=r.instanceKey,o=r.promiseKey,c=r.components;t[n]||t[o]||!t._isPayPalSdkAvailable()||(t[o]=t._clientPromise.then(function(){return t._createPayPalInstance({components:c})}).then(function(e){return t[n]=e,e}).catch(function(e){return t[o]=null,Promise.reject(e)}))},I.prototype._buildBillingAgreementRequest=function(e){var t={},r={billingAgreementDescription:"description"};return["billingAgreementDescription","userAction","offerCredit","locale","landingPageType","planType","displayName","returnUrl","cancelUrl","shippingAddressOverride","enableShippingAddress","shippingAddressEditable"].forEach(function(n){var o=r[n]||n;e.hasOwnProperty(n)&&(t[o]=e[n])}),e.planMetadata&&(t.planMetadata=this._formatPlanMetadata(e.planMetadata)),e.amount&&e.currency&&(t.amount=e.amount,t.currency=e.currency),this._riskCorrelationId=e.riskCorrelationId,e.riskCorrelationId&&(t.riskCorrelationId=e.riskCorrelationId),t},I.prototype._createBillingAgreementToken=function(e){var t=this,r=this._configuration.gatewayConfiguration;this._riskCorrelationId=e.riskCorrelationId;var o={returnUrl:e.returnUrl||"https://www.paypal.com/checkoutnow/error",cancelUrl:e.cancelUrl||"https://www.paypal.com/checkoutnow/error",offerPaypalCredit:!0===e.offerCredit,merchantAccountId:this._merchantAccountId,experienceProfile:{brandName:e.displayName||r.paypal.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),landingPageType:e.landingPageType}},c=!1;return e.hasOwnProperty("shippingAddressEditable")&&(c=!1===e.shippingAddressEditable),o.experienceProfile.addressOverride=c,e.planType&&(o.planType=e.planType),(e.description||e.billingAgreementDescription)&&(o.description=e.description||e.billingAgreementDescription),e.planMetadata&&(o.planMetadata=this._formatPlanMetadata(e.planMetadata)),e.amount&&e.currency&&(o.amount=e.amount,o.currencyIsoCode=e.currency),e.shippingAddressOverride&&(o.shippingAddress=e.shippingAddressOverride),e.hasOwnProperty("userAction")&&(o.experienceProfile.userAction=e.userAction),e.riskCorrelationId&&(o.correlationId=e.riskCorrelationId),this._clientPromise.then(function(e){return n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_BA_TOKEN_STARTED),e.request({endpoint:"paypal_hermes/setup_billing_agreement",method:"post",data:o}).then(function(t){n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_BA_TOKEN_SUCCEEDED);var r=t.agreementSetup.tokenId;if(!r)throw new Error("Could not extract approval token from billing agreement setup");return{approvalTokenId:r,agreementSetup:t.agreementSetup}}).catch(function(r){if(n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_BA_TOKEN_FAILED),t._setupError)throw t._setupError;throw l(r,{type:m.PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CREATION_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CREATION_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CREATION_FAILED.message})})})},I.prototype._createPaymentResource=function(e){var t,r=this,o=this._configuration.gatewayConfiguration,c=e.intent||"capture";"capture"===c&&(c="sale"),this._riskCorrelationId=e.riskCorrelationId;var d={amount:e.amount,currencyIsoCode:e.currency,intent:c,returnUrl:e.returnUrl||"https://www.paypal.com/checkoutnow/error",cancelUrl:e.cancelUrl||"https://www.paypal.com/checkoutnow/error",experienceProfile:{brandName:e.displayName||o.paypal.displayName,localeCode:e.locale,noShipping:(!e.enableShippingAddress).toString(),landingPageType:e.landingPageType}},f=!1;if(e.hasOwnProperty("shippingAddressEditable")&&(f=!1===e.shippingAddressEditable),d.experienceProfile.addressOverride=f,e.hasOwnProperty("userAction")&&(d.experienceProfile.userAction=e.userAction),e.riskCorrelationId&&(d.correlationId=e.riskCorrelationId),this._merchantAccountId&&(d.merchantAccountId=this._merchantAccountId),e.lineItems&&(d.lineItems=e.lineItems),e.shippingOptions&&(d.shippingOptions=e.shippingOptions),e.userAuthenticationEmail&&(d.payer_email=e.userAuthenticationEmail),e.amountBreakdown&&(d.amountBreakdown=e.amountBreakdown),!0===e.offerCredit&&(d.offerPaypalCredit=!0),e.requestBillingAgreement&&(d.requestBillingAgreement=!0),e.billingAgreementDetails&&(d.billingAgreementDetails=e.billingAgreementDetails),e.planType&&(d.planType=e.planType),e.planMetadata&&(d.planMetadata=this._formatPlanMetadata(e.planMetadata)),e.shippingCallbackUrl&&(d.shippingCallbackUrl=e.shippingCallbackUrl),e.shippingAddressOverride)for(t in e.shippingAddressOverride)e.shippingAddressOverride.hasOwnProperty(t)&&(d[t]=e.shippingAddressOverride[t]);return e.contactPreference&&(d.contactPreference=e.contactPreference),e.vaultInitiatedCheckoutPaymentMethodToken&&(d.vaultInitiatedCheckoutPaymentMethodToken=e.vaultInitiatedCheckoutPaymentMethodToken),this._clientPromise.then(function(e){return n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_ORDER_STARTED),e.request({endpoint:"paypal_hermes/create_payment_resource",method:"post",data:d}).then(function(t){n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_ORDER_SUCCEEDED);var o=t.paymentResource.redirectUrl.match(/token=([^&]+)/),c=o?o[1]:null;if(!c)throw new Error("Could not extract order ID from payment resource");return r._contextId=c,{orderId:c,paymentResource:t.paymentResource}}).catch(function(t){if(n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_ORDER_FAILED),r._setupError)throw r._setupError;throw l(t,{type:m.PAYPAL_CHECKOUT_V6_ORDER_CREATION_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_ORDER_CREATION_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_ORDER_CREATION_FAILED.message})})})},I.prototype._createCheckoutSessionOptions=function(e,t,r){var o=r?T.ANALYTICS_EVENTS.CHECKOUT_WITH_VAULT_APPROVED:T.ANALYTICS_EVENTS.PAYMENT_APPROVED,c=r?T.ANALYTICS_EVENTS.CHECKOUT_WITH_VAULT_CANCELED:T.ANALYTICS_EVENTS.PAYMENT_CANCELED,l={commit:"boolean"!=typeof t.commit||t.commit,onApprove:function(data){return n.sendEvent(e,o),t.onApprove(data)},onCancel:function(data){if(n.sendEvent(e,c),t&&"function"==typeof t.onCancel)return t.onCancel(data)}};return t&&"function"==typeof t.onError&&(l.onError=function(e){return t.onError(e)}),t&&"function"==typeof t.onShippingAddressChange&&(l.onShippingAddressChange=function(data){return t.onShippingAddressChange(data)}),t&&"function"==typeof t.onShippingOptionsChange&&(l.onShippingOptionsChange=function(data){return t.onShippingOptionsChange(data)}),l},I.prototype._createOrderPromise=function(e,t){return this._createPaymentResource(e).then(function(e){return{orderId:e.orderId}}).catch(function(e){throw t&&t(e),e})},I.prototype._startCheckoutSession=function(e,t,r,o,c,l){var d;d="paypal-credit"===o?"createPayPalCreditOneTimePaymentSession":"pay-later"===o?"createPayLaterOneTimePaymentSession":"createPayPalOneTimePaymentSession";var f=Boolean(l.requestBillingAgreement),h=f?T.ANALYTICS_EVENTS.CHECKOUT_WITH_VAULT_STARTED:T.ANALYTICS_EVENTS.PAYMENT_STARTED;return n.sendEvent(t,h),e[d](this._createCheckoutSessionOptions(t,c,f)).start({presentationMode:r},this._createOrderPromise(l,c.onError))},I.prototype._createBillingSessionCallbacks=function(e,t){return{onApprove:function(data){return n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_APPROVED),t.onApprove(data)},onCancel:function(data){n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_CANCELED),t.onCancel&&"function"==typeof t.onCancel&&t.onCancel(data)},onError:function(r){n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_FAILED),t.onError&&"function"==typeof t.onError&&t.onError(r)}}},I.prototype._createBillingTokenPromise=function(e){var t={flow:"vault",billingAgreementDescription:e.description,planType:e.planType,planMetadata:e.planMetadata,amount:e.amount,currency:e.currency,shippingAddressOverride:e.shippingAddressOverride,userAction:e.userAction,offerCredit:e.offerCredit,returnUrl:e.returnUrl,cancelUrl:e.cancelUrl};return e.locale&&(t.locale=e.locale),e.landingPageType&&(t.landingPageType=e.landingPageType),e.hasOwnProperty("enableShippingAddress")&&(t.enableShippingAddress=e.enableShippingAddress),e.hasOwnProperty("shippingAddressEditable")&&(t.shippingAddressEditable=e.shippingAddressEditable),e.riskCorrelationId&&(t.riskCorrelationId=e.riskCorrelationId),e.displayName&&(t.displayName=e.displayName),this.createPayment(t).then(function(e){return{billingToken:e}})},I.prototype._startBillingSession=function(e,t,r,o,c,l){var d=this,f="paypal-credit"===o?"createPayPalCreditBillingAgreementWithoutPurchase":"createPayPalBillingAgreementWithoutPurchase";n.sendEvent(t,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_STARTED);var h=e[f](this._createBillingSessionCallbacks(t,l));n.sendEvent(t,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_SESSION_CREATED);var m=d._createBillingTokenPromise(c).catch(function(e){throw l.onError&&l.onError(e),e});return h.start({presentationMode:r},m)},I.prototype._validatePaymentSessionOptions=function(e){if(e.shippingCallbackUrl&&(e.onShippingAddressChange||e.onShippingOptionsChange))throw new c(m.PAYPAL_CHECKOUT_V6_SHIPPING_CALLBACK_CONFLICT)},I.prototype._createPaymentSession=function(e,t){var r=this;
2this._validatePaymentSessionOptions(e),this._flow="checkout",this._sessionType=t;var n={amount:e.amount,currency:e.currency,intent:e.intent||"capture"};return["offerCredit","lineItems","shippingOptions","userAuthenticationEmail","amountBreakdown","returnUrl","cancelUrl","requestBillingAgreement","billingAgreementDetails","displayName","shippingCallbackUrl","contactPreference","shippingAddressOverride","planType","planMetadata","locale","landingPageType","userAction","riskCorrelationId"].forEach(function(t){e[t]&&(n[t]=e[t])}),e.hasOwnProperty("enableShippingAddress")&&(n.enableShippingAddress=e.enableShippingAddress),e.hasOwnProperty("shippingAddressEditable")&&(n.shippingAddressEditable=e.shippingAddressEditable),{start:function(o){var l=(o=o||{}).presentationMode||e.presentationMode||"auto",d=r._paypalInstance,f=r._validateAppSwitchUrls(e,l);return f?Promise.reject(f):d&&r._client?r._startCheckoutSession(d,r._client,l,t,e,n):r._checkoutInstancePromise?r._checkoutInstancePromise.then(function(o){return r._clientPromise.then(function(c){return r._startCheckoutSession(o,c,l,t,e,n)})}).catch(function(t){throw e.onError&&e.onError(t),t}):Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_INSTANCE_NOT_READY))}}},I.prototype.createOneTimePaymentSession=function(e){var t=this;if(!(e&&e.amount&&e.currency&&e.onApprove))throw new c(m.PAYPAL_CHECKOUT_V6_INVALID_SESSION_OPTIONS);n.sendEvent(t._clientPromise,T.ANALYTICS_EVENTS.SESSION_CHECKOUT_CREATED);var r=!0===e.offerCredit?"paypal-credit":"paypal";return!0===e.offerCredit&&n.sendEvent(t._clientPromise,T.ANALYTICS_EVENTS.CREDIT_OFFERED),t._initializePayPalInstance("checkout"),this._createPaymentSession(e,r)},I.prototype.createPayLaterSession=function(e){var t=this;if(!(e&&e.amount&&e.currency&&e.onApprove))throw new c(m.PAYPAL_CHECKOUT_V6_INVALID_SESSION_OPTIONS);return n.sendEvent(t._clientPromise,T.ANALYTICS_EVENTS.SESSION_CHECKOUT_CREATED),n.sendEvent(t._clientPromise,T.ANALYTICS_EVENTS.PAY_LATER_OFFERED),t._initializePayPalInstance("checkout"),this._createPaymentSession(e,"pay-later")},I.prototype.createCheckoutWithVaultSession=function(e){var t=this;if(!(e&&e.amount&&e.currency&&e.onApprove))throw new c(m.PAYPAL_CHECKOUT_V6_INVALID_SESSION_OPTIONS);n.sendEvent(t._clientPromise,T.ANALYTICS_EVENTS.SESSION_CHECKOUT_WITH_VAULT_CREATED);var r=o({},e,{requestBillingAgreement:!0});return t._initializePayPalInstance("checkout"),this._createPaymentSession(r,"paypal")},I.prototype.createPayment=function(e){var t=this;return new Promise(function(r,n){var o;if(e&&e.flow){if(t._flow=e.flow,"vault"===e.flow)return o=t._buildBillingAgreementRequest(e),void t._createBillingAgreementToken(o).then(function(e){r(e.approvalTokenId)}).catch(n);t._createPaymentResource(e).then(function(e){r(e.orderId)}).catch(n)}else n(new c(m.PAYPAL_CHECKOUT_V6_INVALID_SESSION_OPTIONS))})},I.prototype.createBillingAgreementSession=function(e){var t=this,r={};if(!e)throw new c(m.PAYPAL_CHECKOUT_V6_INVALID_BILLING_AGREEMENT_OPTIONS);if(!e.onApprove||"function"!=typeof e.onApprove)throw new c(m.PAYPAL_CHECKOUT_V6_INVALID_BILLING_AGREEMENT_OPTIONS);n.sendEvent(t._clientPromise,T.ANALYTICS_EVENTS.SESSION_VAULT_CREATED);var o=!0===e.offerCredit?"paypal-credit":"paypal";!0===e.offerCredit&&n.sendEvent(t._clientPromise,T.ANALYTICS_EVENTS.CREDIT_OFFERED),t._initializePayPalInstance("vault");var l=t._buildBillingAgreementRequest(e);return r.start=function(r){var d=(r=r||{}).presentationMode||e.presentationMode||"auto",f=t._paypalVaultInstance,h=t._validateAppSwitchUrls(e,d);return h?Promise.reject(h):f&&t._client?t._startBillingSession(f,t._client,d,o,l,e):t._vaultInstancePromise?t._vaultInstancePromise.then(function(r){return t._clientPromise.then(function(f){if(!t._isPayPalSdkAvailable())throw n.sendEvent(f,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_SDK_NOT_LOADED),new c(m.PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED);return n.sendEvent(f,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_INSTANCE_CREATED),t._startBillingSession(r,f,d,o,l,e)})}).catch(function(e){return t._clientPromise.then(function(t){throw n.sendEvent(t,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_FAILED),new c({type:m.PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CREATION_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CREATION_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CREATION_FAILED.message,details:{originalError:e}})})}):t._isPayPalSdkAvailable()?Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_INSTANCE_NOT_READY)):t._clientPromise.then(function(e){throw n.sendEvent(e,T.ANALYTICS_EVENTS.CREATE_BA_SESSION_SDK_NOT_LOADED),new c(m.PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED)})},r},I.prototype.tokenizePayment=function(e){var t=this;return new Promise(function(r,o){var d=!0,f=Boolean(e&&e.billingToken);e&&(f||(e.payerID||e.payerId)&&(e.orderID||e.orderId||e.paymentID||e.paymentId))?(e.hasOwnProperty("vault")&&(d=e.vault),t._clientPromise.then(function(h){var y,data,v;return f?(v=T.ANALYTICS_EVENTS.TOKENIZE_BA_PREFIX,n.sendEvent(h,v+".started"),y="payment_methods/paypal_accounts",(data={paypalAccount:{billingAgreementToken:e.billingToken,merchantAccountId:t._merchantAccountId}}).paypalAccount.correlationId=t._riskCorrelationId||e.billingToken,d||(data.paypalAccount.vault=!1)):(v=T.ANALYTICS_EVENTS.TOKENIZE_PAYMENT_PREFIX,n.sendEventPlus(t._clientPromise,v+".started",{flow:t._flow,context_id:t._contextId}),data=t._formatTokenizeData({payerId:e.payerID||e.payerId,orderId:e.orderID||e.orderId,paymentId:e.paymentID||e.paymentId}),y="payment_methods/paypal_accounts"),h.request({endpoint:y,method:"post",data:data}).then(function(e){var r,o;return r=t._formatTokenizePayload(e),f?n.sendEvent(h,v+".succeeded"):(r.creditFinancingOffered&&(o="pay-later"===t._sessionType?T.ANALYTICS_EVENTS.PAY_LATER_ACCEPTED:T.ANALYTICS_EVENTS.CREDIT_ACCEPTED,n.sendEventPlus(t._clientPromise,o,{flow:t._flow,context_id:t._contextId})),n.sendEventPlus(t._clientPromise,v+".success",{flow:t._flow,context_id:t._contextId})),r}).catch(function(e){if(f)throw n.sendEvent(h,v+".failed"),new c({type:m.PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED.message,details:{originalError:e}});if(n.sendEventPlus(t._clientPromise,v+".failed",{flow:t._flow,context_id:t._contextId}),t._setupError)throw t._setupError;throw l(e,{type:m.PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED.message})}).then(r).catch(o)})):o(new c(m.PAYPAL_CHECKOUT_V6_MISSING_TOKENIZATION_DATA))})},I.prototype._formatTokenizeData=function(e){var data={paypalAccount:{correlationId:this._riskCorrelationId||e.billingToken||e.orderId||e.paymentId,paymentToken:e.paymentId||e.orderId,payerId:e.payerId,unilateral:this._configuration.gatewayConfiguration.paypal.unvettedMerchant}};return this._merchantAccountId&&(data.merchantAccountId=this._merchantAccountId),data},I.prototype._formatTokenizePayload=function(e){var t,r={};return e.paypalAccounts&&(r=e.paypalAccounts[0]),t={nonce:r.nonce,details:{},type:r.type},r.details&&r.details.payerInfo&&(t.details=r.details.payerInfo),r.details&&r.details.creditFinancingOffered&&(t.creditFinancingOffered=r.details.creditFinancingOffered),r.details&&r.details.shippingOptionId&&(t.shippingOptionId=r.details.shippingOptionId),r.details&&r.details.cobrandedCardLabel&&(t.cobrandedCardLabel=r.details.cobrandedCardLabel),t},I.prototype._verifyConsistentCurrency=function(e){var t,r=!0,n=["shippingCurrency","handlingCurrency","taxTotalCurrency","insuranceCurrency","shippingDiscountCurrency","discountCurrency"];return!e.currency||!(e.hasOwnProperty("shippingOptions")&&Array.isArray(e.shippingOptions)&&!(r=e.shippingOptions.every(function(t){return!(!t.amount||!t.amount.currency)&&e.currency.toLowerCase()===t.amount.currency.toLowerCase()})))&&!(e.hasOwnProperty("lineItems")&&Array.isArray(e.lineItems)&&e.lineItems.length>0&&!(r=e.lineItems.every(function(t){return!t.unitTaxAmountCurrency||e.currency.toLowerCase()===t.unitTaxAmountCurrency.toLowerCase()}
2)))&&(e.hasOwnProperty("amountBreakdown")&&e.amountBreakdown&&(t=e.amountBreakdown,r=!n.some(function(r){return t.hasOwnProperty(r)&&t[r]&&e.currency.toLowerCase()!==t[r].toLowerCase()})),r)},I.prototype.updatePayment=function(e){var t,r=this;return e&&e.paymentId&&e.amount&&e.currency?r._contextId!==e.paymentId?Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_PAYMENT_NOT_FOUND)):r._verifyConsistentCurrency(e)?e.lineItems&&Array.isArray(e.lineItems)&&!e.lineItems.every(function(e){return e&&"object"==typeof e&&e.hasOwnProperty("quantity")&&e.hasOwnProperty("unitAmount")&&e.hasOwnProperty("name")&&e.hasOwnProperty("kind")})?Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_INVALID_LINE_ITEMS)):(t={amount:e.amount,currencyIsoCode:e.currency,paymentId:e.paymentId},r._merchantAccountId&&(t.merchantAccountId=r._merchantAccountId),e.lineItems&&(t.lineItems=e.lineItems),e.shippingOptions&&(t.shippingOptions=e.shippingOptions),e.amountBreakdown&&(t.amountBreakdown=e.amountBreakdown),r._clientPromise.then(function(r){return n.sendEvent(r,"paypal-checkout-v6.update-payment.started"),r.request({endpoint:"paypal_hermes/patch_payment_resource",method:"post",data:t}).then(function(t){return n.sendEvent(r,"paypal-checkout-v6.update-payment.succeeded"),{success:!0,orderId:e.paymentId,updates:t.updates||{}}}).catch(function(e){return n.sendEvent(r,"paypal-checkout-v6.update-payment.failed"),Promise.reject(l(e,{type:m.PAYPAL_CHECKOUT_V6_UPDATE_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_UPDATE_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_UPDATE_FAILED.message}))})})):Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_CURRENCY_MISMATCH)):Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_INVALID_UPDATE_OPTIONS))},I.prototype.findEligibleMethods=function(e){var t=this;return this._clientPromise.then(function(r){return e&&e.currency?(t._paypalInstance?Promise.resolve(t._paypalInstance):t._createPayPalInstance({components:["paypal-payments"]}).then(function(e){return t._paypalInstance=e,e})).then(function(t){if(!t||"function"!=typeof t.findEligibleMethods)return Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_SDK_NOT_INITIALIZED));n.sendEvent(r,T.ANALYTICS_EVENTS.FIND_ELIGIBLE_METHODS_STARTED);var o={currencyCode:e.currency};return e.amount&&(o.amount=e.amount),e.countryCode&&(o.countryCode=e.countryCode),e.paymentFlow&&(o.paymentFlow=e.paymentFlow),t.findEligibleMethods(o).then(function(e){n.sendEvent(r,T.ANALYTICS_EVENTS.FIND_ELIGIBLE_METHODS_SUCCEEDED);var t=e&&"function"==typeof e.isEligible,o={paypal:t?e.isEligible("paypal"):Boolean(e&&e.paypal),paylater:t?e.isEligible("paylater"):Boolean(e&&e.paylater),credit:t?e.isEligible("credit"):Boolean(e&&e.credit),getDetails:function(t){return e.getDetails(t)}};return o}
2).catch(function(e){throw n.sendEvent(r,T.ANALYTICS_EVENTS.FIND_ELIGIBLE_METHODS_FAILED),l(e,{type:m.PAYPAL_CHECKOUT_V6_ELIGIBILITY_CHECK_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_ELIGIBILITY_CHECK_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_ELIGIBILITY_CHECK_FAILED.message})})}):Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_INVALID_ELIGIBILITY_OPTIONS))})},I.prototype.createMessages=function(e){var t=this;return this._clientPromise.then(function(r){return n.sendEvent(r,T.ANALYTICS_EVENTS.CREATE_MESSAGES_STARTED),t._paypalMessagesSdkInstance||t._isPayPalSdkAvailable()?(t._initializePayPalInstance("messages"),(t._paypalMessagesSdkInstance?Promise.resolve(t._paypalMessagesSdkInstance):t._messagesInstancePromise).then(function(t){if(!t||"function"!=typeof t.createPayPalMessages)return Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_SDK_NOT_INITIALIZED));var o=t.createPayPalMessages(e);return n.sendEvent(r,T.ANALYTICS_EVENTS.CREATE_MESSAGES_SUCCEEDED),o}).catch(function(e){throw n.sendEvent(r,T.ANALYTICS_EVENTS.CREATE_MESSAGES_FAILED),l(e,{type:m.PAYPAL_CHECKOUT_V6_MESSAGES_CREATION_FAILED.type,code:m.PAYPAL_CHECKOUT_V6_MESSAGES_CREATION_FAILED.code,message:m.PAYPAL_CHECKOUT_V6_MESSAGES_CREATION_FAILED.message})})):(n.sendEvent(r,T.ANALYTICS_EVENTS.CREATE_MESSAGES_FAILED),Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_SDK_NOT_INITIALIZED)))})},I.prototype.startVaultInitiatedCheckout=function(e){var t,r=this;return this._vaultInitiatedCheckoutInProgress?this._clientPromise.then(function(e){return n.sendEvent(e,"paypal-checkout-v6.vic.error.already-in-progress"),Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_VIC_IN_PROGRESS))}):(S.forEach(function(param){t||e&&e[param]||(t=param)}),t?Promise.reject(new c({type:m.PAYPAL_CHECKOUT_V6_VIC_PARAM_REQUIRED.type,code:m.PAYPAL_CHECKOUT_V6_VIC_PARAM_REQUIRED.code,message:"Required param "+t+" is missing."})):(this._vaultInitiatedCheckoutInProgress=!0,this._addModalBackdrop(e),Promise.all([r._clientPromise,r._frameServicePromise]).then(function(t){var c=t[0],l=o({},e,{flow:"checkout",returnUrl:r._constructVaultCheckoutUrl("redirect-frame"),cancelUrl:r._constructVaultCheckoutUrl("cancel-frame")});n.sendEvent(c,"paypal-checkout-v6.vic.started");var d=new A;return r._frameService.open({},r._createFrameServiceCallback(d)),r._createPaymentResource(l).then(function(e){return r._frameService.redirect(e.paymentResource.redirectUrl),d})}).then(function(e){return r._frameService.close(),r._vaultInitiatedCheckoutInProgress=!1,r._removeModalBackdrop(),r._clientPromise.then(function(t){return n.sendEvent(t,"paypal-checkout-v6.vic.succeeded"),e})}).catch(function(e){if(r._vaultInitiatedCheckoutInProgress=!1,r._removeModalBackdrop(),r._frameService&&r._frameService.close(),"FRAME_SERVICE_FRAME_CLOSED"===e.code)return r._clientPromise.then(function(e){return n.sendEvent(e,"paypal-checkout-v6.vic.canceled-by-customer"),Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_VIC_CANCELED))});if(e.code&&e.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1)return r._clientPromise.then(function(t){return n.sendEvent(t,"paypal-checkout-v6.vic.failed.popup-not-opened"),Promise.reject(new c({code:m.PAYPAL_CHECKOUT_V6_VIC_POPUP_OPEN_FAILED.code,type:m.PAYPAL_CHECKOUT_V6_VIC_POPUP_OPEN_FAILED.type,message:m.PAYPAL_CHECKOUT_V6_VIC_POPUP_OPEN_FAILED.message,details:{originalError:e}}))});throw e})))},I.prototype.closeVaultInitiatedCheckoutWindow=function(){var e=this,t=this._vaultInitiatedCheckoutInProgress;return this._waitForVaultInitiatedCheckoutDependencies().then(function(){t&&e._clientPromise.then(function(e){n.sendEvent(e,"paypal-checkout-v6.vic.canceled-by-merchant")}),e._frameService.close(),e._vaultInitiatedCheckoutInProgress=!1,e._removeModalBackdrop()})},I.prototype.focusVaultInitiatedCheckoutWindow=function(){var e=this;return this._waitForVaultInitiatedCheckoutDependencies().then(function(){e._frameService.focus()})},I.prototype._addModalBackdrop=function(e){e.optOutOfModalBackdrop||(this._modalBackdrop||(this._modalBackdrop=document.createElement("div"),this._modalBackdrop.setAttribute("data-braintree-paypal-vault-initiated-checkout-modal",!0),this._modalBackdrop.style.position="fixed",this._modalBackdrop.style.top=0,this._modalBackdrop.style.bottom=0,this._modalBackdrop.style.left=0,this._modalBackdrop.style.right=0,this._modalBackdrop.style.zIndex=9999,this._modalBackdrop.style.background="black",this._modalBackdrop.style.opacity="0.7",this._modalBackdrop.addEventListener("click",function(){this.focusVaultInitiatedCheckoutWindow()}.bind(this))),document.body.appendChild(this._modalBackdrop))},I.prototype._removeModalBackdrop=function(){this._modalBackdrop&&this._modalBackdrop.parentNode&&this._modalBackdrop.parentNode.removeChild(this._modalBackdrop)},I.prototype._constructVaultCheckoutUrl=function(e){var t=this._frameService._serviceId;return this._assetsUrl+"/html/"+e+E(this._isDebug)+".html?channel="+t},I.prototype._waitForVaultInitiatedCheckoutDependencies=function(){var e=this;return this._clientPromise.then(function(){return e._frameServicePromise})},I.prototype._createFrameServiceCallback=function(e){var t=this;return function(r,n){var o,c,l;r?e.reject(r):n&&(o=n.PayerID||n.payerId||n.payerid,c=n.orderId||n.orderid||n.OrderID,l={paymentToken:n.token,payerID:o,paymentID:n.paymentId,orderID:c},t._frameService.redirect(t._loadingFrameUrl),t.tokenizePayment(l).then(function(t){e.resolve(t)}).catch(function(t){e.reject(t)}))}},I.prototype.teardown=function(){return _(this,v(I.prototype)),this._paypalScript&&this._paypalScript.parentNode&&this._paypalScript.parentNode.removeChild(this._paypalScript),this._clientPromise.then(function(e){n.sendEvent(e,T.ANALYTICS_EVENTS.TEARDOWN)})},t.exports=w.wrapPrototype(I)},{"../lib/analytics":49,"../lib/assign":51,"../lib/braintree-error":53,"../lib/constants":54,"../lib/convert-methods-to-error":55,"../lib/convert-to-braintree-error":56,"../lib/create-assets-url":57,"../lib/create-authorization-data":58,"../lib/create-deferred-client":59,"../lib/frame-service/external":63,"../lib/methods":74,"../lib/use-min":75,"./constants":77,"./errors":78,"@braintree/extended-promise":20,"@braintree/wrap-promise":29}]},{},[79])(79)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={GOOGLE_PAYMENT_NOT_ENABLED:{type:n.types.MERCHANT,code:"GOOG
2LE_PAYMENT_NOT_ENABLED",message:"Google Pay is not enabled for this merchant."},GOOGLE_PAYMENT_GATEWAY_ERROR:{code:"GOOGLE_PAYMENT_GATEWAY_ERROR",message:"There was an error when tokenizing the Google Pay payment method.",type:n.types.UNKNOWN},GOOGLE_PAYMENT_UNSUPPORTED_VERSION:{code:"GOOGLE_PAYMENT_UNSUPPORTED_VERSION",type:n.types.MERCHANT}}},{"../lib/braintree-error":16}],9:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/assign").assign,c=e("../lib/convert-methods-to-error"),l=e("../lib/find"),d=e("../lib/generate-google-pay-configuration"),f=e("../lib/braintree-error"),h=e("./errors"),m=e("../lib/methods"),y=e("@braintree/wrap-promise"),v={1:"_createV1PaymentDataRequest",2:"_createV2PaymentDataRequest"};function _(e){if(this._createPromise=e.createPromise,this._client=e.client,this._useDeferredClient=e.useDeferredClient,this._googlePayVersion=e.googlePayVersion||1,this._googleMerchantId=e.googleMerchantId,this._isUnsupportedGooglePayAPIVersion())throw new f({code:h.GOOGLE_PAYMENT_UNSUPPORTED_VERSION.code,message:"The Braintree SDK does not support Google Pay version "+this._googlePayVersion+". Please upgrade the version of your Braintree SDK and contact support if this error persists.",type:h.GOOGLE_PAYMENT_UNSUPPORTED_VERSION.type})}function E(e,t){Object.keys(t).forEach(function(r){"object"==typeof t[r]?e[r]=o({},t[r],e[r]):e[r]=e[r]||t[r]})}_.prototype._waitForClient=function(){return this._client?Promise.resolve():this._createPromise.then(function(e){this._client=e}.bind(this))},_.prototype._isUnsupportedGooglePayAPIVersion=function(){return!(this._googlePayVersion in v)},_.prototype._getDefaultConfig=function(){return this._defaultConfig||(this._defaultConfig=d(this._client.getConfiguration(),this._googlePayVersion,this._googleMerchantId)),this._defaultConfig},_.prototype._createV1PaymentDataRequest=function(e){var t=this._getDefaultConfig(),r=e.cardRequirements&&e.cardRequirements.allowedCardNetworks,n=t.cardRequirements.allowedCardNetworks,c=r||n;return(e=o({},t,e)).cardRequirements.allowedCardNetworks=c,e},_.prototype._createV2PaymentDataRequest=function(e){var t=this._getDefaultConfig();return e.allowedPaymentMethods&&e.allowedPaymentMethods.forEach(function(e){var r=l(t.allowedPaymentMethods,"type",e.type);r&&E(e,r)}),e=o({},t,e)},_.prototype.createPaymentDataRequest=function(e){return this._useDeferredClient?this._waitForClient().then(function(){return this._createPaymentDataRequestSyncronously(e)}.bind(this)):this._createPaymentDataRequestSyncronously(e)},_.prototype._createPaymentDataRequestSyncronously=function(e){var t=o({},e),r=this._googlePayVersion,c=v[r];return t.transactionInfo&&t.transactionInfo.totalPrice&&(t.transactionInfo.totalPrice=t.transactionInfo.totalPrice.toString()),n.sendEvent(this._createPromise,"google-payment.v"+r+".createPaymentDataRequest"),this[c](t)},_.prototype.parseResponse=function(e){var t=this;return Promise.resolve().then(function(){var r,o=2===e.apiVersion?e.paymentMethodData.tokenizationData.token:e.paymentMethodToken.token,c=JSON.parse(o),l=c.error;return l?Promise.reject(l):(n.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded"),c.paypalAccounts?(r=c.paypalAccounts[0],n.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded.paypal"),Promise.resolve({nonce:r.nonce,type:r.type,description:r.description})):(r=c.androidPayCards[0],n.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded.google-payment"),Promise.resolve({nonce:r.nonce,type:r.type,description:r.description,details:{cardType:r.details.cardType,lastFour:r.details.lastFour,lastTwo:r.details.lastTwo,isNetworkTokenized:r.details.isNetworkTokenized,bin:r.details.bin},binData:r.binData})))}).catch(function(e){return n.sendEvent(t._createPromise,"google-payment.parseResponse.failed"),Promise.reject(new f({code:h.GOOGLE_PAYMENT_GATEWAY_ERROR.code,message:h.GOOGLE_PAYMENT_GATEWAY_ERROR.message,type:h.GOOGLE_PAYMENT_GATEWAY_ERROR.type,details:{originalError:e}}))})},_.prototype.teardown=function(){return c(this,m(_.prototype)),Promise.resolve()},t.exports=y.wrapPrototype(_)},{"../lib/analytics":12,"../lib/assign":14,"../lib/braintree-error":16,"../lib/convert-methods-to-error":18,"../lib/find":24,"../lib/generate-google-pay-configuration":25,"../lib/methods":27,"./errors":8,"@braintree/wrap-promise":6}],10:[function(e,t,r){"use strict";var n=e("./google-payment"),o=e("../lib/braintree-error"),c=e("../lib/create-assets-url"),l=e("../lib/create-deferred-client"),d=e("../lib/basic-component-verification"),f=e("@braintree/wrap-promise"),h="3.144.0",m=e("./errors");function y(e){var t="Google Pay";return d.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){var r,d;return r=l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:t}).then(function(t){var r=t.getConfiguration();return e.client=t,r.gatewayConfiguration.androidPay?t:Promise.reject(new o(m.GOOGLE_PAYMENT_NOT_ENABLED))}),e.createPromise=r,d=new n(e),e.useDeferredClient?d:r.then(function(e){return d._client=e,d})})}t.exports={create:f(y),VERSION:h}},{"../lib/basic-component-verification":15,"../lib/braintree-error":16,"../lib/create-assets-url":19,"../lib/create-deferred-client":21,"./errors":8,"./google-payment":9,"@braintree/wrap-promise":6}],11:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":17,"./create-authorization-data":20,"./json-clone":26}],12:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":11,"./assign":14,"./constants":17}],13:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],14:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],15:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":16,"./errors":23}],16:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":22}],17:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],18:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":16,"./errors":23}],19:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":17}],20:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":17,"../lib/vendor/polyfill":28}],21:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":13,"./braintree-error":16,"./errors":23}],22:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],23:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":16}],24:[function(e,t,r){"use strict";t.exports=function(e,t,r){var i;for(i=0;i<e.length;i++)if(e[i].hasOwnProperty(t)&&e[i][t]===r)return e[i];return null}},{}],25:[function(e,t,r){"use strict";var n="3.144.0",o=e("./assign").assign;function c(e,t){var r=e.analyticsMetadata,c={gateway:"braintree","braintree:merchantId":e.gatewayConfiguration.merchantId,"braintree:apiVersion":"v1","braintree:sdkVersion":n,"braintree:metadata":JSON.stringify({source:r.source,integration:r.integration,sessionId:r.sessionId,version:n,platform:r.platform})};return o({},c,t)}t.exports=function(e,t,r){var data,n,o=e.gatewayConfiguration.androidPay,l="production"===e.gatewayConfiguration.environment?"PRODUCTION":"TEST";return 2===t?(data={apiVersion:2,apiVersionMinor:0,environment:l,allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY","CRYPTOGRAM_3DS"],allowedCardNetworks:o.supportedNetworks.map(function(e){return e.toUpperCase()})},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:c(e,{"braintree:authorizationFingerprint":o.googleAuthorizationFingerprint})}}]},r&&(data.merchantInfo={merchantId:r}),o.paypalClientId&&(n={type:"PAYPAL",parameters:{purchase_context:{purchase_units:[{payee:{client_id:o.paypalClientId},recurring_payment:!0}]}},tokenizationSpecification:{type:"PAYMENT_GATEWAY",parameters:c(e,{"braintree:paypalClientId":o.paypalClientId})}},data.allowedPaymentMethods.push(n))):(data={environment:l,allowedPaymentMethods:["CARD","TOKENIZED_CARD"],paymentMethodTokenizationParameters:{tokenizationType:"PAYMENT_GATEWAY",parameters:c(e,{"braintree:authorizationFingerprint":o.googleAuthorizationFingerprint})},cardRequirements:{allowedCardNetworks:o.supportedNetworks.map(function(e){return e.toUpperCase()})}},"TOKENIZATION_KEY"===e.authorizationType&&(data.paymentMethodTokenizationParameters.parameters["braintree:clientKey"]=e.authorization),r&&(data.merchantId=r),t&&(data.apiVersion=t)),data}},{"./assign":14}],26:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],27:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],28:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}]},{},[10])(10)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],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(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),l=e("./is-opera"),d=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||n(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":5,"./is-edge":6,"./is-opera":13,"./is-samsung":14,"./is-silk":15}],5:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],6:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],7:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],8:[function(e,t,r){"use strict";var n=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&o(e)}},{"./is-ios":11}],9:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!n(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":11,"./is-ios-google-search-app":8}],10:[function(e,t,r){"use strict";var n=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,n(e)&&t}},{"./is-ios-webview":9}],11:[function(e,t,r){"use strict";var n=e("./is-ipados");t.exports=function(e,t,r){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||n(e,r):o}},{"./is-ipados":12}],12:[function(e,t,r){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],13:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],14:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],15:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],16:[function(e,t,r){"use strict";var n=48,o=e("./is-android"),c=e("./is-ios-firefox"),l=e("./is-ios-webview"),d=e("./is-chrome"),f=e("./is-samsung"),h=e("./is-duckduckgo");function m(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<n}function y(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}function v(e){var t=/Version\/[\d.]+/i;return e=e||window.navigator.userAgent,!!o(e)&&t.test(e)&&!y(e)&&!h(e)}function _(e){return!d(e)&&!f(e)&&/samsung/i.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,!(l(e)||c(e)||v(e)||y(e)||m(e)||_(e))}},{"./is-android":3,"./is-chrome":4,"./is-duckduckgo":5,"./is-ios-firefox":7,"./is-ios-webview":9,"./is-samsung":14}],17:[function(e,t,r){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":10}],18:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":11}],19:[function(e,t,r){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":16}],20:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}}
2,{"./lib/assign":21,"./lib/default-attributes":22,"./lib/set-attributes":23}],21:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],22:[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"}},{}],23:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],24:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],25:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],26:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],27:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],28:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":25,"./lib/once":26,"./lib/promise-or-callback":27}],29:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],30:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":38}],31:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":30,"./lib":38}],32:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":38}],33:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":38}],34:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":38}],35:[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={}},{}],36:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":38}],37:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],38:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":32,"./broadcast":34,"./broadcast-to-child-windows":33,"./constants":35,"./dispatch":36,"./has-opener":37,"./is-not-string":39,"./message":40,"./package-payload":41,"./send-message":42,"./subscribe-replier":43,"./subscription-args-invalid":44,"./types":45,"./unpack-payload":46}],39:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],40:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":38}],41:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":38}],42:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],43:[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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":30,"@braintree/uuid":24}],44:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":38}],45:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],46:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":38}],47:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":53,"./create-authorization-data":55,"./json-clone":71}],48:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":47,"./assign":50,"./constants":53}],49:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":29}],50:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],51:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":52,"./errors":58}],52:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":57}],53:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],54:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":53}],55:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":53,"../lib/vendor/polyfill":75}],56:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":49,"./braintree-error":52,"./errors":58}],57:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],58:[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"}
2,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":52}],59:[function(e,t,r){"use strict";var n=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),l=e("framebus"),d=e("../shared/events"),f=e("../shared/errors"),h=e("../shared/constants"),m=e("@braintree/uuid"),y=e("@braintree/iframer"),v=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("./../../assign").assign,w=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,A=["name","dispatchFrameUrl","openFrameUrl"];function T(){}function O(e){if(!e)throw new Error("Valid configuration is required");if(A.forEach(function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}function S(e){O(e),this._serviceId=m().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new l({channel:this._serviceId}),this._setBusEvents()}S.prototype.initialize=function(e){var t=function(){e(),this._bus.off(d.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(d.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},S.prototype._writeDispatchFrame=function(){var e=h.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=y({"aria-hidden":!0,name:e,title:e,src:t,class:h.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},S.prototype._setBusEvents=function(){this._bus.on(d.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}.bind(this)),this._bus.on(w,function(e){e(this.state)}.bind(this))},S.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(E(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(ne
2w v(f.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},S.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},S.prototype.close=function(){this.isFrameClosed()||this._frame.close()},S.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},S.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},S.prototype.createNoopHandler=function(){return{close:T,focus:T}},S.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},S.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},S.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},S.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new v(f.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),h.POPUP_POLL_INTERVAL),this._popupInterval},S.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),r=Boolean(window.popupBridge),l=E({},this._options,e);return r?new o(l):t?new n(l):new c(l)},t.exports=S},{"../../braintree-error":52,"../../constants":53,"../shared/browser-detection":66,"../shared/constants":67,"../shared/errors":68,"../shared/events":69,"./../../assign":50,"./strategies/modal":61,"./strategies/popup":64,"./strategies/popup-bridge":62,"@braintree/iframer":20,"@braintree/uuid":24,framebus:31}],60:[function(e,t,r){"use strict";var n=e("./frame-service");t.exports={create:function(e,t){var r=new n(e);r.initialize(function(){t(r)})}}},{"./frame-service":59}],61:[function(e,t,r){"use strict";var n=e("@braintree/iframer"),o=e("../../../assign").assign,c=e("../../shared/browser-detection"),l={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function d(){}function f(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}f.prototype.initialize=d,f.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},l),title:"Lightbox Frame"};c.isIos()?(c.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,l,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=n(e),this._el.appendChild(this._frame)):this._el=this._frame=n(e),this._closed=!1,this._container.appendChild(this._el)},f.prototype.focus=d,f.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},f.prototype.isClosed=function(){return Boolean(this._closed)},f.prototype.redirect=function(e){this._frame.src=e},f.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},f.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=f},{"../../../assign":50,"../../shared/browser-detection":66,"@braintree/iframer":20}],62:[function(e,t,r){"use strict";var n=e("../../../braintree-error"),o=e("../../shared/errors");function c(){}function l(e){this._closed=null,this._options=e}l.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(r,c){var l=!c&&!r;t._closed=!0,r||l?e(new n(o.FRAME_SERVICE_FRAME_CLOSED)):e(null,c)}},l.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)}
2,l.prototype.focus=c,l.prototype.close=c,l.prototype.isClosed=function(){return Boolean(this._closed)},l.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=l},{"../../../braintree-error":52,"../../shared/errors":68}],63:[function(e,t,r){"use strict";var n=e("../../../shared/constants"),o=e("./position");function c(e,t,r){return void 0!==t?t:o[e](r)}t.exports=function(e){var t=e.height||n.DEFAULT_POPUP_HEIGHT,r=e.width||n.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),l=c("left",e.left,r);return[n.POPUP_BASE_OPTIONS,"height="+t,"width="+r,"top="+o,"left="+l].join(",")}},{"../../../shared/constants":67,"./position":65}],64:[function(e,t,r){"use strict";var n=e("./compose-options");function o(){}function c(e){this._frame=null,this._options=e||{}}c.prototype.initialize=o,c.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,n(this._options))},c.prototype.focus=function(){this._frame.focus()},c.prototype.close=function(){this._frame.closed||this._frame.close()},c.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},c.prototype.redirect=function(e){this._frame.location.href=e},t.exports=c},{"./compose-options":63}],65:[function(e,t,r){"use strict";function n(e){return c(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)}function o(e){return c(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)}function c(e,t,r){return(e-t)/2+r}t.exports={top:n,left:o,center:c}},{}],66:[function(e,t,r){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ios":18,"@braintree/browser-detection/is-ios-wkwebview":17,"@braintree/browser-detection/supports-popups":19}],67:[function(e,t,r){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],68:[function(e,t,r){"use strict";var n=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":52}],69:[function(e,t,r){"use strict";var n=e("../../enumerate");t.exports=n(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":57}],70:[function(e,t,r){"use strict";function n(e,t){var i,option;for(t=t||[],i=0;i<t.length;i++)if(option=t[i],!e.hasOwnProperty(option))return!0;return!1}t.exports=n},{}],71:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],72:[function(e,t,r){"use strict";function n(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)||!1}function c(e){return e=e||window.location.href,/\?/.test(e)}function l(e){return c(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}}function d(e,t){var r,n,p,c=[];for(p in e)e.hasOwnProperty(p)&&(n=e[p],r=t?o(e)?t+"[]":t+"["+p+"]":p,"object"==typeof n?c.push(d(n,r)):c.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return c.join("&")}function f(e,t){return e=e||"",null!=t&&"object"==typeof t&&n(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=d(t)),e}t.exports={parse:l,stringify:d,queryify:f,hasQueryParams:c}},{}],73:[function(e,t,r){"use strict";t.exports=function(e){return-1===e.indexOf("_")?e:e.toLowerCase().replace(/(\_\w)/g,function(e){return e[1].toUpperCase()})}},{}],74:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],75:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],76:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error"),o=e("../shared/errors"),c=e("../../lib/frame-service/external"),l=e("../../lib/analytics"),d=e("../../lib/use-min"),f=e("../shared/constants").BILLING_ADDRESS_OPTIONS,h=e("../../lib/snake-case-to-camel-case"),m=e("../../lib/assign").assign,y=400,v=570;function _(e,t){var data={sepa_debit:{account_holder_name:t.accountHolderName,billing_address:{country_code:t.countryCode},iban:t.iban,merchant_or_partner_customer_id:t.customerId,mandate_type:t.mandateType},locale:t.locale,cancel_url:t.cancelUrl,return_url:t.returnUrl,merchant_account_id:t.merchantAccountId};return t.billingAddress&&f.forEach(function(option){var e=h(option);e in t.billingAddress&&(data.sepa_debit.billing_address[option]=t.billingAddress[e])}),e.request({api:"clientApi",method:"post",endpoint:"sepa_debit",data:data}).then(function(e){var t=e.message.body.sepaDebitAccount;if(!t)throw new n(o.SEPA_CREATE_MANDATE_FAILED);return{approvalUrl:t.approvalUrl,last4:t.last4,bankReferenceToken:t.bankReferenceToken}}).catch(function(){throw new n(o.SEPA_CREATE_MANDATE_FAILED)})}function E(e,t){var r="sepadirectdebit",f=t.assetsUrl+"/html",h=t.debug||!1;return new Promise(function(m,_){var E=O();c.create({name:r,dispatchFrameUrl:f+"/dispatch-frame"+d(h)+".html",openFrameUrl:f+"/sepa-landing-frame"+d(h)+".html",top:E.top,left:E.left,height:v,width:y},function(r){l.sendEvent(e,"sepa.popup.initialized"),r.open({},function(e,t){return A(t)?(r.close(),m()):T(t,e)?(r.close(),_(new n(o.SEPA_CUSTOMER_CANCELED))):(r.close(),_(new n(o.SEPA_TOKENIZATION_FAILED)))}),r.redirect(t.approvalUrl)})})}function w(e){window.location.href=e}function A(e){return e&&e.success}function T(e,t){return e&&e.cancel||t&&"FRAME_SERVICE_FRAME_CLOSED"===t.code}function O(){return{top:Math.round((window.outerHeight-v)/2)+window.screenTop,left:Math.round((window.outerWidth-y)/2)+window.screenLeft}}function S(e,t){var data={sepa_debit_account:{last_4:t.last4,merchant_or_partner_customer_id:t.customerId,bank_reference_token:t.bankReferenceToken,mandate_type:t.mandateType},merchant_account_id:t.merchantAccountId};return e.request({api:"clientApi",method:"post",endpoint:"payment_methods/sepa_debit_accounts",data:data}).then(function(e){if(!e.nonce)throw new n(o.SEPA_TRANSACTION_FAILED);return{nonce:e.nonce,ibanLastFour:t.last4,customerId:t.customerId,mandateType:t.mandateType}}).catch(function(){throw new n(o.SEPA_TRANSACTION_FAILED)})}function I(e,t){return e.request({api:"clientApi",method:"get",endpoint:"sepa_debit/"+t.cart_id}).then(function(r){var n=r.sepaDebitMandateDetail;return l.sendEvent(e,"sepa.redirect.mandate.approved"),m(t,{last4:n.last4,customerId:n.merchantOrPartnerCustomerId,mandateType:n.mandateType,bankReferenceToken:n.bankReferenceToken}),S(e,t)}).then(function(t){return l.sendEvent(e,"sepa.redirect.tokenization.success"),t}).catch(function(){throw l.sendEvent(e,"sepa.redirect.handle-approval.failed"),new n(o.SEPA_TRANSACTION_FAILED)})}t.exports={createMandate:_,openPopup:E,handleApproval:S,POPUP_WIDTH:y,POPUP_HEIGHT:v,redirectPage:w,handleApprovalForFullPageRedirect:I}},{"../../lib/analytics":48,"../../lib/assign":50,"../../lib/braintree-error":52,"../../lib/frame-service/external":60,"../../lib/snake-case-to-camel-case":73,"../../lib/use-min":74,"../shared/constants":79,"../shared/errors":80}],77:[function(e,t,r){"use strict";var n=e("@braintree/wrap-promise"),o=e("../../lib/braintree-error"),c=e("../shared/errors"),l=e("../shared/constants"),d=e("./mandate"),f=e("../../lib/has-missing-option"),h=e("../../lib/analytics"),m="3.144.0",y=e("../../lib/assign").assign;function v(e){var t=e.client.getConfiguration();this._client=e.client,this._assetsUrl=t.gatewayConfiguration.assetsUrl+"/web/"+m,this._isDebug=t.isDebug,e.redirectUrl?(this._returnUrl=e.redirectUrl,this._cancelUrl=e.redirectUrl+"?cancel=1",this._isRedirectFlow=!0):(this._returnUrl=this._assetsUrl+"/html/redirect-frame.html?success=1",this._cancelUrl=this._assetsUrl+"/html/redirect-frame.html?cancel=1"),e.tokenizePayload&&(this.tokenizePayload=e.tokenizePayload),h.sendEvent(this._client,"sepa.component.initialized")}v.prototype.tokenize=function(e){var t,r=this,n=y({cancelUrl:r._cancelUrl,returnUrl:r._returnUrl},e);return!e||f(e,l.REQUIRED_OPTIONS)?(h.sendEvent(r._client,"sepa.input-validation.missing-options"),Promise.reject(new o(c.SEPA_TOKENIZE_MISSING_REQUIRED_OPTION))):l.MANDATE_TYPE_ENUM.includes(e.mandateType)?(t=d.createMandate(r._client,n).then(function(t){return h.sendEvent(r._client,"sepa.create-mandate.success"),r._isRedirectFlow?d.redirectPage(t.approvalUrl):(e.last4=t.last4,e.bankReferenceToken=t.bankReferenceToken,d.openPopup(r._client,{approvalUrl:t.approvalUrl,assetsUrl:r._assetsUrl}))}),r._isRedirectFlow?Promise.resolve():t.then(function(){return h.sendEvent(r._client,"sepa.mandate.approved"),d.handleApproval(r._client,{bankReferenceToken:e.bankReferenceToken,last4:e.last4,customerId:e.customerId,mandateType:e.mandateType,merchantAccountId:e.merchantAccountId})}).then(function(e){return h.sendEvent(r._client,"sepa.tokenization.success"),Promise.resolve(e)}).catch(function(e){return h.sendEvent(r._client,"sepa."+e.details+".failed"),Promise.reject(e)})):(h.sendEvent(r._client,"sepa.input-validation.invalid-mandate"),Promise.reject(new o(c.SEPA_INVALID_MANDATE_TYPE)))},t.exports=n.wrapPrototype(v)},{"../../lib/analytics":48,"../../lib/assign":50,"../../lib/braintree-error":52,"../../lib/has-missing-option":70,"../shared/constants":79,"../shared/errors":80,"./mandate":76,"@braintree/wrap-promise":28}],78:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("./external/sepa"),c=e("../lib/create-assets-url"),l=e("../lib/create-deferred-client"),d=e("../lib/basic-component-verification"),f=e("@braintree/wrap-promise"),h="3.144.0",m=e("../lib/querystring").parse,y=e("../lib/assign").assign,v=e("./external/mandate");function _(e){var t="SEPA",r=m(window.location.href);return d.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:t})}).then(function(t){return e.client=t,n.sendEvent(t,"sepa.client.initialized"),new o(e)}).then(function(t){return r.success&&"true"===r.success&&r.cart_id?(e=y(e,r),v.handleApprovalForFullPageRedirect(e.client,e).then(function(e){return t.tokenizePayload=e,t}).catch(function(e){console.error("Problem while finishing tokenizing: ",e)})):(r.cancel&&n.sendEvent(e.client,"sepa.redirect.customer-canceled.failed"),t)})}t.exports={create:f(_),VERSION:h}},{"../lib/analytics":48,"../lib/assign":50,"../lib/basic-component-verification":51,"../lib/create-assets-url":54,"../lib/create-deferred-client":56,"../lib/querystring":72,"./external/mandate":76,"./external/sepa":77,"@braintree/wrap-promise":28}],79:[function(e,t,r){"use strict";
2t.exports={REQUIRED_OPTIONS:["iban","merchantAccountId","mandateType","customerId","accountHolderName","countryCode"],BILLING_ADDRESS_OPTIONS:["address_line_1","address_line_2","admin_area_1","admin_area_2","postal_code"],MANDATE_TYPE_ENUM:["ONE_OFF","RECURRENT"]}},{}],80:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={SEPA_CREATE_MANDATE_FAILED:{type:n.types.MERCHANT,code:"SEPA_CREATE_MANDATE_FAILED",message:"SEPA create mandate failed.",details:"create-mandate"},SEPA_CUSTOMER_CANCELED:{type:n.types.CUSTOMER,code:"SEPA_CUSTOMER_CANCELED",message:"User canceled SEPA authorization",details:"customer-canceled"},SEPA_INVALID_MANDATE_TYPE:{type:n.types.MERCHANT,code:"SEPA_INVALID_MANDATE_TYPE",message:"SEPA mandate type is invalid"},SEPA_TOKENIZATION_FAILED:{type:n.types.UNKNOWN,code:"SEPA_TOKENIZATION_FAILED",message:"SEPA encountered a problem",details:"open-popup"},SEPA_TOKENIZE_MISSING_REQUIRED_OPTION:{type:n.types.MERCHANT,code:"SEPA_TOKENIZE_MISSING_REQUIRED_OPTION",message:"Missing required option for tokenize."},SEPA_TRANSACTION_FAILED:{type:n.types.UNKNOWN,code:"SEPA_TRANSACTION_FAILED",message:"SEPA transaction failed",details:"handle-approval"}}},{"../../lib/braintree-error":52}]},{},[78])(78)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";var n=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}();t.exports=n},{}],4:[function(e,t,r){"use strict";var n="undefined"!=typeof Promise?Promise:null,o=function(){function e(t){var r=this;"function"!=typeof t?(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()):this._promise=new e.Promise(t)}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")?Boolean(t.suppressUnhandledPromiseMessage):Boolean(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}();t.exports=o},{}],5:[function(e,t,r){"use strict";
2var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":6,"./lib/default-attributes":7,"./lib/set-attributes":8}],6:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],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";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],9:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],10:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],11:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],12:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],13:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":10,"./lib/once":11,"./lib/promise-or-callback":12}],14:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],15:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":23}],16:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.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("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":23}],18:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":23}],19:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":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("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":23}],22:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],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 desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(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";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],25:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":23}],26:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":23}],27:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":15,"@braintree/uuid":9}],29:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":23}],30:[function(e,t,r){"use strict";Object.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("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":23}],32:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":38,"./create-authorization-data":42,"./json-clone":49}],33:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":32,"./assign":35,"./constants":38}],34:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":14}],35:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],36:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":37,"./errors":46}],37:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":45}],38:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],39:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":37,"./errors":46}],40:[function(e,t,r){"use strict";var n=e("./braintree-error");function o(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=o},{"./braintree-error":37}],41:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":38}],42:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":38,"../lib/vendor/polyfill":52}],43:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":34,"./braintree-error":37,"./errors":46}],44:[function(e,t,r){"use strict";
2t.exports=function(e){return function(){var t=arguments;setTimeout(function(){e.apply(null,t)},1)}}},{}],45:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],46:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":37}],47:[function(e,t,r){"use strict";function n(e){return"https:"===(e=e||window.location.protocol)}t.exports={isHTTPS:n}},{}],48:[function(e,t,r){"use strict";var n,o={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};function c(e){return e.split(".").slice(-2).join(".")}function l(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((n=n||document.createElement("a")).href=e,t=c(n.hostname),o.hasOwnProperty(t))}t.exports=l},{}],49:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],50:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],51:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],52:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],53:[function(e,t,r){"use strict";var n=e("../../../lib/assign").assign,o=e("../../../lib/analytics"),c=e("../../../lib/braintree-error"),l=e("../../../lib/is-verified-domain"),d=e("@braintree/extended-promise"),f=e("@braintree/event-emitter"),h=e("../../shared/errors"),m=e("@braintree/iframer"),y=e("framebus"),v=e("../../shared/constants"),_=e("@braintree/uuid"),E=e("../../shared/events"),w=e("../../../lib/use-min"),A=e("../../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT,T="3.144.0",O=400,S=400;function I(e){f.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=Boolean(e.isDebug),this._assetsUrl=e.assetsUrl),this._assetsUrl=this._assetsUrl+"/web/"+T}d.suppressUnhandledPromiseMessage=!0,f.createChild(I),I.prototype._waitForClient=function(){return this._client?Promise.resolve():this._createPromise.then(function(e){this._client=e}.bind(this))},I.prototype.setUpEventListeners=function(){throw new c(h.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},I.prototype.verifyCard=function(e,t){var r,n,c=this;return t=t||{},(n=this._checkForVerifyCardError(e,t))?Promise.reject(n):(this._verifyCardInProgress=!0,r=this._formatVerifyCardOptions(e),this._formatLookupData(r).then(function(data){return o.sendEvent(c._createPromise,"three-d-secure.verification-flow.started"),c._performLookup(r.nonce,data)}).then(function(e){return o.sendEvent(c._createPromise,"three-d-secure.verification-flow.3ds-version."+e.lookup.threeDSecureVersion),c._onLookupComplete(e,r)}).then(function(e){return c.initializeChallengeWithLookupResponse(e,r)}).then(function(e){return c._resetVerificationState(),o.sendEvent(c._createPromise,"three-d-secure.verification-flow.completed"),e}).catch(function(e){return c._resetVerificationState(),o.sendEvent(c._createPromise,"three-d-secure.verification-flow.failed"),Promise.reject(e)}))},I.prototype._checkForFrameworkSpecificVerifyCardErrors=function(){throw new c(h.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENT
2ED)},I.prototype._presentChallenge=function(){throw new c(h.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},I.prototype.prepareLookup=function(){throw new c(h.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},I.prototype._resetVerificationState=function(){this._verifyCardInProgress=!1,this._verifyCardPromisePlus=null,"function"==typeof this._reloadThreeDSecure&&this._reloadThreeDSecure()},I.prototype._performLookup=function(e,data){var t=this,r="payment_methods/"+e+"/three_d_secure/lookup";return this._waitForClient().then(function(){return t._client.request({endpoint:r,method:"post",data:data}).catch(function(e){var r,n=e&&e.details&&e.details.httpStatus,l="three-d-secure.verification-flow.lookup-failed";return 404===n?(r=h.THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR,l+=".404"):422===n?(r=h.THREEDS_LOOKUP_VALIDATION_ERROR,l+=".422"):r=h.THREEDS_LOOKUP_ERROR,o.sendEvent(t._createPromise,l),Promise.reject(new c({type:r.type,code:r.code,message:r.message,details:{originalError:e}}))})})},I.prototype._existsAndIsNumeric=function(e){return!(null==e||Array.isArray(e)||"boolean"==typeof e||"string"==typeof e&&""===e.trim()||isNaN(Number(e)))},I.prototype._checkForVerifyCardError=function(e,t){var r;return!0===this._verifyCardInProgress?new c(h.THREEDS_AUTHENTICATION_IN_PROGRESS):(e.nonce?this._existsAndIsNumeric(e.amount)||(r="an amount"):r="a nonce",r||(r=this._checkForFrameworkSpecificVerifyCardErrors(e,t)),r?new c({type:h.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:h.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard options must include "+r+"."}):null)},I.prototype.initializeChallengeWithLookupResponse=function(e,t){var r=this;return t=t||{},this._lookupPaymentMethod=e.paymentMethod,r._verifyCardPromisePlus=r._verifyCardPromisePlus||new d,r._handleLookupResponse(e,t),r._verifyCardPromisePlus.then(function(e){return o.sendEvent(r._createPromise,"three-d-secure.verification-flow.liability-shifted."+String(e.liabilityShifted)),o.sendEvent(r._createPromise,"three-d-secure.verification-flow.liability-shift-possible."+String(e.liabilityShiftPossible)),e})},I.prototype._handleLookupResponse=function(e,t){var details,r=Boolean(e.lookup&&e.lookup.acsUrl);o.sendEvent(this._createPromise,"three-d-secure.verification-flow.challenge-presented."+String(r)),r?this._presentChallenge(e,t):((details=this._formatAuthResponse(e.paymentMethod,e.threeDSecureInfo)).verificationDetails=e.threeDSecureInfo,this._verifyCardPromisePlus.resolve(details))},I.prototype._onLookupComplete=function(e){return this._lookupPaymentMethod=e.paymentMethod,this._verifyCardPromisePlus=new d,Promise.resolve(e)},I.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}},I.prototype._formatVerifyCardOptions=function(e){return n({},e)},I.prototype._formatLookupData=function(e){var data={amount:e.amount};return!0===e.collectDeviceData&&(data.browserColorDepth=window.screen.colorDepth,data.browserJavaEnabled=window.navigator.javaEnabled(),data.browserJavascriptEnabled=!0,data.browserLanguage=window.navigator.language,data.browserScreenHeight=window.screen.height,data.browserScreenWidth=window.screen.width,data.browserTimeZone=(new Date).getTimezoneOffset(),data.deviceChannel="Browser"),Promise.resolve(data)},I.prototype._handleV1AuthResponse=function(data){var e=JSON.parse(data.auth_response);e.success?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(e.paymentMethod,e.threeDSecureInfo)):e.threeDSecureInfo&&e.threeDSecureInfo.liabilityShiftPossible?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(this._lookupPaymentMethod,e.threeDSecureInfo)):this._verifyCardPromisePlus.reject(new c({type:c.types.UNKNOWN,code:"UNKNOWN_AUTH_RESPONSE",message:e.error.message}))},I.prototype.cancelVerifyCard=function(){var e,t;return this._verifyCardInProgress=!1,this._lookupPaymentMethod?(t=this._lookupPaymentMethod.threeDSecureInfo,e=n({},this._lookupPaymentMethod,{liabilityShiftPossible:t&&t.liabilityShiftPossible,liabilityShifted:t&&t.liabilityShifted,verificationDetail
2s:t&&t.verificationDetails}),Promise.resolve(e)):Promise.reject(new c(h.THREEDS_NO_VERIFICATION_PAYLOAD))},I.prototype._setupV1Bus=function(e){var t=this._client.getConfiguration(),r=window.location.href.split("#")[0],n=e.lookupResponse,o=_(),c=new y({channel:o,verifyDomain:l}),d=this._assetsUrl+"/html/three-d-secure-authentication-complete-frame.html?channel="+encodeURIComponent(o)+"&";return c.on(A,function(o){o({clientConfiguration:t,nonce:e.nonce,acsUrl:n.acsUrl,pareq:n.pareq,termUrl:n.termUrl+"&three_d_secure_version="+T+"&authentication_complete_base_url="+encodeURIComponent(d),md:n.md,parentUrl:r})}),c.on(E.AUTHENTICATION_COMPLETE,e.handleAuthResponse),c},I.prototype._setupV1Iframe=function(e){var t=this._assetsUrl+"/html/three-d-secure-bank-frame"+w(this._isDebug)+".html?showLoader="+e.showLoader;return m({src:t,height:O,width:S,name:v.LANDING_FRAME_NAME+"_"+this._v1Bus.channel,title:"3D Secure Authorization Frame"})},I.prototype._setupV1Elements=function(e){this._v1Bus=this._setupV1Bus(e),this._v1Iframe=this._setupV1Iframe(e)},I.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)},I.prototype.teardown=function(){return o.sendEvent(this._createPromise,"three-d-secure.teardown-completed"),this._teardownV1Elements(),Promise.resolve()},t.exports=I},{"../../../lib/analytics":33,"../../../lib/assign":35,"../../../lib/braintree-error":37,"../../../lib/constants":38,"../../../lib/is-verified-domain":48,"../../../lib/use-min":51,"../../shared/constants":61,"../../shared/errors":62,"../../shared/events":63,"@braintree/event-emitter":3,"@braintree/extended-promise":4,"@braintree/iframer":5,"@braintree/uuid":9,framebus:16}],54:[function(e,t,r){"use strict";var n=e("./songbird");function o(e){n.call(this,e)}o.prototype=Object.create(n.prototype,{constructor:n}),o.prototype._createV1IframeModalElement=function(iframe){var e=document.createElement("div");return e.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">×</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>',e.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(iframe),e},o.prototype._createCardinalConfigurationOptions=function(e){var t=n.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="bootstrap3",t},t.exports=o},{"./songbird":58}],55:[function(e,t,r){"use strict";var n=e("./songbird");function o(e){n.call(this,e)}o.prototype=Object.create(n.prototype,{constructor:n}),o.prototype._createV1IframeModalElement=function(iframe){var e=document.createElement("div"),t=Boolean(this._createOptions&&this._createOptions.cardinalSDKConfig&&this._createOptions.cardinalSDKConfig.payment&&this._createOptions.cardinalSDKConfig.payment.displayExitButton);return e.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\'">×</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>',t||(e.querySelector("[data-braintree-v1-fallback-close-button]").style.display="none"),e.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(iframe),e},t.exports=o},{"./songbird":58}],56:[function(e,t,r){"use strict";var n=e("./cardinal-modal"),o=e("./bootstrap3-modal"),c=e("./inline-iframe");t.exports={"cardinal-modal":n,"bootstrap3-modal":o,"inline-iframe":c}},{"./bootstrap3-modal":54,"./cardinal-modal":55,"./inline-iframe":57}],57:[function(e,t,r){"use strict";var n=e("./songbird"),o=e("../../../lib/braintree-error"),c=e("../../shared/errors"),l=e("../../../lib/enumerate");function d(e){n.call(this,e)}d.prototype=Object.create(n.prototype,{constructor:n}),d.events=l(["AUTHENTICATION_IFRAME_AVAILABLE"],"inline-iframe-framework:"),d.prototype.setUpEventListeners=function(e){n.prototype.setUpEventListeners.call(this,e),this.on(d.events.AUTHENTICATION_IFRAME_AVAILABLE,function(t,r){e("authentication-iframe-available",t,r)})},d.prototype._createCardinalConfigurationOptions=function(e){var t=n.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="inline",t},d.prototype._addV1IframeToPage=function(){this._emit(d.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:this._v1Modal},function(){})},d.prototype._setupFrameworkSpecificListeners=function(){this.setCardinalListener("ui.inline.setup",this._onInlineSetup.bind(this))},d.prototype._onInlineSetup=function(e,details,t,r){var n,l;
2e&&details?("CCA"!==details.paymentType||"suppress"!==details.data.mode&&"static"!==details.data.mode)&&(l=!0):l=!0,l?r(new o(c.THREEDS_INLINE_IFRAME_DETAILS_INCORRECT)):((n=document.createElement("div")).innerHTML=e,"suppress"===details.data.mode?(n.style.display="none",document.body.appendChild(n),t()):"static"===details.data.mode&&this._emit(d.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:n},function(){t()}))},t.exports=d},{"../../../lib/braintree-error":37,"../../../lib/enumerate":45,"../../shared/errors":62,"./songbird":58}],58:[function(e,t,r){"use strict";var n=e("./base"),o=e("../../../lib/assign").assign,c=e("../../../lib/deferred"),l=e("../../../lib/braintree-error"),d=e("../../../lib/convert-to-braintree-error"),f=e("../../../lib/analytics"),h=e("../../../lib/assets"),m=e("../../shared/errors"),y=e("../../../lib/enumerate"),v=e("@braintree/extended-promise"),_=e("../../../lib/constants").INTEGRATION_TIMEOUT_MS,E=e("../../../lib/constants").PLATFORM,w="3.144.0",A="01",T=["ui.close","ui.render","ui.renderHidden","ui.loading.close","ui.loading.render"],O=["low_value","transaction_risk_analysis"];function S(e){n.call(this,e),this._songbirdInitFailed=!1,this._clientMetadata={requestedThreeDSecureVersion:"2",sdkVersion:E+"/"+w},this.originalSetupOptions=e,this._getDfReferenceIdPromisePlus=new v,this.setupSongbird(e),this._cardinalEvents=[]}function I(source,e,t){e[t+"Line1"]=source.streetAddress,e[t+"Line2"]=source.extendedAddress,e[t+"Line3"]=source.line3,e[t+"City"]=source.locality,e[t+"State"]=source.region,e[t+"PostalCode"]=source.postalCode,e[t+"CountryCode"]=source.countryCodeAlpha2}v.suppressUnhandledPromiseMessage=!0,S.prototype=Object.create(n.prototype,{constructor:S}),S.events=y(["LOOKUP_COMPLETE","CUSTOMER_CANCELED","UI.CLOSE","UI.RENDER","UI.RENDERHIDDEN","UI.LOADING.CLOSE","UI.LOADING.RENDER"],"songbird-framework:"),S.prototype.setUpEventListeners=function(e){this.on(S.events.LOOKUP_COMPLETE,function(data,t){e("lookup-complete",data,t)}),this.on(S.events.CUSTOMER_CANCELED,function(){e("customer-canceled")}),this.on(S.events["UI.CLOSE"],function(){e("authentication-modal-close")}),this.on(S.events["UI.RENDER"],function(){e("authentication-modal-render")}),this.on(S.events["UI.RENDERHIDDEN"],function(){e("authentication-modal-render-hidden")}),this.on(S.events["UI.LOADING.CLOSE"],function(){e("authentication-modal-loader-close")}),this.on(S.events["UI.LOADING.RENDER"],function(){e("authentication-modal-loader-render")})},S.prototype.prepareLookup=function(e){var data=o({},e),t=this;return this.getDfReferenceId().then(function(e){data.dfReferenceId=e}).then(function(){return t._triggerCardinalBinProcess(e.bin)}).catch(function(){}).then(function(){return t._waitForClient()}).then(function(){return data.clientMetadata=t._clientMetadata,data.authorizationFingerprint=t._client.getConfiguration().authorizationFingerprint,data.braintreeLibraryVersion="braintree/web/"+w,data})},S.prototype.initializeChallengeWithLookupResponse=function(e,t){return this.setupSongbird().then(function(){return n.prototype.initializeChallengeWithLookupResponse.call(this,e,t)}.bind(this))},S.prototype.handleSongbirdError=function(e){this._songbirdInitFailed=!0,this._removeSongbirdListeners(),f.sendEvent(this._createPromise,"three-d-secure.cardinal-sdk.songbird-error."+e),this._songbirdPromise&&this._songbirdPromise.resolve()},S.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})},S.prototype.transformBillingAddress=function(e,t){return t&&(I(t,e,"billing"),e.billingPhoneNumber=t.phoneNumber,e.billingGivenName=t.givenName,e.billingSurname=t.surname),e},S.prototype.transformShippingAddress=function(e){var t=e.shippingAddress;return t&&(I(t,e,"shipping"),delete e.shippingAddress),e},S.prototype._createV1IframeModalElement=function(iframe){var e=document.createElement("div");return e.innerHTML='<div data-braintree-v1-fallback-iframe-container="true" style="height: 400px;"></div>',e.querySelector('[data-braintree-v1-fallback-iframe-container="true"]').appendChild(iframe),e},S.prototype._createV1IframeModal=function(iframe){var e=this._createV1IframeModalElement(iframe),t=e.querySelector("[data-braintree-v1-fallback-close-button]"),r=e.querySelector("[data-braintree-v1-fallback-backdrop]"),n=this;function o(){e.parentNode.removeChild(e),n.cancelVerifyCard(m.THREEDS_CARDINAL_SDK_CANCELED),document.removeEventListener("keyup",n._onV1Keyup),n._onV1Keyup=null}return this._onV1Keyup=function(t){"Escape"===t.key&&e.parentNode&&o()},t&&t.addEventListener("click",o),r&&r.addEventListener("click",o),document.addEventListener("keyup",this._onV1Keyup),e},S.prototype._addV1IframeToPage=function(){document.body.appendChild(this._v1Modal)},S.prototype.setupSongbird=function(e){var t=this,r=Date.now();return this._songbirdPromise||(e=e||{},this._songbirdPromise=new v,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 l(m.THREEDS_CARDINAL_SDK_SETUP_FAILED)))}).catch(function(e){var r=d(e,{type:m.THREEDS_CARDINAL_SDK_SETUP_FAILED.type,code:m.THREEDS_CARDINAL_SDK_SETUP_FAILED.code,message:m.THREEDS_CARDINAL_SDK_SETUP_FAILED.message});t._getDfReferenceIdPromisePlus.reject(r),window.clearTimeout(t._songbirdSetupTimeoutReference),f.sendEvent(t._client,"three-d-secure.cardinal-sdk.init.setup-failed"),t.handleSongbirdError("cardinal-sdk-setup-failed."+t._v2SetupFailureReason)})),this._songbirdPromise},S.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,o=e.setupOptions,c=e.setupStartTime,l=t._createCardinalConfigurationOptions(o);T.forEach(function(e){t.setCardinalListener(e,function(){t._emit
2(S.events[e.toUpperCase()])})}),t.setCardinalListener("payments.setupComplete",t._createPaymentsSetupCompleteCallback()),t._setupFrameworkSpecificListeners(),window.Cardinal.configure(l),window.Cardinal.setup("init",{jwt:n}),t._clientMetadata.cardinalDeviceDataCollectionTimeElapsed=Date.now()-c,t.setCardinalListener("payments.validated",t._createPaymentsValidatedCallback())}).catch(function(e){return t._v2SetupFailureReason="cardinal-configuration-threw-error",Promise.reject(e)})},S.prototype.setCardinalListener=function(e,t){this._cardinalEvents.push(e),window.Cardinal.on(e,t)},S.prototype._setupFrameworkSpecificListeners=function(){},S.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},S.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(){f.sendEvent(r._client,"three-d-secure.cardinal-sdk.init.setup-timeout"),r.handleSongbirdError("cardinal-sdk-setup-timeout")},e.timeout||_),h.loadScript(n)}).catch(function(e){return r._v2SetupFailureReason="songbird-js-failed-to-load",Promise.reject(d(e,m.THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED))})},S.prototype._createPaymentsSetupCompleteCallback=function(){var e=this;return function(data){e._getDfReferenceIdPromisePlus.resolve(data.sessionId),window.clearTimeout(e._songbirdSetupTimeoutReference),f.sendEvent(e._createPromise,"three-d-secure.cardinal-sdk.init.setup-completed"),e._songbirdPromise.resolve()}},S.prototype.getDfReferenceId=function(){return this._getDfReferenceIdPromisePlus},S.prototype._performJWTValidation=function(e,t){var r=this,n=this._lookupPaymentMethod.nonce,o="payment_methods/"+n+"/three_d_secure/authenticate_from_jwt",c=e&&e.Payment&&e.Payment.ExtendedData&&e.Payment.ExtendedData.ChallengeCancel;return c&&(f.sendEvent(this._createPromise,"three-d-secure.verification-flow.cardinal-sdk.cancel-code."+c),c===A&&this._emit(S.events.CUSTOMER_CANCELED)),f.sendEvent(this._createPromise,"three-d-secure.verification-flow.upgrade-payment-method.started"),this._waitForClient().then(function(){return r._client.request({method:"post",endpoint:o,data:{jwt:t,paymentMethodNonce:n}})}).then(function(t){var n=t.paymentMethod||r._lookupPaymentMethod,o=r._formatAuthResponse(n,t.threeDSecureInfo);return o.rawCardinalSDKVerificationData=e,f.sendEvent(r._client,"three-d-secure.verification-flow.upgrade-payment-method.succeeded"),Promise.resolve(o)}).catch(function(e){var t=new l({type:m.THREEDS_JWT_AUTHENTICATION_FAILED.type,code:m.THREEDS_JWT_AUTHENTICATION_FAILED.code,message:m.THREEDS_JWT_AUTHENTICATION_FAILED.message,details:{originalError:e}});return f.sendEvent(r._client,"three-d-secure.verification-flow.upgrade-payment-method.errored"),Promise.reject(t)})},S.prototype._createPaymentsValidatedCallback=function(){var e=this;return function(data,t){var r;if(f.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk.action-code."+data.ActionCode.toLowerCase()),e._verifyCardPromisePlus)switch(data.ActionCode){case"SUCCESS":case"NOACTION":case"FAILURE":e._performJWTValidation(data,t).then(function(t){e._verifyCardPromisePlus.resolve(t)}).catch(function(t){e._verifyCardPromisePlus.reject(t)});break;case"ERROR":switch(f.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk-error."+data.ErrorNumber),data.ErrorNumber){case 10001:case 10002:r=new l(m.THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT);break;case 10003:case 10007:case 10009:r=new l(m.THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT);break;case 10005:case 10006:r=new l(m.THREEDS_CARDINAL_SDK_BAD_CONFIG);break;
2case 10008:case 10010:r=new l(m.THREEDS_CARDINAL_SDK_BAD_JWT);break;case 10011:f.sendEvent(e._createPromise,"three-d-secure.verification-flow.canceled"),r=new l(m.THREEDS_CARDINAL_SDK_CANCELED);break;default:r=new l(m.THREEDS_CARDINAL_SDK_ERROR)}r.details={originalError:{code:data.ErrorNumber,description:data.ErrorDescription}},e._verifyCardPromisePlus.reject(r)}else e.handleSongbirdError("cardinal-sdk-setup-error.number-"+data.ErrorNumber)}},S.prototype._checkForVerifyCardError=function(e,t){return e.bin?n.prototype._checkForVerifyCardError.call(this,e,t):new l({type:m.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:m.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard options must include a BIN."})},S.prototype._checkForFrameworkSpecificVerifyCardErrors=function(e,t){var r;return"function"==typeof e.onLookupComplete||t.ignoreOnLookupCompleteRequirement||(r="an onLookupComplete function"),r},S.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=c(e.onLookupComplete)),e.email&&(r.email=e.email),e.mobilePhoneNumber&&(r.mobilePhoneNumber=e.mobilePhoneNumber),t.additionalInformation=r,t},S.prototype._onLookupComplete=function(e,t){var r=this;return n.prototype._onLookupComplete.call(this,e).then(function(e){return new Promise(function(n,o){function c(){n(e)}e.requiresUserAuthentication=Boolean(e.lookup&&e.lookup.acsUrl),r._verifyCardPromisePlus.catch(o),t.onLookupComplete?t.onLookupComplete(e,c):r._emit(S.events.LOOKUP_COMPLETE,e,c)})})},S.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}})},S.prototype._formatLookupData=function(e){var t=this;return n.prototype._formatLookupData.call(this,e).then(function(data){if(data.additionalInfo=e.additionalInformation,e.accountType&&(data.accountType=e.accountType),e.challengeRequested&&(data.challengeRequested=e.challengeRequested),e.requestedExemptionType){if(!O.includes(e.requestedExemptionType))throw new l({code:m.THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID.code,type:m.THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID.type,message:"requestedExemptionType `"+e.requestedExemptionType+"` is not a valid exemption. The accepted values are: `"+O.join("`, `")+"`"});data.requestedExemptionType=e.requestedExemptionType}return e.customFields&&(data.customFields=e.customFields),e.dataOnlyRequested&&(data.dataOnlyRequested=e.dataOnlyRequested),e.exemptionRequested&&(data.exemptionRequested=e.exemptionRequested),e.requestVisaDAF&&(data.requestVisaDAF=e.requestVisaDAF),e.bin&&(data.bin=e.bin),null!=e.cardAdd&&(data.cardAdd=e.cardAdd),null!=e.cardAddChallengeRequested&&(data.cardAdd=e.cardAddChallengeRequested),e.merchantName&&(data.merchantName=e.merchantName),e.applySmartAuthentication&&(data.applySmartAuthentication=e.applySmartAuthentication),t.prepareLookup(data)})},S.prototype.cancelVerifyCard=function(e){var t=this;return n.prototype.cancelVerifyCard.call(this).then(function(r){return t._verifyCardPromisePlus&&(e=e||new l(m.THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT),t._verifyCardPromisePlus.reject(e)),r})},S.prototype._removeSongbirdListeners=function(){this._cardinalEvents.forEach(function(e){window.Cardinal.off(e)}),this._cardinalEvents=[]},S.prototype.teardown=function(){return window.Cardinal&&this._removeSongbirdListeners(),n.prototype.teardown.call(this)},S.prototype._reloadThreeDSecure=function(){var e=this,t=Date.now();return e.teardown().then(function(){e._configureCardinalSdk({setupOptions:e.originalSetupOptions,setupStartTime:t})})},t.exports=S},{"../../../lib/analytics":33,"../../../lib/assets":34,"../../../lib/assign":35,"../../../lib/braintree-error":37,"../../../lib/constants":38,"../../../lib/convert-to-braintree-error":40,"../../../lib/deferred":44,"../../../lib/enumerate":45,"../../shared/errors":62,"./base":53,"@braintree/extended-promise":4}],59:[function(e,t,r){"use strict";var n=e("@braintree/wrap-promise"),o=e("../../lib/methods"),c=e("../../lib/convert-methods-to-error"),l=e("@braintree/event-emitter"),d=e("./frameworks");function f(e){var t=this,r=d[e.framework];l.call(this),this._framework=new r(e),this._framework.setUpEventListeners(function(){t._emit.apply(t,arguments)})}l.createChild(f),f.prototype.verifyCard=function(e){var t;return this.hasListener("lookup-complete")&&(t={ignoreOnLookupCompleteRequirement:!0}),this._framework.verifyCard(e,t)},f.prototype.initializeChallengeWithLookupResponse=function(e){return"string"==typeof e&&(e=JSON.parse(e)),this._framework.initializeChallengeWithLookupResponse(e)},f.prototype.prepareLookup=function(e){return this._framework.prepareLookup(e).then(function(data){return JSON.stringify(data)})},f.prototype.cancelVerifyCard=function(){return this._framework.cancelVerifyCard()},f.prototype.teardown=function(){var e=o(f.prototype).concat(o(l.prototype));return c(this,e),this._framework.teardown()},t.exports=n.wrapPrototype(f)},{"../../lib/convert-methods-to-error":39,"../../lib/methods":50,"./frameworks":56,"@braintree/event-emitter":3,"@braintree/wrap-promise":13}],60:[function(e,t,r){"use strict";var n=e("./external/three-d-secure"),o=e("../lib/is-https").isHTTPS,c=e("../lib/basic-component-verification"),l=e("../lib/create-deferred-client"),d=e("../lib/create-assets-url"),f=e("../lib/braintree-error"),h=e("../lib/analytics"),m=e("./shared/errors"),y="3.144.0",v=e("@braintree/wrap-promise");function _(e){var t="3D Secure",r=E(e);return c.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){var c=d.create(e.authorization),y=l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c,name:t}).then(function(t){var r,n=t.getConfiguration(),c=n.gatewayConfiguration;return e.client=t,c.threeDSecureEnabled||(r=m.THREEDS_NOT_ENABLED),"TOKENIZATION_KEY"===n.authorizationType&&(r=m.THREEDS_CAN_NOT_USE_TOKENIZATION_KEY),"production"===c.environment&&!o()&&(r=m.THREEDS_HTTPS_REQUIRED),c.threeDSecure&&c.threeDSecure.cardinalAuthenticationJWT||(h.sendEvent(e.client,"three-d-secure.initialization.failed.missing-cardinalAuthenticationJWT"),r=m.THREEDS_NOT_ENABLED_FOR_V2),r?Promise.reject(new f(r)):(h.sendEvent(e.client,"three-d-secure.initialized"),t)}),v=new n({client:e.client,assetsUrl:c,createPromise:y,loggingEnabled:e.loggingEnabled,cardinalSDKConfig:e.cardinalSDKConfig,framework:r});return e.client?y.then(function(){return v}):v})}function E(e){var t=String(e.version||"");if(!t||"1"===t)throw new f({code:m.THREEDS_UNSUPPORTED_VERSION.code,type:m.THREEDS_UNSUPPORTED_VERSION.type,message:m.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 f({code:m.THREEDS_UNRECOGNIZED_VERSION.code,type:m.THREEDS_UNRECOGNIZED_VERSION.type,message:"Version `"+e.version+"` is not a recognized ver
2sion. You may need to update the version of your Braintree SDK to support this version."})}}t.exports={create:v(_),VERSION:y}},{"../lib/analytics":33,"../lib/basic-component-verification":36,"../lib/braintree-error":37,"../lib/create-assets-url":41,"../lib/create-deferred-client":43,"../lib/is-https":47,"./external/three-d-secure":59,"./shared/errors":62,"@braintree/wrap-promise":13}],61:[function(e,t,r){"use strict";t.exports={LANDING_FRAME_NAME:"braintreethreedsecurelanding"}},{}],62:[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."}
2,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":37}],63:[function(e,t,r){"use strict";var n=e("../../lib/enumerate");t.exports=n(["AUTHENTICATION_COMPLETE"],"threedsecure:")},{"../../lib/enumerate":45}]},{},[60])(60)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":4,"./lib/default-attributes":5,"./lib/set-attributes":6}],4:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],5:[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"}},{}],6:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],7:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],8:[function(e,t,r){"use strict";function n(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)}}
2Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],9:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],10:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],11:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":8,"./lib/once":9,"./lib/promise-or-callback":10}],12:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],13:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":21}],14:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":13,"./lib":21}],15:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":21}],16:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":21}],17:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":21}],18:[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={}},{}],19:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":21}],20:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],21:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":15,"./broadcast":17,"./broadcast-to-child-windows":16,"./constants":18,"./dispatch":19,"./has-opener":20,"./is-not-string":22,"./message":23,"./package-payload":24,"./send-message":25,"./subscribe-replier":26,"./subscription-args-invalid":27,"./types":28,"./unpack-payload":29}],22:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],23:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":21}],24:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":21}],25:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],26:[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 o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":13,"@braintree/uuid":7}],27:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":21}],28:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":21}],30:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":36,"./create-authorization-data":39,"./json-clone":44}],31:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":30,"./assign":33,"./constants":36}],32:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":12}],33:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],34:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":35,"./errors":42}],35:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":41}],36:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],37:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":35,"./errors":42}],38:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":36}],39:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":36,"../lib/vendor/polyfill":47}],40:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":32,"./braintree-error":35,"./errors":42}],41:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],42:[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"}
2,INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":35}],43:[function(e,t,r){"use strict";var n,o={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};function c(e){return e.split(".").slice(-2).join(".")}function l(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((n=n||document.createElement("a")).href=e,t=c(n.hostname),o.hasOwnProperty(t))}t.exports=l},{}],44:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],45:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],46:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],47:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],48:[function(e,t,r){"use strict";var n=e("./shared/unionpay"),o=e("../lib/basic-component-verification"),c=e("../lib/braintree-error"),l=e("../lib/create-deferred-client"),d=e("../lib/create-assets-url"),f=e("../lib/analytics"),h=e("./shared/errors"),m="3.144.0",y=e("@braintree/wrap-promise");function v(e){var t="UnionPay";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:d.create(e.authorization),name:t})}).then(function(t){var r=t.getConfiguration();return e.client=t,r.gatewayConfiguration.unionPay&&!0===r.gatewayConfiguration.unionPay.enabled?(f.sendEvent(e.client,"unionpay.initialized"),new n(e)):Promise.reject(new c(h.UNIONPAY_NOT_ENABLED))})}t.exports={create:y(v),VERSION:m}},{"../lib/analytics":31,"../lib/basic-component-verification":34,"../lib/braintree-error":35,"../lib/create-assets-url":38,"../lib/create-deferred-client":40,"./shared/errors":50,"./shared/unionpay":51,"@braintree/wrap-promise":11}],49:[function(e,t,r){"use strict";var n=e("../../lib/enumerate");t.exports={events:n(["HOSTED_FIELDS_FETCH_CAPABILITIES","HOSTED_FIELDS_ENROLL","HOSTED_FIELDS_TOKENIZE"],"union-pay:"),HOSTED_FIELDS_FRAME_NAME:"braintreeunionpayhostedfields"}},{"../../lib/enumerate":41}],50:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={UNIONPAY_NOT_ENABLED:{type:n.types.MERCHANT,code:"UNIONPAY_NOT_ENABLED",message:"UnionPay is not enabled for this merchant."},UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID:{type:n.types.MERCHANT,code:"UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID",message:"Found an invalid Hosted Fields instance. Please use a valid Hosted Fields instance."},UNIONPAY_HOSTED_FIELDS_INSTANCE_REQUIRED:{type:n.types.MERCHANT,code:"UNIONPAY_HOSTED_FIELDS_INSTANCE_REQUIRED",message:"Could not find the Hosted Fields instance."},UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED:{type:n.types.MERCHANT,code:"UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED",message:"A card or a Hosted Fields instance is required. Please supply a card or a Hosted Fields instance."},UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES:{type:n.types.MERCHANT,code:"UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES",message:"Please supply either a card or a Hosted Fields instance, not both."},UNIONPAY_EXPIRATION_DATE_INCOMPLETE:{type:n.types.MERCHANT,code:"UNIONPAY_EXPIRATION_DATE_INCOMPLETE",message:"You must supply expiration month and year or neither."},UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID:{type:n.types.CUSTOMER,code:"UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID",message:"Enrollment failed due to user input error."}
2,UNIONPAY_ENROLLMENT_NETWORK_ERROR:{type:n.types.NETWORK,code:"UNIONPAY_ENROLLMENT_NETWORK_ERROR",message:"Could not enroll UnionPay card."},UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR:{type:n.types.NETWORK,code:"UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR",message:"Could not fetch card capabilities."},UNIONPAY_TOKENIZATION_NETWORK_ERROR:{type:n.types.NETWORK,code:"UNIONPAY_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},UNIONPAY_MISSING_MOBILE_PHONE_DATA:{type:n.types.MERCHANT,code:"UNIONPAY_MISSING_MOBILE_PHONE_DATA",message:"A `mobile` with `countryCode` and `number` is required."},UNIONPAY_FAILED_TOKENIZATION:{type:n.types.CUSTOMER,code:"UNIONPAY_FAILED_TOKENIZATION",message:"The supplied card data failed tokenization."}}},{"../../lib/braintree-error":35}],51:[function(e,t,r){"use strict";var n=e("../../lib/analytics"),o=e("../../lib/braintree-error"),c=e("framebus"),l=e("./constants"),d=e("../../lib/is-verified-domain"),f=e("../../lib/use-min"),h=e("../../lib/convert-methods-to-error"),m=e("./errors"),y=l.events,v=e("@braintree/iframer"),_=e("../../lib/methods"),E="3.144.0",w=e("@braintree/uuid"),A=e("@braintree/wrap-promise"),T=e("../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT;function O(e){this._options=e}O.prototype.fetchCapabilities=function(e){var t=this,r=this._options.client,c=e.card?e.card.number:null,l=e.hostedFields;return c&&l?Promise.reject(new o(m.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):c?r.request({method:"get",endpoint:"payment_methods/credit_cards/capabilities",data:{_meta:{source:"unionpay"},creditCard:{number:c}}}).then(function(e){return n.sendEvent(r,"unionpay.capabilities-received"),e}).catch(function(e){var t=e.details&&e.details.httpStatus;return n.sendEvent(r,"unionpay.capabilities-failed"),403===t?Promise.reject(e):Promise.reject(new o({type:m.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.type,code:m.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.code,message:m.UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR.message,details:{originalError:e}}))}):l?l._bus?t._initializeHostedFields().then(function(){return new Promise(function(e,r){t._bus.emit(y.HOSTED_FIELDS_FETCH_CAPABILITIES,{hostedFields:l},function(t){t.err?r(new o(t.err)):e(t.payload)})})}):Promise.reject(new o(m.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID)):Promise.reject(new o(m.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},O.prototype.enroll=function(e){var data,t=this,r=this._options.client,c=e.card,l=e.mobile,d=e.hostedFields;if(!l)return Promise.reject(new o(m.UNIONPAY_MISSING_MOBILE_PHONE_DATA));if(d)return d._bus?c?Promise.reject(new o(m.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):new Promise(function(e,r){t._initializeHostedFields().then(function(){t._bus.emit(y.HOSTED_FIELDS_ENROLL,{hostedFields:d,mobile:l},function(t){t.err?r(new o(t.err)):e(t.payload)})})}):Promise.reject(new o(m.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID));if(c&&c.number){if(data={_meta:{source:"unionpay"},unionPayEnrollment:{number:c.number,mobileCountryCode:l.countryCode,mobileNumber:l.number}},c.expirationDate)data.unionPayEnrollment.expirationDate=c.expirationDate;else if(c.expirationMonth||c.expirationYear){if(!c.expirationMonth||!c.expirationYear)return Promise.reject(new o(m.UNIONPAY_EXPIRATION_DATE_INCOMPLETE));data.unionPayEnrollment.expirationYear=c.expirationYear,data.unionPayEnrollment.expirationMonth=c.expirationMonth}return r.request({method:"post",endpoint:"union_pay_enrollments",data:data}).then(function(e){return n.sendEvent(r,"unionpay.enrollment-succeeded"),{enrollmentId:e.unionPayEnrollmentId,smsCodeRequired:e.smsCodeRequired}}).catch(function(e){var t,c=e.details&&e.details.httpStatus;return 403===c?t=e:c<500?(t=new o(m.UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID)).details={originalError:e}:(t=new o(m.UNIONPAY_ENROLLMENT_NETWORK_ERROR)).details={originalError:e},n.sendEvent(r,"unionpay.enrollment-failed"),Promise.reject(t)})}return Promise.reject(new o(m.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},O.prototype.tokenize=function(e){var data,t=this,r=this._options.client,c=e.card,l=e.hostedFields;return c&&l?Promise.reject(new o(m.UNIONPAY_CARD_AND_HOSTED_FIELDS_INSTANCES)):c?(data={_meta:{source:"unionpay"},creditCard:{number:e.card.number,options:{unionPayEnrollment:{id:e.enrollmentId}}}},e.smsCode&&(data.creditCard.options.unionPayEnrollment.smsCode=e.smsCode),c.expirationDate?data.creditCard.expirationDate=c.expirationDate:c.expirationMonth&&c.expirationYear&&(data.creditCard.expirationYear=c.expirationYear,data.creditCard.expirationMonth=c.expirationMonth),e.card.cvv&&(data.creditCard.cvv=e.card.cvv),r.request({method:"post",endpoint:"payment_methods/credit_cards",data:data}).then(function(e){var t=e.creditCards[0];return delete t.consumed,delete t.threeDSecureInfo,n.sendEvent(r,"unionpay.nonce-received"),t}).catch(function(e){var t,c=e.details&&e.details.httpStatus;return n.sendEvent(r,"unionpay.nonce-failed"),403===c?t=e:c<500?(t=new o(m.UNIONPAY_FAILED_TOKENIZATION)).details={originalError:e}
2:(t=new o(m.UNIONPAY_TOKENIZATION_NETWORK_ERROR)).details={originalError:e},Promise.reject(t)})):l?l._bus?new Promise(function(r,n){t._initializeHostedFields().then(function(){t._bus.emit(y.HOSTED_FIELDS_TOKENIZE,e,function(e){e.err?n(new o(e.err)):r(e.payload)})})}):Promise.reject(new o(m.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID)):Promise.reject(new o(m.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},O.prototype.teardown=function(){return this._bus&&(this._hostedFieldsFrame.parentNode.removeChild(this._hostedFieldsFrame),this._bus.teardown()),h(this,_(O.prototype)),Promise.resolve()},O.prototype._initializeHostedFields=function(){var e,t,r=w(),n=this;return this._hostedFieldsInitializePromise||(this._hostedFieldsInitializePromise=new Promise(function(o){e=n._options.client.getConfiguration().gatewayConfiguration.assetsUrl,t=n._options.client.getConfiguration().isDebug,n._bus=new c({channel:r,verifyDomain:d}),n._hostedFieldsFrame=v({name:l.HOSTED_FIELDS_FRAME_NAME+"_"+r,src:e+"/web/"+E+"/html/unionpay-hosted-fields-frame"+f(t)+".html",height:0,width:0}),n._bus.on(T,function(e){e(n._options.client),o()}),document.body.appendChild(n._hostedFieldsFrame)})),this._hostedFieldsInitializePromise},t.exports=A.wrapPrototype(O)},{"../../lib/analytics":31,"../../lib/braintree-error":35,"../../lib/constants":36,"../../lib/convert-methods-to-error":37,"../../lib/is-verified-domain":43,"../../lib/methods":45,"../../lib/use-min":46,"./constants":49,"./errors":50,"@braintree/iframer":3,"@braintree/uuid":7,"@braintree/wrap-promise":11,framebus:14}]},{},[48])(48)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}
2).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":14,"./create-authorization-data":17,"./json-clone":21}],9:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":8,"./assign":11,"./constants":14}],10:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],11:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],12:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":13,"./errors":20}],13:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":19}],14:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],15:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":13,"./errors":20}],16:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":14}],17:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":14,"../lib/vendor/polyfill":24}],18:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":10,"./braintree-error":13,"./errors":20}],19:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],20:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":13}],21:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],22:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],23:[function(e,t,r){"use strict";function n(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}t.exports=n},{}],24:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],25:[function(e,t,r){"use strict";t.exports={PLAID_LINK_JS:"https://cdn.plaid.com/link/v2/stable/link-initialize.js"}},{}],26:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={US_BANK_ACCOUNT_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"US_BANK_ACCOUNT_OPTION_REQUIRED"},US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS:{type:n.types.MERCHANT,code:"US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS"},US_BANK_ACCOUNT_LOGIN_LOAD_FAILED:{type:n.types.NETWORK,code:"US_BANK_ACCOUNT_LOGIN_LOAD_FAILED",message:"Bank login flow failed to load."},US_BANK_ACCOUNT_LOGIN_CLOSED:{type:n.types.CUSTOMER,code:"US_BANK_ACCOUNT_LOGIN_CLOSED",message:"Customer closed bank login flow before authorizing."},US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE:{type:n.types.MERCHANT,code:"US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE",message:"Another bank login tokenization request is active."},US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR:{type:n.types.NETWORK,code:"US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},US_BANK_ACCOUNT_FAILED_TOKENIZATION:{type:n.types.CUSTOMER,code:"US_BANK_ACCOUNT_FAILED_TOKENIZATION",message:"The supplied data failed tokenization."},US_BANK_ACCOUNT_NOT_ENABLED:{type:n.types.MERCHANT,code:"US_BANK_ACCOUNT_NOT_ENABLED",message:"US bank account is not enabled."},US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED:{type:n.types.MERCHANT,code:"US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED",message:"Bank login is not enabled."}}},{"../lib/braintree-error":13}],27:[function(e,t,r){"use strict";var n=e("../lib/basic-component-verification"),o=e("../lib/braintree-error"),c=e("../lib/create-deferred-client"),l=e("../lib/create-assets-url"),d=e("./errors"),f=e("./us-bank-account"),h="3.144.0",m=e("@braintree/wrap-promise");function y(e){var t="US Bank Account";return n.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:t})}).then(function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.usBankAccount?new f(e):Promise.reject(new o(d.US_BANK_ACCOUNT_NOT_ENABLED))})}t.exports={create:m(y),VERSION:h}},{"../lib/basic-component-verification":12,"../lib/braintree-error":13,"../lib/create-assets-url":16,"../lib/create-deferred-client":18,"./errors":26,"./us-bank-account":28,"@braintree/wrap-promise":6}],28:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("./constants"),c=e("./errors"),l=e("../lib/errors"),d=e("../lib/analytics"),f=e("../lib/once"),h=e("../lib/convert-methods-to-error"),m=e("../lib/methods"),y=e("@braintree/wrap-promise"),v=I("UsBankAccount"),_=I("UsBankLogin");function E(e){this._client=e.client,this._isTokenizingBankLogin=!1,d.sendEvent(this._client,"usbankaccount.initialized")}function w(e){var t,r=e.details&&e.details.httpStatus;return(t=new n(401===r?l.BRAINTREE_API_ACCESS_RESTRICTED:r<500?c.US_BANK_ACCOUNT_FAILED_TOKENIZATION:c.US_BANK_ACCOUNT_TOKENIZATION_NETWORK_E
2RROR)).details={originalError:e},t}function A(e,t){var data=e.data[t].paymentMethod,r="US bank account ending in - "+data.details.last4;return{nonce:data.id,details:{},description:r,type:"us_bank_account"}}function T(script,e){function t(){var t=this.readyState;t&&"loaded"!==t&&"complete"!==t||(o(),e(null,window.Plaid))}function r(){script.parentNode.removeChild(script),e(new n(c.US_BANK_ACCOUNT_LOGIN_LOAD_FAILED))}function o(){script.removeEventListener("error",r),script.removeEventListener("load",t),script.removeEventListener("readystatechange",t)}script.addEventListener("error",r),script.addEventListener("load",t),script.addEventListener("readystatechange",t)}function O(address){return{streetAddress:address.streetAddress,extendedAddress:address.extendedAddress,city:address.locality,state:address.region,zipCode:address.postalCode}}function S(data,details){"personal"===details.ownershipType?data.individualOwner={firstName:details.firstName,lastName:details.lastName}:"business"===details.ownershipType&&(data.businessOwner={businessName:details.businessName})}function I(e){return"mutation Tokenize"+e+"($input: Tokenize"+e+"Input!) {  tokenize"+e+"(input: $input) {    paymentMethod {      id      details {        ... on UsBankAccountDetails {          last4        }      }    }  }}"}E.prototype.tokenize=function(e){return(e=e||{}
2).mandateText?e.bankDetails&&e.bankLogin?Promise.reject(new n({type:c.US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS.type,code:c.US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS.code,message:"tokenize must be called with bankDetails or bankLogin, not both."})):e.bankDetails?this._tokenizeBankDetails(e):e.bankLogin?this._tokenizeBankLogin(e):Promise.reject(new n({type:c.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:c.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"tokenize must be called with bankDetails or bankLogin."})):Promise.reject(new n({type:c.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:c.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"mandateText property is required."}))},E.prototype._tokenizeBankDetails=function(e){var t=this._client,r=e.bankDetails,data={achMandate:e.mandateText,routingNumber:r.routingNumber,accountNumber:r.accountNumber,accountType:r.accountType.toUpperCase(),billingAddress:O(r.billingAddress||{})};return S(data,r),t.request({api:"graphQLApi",data:{query:v,variables:{input:{usBankAccount:data}}}}).then(function(e){return d.sendEvent(t,"usbankaccount.bankdetails.tokenization.succeeded"),Promise.resolve(A(e,"tokenizeUsBankAccount"))}).catch(function(e){var r=w(e);return d.sendEvent(t,"usbankaccount.bankdetails.tokenization.failed"),Promise.reject(r)})},E.prototype._tokenizeBankLogin=function(e){var t=this,r=this._client,o=r.getConfiguration().gatewayConfiguration,l="production"===o.environment,f=o.usBankAccount.plaid;return e.bankLogin.displayName?f?this._isTokenizingBankLogin?Promise.reject(new n(c.US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE)):(this._isTokenizingBankLogin=!0,new Promise(function(o,h){t._loadPlaid(function(m,y){m?h(m):(y.create({clientName:e.bankLogin.displayName,apiVersion:"v2",env:l?"production":"sandbox",key:f.publicKey,product:"auth",selectAccount:!0,onExit:function(){t._isTokenizingBankLogin=!1,d.sendEvent(r,"usbankaccount.banklogin.tokenization.closed.by-user"),h(new n(c.US_BANK_ACCOUNT_LOGIN_CLOSED))},onSuccess:function(n,c){var f=e.bankLogin,data={publicToken:n,accountId:l?c.account_id:"plaid_account_id",accountType:c.account.subtype.toUpperCase(),achMandate:e.mandateText,billingAddress:O(f.billingAddress||{})};S(data,f),r.request({api:"graphQLApi",data:{query:_,variables:{input:{usBankLogin:data}}}}).then(function(e){t._isTokenizingBankLogin=!1,d.sendEvent(r,"usbankaccount.banklogin.tokenization.succeeded"),o(A(e,"tokenizeUsBankLogin"))}).catch(function(e){var n;t._isTokenizingBankLogin=!1,n=w(e),d.sendEvent(r,"usbankaccount.banklogin.tokenization.failed"),h(n)})}}).open(),d.sendEvent(r,"usbankaccount.banklogin.tokenization.started"))})})):Promise.reject(new n(c.US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED)):Promise.reject(new n({type:c.US_BANK_ACCOUNT_OPTION_REQUIRED.type,code:c.US_BANK_ACCOUNT_OPTION_REQUIRED.code,message:"displayName property is required when using bankLogin."}))},E.prototype._loadPlaid=function(e){var t,script;e=f(e),window.Plaid?e(null,window.Plaid):(t=document.querySelector('script[src="'+o.PLAID_LINK_JS+'"]'))?T(t,e):((script=document.createElement("script")).src=o.PLAID_LINK_JS,script.async=!0,T(script,e),document.body.appendChild(script),this._plaidScript=script)},E.prototype.teardown=function(){return this._plaidScript&&document.body.removeChild(this._plaidScript),h(this,m(E.prototype)),Promise.resolve()},t.exports=y.wrapPrototype(E)},{"../lib/analytics":9,"../lib/braintree-error":13,"../lib/convert-methods-to-error":15,"../lib/errors":20,"../lib/methods":22,"../lib/once":23,"./constants":25,"./errors":26,"@braintree/wrap-promise":6}]},{},[27])(27)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":14,"./create-authorization-data":17,"./json-clone":21}],9:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":8,"./assign":11,"./constants":14}],10:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],11:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],12:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":13,"./errors":20}],13:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":19}],14:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],15:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":13,"./errors":20}],16:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":14}],17:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":14,"../lib/vendor/polyfill":23}],18:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":10,"./braintree-error":13,"./errors":20}],19:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],20:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":13}],21:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],22:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],23:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],24:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN:{type:n.types.MERCHANT,code:"VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN",message:"A client token with a customer id must be used to delete a payment method nonce."},VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND:{type:n.types.MERCHANT,code:"VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND"},VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR:{type:n.types.UNKNOWN,code:"VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR"}}},{"../lib/braintree-error":13}],25:[function(e,t,r){"use strict";var n=e("../lib/basic-component-verification"),o=e("../lib/create-deferred-client"),c=e("../lib/create-assets-url"),l=e("./vault-manager"),d="3.144.0",f=e("@braintree/wrap-promise");function h(e){var t="Vault Manager";return n.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return new l({createPromise:o.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:t})})})}t.exports={create:f(h),VERSION:d}},{"../lib/basic-component-verification":12,"../lib/create-assets-url":16,"../lib/create-deferred-client":18,"./vault-manager":26,"@braintree/wrap-promise":6}],26:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/braintree-error"),c=e("./errors"),l=e("../lib/convert-methods-to-error"),d=e("../lib/methods"),f=e("@braintree/wrap-promise"),h="mutation DeletePaymentMethodFromSingleUseToken($input: DeletePaymentMethodFromSingleUseTokenInput!) {  deletePaymentMethodFromSingleUseToken(input: $input) {    clientMutationId  }}";function m(e){this._createPromise=e.createPromise}function y(e){var t={nonce:e.nonce,default:e.default,details:e.details,hasSubscription:e.hasSubscription,type:e.type};return e.description&&(t.description=e.description),e.binData&&(t.binData=e.binData),t}m.prototype.fetchPaymentMethods=function(e){var t;return t=!0===(e=e||{}).defaultFirst?1:0,this._createPromise.then(function(e){return e.request({endpoint:"payment_methods",method:"get",data:{defaultFirst:t}})}).then(function(e){return n.sendEvent(this._createPromise,"vault-manager.fetch-payment-methods.succeeded"),e.paymentMethods.map(y)}.bind(this))},m.prototype.deletePaymentMethod=function(e){return this._createPromise.then(function(t){return"CLIENT_TOKEN"===t.getConfiguration().authorizationType?t.request({api:"graphQLApi",data:{query:h,variables:{input:{singleUseTokenId:e}},operationName:"DeletePaymentMethodFromSingleUseToken"}}).then(function(){n.sendEvent(t,"vault-manager.delete-payment-method.succeeded")}).catch(function(r){var l,d=r.details.originalError;return n.sendEvent(t,"vault-manager.delete-payment-method.failed"),d[0]&&"NOT_FOUND"===d[0].extensions.errorClass&&(l=new o({type:c.VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND.type,code:c.VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND.code,message:"A payment method for payment method nonce `"+e+"` could not be found.",details:{originalError:d}})),l||(l=new o({type:c.VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR.type,code:c.VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR.code,message:"An unknown error occured when attempting to delete the payment method assocaited with the payment method nonce `"+e+"`.",details:{originalError:d}})),Promise.reject(l)}
2):Promise.reject(new o(c.VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN))})},m.prototype.teardown=function(){return l(this,d(m.prototype)),Promise.resolve()},t.exports=f.wrapPrototype(m)},{"../lib/analytics":9,"../lib/braintree-error":13,"../lib/convert-methods-to-error":15,"../lib/methods":22,"./errors":24,"@braintree/wrap-promise":6}]},{},[25])(25)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],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(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,r){"use strict";var n=e("./is-edge"),o=e("./is-samsung"),c=e("./is-duckduckgo"),l=e("./is-opera"),d=e("./is-silk");t.exports=function(e){return!(-1===(e=e||window.navigator.userAgent).indexOf("Chrome")&&-1===e.indexOf("CriOS")||n(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":5,"./is-edge":6,"./is-opera":15,"./is-samsung":16,"./is-silk":17}],5:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],6:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],7:[function(e,t,r){"use strict";var n=e("detectincognitojs");t.exports=function(){return n.detectIncognito()}},{detectincognitojs:38}],8:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],9:[function(e,t,r){"use strict";var n=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&o(e)}},{"./is-ios":13}],10:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-firefox"),c=/webkit/i;function l(e){return c.test(e)}function d(e){return e.indexOf("CriOS")>-1}function f(e){return e.indexOf("FBAN")>-1}t.exports=function(e){return e=e||window.navigator.userAgent,n(e)&&l(e)&&!d(e)&&!o(e)&&!f(e)}},{"./is-ios":13,"./is-ios-firefox":8}],11:[function(e,t,r){"use strict";var n=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!n(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":13,"./is-ios-google-search-app":9}],12:[function(e,t,r){"use strict";var n=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,n(e)&&t}},{"./is-ios-webview":11}],13:[function(e,t,r){"use strict";var n=e("./is-ipados");t.exports=function(e,t,r){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||n(e,r):o}},{"./is-ipados":14}],14:[function(e,t,r){"use strict";t.exports=function(e,t){return e=e||window.navigator.userAgent,t=t||window.document,/Mac|iPad/i.test(e)&&"ontouchend"in t}},{}],15:[function(e,t,r){"use strict";
2t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],16:[function(e,t,r){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],17:[function(e,t,r){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],18:[function(e,t,r){"use strict";var n=48,o=e("./is-android"),c=e("./is-ios-firefox"),l=e("./is-ios-webview"),d=e("./is-chrome"),f=e("./is-samsung"),h=e("./is-duckduckgo");function m(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<n}function y(e){return(e=e||window.navigator.userAgent).indexOf("Opera Mini")>-1}function v(e){var t=/Version\/[\d.]+/i;return e=e||window.navigator.userAgent,!!o(e)&&t.test(e)&&!y(e)&&!h(e)}function _(e){return!d(e)&&!f(e)&&/samsung/i.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,!(l(e)||c(e)||v(e)||y(e)||m(e)||_(e))}},{"./is-android":3,"./is-chrome":4,"./is-duckduckgo":5,"./is-ios-firefox":8,"./is-ios-webview":11,"./is-samsung":16}],19:[function(e,t,r){t.exports=e("./dist/is-android")},{"./dist/is-android":3}],20:[function(e,t,r){t.exports=e("./dist/is-chrome")},{"./dist/is-chrome":4}],21:[function(e,t,r){t.exports=e("./dist/is-incognito")},{"./dist/is-incognito":7}],22:[function(e,t,r){t.exports=e("./dist/is-ios-safari")},{"./dist/is-ios-safari":10}],23:[function(e,t,r){t.exports=e("./dist/is-ios-webview")},{"./dist/is-ios-webview":11}],24:[function(e,t,r){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":12}],25:[function(e,t,r){t.exports=e("./dist/is-ios")},{"./dist/is-ios":13}],26:[function(e,t,r){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":18}],27:[function(e,t,r){"use strict";var n="undefined"!=typeof Promise?Promise:null,o=function(){function e(t){var r=this;"function"!=typeof t?(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()):this._promise=new e.Promise(t)}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")?Boolean(t.suppressUnhandledPromiseMessage):Boolean(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}();t.exports=o},{}],28:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),o=e("./lib/default-attributes"),c=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var iframe=document.createElement("iframe"),t=(0,c.assign)({},o.defaultAttributes,e);return t.style&&"string"!=typeof t.style&&((0,c.assign)(iframe.style,t.style),delete t.style),(0,n.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}}
2,{"./lib/assign":29,"./lib/default-attributes":30,"./lib/set-attributes":31}],29:[function(e,t,r){"use strict";function n(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}Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=n},{}],30:[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"}},{}],31:[function(e,t,r){"use strict";function n(element,e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];null==r?element.removeAttribute(t):element.setAttribute(t,r)}}Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=n},{}],32:[function(e,t,r){"use strict";function n(){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=new Array(256),i=0;i<256;i++)t[i]=(i<16?"0":"")+i.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 new Error("@braintree/uuid: No secure random source available")}t.exports=n},{}],33:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],34:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],35:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],36:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":33,"./lib/once":34,"./lib/promise-or-callback":35}],37:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],38:[function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(o=0)),o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};function c(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,new Promise(function(e,t){var r="Unknown",c=!1;function l(t){c||(c=!0,e({isPrivate:t,browserName:r}))}function d(){var e=navigator.userAgent;return e.match(/Chrome/)?void 0!==navigator.brave?"Brave":e.match(/Edg/)?"Edge":e.match(/OPR/)?"Opera":"Chrome":"Chromium"}function f(e){try{return e===eval.toString().length}catch(e){return!1}}function h(){var e=0,t=parseInt("-1");try{t.toFixed(t)}catch(t){e=t.message.length}return e}function m(){return 44===h()}function y(){return 51===h()}function v(){return 25===h()}function _(){return void 0!==navigator.msSaveBlob&&f(39)}function E(){var e;return n(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,navigator.storage.getDirectory()];case 1:return n.sent(),l(!1),[3,3];case 2:return t=n.sent(),r=t,t instanceof Error&&(r=null!==(e=t.message)&&void 0!==e?e:t),"string"!=typeof r?(l(!1),[2]):(l(!!r.includes("unknown transient reason")),[3,3]);case 3:return[2]}})})}function w(){var e=String(Math.random());try{var t=indexedDB.open(e,1);t.onupgradeneeded=function(t){var r=t.target.result,n=function(e){l(e)};try{r.createObjectStore("t",{autoIncrement:!0}).put(new Blob),n(!1)}catch(e){(e.message||"").includes("are not yet supported")?n(!0):n(!1)}finally{r.close(),indexedDB.deleteDatabase(e)}},t.onerror=function(){return l(!1)}}catch(e){l(!1)}}
2function A(){var e=window.openDatabase,t=window.localStorage;try{e(null,null,null,null)}catch(e){return void l(!0)}try{t.setItem("test","1"),t.removeItem("test")}catch(e){return void l(!0)}l(!1)}function T(){var e;return n(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return void 0===(null===(e=navigator.storage)||void 0===e?void 0:e.getDirectory)?[3,2]:[4,E()];case 1:return t.sent(),[3,3];case 2:void 0!==navigator.maxTouchPoints?w():A(),t.label=3;case 3:return[2]}})})}function O(){var e=window;return void 0!==e.performance&&void 0!==e.performance.memory&&void 0!==e.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824}function S(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(e,t){l(Math.round(t/1048576)<2*Math.round(O()/1048576))},function(e){t(new Error("detectIncognito somehow failed to query storage quota: "+e.message))})}function I(){(0,window.webkitRequestFileSystem)(0,1,function(){l(!1)},function(){l(!0)})}function C(){void 0!==self.Promise&&void 0!==self.Promise.allSettled?S():I()}function N(){return n(this,void 0,void 0,function(){var e,t;return o(this,function(r){switch(r.label){case 0:if(!navigator.storage||!navigator.storage.getDirectory)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,navigator.storage.getDirectory()];case 2:return r.sent(),l(!1),[3,4];case 3:return e=r.sent(),"string"!=typeof(t=e instanceof Error&&"string"==typeof e.message?e.message:String(e))?(l(!1),[2]):(l(t.includes("Security error")),[2]);case 4:return l(void 0===navigator.serviceWorker),[2]}})})}function P(){l(void 0===window.indexedDB)}function main(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return m()?(r="Safari",[4,T()]):[3,2];case 1:return e.sent(),[3,6];case 2:return y()?(r=d(),C(),[3,6]):[3,3];case 3:return v()?(r="Firefox",[4,N()]):[3,5];case 4:return e.sent(),[3,6];case 5:_()?(r="Internet Explorer",P()):t(new Error("detectIncognito cannot determine the browser")),e.label=6;case 6:return[2]}})})}main().catch(t)})];case 1:return[2,e.sent()]}})})}r.__esModule=!0,r.detectIncognito=void 0,r.detectIncognito=c,"undefined"!=typeof window&&(window.detectIncognito=c),r.default=c},{}],39:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),o="undefined"!=typeof window&&window.Promise,c=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=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(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,data,t){if(this.isDestroyed)return!1;var r=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(r))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,n.packagePayload)(e,r,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,r)}):(0,n.broadcast)(o,{origin:r,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var r=this;return new e.Promise(function(e,n){r.emit(t,data,function(t){e(t)})||n(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=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:c,originalHandler:t}),n.subscribers[o]=n.subscribers[o]||{},n.subscribers[o][e]=n.subscribers[o][e]||[],n.subscribers[o][e].push(c),!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 c=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,c))return!1;var l=n.subscribers[c]&&n.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===r)return l.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var i=0;i<this.listeners.length;i++){var e=this.listeners[i];this.off(e.eventName,e.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(source){if(!this.limitBroadcastToFramesArray)return!0;var e=this.targetFramesAsWindows().find(function(e){return e===source});return Boolean(e)},e.prototype.checkOrigin=function(e){var t,a=document.createElement("a");return a.href=location.href,t="https:"===a.protocol?a.host.replace(/:443$/,""):"http:"===a.protocol?a.host.replace(/:80$/,""):a.host,a.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=o,e}();r.Framebus=c},{"./lib":47}],40:[function(e,t,r){"use strict";var n=e("./lib"),o=e("./framebus");(0,n.attach)(),t.exports=o.Framebus},{"./framebus":39,"./lib":47}],41:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",n.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",n.onMessage,!1)}r.attach=c,r.detach=l},{"./":47}],42:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");function o(e,t,source){for(var i=n.childWindows.length-1;i>=0;i--){var r=n.childWindows[i];r.closed?n.childWindows.splice(i,1):source!==r&&(0,n.broadcast)(e,{origin:t,frame:r.top})}}r.broadcastToChildWindows=o},{"./":47}],43:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");function o(e,t){var r,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,n.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});r=l.frames[i];)o(e,{origin:c,frame:r}),i++}catch(e){}}r.broadcast=o},{"./":47}],44:[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={}},{}],45:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");function o(e,t,data,r,o){if(n.subscribers[e]&&n.subscribers[e][t]){var c=[];data&&c.push(data),r&&c.push(r);for(var i=0;i<n.subscribers[e][t].length;i++)n.subscribers[e][t][i].apply(o,c)}}r.dispatch=o},{"./":47}],46:[function(e,t,r){"use strict";function n(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=n},{}],47:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var desc=Object.getOwnPropertyDescriptor(t,r);desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,desc)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||n(t,e,p)};Object.defineProperty(r,"__esModule",{value:!0}),o(e("./attach"),r),o(e("./broadcast-to-child-windows"),r),o(e("./broadcast"),r),o(e("./constants"),r),o(e("./dispatch"),r),o(e("./has-opener"),r),o(e("./is-not-string"),r),o(e("./message"),r),o(e("./package-payload"),r),o(e("./send-message"),r),o(e("./subscribe-replier"),r),o(e("./subscription-args-invalid"),r),o(e("./types"),r),o(e("./unpack-payload"),r)},{"./attach":41,"./broadcast":43,"./broadcast-to-child-windows":42,"./constants":44,"./dispatch":45,"./has-opener":46,"./is-not-string":48,"./message":49,"./package-payload":50,"./send-message":51,"./subscribe-replier":52,"./subscription-args-invalid":53,"./types":54,"./unpack-payload":55}],48:[function(e,t,r){"use strict";function n(e){return"string"!=typeof e}Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=n},{}],49:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");function o(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var data=t.eventData,r=t.reply;(0,n.dispatch)("*",t.event,data,r,e),(0,n.dispatch)(e.origin,t.event,data,r,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}r.onMessage=o},{"./":47}],50:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");function o(e,t,data,r){var o,c={event:e,origin:t};"function"==typeof r&&(c.reply=(0,n.subscribeReplier)(r,t)),c.eventData=data;try{o=n.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}r.packagePayload=o},{"./":47}],51:[function(e,t,r){"use strict";function n(e,t,r){try{e.postMessage(t,r)}catch(e){}}Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=n},{}],52:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeReplier=void 0;var o=e("../framebus"),c=n(e("@braintree/uuid"));function l(e,t){var r=(0,c.default)();function n(data,c){e(data,c),o.Framebus.target({origin:t}).off(r,n)}return o.Framebus.target({origin:t}).on(r,n),r}r.subscribeReplier=l},{"../framebus":39,"@braintree/uuid":32}],53:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");function o(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}r.subscriptionArgsInvalid=o},{"./":47}],54:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0})},{}],55:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");function o(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,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,n.packagePayload)(c,r,e);t&&o.postMessage(t,r)}}}return t}r.unpackPayload=o},{"./":47}],56:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":62,"./create-authorization-data":65,"./json-clone":82}],57:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)})}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":56,"./assign":59,"./constants":62}],58:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":37}],59:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],60:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK ver
2sion."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":61,"./errors":68}],61:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":67}],62:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],63:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":61,"./errors":68}],64:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":62}],65:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":62,"../lib/vendor/polyfill":88}],66:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK ver
2sion."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":58,"./braintree-error":61,"./errors":68}],67:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],68:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":61}],69:[function(e,t,r){"use strict";var n=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),l=e("framebus"),d=e("../shared/events"),f=e("../shared/errors"),h=e("../shared/constants"),m=e("@braintree/uuid"),y=e("@braintree/iframer"),v=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("./../../assign").assign,w=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,A=["name","dispatchFrameUrl","openFrameUrl"];function T(){}function O(e){if(!e)throw new Error("Valid configuration is required");if(A.forEach(function(t){if(!e.hasOwnProperty(t))throw new Error("A valid frame "+t+" must be provided")}),!/^[\w_]+$/.test(e.name))throw new Error("A valid frame name must be provided")}function S(e){O(e),this._serviceId=m().replace(/-/g,""),this._options={name:e.name+"_"+this._serviceId,dispatchFrameUrl:e.dispatchFrameUrl,openFrameUrl:e.openFrameUrl,height:e.height,width:e.width,top:e.top,left:e.left},this.state=e.state||{},this._bus=new l({channel:this._serviceId}),this._setBusEvents()}S.prototype.initialize=function(e){var t=function(){e(),this._bus.off(d.DISPATCH_FRAME_READY,t)}.bind(this);this._bus.on(d.DISPATCH_FRAME_READY,t),this._writeDispatchFrame()},S.prototype._writeDispatchFrame=function(){var e=h.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=y({"aria-hidden":!0,name:e,title:e,src:t,class:h.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},S.prototype._setBusEvents=function(){this._bus.on(d.DISPATCH_FRAME_REPORT,function(e,t){this._onCompleteCallback&&this._onCompleteCallback.call(null,e.err,e.payload),this._frame.close(),this._onCompleteCallback=null,t&&t()}.bind(this)),this._bus.on(w,function(e){e(this.state)}.bind(this))},S.prototype.open=function(e,t){if(e=e||{},this._frame=this._getFrameForEnvironment(e),this._frame.initialize(t),!(this._frame instanceof o)){if(E(this.state,e.state),this._onCompleteCallback=t,this._frame.open(),this.isFrameClosed())return this._cleanupFrame(),void(t&&t(ne
2w v(f.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},S.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},S.prototype.close=function(){this.isFrameClosed()||this._frame.close()},S.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},S.prototype.createHandler=function(e){return e=e||{},{close:function(){e.beforeClose&&e.beforeClose(),this.close()}.bind(this),focus:function(){e.beforeFocus&&e.beforeFocus(),this.focus()}.bind(this)}},S.prototype.createNoopHandler=function(){return{close:T,focus:T}},S.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},S.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},S.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},S.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new v(f.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),h.POPUP_POLL_INTERVAL),this._popupInterval},S.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),r=Boolean(window.popupBridge),l=E({},this._options,e);return r?new o(l):t?new n(l):new c(l)},t.exports=S},{"../../braintree-error":61,"../../constants":62,"../shared/browser-detection":76,"../shared/constants":77,"../shared/errors":78,"../shared/events":79,"./../../assign":59,"./strategies/modal":71,"./strategies/popup":74,"./strategies/popup-bridge":72,"@braintree/iframer":28,"@braintree/uuid":32,framebus:40}],70:[function(e,t,r){"use strict";var n=e("./frame-service");t.exports={create:function(e,t){var r=new n(e);r.initialize(function(){t(r)})}}},{"./frame-service":69}],71:[function(e,t,r){"use strict";var n=e("@braintree/iframer"),o=e("../../../assign").assign,c=e("../../shared/browser-detection"),l={position:"fixed",top:0,left:0,bottom:0,padding:0,margin:0,border:0,outline:"none",zIndex:20001,background:"#FFFFFF"};function d(){}function f(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}f.prototype.initialize=d,f.prototype.open=function(){var e={src:this._options.openFrameUrl,name:this._options.name,scrolling:"yes",height:"100%",width:"100%",style:o({},l),title:"Lightbox Frame"};c.isIos()?(c.isIosWKWebview()&&(this._lockScrolling(),e.style={}),this._el=document.createElement("div"),o(this._el.style,l,{height:"100%",width:"100%",overflow:"auto","-webkit-overflow-scrolling":"touch"}),this._frame=n(e),this._el.appendChild(this._frame)):this._el=this._frame=n(e),this._closed=!1,this._container.appendChild(this._el)},f.prototype.focus=d,f.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},f.prototype.isClosed=function(){return Boolean(this._closed)},f.prototype.redirect=function(e){this._frame.src=e},f.prototype._unlockScrolling=function(){document.body.style.overflow=this._savedBodyProperties.overflowStyle,document.body.style.position=this._savedBodyProperties.positionStyle,window.scrollTo(this._savedBodyProperties.left,this._savedBodyProperties.top),delete this._savedBodyProperties},f.prototype._lockScrolling=function(){var e=document.documentElement;this._savedBodyProperties={left:(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0),top:(window.pageYOffset||e.scrollTop)-(e.clientTop||0),overflowStyle:document.body.style.overflow,positionStyle:document.body.style.position},document.body.style.overflow="hidden",document.body.style.position="fixed",window.scrollTo(0,0)},t.exports=f},{"../../../assign":59,"../../shared/browser-detection":76,"@braintree/iframer":28}],72:[function(e,t,r){"use strict";var n=e("../../../braintree-error"),o=e("../../shared/errors");function c(){}function l(e){this._closed=null,this._options=e}l.prototype.initialize=function(e){var t=this;window.popupBridge.onComplete=function(r,c){var l=!c&&!r;t._closed=!0,r||l?e(new n(o.FRAME_SERVICE_FRAME_CLOSED)):e(null,c)}},l.prototype.open=function(e){var t;t=(e=e||{}).openFrameUrl||this._options.openFrameUrl,this._closed=!1,window.popupBridge.open(t)}
2,l.prototype.focus=c,l.prototype.close=c,l.prototype.isClosed=function(){return Boolean(this._closed)},l.prototype.redirect=function(e){this.open({openFrameUrl:e})},t.exports=l},{"../../../braintree-error":61,"../../shared/errors":78}],73:[function(e,t,r){"use strict";var n=e("../../../shared/constants"),o=e("./position");function c(e,t,r){return void 0!==t?t:o[e](r)}t.exports=function(e){var t=e.height||n.DEFAULT_POPUP_HEIGHT,r=e.width||n.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),l=c("left",e.left,r);return[n.POPUP_BASE_OPTIONS,"height="+t,"width="+r,"top="+o,"left="+l].join(",")}},{"../../../shared/constants":77,"./position":75}],74:[function(e,t,r){"use strict";var n=e("./compose-options");function o(){}function c(e){this._frame=null,this._options=e||{}}c.prototype.initialize=o,c.prototype.open=function(){this._frame=window.open(this._options.openFrameUrl,this._options.name,n(this._options))},c.prototype.focus=function(){this._frame.focus()},c.prototype.close=function(){this._frame.closed||this._frame.close()},c.prototype.isClosed=function(){return!this._frame||Boolean(this._frame.closed)},c.prototype.redirect=function(e){this._frame.location.href=e},t.exports=c},{"./compose-options":73}],75:[function(e,t,r){"use strict";function n(e){return c(window.outerHeight||document.documentElement.clientHeight,e,null==window.screenY?window.screenTop:window.screenY)}function o(e){return c(window.outerWidth||document.documentElement.clientWidth,e,null==window.screenX?window.screenLeft:window.screenX)}function c(e,t,r){return(e-t)/2+r}t.exports={top:n,left:o,center:c}},{}],76:[function(e,t,r){"use strict";t.exports={isIos:e("@braintree/browser-detection/is-ios"),isIosWKWebview:e("@braintree/browser-detection/is-ios-wkwebview"),supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/is-ios":25,"@braintree/browser-detection/is-ios-wkwebview":24,"@braintree/browser-detection/supports-popups":26}],77:[function(e,t,r){"use strict";t.exports={DISPATCH_FRAME_NAME:"dispatch",DISPATCH_FRAME_CLASS:"braintree-dispatch-frame",POPUP_BASE_OPTIONS:"resizable,scrollbars",DEFAULT_POPUP_WIDTH:450,DEFAULT_POPUP_HEIGHT:535,POPUP_POLL_INTERVAL:100,POPUP_CLOSE_TIMEOUT:100}},{}],78:[function(e,t,r){"use strict";var n=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:n.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":61}],79:[function(e,t,r){"use strict";var n=e("../../enumerate");t.exports=n(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":67}],80:[function(e,t,r){"use strict";t.exports=function(e){e=e||window;try{return e.self!==e.top}catch(e){return!0}}},{}],81:[function(e,t,r){"use strict";var n,o={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};function c(e){return e.split(".").slice(-2).join(".")}function l(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((n=n||document.createElement("a")).href=e,t=c(n.hostname),o.hasOwnProperty(t))}t.exports=l},{}],82:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],83:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],84:[function(e,t,r){"use strict";function n(e){var t;for(t in e)if(e.hasOwnProperty(t))return!0;return!1}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&"[object Array]"===Object.prototype.toString.call(e)||!1}function c(e){return e=e||window.location.href,/\?/.test(e)}function l(e){return c(e=e||window.location.href)?(e.split("?")[1]||"").replace(/#.*$/,"").split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]),o=decodeURIComponent(r[1]);return e[n]=o,e},{}):{}}function d(e,t){var r,n,p,c=[];for(p in e)e.hasOwnProperty(p)&&(n=e[p],r=t?o(e)?t+"[]":t+"["+p+"]":p,"object"==typeof n?c.push(d(n,r)):c.push(encodeURIComponent(r)+"="+encodeURIComponent(n)));return c.join("&")}function f(e,t){return e=e||"",null!=t&&"object"==typeof t&&n(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=d(t)),e}t.exports={parse:l,stringify:d,queryify:f,hasQueryParams:c}},{}],85:[function(e,t,r){"use strict";
2t.exports=function(e){return-1===e.indexOf("_")?e:e.toLowerCase().replace(/(\_\w)/g,function(e){return e[1].toUpperCase()})}},{}],86:[function(e,t,r){"use strict";var n=e("./querystring");function o(){var e=window.location.href;try{window.top&&window.top!==window&&window.top.location&&(e=window.top.location.href)}catch(e){}return n.parse(e)}t.exports={getUrlParams:o}},{"./querystring":84}],87:[function(e,t,r){"use strict";function n(e){return e?"":".min"}t.exports=n},{}],88:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],89:[function(e,t,r){"use strict";var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e("./venmo-desktop"));t.exports=function(e){return new n.default(e).initialize()}},{"./venmo-desktop":91}],90:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.VENMO_PAYMENT_CONTEXT_STATUS_QUERY=r.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY=r.UPDATE_PAYMENT_CONTEXT_QUERY=r.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY=r.CREATE_PAYMENT_CONTEXT_QUERY=r.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY=void 0,r.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY="mutation CreateVenmoQRCodePaymentContext($input: CreateVenmoQRCodePaymentContextInput!) {\n  createVenmoQRCodePaymentContext(input: $input) {\n    clientMutationId\n    venmoQRCodePaymentContext {\n      id\n      merchantId\n      createdAt\n      expiresAt\n    }\n  }\n}",r.CREATE_PAYMENT_CONTEXT_QUERY="mutation CreateVenmoPaymentContext($input: CreateVenmoPaymentContextInput!) {\n  createVenmoPaymentContext(input: $input) {\n    clientMutationId\n    venmoPaymentContext {\n      id\n      merchantId\n      createdAt\n      expiresAt\n    }\n  }\n}",r.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY="mutation UpdateVenmoQRCodePaymentContext($input: UpdateVenmoQRCodePaymentContextInput!) {\n  updateVenmoQRCodePaymentContext(input: $input) {\n    clientMutationId\n  }\n}",r.UPDATE_PAYMENT_CONTEXT_QUERY="mutation UpdateVenmoPaymentContextStatus($input: UpdateVenmoPaymentContextStatusInput!) {\n  updateVenmoPaymentContextStatus(input: $input) {\n    clientMutationId\n  }\n}",r.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY="query PaymentContext($id: ID!) {\n  node(id: $id) {\n    ... on VenmoQRCodePaymentContext {\n      status\n      paymentMethodId\n      userName\n    }\n  }\n}",r.VENMO_PAYMENT_CONTEXT_STATUS_QUERY="query PaymentContext($id: ID!) {\n  node(id: $id) {\n    ... on VenmoPaymentContext {\n      status\n      paymentMethodId\n      userName\n      payerInfo {\n        firstName\n        lastName\n        phoneNumber\n        email\n        externalId\n        userName\n        billingAddress {\n          fullName\n          addressLine1\n          addressLine2\n          adminArea1\n          adminArea2\n          postalCode\n          countryCode\n        }\n        shippingAddress {\n          fullName\n          addressLine1\n          addressLine2\n          adminArea1\n          adminArea2\n          postalCode\n          countryCode\n        }\n      }\n    }\n  }\n}"},{}],91:[function(e,t,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var s,i=1,t=arguments.length;i<t;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(e[p]=s[p]);return e},n.apply(this,arguments)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var c=o(e("framebus")),l=o(e("@braintree/iframer")),d=o(e("@braintree/uuid")),f=e("../shared/events"),h=e("./queries"),m=1e3,y=2e3,v=function(){function e(e){this.isHidden=!0,this.env=e.environment,this.id=d.default(),this.profileId=e.profileId,this.displayName=e.displayName,this.paymentMethodUsage=e.paymentMethodUsage,this.riskCorrelationId=e.riskCorrelationId,this.shouldUseLegacyQRCodeMutation=!this.paymentMethodUsage;var t=e.url+"#"+this.env+"_"+this.id;this.bus=new c.default({channel:this.id,verifyDomain:e.verifyDomain,targetFrames:[]}),this.apiRequest=e.apiRequest,this.sendEvent=e.sendEvent,this.Promise=e.Promise,this.alertBox=document.createElement("div"),this.alertBox.setAttribute("data-venmo-desktop-id",this.id),this.alertBox.setAttribute("role","alert"),this.alertBox.style.position="fixed",this.alertBox.style.display="none",this.alertBox.style.height="1px",this.alertBox.style.width="1px",this.alertBox.style.overflow="hidden",this.alertBox.style.zIndex="0",this.iframe=l.default({src:t,name:"venmo-desktop-iframe",style:{display:"none",position:"fixed",top:"0",bottom:"0",right:"0",left:"0",height:"100%",width:"100%",zIndex:"9999999"},title:"Venmo Desktop"}),this.bus.addTargetFrame(this.iframe)}return e.prototype.initialize=function(){var e=this;return new this.Promise(function(t){e.bus.on(f.VENMO_DESKTOP_IFRAME_READY,function(){t(e)}),e.bus.on(f.VENMO_DESKTOP_REQUEST_NEW_QR_CODE,function(){e.sendEvent("venmo.tokenize.desktop.restarted-from-error-view",{payment_method_usage:e.paymentMethodUsage}),e.startPolling()}),document.body.appendChild(e.iframe),document.body.appendChild(e.alertBox)})},e.prototype.launchDesktopFlow=function(){var e=this;this.isHidden=!1;var t=new this.Promise(function(t,r){e.launchDesktopPromiseRejectFunction=r;var n=function(){e.bus.off(f.VENMO_DESKTOP_CUSTOMER_CANCELED,c),e.bus.off(f.VENMO_DESKTOP_UNKNOWN_ERROR,o)},o=function(t){n(),e.sendEvent("venmo.tokenize.desktop.unknown-error",{payment_method_usage:e.paymentMethodUsage}),r({allowUIToHandleError:!1,reason:"UNKNOWN_ERROR",err:t})},c=function(){n(),e.updateVenmoDesktopPaymentContext("CANCELED"),e.sendEvent("venmo.tokenize.desktop.status-change.canceled-from-modal",{payment_method_usage:e.paymentMethodUsage}),r({allowUIToHandleError:!1,reason:"CUSTOMER_CANCELED"})};e.completedHandler=function(e){n(),t(e)},e.bus.on(f.VENMO_DESKTOP_CUSTOMER_CANCELED,c),e.bus.on(f.VENMO_DESKTOP_UNKNOWN_ERROR,o)});return this.iframe.style.display="block",this.setAlert("Generating a QR code, get your Venmo app ready"),this.iframe.focus(),this.startPolling(),t.then(function(t){return delete e.venmoContextId,delete e.launchDesktopPromiseRejectFunction,t}).catch(function(t){return delete e.venmoContextId,delete e.launchDesktopPromiseRejectFunction,e.Promise.reject(t)})},e.prototype.triggerCompleted=function(e){var t=this;this.isHidden||setTimeout(function(){t.completedHandler&&t.completedHandler(e),delete t.completedHandler},y)}
2,e.prototype.triggerRejected=function(e){this.launchDesktopPromiseRejectFunction&&this.launchDesktopPromiseRejectFunction(e)},e.prototype.hideDesktopFlow=function(){this.setAlert(""),this.iframe.style.display="none",this.bus.emit(f.VENMO_DESKTOP_CLOSED_FROM_PARENT),this.isHidden=!0},e.prototype.displayError=function(e){this.isHidden||(this.bus.emit(f.VENMO_DESKTOP_DISPLAY_ERROR,{message:e}),this.setAlert(e))},e.prototype.displayQRCode=function(e,t){this.isHidden||(this.bus.emit(f.VENMO_DESKTOP_DISPLAY_QR_CODE,{id:e,merchantId:t}),this.sendEvent("venmo.desktop-qr.display-qr-code.status.presented",{context_id:this.venmoContextId,payment_method_usage:this.paymentMethodUsage}),this.setAlert("To scan the QR code, open your Venmo app"))},e.prototype.authorize=function(){this.isHidden||(this.bus.emit(f.VENMO_DESKTOP_AUTHORIZE),this.setAlert("Venmo account authorized"))},e.prototype.authorizing=function(){this.isHidden||(this.bus.emit(f.VENMO_DESKTOP_AUTHORIZING),this.sendEvent("venmo.desktop-qr.display-qr-code.status.authorizing",{context_id:this.venmoContextId,payment_method_usage:this.paymentMethodUsage}),this.setAlert("Authorize on your Venmo app"))},e.prototype.startPolling=function(){var e=this;return this.createVenmoDesktopPaymentContext().then(function(t){var r=new Date(t.expiresAt).getTime()-new Date(t.createdAt).getTime(),n=Date.now()+r;return e.displayQRCode(t.id,t.merchantId),e.pollForStatusChange(t.status,n)}).then(function(t){if(t){var r=t.userName||"";r="@"+r.replace("@",""),e.triggerCompleted({paymentMethodNonce:t.paymentMethodId,username:r,payerInfo:t.payerInfo,id:e.venmoContextId||""})}}).catch(function(t){t.allowUIToHandleError||(e.sendEvent("venmo.tokenize.desktop.unhandled-error",{payment_method_usage:e.paymentMethodUsage}),e.triggerRejected(t))})},e.prototype.pollForStatusChange=function(e,t){var r=this;return this.venmoContextId?Date.now()>t?this.updateVenmoDesktopPaymentContext("EXPIRED").then(function(){return r.displayError("Something went wrong"),r.sendEvent("venmo.tokenize.desktop.status-change.sdk-timeout",{payment_method_usage:r.paymentMethodUsage}),r.Promise.reject({allowUIToHandleError:!0,reason:"TIMEOUT"})}):this.lookupVenmoDesktopPaymentContext().then(function(n){if(!r.venmoContextId||!n)return r.Promise.resolve();var o=n.status;if(o!==e)switch(e=o,r.sendEvent("venmo.tokenize.desktop.status-change."+e.toLowerCase(),{payment_method_usage:r.paymentMethodUsage}),e){case"CREATED":break;case"EXPIRED":case"FAILED":case"CANCELED":var c="CANCELED"===e?"The authorization was canceled":"Something went wrong";return r.displayError(c),r.Promise.reject({allowUIToHandleError:!0,reason:e});case"SCANNED":r.authorizing();break;case"APPROVED":return r.authorize(),r.Promise.resolve(n)}return new r.Promise(function(n,o){setTimeout(function(){r.pollForStatusChange(e,t).then(n).catch(o)},m)})}):this.Promise.resolve()},e.prototype.teardown=function(){this.bus.teardown(),this.iframe.parentNode&&this.iframe.parentNode.removeChild(this.iframe),this.alertBox.parentNode&&this.alertBox.parentNode.removeChild(this.alertBox)},e.prototype.setAlert=function(e){this.alertBox.style.display=e?"block":"none",this.alertBox.textContent=e},e.prototype.createPaymentContextFromGraphqlLegacyQRCodeMutation=function(e){return this.apiRequest(h.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY,{input:{environment:this.env,intent:e}}).then(function(e){return e.createVenmoQRCodePaymentContext.venmoQRCodePaymentContext})},e.prototype.createPaymentContextFromGraphQL=function(e){var t=this,input={intent:e,paymentMethodUsage:this.paymentMethodUsage,venmoRiskCorrelationId:this.riskCorrelationId,customerClient:"DESKTOP"};return this.profileId&&(input.merchantProfileId=this.profileId),this.displayName&&(input.displayName=this.displayName),t.sendEvent("venmo.desktop-qr.create-payment-context.started",{payment_method_usage:t.paymentMethodUsage}),this.apiRequest(h.CREATE_PAYMENT_CONTEXT_QUERY,{input:input}).then(function(e){return t.sendEvent("venmo.desktop-qr.create-payment-context.succeeded",{context_id:e.createVenmoPaymentContext.venmoPaymentContext.id,payment_method_usage:t.paymentMethodUsage}),e.createVenmoPaymentContext.venmoPaymentContext}).catch(function(e){throw t.sendEvent("venmo.desktop-qr.create-payment-context.failed",{payment_method_usage:t.paymentMethodUsage}),e})},e.prototype.createVenmoDesktopPaymentContext=function(){var e=this;return(this.shouldUseLegacyQRCodeMutation?this.createPaymentContextFromGraphqlLegacyQRCodeMutation("PAY_FROM_APP"):this.createPaymentContextFromGraphQL("PAY_FROM_APP")).then(function(t){e.venmoContextId=t.id;var r=e.profileId||t.merchantId;return{id:t.id,status:t.status,merchantId:r,createdAt:t.createdAt,expiresAt:t.expiresAt}})},e.prototype.updateVenmoDesktopPaymentContext=function(e,t){if(void 0===t&&(t={}),!this.venmoContextId)return this.Promise.resolve();var data={input:n({id:this.venmoContextId,status:e},t)},r=this.shouldUseLegacyQRCodeMutation?h.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY:h.UPDATE_PAYMENT_CONTEXT_QUERY;return this.apiRequest(r,data).then(function(){})},e.prototype.lookupVenmoDesktopPaymentContext=function(){var e=this;if(!e.venmoContextId)return e.Promise.resolve();e.sendEvent("venmo.desktop-qr.query-payment-context.started",{context_id:e.venmoContextId,payment_method_usage:e.paymentMethodUsage});var t=e.shouldUseLegacyQRCodeMutation?h.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY:h.VENMO_PAYMENT_CONTEXT_STATUS_QUERY;return e.apiRequest(t,{id:e.venmoContextId}).then(function(t){return e.sendEvent("venmo.desktop-qr.query-payment-context.succeeded",{context_id:e.venmoContextId,payment_method_usage:e.paymentMethodUsage}),t.node}).catch(function(t){throw e.sendEvent("venmo.desktop-qr.query-payment-context.failed",{context_id:e.venmoContextId,payment_method_usage:e.paymentMethodUsage}),t})},e}();r.default=v},{"../shared/events":96,"./queries":90,"@braintree/iframer":28,"@braintree/uuid":32,framebus:40}],92:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/basic-component-verification"),c=e("../lib/create-deferred-client"),l=e("../lib/create-assets-url"),d=e("./shared/errors"),f=e("@braintree/wrap-promise"),h=e("../lib/braintree-error"),m=e("./venmo"),y=e("./shared/supports-venmo"),v="3.144.0",_=e("./shared/browser-detection");function E(e){var t="Venmo";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){var r,o,f=_.isIncognito().catch(function(){return{isPrivate:!1,browserName:"unknown"}});return e.profileId&&"string"!=typeof e.profileId?Promise.reject(new h(d.VENMO_INVALID_PROFILE_ID)):e.deepLinkReturnUrl&&"string"!=typeof e.deepLinkReturnUrl?Promise.reject(new h(d.VENMO_INVALID_DEEP_LINK_RETURN_URL)):e.riskCorrelationId&&"string"!=typeof e.riskCorrelationId?Promise.reject(new h(d.VENMO_INVALID_RISK_CORRELATION_ID)):(r=c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:t}).then(function(t){var r=t.getConfiguration();return e.client=t,r.gatewayConfiguration.payWithVenmo?t:Promise.reject(new h(d.VENMO_NOT_ENABLED))}),Promise.all([r,f]).then(function(t){var c=t[1];return e._isIncognito=c.isPrivate,e.createPromise=r,o=new m(e),n.sendEvent(r,"venmo.initialized"),o}))})}function w(e){return y.isBrowserSupported(e)}t.exports={create:f(E),isBrowserSupported:w,VERSION:v}},{"../lib/analytics":57,"../lib/basic-component-verification":60,"../lib/braintree-error":61,"../lib/create-assets-url":64,"../lib/create-deferred-client":66,"./shared/browser-detection":93,"./shared/errors":95,"./shared/supports-venmo":98,"./venmo":100,"@braintree/wrap-promise":36}],93:[function(e,t,r){"use strict";var n,o=e("@braintree/browser-detection/is-android"),c=e("@braintree/browser-detection/is-chrome"),l=e("@braintree/browser-detection/is-ios"),d=e("@braintree/browser-detection/is-ios-safari"),f=e("@braintree/browser-detection/is-ios-webview");try{n=e("@braintree/browser-detection/is-incognito")}catch(e){n=function(){return Promise.resolve({isPrivate:!1,browserName:"unknown"})}}function h(){return o()&&window.navigator.userAgent.toLowerCase().indexOf("wv")>-1}
2function m(){return!!l()&&(f()||!d())}function y(){var e=window.navigator.userAgent.toLowerCase();return e.indexOf("huawei")>-1&&e.indexOf("fban")>-1||!!o()&&(e.indexOf("fb_iab")>-1||e.indexOf("instagram")>-1)}function v(){return l()&&c()}function _(){return h()||f()}t.exports={isAndroid:o,isAndroidWebview:h,isChrome:c,isIos:l,isIosChrome:v,isIosSafari:d,isIosWebview:f,isWebview:_,isFacebookOwnedBrowserOnAndroid:y,doesNotSupportWindowOpenInIos:m,isIncognito:n}},{"@braintree/browser-detection/is-android":19,"@braintree/browser-detection/is-chrome":20,"@braintree/browser-detection/is-incognito":21,"@braintree/browser-detection/is-ios":25,"@braintree/browser-detection/is-ios-safari":22,"@braintree/browser-detection/is-ios-webview":23}],94:[function(e,t,r){"use strict";t.exports={DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY:500,DEFAULT_PROCESS_RESULTS_DELAY:1e3,VENMO_APP_OR_MOBILE_AUTH_URL:"https://venmo.com/go/checkout",VENMO_MOBILE_APP_AUTH_ONLY_URL:"https://venmo.com/braintree/checkout",VENMO_WEB_LOGIN_URL:"https://account.venmo.com/go/web",VENMO_WEB_LOGIN_SANDBOX_URL:"https://account.ext.live.venmo.com/go/web"}},{}],95:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={VENMO_NOT_ENABLED:{type:n.types.MERCHANT,code:"VENMO_NOT_ENABLED",message:"Venmo is not enabled for this merchant."},VENMO_TOKENIZATION_REQUEST_ACTIVE:{type:n.types.MERCHANT,code:"VENMO_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE:{type:n.types.MERCHANT,code:"VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE",message:"No tokenization in progress."},VENMO_APP_FAILED:{type:n.types.UNKNOWN,code:"VENMO_APP_FAILED",message:"Venmo app encountered a problem."},VENMO_APP_CANCELED:{type:n.types.CUSTOMER,code:"VENMO_APP_CANCELED",message:"Venmo app authorization was canceled."},VENMO_CANCELED:{type:n.types.CUSTOMER,code:"VENMO_CANCELED",message:"User canceled Venmo authorization, or Venmo app is not available."},VENMO_CUSTOMER_CANCELED:{type:n.types.CUSTOMER,code:"VENMO_CUSTOMER_CANCELED",message:"User canceled Venmo authorization."},VENMO_NETWORK_ERROR:{type:n.types.NETWORK,code:"VENMO_NETWORK_ERROR",message:"Something went wrong making the request"},VENMO_DESKTOP_CANCELED:{type:n.types.CUSTOMER,code:"VENMO_DESKTOP_CANCELED",message:"User canceled Venmo authorization by closing the Venmo Desktop modal."},VENMO_TOKENIZATION_CANCELED_BY_MERCHANT:{type:n.types.MERCHANT,code:"VENMO_TOKENIZATION_CANCELED_BY_MERCHANT",message:"The Venmo tokenization was canceled by the merchant."},VENMO_DESKTOP_UNKNOWN_ERROR:{type:n.types.UNKNOWN,code:"VENMO_DESKTOP_UNKNOWN_ERROR",message:"Something went wrong with the Venmo Desktop flow."},VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED:{type:n.types.NETWORK,code:"VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED",message:"Something went wrong creating the Venmo Payment Context."},VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR:{type:n.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR",message:"Something went wrong during mobile polling."},VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED:{type:n.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED",message:"The Venmo authorization request is expired."},VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED:{type:n.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED",message:"The Venmo authorization was canceled"},VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT:{type:n.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT",message:"Customer took too long to authorize Venmo payment."},VENMO_MOBILE_POLLING_TOKENIZATION_NO_CONTEXT_ID:{type:n.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_NO_CONTEXT_ID",message:"No Venmo payment context ID available."},VENMO_MOBILE_POLLING_TOKENIZATION_FAILED:{type:n.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_FAILED",message:"The Venmo authorization failed."},VENMO_INVALID_PROFILE_ID:{type:n.types.MERCHANT,code:"VENMO_INVALID_PROFILE_ID",message:"Venmo profile ID is invali
2d."},VENMO_INVALID_DEEP_LINK_RETURN_URL:{type:n.types.MERCHANT,code:"VENMO_INVALID_DEEP_LINK_RETURN_URL",message:"Venmo deep link return URL is invalid."},VENMO_INVALID_RISK_CORRELATION_ID:{type:n.types.MERCHANT,code:"VENMO_INVALID_RISK_CORRELATION_ID",message:"Venmo risk correlation ID is invalid."},VENMO_TOKENIZATION_FAILED:{type:n.types.UNKNOWN,code:"VENMO_TOKENIZATION_FAILED",message:"Venmo encountered a problem"},VENMO_ECD_DISABLED:{type:n.types.MERCHANT,code:"ECD_DISABLED",message:"Cannot collect customer data when ECD is disabled. Enable this feature in the Control Panel to collect this data."}}},{"../../lib/braintree-error":61}],96:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.VENMO_DESKTOP_UNKNOWN_ERROR=r.VENMO_DESKTOP_REQUEST_NEW_QR_CODE=r.VENMO_DESKTOP_CLOSED_FROM_PARENT=r.VENMO_DESKTOP_IFRAME_READY=r.VENMO_DESKTOP_DISPLAY_QR_CODE=r.VENMO_DESKTOP_DISPLAY_ERROR=r.VENMO_DESKTOP_CUSTOMER_CANCELED=r.VENMO_DESKTOP_AUTHORIZING=r.VENMO_DESKTOP_AUTHORIZE=r.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT=void 0,r.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT="VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT",r.VENMO_DESKTOP_AUTHORIZE="VENMO_DESKTOP_AUTHORIZE",r.VENMO_DESKTOP_AUTHORIZING="VENMO_DESKTOP_AUTHORIZING",r.VENMO_DESKTOP_CUSTOMER_CANCELED="VENMO_DESKTOP_CUSTOMER_CANCELED",r.VENMO_DESKTOP_DISPLAY_ERROR="VENMO_DESKTOP_DISPLAY_ERROR",r.VENMO_DESKTOP_DISPLAY_QR_CODE="VENMO_DESKTOP_DISPLAY_QR_CODE",r.VENMO_DESKTOP_IFRAME_READY="VENMO_DESKTOP_IFRAME_READY",r.VENMO_DESKTOP_CLOSED_FROM_PARENT="VENMO_DESKTOP_CLOSED_FROM_PARENT",r.VENMO_DESKTOP_REQUEST_NEW_QR_CODE="VENMO_DESKTOP_REQUEST_NEW_QR_CODE",r.VENMO_DESKTOP_UNKNOWN_ERROR="VENMO_DESKTOP_UNKNOWN_ERROR"},{}],97:[function(e,t,r){"use strict";var n=e("./constants");function o(e){return e.useAllowDesktopWebLogin?e.enableVenmoSandbox&&e.environment&&"production"!==e.environment?n.VENMO_WEB_LOGIN_SANDBOX_URL:n.VENMO_WEB_LOGIN_URL:e.mobileWebFallBack?n.VENMO_APP_OR_MOBILE_AUTH_URL:n.VENMO_MOBILE_APP_AUTH_ONLY_URL}t.exports=o},{"./constants":94}],98:[function(e,t,r){"use strict";var n=e("./browser-detection"),o=e("../../lib/in-iframe");function c(e){return{merchantAllowsDesktopBrowsers:!0===((e=e||{}).allowDesktopWebLogin||e.allowDesktop),merchantAllowsReturningToNewBrowserTab:!e.hasOwnProperty("allowNewBrowserTab")||e.allowNewBrowserTab,merchantAllowsNonDefaultBrowsers:!e.hasOwnProperty("allowNonDefaultBrowsers")||e.allowNonDefaultBrowsers,merchantAllowsWebviews:!e.hasOwnProperty("allowWebviews")||e.allowWebviews}}function l(){var e=n.isAndroid(),t=e&&n.isChrome(),r=n.isIos(),o=n.isIosSafari();return{isAndroid:e,isAndroidChrome:t,isIos:r,isIosSafari:o,isMobileDevice:e||r,isMobileDeviceThatSupportsReturnToSameTab:o||t,isWebview:n.isAndroidWebview()||n.isIosWebview()}}function d(e,t){return(!((e.merchantAllowsNonDefaultBrowsers||e.merchantAllowsReturningToNewBrowserTab)&&!o())||!n.isIosChrome())&&(t.isIos&&!t.isIosSafari||t.isAndroid&&!t.isAndroidChrome?!e.merchantAllowsReturningToNewBrowserTab:n.isFacebookOwnedBrowserOnAndroid())}function f(e,t){return!e.merchantAllowsWebviews&&t.isWebview}function h(){var e=l();return e.isMobileDevice&&!e.isIosSafari&&!e.isAndroidChrome}function m(e){var t=c(e),r=l();return!(h()&&!t.merchantAllowsNonDefaultBrowsers)&&!f(t,r)&&!d(t,r)&&(!!r.isMobileDevice||t.merchantAllowsDesktopBrowsers)}t.exports={isBrowserSupported:m,isNonDefaultBrowser:h}},{"../../lib/in-iframe":80,"./browser-detection":93}],99:[function(e,t,r){"use strict";var n=e("../../lib/frame-service/external"),o=e("../../lib/use-min"),c=e("@braintree/extended-promise"),l=e("../shared/errors"),d=e("../../lib/braintree-error"),f="3.144.0",h='<svg width="198" height="58" viewBox="0 0 198 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path fill-rule="evenodd" clip-rule="evenodd" d="M43.0702 13.6572C44.1935 15.4585 44.6999 17.3139 44.6999 19.6576C44.6999 27.1328 38.1277 36.8436 32.7935 43.6625H20.6099L15.7236 15.2939L26.3917 14.3105L28.9751 34.4966C31.389 30.6783 34.3678 24.6779 34.3678 20.587C34.3678 18.3477 33.9727 16.8225 33.3553 15.5666L43.0702 13.6572Z" fill="white"/>\n  <path fill-rule="evenodd" clip-rule="evenodd" d="M56.8965 26.1491C58.8596 26.1491 63.8018 25.2772 63.8018 22.5499C63.8018 21.2402 62.8481 20.587 61.7242 20.587C59.7579 20.587 57.1776 22.8763 56.8965 26.1491ZM56.6715 31.5506C56.6715 34.8807 58.5787 36.1873 61.107 36.1873C63.8603 36.1873 66.4966 35.534 69.923 33.8433L68.6324 42.3523C66.2183 43.4976 62.4559 44.2617 58.8039 44.2617C49.5403 44.2617 46.2249 38.8071 46.2249 31.9879C46.2249 23.1496 51.6179 13.765 62.7365 13.765C68.858 13.765 72.2809 17.0949 72.2809 21.7317C72.2815 29.2066 62.4005 31.4965 56.6715 31.5506Z" fill="white"/>\n  <path fill-rule="evenodd" clip-rule="evenodd" d="M103.067 20.3142C103.067 21.4052 102.897 22.9875 102.727 24.0216L99.5262 43.6622H89.1385L92.0585 25.658C92.1139 25.1696 92.284 24.1865 92.284 23.6411C92.284 22.3314 91.4414 22.0047 90.4282 22.0047C89.0826 22.0047 87.7337 22.6042 86.8354 23.0418L83.5234 43.6625H73.0772L77.8495 14.257H86.8908L87.0052 16.6041C89.1382 15.2404 91.9469 13.7656 95.932 13.7656C101.212 13.765 103.067 16.3845 103.067 20.3142Z" fill="white"/>\n  <path fill-rule="evenodd" clip-rule="evenodd" d="M133.906 16.9841C136.881 14.9131 139.69 13.765 143.563 13.765C148.897 13.765 150.753 16.3845 150.753 20.3142C150.753 21.4052 150.583 22.9875 150.413 24.0216L147.216 43.6622H136.825L139.801 25.2774C139.855 24.786 139.971 24.1865 139.971 23.8063C139.971 22.3317 139.128 22.0047 138.115 22.0047C136.824 22.0047 135.535 22.5501 134.577 23.0418L131.266 43.6625H120.878L123.854 25.2777C123.908 24.7863 124.02 24.1868 124.02 23.8065C124.02 22.332 123.177 22.0049 122.167 22.0049C120.819 22.0049 119.473 22.6045 118.574 23.0421L115.26 43.6628H104.817L109.589 14.2573H118.52L118.8 16.7122C120.878 15.241 123.684 13.7662 127.446 13.7662C130.704 13.765 132.837 15.129 133.906 16.9841Z" fill="white"/>\n  <path fill-rule="evenodd" clip-rule="evenodd" d="M171.426 25.5502C171.426 23.1496 170.808 21.513 168.956 21.513C164.857 21.513 164.015 28.55 164.015 32.1498C164.015 34.8807 164.802 36.5709 166.
2653 36.5709C170.528 36.5709 171.426 29.1497 171.426 25.5502ZM153.458 31.7152C153.458 22.442 158.511 13.765 170.136 13.765C178.896 13.765 182.098 18.7854 182.098 25.7148C182.098 34.8805 177.099 44.3723 165.194 44.3723C156.378 44.3723 153.458 38.7525 153.458 31.7152Z" fill="white"/>\n</svg>',m="Tap cancel payment to cancel and return to the business. Continue payment will relaunch the payment window.",y=400,v=570,_={backdrop:"venmo-desktop-web-backdrop",backdropHidden:"venmo-desktop-web-backdrop.hidden",backdropContainer:"venmo-backdrop-container",cancelButton:"venmo-popup-cancel-button",continueButton:"venmo-popup-continue-button",message:"venmo-message",instructions:"venmo-instructions",venmoLogo:"venmo-full-logo"};function E(e){var t=e.frameServiceInstance,r=e.venmoUrl,n=e.checkForStatusChange,o=e.cancelTokenization,f=e.checkPaymentContextStatus,h=new c,m=e.analyticsCallback;return document.getElementById(_.continueButton).addEventListener("click",function(){t.focus()}),document.getElementById(_.cancelButton).addEventListener("click",function(){t.close(),o(),A()}),t.open({},function(e){var r=1;e?(m&&m("login","failed"),h.reject(e)):(m&&(m("login","succeeded"),m("return-to-merchant","start")),n(r).then(function(data){m&&m("return-to-merchant","succeeded"),h.resolve(data)}).catch(function(e){f().then(function(t){"CREATED"===t.status?(m&&m("return-to-merchant","canceled"),h.reject(new d(l.VENMO_CUSTOMER_CANCELED))):(m&&m("return-to-merchant","failed"),h.reject(e))})})),t.close(),A()}),t.redirect(r),h}function w(){return{top:Math.round((window.outerHeight-v)/2)+window.screenTop,left:Math.round((window.outerWidth-y)/2)+window.screenLeft}}function A(){document.getElementById("venmo-desktop-web-backdrop").classList.add("hidden")}function T(){var e=["#"+_.backdropHidden+" {","display: none;","}","#"+_.backdrop+" {","z-index: 3141592632;","cursor: pointer;","position: fixed;","top: 0;","left: 0;","bottom: 0;","width: 100%;","background: rgba(0, 0, 0, 0.8);","}"],t=["#"+_.backdropContainer+" {","display: flex;","align-content: center;","justify-content: center;","align-items: center;","width: 100%;","height: 100%;","flex-direction: column;","}"],r=["#"+_.cancelButton+" {","height: 24px;","width: 380px;","font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;","font-style: normal;","font-weight: 700;","font-size: 18px;","line-height: 24px;","text-align: center;","background-color: transparent;","border: none;","color: #FFFFFF;","margin-top: 28px;","}"],n=["#"+_.continueButton+" {","width: 400px;","height: 50px;","background: #0074DE;","border-radius: 24px;","border: none;","font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;","font-style: normal;","font-weight: 700;","font-size: 18px;","color: #FFFFFF;","margin-top: 44px;","}"],o=["#"+_.message+" {","font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;","font-style: normal;","font-weight: 500;","font-size: 24px;","line-height: 32px;","text-align: center;","color: #FFFFFF;","margin-top: 32px;","}"],c=["#"+_.instructions+" {","font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;","font-style: normal;","font-weight: 400;","font-size: 16px;","line-height: 20px;","text-align: center;","color: #FFFFFF;","margin-top: 16px;","width: 400px;","}"];return e.concat(t,r,n,o,c).join("\n")}function O(e){var t,r,n,o,c,l,d,f,y=document.getElementById(_.backdrop);y?y.classList.remove("hidden"):(t=document.createElement("style"),r=document.createElement("div"),n=document.createElement("div"),o=document.createElement("div"),c=document.createElement("div"),l=document.createElement("div"),d=document.createElement("button"),f=document.createElement("button"),e&&(t.nonce=e),t.id="venmo-desktop-web__injected-styles",t.innerHTML=T(),r.id=_.backdrop,n.id=_.backdropContainer,o.id=_.venmoLogo,o.innerHTML=h,c.id=_.message,c.innerText="What would you like to do?",l.id=_.instructions,l.innerText=m,d.id=_.continueButton,d.innerText="Continue payment",f.id=_.cancelButton,f.innerText="Cancel payment",document.head.appendChild(t),n.appendChild(o),n.appendChild(c),n.appendChild(l),n.appendChild(d),n.appendChild(f),r.appendChild(n),document.body.appendChild(r),r.addEventListener("click",function(e){e.stopPropagation()}))}function S(e){return O(e.styleCspNonce),e.analyticsCallback&&e.analyticsCallback("login","start"),E(e)}function I(e){var t=new c,r="venmoDesktopWebLogin",l=e.assetsUrl,d=e.debug||!1,h=w(),m=l+"/web/"+f+"/html";return n.create({name:r,dispatchFrameUrl:m+"/dispatch-frame"+o(d)+".html",openFrameUrl:m+"/venmo-landing-frame"+o(d)+".html",top:h.top,left
2:h.left,height:v,width:y},function(e){t.resolve(e)}),t}c.suppressUnhandledPromiseMessage=!0,t.exports={runWebLogin:S,openPopup:E,setupDesktopWebLogin:I,POPUP_WIDTH:y,POPUP_HEIGHT:v}},{"../../lib/braintree-error":61,"../../lib/frame-service/external":70,"../../lib/use-min":87,"../shared/errors":95,"@braintree/extended-promise":27}],100:[function(e,t,r){"use strict";var n=e("../lib/analytics"),o=e("../lib/assign").assign,c=e("./shared/supports-venmo"),l=e("./shared/browser-detection"),d=e("./shared/constants"),f=e("./shared/errors"),h=e("../lib/querystring"),m=e("../lib/is-verified-domain"),y=e("../lib/methods"),v=e("../lib/convert-methods-to-error"),_=e("@braintree/wrap-promise"),E=e("../lib/braintree-error"),w=e("../lib/in-iframe"),A=e("@braintree/extended-promise"),T=e("./shared/get-venmo-url"),O=e("./shared/web-login-backdrop"),S=e("../lib/snake-case-to-camel-case"),I=e("../lib/url-params"),C=e("./external/"),N=e("./external/queries"),P="3.144.0",R=250,L=3e5;function D(e){var t=this;this._allowDesktopWebLogin=Boolean(e.allowDesktopWebLogin),this._mobileWebFallBack=Boolean(e.mobileWebFallBack),this._createPromise=e.createPromise,this._allowNewBrowserTab=!1!==e.allowNewBrowserTab,this._allowWebviews=!1!==e.allowWebviews,this._allowDesktop=!0===e.allowDesktop,this._useRedirectForIOS=!0===e.useRedirectForIOS,this._profileId=e.profileId,this._displayName=e.displayName,this._deepLinkReturnUrl=e.deepLinkReturnUrl,this._ignoreHistoryChanges=e.ignoreHistoryChanges,this._paymentMethodUsage=(e.paymentMethodUsage||"").toUpperCase(),this._shouldUseLegacyFlow=!this._paymentMethodUsage,this._requireManualReturn=!0===e.requireManualReturn,this._useDesktopQRFlow=this._allowDesktop&&this._isDesktop()&&!this._allowDesktopWebLogin,this._useAllowDesktopWebLogin=this._allowDesktopWebLogin&&this._isDesktop(),this._cannotHaveReturnUrls=w()||this._requireManualReturn,this._allowAndroidRecreation=!1!==e.allowAndroidRecreation,this._allowNonDefaultBrowsers=!1!==e.allowNonDefaultBrowsers,this._maxRetryCount=3,this._collectCustomerBillingAddress=e.collectCustomerBillingAddress||!1,this._collectCustomerShippingAddress=e.collectCustomerShippingAddress||!1,this._cancelOnReturnToBrowser=!0===e.cancelOnReturnToBrowser&&!l.isAndroid(),this._isFinalAmount=e.isFinalAmount||!1,this._lineItems=e.lineItems,this._subTotalAmount=e.subTotalAmount,this._discountAmount=e.discountAmount,this._taxAmount=e.taxAmount,this._shippingAmount=e.shippingAmount,this._totalAmount=e.totalAmount,this._cspNonce=(this._mobileWebFallBack||this._allowDesktopWebLogin)&&(e.styleCspNonce||!1),this._mobilePollingInterval=R,this._mobilePollingExpiresThreshold=L,this._pollCount=0,this._riskCorrelationId=e.riskCorrelationId,this._shouldCreateVenmoPaymentContext=this._cannotHaveReturnUrls||!this._shouldUseLegacyFlow,this._isIncognito=e._isIncognito,this._enableVenmoSandbox=e.enableVenmoSandbox||!1,n.sendEvent(this._createPromise,"venmo.options.is-incognito."+String(Boolean(this._isIncognito))),n.sendEvent(this._createPromise,"venmo.desktop-flow.configured."+String(Boolean(this._allowDesktop))),this.hasTokenizationResult()?n.sendEvent(this._createPromise,"venmo.appswitch.return-in-new-tab"):this._useDesktopQRFlow?this._createPromise=this._createPromise.then(function(e){var r=e.getConfiguration().gatewayConfiguration;return C({url:r.assetsUrl+"/web/"+P+"/html/venmo-desktop-frame.html",environment:"production"===r.environment?"PRODUCTION":"SANDBOX",profileId:t._profileId||r.payWithVenmo.merchantId,paymentMethodUsage:t._paymentMethodUsage,riskCorrelationId:t._riskCorrelationId,displayName:t._displayName,Promise:Promise,apiRequest:function(t,data){return e.request({api:"graphQLApi",data:{query:t,variables:data}}).then(function(e){return e.data})},sendEvent:function(e,r){n.sendEventPlus(t._createPromise,e,r||{})},verifyDomain:m}).then(function(r){return t._venmoDesktopInstance=r,n.sendEvent(t._createPromise,"venmo.desktop-flow.presented"),e}).catch(function(){return n.sendEvent(t._createPromise,"venmo.desktop-flow.setup-failed"),t._useDesktopQRFlow=!1,e})}):this._shouldCreateVenmoPaymentContext&&(this._createPromise=this._createPromise.then(function(e){var r,o,c=t._determineAnalyticsCategory(),l=t._cannotHaveReturnUrls?"manual-return":"mobile-payment-context",d=e.getConfiguration();return o=O.setupDesktopWebLogin({assetsUrl:d.gatewayConfiguration.assetsUrl,debug:d.isDebug}).then(function(e){t._frameServiceInstance=e}).catch(function(e){return e}
2),t._mobilePollingContextEnvironment=d.gatewayConfiguration.environment.toUpperCase(),r=t._createVenmoPaymentContext(e).then(function(){return n.sendEventPlus(t._createPromise,"venmo."+l+".presented",{platform:c}),e}).catch(function(e){return n.sendEvent(t._createPromise,"venmo."+l+".setup-failed"),Promise.reject(new E({type:f.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.type,code:f.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.code,message:x(e)?e.details.originalError[0].message:f.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.message,details:{originalError:e}}))}),A.all([o,r]).then(function(e){var t=e[1];return Promise.resolve(t)}).catch(function(e){return Promise.reject(e)})}))}function x(e){return e.details&&e.details.originalError&&e.details.originalError[0]&&e.details.originalError[0].extensions&&"VALIDATION"===e.details.originalError[0].extensions.errorClass&&"user_error"===e.details.originalError[0].extensions.errorType}function k(e){var t="",r="";if(e)t=e;else{t=window.location.hash.substring(1);try{window.top&&window.top!==window&&window.top.location&&(r=window.top.location.hash.substring(1))&&(t=r)}catch(e){}}var n=t.split("&").reduce(function(e,t){var r=t.split("="),n=decodeURIComponent(r[0]).replace(/\W/g,""),o=S(n),c=decodeURIComponent(r[1]);return e[o]=c,e},{});return n.resourceId&&(n.id=n.resourceId),n}function M(e){return"@"+(e=e||"").replace("@","")}function F(e){var t={nonce:e.paymentMethodNonce,type:"VenmoAccount",details:{username:M(e.username),paymentContextId:e.id}};return e.payerInfo&&(t.details.payerInfo=e.payerInfo,t.details.payerInfo.userName=M(e.payerInfo.userName)),t}function U(){var e;return void 0!==window.document.hidden?e="visibilitychange":void 0!==window.document.msHidden?e="msvisibilitychange":void 0!==window.document.webkitHidden&&(e="webkitvisibilitychange"),e}function j(){return window.navigator.platform&&/iPhone|iPad|iPod/.test(window.navigator.platform)}A.suppressUnhandledPromiseMessage=!0,D.prototype._determineAnalyticsCategory=function(){return this._popupBridgeIsInstalled()?"popup-bridge":this._useDesktopQRFlow?"desktop-qr":this._useAllowDesktopWebLogin?"web-login-flow":this._isDesktop()?"desktop":"mobile"},D.prototype._createVenmoPaymentContext=function(e,t){var r,o,c=this,l=e.getConfiguration(),d=c._determineAnalyticsCategory(),h=l.gatewayConfiguration.payWithVenmo,m=!1,y=c._useAllowDesktopWebLogin?"NATIVE_WEB":"MOBILE_WEB";if(!this._shouldCreateVenmoPaymentContext)return Promise.resolve();if(this._shouldUseLegacyFlow)r=e.request({api:"graphQLApi",data:{query:N.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY,variables:{input:{environment:this._mobilePollingContextEnvironment,intent:"PAY_FROM_APP"}}}}).then(function(e){return e.data.createVenmoQRCodePaymentContext.venmoQRCodePaymentContext});else{if((this._collectCustomerBillingAddress||this._collectCustomerShippingAddress)&&!h.enrichedCustomerDataEnabled)return Promise.reject(new E(f.VENMO_ECD_DISABLED));this._lineItems&&this._lineItems.forEach(function(e){e.unitTaxAmount=e.unitTaxAmount||"0"}),o={subTotalAmount:this._subTotalAmount,discountAmount:this._discountAmount,taxAmount:this._taxAmount,shippingAmount:this._shippingAmount,totalAmount:this._totalAmount,lineItems:this._lineItems},m=Object.keys(o).some(function(e){return void 0!==o[e]}),n.sendEventPlus(c._createPromise,"venmo.create-payment-context.started",{platform:d}),r=e.request({api:"graphQLApi",data:{query:N.CREATE_PAYMENT_CONTEXT_QUERY,variables:{input:{venmoRiskCorrelationId:this._riskCorrelationId,paymentMethodUsage:this._paymentMethodUsage,intent:"CONTINUE",customerClient:y,isFinalAmount:this._isFinalAmount,displayName:this._displayName,paysheetDetails:{collectCustomerBillingAddress:this._collectCustomerBillingAddress,collectCustomerShippingAddress:this._collectCustomerShippingAddress,transactionDetails:m?o:void 0}}}}}).then(function(e){var t=e.data.createVenmoPaymentContext.venmoPaymentContext;return n.sendEventPlus(c._createPromise,"venmo.create-payment-context.succeeded",{context_id:t.id,platform:d}),t}).catch(function(e){throw n.sendEventPlus(c._createPromise,"venmo.create-payment-context.failed",{platform:d}),e})}return r.then(function(r){var n=.6666*(new Date(r.expiresAt)-new Date(r.createdAt));clearTimeout(c._refreshPaymentContextTimeout),c._refreshPaymentContextTimeout=setTimeout(function(){c._tokenizationInProgress||c._createVenmoPaymentContext(e,!0)},n),t&&c._tokenizationInProgress||(c._venmoPaymentContextStatus=r.status,c._venmoPaymentContextId=r.id)})},D.prototype._popupBridgeIsInstalled=function(){return window.popupBridge&&"function"==typeof window.popupBridge.open},D.prototype._venmoNativeAppIsInstalled=function(){return Boolean(window.popupBridge&&(window.parent&&window.parent.popupBridge.isVenmoInstalled||window.popupBridge.isVenmoInstalled))},D.prototype._handleDeepLinkAppSwitch=function(e){j()?this._handleIosWebviewDeepLink(e):this._popupBridgeIsInstalled()?this._handlePopupBridgeAppSwitch(e):l.isAndroidWebview()?(n.sendEvent(this._createPromise,"venmo.appswitch.start.android-webview-redirect"),w()?this._handleIFrameBreakout(e):window.location.href=e):l.isAndroid()&&!l.isWebview()?(n.sendEvent(this._createPromise,"venmo.appswitch.start.android-browser-redirect"),w()?this._handleIFrameBreakout(e):window.location.href=e):(n.sendEvent(this._createPromise,"venmo.appswitch.start.webview"),this._venmoWindow=window.open(e))},D.prototype._handleIosWebviewDeepLink=function(e){n.sendEvent(this._createPromise,"venmo.appswitch.start.ios-webview"),w()?this._handleIosWebviewInIframe(e):!this._venmoNativeAppIsInstalled()&&this._popupBridgeIsInstalled()?this._handlePopupBridgeAppSwitch(e):window.location.href=e},D.prototype._handleIosWebviewInIframe=function(e){this._venmoNativeAppIsInstalled()?this._handleIFrameBreakout(e):this._popupBridgeIsInstalled()?this._handlePopupBridgeAppSwitch(e):this._handleIFrameBreakout(e)},D.prototype._handlePopupBridgeAppSwitch=function(e){n.sendEvent(this._createPromise,"venmo.appswitch.start.popup-bridge"),window.popupBridge.open(e)},D.prototype._handleBrowserAppSwitch=function(e){n.sendEvent(this._createPromise,"venmo.appswitch.start.browser"),l.doesNotSupportWindowOpenInIos()||this._shouldUseRedirectStrategy()?window.location.href=e:w()&&l.isAndroid()&&l.isChrome()?(n.sendEvent(this._createPromise,"venmo.appswitch.start.chrome-android-iframe-breakout"),this._handleIFrameBreakout(e)):this._mobileWebFallBack&&l.isAndroid()&&l.isChrome()?window.location.href=e:this._venmoWindow=window.open(e)},D.prototype._handleIFrameBreakout=function(e){window.top.location.href=e},D.prototype.appSwitch=function(e){this._deepLinkReturnUrl?this._handleDeepLinkAppSwitch(e):this._handleBrowserAppSwitch(e)},D.prototype.getUrl=function(){return this._createPromise.then(function(e){var t=e.getConfiguration(),r={},n=this._deepLinkReturnUrl||window.location.href.replace(window.location.hash,""),o=t.gatewayConfiguration.payWithVenmo,c=t.analyticsMetadata,l=o.accessToken,d={_meta:{version:c.sdkVersion,integration:c.integration,platform:c.platform,sessionId:c.sessionId}};return this._isDebug=t.isDebug,this._assetsUrl=t.gatewayConfiguration.assetsUrl,n=n.replace(/#*$/,""),this._venmoPaymentContextId&&(this._shouldUseLegacyFlow?l+="|pcid:"+this._venmoPaymentContextId:r.resource_id=this._venmoPaymentContextId),this._riskCorrelationId&&(r["client-metadata-id"]=this._riskCorrelationId),this._shouldIncludeReturnUrls()||this._useAllowDesktopWebLogin?(this._useAllowDesktopWebLogin&&(n=this._assetsUrl+"/web/"+P+"/html/redirect-frame.html"),r["x-success"]=n+"#venmoSuccess=1",r["x-cancel"]=n+"#venmoCancel=1",r["x-error"]=n+"#venmoError=1"):(r["x-success"]="NOOP",r["x-cancel"]="NOOP",r["x-error"]="NOOP"),this._allowAndroidRecreation?r.allowAndroidRecreation=1:r.allowAndroidRecreation=0,r.ua=window.navigator.userAgent,r.braintree_merchant_id=this._profileId||o.merchantId,r.braintree_access_token=l,r.braintree_environment=o.environment,r.braintree_sdk_data=btoa(JSON.stringify(d)),T({useAllowDesktopWebLogin:this._useAllowDesktopWebLogin,mobileWebFallBack:this._mobileWebFallBack,enableVenmoSandbox:this._enableVenmoSandbox,environment:o.environment})+"?"+h.stringify(r)}.bind(this))},D.prototype.isBrowserSupported=function(){return c.isBrowserSupported({allowNewBrowserTab:this._allowNewBrowserTab,allowWebviews:this._allowWebviews,allowDesktop:this._allowDesktop,allowDesktopWebLogin:this._allowDesktopWebLogin,allowNonDefaultBrowsers:this._allowNonDefaultBrowsers})},D.prototype.hasTokenizationResult=function(){return this._hasTokenizationResult()},D.prototype._hasTokenizationResult=function(e){var t=k(e),r={},n=I.getUrlParams();window;try{window.top&&window.top!==window&&window.top.location&&(r=k(window.top.location.hash))}catch(e){}return n.resource_id?this._venmoPaymentContextId=n.resource_id:t.id?this._venmoPaymentContextId=t.id:r.id&&(this._venmoPaymentContextId=r.id),void 0!==(t.venmoSuccess||t.venmoError||t.venmoCancel||r.venmoSuccess||r.venmoError||r.venmoCancel)},D.prototype._shouldIncludeReturnUrls=function(){return!c.isNonDefaultBrowser()||l.isWebview()||l.isAndroid()?!(!this._deepLinkReturnUrl&&(this._cannotHaveReturnUrls||(!this._isIncognito||!l.isIosSafari())&&this._isIncognito)):Boolean(this._deepLinkReturnUrl)&&this._shouldUseRedirectStrategy()},D.prototype._isDesktop=function(){return!(l.isIos()||l.isAndroid())},D.prototype._isIOSIframeWithoutVenmoApp=function(){return l.isIos()&&w()&&!this._venmoNativeAppIsInstalled()&&!this._requireManualReturn},D.prototype.tokenize=function(e){var t=this;return e=e||{},!0===this._tokenizationInProgress?Promise.reject(new E(f.VENMO_TOKENIZATION_REQUEST_ACTIVE)):(this._tokenizationInProgress=!0,(this._useDesktopQRFlow?this._tokenizeForDesktopQRFlow(e):this._useAllowDesktopWebLogin?this._tokenizeWebLoginWithRedirect(e):this._cannotHaveReturnUrls&&!this._isIOSIframeWithoutVenmoApp()?this._tokenizeForMobileWithManualReturn():this._tokenizeForMobileWithHashChangeListeners(e)).then(function(e){return t._createPromise.then(function(e){return t._createVenmoPaymentContext(e)}
2).then(function(){return t._tokenizationInProgress=!1,t._venmoWindow=null,F(e)})}).catch(function(e){return t._createPromise.then(function(e){return t._createVenmoPaymentContext(e)}).then(function(){return t._tokenizationInProgress=!1,t._venmoWindow=null,Promise.reject(e)})}))},D.prototype.cancelTokenization=function(){return this._tokenizationInProgress?(this._removeVisibilityEventListener(),this._tokenizePromise&&this._tokenizePromise.reject(new E(f.VENMO_TOKENIZATION_CANCELED_BY_MERCHANT)),this._pollingInProgress=!1,Promise.all([this._cancelMobilePaymentContext(),this._cancelVenmoDesktopContext()])):Promise.reject(new E(f.VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE))},D.prototype._tokenizeWebLoginWithRedirect=function(){var e,t=this;return n.sendEventPlus(t._createPromise,"venmo.tokenize.web-login.start",{context_id:t._venmoPaymentContextId}),this._tokenizePromise=new A,this.getUrl().then(function(r){return e={checkForStatusChange:t._checkPaymentContextStatusAndProcessResult.bind(t),cancelTokenization:t.cancelTokenization.bind(t),frameServiceInstance:t._frameServiceInstance,venmoUrl:r,debug:t._isDebug,checkPaymentContextStatus:t._checkPaymentContextStatus.bind(t),analyticsCallback:function(e,r){n.sendEventPlus(t._createPromise,"venmo.desktop."+e+"."+r,{context_id:t._venmoPaymentContextId})}},t._cspNonce&&(e=o({},e,{styleCspNonce:t._cspNonce})),O.runWebLogin(e).then(function(e){n.sendEventPlus(t._createPromise,"venmo.tokenize.web-login.success",{context_id:t._venmoPaymentContextId}),t._tokenizePromise.resolve({paymentMethodNonce:e.paymentMethodId,username:e.userName,payerInfo:e.payerInfo,id:t._venmoPaymentContextId})}).catch(function(e){n.sendEventPlus(t._createPromise,"venmo.tokenize.web-login.failure",{context_id:t._venmoPaymentContextId}),t._tokenizePromise.reject(e)}),t._tokenizePromise})},D.prototype._queryPaymentContextStatus=function(e){var t=this;return n.sendEventPlus(t._createPromise,"venmo.query-payment-context.started",{context_id:e}),this._createPromise.then(function(r){var n=t._shouldUseLegacyFlow?N.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY:N.VENMO_PAYMENT_CONTEXT_STATUS_QUERY;return r.request({api:"graphQLApi",data:{query:n,variables:{id:e}}})}).then(function(r){return n.sendEventPlus(t._createPromise,"venmo.query-payment-context.succeeded",{context_id:e}),r.data.node}).catch(function(r){throw n.sendEventPlus(t._createPromise,"venmo.query-payment-context.failed",{context_id:e}),r})},D.prototype._checkPaymentContextStatusAndProcessResult=function(e){var t=this;return t._checkPaymentContextStatus().then(function(r){var o=r.status;if(o!==t._venmoPaymentContextStatus)switch(t._venmoPaymentContextStatus=o,n.sendEventPlus(t._createPromise,"venmo.tokenize.web-login.status-change."+o.toLowerCase(),{context_id:t._venmoPaymentContextId}),o){case"APPROVED":return Promise.resolve(r);case"CANCELED":return Promise.reject(new E(f.VENMO_CUSTOMER_CANCELED));case"EXPIRED":case"FAILED":return Promise.reject(new E(f.VENMO_TOKENIZATION_FAILED))}return new Promise(function(r,n){e<t._maxRetryCount?(e++,t._checkPaymentContextStatusAndProcessResult(e).then(r).catch(n)):n(new E(f.VENMO_TOKENIZATION_FAILED))})})},D.prototype._checkPaymentContextStatus=function(){var e=this;return e._queryPaymentContextStatus(e._venmoPaymentContextId).catch(function(e){return Promise.reject(new E({type:f.VENMO_NETWORK_ERROR.type,code:f.VENMO_NETWORK_ERROR.code,message:f.VENMO_NETWORK_ERROR.message,details:e}))}).then(function(e){return Promise.resolve(e)})},D.prototype._validatePollingContext=function(){return this._venmoPaymentContextId?Date.now()>this._mobilePollingContextExpiresIn?Promise.reject(new E(f.VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT)):null:Promise.reject(new E(f.VENMO_MOBILE_POLLING_TOKENIZATION_NO_CONTEXT_ID))},D.prototype._handleWindowClosure=function(){var e=this,t=e._determineAnalyticsCategory();return e._venmoWindow&&e._venmoWindow.closed&&"CREATED"===e._venmoPaymentContextStatus&&!0===e._cancelOnReturnToBrowser?(n.sendEventPlus(e._createPromise,"venmo.appswitch.browser-window.closed",{context_id:e._venmoPaymentContextId}),e._cancelMobilePaymentContext().then(function(){n.sendEventPlus(e._createPromise,"venmo.tokenize.manual-return.canceled",{context_id:e._venmoPaymentContextId,platform:t})}).catch(function(r){n.sendEventPlus(e._createPromise,"venmo.tokenize.manual-return.canceled.error",{context_id:e._venmoPaymentContextId,platform:t})}),Promise.reject(new E(f.VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED))):null},D.prototype._handleCancelOnReturn=function(){var e,t,r=this;return r._cancelOnReturnToBrowser?(e=Math.ceil(d.DEFAULT_PROCESS_RESULTS_DELAY/r._mobilePollingInterval),t=k(),r._pollCount++,void 0===(t.venmoSuccess||t.venmoError||t.venmoCancel)&&"CREATED"===r._venmoPaymentContextStatus&&r._pollCount>=e?(n.sendEventPlus(r._createPromise,"venmo.appswitch.cancel-on-return-to-browser",{context_id:r._venmoPaymentContextId}),r._cancelMobilePaymentContext().then(function(){n.sendEventPlus(r._createPromise,"venmo.appswitch.cancel-on-return-to-browser.success",{context_id:r._venmoPaymentContextId})}).catch(function(){n.sendEventPlus(r._createPromise,"venmo.appswitch.cancel-on-return-to-browser.error",{context_id:r._venmoPaymentContextId})}).finally(function(){r._pollCount=0})):null):null},D.prototype._handleStatusChange=function(e){var t=this,r=e.status;if(r!==t._venmoPaymentContextStatus)switch(t._venmoPaymentContextStatus=r,n.sendEventPlus(t._createPromise,"venmo.tokenize.manual-return.status-change."+r.toLowerCase(),{context_id:t._venmoPaymentContextId,platform:t._determineAnalyticsCategory()}
2),r){case"EXPIRED":case"FAILED":case"CANCELED":return Promise.reject(new E(f["VENMO_MOBILE_POLLING_TOKENIZATION_"+r]));case"APPROVED":return Promise.resolve(e)}return t._continuePolling()},D.prototype._continuePolling=function(){var e=this;return new Promise(function(t,r){setTimeout(function(){e._pollForStatusChange().then(t).catch(r)},e._mobilePollingInterval)})},D.prototype._queryAndProcessStatus=function(){var e=this;return this._queryPaymentContextStatus(this._venmoPaymentContextId).catch(function(e){return Promise.reject(new E({type:f.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.type,code:f.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.code,message:f.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.message,details:{originalError:e}}))}).then(function(t){return e._handleStatusChange(t)})},D.prototype._pollForStatusChange=function(){var e=this._validatePollingContext();if(e)return e;var t=this._handleWindowClosure();return t||(this._handleCancelOnReturn(),this._queryAndProcessStatus())},D.prototype._startPolling=function(){var e=this,t=e._determineAnalyticsCategory();return this._pollingInProgress||(this._pollingInProgress=!0,this._pollForStatusChange().then(function(r){e._pollingInProgress=!1,n.sendEventPlus(e._createPromise,"venmo.tokenize.manual-return.success",{context_id:e._venmoPaymentContextId,platform:t}),e._tokenizePromise.resolve({paymentMethodNonce:r.paymentMethodId,username:r.userName,payerInfo:r.payerInfo,id:e._venmoPaymentContextId})}).catch(function(r){e._pollingInProgress=!1,n.sendEventPlus(e._createPromise,"venmo.tokenize.manual-return.failure",{context_id:e._venmoPaymentContextId,platform:t}),e._tokenizePromise.reject(r)})),this._tokenizePromise},D.prototype._tokenizeForMobileWithManualReturn=function(){var e=this;return this._mobilePollingContextExpiresIn=Date.now()+this._mobilePollingExpiresThreshold,this.hasTokenizationResult()?this.processHashChangeFlowResults():(n.sendEventPlus(this._createPromise,"venmo.tokenize.manual-return.start",{context_id:e._venmoPaymentContextId,platform:e._determineAnalyticsCategory()}),this._tokenizePromise=new A,this._startPolling(),this.getUrl().then(function(t){return e.hasTokenizationResult()?e.processHashChangeFlowResults():(e.appSwitch(t),e._tokenizePromise)}))},D.prototype._shouldUseRedirectStrategy=function(){return!!l.isIos()&&(!0===this._mobileWebFallBack||this._useRedirectForIOS)},D.prototype._tokenizeForMobileWithHashChangeListeners=function(e){var t,r,o=this;if(this.hasTokenizationResult())return this.processHashChangeFlowResults();var c=this._determineAnalyticsCategory();function l(e){var t;o.processHashChangeFlowResults(e).catch(function(e){n.sendEventPlus(o._createPromise,"venmo.tokenize.mobile.failure",{context_id:o._venmoPaymentContextId,platform:c}),t=e}).then(function(e){n.sendEventPlus(o._createPromise,"venmo.tokenize.mobile.success",{context_id:o._venmoPaymentContextId,platform:c}),o._ignoreHistoryChanges||window.location.hash===o._previousHash||(window.location.hash=o._previousHash),o._removeVisibilityEventListener(),t?o._tokenizePromise.reject(t):o._tokenizePromise.resolve(e),delete o._tokenizePromise})}return n.sendEventPlus(this._createPromise,"venmo.tokenize.mobile.start",{context_id:this._venmoPaymentContextId,platform:c}),this._tokenizePromise=new A,this._previousHash=window.location.hash,this._onHashChangeListener=function(e){var n=e.newURL.split("#")[1];o._hasTokenizationResult(n)&&(t=!0,clearTimeout(r),l(n))},window.addEventListener("hashchange",this._onHashChangeListener,!1),this._visibilityChangeListener=function(){var n=e.processResultsDelay||d.DEFAULT_PROCESS_RESULTS_DELAY;window.document.hidden||(o._venmoWindow&&!o._venmoWindow.closed&&o._venmoWindow.close(),t||(r=setTimeout(l,n)))},this.getUrl().then(function(e){return o.hasTokenizationResult()?(l(),o._tokenizePromise):(o.appSwitch(e),setTimeout(function(){window.document.addEventListener(U(),o._visibilityChangeListener)},d.DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY),o._tokenizePromise)})},D.prototype._tokenizeForDesktopQRFlow=function(){var e=this;return n.sendEvent(this._createPromise,"venmo.tokenize.desktop.start"),this._tokenizePromise=new A,this._createPromise.then(function(){return e._venmoDesktopInstance.launchDesktopFlow()}).then(function(t){e._venmoDesktopInstance.hideDesktopFlow(),n.sendEventPlus(e._createPromise,"venmo.tokenize.desktop.success",{context_id:t&&t.id}),e._tokenizePromise.resolve(t)}).catch(function(t){n.sendEventPlus(e._createPromise,"venmo.tokenize.desktop.failure",{context_id:e._venmoDesktopInstance&&e._venmoDesktopInstance.venmoContextId}),e._venmoDesktopInstance&&e._venmoDesktopInstance.hideDesktopFlow(),t&&"CUSTOMER_CANCELED"===t.reason?e._tokenizePromise.reject(new E(f.VENMO_DESKTOP_CANCELED)):e._tokenizePromise.reject(new E({type:f.VENMO_DESKTOP_UNKNOWN_ERROR.type,code:f.VENMO_DESKTOP_UNKNOWN_ERROR.code,message:f.VENMO_DESKTOP_UNKNOWN_ERROR.message,details:{originalError:t}}))}),this._tokenizePromise},D.prototype._cancelMobilePaymentContext=function(){var e=this;return this._createPromise.then(function(t){var r;return e._venmoPaymentContextId?(r=e._shouldUseLegacyFlow?N.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY:N.UPDATE_PAYMENT_CONTEXT_QUERY,t.request({api:"graphQLApi",data:{query:r,variables:{input:{id:e._venmoPaymentContextId,status:"CANCELED"}}}})):Promise.resolve()})},D.prototype._cancelVenmoDesktopContext=function(){var e=this;return this._createPromise.then(function(){return e._venmoDesktopInstance&&e._venmoDesktopInstance.updateVenmoDesktopPaymentContext("CANCELED"),Promise.resolve()})},D.prototype.teardown=function(){var e=this;return this._removeVisibilityEventListener(),this._createPromise.then(function(){e._venmoDesktopInstance&&e._venmoDesktopInstance.teardown(),clearTimeout(e._refreshPaymentContextTimeout),e._cancelMobilePaymentContext(),v(this,y(D.prototype))}.bind(this))},D.prototype._removeVisibilityEventListener=function(){window.removeEventListener("hashchange",this._onHashChangeListener),window.document.removeEventListener(U(),this._visibilityChangeListener),delete this._visibilityChangeListener,delete this._onHashChangeListener},D.prototype.processHashChangeFlowResults=function(e){var t=this,r=k(e);return new Promise(function(e,o){t._shouldUseLegacyFlow?r.venmoSuccess?(n.sendEvent(t._createPromise,"venmo.appswitch.handle.success"),window.popupBridge&&n.sendEvent(t._createPromise,"popup-bridge:venmo:succeeded"),e(r)):r.venmoError?(n.sendEvent(t._createPromise,"venmo.appswitch.handle.error"),window.popupBridge&&n.sendEvent(t._createPromise,"popup-bridge:venmo:failed"),o(new E({type:f.VENMO_APP_FAILED.type,code:f.VENMO_APP_FAILED.code,message:f.VENMO_APP_FAILED.message,details:{originalError:{message:decodeURIComponent(r.errorMessage),code:r.errorCode}}}))):r.venmoCancel?(n.sendEvent(t._createPromise,"venmo.appswitch.handle.cancel"),window.popupBridge&&n.sendEvent(t._createPromise,"popup-bridge:venmo:canceled"),o(new E(f.VENMO_APP_CANCELED))):(n.sendEvent(t._createPromise,"venmo.appswitch.cancel-or-un
2available"),o(new E(f.VENMO_CANCELED))):(t._pollingInProgress||(t._pollingInProgress=!0),t._pollForStatusChange().then(function(r){return t._pollingInProgress=!1,n.sendEventPlus(t._createPromise,"venmo.appswitch.handle.payment-context-status-query.success",{context_id:t._venmoPaymentContextId}),window.popupBridge&&n.sendEvent(t._createPromise,"popup-bridge:venmo:succeeded"),e({paymentMethodNonce:r.paymentMethodId,username:r.userName,payerInfo:r.payerInfo,id:t._venmoPaymentContextId})}).catch(function(c){t._pollingInProgress=!1,c.code===f.VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED.code?(window.popupBridge&&n.sendEvent(t._createPromise,"popup-bridge:venmo:canceled"),o(c)):window.popupBridge&&n.sendEvent(t._createPromise,"popup-bridge:venmo:failed"),n.sendEventPlus(t._createPromise,"venmo.process-results.payment-context-status-query-failed",{context_id:t._venmoPaymentContextId}),e(r)})),t._clearFragmentParameters()})},D.prototype._clearFragmentParameters=function(){this._ignoreHistoryChanges||"function"==typeof window.history.replaceState&&window.location.hash&&history.pushState({},"",window.location.href.slice(0,window.location.href.indexOf("#")))},t.exports=_.wrapPrototype(D)},{"../lib/analytics":57,"../lib/assign":59,"../lib/braintree-error":61,"../lib/convert-methods-to-error":63,"../lib/in-iframe":80,"../lib/is-verified-domain":81,"../lib/methods":83,"../lib/querystring":84,"../lib/snake-case-to-camel-case":85,"../lib/url-params":86,"./external/":89,"./external/queries":90,"./shared/browser-detection":93,"./shared/constants":94,"./shared/errors":95,"./shared/get-venmo-url":97,"./shared/supports-venmo":98,"./shared/web-login-backdrop":99,"@braintree/extended-promise":27,"@braintree/wrap-promise":36}]},{},[92])(92)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}
2).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":14,"./create-authorization-data":17,"./json-clone":21}],9:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":8,"./assign":11,"./constants":14}],10:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],11:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],12:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":13,"./errors":20}],13:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":19}],14:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],15:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":13,"./errors":20}],16:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":14}],17:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":14,"../lib/vendor/polyfill":23}],18:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":10,"./braintree-error":13,"./errors":20}],19:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],20:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":13}],21:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],22:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],23:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],24:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={VISA_CHECKOUT_NOT_ENABLED:{type:n.types.MERCHANT,code:"VISA_CHECKOUT_NOT_ENABLED",message:"Visa Checkout is not enabled for this merchant."},VISA_CHECKOUT_INIT_OPTIONS_REQUIRED:{type:n.types.MERCHANT,code:"VISA_CHECKOUT_INIT_OPTIONS_REQUIRED",message:"initOptions requires an object."},VISA_CHECKOUT_PAYMENT_REQUIRED:{type:n.types.MERCHANT,code:"VISA_CHECKOUT_PAYMENT_REQUIRED",message:"tokenize requires callid, encKey, and encPaymentData."},VISA_CHECKOUT_TOKENIZATION:{type:n.types.NETWORK,code:"VISA_CHECKOUT_TOKENIZATION",message:"A network error occurred when processing the Visa Checkout payment."}}},{"../lib/braintree-error":13}],25:[function(e,t,r){"use strict";var n=e("../lib/basic-component-verification"),o=e("../lib/braintree-error"),c=e("../lib/create-deferred-client"),l=e("../lib/create-assets-url"),d=e("./visa-checkout"),f=e("../lib/analytics"),h=e("./errors"),m="3.144.0",y=e("@braintree/wrap-promise");function v(e){var t="Visa Checkout";return n.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:t})}).then(function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.visaCheckout?(f.sendEvent(e.client,"visacheckout.initialized"),new d(e)):Promise.reject(new o(h.VISA_CHECKOUT_NOT_ENABLED))})}t.exports={create:y(v),VERSION:m}},{"../lib/analytics":9,"../lib/basic-component-verification":12,"../lib/braintree-error":13,"../lib/create-assets-url":16,"../lib/create-deferred-client":18,"./errors":24,"./visa-checkout":26,"@braintree/wrap-promise":6}],26:[function(e,t,r){"use strict";var n=e("../lib/braintree-error"),o=e("../lib/analytics"),c=e("./errors"),l=e("../lib/json-clone"),d=e("../lib/methods"),f=e("../lib/convert-methods-to-error"),h=e("@braintree/wrap-promise"),m={Visa:"VISA",MasterCard:"MASTERCARD",Discover:"DISCOVER","American Express":"AMEX"};function y(e){this._client=e.client}function v(e){return e.reduce(function(e,t){return m.hasOwnProperty(t)?e.concat(m[t]):e},[])}y.prototype.createInitOptions=function(e){var t,r=this._client.getConfiguration().gatewayConfiguration,o=r.visaCheckout;if(!e)throw new n(c.VISA_CHECKOUT_INIT_OPTIONS_REQUIRED);return(t=l(e)).apikey=t.apikey||o.apikey,t.encryptionKey=o.encryptionKey,t.externalClientId=t.externalClientId||o.externalClientId,t.settings=t.settings||{},t.settings.dataLevel="FULL",t.settings.payment=t.settings.payment||{},t.settings.payment.cardBrands||(t.settings.payment.cardBrands=v(r.visaC
2heckout.supportedCardTypes)),t},y.prototype.tokenize=function(e){var t=this;return e.callid&&e.encKey&&e.encPaymentData?this._client.request({method:"post",endpoint:"payment_methods/visa_checkout_cards",data:{_meta:{source:"visa-checkout"},visaCheckoutCard:{callId:e.callid,encryptedPaymentData:e.encPaymentData,encryptedKey:e.encKey}}}).then(function(e){return o.sendEvent(t._client,"visacheckout.tokenize.succeeded"),e.visaCheckoutCards[0]}).catch(function(e){return o.sendEvent(t._client,"visacheckout.tokenize.failed"),Promise.reject(new n({type:c.VISA_CHECKOUT_TOKENIZATION.type,code:c.VISA_CHECKOUT_TOKENIZATION.code,message:c.VISA_CHECKOUT_TOKENIZATION.message,details:{originalError:e}}))}):Promise.reject(new n(c.VISA_CHECKOUT_PAYMENT_REQUIRED))},y.prototype.teardown=function(){return f(this,d(y.prototype)),Promise.resolve()},t.exports=h.wrapPrototype(y)},{"../lib/analytics":9,"../lib/braintree-error":13,"../lib/convert-methods-to-error":15,"../lib/json-clone":21,"../lib/methods":22,"./errors":24,"@braintree/wrap-promise":6}]},{},[25])(25)},function(e,t,r){var n;e.exports=function(){function e(t,r,n){function o(i,c){if(!r[i]){if(!t[i]){if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=r[i]={exports:{}};t[i][0].call(p.exports,function(e){return o(t[i][1][e]||e)},p,p.exports,e,t,r,n)}return r[i].exports}for(var u=!1,i=0;i<n.length;i++)o(n[i]);return o}return e}()({1:[function(e,t,r){"use strict";var n={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var script=document.createElement("script"),o=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&script.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){script.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),n[r]=t,t}o.clearCache=function(){n={}},t.exports=o},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";function n(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)}}Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=n},{}],4:[function(e,t,r){"use strict";function n(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))}}Object.defineProperty(r,"__esModule",{value:!0}),r.once=n},{}],5:[function(e,t,r){"use strict";function n(e,t){if(!t)return e;e.then(function(data){return t(null,data)}).catch(function(e){return t(e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=n},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=o.once(n.deferred(t))),c.promiseOrCallback(e.apply(this,r),t)}}l.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 o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===r.indexOf(t);return o=!!n||"_"!==t.charAt(0),c&&o&&l}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=l(r)}),e},t.exports=l},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var o,c;o=this,c=function(e){"use strict";function t(e,t,r,n){function o(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,c){function l(e){try{f(n.next(e))}catch(e){c(e)}}function d(e){try{f(n.throw(e))}catch(e){c(e)}}function f(e){e.done?r(e.value):o(e.value).then(l,d)}f((n=n.apply(e,t||[])).next())})}function r(e,body){var t,r,n,g,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return g={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(g[Symbol.iterator]=function(){return this}),g;function c(e){return function(t){return l([e,t])}}function l(c){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,r&&(n=2&c[0]?r.return:c[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,c[1])).done)return n;switch(r=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,r=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(6===c[0]&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],r=0}finally{t=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var n={},o={};function c(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[r]))return t;var script=document.createElement("script"),n=e.dataAttributes||{},c=e.container||document.head;return script.src=e.src,script.id=e.id||"",script.async=!0,e.type&&script.setAttribute("type","".concat(e.type)),e.crossorigin&&script.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(n).forEac
2h(function(e){script.setAttribute("data-".concat(e),"".concat(n[e]))}),t=new Promise(function(t,r){script.addEventListener("load",function(){t(script)}),script.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),script.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),c.appendChild(script)}),o[r]=t,t}c.clearCache=function(){o={}};var l=c,d=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)};Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=h=n.loadScript=void 0;var f=l,h=n.loadScript=f,m=d;n.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",w="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:w,LOCALE_PATH:"".concat(w,"/locales/"),CDNX_PROD:_},T={BT:"BT",PPCP:"PPCP"};function O(){return"function"==typeof window.define&&!!window.define.amd}function S(){return O()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,n,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,function(){var t,d;return r(this,function(r){if((t=N())&&t[e.module]){if(n&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==n)throw d=null===(l=t[e.module])||void 0===l?void 0:l.VERSION,new Error("".concat(e.module," already loaded with version ").concat(d," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,n,o)]})})}function C(e,t,r){if(void 0===r&&(r=!0),O()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var script=r?e.script.minified:e.script.unminified;return h({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function N(){return null===window||void 0===window?void 0:window.braintree}var P={Client:"client",HostedCardFields:"hostedFields"},R="braintree",L=((y={})[P.Client]="client",y[P.HostedCardFields]="hosted-fields",y),D=((v={})[P.Client]={id:"client",module:P.Client,amdModule:{unminified:"".concat(R,"/").concat(L[P.Client]),minified:"".concat(R,"/").concat(L[P.Client],".min")},script:{unminified:"".concat(L[P.Client],".js"),minified:"".concat(L[P.Client],".min.js")}},v[P.HostedCardFields]={id:"hcf",module:P.HostedCardFields,amdModule:{unminified:"".concat(R,"/").concat(L[P.HostedCardFields]),minified:"".concat(R,"/").concat(L[P.HostedCardFields],".min")},script:{unminified:"".concat(L[P.HostedCardFields],".js"),minified:"".concat(L[P.HostedCardFields],".min.js")}},v);function x(e){return t(this,void 0,void 0,function(){var t,n,o,c;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,o=F(e),c=U(e),e.platform!==T.BT?[3,2]:[4,Promise.all([I(D.hostedFields,t,n),k(o,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==T.PPCP?[3,4]:[4,Promise.all([I(D.client,t,n),I(D.hostedFields,t,n),k(o,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}})})}function k(e,t){if(void 0===t&&(t=!0),O()){S();var r="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([r],e,t)})}return h({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function F(e){var t,r=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:O()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function U(e){var t;return M({assetUrl:A.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}e.constants=A,e.loadAxo=x},"object"==typeof r&&void 0!==t?c(r):"function"==typeof n&&n.amd?n(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,r=data?o(data):{},l=n(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in r.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,r._meta)r._meta.hasOwnProperty(t)&&(d[t]=r._meta[t]);return r._meta=d,l.tokenizationKey?r.tokenizationKey=l.tokenizationKey:r.authorizationFingerprint=l.authorizationFingerprint,r}function d(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,o="production"===t.gatewayConfiguration.environment,l={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:c.VERSION,component:"braintreeclientsdk",merchant_sdk_env:o?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:c.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?l.tokenization_key=r.tokenizationKey:l.auth_fingerprint=r.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":14,"./create-authorization-data":16,"./json-clone":20}],9:[function(e,t,r){"use strict";var n=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,r){return d(e,t,{},r)}function d(e,t,r,l){var d=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 h=e._request,m=n.ANALYTICS_URL,y=n.ANALYTICS_PREFIX+t,v="production"===e.getConfiguration().gatewayConfiguration.environment,data={events:[],tracking:[]},_=o.addEventMetadata(e,data);return _.event_name=y,_.t=d,data.events=[{level:"info",event:y,payload:c({env:v?"production":"sandbox",timestamp:d},r)}],data.tracking=[_],r&&"object"==typeof r&&(data.tracking=[f(_,r)]),h({url:m,method:"post",data:data,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},l)}).catch(function(e){l&&l(e)}
2)}function f(e,t){var r=c({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),c(e,r)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":8,"./assign":11,"./constants":14}],10:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],11:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:o;function o(e){var i,source,t;for(i=1;i<arguments.length;i++)for(t in source=arguments[i])source.hasOwnProperty(t)&&(e[t]=source[t]);return e}t.exports={assign:n,_assign:o}},{}],12:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,r,l;return e?(l=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===c?Promise.resolve():Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+l+" (version "+c+") components must be from the same SDK version."})):Promise.reject(new n({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new n({type:o.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:o.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}t.exports={verify:l}},{"./braintree-error":13,"./errors":19}],13:[function(e,t,r){"use strict";var n=e("./enumerate");function o(e){if(!o.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,o.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),o.findRootError=function(e){return e instanceof o&&e.details&&e.details.originalError?o.findRootError(e.details.originalError):e},t.exports=o},{"./enumerate":18}],14:[function(e,t,r){"use strict";var n="3.144.0",o="web",c={production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},l={production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},d={production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"};t.exports={ANALYTICS_PREFIX:o+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:l,CLIENT_API_URLS:c,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:d,INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+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","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],15:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;function o(e){return n.production}t.exports={create:o}},{"./constants":14}],16:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,o=e("../lib/constants").CLIENT_API_URLS;function c(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function l(e){var t=e.split("_"),r=t[0];return{merchantId:t.slice(2).join("_"),environment:r}}function d(e){var t,r,data={attrs:{},configUrl:""};return c(e)?(r=l(e),data.environment=r.environment,data.attrs.tokenizationKey=e,data.configUrl=o[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),data.environment=t.environment,data.attrs.authorizationFingerprint=t.authorizationFingerprint,data.paymentMethodIdJwt=t.paymentMethodIdJwt,data.configUrl=t.configUrl,data.graphQL=t.graphQL),data}t.exports=d},{"../lib/constants":14,"../lib/vendor/polyfill":21}],17:[function(e,t,r){"use strict";var n=e("./braintree-error"),o=e("./assets"),c=e("./errors"),l="3.144.0";function d(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=o.loadScript({src:e.assetsUrl+"/web/"+l+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:c.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:c.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:c.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
2)),t.then(function(){return window.braintree.client.VERSION!==l?Promise.reject(new n({type:c.INCOMPATIBLE_VERSIONS.type,code:c.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+l+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}t.exports={create:d}},{"./assets":10,"./braintree-error":13,"./errors":19}],18:[function(e,t,r){"use strict";function n(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}t.exports=n},{}],19:[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"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":13}],20:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],21:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:o;function o(e){var a,b,t,r,n,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";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 new Error("Non base64 encoded input passed to window.atob polyfill");i=0;do{a=(63&o.indexOf(e.charAt(i++)))<<2|(r=o.indexOf(e.charAt(i++)))>>4&3,b=(15&r)<<4|(n=o.indexOf(e.charAt(i++)))>>2&15,t=(3&n)<<6|63&o.indexOf(e.charAt(i++)),c+=String.fromCharCode(a)+(b?String.fromCharCode(b):"")+(t?String.fromCharCode(t):"")}while(i<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:o}},{}],22:[function(e,t,r){"use strict";var n=e("@braintree/wrap-promise"),o=e("../lib/basic-component-verification"),c=e("./preferred-payment-methods"),l="3.144.0";function d(e){var t="PreferredPaymentMethods";return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return(new c).initialize(e)})}t.exports={create:n(d),VERSION:l}},{"../lib/basic-component-verification":12,"./preferred-payment-methods":23,"@braintree/wrap-promise":6}],23:[function(e,t,r){"use strict";var n=e("@braintree/wrap-promise"),o=e("../lib/analytics"),c=e("../lib/create-assets-url"),l=e("../lib/create-deferred-client");function d(){}d.prototype.initialize=function(e){var t=this;return this._clientPromise=l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:"PreferredPaymentMethods"}).catch(function(e){return t._setupError=e,Promise.reject(e)}),o.sendEvent(this._clientPromise,"preferred-payment-methods.initialized"),Promise.resolve(this)},d.prototype.fetchPreferredPaymentMethods=function(){var e,t=this;return this._clientPromise.then(function(t){return(e=t).request({api:"graphQLApi",data:{query:"query PreferredPaymentMethods { preferredPaymentMethods { paypalPreferred venmoPreferred } }"}})}).then(function(t){var r=t.data.preferredPaymentMethods.paypalPreferred,n=t.data.preferredPaymentMethods.venmoPreferred;return o.sendEvent(e,"preferred-payment-methods.paypal.api-detected."+r),o.sendEvent(e,"preferred-payment-methods.venmo.api-detected."+n),{paypalPreferred:r,venmoPreferred:n}}).catch(function(){return t._setupError?Promise.reject(t._setupError):(o.sendEvent(e,"preferred-payment-methods.api-error"),{paypalPreferred:!1,venmoPreferred:!1})})},t.exports=n.wrapPrototype(d)},{"../lib/analytics":9,"../lib/create-assets-url":15,"../lib/create-deferred-client":17,"@braintree/wrap-promise":6}]},{},[22])(22)},,,,,,,,,function(e,t,r){"use strict";var n=r(3);Object.defineProperty(t,"__esModule",{value:!0}),t.authMiddleware=t.TokenStatusEnum=t.TokenStatus=t.Token=t.Storage=t.RequestHandler=t.RefreshToken=t.RefreshScheme=t.RefreshController=t.OpenIDConnectScheme=t.Oauth2Scheme=t.LocalScheme=t.LaravelJWTScheme=t.IdToken=t.ExpiredAuthSessionError=t.CookieScheme=t.ConfigurationDocumentRequestError=t.ConfigurationDocument=t.BaseScheme=t.Auth0Scheme=t.Auth=void 0;var o=n(r(10)),c=n(r(8)),l=n(r(25));r(15),r(33),r(93),r(94),r(66),r(7),r(18),r(17),r(14),r(38),r(101),r(600),r(95),r(96),r(97),r(98),r(6);var d=n(r(982)),f=n(r(5)),h=n(r(557)),m=n(r(983)),y=n(r(984));function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?v(Object(r),!0).forEach(function(t){(0,c.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var E=e=>null==e,w=e=>!E(e),A=(e,a,b)=>C(a,e)===C(b,e);function T(u){return u&&u.length&&new RegExp(["^\\/([a-zA-Z0-9@\\-%_~.:]","[/a-zA-Z0-9@\\-%_~.:]*)?","([?][^#]*)?(#[^#]*)?$"].join("")).test(u)}function O(e){for(var t={},r=e.split("&"),i=0;i<r.length;i++){var n=r[i].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1]||"")}return t}function S(e){return Object.entries(e).filter(e=>{var t=(0,l.default)(e,2);t[0];return void 0!==t[1]}).map(e=>{var t=(0,l.default)(e,2),r=t[0],n=t[1];return encodeURIComponent(r)+(null!=n?"="+encodeURIComponent(n):"")}).join("&")}function I(e,t,r){return e.matched.some(e=>Object.values(e.components).some(component=>component.options&&component.options[t]===r))}function C(){var e=arguments.length>1?arguments[1]:void 0,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("?")[0];return e&&e.base&&(t=t.replace(e.base,"/")),"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t=t.replace(/\/+/g,"/")}function N(e){return"string"==typeof e?e:JSON.stringify(e)}function P(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}function R(e,t){if(!t||!e||"object"!=typeof e)return e;if(t in e)return e[t];for(var r=Array.isArray(t)?t:(t+"").split("."),n=e;r.length&&n;)n=n[r.shift()];return n}function L(e,t){return e&&t&&"string"==typeof e&&!e.startsWith(t)?t+" "+e:e}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.join("/").replace(/[/]+/g,"/").replace(/^(.+):\//,"$1://").replace(/^file:/,"file:/").replace(/\/(\?|&|#[^!])/g,"$1").replace(/\?/g,"&").replace("&","?")}var x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function k(e){for(var t="",i=0;i<e;i++)t+=x.charAt(Math.floor(62*Math.random()));return t}class M{constructor(e,t){this.ctx=e,this.options=t,this._initState()}setUniversal(e,t){return E(t)?this.removeUniversal(e):(this.setCookie(e,t),this.setLocalStorage(e,t),this.setState(e,t),t)}getUniversal(e){var t;return E(t)&&(t=this.getCookie(e)),E(t)&&(t=this.getLocalStorage(e)),E(t)&&(t=this.getState(e)),t}syncUniversal(e,t){var r=this.getUniversal(e);return E(r)&&w(t)&&(r=t),w(r)&&this.setUniversal(e,r),r}removeUniversal(e){this.removeState(e),this.removeLocalStorage(e),this.removeCookie(e)}_initState(){if(f.default.set(this,"_state",{}),this._useVuex=this.options.vuex&&!!this.ctx.store,this._useVuex){var e={namespaced:!0,state:()=>this.options.initialState,mutations:{SET(e,t){f.default.set(e,t.key,t.value)}}};this.ctx.store.registerModule(this.options.vuex.namespace,e,{preserveState:Boolean(this.ctx.store.state[this.options.vuex.namespace])}),this.state=this.ctx.store.state[this.options.vuex.namespace]}else f.default.set(this,"state",{}),console.warn("[AUTH] The Vuex Store is not activated. This might cause issues in auth module behavior, like redirects not working properly.To activate it, see https://nuxtjs.org/docs/2.x/directory-structure/store")}setState(e,t){return"_"===e[0]?f.default.set(this._state,e,t):this._useVuex?this.ctx.store.commit(this.options.vuex.namespace+"/SET",{key:e,value:t}):f.default.set(this.state,e,t),t}getState(e){return"_"!==e[0]?this.state[e]:this._state[e]}watchState(e,t){if(this._useVuex)return this.ctx.store.watch(t=>R(t[this.options.vuex.namespace],e),t)}removeState(e){this.setState(e,void 0)}setLocalStorage(e,t){if(E(t))return this.removeLocalStorage(e);if(this.isLocalStorageEnabled()){var r=this.getPrefix()+e;try{localStorage.setItem(r,N(t))}catch(e){if(!this.options.ignoreExceptions)throw e}return t}}getLocalStorage(e){if(this.isLocalStorageEnabled()){var t=this.getPrefix()+e;return P(localStorage.getItem(t))}}removeLocalStorage(e){if(this.isLocalStorageEnabled()){var t=this.getPrefix()+e;localStorage.removeItem(t)}}
2getCookies(){if(this.isCookiesEnabled()){var e=document.cookie;return h.default.parse(e||"")||{}}}setCookie(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.options.cookie&&this.isCookiesEnabled()){var n=(void 0!==r.prefix?r.prefix:this.options.cookie.prefix)+e,o=Object.assign({},this.options.cookie.options,r),c=N(t);E(t)&&(o.maxAge=-1),"number"==typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires));var l=h.default.serialize(n,c,o);return document.cookie=l,t}}getCookie(e){if(this.options.cookie&&this.isCookiesEnabled()){var t=this.options.cookie.prefix+e,r=this.getCookies();return P(r[t]?decodeURIComponent(r[t]):void 0)}}removeCookie(e,t){this.setCookie(e,void 0,t)}getPrefix(){if(!this.options.localStorage)throw new Error("Cannot get prefix; localStorage is off");return this.options.localStorage.prefix}isLocalStorageEnabled(){if(!this.options.localStorage)return!1;var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return this.options.ignoreExceptions||console.warn("[AUTH] Local storage is enabled in config, but browser doesn't support it"),!1}}isCookiesEnabled(){return!!this.options.cookie&&(!!window.navigator.cookieEnabled||(console.warn("[AUTH] Cookies is enabled in config, but browser doesn't support it"),!1))}}t.Storage=M;t.Auth=class{constructor(e,t){this.strategies={},this._errorListeners=[],this._redirectListeners=[],this.ctx=e,this.options=t;var r=new M(e,_(_({},t),{initialState:{user:null,loggedIn:!1}}));this.$storage=r,this.$state=r.state}get state(){return this._stateWarnShown||(this._stateWarnShown=!0,console.warn("[AUTH] $auth.state is deprecated. Please use $auth.$state or top level props like $auth.loggedIn")),this.$state}get strategy(){return this.getStrategy()}getStrategy(){if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]){if(!this.$state.strategy)throw new Error("No strategy is set!");if(!this.strategies[this.$state.strategy])throw new Error("Strategy not supported: "+this.$state.strategy)}return this.strategies[this.$state.strategy]}get user(){return this.$state.user}get loggedIn(){return this.$state.loggedIn}get busy(){return this.$storage.getState("busy")}init(){var e=this;return(0,o.default)(function*(){if(e.options.resetOnError&&e.onError(function(){("function"!=typeof e.options.resetOnError||e.options.resetOnError(...arguments))&&e.reset()}),e.$storage.syncUniversal("strategy",e.options.defaultStrategy),!e.getStrategy(!1)&&(e.$storage.setUniversal("strategy",e.options.defaultStrategy),!e.getStrategy(!1)))return Promise.resolve();try{yield e.mounted()}catch(t){e.callOnError(t)}finally{e.options.watchLoggedIn&&e.$storage.watchState("loggedIn",t=>{I(e.ctx.route,"auth",!1)||e.redirect(t?"home":"logout")})}})()}getState(e){return this._getStateWarnShown||(this._getStateWarnShown=!0,console.warn("[AUTH] $auth.getState is deprecated. Please use $auth.$storage.getState() or top level props like $auth.loggedIn")),this.$storage.getState(e)}registerStrategy(e,t){this.strategies[e]=t}setStrategy(e){if(e===this.$storage.getUniversal("strategy"))return Promise.resolve();if(!this.strategies[e])throw new Error("Strategy ".concat(e," is not defined!"));return this.reset(),this.$storage.setUniversal("strategy",e),this.mounted()}mounted(){return this.getStrategy().mounted?Promise.resolve(this.getStrategy().mounted(...arguments)).catch(e=>(this.callOnError(e,{method:"mounted"}),Promise.reject(e))):this.fetchUserOnce()}loginWith(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return this.setStrategy(e).then(()=>this.login(...r))}login(){return this.getStrategy().login?this.wrapLogin(this.getStrategy().login(...arguments)).catch(e=>(this.callOnError(e,{method:"login"}),Promise.reject(e))):Promise.resolve()}fetchUser(){return this.getStrategy().fetchUser?Promise.resolve(this.getStrategy().fetchUser(...arguments)).catch(e=>(this.callOnError(e,{method:"fetchUser"}),Promise.reject(e))):Promise.resolve()}logout(){return this.getStrategy().logout?Promise.resolve(this.getStrategy().logout(...arguments)).catch(e=>(this.callOnError(e,{method:"logout"}),Promise.reject(e))):(this.reset(),Promise.resolve())}
2setUserToken(e,t){return this.getStrategy().setUserToken?Promise.resolve(this.getStrategy().setUserToken(e,t)).catch(e=>(this.callOnError(e,{method:"setUserToken"}),Promise.reject(e))):(this.getStrategy().token.set(e),Promise.resolve())}reset(){return this.getStrategy().reset||(this.setUser(!1),this.getStrategy().token.reset(),this.getStrategy().refreshToken.reset()),this.getStrategy().reset(...arguments)}refreshTokens(){return this.getStrategy().refreshController?Promise.resolve(this.getStrategy().refreshController.handleRefresh()).catch(e=>(this.callOnError(e,{method:"refreshTokens"}),Promise.reject(e))):Promise.resolve()}check(){return this.getStrategy().check?this.getStrategy().check(...arguments):{valid:!0}}fetchUserOnce(){return this.$state.user?Promise.resolve():this.fetchUser(...arguments)}setUser(e){this.$storage.setState("user",e);var t={valid:Boolean(e)};t.valid&&(t=this.check()),this.$storage.setState("loggedIn",t.valid)}request(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="object"==typeof t?Object.assign({},t,e):e;if(""===r.baseURL&&(r.baseURL=(0,d.default)(this.ctx.req)),this.ctx.app.$axios)return this.ctx.app.$axios.request(r).catch(e=>(this.callOnError(e,{method:"request"}),Promise.reject(e)));console.error("[AUTH] add the @nuxtjs/axios module to nuxt.config file")}requestWith(e,t,r){var n=this.getStrategy().token.get(),o=Object.assign({},r,t),c=this.strategies[e].options.token.name||"Authorization";return o.headers||(o.headers={}),!o.headers[c]&&w(n)&&n&&"string"==typeof n&&(o.headers[c]=n),this.request(o)}wrapLogin(e){return this.$storage.setState("busy",!0),this.error=null,Promise.resolve(e).then(e=>(this.$storage.setState("busy",!1),e)).catch(e=>(this.$storage.setState("busy",!1),Promise.reject(e)))}onError(e){this._errorListeners.push(e)}callOnError(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var r of(this.error=e,this._errorListeners))r(e,t)}redirect(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.options.redirect){var r=this.options.fullPathRedirect?this.ctx.route.fullPath:this.ctx.route.path,n=this.options.redirect[e];if(n){if(this.options.rewriteRedirects&&("login"===e&&T(r)&&!A(this.ctx,n,r)&&this.$storage.setUniversal("redirect",r),"home"===e)){var o=this.$storage.getUniversal("redirect");this.$storage.setUniversal("redirect",null),T(o)&&(n=o)}n=this.callOnRedirect(n,r)||n,A(this.ctx,n,r)||(t?(T(n)&&!n.includes(this.ctx.base)&&(n=C("/"+this.ctx.base+"/"+n)),window.location.replace(n)):this.ctx.redirect(n,this.ctx.query))}}}onRedirect(e){this._redirectListeners.push(e)}callOnRedirect(e,t){for(var r of this._redirectListeners)e=r(e,t)||e;return e}hasScope(e){var t=this.$state.user&&R(this.$state.user,this.options.scopeKey);return!!t&&(Array.isArray(t)?t.includes(e):Boolean(R(t,e)))}};t.authMiddleware=function(){var e=(0,o.default)(function*(e){if(!I(e.route,"auth",!1)){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[].concat(...e.matched.map(function(e,r){return Object.keys(e.components).map(function(n){return t.push(r),e.components[n]})}))}(e.route,[]);if(t.length){var r=e.$auth.options.redirect,n=r.login,o=r.callback,c=I(e.route,"auth","guest"),l=t=>C(e.route.path,e)===C(t,e);if(e.$auth.$state.loggedIn){var d=e.$auth.check(!0),f=d.tokenExpired,h=d.refreshTokenExpired,m=d.isRefreshable;if((!n||l(n)||c)&&e.$auth.redirect("home"),h)e.$auth.reset();else if(f)if(m)try{yield e.$auth.refreshTokens()}catch(t){e.$auth.reset()}else e.$auth.reset()}else c||o&&l(o)||e.$auth.redirect("login")}}});return function(t){return e.apply(this,arguments)}}();class F extends Error{constructor(){super("Error loading OpenIDConnect configuration document"),this.name="ConfigurationDocumentRequestError"}}t.ConfigurationDocumentRequestError=F;var U,j,B=e=>console.warn("[AUTH] [OPENID CONNECT] Invalid configuration. ".concat(e));class H{constructor(e,t){this.scheme=e,this.$storage=t,this.key="_configuration_document."+this.scheme.name}_set(e){return this.$storage.setState(this.key,e)}get(){return this.$storage.getState(this.key)}set(e){return this._set(e),e}request(){var e=this;return(0,o.default)(function*(){var t,r,n,o,c=null==(o=null==(n=null==(r=null==(t=e.scheme.$auth.ctx)?void 0:t.nuxtState)?void 0:r.$auth)?void 0:n.openIDConnect)?void 0:o.configurationDocument;if(c&&e.set(c),!e.get()){var l=yield e.scheme.requestHandler.axios.$get(e.scheme.options.endpoints.configuration).catch(e=>Promise.reject(e));0,e.set(l)}})()}validate(){var e={responseType:"response_type_supported",scope:"scopes_supported",grantType:"grant_types_supported",acrValues:"acr_values_supported"};Object.keys(e).forEach(t=>{var r=this.get(),n=e[t],o=r[n],c=this.scheme.options[t];
2void 0!==o&&(Array.isArray(c)&&Array.isArray(o)&&c.forEach(e=>{o.includes(e)||B("A value of scheme options ".concat(t," is not supported by ").concat(n," of by Authorization Server."))}),Array.isArray(c)||!Array.isArray(o)||o.includes(c)||B("Value of scheme option ".concat(t," is not supported by ").concat(n," of by Authorization Server.")),Array.isArray(c)||Array.isArray(o)||o===c||B("Value of scheme option ".concat(t," is not supported by ").concat(n," of by Authorization Server.")))})}init(){var e=this;return(0,o.default)(function*(){yield e.request().catch(()=>{throw new F}),e.validate(),e.setSchemeEndpoints()})()}setSchemeEndpoints(){var e=this.get();this.scheme.options.endpoints=(0,m.default)(this.scheme.options.endpoints,{authorization:e.authorization_endpoint,token:e.token_endpoint,userInfo:e.userinfo_endpoint,logout:e.end_session_endpoint})}reset(){this._set(!1)}}t.ConfigurationDocument=H;class V extends Error{constructor(){super("Both token and refresh token have expired. Your request was aborted."),this.name="ExpiredAuthSessionError"}}t.ExpiredAuthSessionError=V;class z{constructor(e){this.scheme=e,this._refreshPromise=null,this.$auth=e.$auth}handleRefresh(){return this._refreshPromise?this._refreshPromise:this._doRefresh()}_doRefresh(){return this._refreshPromise=new Promise((e,t)=>{this.scheme.refreshTokens().then(t=>{this._refreshPromise=null,e(t)}).catch(e=>{this._refreshPromise=null,t(e)})}),this._refreshPromise}}t.RefreshController=z,(j=U||(t.TokenStatusEnum=U={})).UNKNOWN="UNKNOWN",j.VALID="VALID",j.EXPIRED="EXPIRED";class Y{constructor(e,t){this._status=this._calculate(e,t)}unknown(){return U.UNKNOWN===this._status}valid(){return U.VALID===this._status}expired(){return U.EXPIRED===this._status}_calculate(e,t){var r=Date.now();try{if(!e||!t)return U.UNKNOWN}catch(e){return U.UNKNOWN}return r<(t-=500)?U.VALID:U.EXPIRED}}t.TokenStatus=Y;class ${constructor(e,t){this.scheme=e,this.$storage=t}get(){var e=this.scheme.options.refreshToken.prefix+this.scheme.name;return this.$storage.getUniversal(e)}set(e){var t=L(e,this.scheme.options.refreshToken.type);return this._setToken(t),this._updateExpiration(t),t}sync(){var e=this._syncToken();return this._syncExpiration(),e}reset(){this._setToken(!1),this._setExpiration(!1)}status(){return new Y(this.get(),this._getExpiration())}_getExpiration(){var e=this.scheme.options.refreshToken.expirationPrefix+this.scheme.name;return this.$storage.getUniversal(e)}_setExpiration(e){var t=this.scheme.options.refreshToken.expirationPrefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncExpiration(){var e=this.scheme.options.refreshToken.expirationPrefix+this.scheme.name;return this.$storage.syncUniversal(e)}_updateExpiration(e){var t,r=Date.now(),n=1e3*Number(this.scheme.options.refreshToken.maxAge),o=n?r+n:0;try{t=1e3*(0,y.default)(e+"").exp||o}catch(e){if(t=o,!e||"InvalidTokenError"!==e.name)throw e}return this._setExpiration(t||!1)}_setToken(e){var t=this.scheme.options.refreshToken.prefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncToken(){var e=this.scheme.options.refreshToken.prefix+this.scheme.name;return this.$storage.syncUniversal(e)}}t.RefreshToken=$;class W{constructor(e,t){this.scheme=e,this.axios=t,this.interceptor=null}setHeader(e){this.scheme.options.token.global&&this.axios.setHeader(this.scheme.options.token.name,e)}clearHeader(){this.scheme.options.token.global&&this.axios.setHeader(this.scheme.options.token.name,!1)}initializeRequestInterceptor(e){var t=this;this.interceptor=this.axios.interceptors.request.use(function(){var r=(0,o.default)(function*(r){if(!t._needToken(r)||r.url===e)return r;var n=t.scheme.check(!0),o=n.valid,c=n.tokenExpired,l=n.refreshTokenExpired,d=n.isRefreshable,f=o;if(l)throw t.scheme.reset(),new V;if(c){if(!d)throw t.scheme.reset(),new V;f=yield t.scheme.refreshTokens().then(()=>!0).catch(()=>{throw t.scheme.reset(),new V})}var h=t.scheme.token.get();if(!f){if(!h&&t._requestHasAuthorizationHeader(r))throw new V;return r}return t._getUpdatedRequestConfig(r,h)});return function(e){return r.apply(this,arguments)}}())}reset(){this.axios.interceptors.request.eject(this.interceptor),this.interceptor=null}_needToken(e){var t=this.scheme.options;return t.token.global||Object.values(t.endpoints).some(t=>"object"==typeof t?t.url===e.url:t===e.url)}_getUpdatedRequestConfig(e,t){return"string"==typeof t&&(e.headers[this.scheme.options.token.name]=t),e}_requestHasAuthorizationHeader(e){return!!e.headers.common[this.scheme.options.token.name]}}t.RequestHandler=W;class K{constructor(e,t){this.scheme=e,this.$storage=t}get(){var e=this.scheme.options.token.prefix+this.scheme.name;return this.$storage.getUniversal(e)}set(e){var t=L(e,this.scheme.options.token.type);return this._setToken(t),this._updateExpiration(t),"string"==typeof t&&this.scheme.requestHandler.setHeader(t),t}sync(){var e=this._syncToken();return this._syncExpiration(),"string"==typeof e&&this.scheme.requestHandler.setHeader(e),e}reset(){this.scheme.requestHandler.clearHeader(),this._setToken(!1),this._setExpiration(!1)}status(){return new Y(this.get(),this._getExpiration())}_getExpiration(){var e=this.scheme.options.token.expirationPrefix+this.scheme.name;return this.$storage.getUniversal(e)}_setExpiration(e){var t=this.scheme.options.token.expirationPrefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncExpiration(){var e=this.scheme.options.token.expirationPrefix+this.scheme.name;return this.$storage.syncUniversal(e)}_updateExpiration(e){var t,r=Date.now(),n=1e3*Number(this.scheme.options.token.maxAge),o=n?r+n:0;try{t=1e3*(0,y.default)(e+"").exp||o}catch(e){if(t=o,!e||"InvalidTokenError"!==e.name)throw e}return this._setExpiration(t||!1)}_setToken(e){var t=this.scheme.options.token.prefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncToken(){var e=this.scheme.options.token.prefix+this.scheme.name;return this.$storage.syncUniversal(e)}}t.Token=K;class G{constructor(e,t){this.scheme=e,this.$storage=t}get(){var e=this.scheme.options.idToken.prefix+this.scheme.name;return this.$storage.getUniversal(e)}set(e){var t=L(e,this.scheme.options.idToken.type);return this._setToken(t),this._updateExpiration(t),t}sync(){var e=this._syncToken();return this._syncExpiration(),e}reset(){this._setToken(!1),this._setExpiration(!1)}status(){return new Y(this.get(),this._getExpiration())}_getExpiration(){var e=this.scheme.options.idToken.expirationPrefix+this.scheme.name;return this.$storage.getUniversal(e)}_setExpiration(e){var t=this.scheme.options.idToken.expirationPrefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncExpiration(){var e=this.scheme.options.idToken.expirationPrefix+this.scheme.name;return this.$storage.syncUniversal(e)}_updateExpiration(e){var t,r=Date.now(),n=1e3*Number(this.scheme.options.idToken.maxAge),o=n?r+n:0;try{t=1e3*(0,y.default)(e+"").exp||o}catch(e){if(t=o,!e||"InvalidTokenError"!==e.name)throw e}return this._setExpiration(t||!1)}_setToken(e){var t=this.scheme.options.idToken.prefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncToken(){var e=this.scheme.options.idToken.prefix+this.scheme.name;return this.$storage.syncUniversal(e)}userInfo(){var e=this.get();if("string"==typeof e)return(0,y.default)(e)}}t.IdToken=G;class Q{constructor(e){this.$auth=e;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.options=r.reduce((p,e)=>(0,m.default)(p,e),{})}get name(){return this.options.name}}t.BaseScheme=Q;var X={name:"local",endpoints:{login:{url:"/api/auth/login",method:"post"},logout:{url:"/api/auth/logout",method:"post"},user:{url:"/api/auth/user",method:"get"}},token:{property:"token",type:"Bearer",name:"Authorization",maxAge:1800,global:!0,required:!0,prefix:"_token.",expirationPrefix:"_token_expiration."},user:{property:"user",autoFetch:!0},clientId:!1,grantType:!1,scope:!1};class J extends Q{constructor(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];super(e,t,...n,X),this.token=new K(this,this.$auth.$storage),this.requestHandler=new W(this,this.$auth.ctx.$axios)}check(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={valid:!1,tokenExpired:!1};return this.token.sync()?e&&this.token.status().expired()?(t.tokenExpired=!0,t):(t.valid=!0,t):t}mounted(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tokenCallback,r=void 0===t?()=>this.$auth.reset():t,n=e.refreshTokenCallback,o=void 0===n?void 0:n,c=this.check(!0),l=c.tokenExpired;return c.refreshTokenExpired&&"function"==typeof o?o():l&&"function"==typeof r&&r(),this.initializeRequestInterceptor(),this.$auth.fetchUserOnce()}login(e){var t=arguments,r=this;return(0,o.default)(function*(){var n=(t.length>1&&void 0!==t[1]?t[1]:{}).reset,o=void 0===n||n;if(r.options.endpoints.login){o&&r.$auth.reset({resetInterceptor:!1}),r.options.clientId&&(e.data.client_id=r.options.clientId),r.options.grantType&&(e.data.grant_type=r.options.grantType),r.options.scope&&(e.data.scope=r.options.scope);var c=yield r.$auth.request(e,r.options.endpoints.login);return r.updateTokens(c),r.requestHandler.interceptor||r.initializeRequestInterceptor(),r.options.user.autoFetch&&(yield r.fetchUser()),c}})()}setUserToken(e){return this.token.set(e),this.fetchUser()}fetchUser(e){return this.check().valid?this.options.endpoints.user?this.$auth.requestWith(this.name,e,this.options.endpoints.user).then(e=>{var t=R(e.data,this.options.user.property);if(!t){var r=new Error("User Data response does not contain field ".concat(this.options.user.property));return Promise.reject(r)}return this.$auth.setUser(t),e}).catch(e=>(this.$auth.callOnError(e,{method:"fetchUser"}),Promise.reject(e))):(this.$auth.setUser({}),Promise.resolve()):Promise.resolve()}logout(){var e=arguments,t=this;return(0,o.default)(function*(){var r=e.length>0&&void 0!==e[0]?e[0]:{};return t.options.endpoints.logout&&(yield t.$auth.requestWith(t.name,r,t.options.endpoints.logout).catch(()=>{})),t.$auth.reset()})()}reset(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).resetInterceptor,t=void 0===e||e;this.$auth.setUser(!1),this.token.reset(),t&&this.requestHandler.reset()}updateTokens(e){var t=!this.options.token.required||R(e.data,this.options.token.property);this.token.set(t)}initializeRequestInterceptor(){this.requestHandler.initializeRequestInterceptor()}}
2t.LocalScheme=J;var Z={name:"cookie",cookie:{name:null},token:{type:"",property:"",maxAge:!1,global:!1,required:!1},endpoints:{csrf:null}};t.CookieScheme=class extends J{constructor(e,t){super(e,t,Z)}mounted(){return super.mounted()}check(){var e={valid:!1};if(!super.check().valid)return e;if(this.options.cookie.name){var t=this.$auth.$storage.getCookies();return e.valid=Boolean(t[this.options.cookie.name]),e}return e.valid=!0,e}login(e){var t=()=>super.login,r=this;return(0,o.default)(function*(){return r.$auth.reset(),r.options.endpoints.csrf&&(yield r.$auth.request(r.options.endpoints.csrf,{maxRedirects:0})),t().call(r,e,{reset:!1})})()}reset(){return this.options.cookie.name&&this.$auth.$storage.setCookie(this.options.cookie.name,null,{prefix:""}),super.reset()}};var ee={name:"oauth2",accessType:null,redirectUri:null,logoutRedirectUri:null,clientId:null,audience:null,grantType:null,responseMode:null,acrValues:null,autoLogout:!1,endpoints:{logout:null,authorization:null,token:null,userInfo:null},scope:[],token:{property:"access_token",type:"Bearer",name:"Authorization",maxAge:1800,global:!0,prefix:"_token.",expirationPrefix:"_token_expiration."},refreshToken:{property:"refresh_token",maxAge:2592e3,prefix:"_refresh_token.",expirationPrefix:"_refresh_token_expiration."},user:{property:!1},responseType:"token",codeChallengeMethod:"implicit"};class te extends Q{constructor(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];super(e,t,...n,ee),this.req=e.ctx.req,this.token=new K(this,this.$auth.$storage),this.refreshToken=new $(this,this.$auth.$storage),this.refreshController=new z(this),this.requestHandler=new W(this,this.$auth.ctx.$axios)}get scope(){return Array.isArray(this.options.scope)?this.options.scope.join(" "):this.options.scope}get redirectURI(){var path=C((this.$auth.ctx.base||"")+"/"+this.$auth.options.redirect.callback);return this.options.redirectUri||D((0,d.default)(this.req),path)}get logoutRedirectURI(){return this.options.logoutRedirectUri||D((0,d.default)(this.req),this.$auth.options.redirect.logout)}check(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={valid:!1,tokenExpired:!1,refreshTokenExpired:!1,isRefreshable:!0},r=this.token.sync();if(this.refreshToken.sync(),!r)return t;if(!e)return t.valid=!0,t;var n=this.token.status();return this.refreshToken.status().expired()?(t.refreshTokenExpired=!0,t):n.expired()?(t.tokenExpired=!0,t):(t.valid=!0,t)}mounted(){var e=this;return(0,o.default)(function*(){var t=e.check(!0),r=t.tokenExpired;if((t.refreshTokenExpired||r&&e.options.autoLogout)&&e.$auth.reset(),e.requestHandler.initializeRequestInterceptor(e.options.endpoints.token),!(yield e._handleCallback()))return e.$auth.fetchUserOnce()})()}reset(){this.$auth.setUser(!1),this.token.reset(),this.refreshToken.reset(),this.requestHandler.reset()}login(){var e=arguments,t=this;return(0,o.default)(function*(){var r=e.length>0&&void 0!==e[0]?e[0]:{},n=_({protocol:"oauth2",response_type:t.options.responseType,access_type:t.options.accessType,client_id:t.options.clientId,redirect_uri:t.redirectURI,scope:t.scope,state:r.state||k(10),code_challenge_method:t.options.codeChallengeMethod},r.params);if(t.options.audience&&(n.audience=t.options.audience),(n.response_type.includes("token")||n.response_type.includes("id_token"))&&(n.nonce=r.nonce||k(10)),n.code_challenge_method)switch(n.code_challenge_method){case"plain":case"S256":var o=t.generateRandomString();t.$auth.$storage.setUniversal(t.name+".pkce_state",o);var c=t.generateRandomString();t.$auth.$storage.setUniversal(t.name+".pkce_code_verifier",c);var l=yield t.pkceChallengeFromVerifier(c,"S256"===n.code_challenge_method);n.code_challenge=window.encodeURIComponent(l)}t.options.responseMode&&(n.response_mode=t.options.responseMode),t.options.acrValues&&(n.acr_values=t.options.acrValues),t.$auth.$storage.setUniversal(t.name+".state",n.state);var d=t.options.endpoints.authorization+"?"+S(n);window.location.replace(d)})()}logout(){if(this.options.endpoints.logout){var e={client_id:this.options.clientId+"",logout_uri:this.logoutRedirectURI},t=this.options.endpoints.logout+"?"+S(e);window.location.replace(t)}return this.$auth.reset()}fetchUser(){var e=this;return(0,o.default)(function*(){if(e.check().valid)if(e.options.endpoints.userInfo){var t=yield e.$auth.requestWith(e.name,{url:e.options.endpoints.userInfo});e.$auth.setUser(R(t.data,e.options.user.property))}else e.$auth.setUser({})})()}_handleCallback(){var e=this;return(0,o.default)(function*(){if(!e.$auth.options.redirect||C(e.$auth.ctx.route.path,e.$auth.ctx)===C(e.$auth.options.redirect.callback,e.$auth.ctx)){0;var t,r=O(e.$auth.ctx.route.hash.substr(1)),n=Object.assign({},e.$auth.ctx.route.query,r),o=n[e.options.token.property];e.options.refreshToken.property&&(t=n[e.options.refreshToken.property]);var c=e.$auth.$storage.getUniversal(e.name+".state");if(e.$auth.$storage.setUniversal(e.name+".state",null),!c||n.state===c){if("code"===e.options.responseType&&n.code){var l;
2e.options.codeChallengeMethod&&"implicit"!==e.options.codeChallengeMethod&&(l=e.$auth.$storage.getUniversal(e.name+".pkce_code_verifier"),e.$auth.$storage.setUniversal(e.name+".pkce_code_verifier",null));var d=yield e.$auth.request({method:"post",url:e.options.endpoints.token,baseURL:"",data:S({code:n.code,client_id:e.options.clientId+"",redirect_uri:e.redirectURI,response_type:e.options.responseType,audience:e.options.audience,grant_type:e.options.grantType,code_verifier:l})});o=R(d.data,e.options.token.property)||o,t=R(d.data,e.options.refreshToken.property)||t}if(o&&o.length)return e.token.set(o),t&&t.length&&e.refreshToken.set(t),e.$auth.options.watchLoggedIn?(e.$auth.redirect("home",!0),!0):void 0}}})()}refreshTokens(){var e=this;return(0,o.default)(function*(){var t=e.refreshToken.get();if(t){if(e.refreshToken.status().expired())throw e.$auth.reset(),new V;e.requestHandler.clearHeader();var r,n,o=yield e.$auth.request({method:"post",url:e.options.endpoints.token,baseURL:"",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:S({refresh_token:(r=t,n=e.options.token.type,r&&n&&"string"==typeof r?r.replace(n+" ",""):r),scopes:e.scope,client_id:e.options.clientId+"",grant_type:"refresh_token"})}).catch(t=>(e.$auth.callOnError(t,{method:"refreshToken"}),Promise.reject(t)));return e.updateTokens(o),o}})()}updateTokens(e){var t=R(e.data,this.options.token.property),r=R(e.data,this.options.refreshToken.property);this.token.set(t),r&&this.refreshToken.set(r)}pkceChallengeFromVerifier(e,t){var r=this;return(0,o.default)(function*(){if(t){var n=yield r._sha256(e);return r._base64UrlEncode(n)}return e})()}generateRandomString(){var e=new Uint32Array(28);return window.crypto.getRandomValues(e),Array.from(e,e=>("0"+e.toString(16)).substr(-2)).join("")}_sha256(e){var data=(new TextEncoder).encode(e);return window.crypto.subtle.digest("SHA-256",data)}_base64UrlEncode(e){return btoa(String.fromCharCode.apply(null,new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}}t.Oauth2Scheme=te;var re={name:"openIDConnect",responseType:"code",grantType:"authorization_code",scope:["openid","profile","offline_access"],idToken:{property:"id_token",maxAge:1800,prefix:"_id_token.",expirationPrefix:"_id_token_expiration."},codeChallengeMethod:"S256"};t.OpenIDConnectScheme=class extends te{constructor(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];super(e,t,...n,re),this.idToken=new G(this,this.$auth.$storage),this.configurationDocument=new H(this,this.$auth.$storage)}updateTokens(e){super.updateTokens(e);var t=R(e.data,this.options.idToken.property);t&&this.idToken.set(t)}check(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={valid:!1,tokenExpired:!1,refreshTokenExpired:!1,idTokenExpired:!1,isRefreshable:!0},r=this.token.sync();if(this.refreshToken.sync(),this.idToken.sync(),!r)return t;if(!e)return t.valid=!0,t;var n=this.token.status(),o=this.refreshToken.status(),c=this.idToken.status();return o.expired()?(t.refreshTokenExpired=!0,t):n.expired()?(t.tokenExpired=!0,t):c.expired()?(t.idTokenExpired=!0,t):(t.valid=!0,t)}mounted(){var e=this;return(0,o.default)(function*(){yield e.configurationDocument.init();var t=e.check(!0),r=t.tokenExpired;if((t.refreshTokenExpired||r&&e.options.autoLogout)&&e.$auth.reset(),e.requestHandler.initializeRequestInterceptor(e.options.endpoints.token),!(yield e._handleCallback()))return e.$auth.fetchUserOnce()})()}reset(){this.$auth.setUser(!1),this.token.reset(),this.idToken.reset(),this.refreshToken.reset(),this.requestHandler.reset(),this.configurationDocument.reset()}logout(){if(this.options.endpoints.logout){var e={id_token_hint:this.idToken.get(),post_logout_redirect_uri:this.logoutRedirectURI},t=this.options.endpoints.logout+"?"+S(e);window.location.replace(t)}return this.$auth.reset()}fetchUser(){var e=this;return(0,o.default)(function*(){if(e.check().valid)if(e.idToken.get()){var t=e.idToken.userInfo();e.$auth.setUser(t)}else if(e.options.endpoints.userInfo){var data=(yield e.$auth.requestWith(e.name,{url:e.options.endpoints.userInfo})).data;e.$auth.setUser(data)}else e.$auth.setUser({})})()}_handleCallback(){var e=this;return(0,o.default)(function*(){if(!e.$auth.options.redirect||C(e.$auth.ctx.route.path)===C(e.$auth.options.redirect.callback)){0;var t,r=O(e.$auth.ctx.route.hash.substr(1)),n=Object.assign({},e.$auth.ctx.route.query,r),o=n[e.options.token.property];e.options.refreshToken.property&&(t=n[e.options.refreshToken.property]);var c=n[e.options.idToken.property],l=e.$auth.$storage.getUniversal(e.name+".state");if(e.$auth.$storage.setUniversal(e.name+".state",null),!l||n.state===l){if("code"===e.options.responseType&&n.code){var d;e.options.codeChallengeMethod&&"implicit"!==e.options.codeChallengeMethod&&(d=e.$auth.$storage.getUniversal(e.name+".pkce_code_verifier"),e.$auth.$storage.setUniversal(e.name+".pkce_code_verifier",null));var f=yield e.$auth.request({method:"post",url:e.options.endpoints.token,baseURL:"",data:S({code:n.code,client_id:e.options.clientId,redirect_uri:e.redirectURI,response_type:e.options.responseType,audience:e.options.audience,grant_type:e.options.grantType,code_verifier:d})});o=R(f.data,e.options.token.property)||o,t=R(f.data,e.options.refreshToken.property)||t,c=R(f.data,e.options.idToken.property)||c}if(o&&o.length)return e.token.set(o),t&&t.length&&e.refreshToken.set(t),c&&c.length&&e.idToken.set(c),e.$auth.redirect("home",!0),!0}}})()}};var ne={name:"refresh",endpoints:{refresh:{url:"/api/auth/refresh",method:"post"}},refreshToken:{property:"refresh_token",data:"refresh_token",maxAge:2592e3,required:!0,tokenRequired:!1,prefix:"_refresh_token.",expirationPrefix:"_refresh_token_expiration."},autoLogout:!1};class ie extends J{constructor(e,t){super(e,t,ne),this.refreshRequest=null,this.refreshToken=new $(this,this.$auth.$storage),this.refreshController=new z(this)}check(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={valid:!1,tokenExpired:!1,refreshTokenExpired:!1,isRefreshable:!0},r=this.token.sync(),n=this.refreshToken.sync();if(!r||!n)return t;if(!e)return t.valid=!0,t;var o=this.token.status();return this.refreshToken.status().expired()?(t.refreshTokenExpired=!0,t):o.expired()?(t.tokenExpired=!0,t):(t.valid=!0,t)}mounted(){return super.mounted({tokenCallback:()=>{this.options.autoLogout&&this.$auth.reset()},refreshTokenCallback:()=>{this.$auth.reset()}})}refreshTokens(){if(!this.options.endpoints.refresh)return Promise.resolve();if(!this.check().valid)return Promise.resolve();if(this.refreshToken.status().expired())throw this.$auth.reset(),new V;this.options.refreshToken.tokenRequired||this.requestHandler.clearHeader();var e={data:{client_id:void 0,grant_type:void 0}};return this.options.refreshToken.required&&this.options.refreshToken.data&&(e.data[this.options.refreshToken.data]=this.refreshToken.get()),this.options.clientId&&(e.data.client_id=this.options.clientId),this.options.grantType&&(e.data.grant_type="refresh_token"),function(e){for(var t in e)void 0===e[t]&&delete e[t]}(e.data),this.refreshRequest=this.refreshRequest||this.$auth.request(e,this.options.endpoints.refresh),this.refreshRequest.then(e=>(this.updateTokens(e,{isRefreshing:!0}),e)).catch(e=>(this.$auth.callOnError(e,{method:"refreshToken"}),Promise.reject(e))).finally(()=>{this.refreshRequest=null})}setUserToken(e,t){return this.token.set(e),t&&this.refreshToken.set(t),this.fetchUser()}reset(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).resetInterceptor,t=void 0===e||e;this.$auth.setUser(!1),this.token.reset(),this.refreshToken.reset(),t&&this.requestHandler.reset()}updateTokens(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isRefreshing,n=void 0!==r&&r,o=t.updateOnRefresh,c=void 0===o||o,l=!this.options.token.required||R(e.data,this.options.token.property),d=!this.options.refreshToken.required||R(e.data,this.options.refreshToken.property);this.token.set(l),d&&(!n||n&&c)&&this.refreshToken.set(d)}initializeRequestInterceptor(){this.requestHandler.initializeRequestInterceptor(this.options.endpoints.refresh.url)}}t.RefreshScheme=ie;t.Auth0Scheme=class extends te{logout(){this.$auth.reset();var e={client_id:this.options.clientId+"",returnTo:this.logoutRedirectURI},t=this.options.endpoints.logout+"?"+S(e);window.location.replace(t)}};t.LaravelJWTScheme=class extends ie{updateTokens(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isRefreshing,n=void 0!==r&&r,o=t.updateOnRefresh,c=void 0!==o&&o;super.updateTokens(e,{isRefreshing:n,updateOnRefresh:c})}}},function(e,t,r){"use strict";r.r(t);var n=function(e,t=!0){const r=t&&e.headers?e.headers["x-forwarded-proto"]:void 0,n="string"==typeof r?r.includes("https"):void 0;if(n)return!0;const o=e.connection?e.connection.encrypted:void 0,c=void 0!==o?!0===o:void 0;return!!c||void 0===n&&void 0===c&&void 0};const o="undefined"!=typeof location?location:{origin:"",pathname:"/"};t.default=function(e,t){return e?encodeURI("http"+(n(e)?"s":"")+"://"+(e.headers["x-forwarded-host"]||e.headers.host)+(t?e.url:"")):o.origin+(t?o.pathname:"")}},function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e}function o(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",c=arguments.length>3?arguments[3]:void 0;if(!n(t))return o(e,{},r,c);var l=Object.assign({},t);for(var d in e)if("__proto__"!==d&&"constructor"!==d){var f=e[d];null!=f&&(c&&c(l,d,f,r)||(Array.isArray(f)&&Array.isArray(l[d])?l[d]=l[d].concat(f):n(f)&&n(l[d])?l[d]=o(f,l[d],(r?"".concat(r,"."):"")+d.toString(),c):l[d]=f))}return l}function c(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.reduce((p,t)=>o(p,t,"",e),{})}}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(33),r(18);var l=t.default=c();l.fn=c((e,t,r,n)=>{if(void 0!==e[t]&&"function"==typeof r)return e[t]=r(e[t]),!0}),l.arrayFn=c((e,t,r,n)=>{if(Array.isArray(e[t])&&"function"==typeof r)return e[t]=r(e[t]),!0}),l.extend=c},function(e,t,r){"use strict";function n(e){this.message=e}r.r(t),r.d(t,"InvalidTokenError",function(){return l}),n.prototype=new Error,n.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new n("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(r=a%4?64*r+o:o,a++%4)?c+=String.fromCharCode(255&r>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function c(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(e){return o(t)}}function l(e){this.message=e}l.prototype=new Error,l.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new l("Invalid token specified");var r=!0===(t=t||{}).header?0:1;try{return JSON.parse(c(e.split(".")[r]))}catch(e){throw new l("Invalid token specified: "+e.message)}}},,,,,,function(e,t,r){"use strict";r.r(t),r.d(t,"SplitFactory",function(){return xo});var n=r(9),o=r(0),c=new Set(["splitsdkclientkey","splitsdkversion","splitsdkmachineip","splitsdkmachinename","splitsdkimpressionsmode","host","referrer","content-type","content-length","content-encoding","accept","keep-alive","x-fastly-debug"]);function l(e,t){var r;if(null===(r=e.sync.requestOptions)||void 0===r?void 0:r.getHeaderOverrides)try{var o=e.sync.requestOptions.getHeaderOverrides({headers:Object(n.a)({},t)});Object.keys(o).filter(function(e){return!c.has(e.toLowerCase())}).forEach(function(e){return t[e]=o[e]})}catch(t){e.log.error("Problem adding custom headers to request decorator: "+t)}return t}function d(e,t){return e<1?t:new Promise(function(r,n){var o=setTimeout(function(){n(new Error("Operation timed out because it exceeded the configured time limit of ".concat(e," ms.")))},e);t.then(function(e){clearTimeout(o),r(e)},function(e){clearTimeout(o),n(e)})})}var f=100,h="Global fetch API is not available.";var m="control",y="DEBUG",v="OPTIMIZED",_="NONE",E="localhost",w="standalone",A="producer",T="consumer",O="consumer_partial",S="MEMORY",I="LOCALSTORAGE",C="GRANTED",N="DECLINED",P="UNKNOWN",R="getTreatment",L="getTreatments",D="getTreatmentWithConfig",x="getTreatmentsWithConfig",k="getTreatmentsByFlagSet",M="getTreatmentsByFlagSets",F="getTreatmentsWithConfigByFlagSet",U="getTreatmentsWithConfigByFlagSets",j="track",B="split",H="splits",V="names",z=0,Y=1,$=2,W="sp",K="im",G="ic",Q="ev",X="te",J="to",Z="se",ee="ms",te="t",re="ts",ne="tc",ie="tcs",oe="tf",ae="tfs",se="tcf",ce="tcfs",ue="tr",le=50,de=80,pe="1.3",fe="IN_SEGMENT",he="IN_RULE_BASED_SEGMENT",me="standard",ye="rule-based",ve={headers:{"Cache-Control":"no-cache"}};function ge(e){return"users="+encodeURIComponent(e)}function _e(e,t,r){var c=e.urls,m=e.sync.__splitFiltersValidation&&e.sync.__splitFiltersValidation.queryString,y=e.sync.impressionsMode,v=function(e,t){var r=t.getOptions,c=t.getFetch,m=e.log,y=e.core.authorizationKey,v=e.version,_=e.runtime,E=_.ip,w=_.hostname,A=r&&r(e),T=c&&c(e);T||m.error(o.t,[h]);var O={Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer ".concat(y),SplitSDKVersion:v};return E&&(O.SplitSDKMachineIP=E),w&&(O.SplitSDKMachineName=w.replace(/[^\x00-\xFF]/g,"")),function(t,r,c,y){void 0===r&&(r={}),void 0===c&&(c=function(){}),void 0===y&&(y=!1);var v=Object(n.a)({headers:l(e,Object(n.a)({},O,r.headers||{})),method:r.method||"GET",body:r.body},A);return T?T(t,v).then(function(e){return e.ok?(c(),e):d(f,e.text()).then(function(t){return Promise.reject({response:e,message:t})},function(){return Promise.reject({response:e})})}).catch(function(e){var r=e&&e.response,n="";n=r?404===r.status?"Invalid SDK key or resource not found.":e.message:e.message||"Network Error",r&&403===r.status||m[y?"info":"error"](o.B,[r?"status code "+r.status:"no status code",t,n]);var l=new Error(n);throw l.statusCode=r&&r.status,c(l),l}):Promise.reject(new Error(h))}}(e,t);return{getSdkAPIHealthCheck:function(){var e="".concat(c.sdk,"/version");return v(e).then(function(){return!0}).catch(function(){return!1})},getEventsAPIHealthCheck:function(){var e="".concat(c.events,"/version");return v(e).then(function(){return!0}).catch(function(){return!1})},fetchAuth:function(t){var n="".concat(c.auth,"/v2/auth?s=").concat(e.sync.flagSpecVersion);if(t){var o=t.map(ge).join("&");o&&(n+="&"+o)}return v(n,void 0,r.trackHttp(J))},fetchSplitChanges:function(t,n,l,d){var f="".concat(c.sdk,"/splitChanges?s=").concat(e.sync.flagSpecVersion,"&since=").concat(t).concat(d?"&rbSince="+d:"").concat(m||"").concat(l?"&till="+l:"");return v(f,n?ve:void 0,r.trackHttp(W)).catch(function(t){throw 414===t.statusCode&&e.log.error(o.U),t})},fetchSegmentChanges:function(e,t,n,o){var l="".concat(c.sdk,"/segmentChanges/").concat(t,"?since=").concat(e).concat(o?"&till="+o:"");return v(l,n?ve:void 0,r.trackHttp(Z))},fetchMemberships:function(e,t,n){var o="".concat(c.sdk,"/memberships/").concat(encodeURIComponent(e)).concat(n?"?till="+n:"");return v(o,t?ve:void 0,r.trackHttp(ee))},postEventsBulk:function(body,e){var t="".concat(c.events,"/events/bulk");return v(t,{method:"POST",body:body,headers:e},r.trackHttp(Q))},postTestImpressionsBulk:function(body,e){var t="".concat(c.events,"/testImpressions/bulk");return v(t,{method:"POST",body:body,headers:Object(n.a)({SplitSDKImpressionsMode:y},e)},r.trackHttp(K))},postTestImpressionsCount:function(body,e){var t="".concat(c.events,"/testImpressions/count");return v(t,{method:"POST",body:body,headers:e},r.trackHttp(G))},postUniqueKeysBulkCs:function(body,e){var t="".concat(c.telemetry,"/v1/keys/cs");return v(t,{method:"POST",body:body,headers:e},r.trackHttp(X))},postUniqueKeysBulkSs:function(body,e){var t="".concat(c.telemetry,"/v1/keys/ss");return v(t,{method:"POST",body:body,headers:e},r.trackHttp(X))},postMetricsConfig:function(body,e){var t="".concat(c.telemetry,"/v1/metrics/config");return v(t,{method:"POST",body:body,headers:e},r.trackHttp(X),!0)},postMetricsUsage:function(body,e){var t="".concat(c.telemetry,"/v1/metrics/usage");return v(t,{method:"POST",body:body,headers:e},r.trackHttp(X),!0)}}}function be(e,t,r,n){void 0===n&&(n="task");var c,l,d,f=0,h=!1,m=0;function y(){for(var r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return f++,e.debug(o.ac,[n]),c=(c?c.then(function(){return t.apply(void 0,r)}):t.apply(void 0,r)).then(function(e){return f--,e})}function v(e){return y.apply(void 0,l).then(function(t){return h&&e===m&&(d=setTimeout(v,r,e)),t})}return{execute:y,isExecuting:function(){return f>0},start:function(){for(var t=[],c=0;c<arguments.length;c++)t[c]=arguments[c];if(!h)return h=!0,m++,l=t,e.debug(o.bc,[n,r]),v(m)},stop:function(){h&&(h=!1,e.debug(o.cc,[n]),clearTimeout(d),d=void 0)},isRunning:function(){return h}}}function Ee(e,t,r,n,c,l,d){void 0===l&&(l=0);var data,f=r.name,h=0;return be(e,function(){if(r.isEmpty()&&!data)return Promise.resolve();var n="number"==typeof(data=r.pop(data)).length?"".concat(data.length," ").concat(f):f;e[d?"debug":"info"](o.Lb,[n]);var m=JSON.stringify(c?c(data):data);return l||(data=void 0),t(m).then(function(){h=0,data=void 0}).catch(function(t){l?h===l?(h=0,data=void 0,e[d?"debug":"warn"](o.Mb,[n,t])):(h++,e[d?"debug":"warn"](o.Pb,[n,t])):e[d?"debug":"warn"](o.Mb,[n,t])})},n,f+" submitter")}function we(e,t){var r,n=!1,o=e.start;e.start=function(){n=!0,r=setTimeout(o,t)};var c=e.stop;return e.stop=function(){n=!1,clearTimeout(r),c()},e.isRunning=function(){return n},e}function Ae(e){var t=e.settings,r=t.log,n=t.scheduler.eventsPushRate,c=t.startup.eventsFirstPushWindow,l=e.splitApi.postEventsBulk,d=e.storage.events,f=Ee(r,l,d,n);return c>0&&(f=we(f,c)),d.setOnFullQueueCb(function(){f.isRunning()&&(r.info(o.Nb,[d.name]),f.execute())}),f}var Te=r(1);function Oe(e,data){var t=Object(Te.f)(data,"feature"),r=[];return Object(Te.d)(t,function(t,n){r.push({f:n,i:t.map(function(t){return{k:t.keyName,t:t.treatment,m:t.time,c:t.changeNumber,r:e?t.label:void 0,b:t.bu
2cketingKey,pt:t.pt,properties:t.properties}})})}),r}function Se(e){var t=e.settings,r=t.log,n=t.scheduler.impressionsRefreshRate,c=t.core.labelsEnabled,l=e.splitApi.postTestImpressionsBulk,d=e.storage.impressions,f=Ee(r,l,d,n,Oe.bind(void 0,c),1);return d.setOnFullQueueCb(function(){f.isRunning()&&(r.info(o.Nb,[d.name]),f.execute())}),f}function Ie(e){for(var t=[],r=Object.keys(e),i=0;i<r.length;i++){var n=r[i].split("::");if(2===n.length){var o=n[0],c=n[1],l={f:o,m:Number(c),rc:e[r[i]]};t.push(l)}}return{pf:t}}function Ce(e){return Ee(e.settings.log,e.splitApi.postTestImpressionsCount,e.storage.impressionCounts,18e5,Ie,1)}var Ne="state::splits-arrived",Pe="state::splits-cache-loaded",Re="state::segments-arrived",Le="init::timeout",De="init::ready",xe="init::cache-ready",ke="state::update",Me="FLAGS_UPDATE",Fe="SEGMENTS_UPDATE";function Ue(e){return T===e||O===e}var je=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/;function Be(e,t,r,n){if(void 0===n&&(n="feature flag name"),null==t)e.error(o.M,[r,n]);else if(Object(Te.k)(t)){if(je.test(t)&&(e.warn(o.uc,[r,n,t]),t=t.trim()),t.length>0)return t;e.error(o.w,[r,n])}else e.error(o.E,[r,n]);return!1}function He(e,t,r,n,c){if(void 0===n&&(n="feature flag names"),void 0===c&&(c="feature flag name"),Array.isArray(t)&&t.length>0){var l=[];if(t.forEach(function(t){var n=Be(e,t,r,c);n&&l.push(n)}),l.length)return Object(Te.q)(l)}return e.error(o.x,[r,n]),!1}var Ve=[{type:"bySet",maxLength:50,queryParam:"sets="},{type:"byName",maxLength:400,queryParam:"names="},{type:"byPrefix",maxLength:50,queryParam:"prefixes="}],ze=/^[a-z0-9][_a-z0-9]{0,49}$/,Ye=/[A-Z]/;function qe(e,t,r){var n=t.map(function(t){return Ye.test(t)&&(e.warn(o.lc,[r,t]),t=t.toLowerCase()),t}).filter(function(t){return ze.test(t)?"string"==typeof t:(e.warn(o.kc,[r,t,ze,t]),!1)});return Object(Te.q)(n)}function $e(e,t){return Object(Te.b)(e,function(filter){return filter.type===t&&filter.values.length>0})}function We(e,t,r){var c,l,d={validFilters:[],queryString:null,groupedFilters:{bySet:[],byName:[],byPrefix:[]}};return t?Ue(r)?(e.warn(o.sc),d):Array.isArray(t)&&0!==t.length?(d.validFilters=t.filter(function(filter,t){return filter&&(r=filter.type,Ve.some(function(e){return e.type===r}))&&Array.isArray(filter.values)?(d.groupedFilters[filter.type]=d.groupedFilters[filter.type].concat(filter.values),!0):(e.warn(o.tc,[t]),!1);var r}),Ve.forEach(function(t){var r=t.type,n=t.maxLength;d.groupedFilters[r].length>0&&(d.groupedFilters[r]=function(e,t,r,n){var c=He(e,r,o.hb,"".concat(t," filter"),"".concat(t," filter value"));if(c){if("bySet"===t&&(c=qe(e,c,o.hb)),c.length>n)throw new Error("".concat(n," unique values can be specified at most for '").concat(t,"' filter. You passed ").concat(c.length,". Please consider reducing the amount or using other filter."));c.sort()}return c||[]}(e,r,d.groupedFilters[r],n))}),$e(d.validFilters,"bySet")&&(($e(d.validFilters,"byName")||$e(d.validFilters,"byPrefix"))&&e.error(o.N),Object(n.a)(d.groupedFilters,{byName:[],byPrefix:[]})),d.queryString=(c=d.groupedFilters,l=[],Ve.forEach(function(e){var t=e.type,r=e.queryParam,filter=c[t];filter.length>0&&l.push(r+filter.map(function(e){return encodeURIComponent(e)}).join(","))}),l.length>0?"&"+l.join("&"):null),e.debug(o.zb,[d.queryString]),d):(e.warn(o.rc),d):d}var Ke,Ge=250;function Qe(e,t,r,n){if(null==t)return e.error(o.M,[r,n]),!1;if(Object(Te.h)(t))return e.warn(o.gc,[r,n,t]),Object(Te.p)(t);if(Object(Te.k)(t)){if((t=t.trim()).length>0&&t.length<=Ge)return t;0===t.length?e.error(o.w,[r,n]):t.length>Ge&&e.error(o.T,[r,n])}else e.error(o.E,[r,n]);return!1}function Xe(e,t,r){if(Object(Te.j)(t)){var n=Qe(e,t.matchingKey,r,"matchingKey"),c=Qe(e,t.bucketingKey,r,"bucketingKey");return n&&c?{matchingKey:n,bucketingKey:c}:(e.error(o.G,[r]),!1)}return Qe(e,t,r,"key")}function Je(e,t,r,n){var o=r.splits,c=r.rbSegments,l=r.segments,d=r.largeSegments,f=t.splitChanges,h=f.ff,m=f.rbs;e.debug("storage: set feature flags and segments".concat(n?" for key ".concat(n):"")),o&&h&&(o.clear(),o.update(h.d||[],[],h.t)),c&&m&&(c.clear(),c.update(m.d||[],[],m.t));var y=t.segmentChanges;if(n){var v=t.memberships&&t.memberships[n];!v&&y&&(v={ms:{k:y.filter(function(e){return e.added.indexOf(n)>-1}).map(function(e){return{n:e.name}})}}),v&&(v.ms&&l.resetSegments(v.ms),v.ls&&d&&d.resetSegments(v.ls))}
2else y&&(l.clear(),y.forEach(function(e){l.update(e.name,e.added,e.removed,e.till)}))}!function(e){e.FlagName="Invalid flag name (max 100 chars, no spaces)",e.Treatment="Invalid treatment (max 100 chars and must match pattern)"}(Ke||(Ke={}));var Ze=/^[0-9]+[.a-zA-Z0-9_-]*$|^[a-zA-Z]+[a-zA-Z0-9_-]*$/;function et(e){var t=Object(Te.j)(e)?e.treatment:e;return!(!Object(Te.k)(t)||t.length>100)&&Ze.test(t)}function tt(e,t){if(void 0!==t){if(et(t))return t;e.error("Fallback treatments - Discarded fallback: ".concat(Ke.Treatment))}}function nt(e,t){var r={};return Object(Te.j)(t)?(Object.keys(t).forEach(function(n){var o,c=t[n];(o=n).length<=100&&!o.includes(" ")?et(c)?r[n]=c:e.error("Fallback treatments - Discarded treatment for flag '".concat(n,"': ").concat(Ke.Treatment)):e.error("Fallback treatments - Discarded flag '".concat(n,"': ").concat(Ke.FlagName))}),r):r}var base={mode:w,core:{authorizationKey:void 0,key:void 0,labelsEnabled:!0,IPAddressesEnabled:void 0},scheduler:{featuresRefreshRate:60,segmentsRefreshRate:60,telemetryRefreshRate:3600,impressionsRefreshRate:300,offlineRefreshRate:15,eventsPushRate:60,eventsQueueSize:500,impressionsQueueSize:3e4,pushRetryBackoffBase:1},urls:{sdk:"https://sdk.split.io/api",events:"https://events.split.io/api",auth:"https://auth.split.io/api",streaming:"https://streaming.split.io",telemetry:"https://telemetry.split.io/api"},storage:void 0,debug:void 0,impressionListener:void 0,version:void 0,integrations:void 0,streamingEnabled:!0,sync:{splitFilters:void 0,impressionsMode:v,enabled:!0,flagSpecVersion:pe},log:void 0};function it(e){return Math.round(1e3*e)}function ot(e,t){var r=t.defaults,n=t.runtime,c=t.storage,l=t.integrations,d=t.logger,f=t.consent,h=t.flagSpec,m=Object(Te.l)({},base,r,e);m.features=Object(Te.e)(e,"features");var S=d(m);m.log=S;var I=m.sync;I.impressionsMode=function(e,t){return t=Object(Te.n)(t),[y,v,_].indexOf(t)>-1?t:(e.error(o.F,["impressionsMode",[y,v,_],v]),v)}(S,I.impressionsMode);var C,N,P,R=m.scheduler,L=m.startup;R.featuresRefreshRate=it(R.featuresRefreshRate),R.segmentsRefreshRate=it(R.segmentsRefreshRate),R.offlineRefreshRate=it(R.offlineRefreshRate),R.eventsPushRate=it(R.eventsPushRate),R.telemetryRefreshRate=it((C="telemetryRefreshRate",(N=R.telemetryRefreshRate)>=(P=60)?N:(S.error(o.I,[C,P]),P))),void 0===Object(Te.e)(e,"scheduler.impressionsRefreshRate")&&I.impressionsMode===y&&(R.impressionsRefreshRate=60),R.impressionsRefreshRate=it(R.impressionsRefreshRate),R.metricsRefreshRate&&S.warn("`metricsRefreshRate` will be deprecated soon. For configuring telemetry rates, update `telemetryRefreshRate` value in configs"),L.requestTimeoutBeforeReady=it(L.requestTimeoutBeforeReady),L.readyTimeout=it(L.readyTimeout),L.eventsFirstPushWindow=it(L.eventsFirstPushWindow),m.mode=function(e,t){if("localhost"===e)return E;if(-1===[w,A,T,O].indexOf(t))throw Error("Invalid mode provided");return t}(m.core.authorizationKey,m.mode),c&&(m.storage=c(m)),m.initialRolloutPlan&&(m.initialRolloutPlan=function(e,t){var r=t.mode,n=t.initialRolloutPlan;if(!Ue(r))return Object(Te.j)(n)&&Object(Te.j)(n.splitChanges)?n:void e.error("storage: invalid rollout plan provided");e.warn("storage: initial rollout plan is ignored in consumer mode")}(S,m));var D=m.core.key;t.acceptKey?m.mode===E&&void 0===D?m.core.key="localhost_key":m.core.key=Xe(S,D,o.Z):(void 0!==D&&S.warn("Provided `key` is ignored in server-side SDK."),m.core.key=void 0),m.runtime=n(m),l&&(m.integrations=l(m)),!1!==m.streamingEnabled&&(m.streamingEnabled=!0,R.pushRetryBackoffBase=it(R.pushRetryBackoffBase)),!1!==I.enabled&&(I.enabled=!0);var x=We(S,I.splitFilters,m.mode);return I.splitFilters=x.validFilters,I.__splitFiltersValidation=x,I.flagSpecVersion=h?h(m):pe,m.userConsent=f?f(m):void 0,m.fallbackTreatments=m.fallbackTreatments?function(e,t){if(Object(Te.j)(t))return{global:tt(e,t.global),byFlag:nt(e,t.byFlag)};e.error("Fallback treatments - Discarded configuration: it must be an object with optional `global` and `byFlag` properties")}(S,m.fallbackTreatments):void 0,m}var at="sdk_key";var st,ct,ut,lt={};function pt(e,t){var r=function(e,t){var r=!1;return null==t?e.error(o.M,[o.gb,at]):Object(Te.k)(t)?t.length>0?r=t:e.error(o.w,[o.gb,at]):e.error(o.E,[o.gb,at]),r}(e,t);return r&&(lt[r]?(e.warn(o.pc,["".concat(lt[r]," factory/ies with this SDK Key")]),lt[r]++):(lt[r]=1,Object.keys(lt).length>1&&e.warn(o.pc,["an instance of the Split factory"]))),r}function ft(e){var t=e();return function(){return Math.round(e()-t)}}function ht(e){return Object(Te.j)(e)?e.matchingKey:e}function mt(e){return Object(Te.j)(e)?{matchingKey:e.matchingKey,bucketingKey:e.bucketingKey}:{matchingKey:e,bucketingKey:e}}function yt(e){return!e.core.key}var vt=((st={})[w]=0,st[T]=1,st[O]=2,st),gt=((ct={})[v]=0,ct[y]=1,ct[_]=2,ct),_t=((ut={})[P]=1,ut[C]=2,ut[N]=3,ut);function bt(e,t){return{name:"telemetry config",isEmpty:function(){return!1},clear:function(){},pop:function(){var r,o,c=t.urls,l=t.scheduler,d=yt(t),f=function(e){var t=0;
2e.validFilters.forEach(function(filter){"bySet"===filter.type&&(t+=filter.values.length)});var r=e.groupedFilters.bySet.length;return{flagSetsTotal:t,flagSetsIgnored:t-r}}(t.sync.__splitFiltersValidation),h=f.flagSetsTotal,m=f.flagSetsIgnored;return Object(n.a)((r=t.mode,o=t.storage.type,{oM:vt[r],st:o.toLowerCase(),aF:Object.keys(lt).length,rF:Object.keys(lt).reduce(function(e,t){return e+lt[t]-1},0)}),{sE:t.streamingEnabled,rR:{sp:l.featuresRefreshRate/1e3,se:d?l.segmentsRefreshRate/1e3:void 0,ms:d?void 0:l.segmentsRefreshRate/1e3,im:l.impressionsRefreshRate/1e3,ev:l.eventsPushRate/1e3,te:l.telemetryRefreshRate/1e3},uO:{s:c.sdk!==base.urls.sdk,e:c.events!==base.urls.events,a:c.auth!==base.urls.auth,st:c.streaming!==base.urls.streaming,t:c.telemetry!==base.urls.telemetry},iQ:l.impressionsQueueSize,eQ:l.eventsQueueSize,iM:gt[t.sync.impressionsMode],iL:!!t.impressionListener,hP:!1,tR:e.getTimeUntilReady(),tC:e.getTimeUntilReadyFromCache(),nR:e.getNonReadyUsage(),t:e.popTags(),i:t.integrations&&t.integrations.map(function(e){return e.type}),uC:t.userConsent?_t[t.userConsent]:0,fsT:h,fsI:m})}}}function Et(e){var t=e.settings,r=t.log,n=t.core.key,c=e.splitApi,l=c.postUniqueKeysBulkCs,d=c.postUniqueKeysBulkSs,f=e.storage.uniqueKeys,h=Ee(r,void 0!==n?l:d,f,9e5);return f.setOnFullQueueCb(function(){h.isRunning()&&(r.info(o.Nb,[f.name]),h.execute())}),h}function wt(e){var t=[Se(e),Ae(e),Ce(e),Et(e)],r=function(e){var t=e.storage.telemetry,r=e.platform.now;if(t&&r){var n=e.settings,o=e.settings,c=o.log,l=o.scheduler.telemetryRefreshRate,d=e.splitApi,f=e.readiness,h=e.sdkReadinessManager,m=ft(r),y=we(Ee(c,d.postMetricsUsage,t,l,void 0,0,!0),l);return f.gate.once(xe,function(){t.recordTimeUntilReadyFromCache(m())}),h.incInternalReadyCbCount(),f.gate.once(De,function(){t.recordTimeUntilReady(m()),y.isRunning()&&Ee(c,d.postMetricsConfig,bt(t,n),0,void 0,0,!0).execute()}),y}}(e);return{start:function(e){e||t.forEach(function(e){return e.start()}),r&&r.start()},stop:function(e){t.forEach(function(e){return e.stop()}),!e&&r&&r.stop()},isRunning:function(){return t.some(function(e){return e.isRunning()})},execute:function(e){var n=e?[]:t.map(function(e){return e.execute()});return r&&n.push(r.execute()),Promise.all(n).then(function(){})},isExecuting:function(){return t.some(function(e){return e.isExecuting()})}}}var At,Tt="PUSH_NONRETRYABLE_ERROR",Ot="PUSH_RETRYABLE_ERROR",St="PUSH_SUBSYSTEM_UP",It="PUSH_SUBSYSTEM_DOWN",Ct="MEMBERSHIPS_MS_UPDATE",Nt="MEMBERSHIPS_LS_UPDATE",Pt="SEGMENT_UPDATE",Rt="SPLIT_KILL",Lt="SPLIT_UPDATE",Dt="RB_SEGMENT_UPDATE",xt="CONTROL",kt="OCCUPANCY";function Mt(e){var t=e.userConsent;return!t||t===C}!function(e){e.STREAMING_DISABLED="STREAMING_DISABLED",e.STREAMING_PAUSED="STREAMING_PAUSED",e.STREAMING_RESUMED="STREAMING_RESUMED",e.STREAMING_RESET="STREAMING_RESET"}(At||(At={}));var Ft=function(){function e(){}return e.prototype.update=function(e,t,r){var n=this,o=e.map(function(e){return n.addSplit(e)}).some(function(e){return e});return o=t.map(function(e){return n.removeSplit(e.name)}).some(function(e){return e})||o,this.setChangeNumber(r),o},e.prototype.getSplits=function(e){var t=this,r={};return e.forEach(function(e){r[e]=t.getSplit(e)}),r},e.prototype.getAll=function(){var e=this;return this.getSplitNames().map(function(t){return e.getSplit(t)})},e.prototype.killLocally=function(e,t,r){var o=this.getSplit(e);if(o&&(!o.changeNumber||o.changeNumber<r)){var c=Object(n.a)({},o);return c.killed=!0,c.defaultTreatment=t,c.changeNumber=r,this.addSplit(c)}return!1},e}();function Ut(e){for(var t=e.conditions||[],i=0;i<t.length;i++)for(var r=t[i].matcherGroup.matchers,n=0;n<r.length;n++){var o=r[n].matcherType;if(o===fe||"IN_LARGE_SEGMENT"===o)return!0}var c=e.excluded;return!!(c&&c.segments&&c.segments.length>0)}function jt(e){return e.splits.usesSegments()||e.rbSegments.usesSegments()}var Bt=function(){function e(t,r,n){this.baseMillis=e.__TEST__BASE_MILLIS||r||e.DEFAULT_BASE_MILLIS,this.maxMillis=e.__TEST__MAX_MILLIS||n||e.DEFAULT_MAX_MILLIS,this.attempts=0,this.cb=t}return e.prototype.scheduleCall=function(){var e=this,t=Math.min(this.baseMillis*Math.pow(2,this.attempts),this.maxMillis);return this.timeoutID&&clearTimeout(this.timeoutID),this.timeoutID=setTimeout(function(){e.timeoutID=void 0,e.cb()},t),this.attempts++,t},e.prototype.reset=function(){this.attempts=0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=void 0)},e.DEFAULT_BASE_MILLIS=1e3,e.DEFAULT_MAX_MILLIS=18e5,e}();var Ht=[/control_pri$/,/control_sec$/],Vt=[10,20];function zt(e,t,r){var n=function(e,t){var r=Ht.map(function(e){return{regex:e,hasPublishers:!0,oTime:-1,cTime:-1}}),n=!0,o=!0;function c(){return r.some(function(e){return e.hasPublishers})}return{handleOpen:function(){t.streamingEvent(0),e.emit(St)},isStreamingUp:function(){return o&&n},handleOccupancyEvent:function(l,d,f){for(var i=0;i<r.length;i++){var h=r[i];if(h.regex.test(d)){if(t.streamingEvent(Vt[i],l),f>h.oTime){h.oTime=f,h.hasPublishers=0!==l;var m=c();o&&(!m&&n?e.emit(It):m&&!n&&e.emit(St)),n=m}return}}},handleControlEvent:function(c,l,d){if(c!==At.STREAMING_RESET)for(var i=0;i<r.length;i++){var f=r[i];if(f.regex.test(l))return void(d>
2f.cTime&&(f.cTime=d,c===At.STREAMING_DISABLED?(t.streamingEvent(30,0),e.emit(Tt)):n&&(c===At.STREAMING_PAUSED&&o?(t.streamingEvent(30,2),e.emit(It)):c!==At.STREAMING_RESUMED||o||(t.streamingEvent(30,1),e.emit(St))),o=c===At.STREAMING_RESUMED))}else e.emit(c)}}}(t,r);return{handleOpen:function(){n.handleOpen()},handleError:function(n){var c=n;try{c=function(e){return Object(Te.k)(e.data)&&(e.parsedData=JSON.parse(e.data)),e}(n)}catch(t){e.warn(o.Fb,[t])}var l=c.parsedData&&c.parsedData.message||c.message;e.error(o.R,[l]),!function(e){if(e.parsedData&&e.parsedData.code){var code=e.parsedData.code;if(r.streamingEvent(60,code),40140<=code&&code<=40149)return!0;if(4e4<=code&&code<=49999)return!1}else r.streamingEvent(40,1);return!0}(c)?t.emit(Tt):t.emit(Ot)},handleMessage:function(r){var c;try{if(c=function(e){if(e.data){var t=JSON.parse(e.data);return t.parsedData=JSON.parse(t.data),t.name&&"[meta]occupancy"===t.name&&(t.parsedData.type=kt),t}}(r),!c)return}catch(t){return void e.warn(o.Hb,[t])}var l=c.parsedData,data=c.data,d=c.channel,f=c.timestamp;if(e.debug(o.Eb,[data]),n.isStreamingUp()||-1!==[kt,xt].indexOf(l.type))switch(l.type){case Lt:case Pt:case Ct:case Nt:case Rt:case Dt:t.emit(l.type,l);break;case kt:n.handleOccupancyEvent(l.metrics.publishers,d,f);break;case xt:n.handleControlEvent(l.controlType,d,f)}}}}function Yt(e,t,r,n){var o,c,l;function d(t){var o,d,f,h=0,m=-1,y=!1,v=new Bt(_);function _(){if(o=!0,h>Math.max(m,t.getChangeNumber())){y=!1;var E=h;(c?new Promise(function(e){l=setTimeout(function(){c=void 0,r.execute(f,!0,d?h:void 0).then(e)},c)}):r.execute(f,!0,d?h:void 0)).then(function(r){if(o){if(!1!==r){var c=t.getChangeNumber();m=c>-1?c:Math.max(m,E)}if(y)_();else{f&&n.trackUpdatesFromSSE(ee);var l=v.attempts+1;if(h<=m)return e.debug("Refresh completed".concat(d?" bypassing the CDN":""," in ").concat(l," attempts.")),void(o=!1);if(l<10)return void v.scheduleCall();d?(e.debug("No changes fetched after ".concat(l," attempts with CDN bypassed.")),o=!1):(v.reset(),d=!0,_())}}})}else o=!1}return{put:function(e,r,n){var l=e.type,E=e.cn;E<=Math.max(m,t.getChangeNumber())||E<=h||(h=E,c||(y=!0,d=!1,f=r&&{type:l,cn:E,added:r.added,removed:r.removed},c=n,!v.timeoutID&&o||_(),v.reset()))},stop:function(){clearTimeout(l),c=void 0,o=!1,v.reset()}}}var f=((o={})[Ct]=d(t.segments),o[Nt]=d(t.largeSegments),o);return{put:function(e,t,r){f[e.type].put(e,t,r)},stop:function(){f[Ct].stop(),f[Nt].stop()}}}function qt(e,t,r){var n={};return{put:function(o){var c=o.changeNumber,l=o.segmentName;n[l]||(n[l]=function(n){var o,c,l=0,d=!1,f=new Bt(h,1e4,6e4);function h(){o=!0,l>(r.getChangeNumber(n)||-1)?(d=!1,t.execute(!1,n,!0,c?l:void 0).then(function(){if(o)if(d)h();else{var t=f.attempts+1;if(l<=(r.getChangeNumber(n)||-1))return e.debug("Refresh completed".concat(c?" bypassing the CDN":""," in ").concat(t," attempts.")),void(o=!1);if(t<10)return void f.scheduleCall();c?(e.debug("No changes fetched after ".concat(t," attempts with CDN bypassed.")),o=!1):(f.reset(),c=!0,h())}})):o=!1}return{put:function(e){e<=(r.getChangeNumber(n)||-1)||e<=l||(l=e,d=!0,c=!1,!f.timeoutID&&o||h(),f.reset())},stop:function(){o=!1,f.reset()}}}(l)),n[l].put(c)},stop:function(){Object.keys(n).forEach(function(e){return n[e].stop()})}}}var $t=function(){if([typeof Uint8Array,typeof Uint16Array,typeof Uint32Array].some(function(e){return"function"!=e}))return"global Uint8Array object is not available for gzip/zlib decompression";var e=Uint8Array,t=Uint16Array,r=Uint32Array,n=new e([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new e([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),c=new e([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=function(e,n){for(var b=new t(31),i=0;i<31;++i)b[i]=n+=1<<e[i-1];var o=new r(b[30]);for(i=1;i<30;++i)for(var c=b[i];c<b[i+1];++c)o[c]=c-b[i]<<5|i;return[b,o]},d=l(n,2),f=d[0],h=d[1];f[28]=258,h[258]=28;for(var m=l(o,0)[0],y=new t(32768),i=0;i<32768;++i){var v=(43690&i)>>>1|(21845&i)<<1;v=(61680&(v=(52428&v)>>>2|(13107&v)<<2))>>>4|(3855&v)<<4,y[i]=((65280&v)>>>8|(255&v)<<8)>>>1}var _=function(e,r,n){for(var s=e.length,i=0,o=new t(r);i<s;++i)++o[e[i]-1];var c,l=new t(r);for(i=0;i<r;++i)l[i]=l[i-1]+o[i-1]<<1;if(n){c=new t(1<<r);var d=15-r;for(i=0;i<s;++i)if(e[i])for(var f=i<<4|e[i],h=r-e[i],m=l[e[i]-1]++<<h,v=m|(1<<h)-1;m<=v;++m)c[y[m]>>>d]=f}else for(c=new t(s),i=0;i<s;++i)e[i]&&(c[i]=y[l[e[i]-1]++]>>>15-e[i]);return c},E=new e(288);for(i=0;i<144;++i)E[i]=8;for(i=144;i<256;++i)E[i]=9;for(i=256;i<280;++i)E[i]=7;for(i=280;i<288;++i)E[i]=8;var w=new e(32);for(i=0;i<32;++i)w[i]=5;var A=_(E,9,1),T=_(w,5,1),O=function(a){for(var e=a[0],i=1;i<a.length;++i)a[i]>e&&(e=a[i]);return e},S=function(e,p,t){var r=p/8|0;return(e[r]|e[r+1]<<8)>>(7&p)&t},I=function(e,p){var t=p/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(7&p)},C=function(p){return(p+7)/8|0}
2,N=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],P=function(e,t,r){var n=new Error(t||N[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,P),!r)throw n;return n},R=function(l,d,h){var y=l.length;if(!y||h&&h.f&&!h.l)return d||new e(0);var v=!d||h,E=!h||h.i;h||(h={}),d||(d=new e(3*y));var w=function(t){var r=d.length;if(t>r){var n=new e(Math.max(2*r,t));n.set(d),d=n}},N=h.f||0,R=h.p||0,L=h.b||0,D=h.l,x=h.d,k=h.m,M=h.n,F=8*y;do{if(!D){N=S(l,R,1);var U=S(l,R+1,3);if(R+=3,!U){var j=l[(s=C(R)+4)-4]|l[s-3]<<8,B=s+j;if(B>y){E&&P(0);break}v&&w(L+j),d.set(l.subarray(s,B),L),h.b=L+=j,h.p=R=8*B,h.f=N;continue}if(1==U)D=A,x=T,k=9,M=5;else if(2==U){var H=S(l,R,31)+257,V=S(l,R+10,15)+4,z=H+S(l,R+5,31)+1;R+=14;for(var Y=new e(z),$=new e(19),i=0;i<V;++i)$[c[i]]=S(l,R+3*i,7);R+=3*V;var W=O($),K=(1<<W)-1,G=_($,W,1);for(i=0;i<z;){var s,Q=G[S(l,R,K)];if(R+=15&Q,(s=Q>>>4)<16)Y[i++]=s;else{var X=0,J=0;for(16==s?(J=3+S(l,R,3),R+=2,X=Y[i-1]):17==s?(J=3+S(l,R,7),R+=3):18==s&&(J=11+S(l,R,127),R+=7);J--;)Y[i++]=X}}var Z=Y.subarray(0,H),dt=Y.subarray(H);k=O(Z),M=O(dt),D=_(Z,k,1),x=_(dt,M,1)}else P(1);if(R>F){E&&P(0);break}}v&&w(L+131072);for(var ee=(1<<k)-1,te=(1<<M)-1,re=R;;re=R){var ne=(X=D[I(l,R)&ee])>>>4;if((R+=15&X)>F){E&&P(0);break}if(X||P(2),ne<256)d[L++]=ne;else{if(256==ne){re=R,D=null;break}var ie=ne-254;if(ne>264){var b=n[i=ne-257];ie=S(l,R,(1<<b)-1)+f[i],R+=b}var oe=x[I(l,R)&te],ae=oe>>>4;oe||P(3),R+=15&oe;dt=m[ae];if(ae>3){b=o[ae];dt+=I(l,R)&(1<<b)-1,R+=b}if(R>F){E&&P(0);break}v&&w(L+131072);for(var se=L+ie;L<se;L+=4)d[L]=d[L-dt],d[L+1]=d[L+1-dt],d[L+2]=d[L+2-dt],d[L+3]=d[L+3-dt];L=se}}h.l=D,h.p=re,h.b=L,h.f=N,D&&(N=1,h.m=k,h.d=x,h.n=M)}while(!N);return L==d.length?d:function(n,s,o){(null==s||s<0)&&(s=0),(null==o||o>n.length)&&(o=n.length);var c=new(n instanceof t?t:n instanceof r?r:e)(o-s);return c.set(n.subarray(s,o)),c}(d,0,L)};return{gunzipSync:function(data,t){return R(data.subarray(function(e){31==e[0]&&139==e[1]&&8==e[2]||P(6,"invalid gzip data");var t=e[3],r=10;4&t&&(r+=e[10]|2+(e[11]<<8));for(var n=(t>>3&1)+(t>>4&1);n>0;n-=!e[r++]);return r+(2&t)}(data),-8),t||new e((n=(r=data).length,(r[n-4]|r[n-3]<<8|r[n-2]<<16|r[n-1]<<24)>>>0)));var r,n},unzlibSync:function(data,e){return R(((8!=(15&(t=data)[0])||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&P(6,"invalid zlib data"),32&t[1]&&P(6,"invalid zlib data: preset dictionaries not supported"),data.subarray(2,-4)),e);var t}}}(),Wt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Kt(input){var e=String(input).replace(/[=]+$/,"");if(e.length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var output="",t=0,r=void 0,n=void 0,o=0;n=e.charAt(o++);~n&&(r=t%4?64*r+n:n,t++%4)?output+=String.fromCharCode(255&r>>(-2*t&6)):0)n=Wt.indexOf(n);return output}var Gt=String.fromCharCode;function Qt(e){var t,r,n,o,c;return r=function(s){if("string"!=typeof s)throw TypeError("Illegal argument: "+typeof s);var i=0;return function(){return i>=s.length?null:s.charCodeAt(i++)}}(e),o=[],c=[],n=t=function(){if(0===arguments.length)return c.join("")+Gt.apply(String,o);o.length+arguments.length>1024&&(c.push(Gt.apply(String,o)),o.length=0),Array.prototype.push.apply(o,arguments)},function(e,t){for(var r,n=null;null!==(r=null!==n?n:e());)r>=55296&&r<=57343&&null!==(n=e())&&n>=56320&&n<=57343?(t(1024*(r-55296)+n-56320+65536),n=null):t(r);null!==n&&t(n)}(r,function(e){!function(e,t){var r=null;for("number"==typeof e&&(r=e,e=function(){return null});null!==r||null!==(r=e());)r<128?t(127&r):r<2048?(t(r>>6&31|192),t(63&r|128)):r<65536?(t(r>>12&15|224),t(r>>6&63|128),t(63&r|128)):(t(r>>18&7|240),t(r>>12&63|128),t(r>>6&63|128),t(63&r|128)),r=null}(e,n)}),t()}function Xt(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)}function Jt(e,t){return e<<t|e>>>32-t}function Zt(e,t){t=t||0;for(var r,n=(e=e||"").length%4,o=e.length-n,h1=t,c=0,l=3432918353,d=461845907,i=0;i<o;i+=4)c=Xt(c=255&e.charCodeAt(i)|(255&e.charCodeAt(i+1))<<8|(255&e.charCodeAt(i+2))<<16|(255&e.charCodeAt(i+3))<<24,l),c=Xt(c=Jt(c,15),d),h1=Xt(h1=Jt(h1^=c,13),5)+3864292196;switch(c=0,n){case 3:c^=(255&e.charCodeAt(i+2))<<16;case 2:c^=(255&e.charCodeAt(i+1))<<8;case 1:c=Xt(c^=255&e.charCodeAt(i),l),h1^=c=Xt(c=Jt(c,15),d)}return h1^=e.length,r=h1,r=Xt(r^=r>>>16,2246822507),(h1=(r=Xt(r^=r>>>13,3266489909))^r>>>16)>>>0}function er(e,t){return Zt(Qt(e),t>>>0)}function rr(e,t){return Math.abs(er(e,t)%100)+1}function nr(data,e){var t,r=Kt(data),n=(t=r.split("").map(function(e){return e.charCodeAt(0)}),new Uint8Array(t));if("string"==typeof $t)throw new Error($t);if(1===e)return $t.gunzipSync(n);if(2===e)return $t.unzlibSync(n);throw new Error("Invalid compression algorithm #".concat(e))}function ir(data,e,t){void 0===t&&(t=!0);var r,n=nr(data,e),o=(r=n,String.fromCharCode.apply(null,r));return t&&(o=o.replace(/\d+/g,'"$&"')),JSON.parse(o)}function or(e,t){if(0===e.h)return 0;var r=e.i||6e4;return er(t,e.s||0)%r}function ar(e,t,r,n,c,l){var d=h(t.splits),f=h(t.rbSegments);function h(t){var n,o,h,m=-1,y=!1,v=new Bt(_,1e4,6e4);function _(){n=!0,m>t.getChangeNumber()?(y=!1,r.execute(!0,o?m:void 0,h).then(function(){if(n)if(y)_();else{h&&c.trackUpdatesFromSSE(W),l&&l.execute(!0);var t=v.attempts+1;if(d.isSync()&&f.isSync())return e.debug("Refresh completed".concat(o?" bypassing the CDN":""," in ").concat(t," attempts.")),void(n=!1);if(t<10)return void v.scheduleCall();o?(e.debug("No changes fetched after ".concat(t," attempts with CDN bypassed.")),n=!1):(v.reset(),o=!0,_(
2))}})):n=!1}return{put:function(e,r){var c=e.changeNumber,l=e.pcn,d=e.type,f=t.getChangeNumber();c<=f||c<=m||(m=c,y=!0,o=!1,h=void 0,r&&f===l&&(h={payload:r,changeNumber:c,type:d}),!v.timeoutID&&n||_(),v.reset())},stop:function(){n=!1,v.reset()},isSync:function(){return m<=t.getChangeNumber()}}}return{put:function(t){if(t.d&&void 0!==t.c)try{var r=(n=t.c,data=t.d,n>0?ir(data,n,!1):JSON.parse(Kt(data)));if(r)return void(t.type===Dt?f:d).put(t,r)}catch(r){e.warn(o.Ib,[t.type,r])}var n,data;(t.type===Dt?f:d).put(t)},killSplit:function(e){var r=e.changeNumber,o=e.splitName,c=e.defaultTreatment;t.splits.killLocally(o,c,r)&&n.emit(Ne,!0),d.put({changeNumber:r})},stop:function(){d.stop(),f.stop()}}}function sr(e){return function(t){return e(t).then(function(e){return e.json()}).then(function(e){if(e.token){var t=(o=e.token,c=o.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),l=decodeURIComponent(Kt(c).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join("")),JSON.parse(l));if("number"!=typeof t.iat||"number"!=typeof t.exp)throw new Error('token properties "issuedAt" (iat) or "expiration" (exp) are missing or invalid');var r=JSON.parse(t["x-ably-capability"]);return Object(n.a)({decodedToken:t,channels:r},e)}var o,c,l;return e})}}function cr(e){return function(input){for(var e=String(input),output="",t=void 0,r=void 0,n=0,map=Wt;e.charAt(0|n)||(map="=",n%1);output+=map.charAt(63&t>>8-n%1*8)){if((r=e.charCodeAt(n+=3/4))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|r}return output}(er(e,0).toString())}var ur=/^control_/;var lr,dr,pr=function(){function e(e,t){var r=t.getEventSource,n=t.getOptions;if(this.settings=e,this.eventSource=r&&r(e),!this.eventSource)throw new Error("EventSource API is not available.");this.headers=function(e){var t={SplitSDKClientKey:Object(Te.k)(e.core.authorizationKey)?e.core.authorizationKey.slice(-4):"",SplitSDKVersion:e.version},r=e.runtime,n=r.ip,o=r.hostname;return n&&(t.SplitSDKMachineIP=n),o&&(t.SplitSDKMachineName=o),t}(e),this.options=n&&n(e)}return e.prototype.setEventHandler=function(e){this.handler=e},e.prototype.open=function(e){var t;this.close();var r=Object.keys(e.channels).map(function(e){var t=ur.test(e)?"[?occupancy=metrics.publishers]":"";return encodeURIComponent(t+e)}).join(","),o="".concat(this.settings.urls.streaming,"/sse?channels=").concat(r,"&accessToken=").concat(e.token,"&v=").concat("1.1","&heartbeats=true"),c=yt(this.settings);this.connection=new this.eventSource(c?o:o+"&SplitSDKVersion=".concat(this.headers.SplitSDKVersion,"&SplitSDKClientKey=").concat(this.headers.SplitSDKClientKey),Object(n.a)(c?{headers:l(this.settings,this.headers)}:(null===(t=this.settings.sync.requestOptions)||void 0===t?void 0:t.getHeaderOverrides)?{headers:l(this.settings,{})}:{},this.options)),this.handler&&(this.connection.addEventListener("open",this.handler.handleOpen),this.connection.addEventListener("message",this.handler.handleMessage),this.connection.addEventListener("error",this.handler.handleError))},e.prototype.close=function(){this.connection&&this.connection.close()},e}();function fr(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]+t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]+t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]+t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]+t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function mr(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var r=[0,0,0,0];return r[3]+=e[3]*t[3],r[2]+=r[3]>>>16,r[3]&=65535,r[2]+=e[2]*t[3],r[1]+=r[2]>>>16,r[2]&=65535,r[2]+=e[3]*t[2],r[1]+=r[2]>>>16,r[2]&=65535,r[1]+=e[1]*t[3],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[2]*t[2],r[0]+=r[1]>>>16,r[1]&=65535,r[1]+=e[3]*t[1],r[0]+=r[1]>>>16,r[1]&=65535,r[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],r[0]&=65535,[r[0]<<16|r[1],r[2]<<16|r[3]]}function yr(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}
2function vr(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function gr(e,t){return[e[0]^t[0],e[1]^t[1]]}function _r(e){return e=gr(e,[0,e[0]>>>1]),e=gr(e=mr(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=gr(e=mr(e,[3301882366,444984403]),[0,e[0]>>>1])}function Er(e,t){return function(e,t){t=t||0;for(var r=(e=e||"").length%16,n=e.length-r,h1=[0,t],h2=[0,t],o=[0,0],c=[0,0],l=[2277735313,289559509],d=[1291169091,658871167],i=0;i<n;i+=16)o=[255&e.charCodeAt(i+4)|(255&e.charCodeAt(i+5))<<8|(255&e.charCodeAt(i+6))<<16|(255&e.charCodeAt(i+7))<<24,255&e.charCodeAt(i)|(255&e.charCodeAt(i+1))<<8|(255&e.charCodeAt(i+2))<<16|(255&e.charCodeAt(i+3))<<24],c=[255&e.charCodeAt(i+12)|(255&e.charCodeAt(i+13))<<8|(255&e.charCodeAt(i+14))<<16|(255&e.charCodeAt(i+15))<<24,255&e.charCodeAt(i+8)|(255&e.charCodeAt(i+9))<<8|(255&e.charCodeAt(i+10))<<16|(255&e.charCodeAt(i+11))<<24],o=yr(o=mr(o,l),31),h1=fr(h1=yr(h1=gr(h1,o=mr(o,d)),27),h2),h1=fr(mr(h1,[0,5]),[0,1390208809]),c=yr(c=mr(c,d),33),h2=fr(h2=yr(h2=gr(h2,c=mr(c,l)),31),h1),h2=fr(mr(h2,[0,5]),[0,944331445]);switch(o=[0,0],c=[0,0],r){case 15:c=gr(c,vr([0,e.charCodeAt(i+14)],48));case 14:c=gr(c,vr([0,e.charCodeAt(i+13)],40));case 13:c=gr(c,vr([0,e.charCodeAt(i+12)],32));case 12:c=gr(c,vr([0,e.charCodeAt(i+11)],24));case 11:c=gr(c,vr([0,e.charCodeAt(i+10)],16));case 10:c=gr(c,vr([0,e.charCodeAt(i+9)],8));case 9:c=mr(c=gr(c,[0,e.charCodeAt(i+8)]),d),h2=gr(h2,c=mr(c=yr(c,33),l));case 8:o=gr(o,vr([0,e.charCodeAt(i+7)],56));case 7:o=gr(o,vr([0,e.charCodeAt(i+6)],48));case 6:o=gr(o,vr([0,e.charCodeAt(i+5)],40));case 5:o=gr(o,vr([0,e.charCodeAt(i+4)],32));case 4:o=gr(o,vr([0,e.charCodeAt(i+3)],24));case 3:o=gr(o,vr([0,e.charCodeAt(i+2)],16));case 2:o=gr(o,vr([0,e.charCodeAt(i+1)],8));case 1:o=mr(o=gr(o,[0,e.charCodeAt(i)]),l),h1=gr(h1,o=mr(o=yr(o,31),d))}return h1=fr(h1=gr(h1,[0,e.length]),h2=gr(h2,[0,e.length])),h2=fr(h2,h1),h1=fr(h1=_r(h1),h2=_r(h2)),h2=fr(h2,h1),("00000000"+(h1[0]>>>0).toString(16)).slice(-8)+("00000000"+(h1[1]>>>0).toString(16)).slice(-8)+("00000000"+(h2[0]>>>0).toString(16)).slice(-8)+("00000000"+(h2[1]>>>0).toString(16)).slice(-8)}(Qt(e),t>>>0)}function wr(s){var i,e,t,r=[0];for(i=0;i<s.length;i+=1){for(t=parseInt(s.charAt(i),16),e=r.length-1;e>=0;e-=1)r[e]=16*r[e]+t,t=r[e]/10|0,r[e]%=10;for(;t>0;)r.unshift(t%10),t=t/10|0}return r.join("")}function Ar(e,t,r,n,c,l,f){var h=r.segments,m=r.largeSegments,y=!0,v=!0;function _(e){return v&&(e=d(c,e)),e}function E(e){var t;void 0!==e.type?t=e.type===Nt?m.resetSegments(e):h.resetSegments(e):(t=h.resetSegments(e.ms||{}),t=m.resetSegments(e.ls||{})||t),r.save&&r.save(),jt(r)&&(t||y)&&(y=!1,n.emit(Re,{type:Fe,names:[]}))}function w(r,n,c,d){var h=n?new Promise(function(e){E(n),e(!0)}):t(f,c,d,_).then(function(e){return E(e),v=!1,!0});return h.catch(function(t){return v&&l>r?(r+=1,e.warn(o.Rb,[r,t]),w(r)):(v=!1,!1)})}return function(e,t,r){return w(0,e,t,r)}}!function(e){e[e.None=0]="None",e[e.Gzip=1]="Gzip",e[e.Zlib=2]="Zlib"}(lr||(lr={})),function(e){e[e.UnboundedFetchRequest=0]="UnboundedFetchRequest",e[e.BoundedFetchRequest=1]="BoundedFetchRequest",e[e.KeyList=2]="KeyList",e[e.SegmentRemoval=3]="SegmentRemoval"}(dr||(dr={}));var Tr=36e5;function Or(e,t,r){var n,c=t.log,l=yt(t)?864e5:Tr;return function d(f,h,m,y,v){n&&Date.now()-n>l&&(t.sync.flagSpecVersion=pe);var _=e(f,h,m,t.sync.flagSpecVersion===pe?y:void 0).catch(function(r){if((!r.statusCode||400===r.statusCode)&&function(e){return e.urls.sdk!==base.urls.sdk}(t)&&t.sync.flagSpecVersion===pe)return c.error(o.nb+"Proxy error detected. Retrying with spec 1.2. If you are using Split Proxy, please upgrade to latest version"),n=Date.now(),t.sync.flagSpecVersion="1.2",e(f,h,m);throw r});return v&&(_=v(_)),_.then(function(e){return e.json()}).then(function(data){return data.splits?{ff:{d:data.splits,s:data.since,t:data.till}}:n?(c.info(o.nb+"Proxy error recovered"),n=void 0,d(-1,void 0,void 0,-1).then(function(e){return Promise.all([r.splits.clear(),r.rbSegments.clear()]).then(function(){return e})})):data})}}function Sr(e){if(Array.from)return Array.from(e);var t=[];return e.forEach(function(e){t.push(e)}),t}function Ir(e,t){return new Set(Sr(e).concat(Sr(t)))}function Cr(e,t){void 0===t&&(t=fe);var r=e,n=r.conditions,o=r.excluded,c=new Set;
2if(o&&o.segments&&o.segments.forEach(function(e){var r=e.type,n=e.name;(r===me&&t===fe||r===ye&&t===he)&&c.add(n)}),n)for(var i=0;i<n.length;i++){n[i].matcherGroup.matchers.forEach(function(e){e.matcherType===t&&c.add(e.userDefinedSegmentMatcherData.segmentName)})}return c}function Nr(e,t,r){return e.reduce(function(e,n){return"ARCHIVED"===n.status||r&&!function(e,t){var r=t.groupedFilters,n=r.bySet,o=r.byName,c=r.byPrefix;if(n.length>0)return e.sets&&e.sets.some(function(e){return n.indexOf(e)>-1});var l=o.length>0,d=c.length>0;if(!l&&!d)return!0;var f=l&&o.indexOf(e.name)>-1,h=d&&c.some(function(t){return Object(Te.m)(e.name,t)});return f||h}(n,r)?e.removed.push(n):(e.added.push(n),Cr(n).forEach(function(e){t.add(e)})),e.names.push(n.name),e},{added:[],removed:[],names:[]})}function Pr(e,t,r,n,c,l,f,h){void 0===l&&(l=0),void 0===f&&(f=0);var m=r.splits,y=r.rbSegments,v=r.segments,_=!0;function E(e){return _&&l&&(e=d(l,e)),e}return function(l,d,w){return Promise.all([m.getChangeNumber(),y.getChangeNumber()]).then(function A(T,O){void 0===O&&(O=0);var S=T[0],I=T[1];return e.debug(o.Ub,T),Promise.resolve(w?w.type===Lt?Promise.resolve(y.contains(Cr(w.payload,he))).then(function(e){return e?{ff:{d:[w.payload],t:w.changeNumber}}:t(S,l,d,I,E)}):{rbs:{d:[w.payload],t:w.changeNumber}}:t(S,l,d,I,E)).then(function(t){var l=new Set,d=[],f=!1;if(t.ff){var E=Nr(t.ff.d||[],l,n),w=E.added,A=E.removed,T=E.names;d=T,e.debug(o.Xb,[w.length,A.length]),f=m.update(w,A,t.ff.t)}var O=!1;if(t.rbs){var S=Nr(t.rbs.d||[],l);w=S.added,A=S.removed;e.debug(o.Tb,[w.length,A.length]),O=y.update(w,A,t.rbs.t)}return Promise.all([f,O,v.registerSegments(Sr(l))]).then(function(e){var t=e[0],n=e[1];return r.save&&r.save(),_=!1,!c||Promise.resolve(!c.splitsArrived||(t||n)&&(h||function(e){return Promise.resolve(e.getRegisteredSegments()).then(function(t){return Promise.all(t.map(function(t){return e.getChangeNumber(t)})).then(function(e){return e.every(function(e){return void 0!==e})})})}(v))).catch(function(){return!1}).then(function(e){if(e){var t={type:d.length>0?Me:Fe,names:d.length>0?d:[]};c.emit(Ne,t)}return!0})})}).catch(function(t){return _&&f>O?(O+=1,e.warn(o.Wb,[O,t]),A(T,O)):(_=!1,e.warn(o.Vb,[t]),!1)})})}}var Rr=function(){function e(e){void 0===e&&(e=0),this.name="impressions",this.maxQueue=e,this.queue=[]}return e.prototype.setOnFullQueueCb=function(e){this.onFullQueue=e},e.prototype.track=function(data){var e;(e=this.queue).push.apply(e,data),this.maxQueue>0&&this.queue.length>=this.maxQueue&&this.onFullQueue&&this.onFullQueue()},e.prototype.clear=function(){this.queue=[]},e.prototype.pop=function(e){var data=this.queue;return this.clear(),e?e.concat(data):data},e.prototype.isEmpty=function(){return 0===this.queue.length},e}(),Lr=36e5;function Dr(e){return e-e%Lr}var xr=function(){function e(e){void 0===e&&(e=3e4),this.name="impression counts",this.cache={},this.cacheSize=0,this.maxStorage=e}return e.prototype._makeKey=function(e,t){return"".concat(e,"::").concat(Dr(t))},e.prototype.track=function(e,t,r){var n=this._makeKey(e,t),o=this.cache[n];this.cache[n]=o?o+r:r,this.onFullQueue&&(this.cacheSize=this.cacheSize+r,this.cacheSize>=this.maxStorage&&this.onFullQueue())},e.prototype.pop=function(e){var data=this.cache;return this.clear(),e?(Object.keys(data).forEach(function(t){e[t]?e[t]+=data[t]:e[t]=data[t]}),e):data},e.prototype.clear=function(){this.cache={},this.cacheSize=0},e.prototype.isEmpty=function(){return 0===Object.keys(this.cache).length},e}(),kr=function(){function e(e){void 0===e&&(e=0),this.name="events",this.maxQueue=e,this.queue=[],this.queueByteSize=0}return e.prototype.setOnFullQueueCb=function(e){this.onFullQueue=e},e.prototype.track=function(data,e){return void 0===e&&(e=0),this.queueByteSize+=e,this.queue.push(data),this._checkForFlush(),!0},e.prototype.clear=function(){this.queue=[],this.queueByteSize=0},e.prototype.pop=function(e){var data=this.queue;return this.clear(),e?e.concat(data):data},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype._checkForFlush=function(){(this.queueByteSize>5242880||this.maxQueue>0&&this.queue.length>=this.maxQueue)&&this.onFullQueue&&this.onFullQueue()},e}(),Mr=/[^.]+$/;var Fr=function(){function e(e){void 0===e&&(e="SPLITIO"),this.prefix=e}return e.prototype.buildTrafficTypeKey=function(e){return"".concat(this.prefix,".trafficType.").concat(e)},e.prototype.buildFlagSetKey=function(e){return"".concat(this.prefix,".flagSet.").concat(e)},e.prototype.buildSplitKey=function(e){return"".concat(this.prefix,".split.").concat(e)},e.prototype.buildSplitsTillKey=function(){return"".concat(this.prefix,".splits.till")},e.prototype.buildSplitKeyPrefix=function(){return"".concat(this.prefix,".split.")},e.prototype.buildRBSegmentKey=function(e){return"".concat(this.prefix,".rbsegment.").concat(e)},e.prototype.buildRBSegmentsTillKey=function(){return"".concat(this.prefix,".rbsegments.till")},e.prototype.buildRBSegmentKeyPrefix=function(){return"".concat(this.prefix,".rbsegment.")},e.prototype.buildSegmentNameKey=function(e){return"".concat(this.prefix,".segment.").concat(e)},e.prototype.buildSegmentTillKey=function(e){return"".concat(this.prefix,".segment.").concat(e,".till")},e.prototype.extractKey=function(e){var s=e.match(Mr);if(s&&s.length)return s[0];throw new Error("Invalid latency key provided")},e.prototype.buildHashKey=function(){return"".concat(this.prefix,".hash")},e}();var Ur=r(22),jr=function(e){function t(t,r){var n=e.call(this,t)||this;return n.matchingKey=r,n.regexSplitsCacheKey=new RegExp("^".concat(t,"\\.(splits?|trafficType|flagSet)\\.")),n}return Object(Ur.__extends)(t,e),t.prototype.buildSegmentNameKey=function(e){return"".concat(this.prefix,".").concat(this.matchingKey,".segment.").concat(e)},t.prototype.extractSegmentName=function(e){var t="".concat(this.prefix,".").concat(this.matchingKey,".segment.");if(Object(Te.m)(e,t))return e.slice(t.length)},t.prototype.buildLastUpdatedKey=function(){return"".concat(this.prefix,".splits.lastUpdated")},t.prototype.isSplitsCacheKey=function(e){return this.regexSplitsCacheKey.test(e)},t.prototype.buildTillKey=function(){return"".concat(this.prefix,".").concat(this.matchingKey,".segments.till")},t.prototype.isSplitKey=function(e){return Object(Te.m)(e,"".concat(this.prefix,".split."))},t.prototype.isRBSegmentKey=function(e){return Object(Te.m)(e,"".concat(this.prefix,".rbsegment."))},t.prototype.buildSplitsWithSegmentCountKey=function(){return"".concat(this.prefix,".splits.usingSegments")},t.prototype.buildLastClear=function(){return"".concat(this.prefix,".lastClear")},t}(Fr);function Br(e,t){return{buildSegmentNameKey:function(r){return"".concat(e,".").concat(t,".largeSegment.").concat(r)},extractSegmentName:function(r){var p="".concat(e,".").concat(t,".largeSegment.");if(Object(Te.m)(r,p))return r.slice(p.length)},buildTillKey:function(){return"".concat(e,".").concat(t,".largeSegments.till")}}}
2var Hr=r(144),Vr="storage:localstorage: ",zr="1",Yr=function(e){function t(t,r,n){var o=e.call(this)||this;return o.keys=r,o.log=t.log,o.flagSetsFilter=t.sync.__splitFiltersValidation.groupedFilters.bySet,o.storage=n,o}return Object(Ur.__extends)(t,e),t.prototype._decrementCount=function(e){var t=Object(Te.o)(this.storage.getItem(e))-1;t>0?this.storage.setItem(e,t+""):this.storage.removeItem(e)},t.prototype._decrementCounts=function(e){try{var t=this.keys.buildTrafficTypeKey(e.trafficTypeName);if(this._decrementCount(t),Ut(e)){var r=this.keys.buildSplitsWithSegmentCountKey();this._decrementCount(r)}}catch(e){this.log.error(Vr+e)}},t.prototype._incrementCounts=function(e){try{var t=this.keys.buildTrafficTypeKey(e.trafficTypeName);if(this.storage.setItem(t,Object(Te.o)(this.storage.getItem(t))+1+""),Ut(e)){var r=this.keys.buildSplitsWithSegmentCountKey();this.storage.setItem(r,Object(Te.o)(this.storage.getItem(r))+1+"")}}catch(e){this.log.error(Vr+e)}},t.prototype.clear=function(){for(var e=this,t=this.storage.length,r=[],n=0;n<t;n++){var o=this.storage.key(n);null!=o&&this.keys.isSplitsCacheKey(o)&&r.push(o)}r.forEach(function(t){e.storage.removeItem(t)}),this.hasSync=!1},t.prototype.addSplit=function(e){var t=e.name,r=this.keys.buildSplitKey(t),n=this.storage.getItem(r),o=n?JSON.parse(n):null;return o&&(this._decrementCounts(o),this.removeFromFlagSets(o.name,o.sets)),this.storage.setItem(r,JSON.stringify(e)),this._incrementCounts(e),this.addToFlagSets(e),!0},t.prototype.removeSplit=function(e){var t=this.getSplit(e);return!!t&&(this.storage.removeItem(this.keys.buildSplitKey(e)),this._decrementCounts(t),this.removeFromFlagSets(t.name,t.sets),!0)},t.prototype.getSplit=function(e){var t=this.storage.getItem(this.keys.buildSplitKey(e));return t&&JSON.parse(t)},t.prototype.setChangeNumber=function(e){try{return this.storage.setItem(this.keys.buildSplitsTillKey(),e+""),this.storage.setItem(this.keys.buildLastUpdatedKey(),Date.now()+""),this.hasSync=!0,!0}catch(e){return this.log.error(Vr+e),!1}},t.prototype.getChangeNumber=function(){var e=this.storage.getItem(this.keys.buildSplitsTillKey());return null!==e?(e=parseInt(e,10),Object(Te.i)(e)?-1:e):-1},t.prototype.getSplitNames=function(){for(var e=this.storage.length,t=[],r=0;r<e;){var n=this.storage.key(r);null!=n&&this.keys.isSplitKey(n)&&t.push(this.keys.extractKey(n)),r++}return t},t.prototype.trafficTypeExists=function(e){var t=Object(Te.o)(this.storage.getItem(this.keys.buildTrafficTypeKey(e)));return Object(Te.h)(t)&&t>0},t.prototype.usesSegments=function(){if(!this.hasSync)return!0;var e=this.storage.getItem(this.keys.buildSplitsWithSegmentCountKey()),t=null===e?0:Object(Te.o)(e);return!Object(Te.h)(t)||t>0},t.prototype.getNamesByFlagSets=function(e){var t=this;return e.map(function(e){var r=t.keys.buildFlagSetKey(e),n=t.storage.getItem(r);return new Set(n?JSON.parse(n):[])})},t.prototype.addToFlagSets=function(e){var t=this;e.sets&&e.sets.forEach(function(r){if(!(t.flagSetsFilter.length>0)||t.flagSetsFilter.some(function(e){return e===r})){var n=t.keys.buildFlagSetKey(r),o=t.storage.getItem(n),c=new Set(o?JSON.parse(o):[]);c.has(e.name)||(c.add(e.name),t.storage.setItem(n,JSON.stringify(Sr(c))))}})},t.prototype.removeFromFlagSets=function(e,t){var r=this;t&&t.forEach(function(t){r.removeNames(t,e)})},t.prototype.removeNames=function(e,t){var r=this.keys.buildFlagSetKey(e),n=this.storage.getItem(r);if(n){var o=new Set(JSON.parse(n));o.delete(t),0!==o.size?this.storage.setItem(r,JSON.stringify(Sr(o))):this.storage.removeItem(r)}},t}(Ft),qr=function(){function e(e,t,r){this.keys=t,this.log=e.log,this.storage=r}return e.prototype.clear=function(){var e=this;this.getNames().forEach(function(t){return e.remove(t)}),this.storage.removeItem(this.keys.buildRBSegmentsTillKey())},e.prototype.update=function(e,t,r){var n=this,o=e.map(function(e){return n.add(e)}).some(function(e){return e});return o=t.map(function(e){return n.remove(e.name)}).some(function(e){return e})||o,this.setChangeNumber(r),o},e.prototype.setChangeNumber=function(e){try{this.storage.setItem(this.keys.buildRBSegmentsTillKey(),e+""),this.storage.setItem(this.keys.buildLastUpdatedKey(),Date.now()+"")}catch(e){this.log.error(Vr+e)}},e.prototype.updateSegmentCount=function(e){var t=this.keys.buildSplitsWithSegmentCountKey(),r=Object(Te.o)(this.storage.getItem(t))+e;r>0?this.storage.setItem(t,r+""):this.storage.removeItem(t)},e.prototype.add=function(e){var t=e.name,r=this.keys.buildRBSegmentKey(t),n=this.storage.getItem(r),o=n?JSON.parse(n):null;this.storage.setItem(r,JSON.stringify(e));var c=0;return o&&Ut(o)&&c--,Ut(e)&&c++,0!==c&&this.updateSegmentCount(c),!0},e.prototype.remove=function(e){var t=this.get(e);return!!t&&(this.storage.removeItem(this.keys.buildRBSegmentKey(e)),Ut(t)&&this.updateSegmentCount(-1),!0)},e.prototype.getNames=function(){for(var e=this.storage.length,t=[],r=0;r<e;){var n=this.storage.key(r);null!=n&&this.keys.isRBSegmentKey(n)&&t.push(this.keys.extractKey(n)),r++}return t},e.prototype.get=function(e){var t=this.storage.getItem(this.keys.buildRBSegmentKey(e));return t&&JSON.parse(t)},e.prototype.getAll=function(){var e=this;return this.getNames().map(function(t){return e.get(t)})},e.prototype.contains=function(e){var t=Sr(e),r=this.getNames();return t.every(function(e){return-1!==r.indexOf(e)})},e.prototype.getChangeNumber=function(){var e=this.storage.getItem(this.keys.buildRBSegmentsTillKey());return null!==e?(e=parseInt(e,10),Object(Te.i)(e)?-1:e):-1},e.prototype.usesSegments=function(){var e=this.storage.getItem(this.keys.buildSplitsWithSegmentCountKey()),t=null===e?0:Object(Te.o)(e);return!Object(Te.h)(t)||t>0},e}(),$r=function(){function e(){}return e.prototype.clear=function(){this.resetSegments({})},e.prototype.registerSegments=function(){return!1},e.prototype.update=function(){return!1},e.prototype.resetSegments=function(e){var t=this,r=!1,n=e,o=n.added,c=n.removed;
2if(o&&c)o.forEach(function(e){r=t.addSegment(e)||r}),c.forEach(function(e){r=t.removeSegment(e)||r});else{var l=(e.k||[]).map(function(s){return s.n}).sort(),d=this.getRegisteredSegments().sort();if(l.length||d.length){for(var f=0;f<l.length&&f<d.length&&l[f]===d[f];)f++;if(f===l.length&&f===d.length)r=!1;else{for(var h=f;h<d.length;h++)this.removeSegment(d[h]);for(var m=f;m<l.length;m++)this.addSegment(l[m]);r=!0}}else r=!1}return this.setChangeNumber(e.cn),r},e}(),Wr=function(e){function t(t,r,n){var o=e.call(this)||this;return o.log=t,o.keys=r,o.storage=n,o}return Object(Ur.__extends)(t,e),t.prototype.addSegment=function(e){var t=this.keys.buildSegmentNameKey(e);return this.storage.getItem(t)!==zr&&(this.storage.setItem(t,zr),!0)},t.prototype.removeSegment=function(e){var t=this.keys.buildSegmentNameKey(e);return this.storage.getItem(t)===zr&&(this.storage.removeItem(t),!0)},t.prototype.isInSegment=function(e){return this.storage.getItem(this.keys.buildSegmentNameKey(e))===zr},t.prototype.getRegisteredSegments=function(){for(var e=[],i=0,t=this.storage.length;i<t;i++){var r=this.keys.extractSegmentName(this.storage.key(i));r&&e.push(r)}return e},t.prototype.getKeysCount=function(){return 1},t.prototype.setChangeNumber=function(e){e?this.storage.setItem(this.keys.buildTillKey(),e+""):this.storage.removeItem(this.keys.buildTillKey())},t.prototype.getChangeNumber=function(){var e=this.storage.getItem(this.keys.buildTillKey());return null!==e?(e=parseInt(e,10),Object(Te.i)(e)?-1:e):-1},t}($r),Kr=function(e){function t(t){var r=e.call(this)||this;return r.splitsCache={},r.ttCache={},r.changeNumber=-1,r.segmentsCount=0,r.flagSetsCache={},r.flagSetsFilter=t?t.groupedFilters.bySet:[],r}return Object(Ur.__extends)(t,e),t.prototype.clear=function(){this.splitsCache={},this.ttCache={},this.changeNumber=-1,this.segmentsCount=0,this.flagSetsCache={}},t.prototype.addSplit=function(e){var t=e.name,r=this.getSplit(t);if(r){var n=r.trafficTypeName;this.ttCache[n]--,this.ttCache[n]||delete this.ttCache[n],this.removeFromFlagSets(r.name,r.sets),Ut(r)&&this.segmentsCount--}this.splitsCache[t]=e;var o=e.trafficTypeName;return this.ttCache[o]=(this.ttCache[o]||0)+1,this.addToFlagSets(e),Ut(e)&&this.segmentsCount++,!0},t.prototype.removeSplit=function(e){var t=this.getSplit(e);if(!t)return!1;delete this.splitsCache[e];var r=t.trafficTypeName;return this.ttCache[r]--,this.ttCache[r]||delete this.ttCache[r],this.removeFromFlagSets(t.name,t.sets),Ut(t)&&this.segmentsCount--,!0},t.prototype.getSplit=function(e){return this.splitsCache[e]||null},t.prototype.setChangeNumber=function(e){return this.changeNumber=e,!0},t.prototype.getChangeNumber=function(){return this.changeNumber},t.prototype.getSplitNames=function(){return Object.keys(this.splitsCache)},t.prototype.trafficTypeExists=function(e){return Object(Te.h)(this.ttCache[e])&&this.ttCache[e]>0},t.prototype.usesSegments=function(){return-1===this.getChangeNumber()||this.segmentsCount>0},t.prototype.getNamesByFlagSets=function(e){var t=this;return e.map(function(e){return t.flagSetsCache[e]||new Set})},t.prototype.addToFlagSets=function(e){var t=this;e.sets&&e.sets.forEach(function(r){t.flagSetsFilter.length>0&&!t.flagSetsFilter.some(function(e){return e===r})||(t.flagSetsCache[r]||(t.flagSetsCache[r]=new Set([])),t.flagSetsCache[r].add(e.name))})},t.prototype.removeFromFlagSets=function(e,t){var r=this;t&&t.forEach(function(t){r.removeNames(t,e)})},t.prototype.removeNames=function(e,t){this.flagSetsCache[e]&&(this.flagSetsCache[e].delete(t),0===this.flagSetsCache[e].size&&delete this.flagSetsCache[e])},t}(Ft),Gr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.segmentCache={},t}return Object(Ur.__extends)(t,e),t.prototype.addSegment=function(e){return!this.segmentCache[e]&&(this.segmentCache[e]=!0,!0)},t.prototype.removeSegment=function(e){return!!this.segmentCache[e]&&(delete this.segmentCache[e],!0)},t.prototype.isInSegment=function(e){return!0===this.segmentCache[e]},t.prototype.setChangeNumber=function(e){this.cn=e},t.prototype.getChangeNumber=function(){return this.cn||-1},t.prototype.getRegisteredSegments=function(){return Object.keys(this.segmentCache)},t.prototype.getKeysCount=function(){return 1},t}($r);function Qr(e){var t=Math.min(22,Math.max(0,Math.ceil(Math.log(e)/Math.log(1.5))));return Object(Te.i)(t)?0:t}var Xr=.001;function Jr(e){var t=e.settings;return t.mode!==E&&(yt(t)||Math.random()<=Xr)}var Zr=function(){function e(e,t,r){this.splits=e,this.segments=t,this.largeSegments=r,this.name="telemetry stats",this.e=!0,this.notReadyUsage=0,this.impressionStats=[0,0,0],this.eventStats=[0,0],this.lastSync={},this.httpErrors={},this.httpLatencies={},this.authRejections=0,this.tokenRefreshes=0,this.streamingEvents=[],this.tags=[],this.exceptions={},this.latencies={},this.updatesFromSSE={}}return e.prototype.isEmpty=function(){return this.e},e.prototype.clear=function(){},e.prototype.pop=function(){return this.e=!0,{lS:this.getLastSynchronization(),mL:this.popLatencies(),mE:this.popExceptions(),hE:this.popHttpErrors(),hL:this.popHttpLatencies(),tR:this.popTokenRefreshes(),aR:this.popAuthRejections(),iQ:this.getImpressionStats(z),iDe:this.getImpressionStats($),iDr:this.getImpressionStats(Y),spC:this.splits&&this.splits.getSplitNames().length,seC:this.segments&&this.segments.getRegisteredSegments().length,skC:this.segments&&this.segments.getKeysCount(),lsC:this.largeSegments&&this.largeSegments.getRegisteredSegments().length,lskC:this.largeSegments&&this.largeSegments.getKeysCount(),sL:this.getSessionLength(),eQ:this.getEventStats(z),eD:this.getEventStats(Y),sE:this.popStreamingEvents(),t:this.popTags(),ufs:this.popUpdatesFromSSE()}},e.prototype.getTimeUntilReady=function(){return this.timeUntilReady},e.prototype.recordTimeUntilReady=function(e){this.timeUntilReady=e}
2,e.prototype.getTimeUntilReadyFromCache=function(){return this.timeUntilReadyFromCache},e.prototype.recordTimeUntilReadyFromCache=function(e){this.timeUntilReadyFromCache=e},e.prototype.getNonReadyUsage=function(){return this.notReadyUsage},e.prototype.recordNonReadyUsage=function(){this.notReadyUsage++},e.prototype.getImpressionStats=function(e){return this.impressionStats[e]},e.prototype.recordImpressionStats=function(e,t){this.impressionStats[e]+=t,this.e=!1},e.prototype.getEventStats=function(e){return this.eventStats[e]},e.prototype.recordEventStats=function(e,t){this.eventStats[e]+=t,this.e=!1},e.prototype.getLastSynchronization=function(){return this.lastSync},e.prototype.recordSuccessfulSync=function(e,t){this.lastSync[e]=t,this.e=!1},e.prototype.popHttpErrors=function(){var e=this.httpErrors;return this.httpErrors={},e},e.prototype.recordHttpError=function(e,t){var r=this.httpErrors[e]=this.httpErrors[e]||{};r[t]=(r[t]||0)+1,this.e=!1},e.prototype.popHttpLatencies=function(){var e=this.httpLatencies;return this.httpLatencies={},e},e.prototype.recordHttpLatency=function(e,t){(this.httpLatencies[e]=this.httpLatencies[e]||[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])[Qr(t)]++,this.e=!1},e.prototype.popAuthRejections=function(){var e=this.authRejections;return this.authRejections=0,e},e.prototype.recordAuthRejections=function(){this.authRejections++,this.e=!1},e.prototype.popTokenRefreshes=function(){var e=this.tokenRefreshes;return this.tokenRefreshes=0,e},e.prototype.recordTokenRefreshes=function(){this.tokenRefreshes++,this.e=!1},e.prototype.popStreamingEvents=function(){return this.streamingEvents.splice(0)},e.prototype.recordStreamingEvents=function(e){this.streamingEvents.length<20&&this.streamingEvents.push(e),this.e=!1},e.prototype.popTags=function(){return this.tags.splice(0)},e.prototype.addTag=function(e){this.tags.length<10&&this.tags.push(e),this.e=!1},e.prototype.getSessionLength=function(){return this.sessionLength},e.prototype.recordSessionLength=function(e){this.sessionLength=e,this.e=!1},e.prototype.popExceptions=function(){var e=this.exceptions;return this.exceptions={},e},e.prototype.recordException=function(e){this.exceptions[e]=(this.exceptions[e]||0)+1,this.e=!1},e.prototype.popLatencies=function(){var e=this.latencies;return this.latencies={},e},e.prototype.recordLatency=function(e,t){(this.latencies[e]=this.latencies[e]||[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])[Qr(t)]++,this.e=!1},e.prototype.popUpdatesFromSSE=function(){var e=this.updatesFromSSE;return this.updatesFromSSE={},e},e.prototype.recordUpdatesFromSSE=function(e){this.updatesFromSSE[e]=(this.updatesFromSSE[e]||0)+1,this.e=!1},e}(),en=function(){function e(e){void 0===e&&(e=3e4),this.name="unique keys",this.uniqueTrackerSize=0,this.uniqueKeysTracker={},this.maxStorage=e}return e.prototype.setOnFullQueueCb=function(e){this.onFullQueue=e},e.prototype.track=function(e,t){this.uniqueKeysTracker[e]||(this.uniqueKeysTracker[e]=new Set);var r=this.uniqueKeysTracker[e];r.has(t)||(r.add(t),this.uniqueTrackerSize++),this.uniqueTrackerSize>=this.maxStorage&&this.onFullQueue&&this.onFullQueue()},e.prototype.clear=function(){this.uniqueTrackerSize=0,this.uniqueKeysTracker={}},e.prototype.pop=function(){var data=this.uniqueKeysTracker;return this.clear(),this.fromUniqueKeysCollector(data)},e.prototype.isEmpty=function(){return 0===Object.keys(this.uniqueKeysTracker).length},e.prototype.fromUniqueKeysCollector=function(e){for(var t=[],r=Object.keys(e),n=0;n<r.length;n++){var o=r[n],c={k:o,fs:Sr(e[o])};t.push(c)}return{keys:t}},e}(),tn=function(){function e(){this.cache={},this.changeNumber=-1,this.segmentsCount=0}return e.prototype.clear=function(){this.cache={},this.changeNumber=-1,this.segmentsCount=0},e.prototype.update=function(e,t,r){var n=this,o=e.map(function(e){return n.add(e)}).some(function(e){return e});return o=t.map(function(e){return n.remove(e.name)}).some(function(e){return e})||o,this.changeNumber=r,o},e.prototype.add=function(e){var t=e.name,r=this.get(t);return r&&Ut(r)&&this.segmentsCount--,this.cache[t]=e,Ut(e)&&this.segmentsCount++,!0},e.prototype.remove=function(e){var t=this.get(e);return!!t&&(delete this.cache[e],Ut(t)&&this.segmentsCount--,!0)},e.prototype.getNames=function(){return Object.keys(this.cache)},e.prototype.get=function(e){return this.cache[e]||null},e.prototype.getAll=function(){var e=this;return this.getNames().map(function(t){return e.get(t)})},e.prototype.contains=function(e){var t=Sr(e),r=this.getNames();return t.every(function(e){return-1!==r.indexOf(e)})},e.prototype.getChangeNumber=function(){return this.changeNumber},e.prototype.usesSegments=function(){return this.segmentsCount>0},e}();function rn(e){var t=e.settings,r=t.scheduler,n=r.impressionsQueueSize,o=r.eventsQueueSize,c=t.sync.__splitFiltersValidation,l=new Kr(c),d=new tn,f=new Gr,h={splits:l,rbSegments:d,segments:f,largeSegments:new Gr,impressions:new Rr(n),impressionCounts:new xr,events:new kr(o),telemetry:Jr(e)?new Zr(l,f):void 0,uniqueKeys:new en,destroy:function(){},shared:function(){return{splits:this.splits,rbSegments:this.rbSegments,segments:new Gr,largeSegments:new Gr,impressions:this.impressions,impressionCounts:this.impressionCounts,events:this.events,telemetry:this.telemetry,uniqueKeys:this.uniqueKeys,destroy:function(){}}}};if(e.settings.mode===E){var m=function(){return!0};h.impressions.track=m,h.events.track=m,h.impressionCounts.track=m,h.uniqueKeys.track=m}return h}rn.type=S;var nn=10,on=864e5;function an(e,t,r,n,o,c){var l=r.log,d=r.initialRolloutPlan,f=parseInt(t.getItem(n.buildLastUpdatedKey()),10);if(!Object(Te.i)(f)){var h=Object(Te.h)(e.expirationDays)&&e.expirationDays>=1?e.expirationDays:nn;if(f<o-on*h)return l.info(Vr+"Cache expired more than "+h+" days ago. Cleaning up cache"),!0}var m=n.buildHashKey(),y=t.getItem(m),v=function(e){return er("".concat(e.core.authorizationKey,"::").concat(e.sync.__splitFiltersValidation.queryString,"::").concat(e.sync.flagSpecVersion)).toString(16)}(r);if(y!==v){try{t.setItem(m,v)}
2catch(e){l.error(Vr+e)}return!(!c||d)&&(l.info(Vr+"SDK key, flags filter criteria, or flags spec version has changed. Cleaning up cache"),!0)}if(e.clearOnInit){var _=parseInt(t.getItem(n.buildLastClear()),10);if(Object(Te.i)(_)||_<o-on)return l.info(Vr+"clearOnInit was set and cache was not cleared in the last 24 hours. Cleaning up cache"),!0}}function sn(e,t,r){if(r){if(Object(Hr.b)(r))return Object(Hr.c)(r)?r:function(e,t,r){var n,o=[],c={},l=Promise.resolve();return{load:function(){return n||(n=Promise.resolve().then(function(){return r.getItem(t)}).then(function(e){c=JSON.parse(e||"{}"),o=Object.keys(c)}).catch(function(t){e.error(Vr+"Error calling wrapper `getItem` method: "+t)}))},save:function(){return l=l.then(function(){return Promise.resolve(r.setItem(t,JSON.stringify(c)))}).catch(function(t){e.error(Vr+"Error calling wrapper `setItem` method: "+t)})},whenSaved:function(){return l},get length(){return o.length},getItem:function(e){return c[e]||null},key:function(e){return o[e]||null},removeItem:function(e){var t=o.indexOf(e);-1!==t&&(o.splice(t,1),delete c[e])},setItem:function(e,t){-1===o.indexOf(e)&&o.push(e),c[e]=t}}}(e,t,r);e.warn(Vr+"Invalid storage provided. Falling back to LocalStorage API")}if(Object(Hr.a)())return localStorage;e.warn(Vr+"LocalStorage API is unavailable. Falling back to default MEMORY storage")}function cn(e){void 0===e&&(e={});var t=function(e){return e?e+".SPLITIO":"SPLITIO"}(e.prefix);function r(r){var n=r.settings,o=r.settings,c=o.log,l=o.scheduler,d=l.impressionsQueueSize,f=l.eventsQueueSize,h=sn(c,t,e.wrapper);if(!h)return rn(r);var m,y=ht(n.core.key),v=new jr(t,y),_=new Yr(n,v,h),E=new qr(n,v,h),w=new Wr(c,v,h),A=new Wr(c,Br(t,y),h);return{splits:_,rbSegments:E,segments:w,largeSegments:A,impressions:new Rr(d),impressionCounts:new xr,events:new kr(f),telemetry:Jr(r)?new Zr(_,w):void 0,uniqueKeys:new en,validateCache:function(){return m||(m=function(e,t,r,n,o,c,l,d){return Promise.resolve(t.load&&t.load()).then(function(){var f=Date.now(),h=o.getChangeNumber()>-1,m=t.getItem(n.buildLastUpdatedKey()),y=m?parseInt(m,10):void 0,v=Object(Te.i)(y)||void 0===y?void 0:y;if(an(e,t,r,n,f,h)){o.clear(),c.clear(),l.clear(),d.clear();try{t.setItem(n.buildLastClear(),f+"")}catch(e){r.log.error(Vr+e)}return t.save&&t.save(),{initialCacheLoad:!0,lastUpdateTimestamp:void 0}}return{initialCacheLoad:!h,lastUpdateTimestamp:v}})}(e,h,n,v,_,E,w,A)),m},save:function(){return h.save&&h.save()},destroy:function(){return h.whenSaved&&h.whenSaved()},shared:function(e){return{splits:this.splits,rbSegments:this.rbSegments,segments:new Wr(c,new jr(t,e),h),largeSegments:new Wr(c,Br(t,e),h),impressions:this.impressions,impressionCounts:this.impressionCounts,events:this.events,telemetry:this.telemetry,uniqueKeys:this.uniqueKeys,destroy:function(){}}}}}return r.type=I,r}function un(e){return null!=e&&"function"==typeof e.then}function ln(e,t,r){return!t.isDestroyed()||(e.error(o.u,[r]),!1)}function dn(e,t,r,n){return!!t.isReadyFromCache()||(e.warn(o.c,[r,n?" for feature flag ".concat(n.toString()):""]),!1)}function pn(e,t,r,n){return ln(e,t,r)&&dn(e,t,r,n)}var fn="fallback - ";var hn="killed",mn="default rule",yn="definition not found",vn="not ready",gn="exception",_n="archived",bn="not in split",En="targeting rule type unsupported by sdk",wn="prerequisites not met",An=fn+yn;function Tn(e,t,r,n,c){return!t.isReady()||n!==yn&&n!==An&&null!=n||(e.warn(o.nc,[c,r]),!1)}function On(e){var t=e.conditions,r=Object(Te.b)(t,function(e){return"ROLLOUT"===e.conditionType});return r||(r=t[0]),r?r.partitions.map(function(e){return e.treatment}):[]}function Sn(e){return e?{name:e.name,trafficType:e.trafficTypeName,killed:e.killed,changeNumber:e.changeNumber||0,treatments:On(e),configs:e.configurations||{},sets:e.sets||[],defaultTreatment:e.defaultTreatment,impressionsDisabled:!0===e.impressionsDisabled,prerequisites:(e.prerequisites||[]).map(function(p){return{flagName:p.n,treatments:p.ts}})}:null}function In(e){var t=[];return e.forEach(function(e){var view=Sn(e);view&&t.push(view)}),t}function Cn(e,t,r){var o=r.readinessManager,c=r.sdkStatus,l=e.log,d=Ue(e.mode);return Object(n.a)(Object.create(c),{split:function(e){var r=Be(l,e,B);if(!pn(l,o,B)||!r)return d?Promise.resolve(null):null;var n=t.getSplit(r);return un(n)?n.catch(function(){return null}).then(function(e){return Tn(l,o,r,e,B),Sn(e)}):(Tn(l,o,r,n,B),Sn(n))},splits:function(){if(!pn(l,o,H))return d?Promise.resolve([]):[];var e=t.getAll();return un(e)?e.catch(function(){return[]}).then(In):In(e)},names:function(){if(!pn(l,o,V))return d?Promise.resolve([]):[];var e=t.getSplitNames();return un(e)?e.catch(function(){return[]}):e}})}var Nn=function(){function e(){this.attributesCache={}}return e.prototype.setAttribute=function(e,t){return this.attributesCache[e]=t,!0},e.prototype.getAttribute=function(e){return this.attributesCache[e]},e.prototype.setAttributes=function(e){return this.attributesCache=Object(n.a)(this.attributesCache,e),!0},e.prototype.getAll=function(){return this.attributesCache},e.prototype.removeAttribute=function(e){return Object.keys(this.attributesCache).indexOf(e)>=0&&(delete this.attributesCache[e],!0)},e.prototype.clear=function(){return this.attributesCache={},!0},e}();function Pn(e,t,r){return null==t||Object(Te.j)(t)?t:(e.error(o.L,[r,"attributes"]),!1)}function Rn(e,t,r){if(!Pn(e,t,r))return!1;var n=!0;return Object.keys(t).forEach(function(o){(function(e,t,r,n){if(!Object(Te.k)(t)||0===t.length)return e.warn("".concat(n,": you passed an invali
2d attribute name, attribute name must be a non-empty string.")),!1;var o=Object(Te.k)(r),c=Object(Te.h)(r),l=Object(Te.g)(r),d=Array.isArray(r);return!!(o||c||l||d)||(e.warn("".concat(n,": you passed an invalid attribute value for ").concat(t,". Acceptable types are: string, number, boolean and array of strings.")),!1)})(e,o,t[o],r)||(n=!1)}),n}function Ln(e,t,r){var o=function(e,t){var r=new Nn,o=t.getTreatment,c=t.getTreatmentWithConfig,l=t.getTreatments,d=t.getTreatmentsWithConfig,f=t.getTreatmentsByFlagSets,h=t.getTreatmentsWithConfigByFlagSets,m=t.getTreatmentsByFlagSet,y=t.getTreatmentsWithConfigByFlagSet;function v(e){var t=r.getAll();return Object.keys(t).length>0?Object(n.a)({},t,e):e}return Object(n.a)(t,{getTreatment:function(e,t,r,n){return o(e,t,v(r),n)},getTreatmentWithConfig:function(e,t,r,n){return c(e,t,v(r),n)},getTreatments:function(e,t,r,n){return l(e,t,v(r),n)},getTreatmentsWithConfig:function(e,t,r,n){return d(e,t,v(r),n)},getTreatmentsByFlagSets:function(e,t,r,n){return f(e,t,v(r),n)},getTreatmentsWithConfigByFlagSets:function(e,t,r,n){return h(e,t,v(r),n)},getTreatmentsByFlagSet:function(e,t,r,n){return m(e,t,v(r),n)},getTreatmentsWithConfigByFlagSet:function(e,t,r,n){return y(e,t,v(r),n)},setAttribute:function(t,n){var o={};return o[t]=n,!!Rn(e,o,"setAttribute")&&(e.debug("stored ".concat(n," for attribute ").
2concat(t)),r.setAttribute(t,n))},getAttribute:function(t){return e.debug("retrieved attribute ".concat(t)),r.getAttribute(t+"")},setAttributes:function(t){return!!Rn(e,t,"setAttributes")&&r.setAttributes(t)},getAttributes:function(){return r.getAll()},removeAttribute:function(t){return e.debug("removed attribute ".concat(t)),r.removeAttribute(t+"")},clearAttributes:function(){return r.clear()}})}(e,t);return Object(n.a)(o,{getTreatment:o.getTreatment.bind(o,r),getTreatmentWithConfig:o.getTreatmentWithConfig.bind(o,r),getTreatments:o.getTreatments.bind(o,r),getTreatmentsWithConfig:o.getTreatmentsWithConfig.bind(o,r),getTreatmentsByFlagSets:o.getTreatmentsByFlagSets.bind(o,r),getTreatmentsWithConfigByFlagSets:o.getTreatmentsWithConfigByFlagSets.bind(o,r),getTreatmentsByFlagSet:o.getTreatmentsByFlagSet.bind(o,r),getTreatmentsWithConfigByFlagSet:o.getTreatmentsWithConfigByFlagSet.bind(o,r),track:o.track.bind(o,r),isClientSide:!0,key:r})}var Dn={UNDEFINED:0,ALL_KEYS:1,IN_SEGMENT:2,WHITELIST:3,EQUAL_TO:4,GREATER_THAN_OR_EQUAL_TO:5,LESS_THAN_OR_EQUAL_TO:6,BETWEEN:7,EQUAL_TO_SET:8,CONTAINS_ANY_OF_SET:9,CONTAINS_ALL_OF_SET:10,PART_OF_SET:11,ENDS_WITH:12,STARTS_WITH:13,CONTAINS_STRING:14,IN_SPLIT_TREATMENT:15,EQUAL_TO_BOOLEAN:16,MATCHES_STRING:17,EQUAL_TO_SEMVER:18,GREATER_THAN_OR_EQUAL_TO_SEMVER:19,LESS_THAN_OR_EQUAL_TO_SEMVER:20,BETWEEN_SEMVER:21,IN_LIST_SEMVER:22,IN_LARGE_SEGMENT:23,IN_RULE_BASED_SEGMENT:24},xn={BOOLEAN:"BOOLEAN",STRING:"STRING",NUMBER:"NUMBER",SET:"SET",DATETIME:"DATETIME",NOT_SPECIFIED:"NOT_SPECIFIED"};function kn(e){return e?e.segmentName||e.largeSegmentName:void 0}function Mn(e){return e&&e.whitelist}function Fn(e){return e.value}function Un(e){return new Date(e).setUTCHours(0,0,0,0)}function jn(e){return new Date(e).setUTCSeconds(0,0)}function Bn(e){var t=e.map(function(e){var t,r=e.matcherType,n=e.negate,o=e.keySelector,c=e.userDefinedSegmentMatcherData,l=e.userDefinedLargeSegmentMatcherData,d=e.whitelistMatcherData,f=e.unaryNumericMatcherData,h=e.betweenMatcherData,m=e.dependencyMatcherData,y=e.booleanMatcherData,v=e.stringMatcherData,_=e.betweenStringMatcherData,E=o&&o.attribute,w=function(e){var t=Dn[e];return t||Dn.UNDEFINED}(r),A=xn.STRING;return w===Dn.IN_SEGMENT?t=kn(c):w===Dn.IN_LARGE_SEGMENT?t=kn(l):w===Dn.EQUAL_TO?(t=Fn(f),A=xn.NUMBER,"DATETIME"===f.dataType&&(t=Un(t),A=xn.DATETIME)):w===Dn.GREATER_THAN_OR_EQUAL_TO||w===Dn.LESS_THAN_OR_EQUAL_TO?(t=Fn(f),A=xn.NUMBER,"DATETIME"===f.dataType&&(t=jn(t),A=xn.DATETIME)):w===Dn.BETWEEN?(t=h,A=xn.NUMBER,"DATETIME"===t.dataType&&(t=function(e){return{dataType:e.dataType,start:jn(e.start),end:jn(e.end)}}(t),A=xn.DATETIME)):w===Dn.BETWEEN_SEMVER?t=_:w===Dn.EQUAL_TO_SET||w===Dn.CONTAINS_ANY_OF_SET||w===Dn.CONTAINS_ALL_OF_SET||w===Dn.PART_OF_SET?(t=Mn(d),A=xn.SET):w===Dn.WHITELIST||w===Dn.IN_LIST_SEMVER||w===Dn.STARTS_WITH||w===Dn.ENDS_WITH||w===Dn.CONTAINS_STRING?t=Mn(d):w===Dn.IN_SPLIT_TREATMENT?(t=m,A=xn.NOT_SPECIFIED):w===Dn.EQUAL_TO_BOOLEAN?(A=xn.BOOLEAN,t=y):w===Dn.MATCHES_STRING||w===Dn.EQUAL_TO_SEMVER||w===Dn.GREATER_THAN_OR_EQUAL_TO_SEMVER||w===Dn.LESS_THAN_OR_EQUAL_TO_SEMVER?t=v:w===Dn.IN_RULE_BASED_SEGMENT&&(t=kn(c),A=xn.NOT_SPECIFIED),{attribute:E,negate:n,type:w,name:r,value:t,dataType:A}});return-1===Object(Te.c)(t,function(e){return e.type===Dn.UNDEFINED})?t:[]}var Hn=function(){function e(e,t){if(100!==e[e.length-1])throw new RangeError("Provided invalid dataset as input");this._ranges=e,this._treatments=t}return e.parse=function(data){var t=data.reduce(function(e,t){var r=t.size,n=t.treatment;return e.ranges.push(e.inc+=r),e.treatments.push(n),e},{inc:0,ranges:[],treatments:[]});return new e(t.ranges,t.treatments)},e.prototype.getTreatmentFor=function(e){if(e<0||e>100)throw new RangeError("Please provide a value between 0 and 100");var t=Object(Te.c)(this._ranges,function(t){return e<=t});return this._treatments[t]},e}();var Vn=/^[0-9]+$/,zn=".";function Yn(a,b){if(Vn.test(a)&&Vn.test(b)){var e=a.length-b.length;if(0!==e)return e}return a<b?-1:a>b?1:0}function qn(e){return e.replace(/^0+(?=\d)/,"")}function $n(e){throw new Error("Unable to convert to Semver, incorrect format: "+e)}var Wn=function(){function e(e){Object(Te.k)(e)||$n(e);var t=e.indexOf("+"),r=-1===t?[e]:[e.slice(0,t),e.slice(t+1)],n=r[0],o=r[1];""===o&&$n(e),-1===(t=n.indexOf("-"))?(this._isStable=!0,this._preRelease=[]):(this._isStable=!1,this._preRelease=n.slice(t+1).split(zn).map(function(t){return t||$n(e),Vn.test(t)?qn(t):t}),n=n.slice(0,t));var c=n.split(zn).map(function(t){return t&&Vn.test(t)||$n(e),qn(t)});3!==c.length&&$n(e),this._major=c[0],this._minor=c[1],this._patch=c[2],this.version=c.join(zn),this._preRelease.length&&(this.version+="-"+this._preRelease.j
2oin(zn)),o&&(this.version+="+"+o)}return e.prototype.compare=function(e){if(this.version===e.version)return 0;var t=Yn(this._major,e._major);if(0!==t)return t;if(0!==(t=Yn(this._minor,e._minor)))return t;if(0!==(t=Yn(this._patch,e._patch)))return t;if(!this._isStable&&e._isStable)return-1;if(this._isStable&&!e._isStable)return 1;for(var i=0,r=Math.min(this._preRelease.length,e._preRelease.length);i<r;i++){var n=Yn(this._preRelease[i],e._preRelease[i]);if(0!==n)return n}return this._preRelease.length-e._preRelease.length},e}();var Kn=[void 0,function(){return function(e){return null!=e}},function(e,t){return function(r){return t.segments.isInSegment(e,r)}},function(e){var t=new Set(e||[]);return function(e){return t.has(e)}},function(e){return function(t){return t===e}},function(e){return function(t){return t>=e}},function(e){return function(t){return t<=e}},function(e){return function(t){return t>=e.start&&t<=e.end}},function(e){return function(t){for(var r=t.length===e.length,n=function(i){Object(Te.c)(e,function(e){return e===t[i]})<0&&(r=!1)},i=0;i<t.length&&r;i++)n(i);return r}},function(e){return function(t){for(var r=!1,n=function(i){Object(Te.c)(t,function(t){return t===e[i]})>=0&&(r=!0)},i=0;i<e.length&&!r;i++)n(i);return r}},function(e){return function(t){var r=!0;if(t.length<e.length)r=!1;else for(var n=function(i){Object(Te.c)(t,function(t){return t===e[i]})<0&&(r=!1)},i=0;i<e.length&&r;i++)n(i);return r}},function(e){return function(t){for(var r=t.length<=e.length,n=function(i){Object(Te.c)(e,function(e){return e===t[i]})<0&&(r=!1)},i=0;i<t.length&&r;i++)n(i);return r}},function(e){return function(t){return e.some(function(e){return Object(Te.a)(t,e)})}},function(e){return function(t){return e.some(function(e){return Object(Te.m)(t,e)})}},function(e){return function(t){return e.some(function(e){return Object(Te.k)(t)&&t.indexOf(e)>-1})}},function(e,t,r){var n=e.split,c=e.treatments;function l(e,t,n){var c=!1;return Array.isArray(t)&&(c=-1!==t.indexOf(e.treatment)),r.debug(o.l,[n,e.treatment,e.label,n,t,c]),c}return function(e,d){var f=e.key,h=e.attributes;r.debug(o.m,[n,JSON.stringify(f),h?"\n attributes: "+JSON.stringify(h):""]);var m=d(r,f,n,h,t);return un(m)?m.then(function(e){return l(e,c,n)}):l(m,c,n)}},function(e){return function(t){return e===t}},function(e){var t=new RegExp(e);return function(e){return t.test(e)}},function(e){var t=new Wn(e);return function(e){var r=new Wn(e);return t.version===r.version}},function(e){var t=new Wn(e);return function(e){return new Wn(e).compare(t)>=0}},function(e){var t=new Wn(e);return function(e){return new Wn(e).compare(t)<=0}},function(e){var t=new Wn(e.start),r=new Wn(e.end);return function(e){var n=new Wn(e);return t.compare(n)<=0&&r.compare(n)>=0}},function(e){if(!e||0===e.length)throw new Error("whitelistMatcherData is required for IN_LIST_SEMVER matcher type");var t=new Set(e.map(function(e){return new Wn(e).version}));return function(e){var r=new Wn(e).version;return t.has(r)}},function(e,t){return function(r){return!!t.largeSegments&&t.largeSegments.isInSegment(e,r)}},function e(t,r,n){return function(o,c){var l=o.key,d=o.attributes,f=ht(l);function h(e){var t=e.conditions||[];if(!t.length)return!1;var o=ni(n,t,r)(mt(l),void 0,void 0,void 0,d,c);return un(o)?o.then(function(e){return!!e}):!!o}function m(t){var o=t.type,h=t.name;return o===me?r.segments.isInSegment(h,f):o===ye?e(h,r,n)({key:l,attributes:d},c):!("large"!==o||!r.largeSegments)&&r.largeSegments.isInSegment(h,f)}function y(e){if(!e)return!1;var t=function(e){var t=e.excluded||{};return!(!t.keys||-1===t.keys.indexOf(f))||(t.segments||[]).reduce(function(e,t){return un(e)?e.then(function(e){return e||m(t)}):e||m(t)},!1)}(e);return un(t)?t.then(function(t){return!t&&h(e)}):!t&&h(e)}var v=r.rbSegments.get(t);return un(v)?v.then(y):y(v)}}];function Gn(e,t,r){var n,o=t.type,c=t.value;return Kn[o]&&(n=Kn[o](c,r,e)),n}function Qn(e,t){return{key:e,attributes:t}}function Xn(e,t,r,n,c){var l,d,f,h=function(e,t){switch(e){case Dn.EQUAL_TO:return"DATETIME"===t?Un:void 0;case Dn.GREATER_THAN_OR_EQUAL_TO:case Dn.LESS_THAN_OR_EQUAL_TO:case Dn.BETWEEN:return"DATETIME"===t?jn:void 0;case Dn.IN_SPLIT_TREATMENT:case Dn.IN_RULE_BASED_SEGMENT:return Qn;default:return}}(t,n);switch(n){case xn.NUMBER:case xn.DATETIME:d=r,f=Object(Te.o)(d),l=isNaN(f)?void 0:f;break;case xn.STRING:l=function(e){var t=e;return Object(Te.j)(e)&&(t=e.matchingKey?e.matchingKey:void 0),Object(Te.p)(t)||void 0}(r);break;case xn.SET:l=function(e){var t=Array.isArray(e)?Object(Te.q)(e.map(function(e){return e+""})):[];return t.length?t:void 0}(r);break;case xn.BOOLEAN:l=function(e){if(!0===e||!1===e)return e;if("string"==typeof e){var t=e.toLocaleLowerCase();if("true"===t)return!0;
2if("false"===t)return!1}}(r);break;case xn.NOT_SPECIFIED:l=r;break;default:l=void 0}return h&&(l=h(l,c)),e.debug(o.p,[r,n,l instanceof Object?JSON.stringify(l):l]),l}function Jn(e,t,r,n){var c=r.attribute,l=function(e,t,r,n){var c=void 0;return r?n?(c=n[r],e.debug(o.q,[r,c])):e.warn(o.s,[r]):c=t,c}(e,t,c,n),d=Xn(e,r.type,l,r.dataType,n);return void 0!==d?d:void e.warn(o.r,[l+(c?" for attribute "+c:"")])}function Zn(e,t,r,n){var c=rr(t,r),l=n.getTreatmentFor(c);return e.debug(o.g,[c,t,r,l]),l}function ei(e,t,r,n,o,label){if(t)return!o||{treatment:Zn(e,r,n,o),label:label}}function ti(e,t,r,label,n){return function(o,c,l,d,f,h){if("ROLLOUT"===n&&!function(e,t,r){return!(e<100&&rr(t,r)>e)}(l,o.bucketingKey,d))return{treatment:void 0,label:bn};var m=t(o,f,h);return un(m)?m.then(function(t){return ei(e,t,o.bucketingKey,c,r,label)}):ei(e,m,o.bucketingKey,c,r,label)}}function ri(e,t){function r(t){var r=t.every(function(e){return e});return e.debug(o.h,[r]),r}return function(e,n,o){var c=t.map(function(t){return t(e,n,o)});return-1!==Object(Te.c)(c,un)?Promise.all(c).then(r):r(c)}}function ni(e,t,r){for(var n=[],i=0;i<t.length;i++){var c=t[i],l=c.matcherGroup,d=c.partitions,label=c.label,f=c.conditionType,h=Bn(l.matchers).map(function(t){var n;try{n=Gn(e,t,r)}catch(r){e.error(o.n,[t.name,r])}return function(r,c,l){var d=Jn(e,r,t,c),f=!1;if(void 0!==d&&n)try{f=n(d,l)}catch(r){e.error(o.n,[t.name,r])}function h(r){return e.debug(o.o,[t.name,r,t.value,d]),Boolean(r^t.negate)}return un(f)?f.then(h):h(f)}});if(0===h.length){n=[];break}n.push(ti(e,ri(e,h),d&&Hn.parse(d),label,f))}return function(e,t){function r(t){for(var i=0,r=t.length;i<r;i++){var n=t[i];if(void 0!==n)return Object(Te.g)(n)||e.debug(o.i,[n.treatment]),n}e.debug(o.j)}return Array.isArray(t)&&0!==t.length?function(e,n,o,c,l,d){var f=t.map(function(t){return t(e,n,o,c,l,d)});return-1!==Object(Te.c)(f,un)?Promise.all(f).then(function(e){return r(e)}):r(f)}:function(){return e.error(o.y),{treatment:m,label:En}}}(e,n)}function ii(e,t){return{treatment:Object(Te.e)(e,"treatment",t),label:Object(Te.e)(e,"label",mn)}}function oi(e,t,r){var n=t.killed,c=t.seed,l=t.trafficAllocation,d=t.trafficAllocationSeed,f=t.status,h=t.conditions,y=t.prerequisites,v=Object(Te.k)(t.defaultTreatment)?t.defaultTreatment:m,_=ni(e,h,r),E=function(e,t,r){return function(n,o){var c=n.key,l=n.attributes;function d(e){var n=o(r,c,e.n,l,t);return un(n)?n.then(function(t){return-1!==e.ts.indexOf(t.treatment)}):-1!==e.ts.indexOf(n.treatment)}return(e=null==e?[]:e).reduce(function(e,t){return un(e)?e.then(function(e){return!!e&&d(t)}):!!e&&d(t)},!0)}}(y,r,e);return{getTreatment:function(t,r,h){var y=mt(t);function w(t){if(!t)return e.debug(o.k,["Prerequisite not met"]),{treatment:v,label:wn};var n=_(y,c,l,d,r,h);return un(n)?n.then(function(e){return ii(e,v)}):ii(n,v)}if("ARCHIVED"===f)return{treatment:m,label:_n};if(n)return e.debug(o.k,["Flag is killed"]),{treatment:v,label:hn};var A=E({key:t,attributes:r},h);return un(A)?A.then(w):w(A)}}}var ai={treatment:m,label:gn,config:null};function si(e){var t={};return e.forEach(function(e){t[e]=ai}),t}function ci(e,t,r,n,o,c){var l;try{l=o.splits.getSplit(r)}catch(e){return ai}return un(l)?l.then(function(r){return di(e,t,r,n,o,c)}).catch(function(){return ai}):di(e,t,l,n,o,c)}function ui(e,t,r,n,o,c){var l;try{l=o.splits.getSplits(r)}catch(e){return si(r)}return un(l)?l.then(function(l){return pi(e,t,r,l,n,o,c)}).catch(function(){return si(r)}):pi(e,t,r,l,n,o,c)}function di(e,t,r,n,o,c){var l={treatment:m,label:yn,config:null};if(r){if(un(l=oi(e,r,o).getTreatment(t,n,ci)))return l.then(function(e){return e.changeNumber=r.changeNumber,e.config=r.configurations&&r.configurations[e.treatment]||null,e.impressionsDisabled=(null==c?void 0:c.impressionsDisabled)||r.impressionsDisabled,e});l.changeNumber=r.changeNumber,l.config=r.configurations&&r.configurations[l.treatment]||null,l.impressionsDisabled=(null==c?void 0:c.impressionsDisabled)||r.impressionsDisabled}return l}function pi(e,t,r,n,o,c,l){var d={},f=[];return r.forEach(function(r){var h=di(e,t,n[r],o,c,l);un(h)?f.push(h.then(function(e){d[r]=e})):d[r]=h}),f.length>0?Promise.all(f).then(function(){return d}):d}function fi(e,t,r){e.warn(o.oc,[r,t])}var hi={treatment:m,label:vn};function mi(e){var t={};return e.forEach(function(e){t[e]=hi}),t}function yi(e){if(e&&e.properties)try{return JSON.stringify(e.properties)}catch(e){}}function vi(e){var t=e.sdkReadinessManager.readinessManager,r=e.storage,n=e.settings,c=e.impressionsTracker,l=e.eventTracker,d=e.telemetryTracker,f=e.fallbackTreatmentsCalculator,h=n.log,y=n.mode,v=Ue(y);function _(e,n,o,l,f,m){void 0===f&&(f=!1),void 0===m&&(m=R);var y=d.trackEval(f?ne:te),_=function(t){var r=[],d=T(t,n,e,yi(l),f,m,r);return c.track(r,o),y(r[0]&&r[0].imp.label),d}
2,E=t.isReadyFromCache()?ci(h,e,n,o,r,l):v?Promise.resolve(hi):hi;return un(E)?E.then(function(e){return _(e)}):_(E)}function w(e,n,o,l,f,m){void 0===f&&(f=!1),void 0===m&&(m=L);var y=d.trackEval(f?ie:re),_=function(t){var r=[],n={},d=yi(l);return Object.keys(t).forEach(function(o){n[o]=T(t[o],o,e,d,f,m,r)}),c.track(r,o),y(r[0]&&r[0].imp.label),n},E=t.isReadyFromCache()?ui(h,e,n,o,r,l):v?Promise.resolve(mi(n)):mi(n);return un(E)?E.then(function(e){return _(e)}):_(E)}function A(e,n,l,f,m,y,_){void 0===m&&(m=!1),void 0===y&&(y=ae),void 0===_&&(_=M);var E=d.trackEval(y),w=function(t){var r=[],n={},o=yi(f);return Object.keys(t).forEach(function(c){n[c]=T(t[c],c,e,o,m,_,r)}),c.track(r,l),E(r[0]&&r[0].imp.label),n},A=t.isReadyFromCache()?function(e,t,r,n,c,l,d){var f;function h(f){for(var h=new Set,i=0;i<r.length;i++){var m=f[i];m.size?h=Ir(h,m):e.warn(o.ic,[l,r[i]])}return h.size?ui(e,t,Sr(h),n,c,d):{}}try{f=c.splits.getNamesByFlagSets(r)}catch(e){return{}}return un(f)?f.then(function(e){return h(e)}).catch(function(){return{}}):h(f)}(h,e,n,l,r,_,f):v?Promise.resolve({}):{};return un(A)?A.then(function(e){return w(e)}):w(A)}function T(e,r,n,c,l,d,y){var v=ht(n),_=function(e){return Object(Te.j)(e)?e.bucketingKey:void 0}(n),E=e.changeNumber,w=e.impressionsDisabled,A=e.treatment,label=e.label,T=e.config,O=void 0===T?null:T;if(A===m){var S=f(r,label);A=S.treatment,label=S.label,O=S.config}return Tn(h,t,r,label,d)&&(h.info(o.X,[r,v,A,label]),y.push({imp:{feature:r,keyName:v,treatment:A,time:Date.now(),bucketingKey:_,label:label,changeNumber:E,properties:c},disabled:w})),l?{treatment:A,config:O}:A}return{getTreatment:_,getTreatmentWithConfig:function(e,t,r,n){return _(e,t,r,n,!0,D)},getTreatments:w,getTreatmentsWithConfig:function(e,t,r,n){return w(e,t,r,n,!0,x)},getTreatmentsByFlagSets:A,getTreatmentsWithConfigByFlagSets:function(e,t,r,n){return A(e,t,r,n,!0,ce,U)},getTreatmentsByFlagSet:function(e,t,r,n){return A(e,[t],r,n,!1,oe,k)},getTreatmentsWithConfigByFlagSet:function(e,t,r,n){return A(e,[t],r,n,!0,se,F)},track:function(e,n,o,c,f,m){void 0===m&&(m=1024);var v=d.trackEval(ue),_=ht(e),w={eventTypeId:o,trafficTypeName:n,value:c,timestamp:Date.now(),key:_,properties:f};!function(e,t,r,n,o,c){if(!t.isReady()||n===E)return!0;var l=r.trafficTypeExists(o);un(l)?l.then(function(t){return t||fi(e,o,c),t}):l||fi(e,o,c)}(h,t,r.splits,y,n,j);var A=l.track(w,m);return un(A)?A.then(function(e){return v(),e}):(v(),A)}}}var gi={NULL:0,STRING:2,BOOLEAN:4,NUMBER:8},_i=300,bi=32768,Ei=1024;function wi(e,t,r){if(null==t)return{properties:null,size:Ei};if(!Object(Te.j)(t))return e.error(o.L,[r,"properties"]),{properties:!1,size:Ei};var c=Object.keys(t),l=Object(n.a)({},t),output={properties:l,size:Ei};c.length>_i&&e.warn(o.vc,[r]);for(var i=0;i<c.length;i++){output.size+=c[i].length*gi.STRING;var d=l[c[i]],f=Object(Te.k)(d),h=Object(Te.h)(d),m=Object(Te.g)(d),y=null===d;if(f||h||m||y||(l[c[i]]=null,d=null,y=!0,e.warn(o.qc,[r,c[i]])),y?output.size+=gi.NULL:h?output.size+=gi.NUMBER:m?output.size+=gi.BOOLEAN:f&&(output.size+=d.length*gi.STRING),output.size>bi){e.error(o.O,[r]),output.properties=!1;break}}return output}var Ai=/[A-Z]/,Ti="traffic_type";var Oi=/^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/,Si="event_type";function Ii(e,t,r,n){var c=e.log,l=Ue(e.mode);function d(t,n,l,d,f){var h=Xe(c,n,t),m=t.indexOf("ByFlagSet")>-1?function(e,t,r,n){var c=He(e,r,t,"flag sets","flag set"),l=c?qe(e,c,t):[];return n.length>0&&(l=l.filter(function(r){return n.indexOf(r)>-1||(e.warn(o.hc,[t,r]),!1)})),!!l.length&&l}(c,t,l,e.sync.__splitFiltersValidation.groupedFilters.bySet):Object(Te.m)(t,L)?He(c,l,t):Be(c,l,t),y=Pn(c,d,t),v=ln(c,r,t),_=function(e,t,r){if(Object(Te.j)(t)){var n=wi(e,t.properties,r).properties,c=n&&Object.keys(n).length>0?{properties:n}:void 0,l=t.impressionsDisabled;return l?c?Object(Ur.__assign)(Object(Ur.__assign)({},c),{impressionsDisabled:l}):{impressionsDisabled:l}:c}t&&e.error(o.L,[r,"evaluation options"])}(c,f,t);return dn(c,r,t,m),{valid:v&&h&&m&&!1!==y,key:h,nameOrNames:m,attributes:y,options:_}}function f(e,t){if(Array.isArray(e)){var r={};return e.forEach(function(e){return r[e]=f(e,t)}),r}var o=n(e),c=o.treatment,l=o.config;return t?{treatment:c,config:l}:c}function h(e){return l?Promise.resolve(e):e}return{getTreatment:function(e,r,n,o){var c=d(R,e,r,n,o);return c.valid?t.getTreatment(c.key,c.nameOrNames,c.attributes,c.options):h(f(c.nameOrNames,!1))},getTreatmentWithConfig:function(e,r,n,o){var c=d(D,e,r,n,o);return c.valid?t.getTreatmentWithConfig(c.key,c.nameOrNames,c.attributes,c.options):h(f(c.nameOrNames,!0))},getTreatments:function(e,r,n,o){var c=d(L,e,r,n,o);return c.valid?t.getTreatments(c.key,c.nameOrNames,c.attributes,c.options):h(f(c.nameOrNames||[],!1))},getTreatmentsWithConfig:function(e,r,n,o){var c=d(x,e,r,n,o);return c.valid?t.getTreatmentsWithConfig(c.key,c.nameOrNames,c.attributes,c.options):h(f(c.nameOrNames||[],!0))},getTreatmentsByFlagSets:function(e,r,n,o){var c=d(M,e,r,n,o);return c.valid?t.getTreatmentsByFlagSets(c.key,c.nameOrNames,c.attributes,c.options):h({})},getTreatmentsWithConfigByFlagSets:function(e,r,n,o){var c=d(U,e,r,n,o);return c.valid?t.getTreatmentsWithConfigByFlagSets(c.key,c.nameOrNames,c.attributes,c.options):h({})},getTreatmentsByFlagSet:function(e,r,n,o){var c=d(k,e,[r],n,o);return c.valid?t.getTreatmentsByFlagSet(c.key,c.nameOrNames[0],c.attributes,c.options):h({})},getTreatmentsWithConfigByFlagSet:function(e,r,n,o){var c=d(F,e,[r],n,o);return c.valid?t.getTreatmentsWithConfigByFlagSet(c.key,c.nameOrNames[0],c.attributes,c.options):h({})},track:function(e,n,l,d,f){var m=Xe(c,e,j),y=function(e,t,r){if(null==t)e.error(o.M,[r,Ti]);else if(Object(Te.k)(t)){if(0!==t.length)return Ai.test(t)&&(e.warn(o.mc,[r]),t=t.toLowerCase()),t;e.error(o.w,[r,Ti])}else e.error(o.E,[r,Ti]);return!1}(c,n,j),v=function(e,t,r){if(null==t)e.error(o.M,[r,Si]);else if(Object(Te.k)(t))if(0===t.length)e.error(o.w,[r,Si]);else{if(Oi.test(t))return t;e.error(o.A,[r,t])}else e.error(o.E,[r,Si]);return!1}
2(c,l,j),_=function(e,t,r){return Object(Te.h)(t)||null==t?t:(e.error(o.K,[r]),!1)}(c,d,j),E=wi(c,f,j),w=E.properties,A=E.size;return ln(c,r,j)&&m&&y&&v&&!1!==_&&!1!==w?t.track(m,y,v,_,w,A):h(!1)}}}var Ci=1e3;function Ni(e,t){var r=e.sdkReadinessManager,o=e.syncManager,c=e.storage,l=e.signalListener,d=e.settings,f=e.telemetryTracker,h=e.impressionsTracker,m=!1,y=0;function v(){return o?o.flush():Promise.resolve()}return Object(n.a)(Object.create(r.sdkStatus),Ii(d,vi(e),r.readinessManager,e.fallbackTreatmentsCalculator),{init:function(){m||(m=!0,t||(pt(d.log,d.core.authorizationKey),r.readinessManager.init(),h.start(),o&&o.start(),l&&l.start()))},flush:function(){return e=v,time=Ci,t=Date.now(),(r=t-y)<time?(d.log.warn("Flush cooldown, remaining time ".concat((time-r)/1e3," seconds")),Promise.resolve()):(y=t,e());var e,time,t,r},destroy:function(){var e;return m=!1,r.readinessManager.destroy(),t||(e=d.core.authorizationKey,lt[e]&&lt[e]--,0===lt[e]&&delete lt[e],f.sessionLength(),l&&l.stop(),h.stop()),o&&o.stop(),v().then(function(){return c.destroy()})}})}function Pi(e,t){return"".concat(e.matchingKey?e.matchingKey:e,"-").concat(e.bucketingKey?e.bucketingKey:e,"-").concat(t||"")}function Ri(e){var t=e.clients,r=e.storage,c=e.syncManager,l=e.sdkReadinessManager,d=e.settings,f=d.core.key,h=d.log,m=d.initialRolloutPlan,y=Ln(h,Ni(e),f),v=Pi(mt(f));return t[v]=y,function(d){if(void 0===d)return h.debug(o.wb),y;var f=Xe(h,d,o.Z);if(!1===f)throw new Error("Shared Client needs a valid key.");var v=Pi(f);if(t[v])h.debug(o.xb);else{var _=ht(f),E=l.shared(),w=r.shared&&r.shared(_,function(e){e?E.readinessManager.timeout():E.readinessManager.segments.emit(Re)});w&&m&&Je(h,m,{segments:w.segments,largeSegments:w.largeSegments},_);var A=c&&w&&c.shared(_,E.readinessManager,w);t[v]=Ln(h,Ni(Object(n.a)({},e,{sdkReadinessManager:E,storage:w||r,syncManager:A}),!0),f),h.info(o.sb)}return t[v]}}var Li=function(e,t,r,n){this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null},Di=function(){function e(){this.tail=null,this.head=null,this.length=0}return e.prototype.removeNode=function(e){if(e&&e instanceof Li){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t}},e.prototype.unshiftNode=function(e){if(e&&e instanceof Li&&e!==this.head){e.list&&e.list.removeNode(e);var head=this.head;e.list=this,e.next=head,head&&(head.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},e.prototype.unshift=function(){for(var i=0,e=arguments.length;i<e;i++)this.head=new Li(arguments[i],null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length},e}(),xi=function(){function e(e){this.maxLen=e||1,this.items=new Map,this.lru=new Di}return e.prototype.get=function(e){var t=this.items.get(e);if(t&&t instanceof Li)return this.lru.unshiftNode(t),t.value.value},e.prototype.set=function(e,t){var r=this.items.get(e);if(r){if(!(r instanceof Li))return!1;this.lru.unshiftNode(r),this.lru.head.value.value=t}else{if(this.lru.length===this.maxLen){var n=this.lru.tail;if(!n)return!1;this.items.delete(n.value.key),this.lru.removeNode(this.lru.tail)}this.lru.unshift({key:e,value:t}),this.items.set(e,this.lru.head)}return!0},e}(),ki=function(){function e(e,t){this.cache=new xi(e),this.hasher=t}return e.prototype.testAndSet=function(e){var t=this.hasher(e),r=this.cache.get(t);return this.cache.set(t,e.time),r},e}();function Mi(e){return er(function(e){return"".concat(e.keyName,":").concat(e.feature,":").concat(e.treatment,":").concat(e.label,":").concat(e.changeNumber)}(e))}var Fi=500;function Ui(){return new ki(Fi,Mi)}function ji(e){var t=rn(e);return t.validateCache=function(){return Promise.resolve({initialCacheLoad:!1})},t}function Bi(e,t){var r=!1,n=!1;var o=function e(o){var c=new Promise(function(e,r){return o.then(e,function(e){n?r(e):t(e)})}),l=c.then;return Object.defineProperty(c,"then",{value:function(t,o){var d=l.call(c,t,o);return"function"==typeof t&&(r=!0),"function"==typeof o?(n=!0,d):e(d)}}),c}(e);return o.hasOnFulfilled=function(){return r},o}function Hi(e,t,r,o){void 0===r&&(r=function(e){var t=Object(n.a)(new e,{splitsArrived:!1,splitsCacheLoaded:!1,hasInit:!1,initCallbacks:[]});return t.on(Ne,function(e,r){r||(t.splitsArrived=!0)}),t.once(Pe,function(){t.splitsCacheLoaded=!0}),t}(e));var c=t.startup.readyTimeout,l=function(e){var t=Object(n.a)(new e,{segmentsArrived:!1});return t.once(Re,function(){t.segmentsArrived=!0}
2),t}(e),d=new e,f=0;function h(){var e=Date.now();f=e>f?e:f+1}var m={initialCacheLoad:!0},y=!1;r.splitsCacheLoaded?y=!0:r.once(Pe,function(e){if(m=e,y=!0,!E&&!A)try{h(),d.emit(xe,e)}catch(e){setTimeout(function(){throw e},0)}});var v=!1;function _(){v||E||(v=!0,h(),d.emit(Le,"Split SDK emitted SDK_READY_TIMED_OUT event."))}var E=!1;r.on(Ne,O),l.on(Re,O);var w,A=!1;function T(){A=!1,c>0&&!E&&(w=setTimeout(_,c))}function O(e){if(!A)if(E)try{h(),d.emit(ke,e)}catch(e){setTimeout(function(){throw e},0)}else if(r.splitsArrived&&l.segmentsArrived){clearTimeout(w),E=!0;try{if(h(),!y){y=!0;var t={initialCacheLoad:!0,lastUpdateTimestamp:void 0};d.emit(xe,t)}d.emit(De,m)}catch(e){setTimeout(function(){throw e},0)}}}return r.initCallbacks.push(T),r.hasInit&&T(),{splits:r,segments:l,gate:d,shared:function(){return Hi(e,t,r,!0)},timeout:_,setDestroyed:function(){A=!0},init:function(){r.hasInit||(r.hasInit=!0,r.initCallbacks.forEach(function(e){return e()}))},destroy:function(){A=!0,h(),clearTimeout(w),o||(r.hasInit=!1)},isReady:function(){return E},isReadyFromCache:function(){return y},isTimedout:function(){return v&&!E},hasTimedout:function(){return v},isDestroyed:function(){return A},isOperational:function(){return(E||y)&&!A},lastUpdate:function(){return f},metadataReady:function(){return m}}}ji.type=S;var Vi="newListener",zi="removeListener",Yi=new Error(Le);function qi(e,t,r){void 0===r&&(r=Hi(e,t));var c=t.log,l=0,d=0;r.gate.on(zi,function(e){e===De&&d--}),r.gate.on(Vi,function(e){e===De||e===Le?r.isReady()?c.error(o.v,[e===De?"SDK_READY":"SDK_READY_TIMED_OUT"]):e===De&&d++:e===xe&&r.isReadyFromCache()&&c.error(o.v,["SDK_READY_FROM_CACHE"])});var f,h=f=Bi(new Promise(function(e,t){r.gate.once(De,function(){c.info(o.e),d!==l||f.hasOnFulfilled()||c.warn(o.d),e()}),r.gate.once(Le,function(e){t(new Error(e))})}),m);function m(e){c.error(e&&e.message)}function y(){return{isReady:r.isReady(),isReadyFromCache:r.isReadyFromCache(),isTimedout:r.isTimedout(),hasTimedout:r.hasTimedout(),isDestroyed:r.isDestroyed(),isOperational:r.isOperational(),lastUpdate:r.lastUpdate()}}return r.gate.once(xe,function(){c.info(o.f)}),{readinessManager:r,shared:function(){return qi(e,t,r.shared())},incInternalReadyCbCount:function(){l++},sdkStatus:Object(n.a)(Object.create(r.gate),{Event:{SDK_READY:De,SDK_READY_FROM_CACHE:xe,SDK_UPDATE:ke,SDK_READY_TIMED_OUT:Le},ready:function(){return r.hasTimedout()?r.isReady()?Promise.resolve():Bi(Promise.reject(new Error("Split SDK has emitted SDK_READY_TIMED_OUT event.")),m):h},whenReady:function(){return new Promise(function(e,t){r.isReady()?e(r.metadataReady()):r.hasTimedout()?t(Yi):(r.gate.once(De,e),r.gate.once(Le,function(){return t(Yi)}))})},whenReadyFromCache:function(){return new Promise(function(e,t){r.isReadyFromCache()?e(r.metadataReady()):r.hasTimedout()?t(Yi):(r.gate.once(xe,e),r.gate.once(Le,function(){return t(Yi)}))})},getStatus:y,__getStatus:y})}}var $i={add:function(){return!0},contains:function(){return!0},clear:function(){}};function Wi(e,t,r){var c,l,d=e.settings,f=e.impressionsObserverFactory,h=e.filterAdapterFactory,m=d.log,_=d.impressionListener,E=d.runtime,w=E.ip,A=E.hostname,T=d.version,O=d.sync.impressionsMode,S=f(),I=function(e,t,r){var n;return void 0===r&&(r=$i),{track:function(n,c){r.add(n,c)?t.track(n,c):e.debug("".concat(o.qb,"The feature ").concat(c," and key ").concat(n," exist in the filter"))},start:function(){r.refreshRate&&(n=setInterval(r.clear,r.refreshRate))},stop:function(){clearInterval(n)}}}(m,t.uniqueKeys,h&&h()),C=function(e,t){return{process:function(r){var n=Date.now();return e.track(r.feature,n,1),t.track(r.keyName,r.feature),!1}}}(t.impressionCounts,I),P=O===v?(c=S,l=t.impressionCounts,{process:function(e){if(e.properties)return!0;e.pt=c.testAndSet(e);var t=Date.now();return e.pt&&l.track(e.feature,t,1),!e.pt||e.pt<Dr(t)}}):O===y?function(e){return{process:function(t){return t.properties||(t.pt=e.testAndSet(t)),!0}}}(S):C;return{start:function(){I.start()},stop:function(){I.stop()},track:function(e,c){if(d.userConsent!==N){var l=e.filter(function(e){var t=e.imp;return e.disabled?C.process(t):P.process(t)}),f=e.length,h=l.length;if(h){var y=t.impressions.track(l.map(function(e){return e.imp}));un(y)?y.then(function(){m.info(o.W,[f])}).catch(function(e){m.error(o.D,[f,e])}):t.telemetry&&(t.telemetry.recordImpressionStats(z,h),t.telemetry.recordImpressionStats($,f-h))}if(_||r)for(var v=function(i){var t={impression:Object(n.a)({},e[i].imp),attributes:c,ip:w,hostname:A,sdkLanguageVersion:T};setTimeout(function(){r&&r.handleImpression(t);try{_&&_.logImpression(t)}catch(e){m.error(o.C,[e])}})},i=0;i<f;i++)v(i)}}}}var Ki=r(45);function Gi(e){function t(t){Object(Ki.c)(t)?e.setLogLevel(t):e.error(o.H)}return{enable:function(){t(Ki.a.DEBUG)},setLogLevel:t,setLogger:function(t){e.setLogger(t)},disable:function(){t(Ki.a.NONE)},LogLevel:Ki.a}}function Qi(e){var t,r=e.settings,c=e.platform,l=e.storageFactory,d=e.splitApiFactory,f=e.extraProps,h=e.syncManagerFactory,y=e.SignalListener,v=e.integrationsManagerFactory,_=e.sdkManagerFactory,E=e.sdkClientMethodFactory,w=e.lazyInit,A=r.log,T=r.initialRolloutPlan,O=r.core.key,S=qi(c.EventEmitter,r),I=S.readinessManager,C=l({settings:r,onReadyCb:function(e){e?I.timeout():(I.splits.emit(Ne),I.segments.emit(Re))}
2,onReadyFromCacheCb:function(){I.splits.emit(Pe)}}),P=(void 0===(t=r.fallbackTreatments)&&(t={}),function(e,label){var r;void 0===label&&(label="");var n=(null===(r=t.byFlag)||void 0===r?void 0:r[e])||t.global;return n?Object(Te.k)(n)?{treatment:n,config:null,label:"".concat(fn).concat(label)}:{treatment:n.treatment,config:n.config,label:"".concat(fn).concat(label)}:{treatment:m,config:null,label:label}});T&&(Je(A,T,C,O&&ht(O)),C.splits.getChangeNumber()>-1&&I.splits.emit(Pe,{initialCacheLoad:!1}));var R={},L=function(e,t){if(e&&t){var r=ft(t);return{trackEval:function(r){var n=ft(t);return function(label){switch(label){case gn:return void e.recordException(r);case vn:e.recordNonReadyUsage&&e.recordNonReadyUsage()}e.recordLatency(r,n())}},trackHttp:function(r){var n=ft(t);return function(t){e.recordHttpLatency(r,n()),t&&t.statusCode?e.recordHttpError(r,t.statusCode):e.recordSuccessfulSync(r,Date.now())}},sessionLength:function(){e.recordSessionLength&&e.recordSessionLength(r())},streamingEvent:function(t,r){t===de?e.recordAuthRejections():(e.recordStreamingEvents({e:t,d:r,t:Date.now()}),t===le&&e.recordTokenRefreshes())},addTag:function(t){e.addTag&&e.addTag(t)},trackUpdatesFromSSE:function(t){e.recordUpdatesFromSSE(t)}}}var n=function(){return function(){}};return{trackEval:n,trackHttp:n,sessionLength:function(){},streamingEvent:function(){},addTag:function(){},trackUpdatesFromSSE:function(){}}}(C.telemetry,c.now),D=v&&v({settings:r,storage:C,telemetryTracker:L}),x=Wi(e,C,D),k=function(e,t,r,c){var l=e.log,d=Ue(e.mode);function f(e,t){var c=e.eventTypeId,d=e.trafficTypeName,f=e.key,h=e.value,m=e.timestamp,y=e.properties,v='event of type "'.concat(c,'" for traffic type "').concat(d,'". Key: ').concat(f,". Value: ").concat(h,". Timestamp: ").concat(m,". ").concat(y?"With properties.":"With no properties.");return t?(l.info(o.V,[v]),r&&setTimeout(function(){var t=Object(n.a)({},e);y&&(t.properties=Object(n.a)({},y)),r.handleEvent(t)})):l.error(o.z,[v]),t}return{track:function(r,n){if(e.userConsent===N)return!!d&&Promise.resolve(!1);var o=t.track(r,n);return un(o)?o.then(f.bind(null,r)):(c&&c.recordEventStats(o?z:Y,1),f(r,o))}}}(r,C.events,D,C.telemetry),M=d&&d(r,c,L),F={clients:R,splitApi:M,eventTracker:k,impressionsTracker:x,telemetryTracker:L,sdkReadinessManager:S,readiness:I,settings:r,storage:C,platform:c,fallbackTreatmentsCalculator:P},U=h&&h(F);F.syncManager=U;var j=y&&new y(U,r,C,M);F.signalListener=j;var B=E(F),H=_(r,C.splits,S);function V(){Object.keys(R).map(function(e){return R[e].init()})}return A.info(o.rb,[r.version]),Object(n.a)({client:B,manager:function(){return A.debug(o.yb),H},Logger:Gi(A),settings:r,destroy:function(){return Promise.all(Object.keys(R).map(function(e){return R[e].destroy()})).then(function(){})}},f&&f(F),w?{init:V}:V())}var Xi={GRANTED:C,DECLINED:N,UNKNOWN:P};function Ji(e){var t=e.settings,r=e.settings.log,n=e.syncManager,c=e.storage,l=c.events,d=c.impressions,f=c.impressionCounts,h=c.uniqueKeys;return Mt(t)||r.info(o.dc,[t.userConsent]),{setStatus:function(e){var c,m;if(!Object(Te.g)(e))return r.warn(o.J,["UserConsent.setStatus"]),!1;var y=e?C:N;return t.userConsent!==y?(r.info(o.fc,[t.userConsent,y]),t.userConsent=y,e?null===(c=null==n?void 0:n.submitterManager)||void 0===c||c.start():(null===(m=null==n?void 0:n.submitterManager)||void 0===m||m.stop(!0),l.clear&&l.clear(),d.clear&&d.clear(),f.clear&&f.clear(),h.clear&&h.clear())):r.info(o.ec,[y]),!0},getStatus:function(){return t.userConsent},Status:Xi}}function Zi(data){var e=data.treatment;return data.keys?{conditionType:"WHITELIST",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"WHITELIST",negate:!1,whitelistMatcherData:{whitelist:Object(Te.k)(data.keys)?[data.keys]:data.keys}}]},partitions:[{treatment:e,size:100}],label:"whitelisted ".concat(e)}:{conditionType:"ROLLOUT",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"ALL_KEYS",negate:!1}]},partitions:[{treatment:e,size:100}],label:"default rule"}}function eo(e,t,r,n){return be(n.log,function(e,t,r,n){var c=n.log,l=t.splits,d=!0;return function(){var f=[],h=null,y={};try{y=e(n)}catch(e){h=e,c.error(o.S,[e])}return!h&&y?(c.debug(o.Sb,[JSON.stringify(y)]),Object(Te.d)(y,function(e,t){f.push({name:t,status:"ACTIVE",killed:!1,trafficAllocation:100,defaultTreatment:m,conditions:e.conditions||[],configurations:e.configurations,trafficTypeName:e.trafficTypeName})}),Promise.all([l.clear(),l.update(f,[],Date.now())]).then(function(){return r.splits.emit(Ne,{type:Me,names:[]}
2),d&&(d=!1,Promise.resolve(t.validateCache?t.validateCache():{initialCacheLoad:!0}).then(function(e){e.initialCacheLoad||r.splits.emit(Pe,e),r.segments.emit(Re,{type:Fe,names:[]})})),!0})):Promise.resolve(!0)}}(e,t,r,n),n.scheduler.offlineRefreshRate,"offlineUpdater")}function to(){return Promise.resolve()}var ro,no=(ro=function(){var e={emptyMock:"1"};return function(t){var r,n,o=t.features||{};if(r=o,!((n=Object.keys(r)).length!==Object.keys(e).length?(e=Object(Te.l)({},r),1):n.some(function(t){var n,o,c=!e[t],l=typeof(n=e[t])!=typeof(o=r[t])||("string"==typeof n?n!==o:n.treatment!==o.treatment||n.config!==o.config),d=c||l;return d&&(e=Object(Te.l)({},r)),d})))return!1;var c={};return Object(Te.d)(o,function(data,e){var t=data,r=null;Object(Te.j)(data)&&(t=data.treatment,r=data.config||r);var n={};null!==r&&(n[t]=r),c[e]={trafficTypeName:"localhost",conditions:[Zi({treatment:t})],configurations:n}}),c}},function(e){var t=e.settings,r=e.readiness,o=e.storage,c=eo(ro(),o,r,t),l=c.start,d=[];return Object(n.a)(c,{start:function(){l(),d.forEach(function(e){return e()}),d.length=0},flush:to,shared:function(e,t){function r(){t.segments.emit(Re)}return c.isRunning()?setTimeout(r):d.push(r),{stop:function(){},flush:to}}})});var io=r(578),oo=[N,C,P];var ao="LOCALSTORAGE";var so={defaults:{startup:{requestTimeoutBeforeReady:5,retriesOnFailureBeforeReady:1,readyTimeout:10,eventsFirstPushWindow:10},userConsent:C,version:"javascript-11.11.2"},acceptKey:!0,runtime:function(){return{ip:!1,hostname:!1}},storage:function(e){var t,r=e.log,n=e.mode,o=e.storage,c=void 0===o?{type:S}:o,l=c.type,d=c.options,f=void 0===d?{}:d,h=c.prefix,m=c.expirationDays,y=c.clearOnInit,v=c.wrapper,_=function(){t=l,l=S};return n===E&&l===ao&&_(),l!==S&&l!==ao&&(_(),r.error("Invalid storage type. Fallback into MEMORY storage")),{type:l,options:f,prefix:h,expirationDays:m,clearOnInit:y,wrapper:v,__originalType:t}},logger:io.a,consent:function(e){var t=e.userConsent,r=e.log;return t=Object(Te.n)(t),oo.indexOf(t)>-1?t:(r.error(o.F,["userConsent",oo,C]),C)}};var co,uo="object"==typeof Reflect?Reflect:null,lo=uo&&"function"==typeof uo.apply?uo.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};co=uo&&"function"==typeof uo.ownKeys?uo.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var po=Number.isNaN||function(e){return e!=e};function fo(){fo.init.call(this)}fo.prototype._events=void 0,fo.prototype._eventsCount=0,fo.prototype._maxListeners=void 0;var ho=10;function mo(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function yo(e){return void 0===e._maxListeners?fo.defaultMaxListeners:e._maxListeners}function vo(e,t,r,n){var o,c,l,d;if(mo(r),void 0===(c=e._events)?(c=e._events=Object.create(null),e._eventsCount=0):(void 0!==c.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),c=e._events),l=c[t]),void 0===l)l=c[t]=r,++e._eventsCount;else if("function"==typeof l?l=c[t]=n?[r,l]:[l,r]:n?l.unshift(r):l.push(r),(o=yo(e))>0&&l.length>o&&!l.warned){l.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=l.length,d=f,console&&console.warn&&console.warn(d)}return e}function go(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _o(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=go.bind(n);return o.listener=r,n.wrapFn=o,o}function bo(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),i=0;i<t.length;++i)t[i]=e[i].listener||e[i];return t}(o):wo(o,o.length)}function Eo(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function wo(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}Object.defineProperty(fo,"defaultMaxListeners",{enumerable:!0,get:function(){return ho},set:function(e){if("number"!=typeof e||e<0||po(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ho=e}}),fo.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},fo.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||po(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},fo.prototype.getMaxListeners=function(){return yo(this)},fo.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var r="error"===e,n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var c=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw c.context=o,c}var l=n[e];if(void 0===l)return!1;if("function"==typeof l)lo(l,this,t);else{var d=l.length,f=wo(l,d);for(i=0;i<d;++i)lo(f[i],this,t)}return!0},fo.prototype.addListener=function(e,t){return vo(this,e,t,!1)},fo.prototype.on=fo.prototype.addListener,fo.prototype.prependListener=function(e,t){return vo(this,e,t,!0)},fo.prototype.once=function(e,t){return mo(t),this.on(e,_o(this,e,t)),this},fo.prototype.prependOnceListener=function(e,t){return mo(t),this.prependListener(e,_o(this,e,t)),this},fo.prototype.removeListener=function(e,t){var r,n,o,i,c;if(mo(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit
2("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){c=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,c||t)}return this},fo.prototype.off=fo.prototype.removeListener,fo.prototype.removeAllListeners=function(e){var t,r,i;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var n,o=Object.keys(r);for(i=0;i<o.length;++i)"removeListener"!==(n=o[i])&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},fo.prototype.listeners=function(e){return bo(this,e,!0)},fo.prototype.rawListeners=function(e){return bo(this,e,!1)},fo.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Eo.call(e,t)},fo.prototype.listenerCount=Eo,fo.prototype.eventNames=function(){return this._eventsCount>0?co(this._events):[]};var Ao=function(e,t){return t=t||{},new Promise(function(r,n){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(e){return i[e.toLowerCase()]},has:function(e){return e.toLowerCase()in i}}}};for(var c in s.open(t.method||"get",e,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,r){o.push(t=t.toLowerCase()),u.push([t,r]),i[t]=i[t]?i[t]+","+r:r}),r(a())},s.onerror=n,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(c,t.headers[c]);s.send(t.body||null)})};var To="visibilitychange",Oo="pagehide",So="for visibilitychange and pagehide events.",Io=function(){function e(e,t,r,n){this.syncManager=e,this.settings=t,this.storage=r,this.serviceApi=n,this.flushData=this.flushData.bind(this),this.flushDataIfHidden=this.flushDataIfHidden.bind(this),this.fromImpressionsCollector=Oe.bind(void 0,t.core.labelsEnabled)}return e.prototype.start=function(){this.settings.log.debug(o.b,[So]),"undefined"!=typeof document&&document.addEventListener&&document.addEventListener(To,this.flushDataIfHidden),"undefined"!=typeof window&&window.addEventListener&&window.addEventListener(Oo,this.flushData)},e.prototype.stop=function(){this.settings.log.debug(o.a,[So]),"undefined"!=typeof document&&document.removeEventListener&&document.removeEventListener(To,this.flushDataIfHidden),"undefined"!=typeof window&&window.removeEventListener&&window.removeEventListener(Oo,this.flushData)},e.prototype.flushData=function(){if(this.syncManager){var e=this.settings.urls,t=e.events,r=e.telemetry;if(Mt(this.settings)){var n={sim:this.settings.sync.impressionsMode};this._flushData(t+"/testImpressions/beacon",this.storage.impressions,this.serviceApi.postTestImpressionsBulk,this.fromImpressionsCollector,n),this._flushData(t+"/events/beacon",this.storage.events,this.serviceApi.postEventsBulk),this._flushData(t+"/testImpressions/count/beacon",this.storage.impressionCounts,this.serviceApi.postTestImpressionsCount,Ie),this._flushData(r+"/v1/keys/cs/beacon",this.storage.uniqueKeys,this.serviceApi.postUniqueKeysBulkCs)}this.storage.telemetry&&this._flushData(r+"/v1/metrics/usage/beacon",this.storage.telemetry,this.serviceApi.postMetricsUsage)}},e.prototype.flushDataIfHidden=function(){"hidden"===document.visibilityState&&this.flushData()},e.prototype._flushData=function(e,t,r,n,c){if(!t.isEmpty()){var l=n?n(t.pop()):t.pop();this._sendBeacon(e,l,c)||r(JSON.stringify(l)).catch(function(){}),this.settings.log.debug(o.Ob,[t.name])}},e.prototype._sendBeacon=function(e,data,t){if("undefined"!=typeof navigator&&navigator.sendBeacon){var r={entries:data,token:this.settings.core.authorizationKey,sdk:this.settings.version};t&&Object(n.a)(r,t);var o=JSON.stringify(r);try{return navigator.sendBeacon(e,o)}catch(e){return!1}}return!1},e}();var Co,No,Po={getFetch:function(){return"function"==typeof fetch?fetch:Ao},getEventSource:function(){return"function"==typeof EventSource?EventSource:void 0},EventEmitter:fo,now:"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):Date.now},Ro=Io,Lo=(Co=function(e){var t=e.splitApi,r=e.storage,n=e.readiness,c=e.settings,l=c.log,d=function(e,t,r,n,o){return be(n.log,Pr(n.log,Or(e,n,t),t,n.sync.__splitFiltersValidation,r.splits,n.startup.requestTimeoutBeforeReady,n.startup.retriesOnFailureBeforeReady,o),n.scheduler.featuresRefreshRate,"splitChangesUpdater")}(t.fetchSplitChanges,r,n,c,!0),f={},h=v(ht(c.core.key),n,r);function m(){Object(Te.d)(f,function(e){e.start()})}function y(){Object(Te.d)(f,function(e){e.isRunning()&&e.stop()})}function v(e,r,n){var o=function(e,t,r,n,o){return be(n.log,Ar(n.log,function(e){return function(t,r,n,o){var c=e(t,r,n);return o&&(c=o(c)),c.then(function(e){return e.json()})}}(e),t,r.segments,n.startup.requestTimeoutBeforeReady,n.startup.retriesOnFailureBeforeReady,o),n.scheduler.segmentsRefreshRate,"mySegmentsUpdater")}(t.fetchMemberships,n,r,c,e);function l(e){r.isReady()||jt(n)||r.segments.emit(Re,e)}return jt(n)?r.splits.once(Ne,l):setTimeout(l,0),f[e]=o,o}return n.splits.on(Ne,function(){if(d.isRunning()){var e=jt(r);e!==h.isRunning()&&(l.info(o.tb,[e?"ON":"OFF"]),e?m():y())}}),{splitsSyncTask:d,segmentsSyncTask:h,start:function(){l.info(o.ub),d.start(),jt(r)&&m()},stop:function(){l.info(o.vb),d.isRunning()&&d.stop(),y()},isRunning:d.isRunning,syncAll:function(){var e=[d.execute()];return Object(Te.d)(f,function(t){e.push(t.execute())}),Promise.all(e)},add:v,remove:function(e){delete f[e]},get:function(e){return f[e]}}},No=function(e,t){var r,c=e.settings,l=e.storage,d=e.splitApi,f=e.readiness,h=e.platform,m=e.telemetryTracker,y=yt(c)?void 0:ht(c.core.key),v=c.log;try{r=new pr(c,h)}catch(e){return void v.warn(o.Db,[e])}var _=sr(d.fetchAuth),E=new h.EventEmitter,w=zt(v,E,m);r.setEventHandler(w);var A,T,O,S,I=y?void 0:qt(v,t.segmentsSyncTask,l.segments),C=ar(v,l,t.splitsSyncTask,f.splits,m,y?void 0:t.segmentsSyncTask),N={},P={},R=!1,L=new Bt(D,c.scheduler.pushRetryBackoffBase);function D(){if(!A){v.info(o.Ab),A=!1;var e=y?Object.keys(P):void 0;_(e).then(function(t){if(!A)return t.pushEnabled?void(e&&e.length<Object.keys(P).length||function(e){O&&clearTimeout(O),S&&clearTimeout(S);var t=e.decodedToken,n=t.exp-t.iat-600,c="number"==typeof e.connDelay&&e.connDelay>=0?e.connDelay:60;v.info(o.Kb,[n,c]),O=setTimeout(D,1e3*n),S=setTimeout(function(){A||r.open(e)},1e3*c),m.streamingEvent(le,t.exp)}(t)):(v.info(o.Bb),void E.emit(Tt))}).catch(function(e){if(!A){if(v.error(o.Q,[e.message]),e.statusCode>=400&&e.statusCode<500)return m.streamingEvent(de),void E.emit(Tt);E.emit(Ot)}})}}function x(){A||(A=!0,r.close(),v.info(o.Cb),O&&clearTimeout(O),S&&clearTimeout(S),L.reset(),k())}function k(){C.stop(),y?Object(Te.d)(P,function(e){return e.worker.stop()}):I.stop()}function M(e){switch(e.u){case dr.BoundedFetchRequest:var t;try{data=e.d,l=e.c,t=nr(data,l)}catch(e){v.warn(o.Gb,["BoundedFetchRequest",e]);break}return void Object(Te.d)(P,function(r,n){var o,c,l,d,f=r.hash64,h=r.worker;o=t,c=f.hex,l=parseInt(c.slice(8),16)%(8*o.length),d=l%8,(o[Math.floor(l/8)]&1<<d)>0&&h.put(e,void 0,or(e,n))});case dr.KeyList:var r,n,c=void 0;
2try{c=ir(e.d,e.c),r=new Set(c.a),n=new Set(c.r)}catch(e){v.warn(o.Gb,["KeyList",e]);break}if(!e.n||!e.n.length){v.warn(o.Gb,["KeyList","No segment name was provided"]);break}return void Object(Te.d)(P,function(t){var o=t.hash64,c=t.worker,l=!!r.has(o.dec)||!n.has(o.dec)&&void 0;void 0!==l&&c.put(e,{added:l?[e.n[0]]:[],removed:l?[]:[e.n[0]]})});case dr.SegmentRemoval:if(!e.n||!e.n.length){v.warn(o.Gb,["SegmentRemoval","No segment name was provided"]);break}return void Object(Te.d)(P,function(t){t.worker.put(e,{added:[],removed:e.n})})}var data,l;Object(Te.d)(P,function(t,r){t.worker.put(e,void 0,or(e,r))})}return E.on(It,k),E.on(St,function(){L.reset()}),E.on(Tt,function(){T=!0,x(),E.emit(It)}),E.on(Ot,function(){r.close();var e=L.scheduleCall();v.info(o.Jb,[e/1e3]),E.emit(It)}),E.on(At.STREAMING_RESET,function(){A||(O&&clearTimeout(O),D())}),E.on(Rt,C.killSplit),E.on(Lt,C.put),E.on(Dt,C.put),y?(E.on(Ct,M),E.on(Nt,M)):E.on(Pt,I.put),Object(n.a)(Object.create(E),{stop:function(){x(),y&&this.remove(y)},start:function(){T||!1===A||(A=!1,y?this.add(y,t.segmentsSyncTask):setTimeout(D))},isRunning:function(){return!1===A},add:function(e,t){var r,n,o=cr(e);N[o]||(N[o]=e,P[e]={hash64:(r=e,n=Er(r).slice(0,16),{hex:n,dec:wr(n)}),worker:Yt(v,l,t,m)},R=!0,this.isRunning()&&setTimeout(function(){R&&(R=!1,D())},0))},remove:function(e){var t=cr(e);delete N[t],delete P[e]}})},function(e){var t=e.settings,r=e.settings,n=r.log,c=r.streamingEnabled,l=r.sync.enabled,d=e.telemetryTracker,f=e.storage,h=e.readiness,m=Co&&Co(e),y=l&&c&&m&&No?No(e,m):void 0,v=wt(e);y&&(y.on(St,function(){n.info(o.Zb),m.isRunning()&&(m.stop(),d.streamingEvent(70,0)),m.syncAll()}),y.on(It,function(){m.isRunning()?n.info(o.Qb):(n.info(o.Yb),m.start(),d.streamingEvent(70,1))}));var _=!1,E=!0;return{pollingManager:m,pushManager:y,submitterManager:v,start:function(){return _=!0,v.start(!Mt(t)),Promise.resolve(f.validateCache?f.validateCache():{initialCacheLoad:!0}).then(function(e){_&&(E&&(e.initialCacheLoad||h.splits.emit(Pe,e)),m&&(l?y?(E&&m.syncAll(),y.start()):m.start():E&&m.syncAll()),E=!1)})},stop:function(){_=!1,y&&y.stop(),m&&m.isRunning()&&m.stop(),v.stop()},isRunning:function(){return _},flush:function(){return v.execute(!Mt(t))},shared:function(e,t,r){if(m){var n=m.add(e,t,r);return l&&y&&y.add(e,n),_&&(l?y?m.isRunning()?jt(r)&&n.start():n.execute():jt(r)&&n.start():t.isReady()||n.execute()),{stop:function(){var t=m.get(e);t&&(y&&y.remove(e),t.isRunning()&&t.stop(),m.remove(e))},flush:function(){return Promise.resolve()}}}}}});function Do(e){return e.storage.type===I?cn(e.storage):e.storage.__originalType===I?ji:rn}function xo(e,t){var r=function(e){return ot(e,so)}(e),n=function(e){var t={settings:e,platform:Po,storageFactory:Do(e),splitApiFactory:_e,syncManagerFactory:Lo,sdkManagerFactory:Cn,sdkClientMethodFactory:Ri,SignalListener:Ro,impressionsObserverFactory:Ui,extraProps:function(e){return{UserConsent:Ji(e)}}};e.mode===E&&(t.splitApiFactory=void 0,t.syncManagerFactory=no,t.SignalListener=void 0);return t}(r);return t&&t(n),Qi(n)}},function(e,t,r){"use strict";function n(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function o(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach(function(r){void 0===e[r]?e[r]=t[r]:n(t[r])&&n(e[r])&&Object.keys(t[r]).length>0&&o(e[r],t[r])})}r.r(t);var c="undefined"!=typeof document?document:{},l={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};o(c,l);var d="undefined"!=typeof window?window:{};o(d,{document:l,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}});class f{constructor(e){const t=this;for(let i=0;i<e.length;i+=1)t[i]=e[i];return t.length=e.length,this}}function h(e,t){const r=[];let i=0;if(e&&!t&&e instanceof f)return e;if(e)if("string"==typeof e){let n,o;const html=e.trim();if(html.indexOf("<")>=0&&html.indexOf(">")>=0){let e="div";for(0===html.indexOf("<li")&&(e="ul"),0===html.indexOf("<tr")&&(e="tbody"),0!==html.indexOf("<td")&&0!==html.indexOf("<th")||(e="tr"),0===html.indexOf("<tbody")&&(e="table"),0===html.indexOf("<option")&&(e="select"),o=c.createElement(e),o.innerHTML=html,i=0;i<o.childNodes.length;i+=1)r.push(o.childNodes[i])}else for(n=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||c).querySelectorAll(e.trim()):[c.getElementById(e.trim().split("#")[1])],i=0;i<n.length;i+=1)n[i]&&r.push(n[i])}else if(e.nodeType||e===d||e===c)r.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)r.push(e[i]);return new f(r)}function m(e){const t=[];for(let i=0;i<e.length;
vendor: 8,976 bytes, line 2
2i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}h.fn=f.prototype,h.Class=f,h.Dom7=f;"resize scroll".split(" ");const y={addClass:function(e){if(void 0===e)return this;const t=e.split(" ");for(let i=0;i<t.length;i+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.add(t[i]);return this},removeClass:function(e){const t=e.split(" ");for(let i=0;i<t.length;i+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.remove(t[i]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){const t=e.split(" ");for(let i=0;i<t.length;i+=1)for(let e=0;e<this.length;e+=1)void 0!==this[e]&&void 0!==this[e].classList&&this[e].classList.toggle(t[i]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(e,t);else for(const t in e)this[i][t]=e[t],this[i].setAttribute(t,e[t]);return this},removeAttr:function(e){for(let i=0;i<this.length;i+=1)this[i].removeAttribute(e);return this},data:function(e,t){let r;if(void 0!==t){for(let i=0;i<this.length;i+=1)r=this[i],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this}if(r=this[0],r){if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];const t=r.getAttribute(`data-${e}`);return t||void 0}},transform:function(e){for(let i=0;i<this.length;i+=1){const t=this[i].style;t.webkitTransform=e,t.transform=e}return this},transition:function(e){"string"!=typeof e&&(e=`${e}ms`);for(let i=0;i<this.length;i+=1){const t=this[i].style;t.webkitTransitionDuration=e,t.transitionDuration=e}return this},on:function(...e){let[t,r,n,o]=e;function c(e){const t=e.target;if(!t)return;const o=e.target.dom7EventData||[];if(o.indexOf(e)<0&&o.unshift(e),h(t).is(r))n.apply(t,o);else{const e=h(t).parents();for(let t=0;t<e.length;t+=1)h(e[t]).is(r)&&n.apply(e[t],o)}}function l(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),n.apply(this,t)}"function"==typeof e[1]&&([t,n,o]=e,r=void 0),o||(o=!1);const d=t.split(" ");let f;for(let i=0;i<this.length;i+=1){const e=this[i];if(r)for(f=0;f<d.length;f+=1){const t=d[f];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:n,proxyListener:c}),e.addEventListener(t,c,o)}else for(f=0;f<d.length;f+=1){const t=d[f];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:n,proxyListener:l}),e.addEventListener(t,l,o)}}return this},off:function(...e){let[t,r,n,o]=e;"function"==typeof e[1]&&([t,n,o]=e,r=void 0),o||(o=!1);const c=t.split(" ");for(let i=0;i<c.length;i+=1){const e=c[i];for(let t=0;t<this.length;t+=1){const c=this[t];let l;if(!r&&c.dom7Listeners?l=c.dom7Listeners[e]:r&&c.dom7LiveListeners&&(l=c.dom7LiveListeners[e]),l&&l.length)for(let t=l.length-1;t>=0;t-=1){const r=l[t];n&&r.listener===n||n&&r.listener&&r.listener.dom7proxy&&r.listener.dom7proxy===n?(c.removeEventListener(e,r.proxyListener,o),l.splice(t,1)):n||(c.removeEventListener(e,r.proxyListener,o),l.splice(t,1))}}}return this},trigger:function(...e){const t=e[0].split(" "),r=e[1];for(let i=0;i<t.length;i+=1){const n=t[i];for(let t=0;t<this.length;t+=1){const o=this[t];let l;try{l=new d.CustomEvent(n,{detail:r,bubbles:!0,cancelable:!0})}catch(e){l=c.createEvent("Event"),l.initEvent(n,!0,!0),l.detail=r}o.dom7EventData=e.filter((data,e)=>e>0),o.dispatchEvent(l),o.dom7EventData=[],delete o.dom7EventData}}return this},transitionEnd:function(e){const t=["webkitTransitionEnd","transitionend"],r=this;let i;function n(o){if(o.target===this)for(e.call(this,o),i=0;i<t.length;i+=1)r.off(t[i],n)}if(e)for(i=0;i<t.length;i+=1)r.on(t[i],n);return this},outerWidth:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){const e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){const e=this[0],t=e.getBoundingClientRect(),body=c.body,r=e.clientTop||body.clientTop||0,n=e.clientLeft||body.clientLeft||0,o=e===d?d.scrollY:e.scrollTop,l=e===d?d.scrollX:e.scrollLeft;return{top:t.top+o-r,left:t.left+l-n}}return null},css:function(e,t){let i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(let t in e)this[i].style[t]=e[t];return this}if(this[0])return d.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this}return this},each:function(e){if(!e)return this;for(let i=0;i<this.length;i+=1)if(!1===e.call(this[i],i,this[i]))return this;return this},html:function(html){if(void 0===html)return this[0]?this[0].innerHTML:void 0;for(let i=0;i<this.length;i+=1)this[i].innerHTML=html;return this},text:function(text){if(void 0===text)return this[0]?this[0].textContent.trim():null;for(let i=0;i<this.length;i+=1)this[i].textContent=text;return this},is:function(e){const t=this[0];let r,i;if(!t||void 0===e)return!1;if("string"==typeof e){if(t.matches)return t.matches(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);for(r=h(e),i=0;i<r.length;i+=1)if(r[i]===t)return!0;return!1}if(e===c)return t===c;if(e===d)return t===d;if(e.nodeType||e instanceof f){for(r=e.nodeType?[e]:e,i=0;i<r.length;i+=1)if(r[i]===t)return!0;return!1}return!1},index:function(){let i,e=this[0];if(e){for(i=0;null!==(e=e.previousSibling);)1===e.nodeType&&(i+=1);return i}},eq:function(e){if(void 0===e)return this;const t=this.length;let r;return e>t-1?new f([]):e<0?(r=t+e,new f(r<0?[]:[this[r]])):new f([this[e]])},append:function(...e){let t;for(let r=0;r<e.length;r+=1){t=e[r];for(let i=0;i<this.length;i+=1)if("string"==typeof t){const e=c.createElement("div");for(e.innerHTML=t;e.firstChild;)this[i].appendChild(e.firstChild)}else if(t instanceof f)for(let e=0;e<t.length;e+=1)this[i].appendChild(t[e]);else this[i].appendChild(t)}return this},prepend:function(e){let i,t;for(i=0;i<this.length;i+=1)if("string"==typeof e){const r=c.createElement("div");for(r.innerHTML=e,t=r.childNodes.length-1;t>=0;t-=1)this[i].insertBefore(r.childNodes[t],this[i].childNodes[0])}else if(e instanceof f)for(t=0;t<e.length;t+=1)this[i].insertBefore(e[t],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this},next:function(e){return this.length>0?e?this[0].nextElementSibling&&h(this[0].nextElementSibling).is(e)?new f([this[0].nextElementSibling]):new f([]):this[0].nextElementSibling?new f([this[0].nextElementSibling]):new f([]):new f([])},nextAll:function(e){const t=[];let r=this[0];if(!r)return new f([]);for(;r.nextElementSibling;){const n=r.nextElementSibling;e?h(n).is(e)&&t.push(n):t.push(n),r=n}return new f(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&h(t.previousElementSibling).is(e)?new f([t.previousElementSibling]):new f([]):t.previousElementSibling?new f([t.previousElementSibling]):new f([])}return new f([])},prevAll:function(e){const t=[];let r=this[0];if(!r)return new f([]);for(;r.previousElementSibling;){const n=r.previousElementSibling;e?h(n).is(e)&&t.push(n):t.push(n),r=n}return new f(t)},parent:function(e){const t=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?h(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return h(m(t))},parents:function(e){const t=[];for(let i=0;i<this.length;i+=1){let r=this[i].parentNode;for(;r;)e?h(r).is(e)&&t.push(r):t.push(r),r=r.parentNode}return h(m(t))},closest:function(e){let t=this;return void 0===e?new f([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){const t=[];for(let i=0;i<this.length;i+=1){const r=this[i].querySelectorAll(e);for(let e=0;e<r.length;e+=1)t.push(r[e])}return new f(t)},children:function(e){const t=[];for(let i=0;i<this.length;i+=1){const r=this[i].childNodes;for(let n=0;n<r.length;n+=1)e?1===r[n].nodeType&&h(r[n]).is(e)&&t.push(r[n]):1===r[n].nodeType&&t.push(r[n])}return new f(m(t))},filter:function(e){const t=[],r=this;for(let i=0;i<r.length;i+=1)e.call(r[i],i,r[i])&&t.push(r[i]);return new f(t)},remove:function(){for(let i=0;i<this.length;i+=1)this[i].parentNode&&this[i].parentNode.removeChild(this[i]);return this},add:function(...e){const t=this;let i,r;for(i=0;i<e.length;i+=1){const n=h(e[i]);for(r=0;r<n.length;r+=1)t[t.length]=n[r],t.length+=1}return t},styles:function(){return this[0]?d.getComputedStyle(this[0],null):{}}};
2Object.keys(y).forEach(e=>{h.fn[e]=h.fn[e]||y[e]});const v={deleteProps(e){const object=e;Object.keys(object).forEach(e=>{try{object[e]=null}catch(e){}try{delete object[e]}catch(e){}})},nextTick:(e,t=0)=>setTimeout(e,t),now:()=>Date.now(),getTranslate(e,t="x"){let r,n,o;const c=d.getComputedStyle(e,null);return d.WebKitCSSMatrix?(n=c.transform||c.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(a=>a.replace(",",".")).join(", ")),o=new d.WebKitCSSMatrix("none"===n?"":n)):(o=c.MozTransform||c.OTransform||c.MsTransform||c.msTransform||c.transform||c.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=o.toString().split(",")),"x"===t&&(n=d.WebKitCSSMatrix?o.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(n=d.WebKitCSSMatrix?o.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0},parseUrlQuery(e){const t={};let i,r,param,n,o=e||d.location.href;if("string"==typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",r=o.split("&").filter(e=>""!==e),n=r.length,i=0;i<n;i+=1)param=r[i].replace(/#\S+/g,"").split("="),t[decodeURIComponent(param[0])]=void 0===param[1]?void 0:decodeURIComponent(param[1])||"";return t},isObject:e=>"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object,extend(...e){const t=Object(e[0]);for(let i=1;i<e.length;i+=1){const r=e[i];if(null!=r){const e=Object.keys(Object(r));for(let n=0,o=e.length;n<o;n+=1){const o=e[n],desc=Object.getOwnPropertyDescriptor(r,o);void 0!==desc&&desc.enumerable&&(v.isObject(t[o])&&v.isObject(r[o])?v.extend(t[o],r[o]):!v.isObject(t[o])&&v.isObject(r[o])?(t[o]={},v.extend(t[o],r[o])):t[o]=r[o])}}}return t}},_={touch:!!("ontouchstart"in d||d.DocumentTouch&&c instanceof d.DocumentTouch),pointerEvents:!!d.PointerEvent&&"maxTouchPoints"in d.navigator&&d.navigator.maxTouchPoints>=0,observer:"MutationObserver"in d||"WebkitMutationObserver"in d,passiveListener:function(){let e=!1;try{const t=Object.defineProperty({},"passive",{get(){e=!0}});d.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in d};class E{constructor(e={}){const t=this;t.params=e,t.eventsListeners={}
vendor: 5,138 bytes, line 2
2,t.params&&t.params.on&&Object.keys(t.params.on).forEach(e=>{t.on(e,t.params.on[e])})}on(e,t,r){const n=this;if("function"!=typeof t)return n;const o=r?"unshift":"push";return e.split(" ").forEach(e=>{n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][o](t)}),n}once(e,t,r){const n=this;if("function"!=typeof t)return n;function o(...r){n.off(e,o),o.f7proxy&&delete o.f7proxy,t.apply(n,r)}return o.f7proxy=t,n.on(e,o,r)}off(e,t){const r=this;return r.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?r.eventsListeners[e]=[]:r.eventsListeners[e]&&r.eventsListeners[e].length&&r.eventsListeners[e].forEach((n,o)=>{(n===t||n.f7proxy&&n.f7proxy===t)&&r.eventsListeners[e].splice(o,1)})}),r):r}emit(...e){const t=this;if(!t.eventsListeners)return t;let r,data,n;"string"==typeof e[0]||Array.isArray(e[0])?(r=e[0],data=e.slice(1,e.length),n=t):(r=e[0].events,data=e[0].data,n=e[0].context||t);return(Array.isArray(r)?r:r.split(" ")).forEach(e=>{if(t.eventsListeners&&t.eventsListeners[e]){const r=[];t.eventsListeners[e].forEach(e=>{r.push(e)}),r.forEach(e=>{e.apply(n,data)})}}),t}useModulesParams(e){const t=this;t.modules&&Object.keys(t.modules).forEach(r=>{const n=t.modules[r];n.params&&v.extend(e,n.params)})}useModules(e={}){const t=this;t.modules&&Object.keys(t.modules).forEach(r=>{const n=t.modules[r],o=e[r]||{};n.instance&&Object.keys(n.instance).forEach(e=>{const r=n.instance[e];t[e]="function"==typeof r?r.bind(t):r}),n.on&&t.on&&Object.keys(n.on).forEach(e=>{t.on(e,n.on[e])}),n.create&&n.create.bind(t)(o)})}static set components(e){this.use&&this.use(e)}static installModule(e,...t){const r=this;r.prototype.modules||(r.prototype.modules={});const n=e.name||`${Object.keys(r.prototype.modules).length}_${v.now()}`;return r.prototype.modules[n]=e,e.proto&&Object.keys(e.proto).forEach(t=>{r.prototype[t]=e.proto[t]}),e.static&&Object.keys(e.static).forEach(t=>{r[t]=e.static[t]}),e.install&&e.install.apply(r,t),r}static use(e,...t){const r=this;return Array.isArray(e)?(e.forEach(e=>r.installModule(e)),r):r.installModule(e,...t)}}var w={updateSize:function(){const e=this;let t,r;const n=e.$el;t=void 0!==e.params.width?e.params.width:n[0].clientWidth,r=void 0!==e.params.height?e.params.height:n[0].clientHeight,0===t&&e.isHorizontal()||0===r&&e.isVertical()||(t=t-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),r=r-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),v.extend(e,{width:t,height:r,size:e.isHorizontal()?t:r}))},updateSlides:function(){const e=this,t=e.params,{$wrapperEl:r,size:n,rtlTranslate:o,wrongRTL:c}=e,l=e.virtual&&t.virtual.enabled,f=l?e.virtual.slides.length:e.slides.length,h=r.children(`.${e.params.slideClass}`),m=l?e.virtual.slides.length:h.length;let y=[];const _=[],E=[];function w(e){return!t.cssMode||e!==h.length-1}let A=t.slidesOffsetBefore;"function"==typeof A&&(A=t.slidesOffsetBefore.call(e));let T=t.slidesOffsetAfter;"function"==typeof T&&(T=t.slidesOffsetAfter.call(e));const O=e.snapGrid.length,S=e.snapGrid.length;let I,C,N=t.spaceBetween,P=-A,R=0,L=0;if(void 0===n)return;"string"==typeof N&&N.indexOf("%")>=0&&(N=parseFloat(N.replace("%",""))/100*n),e.virtualSize=-N,o?h.css({marginLeft:"",marginTop:""}):h.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(I=Math.floor(m/t.slidesPerColumn)===m/e.params.slidesPerColumn?m:Math.ceil(m/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(I=Math.max(I,t.slidesPerView*t.slidesPerColumn)));const D=t.slidesPerColumn,x=I/D,k=Math.floor(m/t.slidesPerColumn);for(let i=0;i<m;i+=1){C=0;const r=h.eq(i);if(t.slidesPerColumn>1){let n,o,c;if("row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){const e=Math.floor(i/(t.slidesPerGroup*t.slidesPerColumn)),l=i-t.slidesPerColumn*t.slidesPerGroup*e,d=0===e?t.slidesPerGroup:Math.min(Math.ceil((m-e*D*t.slidesPerGroup)/D),t.slidesPerGroup);c=Math.floor(l/d),o=l-c*d+e*t.slidesPerGroup,n=o+c*I/D,r.css({"-webkit-box-ordinal-group":n,"-moz-box-ordinal-group":n,"-ms-flex-order":n,"-webkit-order":n,order:n})}else"column"===t.slidesPerColumnFill?(o=Math.floor(i/D),c=i-o*D,(o>k||o===k&&c===D-1)&&(c+=1,c>=D&&(c=0,o+=1))):(c=Math.floor(i/x),o=i-c*x);r.css("margin-"+(e.isHorizontal()?"top":"left"),0!==c&&t.spaceBetween&&`${t.spaceBetween}px`)}if("none"!==r.css("display")){if("auto"===t.slidesPerView){const n=d.getComputedStyle(r[0],null),o=r[0].style.transform,c=r[0].style.webkitTransform;if(o&&(r[0].style.transform="none"),c&&(r[0].style.webkitTransform="none"),t.roundLengths)C=e.isHorizontal()?r.outerWidth(!0):r.outerHeight(!0);else if(e.isHorizontal()){const e=parseFloat(n.getPropertyValue("width")),t=parseFloat(n.getPropertyValue("padding-left")),r=parseFloat(n.getPropertyValue("padding-right")),o=parseFloat(n.getPropertyValue("margin-left")),c=parseFloat(n.getPropertyValue("margin-right")),l=n.getPropertyValue("box-sizing");C=l&&"border-box"===l?e+o+c:e+t+r+o+c}else{const e=parseFloat(n.getPropertyValue("height")),t=parseFloat(n.getPropertyValue("padding-top")),r=parseFloat(n.getPropertyValue("padding-bottom")),o=parseFloat(n.getPropertyValue("margin-top")),c=p
2arseFloat(n.getPropertyValue("margin-bottom")),l=n.getPropertyValue("box-sizing");C=l&&"border-box"===l?e+o+c:e+t+r+o+c}o&&(r[0].style.transform=o),c&&(r[0].style.webkitTransform=c),t.roundLengths&&(C=Math.floor(C))}else C=(n-(t.slidesPerView-1)*N)/t.slidesPerView,t.roundLengths&&(C=Math.floor(C)),h[i]&&(e.isHorizontal()?h[i].style.width=`${C}px`:h[i].style.height=`${C}px`);h[i]&&(h[i].swiperSlideSize=C),E.push(C),t.centeredSlides?(P=P+C/2+R/2+N,0===R&&0!==i&&(P=P-n/2-N),0===i&&(P=P-n/2-N),Math.abs(P)<.001&&(P=0),t.roundLengths&&(P=Math.floor(P)),L%t.slidesPerGroup===0&&y.push(P),_.push(P)):(t.roundLengths&&(P=Math.floor(P)),(L-Math.min(e.params.slidesPerGroupSkip,L))%e.params.slidesPerGroup===0&&y.push(P),_.push(P),P=P+C+N),e.virtualSize+=C+N,R=C,L+=1}}let M;if(e.virtualSize=Math.max(e.virtualSize,n)+T,o&&c&&("slide"===t.effect||"coverflow"===t.effect)&&r.css({width:`${e.virtualSize+t.spaceBetween}px`}),t.setWrapperSize&&(e.isHorizontal()?r.css({width:`${e.virtualSize+t.spaceBetween}px`}):r.css({height:`${e.virtualSize+t.spaceBetween}px`})),t.slidesPerColumn>1&&(e.virtualSize=(C+t.spaceBetween)*I,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?r.css({width:`${e.virtualSize+t.spaceBetween}px`}):r.css({height:`${e.virtualSize+t.spaceBetween}px`}),t.centeredSlides)){M=[];for(let i=0;i<y.length;i+=1){let r=y[i];t.roundLengths&&(r=Math.floor(r)),y[i]<e.virtualSize+y[0]&&M.push(r)}y=M}if(!t.centeredSlides){M=[];for(let i=0;i<y.length;i+=1){let r=y[i];t.roundLengths&&(r=Math.floor(r)),y[i]<=e.virtualSize-n&&M.push(r)}y=M,Math.floor(e.virtualSize-n)-Math.floor(y[y.length-1])>1&&y.push(e.virtualSize-n)}if(0===y.length&&(y=[0]),0!==t.spaceBetween&&(e.isHorizontal()?o?h.filter(w).css({marginLeft:`${N}px`}):h.filter(w).css({marginRight:`${N}px`}):h.filter(w).css({marginBottom:`${N}px`})),t.centeredSlides&&t.centeredSlidesBounds){let e=0;E.forEach(r=>{e+=r+(t.spaceBetween?t.spaceBetween:0)}),e-=t.spaceBetween;const r=e-n;y=y.map(e=>e<0?-A:e>r?r+T:e)}if(t.centerInsufficientSlides){let e=0;if(E.forEach(r=>{e+=r+(t.spaceBetween?t.spaceBetween:0)}),e-=t.spaceBetween,e<n){const t=(n-e)/2;y.forEach((e,r)=>{y[r]=e-t}),_.forEach((e,r)=>{_[r]=e+t})}}v.extend(e,{slides:h,snapGrid:y,slidesGrid:_,slidesSizesGrid:E}),m!==f&&e.emit("slidesLengthChange"),y.length!==O&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),_.length!==S&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()},updateAutoHeight:function(e){const t=this,r=[];let i,n=0;if("number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed),"auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)t.visibleSlides.each((e,t)=>{r.push(t)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const e=t.activeIndex+i;if(e>t.slides.length)break;r.push(t.slides.eq(e)[0])}else r.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i<r.length;i+=1)if(void 0!==r[i]){const e=r[i].offsetHeight;n=e>n?e:n}n&&t.$wrapperEl.css("height",`${n}px`)},updateSlidesOffset:function(){const e=this,t=e.slides;for(let i=0;i<t.length;i+=1)t[i].swiperSlideOffset=e.isHorizontal()?t[i].offsetLeft:t[i].offsetTop},updateSlidesProgress:function(e=this&&this.translate||0){const t=this,r=t.params,{slides:n,rtlTranslate:o}=t;if(0===n.length)return;void 0===n[0].swiperSlideOffset&&t.updateSlidesOffset();let c=-e;o&&(c=e),n.removeClass(r.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let i=0;i<n.length;i+=1){const e=n[i],l=(c+(r.centeredSlides?t.minTranslate():0)-e.swiperSlideOffset)/(e.swiperSlideSize+r.spaceBetween);if(r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight){const o=-(c-e.swiperSlideOffset),l=o+t.slidesSizesGrid[i];(o>=0&&o<t.size-1||l>1&&l<=t.size||o<=0&&l>=t.size)&&(t.visibleSlides.push(e),t.visibleSlidesIndexes.push(i),n.eq(i).addClass(r.slideVisibleClass))}e.progress=o?-l:l}t.visibleSlides=h(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const r=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*r||0}const r=t.params,n=t.maxTranslate()-t.minTranslate();
vendor: 4,090 bytes, line 2
2let{progress:progress,isBeginning:o,isEnd:c}=t;const l=o,d=c;0===n?(progress=0,o=!0,c=!0):(progress=(e-t.minTranslate())/n,o=progress<=0,c=progress>=1),v.extend(t,{progress:progress,isBeginning:o,isEnd:c}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),o&&!l&&t.emit("reachBeginning toEdge"),c&&!d&&t.emit("reachEnd toEdge"),(l&&!o||d&&!c)&&t.emit("fromEdge"),t.emit("progress",progress)},updateSlidesClasses:function(){const e=this,{slides:t,params:r,$wrapperEl:n,activeIndex:o,realIndex:c}=e,l=e.virtual&&r.virtual.enabled;let d;t.removeClass(`${r.slideActiveClass} ${r.slideNextClass} ${r.slidePrevClass} ${r.slideDuplicateActiveClass} ${r.slideDuplicateNextClass} ${r.slideDuplicatePrevClass}`),d=l?e.$wrapperEl.find(`.${r.slideClass}[data-swiper-slide-index="${o}"]`):t.eq(o),d.addClass(r.slideActiveClass),r.loop&&(d.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${c}"]`).addClass(r.slideDuplicateActiveClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${c}"]`).addClass(r.slideDuplicateActiveClass));let f=d.nextAll(`.${r.slideClass}`).eq(0).addClass(r.slideNextClass);r.loop&&0===f.length&&(f=t.eq(0),f.addClass(r.slideNextClass));let h=d.prevAll(`.${r.slideClass}`).eq(0).addClass(r.slidePrevClass);r.loop&&0===h.length&&(h=t.eq(-1),h.addClass(r.slidePrevClass)),r.loop&&(f.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicateNextClass),h.hasClass(r.slideDuplicateClass)?n.children(`.${r.slideClass}:not(.${r.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass):n.children(`.${r.slideClass}.${r.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(r.slideDuplicatePrevClass))},updateActiveIndex:function(e){const t=this,r=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:n,snapGrid:o,params:c,activeIndex:l,realIndex:d,snapIndex:f}=t;let h,m=e;if(void 0===m){for(let i=0;i<n.length;i+=1)void 0!==n[i+1]?r>=n[i]&&r<n[i+1]-(n[i+1]-n[i])/2?m=i:r>=n[i]&&r<n[i+1]&&(m=i+1):r>=n[i]&&(m=i);c.normalizeSlideIndex&&(m<0||void 0===m)&&(m=0)}if(o.indexOf(r)>=0)h=o.indexOf(r);else{const e=Math.min(c.slidesPerGroupSkip,m);h=e+Math.floor((m-e)/c.slidesPerGroup)}if(h>=o.length&&(h=o.length-1),m===l)return void(h!==f&&(t.snapIndex=h,t.emit("snapIndexChange")));const y=parseInt(t.slides.eq(m).attr("data-swiper-slide-index")||m,10);v.extend(t,{snapIndex:h,realIndex:y,previousIndex:l,activeIndex:m}),t.emit("activeIndexChange"),t.emit("snapIndexChange"),d!==y&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")},updateClickedSlide:function(e){const t=this,r=t.params,n=h(e.target).closest(`.${r.slideClass}`)[0];let o=!1;if(n)for(let i=0;i<t.slides.length;i+=1)t.slides[i]===n&&(o=!0);if(!n||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=n,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(h(n).attr("data-swiper-slide-index"),10):t.clickedIndex=h(n).index(),r.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var A={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:r,translate:n,$wrapperEl:o}=this;if(t.virtualTranslate)return r?-n:n;if(t.cssMode)return n;let c=v.getTranslate(o[0],e);return r&&(c=-c),c||0},setTranslate:function(e,t){const r=this,{rtlTranslate:n,params:o,$wrapperEl:c,wrapperEl:l,progress:progress}=r;let d,f=0,h=0;r.isHorizontal()?f=n?-e:e:h=e,o.roundLengths&&(f=Math.floor(f),h=Math.floor(h)),o.cssMode?l[r.isHorizontal()?"scrollLeft":"scrollTop"]=r.isHorizontal()?-f:-h:o.virtualTranslate||c.transform(`translate3d(${f}px, ${h}
2px, 0px)`),r.previousTranslate=r.translate,r.translate=r.isHorizontal()?f:h;const m=r.maxTranslate()-r.minTranslate();d=0===m?0:(e-r.minTranslate())/m,d!==progress&&r.updateProgress(e),r.emit("setTranslate",r.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e=0,t=this.params.speed,r=!0,n=!0,o){const c=this,{params:l,wrapperEl:d}=c;if(c.animating&&l.preventInteractionOnTransition)return!1;const f=c.minTranslate(),h=c.maxTranslate();let m;if(m=n&&e>f?f:n&&e<h?h:e,c.updateProgress(m),l.cssMode){const e=c.isHorizontal();return 0===t?d[e?"scrollLeft":"scrollTop"]=-m:d.scrollTo?d.scrollTo({[e?"left":"top"]:-m,behavior:"smooth"}):d[e?"scrollLeft":"scrollTop"]=-m,!0}return 0===t?(c.setTransition(0),c.setTranslate(m),r&&(c.emit("beforeTransitionStart",t,o),c.emit("transitionEnd"))):(c.setTransition(t),c.setTranslate(m),r&&(c.emit("beforeTransitionStart",t,o),c.emit("transitionStart")),c.animating||(c.animating=!0,c.onTranslateToWrapperTransitionEnd||(c.onTranslateToWrapperTransitionEnd=function(e){c&&!c.destroyed&&e.target===this&&(c.$wrapperEl[0].removeEventListener("transitionend",c.onTranslateToWrapperTransitionEnd),c.$wrapperEl[0].removeEventListener("webkitTransitionEnd",c.onTranslateToWrapperTransitionEnd),c.onTranslateToWrapperTransitionEnd=null,delete c.onTranslateToWrapperTransitionEnd,r&&c.emit("transitionEnd"))}),c.$wrapperEl[0].addEventListener("transitionend",c.onTranslateToWrapperTransitionEnd),c.$wrapperEl[0].addEventListener("webkitTransitionEnd",c.onTranslateToWrapperTransitionEnd))),!0}};var T={setTransition:function(e,t){const r=this;r.params.cssMode||r.$wrapperEl.transition(e),r.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const r=this,{activeIndex:n,params:o,previousIndex:c}=r;if(o.cssMode)return;o.autoHeight&&r.updateAutoHeight();let l=t;if(l||(l=n>c?"next":n<c?"prev":"reset"),r.emit("transitionStart"),e&&n!==c){if("reset"===l)return void r.emit("slideResetTransitionStart");r.emit("slideChangeTransitionStart"),"next"===l?r.emit("slideNextTransitionStart"):r.emit("slidePrevTransitionStart")}},transitionEnd:function(e=!0,t){const r=this,{activeIndex:n,previousIndex:o,params:c}=r;if(r.animating=!1,c.cssMode)return;r.setTransition(0);let l=t;if(l||(l=n>o?"next":n<o?"prev":"reset"),r.emit("transitionEnd"),e&&n!==o){if("reset"===l)return void r.emit("slideResetTransitionEnd");r.emit("slideChangeTransitionEnd"),"next"===l?r.emit("slideNextTransitionEnd"):r.emit("slidePrevTransitionEnd")}}};var O={slideTo:function(e=0,t=this.params.speed,r=!0,n){const o=this;let c=e;c<0&&(c=0);const{params:l,snapGrid:d,slidesGrid:f,previousIndex:h,activeIndex:m,rtlTranslate:y,wrapperEl:v}=o;if(o.animating&&l.preventInteractionOnTransition)return!1;const _=Math.min(o.params.slidesPerGroupSkip,c);let E=_+Math.floor((c-_)/o.params.slidesPerGroup);E>=d.length&&(E=d.length-1),(m||l.initialSlide||0)===(h||0)&&r&&o.emit("beforeSlideChangeStart");const w=-d[E];if(o.updateProgress(w),l.normalizeSlideIndex)for(let i=0;i<f.length;i+=1)-Math.floor(100*w)>=Math.floor(100*f[i])&&(c=i);if(o.initialized&&c!==m){if(!o.allowSlideNext&&w<o.translate&&w<o.minTranslate())return!1;if(!o.allowSlidePrev&&w>o.translate&&w>o.maxTranslate()&&(m||0)!==c)return!1}let A;if(A=c>m?"next":c<m?"prev":"reset",y&&-w===o.translate||!y&&w===o.translate)return o.updateActiveIndex(c),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(w),"reset"!==A&&(o.transitionStart(r,A),o.transitionEnd(r,A)),!1;if(l.cssMode){const e=o.isHorizontal();let r=-w;return y&&(r=v.scrollWidth-v.offsetWidth-r),0===t?v[e?"scrollLeft":"scrollTop"]=r:v.scrollTo?v.scrollTo({[e?"left":"top"]:r,behavior:"smooth"}):v[e?"scrollLeft":"scrollTop"]=r,!0}return 0===t?(o.setTransition(0),o.setTranslate(w),o.updateActiveIndex(c),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,n),o.transitionStart(r,A),o.transitionEnd(r,A)):(o.setTransition(t),o.setTranslate(w),o.updateActiveIndex(c),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,n),o.transitionStart(r,A),o.animating||(o.animating=!0,o.onSlideToWrapperTransitionEnd||(o.onSlideToWrapperTransitionEnd=function(e){o&&!o.destroyed&&e.target===this&&(o.$wrapperEl[0].removeEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].removeEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd),o.onSlideToWrapperTransitionEnd=null,delete o.onSlideToWrapperTransitionEnd,o.transitionEnd(r,A))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e=0,t=this.params.speed,r=!0,n){const o=this;let c=e;return o.params.loop&&(c+=o.loopedSlides),o.slideTo(c,t,r,n)},slideNext:function(e=this.params.speed,t=!0,r){const n=this,{params:o,animating:c}=n,l=n.activeIndex<o.slidesPerGroupSkip?1:o.slidesPerGroup;if(o.loop){if(c)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}return n.slideTo(n.activeIndex+l,e,t,r)},slidePrev:function(e=this.params.speed,t=!0,r){const n=this,{params:o,animating:c,snapGrid:l,slidesGrid:d,rtlTranslate:f}=n;if(o.loop){if(c)return!1;n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft}function h(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const m=h(f?n.translate:-n.translate),y=l.map(e=>h(e));d.map(e=>h(e)),l[y.indexOf(m)];let v,_=l[y.indexOf(m)-1];
2return void 0===_&&o.cssMode&&l.forEach(e=>{!_&&m>=e&&(_=e)}),void 0!==_&&(v=d.indexOf(_),v<0&&(v=n.activeIndex-1)),n.slideTo(v,e,t,r)},slideReset:function(e=this.params.speed,t=!0,r){return this.slideTo(this.activeIndex,e,t,r)},slideToClosest:function(e=this.params.speed,t=!0,r,n=.5){const o=this;let c=o.activeIndex;const l=Math.min(o.params.slidesPerGroupSkip,c),d=l+Math.floor((c-l)/o.params.slidesPerGroup),f=o.rtlTranslate?o.translate:-o.translate;if(f>=o.snapGrid[d]){const e=o.snapGrid[d];f-e>(o.snapGrid[d+1]-e)*n&&(c+=o.params.slidesPerGroup)}else{const e=o.snapGrid[d-1];f-e<=(o.snapGrid[d]-e)*n&&(c-=o.params.slidesPerGroup)}return c=Math.max(c,0),c=Math.min(c,o.slidesGrid.length-1),o.slideTo(c,e,t,r)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:r}=e,n="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let o,c=e.clickedIndex;if(t.loop){if(e.animating)return;o=parseInt(h(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?c<e.loopedSlides-n/2||c>e.slides.length-e.loopedSlides+n/2?(e.loopFix(),c=r.children(`.${t.slideClass}[data-swiper-slide-index="${o}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),v.nextTick(()=>{e.slideTo(c)})):e.slideTo(c):c>e.slides.length-n?(e.loopFix(),c=r.children(`.${t.slideClass}[data-swiper-slide-index="${o}"]:not(.${t.slideDuplicateClass})`).eq(0).index(),v.nextTick(()=>{e.slideTo(c)})):e.slideTo(c)}else e.slideTo(c)}};var S={loopCreate:function(){const e=this,{params:t,$wrapperEl:r}=e;r.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let n=r.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const e=t.slidesPerGroup-n.length%t.slidesPerGroup;if(e!==t.slidesPerGroup){for(let i=0;i<e;i+=1){const e=h(c.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);r.append(e)}n=r.children(`.${t.slideClass}`)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=n.length),e.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>n.length&&(e.loopedSlides=n.length);const o=[],l=[];n.each((t,r)=>{const c=h(r);t<e.loopedSlides&&l.push(r),t<n.length&&t>=n.length-e.loopedSlides&&o.push(r),c.attr("data-swiper-slide-index",t)});for(let i=0;i<l.length;i+=1)r.append(h(l[i].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let i=o.length-1;i>=0;i-=1)r.prepend(h(o[i].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:r,loopedSlides:n,allowSlidePrev:o,allowSlideNext:c,snapGrid:l,rtlTranslate:d}=e;let f;e.allowSlidePrev=!0,e.allowSlideNext=!0;const h=-l[t]-e.getTranslate();if(t<n){f=r.length-3*n+t,f+=n;e.slideTo(f,0,!1,!0)&&0!==h&&e.setTranslate((d?-e.translate:e.translate)-h)}else if(t>=r.length-n){f=-r.length+t+n,f+=n;e.slideTo(f,0,!1,!0)&&0!==h&&e.setTranslate((d?-e.translate:e.translate)-h)}e.allowSlidePrev=o,e.allowSlideNext=c,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:r}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),r.removeAttr("data-swiper-slide-index")}};var I={setGrabCursor:function(e){const t=this;if(_.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const r=t.el;r.style.cursor="move",r.style.cursor=e?"-webkit-grabbing":"-webkit-grab",r.style.cursor=e?"-moz-grabbin":"-moz-grab",r.style.cursor=e?"grabbing":"grab"},unsetGrabCursor:function(){const e=this;_.touch||e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.el.style.cursor="")}};var C={appendSlide:function(e){const t=this,{$wrapperEl:r,params:n}=t;if(n.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let i=0;i<e.length;i+=1)e[i]&&r.append(e[i]);else r.append(e);n.loop&&t.loopCreate(),n.observer&&_.observer||t.update()},prependSlide:function(e){const t=this,{params:r,$wrapperEl:n,activeIndex:o}=t;r.loop&&t.loopDestroy();let c=o+1;
vendor: 6,779 bytes, line 2
2if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)e[i]&&n.prepend(e[i]);c=o+e.length}else n.prepend(e);r.loop&&t.loopCreate(),r.observer&&_.observer||t.update(),t.slideTo(c,0,!1)},addSlide:function(e,t){const r=this,{$wrapperEl:n,params:o,activeIndex:c}=r;let l=c;o.loop&&(l-=r.loopedSlides,r.loopDestroy(),r.slides=n.children(`.${o.slideClass}`));const d=r.slides.length;if(e<=0)return void r.prependSlide(t);if(e>=d)return void r.appendSlide(t);let f=l>e?l+1:l;const h=[];for(let i=d-1;i>=e;i-=1){const e=r.slides.eq(i);e.remove(),h.unshift(e)}if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)t[i]&&n.append(t[i]);f=l>e?l+t.length:l}else n.append(t);for(let i=0;i<h.length;i+=1)n.append(h[i]);o.loop&&r.loopCreate(),o.observer&&_.observer||r.update(),o.loop?r.slideTo(f+r.loopedSlides,0,!1):r.slideTo(f,0,!1)},removeSlide:function(e){const t=this,{params:r,$wrapperEl:n,activeIndex:o}=t;let c=o;r.loop&&(c-=t.loopedSlides,t.loopDestroy(),t.slides=n.children(`.${r.slideClass}`));let l,d=c;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)l=e[i],t.slides[l]&&t.slides.eq(l).remove(),l<d&&(d-=1);d=Math.max(d,0)}else l=e,t.slides[l]&&t.slides.eq(l).remove(),l<d&&(d-=1),d=Math.max(d,0);r.loop&&t.loopCreate(),r.observer&&_.observer||t.update(),r.loop?t.slideTo(d+t.loopedSlides,0,!1):t.slideTo(d,0,!1)},removeAllSlides:function(){const e=this,t=[];for(let i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}};const N=function(){const e=d.navigator.platform,t=d.navigator.userAgent,r={ios:!1,android:!1,androidChrome:!1,desktop:!1,iphone:!1,ipod:!1,ipad:!1,edge:!1,ie:!1,firefox:!1,macos:!1,windows:!1,cordova:!(!d.cordova&&!d.phonegap),phonegap:!(!d.cordova&&!d.phonegap),electron:!1},n=d.screen.width,o=d.screen.height,c=t.match(/(Android);?[\s\/]+([\d.]+)?/);let l=t.match(/(iPad).*OS\s([\d_]+)/);const f=t.match(/(iPod)(.*OS\s([\d_]+))?/),h=!l&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0,y=t.indexOf("Edge/")>=0,v=t.indexOf("Gecko/")>=0&&t.indexOf("Firefox/")>=0,E="Win32"===e,w=t.toLowerCase().indexOf("electron")>=0;let A="MacIntel"===e;return!l&&A&&_.touch&&(1024===n&&1366===o||834===n&&1194===o||834===n&&1112===o||768===n&&1024===o)&&(l=t.match(/(Version)\/([\d.]+)/),A=!1),r.ie=m,r.edge=y,r.firefox=v,c&&!E&&(r.os="android",r.osVersion=c[2],r.android=!0,r.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(l||h||f)&&(r.os="ios",r.ios=!0),h&&!f&&(r.osVersion=h[2].replace(/_/g,"."),r.iphone=!0),l&&(r.osVersion=l[2].replace(/_/g,"."),r.ipad=!0),f&&(r.osVersion=f[3]?f[3].replace(/_/g,"."):null,r.ipod=!0),r.ios&&r.osVersion&&t.indexOf("Version/")>=0&&"10"===r.osVersion.split(".")[0]&&(r.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),r.webView=!(!(h||l||f)||!t.match(/.*AppleWebKit(?!.*Safari)/i)&&!d.navigator.standalone)||d.matchMedia&&d.matchMedia("(display-mode: standalone)").matches,r.webview=r.webView,r.standalone=r.webView,r.desktop=!(r.ios||r.android)||w,r.desktop&&(r.electron=w,r.macos=A,r.windows=E,r.macos&&(r.os="macos"),r.windows&&(r.os="windows")),r.pixelRatio=d.devicePixelRatio||1,r}();function P(e){const t=this,data=t.touchEventsData,{params:r,touches:n}=t;if(t.animating&&r.preventInteractionOnTransition)return;let o=e;o.originalEvent&&(o=o.originalEvent);const l=h(o.target);if("wrapper"===r.touchEventsTarget&&!l.closest(t.wrapperEl).length)return;if(data.isTouchEvent="touchstart"===o.type,!data.isTouchEvent&&"which"in o&&3===o.which)return;if(!data.isTouchEvent&&"button"in o&&o.button>0)return;if(data.isTouched&&data.isMoved)return;if(r.noSwiping&&l.closest(r.noSwipingSelector?r.noSwipingSelector:`.${r.noSwipingClass}`)[0])return void(t.allowClick=!0);if(r.swipeHandler&&!l.closest(r.swipeHandler)[0])return;n.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,n.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;const f=n.currentX,m=n.currentY,y=r.edgeSwipeDetection||r.iOSEdgeSwipeDetection,_=r.edgeSwipeThreshold||r.iOSEdgeSwipeThreshold;if(!y||!(f<=_||f>=d.screen.width-_)){if(v.extend(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=f,n.startY=m,data.touchStartTime=v.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,r.threshold>0&&(data.allowThresholdMove=!1),"touchstart"!==o.type){let e=!0;l.is(data.formElements)&&(e=!1),c.activeElement&&h(c.activeElement).is(data.formElements)&&c.activeElement!==l[0]&&c.activeElement.blur();const n=e&&t.allowTouchMove&&r.touchStartPreventDefault;(r.touchStartForcePreventDefault||n)&&o.preventDefault()}t.emit("touchStart",o)}}function R(e){const t=this,data=t.touchEventsData,{params:r,touches:n,rtlTranslate:o}=t;let l=e;if(l.originalEvent&&(l=l.originalEvent),!data.isTouched)return void(data.startMoving&&data.isScrolling&&t.emit("touchMoveOpposite",l));if(data.isTouchEvent&&"touchmove"!==l.type)return;const d="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),f="touchmove"===l.type?d.pageX:l.pageX,m="touchmove"===l.type?d.pageY:l.pageY;if(l.preventedByNestedSwiper)return n.startX=f,void(n.startY=m);if(!t.allowTouchMove)return t.allowClick=!1,void(data.isTouched&&(v.extend(n,{startX:f,startY:m,currentX:f,currentY:m}),data.touchStartTime=v.now()));if(data.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(t.isVertical()){if(m<n.startY&&t.translate<=t.maxTranslate()||m>n.startY&&t.translate>=t.minTranslate())return data.isTouched=!1,void(data.isMoved=!1)}else if(f<n.startX&&t.translate<=t.maxTranslate()||f>n.startX&&t.translate>=t.minTranslate())return;if(data.isTouchEvent&&c.activeElement&&l.target===c.activeElement&&h(l.target).is(data.formElements))return data.isMoved=!0,void(t.allowClick=!1);if(data.allowTouchCallbacks&&t.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;n.currentX=f,n.currentY=m;const y=n.currentX-n.startX,_=n.currentY-n.startY;if(t.params.threshold&&Math.sqrt(y**2+_**2)<t.params.threshold)return;if(void 0===data.isScrolling){let e;t.isHorizontal()&&n.currentY===n.startY||t.isVertical()&&n.currentX===n.startX?data.isScrolling=!1:y*y+_*_>=25&&(e=180*Math.atan2(Math.abs(_),Math.abs(y))/Math.PI,data.isScrolling=t.isHorizontal()?e>r.touchAngle:90-e>r.touchAngle)}if(data.isScrolling&&t.emit("touchMoveOpposite",l),void 0===data.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(data.startMoving=!0)),data.isScrolling)return void(data.isTouched=!1);if(!data.startMoving)return;t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation(),data.isMoved||(r.loop&&t.loopFix(),data.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),data.allowMomentumBounce
vendor: 1,086 bytes, line 2
2=!1,!r.grabCursor||!0!==t.allowSlideNext&&!0!==t.allowSlidePrev||t.setGrabCursor(!0),t.emit("sliderFirstMove",l)),t.emit("sliderMove",l),data.isMoved=!0;let E=t.isHorizontal()?y:_;n.diff=E,E*=r.touchRatio,o&&(E=-E),t.swipeDirection=E>0?"prev":"next",data.currentTranslate=E+data.startTranslate;let w=!0,A=r.resistanceRatio;if(r.touchReleaseOnEdges&&(A=0),E>0&&data.currentTranslate>t.minTranslate()?(w=!1,r.resistance&&(data.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+data.startTranslate+E)**A)):E<0&&data.currentTranslate<t.maxTranslate()&&(w=!1,r.resistance&&(data.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-data.startTranslate-E)**A)),w&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&"next"===t.swipeDirection&&data.currentTranslate<data.startTranslate&&(data.currentTranslate=data.startTranslate),!t.allowSlidePrev&&"prev"===t.swipeDirection&&data.currentTranslate>data.startTranslate&&(data.currentTranslate=data.startTranslate),r.threshold>0){if(!(Math.abs(E)>r.threshold||data.allowThresholdMove))return void(data.currentTranslate=data.startTranslate);
2if(!data.allowThresholdMove)return data.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,data.currentTranslate=data.startTranslate,void(n.diff=t.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}r.followFinger&&!r.cssMode&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&(0===data.velocities.length&&data.velocities.push({position:n[t.isHorizontal()?"startX":"startY"],time:data.touchStartTime}),data.velocities.push({position:n[t.isHorizontal()?"currentX":"currentY"],time:v.now()})),t.updateProgress(data.currentTranslate),t.setTranslate(data.currentTranslate))}function L(e){const t=this,data=t.touchEventsData,{params:r,touches:n,rtlTranslate:o,$wrapperEl:c,slidesGrid:l,snapGrid:d}=t;let f=e;if(f.originalEvent&&(f=f.originalEvent),data.allowTouchCallbacks&&t.emit("touchEnd",f),data.allowTouchCallbacks=!1,!data.isTouched)return data.isMoved&&r.grabCursor&&t.setGrabCursor(!1),data.isMoved=!1,void(data.startMoving=!1);r.grabCursor&&data.isMoved&&data.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const h=v.now(),m=h-data.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(f),t.emit("tap click",f),m<300&&h-data.lastClickTime<300&&t.emit("doubleTap doubleClick",f)),data.lastClickTime=v.now(),v.nextTick(()=>{t.destroyed||(t.allowClick=!0)}),!data.isTouched||!data.isMoved||!t.swipeDirection||0===n.diff||data.currentTranslate===data.startTranslate)return data.isTouched=!1,data.isMoved=!1,void(data.startMoving=!1);let y;if(data.isTouched=!1,data.isMoved=!1,data.startMoving=!1,y=r.followFinger?o?t.translate:-t.translate:-data.currentTranslate,r.cssMode)return;if(r.freeMode){if(y<-t.minTranslate())return void t.slideTo(t.activeIndex);if(y>-t.maxTranslate())return void(t.slides.length<d.length?t.slideTo(d.length-1):t.slideTo(t.slides.length-1));if(r.freeModeMomentum){if(data.velocities.length>1){const e=data.velocities.pop(),n=data.velocities.pop(),o=e.position-n.position,time=e.time-n.time;t.velocity=o/time,t.velocity/=2,Math.abs(t.velocity)<r.freeModeMinimumVelocity&&(t.velocity=0),(time>150||v.now()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,data.velocities.length=0;let e=1e3*r.freeModeMomentumRatio;const n=t.velocity*e;let l=t.translate+n;o&&(l=-l);let f,h=!1;const m=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;let y;if(l<t.maxTranslate())r.freeModeMomentumBounce?(l+t.maxTranslate()<-m&&(l=t.maxTranslate()-m),f=t.maxTranslate(),h=!0,data.allowMomentumBounce=!0):l=t.maxTranslate(),r.loop&&r.centeredSlides&&(y=!0);else if(l>t.minTranslate())r.freeModeMomentumBounce?(l-t.minTranslate()>m&&(l=t.minTranslate()+m),f=t.minTranslate(),h=!0,data.allowMomentumBounce=!0):l=t.minTranslate(),r.loop&&r.centeredSlides&&(y=!0);else if(r.freeModeSticky){let e;for(let t=0;t<d.length;t+=1)if(d[t]>-l){e=t;break}l=Math.abs(d[e]-l)<Math.abs(d[e-1]-l)||"next"===t.swipeDirection?d[e]:d[e-1],l=-l}if(y&&t.once("transitionEnd",()=>{t.loopFix()}),0!==t.velocity){if(e=o?Math.abs((-l-t.translate)/t.velocity):Math.abs((l-t.translate)/t.velocity),r.freeModeSticky){const n=Math.abs((o?-l:l)-t.translate),c=t.slidesSizesGrid[t.activeIndex];e=n<c?r.speed:n<2*c?1.5*r.speed:2.5*r.speed}}else if(r.freeModeSticky)return void t.slideToClosest();r.freeModeMomentumBounce&&h?(t.updateProgress(f),t.setTransition(e),t.setTranslate(l),t.transitionStart(!0,t.swipeDirection),t.animating=!0,c.transitionEnd(()=>{t&&!t.destroyed&&data.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(r.speed),setTimeout(()=>{t.setTranslate(f),c.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(t.updateProgress(l),t.setTransition(e),t.setTranslate(l),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,c.transitionEnd(()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(l),t.updateActiveIndex(),t.updateSlidesClasses()}else if(r.freeModeSticky)return void t.slideToClosest();return void((!r.freeModeMomentum||m>=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}let _=0,E=t.slidesSizesGrid[0];for(let i=0;i<l.length;i+=i<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=i<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==l[i+e]?y>=l[i]&&y<l[i+e]&&(_=i,E=l[i+e]-l[i]):y>=l[i]&&(_=i,E=l[l.length-1]-l[l.length-2])}const w=(y-l[_])/E,A=_<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(m>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=r.longSwipesRatio?t.slideTo(_+A):t.slideTo(_)),"prev"===t.swipeDirection&&(w>1-r.longSwipesRatio?t.slideTo(_+A):t.slideTo(_))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(f.target===t.navigation.nextEl||f.target===t.navigation.prevEl)?f.target===t.navigation.nextEl?t.slideTo(_+A):t.slideTo(_):("next"===t.swipeDirection&&t.slideTo(_+A),"prev"===t.swipeDirection&&t.slideTo(_))}}function D(){const e=this,{params:t,el:r}=e;if(r&&0===r.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:o,snapGrid:c}=e;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=o,e.allowSlideNext=n,e.params.watchOverflow&&c!==e.snapGrid&&e.checkOverflow()}function x(e){const t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function k(){const e=this,{wrapperEl:t,rtlTranslate:r}=e;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=r?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const o=e.maxTranslate()-e.minTranslate();n=0===o?0:(e.translate-e.minTranslate())/o,n!==e.progress&&e.updateProgress(r?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let M=!1;function F(){}var U={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesB
vendor: 5,042 bytes, line 2
2ounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0};const j={update:w,translate:A,transition:T,slide:O,loop:S,grabCursor:I,manipulation:C,events:{attachEvents:function(){const e=this,{params:t,touchEvents:r,el:n,wrapperEl:o}=e;e.onTouchStart=P.bind(e),e.onTouchMove=R.bind(e),e.onTouchEnd=L.bind(e),t.cssMode&&(e.onScroll=k.bind(e)),e.onClick=x.bind(e);const l=!!t.nested;if(!_.touch&&_.pointerEvents)n.addEventListener(r.start,e.onTouchStart,!1),c.addEventListener(r.move,e.onTouchMove,l),c.addEventListener(r.end,e.onTouchEnd,!1);else{if(_.touch){const o=!("touchstart"!==r.start||!_.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.addEventListener(r.start,e.onTouchStart,o),n.addEventListener(r.move,e.onTouchMove,_.passiveListener?{passive:!1,capture:l}:l),n.addEventListener(r.end,e.onTouchEnd,o),r.cancel&&n.addEventListener(r.cancel,e.onTouchEnd,o),M||(c.addEventListener("touchstart",F),M=!0)}(t.simulateTouch&&!N.ios&&!N.android||t.simulateTouch&&!_.touch&&N.ios)&&(n.addEventListener("mousedown",e.onTouchStart,!1),c.addEventListener("mousemove",e.onTouchMove,l),c.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&n.addEventListener("click",e.onClick,!0),t.cssMode&&o.addEventListener("scroll",e.onScroll),t.updateOnWindowResize?e.on(N.ios||N.android?"resize orientationchange observerUpdate":"resize observerUpdate",D,!0):e.on("observerUpdate",D,!0)},detachEvents:function(){const e=this,{params:t,touchEvents:r,el:n,wrapperEl:o}=e,l=!!t.nested;if(!_.touch&&_.pointerEvents)n.removeEventListener(r.start,e.onTouchStart,!1),c.removeEventListener(r.move,e.onTouchMove,l),c.removeEventListener(r.end,e.onTouchEnd,!1);else{if(_.touch){const o=!("onTouchStart"!==r.start||!_.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};n.removeEventListener(r.start,e.onTouchStart,o),n.removeEventListener(r.move,e.onTouchMove,l),n.removeEventListener(r.end,e.onTouchEnd,o),r.cancel&&n.removeEventListener(r.cancel,e.onTouchEnd,o)}(t.simulateTouch&&!N.ios&&!N.android||t.simulateTouch&&!_.touch&&N.ios)&&(n.removeEventListener("mousedown",e.onTouchStart,!1),c.removeEventListener("mousemove",e.onTouchMove,l),c.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&n.removeEventListener("click",e.onClick,!0),t.cssMode&&o.removeEventListener("scroll",e.onScroll),e.off(N.ios||N.android?"resize orientationchange observerUpdate":"resize observerUpdate",D)}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:r,loopedSlides:n=0,params:o,$el:c}=e,l=o.breakpoints;if(!l||l&&0===Object.keys(l).length)return;const d=e.getBreakpoint(l);if(d&&e.currentBreakpoint!==d){const f=d in l?l[d]:void 0;f&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(param=>{const e=f[param];void 0!==e&&(f[param]="slidesPerView"!==param||"AUTO"!==e&&"auto"!==e?"slidesPerView"===param?parseFloat(e):parseInt(e,10):"auto")});const h=f||e.originalParams,m=o.slidesPerColumn>1,y=h.slidesPerColumn>1;m&&!y?c.removeClass(`${o.containerModifierClass}multirow ${o.containerModifierClass}multirow-column`):!m&&y&&(c.addClass(`${o.containerModifierClass}multirow`),"column"===h.slidesPerColumnFill&&c.addClass(`${o.containerModifierClass}multirow-column`));const _=h.direction&&h.direction!==o.direction,E=o.loop&&(h.slidesPerView!==o.slidesPerView||_);_&&r&&e.changeDirection(),v.extend(e.params,h),v.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=d,E&&r&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",h)}}
2,getBreakpoint:function(e){if(!e)return;let t=!1;const r=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:d.innerHeight*t,point:e}}return{value:e,point:e}});r.sort((a,b)=>parseInt(a.value,10)-parseInt(b.value,10));for(let i=0;i<r.length;i+=1){const{point:e,value:n}=r[i];n<=d.innerWidth&&(t=e)}return t||"max"}},checkOverflow:{checkOverflow:function(){const e=this,t=e.params,r=e.isLocked,n=e.slides.length>0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&n?e.isLocked=n<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,r!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),r&&r!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:r,$el:n}=this,o=[];o.push("initialized"),o.push(t.direction),t.freeMode&&o.push("free-mode"),t.autoHeight&&o.push("autoheight"),r&&o.push("rtl"),t.slidesPerColumn>1&&(o.push("multirow"),"column"===t.slidesPerColumnFill&&o.push("multirow-column")),N.android&&o.push("android"),N.ios&&o.push("ios"),t.cssMode&&o.push("css-mode"),o.forEach(r=>{e.push(t.containerModifierClass+r)}),n.addClass(e.join(" "))},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,r,n,o,c){let image;function l(){c&&c()}h(e).parent("picture")[0]||e.complete&&o?l():t?(image=new d.Image,image.onload=l,image.onerror=l,n&&(image.sizes=n),r&&(image.srcset=r),t&&(image.src=t)):l()},preloadImages:function(){const e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(let i=0;i<e.imagesToLoad.length;i+=1){const r=e.imagesToLoad[i];e.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,t)}}}},B={};
2class H extends E{constructor(...e){let t,r;1===e.length&&e[0].constructor&&e[0].constructor===Object?r=e[0]:[t,r]=e,r||(r={}),r=v.extend({},r),t&&!r.el&&(r.el=t),super(r),Object.keys(j).forEach(e=>{Object.keys(j[e]).forEach(t=>{H.prototype[t]||(H.prototype[t]=j[e][t])})});const n=this;void 0===n.modules&&(n.modules={}),Object.keys(n.modules).forEach(e=>{const t=n.modules[e];if(t.params){const e=Object.keys(t.params)[0],n=t.params[e];if("object"!=typeof n||null===n)return;if(!(e in r)||!("enabled"in n))return;!0===r[e]&&(r[e]={enabled:!0}),"object"!=typeof r[e]||"enabled"in r[e]||(r[e].enabled=!0),r[e]||(r[e]={enabled:!1})}});const o=v.extend({},U);n.useModulesParams(o),n.params=v.extend({},o,B,r),n.originalParams=v.extend({},n.params),n.passedParams=v.extend({},r),n.$=h;const c=h(n.params.el);if(t=c[0],!t)return;if(c.length>1){const e=[];return c.each((t,n)=>{const o=v.extend({},r,{el:n});e.push(new H(o))}),e}let l;return t.swiper=n,c.data("swiper",n),t&&t.shadowRoot&&t.shadowRoot.querySelector?(l=h(t.shadowRoot.querySelector(`.${n.params.wrapperClass}`)),l.children=e=>c.children(e)):l=c.children(`.${n.params.wrapperClass}`),v.extend(n,{$el:c,el:t,$wrapperEl:l,wrapperEl:l[0],classNames:[],slides:h(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===n.params.direction,isVertical:()=>"vertical"===n.params.direction,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===n.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===l.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"];let t=["mousedown","mousemove","mouseup"];return _.pointerEvents&&(t=["pointerdown","pointermove","pointerup"]),n.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},n.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},_.touch||!n.params.simulateTouch?n.touchEventsTouch:n.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:v.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:n.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),n.useModules(),n.params.init&&n.init(),n}slidesPerViewDynamic(){const{params:e,slides:t,slidesGrid:r,size:n,activeIndex:o}=this;let c=1;if(e.centeredSlides){let e,r=t[o].swiperSlideSize;for(let i=o+1;i<t.length;i+=1)t[i]&&!e&&(r+=t[i].swiperSlideSize,c+=1,r>n&&(e=!0));for(let i=o-1;i>=0;i-=1)t[i]&&!e&&(r+=t[i].swiperSlideSize,c+=1,r>n&&(e=!0))}else for(let i=o+1;i<t.length;i+=1)r[i]-r[o]<n&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:r}=e;function n(){const t=e.rtlTranslate?-1*e.translate:e.translate,r=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses()}let o;r.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(n(),e.params.autoHeight&&e.updateAutoHeight()):(o=("auto"===e.params.slidesPerView||e.params.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),o||n()),r.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const r=this,n=r.params.direction;return e||(e="horizontal"===n?"vertical":"horizontal"),e===n||"horizontal"!==e&&"vertical"!==e||(r.$el.removeClass(`${r.params.containerModifierClass}${n}`).addClass(`${r.params.containerModifierClass}${e}`),r.params.direction=e,r.slides.each((t,r)=>{"vertical"===e?r.style.width="":r.style.height=""}
2),r.emit("changeDirection"),t&&r.update()),r}init(){const e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))}destroy(e=!0,t=!0){const r=this,{params:n,$el:o,$wrapperEl:c,slides:l}=r;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),n.loop&&r.loopDestroy(),t&&(r.removeClasses(),o.removeAttr("style"),c.removeAttr("style"),l&&l.length&&l.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(e=>{r.off(e)}),!1!==e&&(r.$el[0].swiper=null,r.$el.data("swiper",null),v.deleteProps(r)),r.destroyed=!0),null}static extendDefaults(e){v.extend(B,e)}static get extendedDefaults(){return B}static get defaults(){return U}static get Class(){return E}static get $(){return h}}var V={name:"device",proto:{device:N},static:{device:N}},z={name:"support",proto:{support:_},static:{support:_}};const Y={isEdge:!!d.navigator.userAgent.match(/Edge/g),isSafari:function(){const e=d.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(d.navigator.userAgent)};var $={name:"browser",proto:{browser:Y},static:{browser:Y}},W={name:"resize",create(){const e=this;v.extend(e,{resize:{resizeHandler(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init(){d.addEventListener("resize",this.resize.resizeHandler),d.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy(){d.removeEventListener("resize",this.resize.resizeHandler),d.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}};const K={func:d.MutationObserver||d.WebkitMutationObserver,attach(e,t={}){const r=this,n=new(0,K.func)(e=>{if(1===e.length)return void r.emit("observerUpdate",e[0]);const t=function(){r.emit("observerUpdate",e[0])};d.requestAnimationFrame?d.requestAnimationFrame(t):d.setTimeout(t,0)});n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),r.observer.observers.push(n)},init(){const e=this;if(_.observer&&e.params.observer){if(e.params.observeParents){const t=e.$el.parents();for(let i=0;i<t.length;i+=1)e.observer.attach(t[i])}e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy(){this.observer.observers.forEach(e=>{e.disconnect()}),this.observer.observers=[]}};var G={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create(){const e=this;v.extend(e,{observer:{init:K.init.bind(e),attach:K.attach.bind(e),destroy:K.destroy.bind(e),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const Q={update(e){const t=this,{slidesPerView:r,slidesPerGroup:n,centeredSlides:o}=t.params,{addSlidesBefore:c,addSlidesAfter:l}=t.params.virtual,{from:d,to:f,slides:h,slidesGrid:m,renderSlide:y,offset:_}=t.virtual;t.updateActiveIndex();const E=t.activeIndex||0;let w,A,T;w=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",o?(A=Math.floor(r/2)+n+c,T=Math.floor(r/2)+n+l):(A=r+(n-1)+c,T=n+l);const O=Math.max((E||0)-T,0),S=Math.min((E||0)+A,h.length-1),I=(t.slidesGrid[O]||0)-(t.slidesGrid[0]||0);function C(){t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(v.extend(t.virtual,{from:O,to:S,offset:I,slidesGrid:t.slidesGrid}),d===O&&f===S&&!e)return t.slidesGrid!==m&&I!==_&&t.slides.css(w,`${I}px`),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:I,from:O,to:S,slides:function(){const e=[];for(let i=O;i<=S;
2i+=1)e.push(h[i]);return e}()}),void C();const N=[],P=[];if(e)t.$wrapperEl.find(`.${t.params.slideClass}`).remove();else for(let i=d;i<=f;i+=1)(i<O||i>S)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${i}"]`).remove();for(let i=0;i<h.length;i+=1)i>=O&&i<=S&&(void 0===f||e?P.push(i):(i>f&&P.push(i),i<d&&N.push(i)));P.forEach(e=>{t.$wrapperEl.append(y(h[e],e))}),N.sort((a,b)=>b-a).forEach(e=>{t.$wrapperEl.prepend(y(h[e],e))}),t.$wrapperEl.children(".swiper-slide").css(w,`${I}px`),C()},renderSlide(e,t){const r=this,n=r.params.virtual;if(n.cache&&r.virtual.cache[t])return r.virtual.cache[t];const o=n.renderSlide?h(n.renderSlide.call(r,e,t)):h(`<div class="${r.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",t),n.cache&&(r.virtual.cache[t]=o),o},appendSlide(e){const t=this;if("object"==typeof e&&"length"in e)for(let i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.push(e[i]);else t.virtual.slides.push(e);t.virtual.update(!0)},prependSlide(e){const t=this,r=t.activeIndex;let n=r+1,o=1;if(Array.isArray(e)){for(let i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.unshift(e[i]);n=r+e.length,o=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const e=t.virtual.cache,r={};Object.keys(e).forEach(t=>{const n=e[t],c=n.attr("data-swiper-slide-index");c&&n.attr("data-swiper-slide-index",parseInt(c,10)+1),r[parseInt(t,10)+o]=n}),t.virtual.cache=r}t.virtual.update(!0),t.slideTo(n,0)},removeSlide(e){const t=this;if(null==e)return;let r=t.activeIndex;if(Array.isArray(e))for(let i=e.length-1;i>=0;i-=1)t.virtual.slides.splice(e[i],1),t.params.virtual.cache&&delete t.virtual.cache[e[i]],e[i]<r&&(r-=1),r=Math.max(r,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<r&&(r-=1),r=Math.max(r,0);t.virtual.update(!0),t.slideTo(r,0)},removeAllSlides(){const e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}};var X={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create(){const e=this;v.extend(e,{virtual:{update:Q.update.bind(e),appendSlide:Q.appendSlide.bind(e),prependSlide:Q.prependSlide.bind(e),removeSlide:Q.removeSlide.bind(e),removeAllSlides:Q.removeAllSlides.bind(e),renderSlide:Q.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit(){const e=this;if(!e.params.virtual.enabled)return;e.classNames.push(`${e.params.containerModifierClass}virtual`);const t={watchSlidesProgress:!0};v.extend(e.params,t),v.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update(
2)},setTranslate(){this.params.virtual.enabled&&this.virtual.update()}}};const J={handle(e){const t=this,{rtlTranslate:r}=t;let n=e;n.originalEvent&&(n=n.originalEvent);const o=n.keyCode||n.charCode,l=t.params.keyboard.pageUpDown,f=l&&33===o,h=l&&34===o,m=37===o,y=39===o,v=38===o,_=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&y||t.isVertical()&&_||h))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&m||t.isVertical()&&v||f))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||c.activeElement&&c.activeElement.nodeName&&("input"===c.activeElement.nodeName.toLowerCase()||"textarea"===c.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(f||h||m||y||v||_)){let e=!1;if(t.$el.parents(`.${t.params.slideClass}`).length>0&&0===t.$el.parents(`.${t.params.slideActiveClass}`).length)return;const n=d.innerWidth,o=d.innerHeight,c=t.$el.offset();r&&(c.left-=t.$el[0].scrollLeft);const l=[[c.left,c.top],[c.left+t.width,c.top],[c.left,c.top+t.height],[c.left+t.width,c.top+t.height]];for(let i=0;i<l.length;i+=1){const t=l[i];t[0]>=0&&t[0]<=n&&t[1]>=0&&t[1]<=o&&(e=!0)}if(!e)return}t.isHorizontal()?((f||h||m||y)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),((h||y)&&!r||(f||m)&&r)&&t.slideNext(),((f||m)&&!r||(h||y)&&r)&&t.slidePrev()):((f||h||v||_)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(h||_)&&t.slideNext(),(f||v)&&t.slidePrev()),t.emit("keyPress",o)}},enable(){const e=this;e.keyboard.enabled||(h(c).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable(){const e=this;e.keyboard.enabled&&(h(c).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}};var Z={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create(){const e=this;v.extend(e,{keyboard:{enabled:!1,enable:J.enable.bind(e),disable:J.disable.bind(e),handle:J.handle.bind(e)}})},on:{init(){const e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy(){const e=this;e.keyboard.enabled&&e.keyboard.disable()}}};const ee={lastScrollTime:v.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[],event:()=>d.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){const e="onwheel";let t=e in c;if(!t){const element=c.createElement("div");element.setAttribute(e,"return;"),t="function"==typeof element[e]}return!t&&c.implementation&&c.implementation.hasFeature&&!0!==c.implementation.hasFeature("","")&&(t=c.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize(e){let t=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=10*t,o=10*r,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(n=e.deltaX),e.shiftKey&&!n&&(n=o,o=0),(n||o)&&e.deltaMode&&(1===e.deltaMode?(n*=40,o*=40):(n*=800,o*=800)),n&&!t&&(t=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:o}},handleMouseEnter(){this.mouseEntered=!0},handleMouseLeave(){this.mouseEntered=!1},handle(e){let t=e;const r=this,n=r.params.mousewheel;r.params.cssMode&&t.preventDefault();let o=r.$el;if("container"!==r.params.mousewheel.eventsTarged&&(o=h(r.params.mousewheel.eventsTarged)),!r.mouseEntered&&!o[0].contains(t.target)&&!n.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);let c=0;const l=r.rtlTranslate?-1:1,data=ee.normalize(t);if(n.forceToAxis)if(r.isHorizontal()){if(!(Math.abs(data.pixelX)>Math.abs(data.pixelY)))return!0;c=-data.pixelX*l}else{if(!(Math.abs(data.pixelY)>Math.abs(data.pixelX)))return!0;c=-data.pixelY}else c=Math.abs(data.pixelX)>Math.abs(data.pixelY)?-data.pixelX*l:-data.pixelY;if(0===c)return!0;if(n.invert&&(c=-c),r.params.freeMode){const e={time:v.now(),delta:Math.abs(c),direction:Math.sign(c)},{lastEventBeforeSnap:o}=r.mousewheel,l=o&&e.time<o.time+500&&e.delta<=o.delta&&e.direction===o.direction;if(!l){r.mousewheel.lastEventBeforeSnap=void 0,r.params.loop&&r.loopFix();let o=r.getTranslate()+c*n.sensitivity;const d=r.isBeginning,f=r.isEnd;if(o>=r.minTranslate()&&(o=r.minTranslate()),o<=r.maxTranslate()&&(o=r.maxTranslate()),r.setTransition(0),r.setTranslate(o),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!d&&r.isBeginning||!f&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky){clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=void 0;const t=r.mousewheel.recentWheelEvents;t.length>=15&&t.shift();const n=t.length?t[t.length-1]:void 0,o=t[0];if(t.push(e),n&&(e.delta>n.delta||e.direction!==n.direction))t.splice(0);else if(t.length>=15&&e.time-o.time<500&&o.delta-e.delta>=1&&e.delta<=6){const n=c>0?.8:.2;r.mousewheel.lastEventBeforeSnap=e,t.splice(0),r.mousewheel.timeout=v.nextTick(()=>{r.slideToClosest(r.params.speed,!0,void 0,n)},0)}r.mousewheel.timeout||(r.mousewheel.timeout=v.nextTick(()=>{r.mousewheel.lastEventBeforeSnap=e,t.splice(0),r.slideToClosest(r.params.speed,!0,void 0,.5)},500))}if(l||r.emit("scroll",t),r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.autoplay.stop(),o===r.minTranslate()||o===r.maxTranslate())return!0}}else{const t={time:v.now(),delta:Math.abs(c),direction:Math.sign(c),raw:e},n=r.mousewheel.recentWheelEvents;n.length>=2&&n.shift();const o=n.length?n[n.length-1]:void 0;if(n.push(t),o?(t.direction!==o.direction||t.delta>o.delta||t.time>o.time+150)&&r.mousewheel.animateSlider(t):r.mousewheel.animateSlider(t),r.mousewheel.releaseScroll(t))return!0}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},animateSlider(e){const t=this;return e.delta>=6&&v.now()-t.mousewheel.lastScrollTime<60||(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),t.emit("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),t.emit("scroll",e.raw)),t.mousewheel.lastScrollTime=(new d.Date).getTime(),!1)},releaseScroll(e){const t=this,r=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&r.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&r.releaseOnEdges)return!0;return!1},enable(){const e=this,t=ee.event();if(e.params.cssMode)return e.wrapperEl.removeEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(e.mousewheel.enabled)return!1;let r=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(r=h(e.params.mousewheel.eventsTarged)),r.on("mouseenter",e.mousewheel.handleMouseEnter),r.on("mouseleave",e.mousewheel.handleMouseLeave),r.on(t,e.mousewheel.handle),e.mousewheel.enabled=!0,!0},disable(){const e=this,t=ee.event();if(e.params.cssMode)return e.wrapperEl.addEventListener(t,e.mousewheel.handle),!0;if(!t)return!1;if(!e.mousewheel.enabled)return!1;let r=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(r=h(e.params.mousewheel.eventsTarged)),r.off(t,e.mousewheel.handle),e.mousewheel.enabled=!1,!0}};var te={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create(){const e=this;v.extend(e,{mousewheel:{enabled:!1,enable:ee.enable.bind(e),disable:ee.disable.bind(e),handle:ee.handle.bind(e),handleMouseEnter:ee.handleMouseEnter.bind(e),handleMouseLeave:ee.handleMouseLeave.bind(e),animateSlider:ee.animateSlider.bind(e),releaseScroll:ee.releaseScroll.bind(e),lastScrollTime:v.now(),lastEventBeforeSnap:void 0,recentWheelEvents:[]}})},on:{init(){const e=this;!e.params.mousewheel.enabled&&e.params.cssMode&&e.mousewheel.disable(),e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy(){const e=this;e.params.cssMode&&e.mousewheel.enable(),e.mousewheel.enabled&&e.mousewheel.disable()}}};
2const re={update(){const e=this,t=e.params.navigation;if(e.params.loop)return;const{$nextEl:r,$prevEl:n}=e.navigation;n&&n.length>0&&(e.isBeginning?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),r&&r.length>0&&(e.isEnd?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))},onPrevClick(e){const t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick(e){const t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init(){const e=this,t=e.params.navigation;if(!t.nextEl&&!t.prevEl)return;let r,n;t.nextEl&&(r=h(t.nextEl),e.params.uniqueNavElements&&"string"==typeof t.nextEl&&r.length>1&&1===e.$el.find(t.nextEl).length&&(r=e.$el.find(t.nextEl))),t.prevEl&&(n=h(t.prevEl),e.params.uniqueNavElements&&"string"==typeof t.prevEl&&n.length>1&&1===e.$el.find(t.prevEl).length&&(n=e.$el.find(t.prevEl))),r&&r.length>0&&r.on("click",e.navigation.onNextClick),n&&n.length>0&&n.on("click",e.navigation.onPrevClick),v.extend(e.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:n,prevEl:n&&n[0]})},destroy(){const e=this,{$nextEl:t,$prevEl:r}=e.navigation;t&&t.length&&(t.off("click",e.navigation.onNextClick),t.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}};var ne={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create(){const e=this;v.extend(e,{navigation:{init:re.init.bind(e),update:re.update.bind(e),destroy:re.destroy.bind(e),onNextClick:re.onNextClick.bind(e),onPrevClick:re.onPrevClick.bind(e)}})},on:{init(){this.navigation.init(),this.navigation.update()},toEdge(){this.navigation.update()},fromEdge(){this.navigation.update()},destroy(){this.navigation.destroy()},click(e){const t=this,{$nextEl:r,$prevEl:n}=t.navigation;if(t.params.navigation.hideOnClick&&!h(e.target).is(n)&&!h(e.target).is(r)){let e;r?e=r.hasClass(t.params.navigation.hiddenClass):n&&(e=n.hasClass(t.params.navigation.hiddenClass)),!0===e?t.emit("navigationShow",t):t.emit("navigationHide",t),r&&r.toggleClass(t.params.navigation.hiddenClass),n&&n.toggleClass(t.params.navigation.hiddenClass)}}}};const ie={update(){const e=this,t=e.rtl,r=e.params.pagination;if(!r.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length)return;const n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,o=e.pagination.$el;let c;const l=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),c>n-1-2*e.loopedSlides&&(c-=n-2*e.loopedSlides),c>l-1&&(c-=l),c<0&&"bullets"!==e.params.paginationType&&(c=l+c)):c=void 0!==e.snapIndex?e.snapIndex:e.activeIndex||0,"bullets"===r.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const n=e.pagination.bullets;let l,d,f;if(r.dynamicBullets&&(e.pagination.bulletSize=n.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(r.dynamicMainBullets+4)+"px"),r.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=c-e.previousIndex,e.pagination.dynamicBulletIndex>r.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=r.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=c-e.pagination.dynamicBulletIndex,d=l+(Math.min(n.length,r.dynamicMainBullets)-1),f=(d+l)/2),n.removeClass(`${r.bulletActiveClass} ${r.bulletActiveClass}-next ${r.bulletActiveClass}-next-next ${r.bulletActiveClass}-prev ${r.bulletActiveClass}-prev-prev ${r.bulletActiveClass}-main`),o.length>1)n.each((e,t)=>{const n=h(t),o=n.index();o===c&&n.addClass(r.bulletActiveClass),r.dynamicBullets&&(o>=l&&o<=d&&n.addClass(`${r.bulletActiveClass}-main`),o===l&&n.prev().addClass(`${r.bulletActiveClass}-prev`).prev().addClass(`${r.bulletActiveClass}-prev-prev`),o===d&&n.next().addClass(`${r.bulletActiveClass}-next`).next().addClass(`${r.bulletActiveClass}-next-next`))});else{const t=n.eq(c),o=t.index();if(t.addClass(r.bulletActiveClass),r.dynamicBullets){const t=n.eq(l),c=n.eq(
2d);for(let i=l;i<=d;i+=1)n.eq(i).addClass(`${r.bulletActiveClass}-main`);if(e.params.loop)if(o>=n.length-r.dynamicMainBullets){for(let i=r.dynamicMainBullets;i>=0;i-=1)n.eq(n.length-i).addClass(`${r.bulletActiveClass}-main`);n.eq(n.length-r.dynamicMainBullets-1).addClass(`${r.bulletActiveClass}-prev`)}else t.prev().addClass(`${r.bulletActiveClass}-prev`).prev().addClass(`${r.bulletActiveClass}-prev-prev`),c.next().addClass(`${r.bulletActiveClass}-next`).next().addClass(`${r.bulletActiveClass}-next-next`);else t.prev().addClass(`${r.bulletActiveClass}-prev`).prev().addClass(`${r.bulletActiveClass}-prev-prev`),c.next().addClass(`${r.bulletActiveClass}-next`).next().addClass(`${r.bulletActiveClass}-next-next`)}}if(r.dynamicBullets){const o=Math.min(n.length,r.dynamicMainBullets+4),c=(e.pagination.bulletSize*o-e.pagination.bulletSize)/2-f*e.pagination.bulletSize,l=t?"right":"left";n.css(e.isHorizontal()?l:"top",`${c}px`)}}if("fraction"===r.type&&(o.find(`.${r.currentClass}`).text(r.formatFractionCurrent(c+1)),o.find(`.${r.totalClass}`).text(r.formatFractionTotal(l))),"progressbar"===r.type){let t;t=r.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const n=(c+1)/l;let d=1,f=1;"horizontal"===t?d=n:f=n,o.find(`.${r.progressbarFillClass}`).transform(`translate3d(0,0,0) scaleX(${d}) scaleY(${f})`).transition(e.params.speed)}"custom"===r.type&&r.renderCustom?(o.html(r.renderCustom(e,c+1,l)),e.emit("paginationRender",e,o[0])):e.emit("paginationUpdate",e,o[0]),o[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](r.lockClass)},render(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length)return;const r=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el;let o="";if("bullets"===t.type){const c=e.params.loop?Math.ceil((r-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;for(let i=0;i<c;i+=1)t.renderBullet?o+=t.renderBullet.call(e,i,t.bulletClass):o+=`<${t.bulletElement} class="${t.bulletClass}"></${t.bulletElement}>`;n.html(o),e.pagination.bullets=n.find(`.${t.bulletClass}`)}"fraction"===t.type&&(o=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`,n.html(o)),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,n.html(o)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])},init(){const e=this,t=e.params.pagination;if(!t.el)return;let r=h(t.el);0!==r.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&r.length>1&&(r=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&r.addClass(t.clickableClass),r.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(r.addClass(`${t.modifierClass}${t.type}-dynamic`),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&r.addClass(t.progressbarOppositeClass),t.clickable&&r.on("click",`.${t.bulletClass}`,function(t){t.preventDefault();let r=h(this).index()*e.params.slidesPerGroup;e.params.loop&&(r+=e.loopedSlides),e.slideTo(r)}),v.extend(e.pagination,{$el:r,el:r[0]}))},destroy(){const e=this,t=e.params.pagination;if(!t.el||!e.pagination.el||!e.pagination.$el||0===e.pagination.$el.length)return;const r=e.pagination.$el;r.removeClass(t.hiddenClass),r.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&r.off("click",`.${t.bulletClass}`)}};var oe={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create(){const e=this;v.extend(e,{pagination:{init:ie.init.bind(e),render:ie.render.bind(e),update:ie.update.bind(e),destroy:ie.destroy.bind(e),dynamicBulletIndex:0}})},on:{init(){const e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange(){const e=this;(e.params.loop||void 0===e.snapIndex)&&e.pagination.update()},snapIndexChange(){const e=this;e.params.loop||e.pagination.update()},slidesLengthChange(){const e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange(){const e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy(){this.pagination.destroy()},click(e){const t=this;if(t.params.pagination.el&&t.params.pagination.hideOnClick&&t.pagination.$el.length>0&&!h(e.target).hasClass(t.params.pagination.bulletClass)){!0===t.pagination.$el.hasClass(t.params.pagination.hiddenClass)?t.emit("paginationShow",t):t.emit("paginationHide",t),t.pagination.$el.toggleClass(t.params.pagination.hiddenClass)}}}};const ae={setTranslate(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t,rtlTranslate:r,progress:progress}=e,{dragSize:n,trackSize:o,$dragEl:c,$el:l}=t,d=e.params.scrollbar;let f=n,h=(o-n)*progress;r?(h=-h,h>0?(f=n-h,h=0):-h+n>o&&(f=o+h)):h<0?(f=n+h,h=0):h+n>
2o&&(f=o-h),e.isHorizontal()?(c.transform(`translate3d(${h}px, 0, 0)`),c[0].style.width=`${f}px`):(c.transform(`translate3d(0px, ${h}px, 0)`),c[0].style.height=`${f}px`),d.hide&&(clearTimeout(e.scrollbar.timeout),l[0].style.opacity=1,e.scrollbar.timeout=setTimeout(()=>{l[0].style.opacity=0,l.transition(400)},1e3))},setTransition(e){const t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize(){const e=this;if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:t}=e,{$dragEl:r,$el:n}=t;r[0].style.width="",r[0].style.height="";const o=e.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,c=e.size/e.virtualSize,l=c*(o/e.size);let d;d="auto"===e.params.scrollbar.dragSize?o*c:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?r[0].style.width=`${d}px`:r[0].style.height=`${d}px`,n[0].style.display=c>=1?"none":"",e.params.scrollbar.hide&&(n[0].style.opacity=0),v.extend(t,{trackSize:o,divider:c,moveDivider:l,dragSize:d}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)},getPointerPosition(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientX:e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].clientY:e.clientY},setDragPosition(e){const t=this,{scrollbar:r,rtlTranslate:n}=t,{$el:o,dragSize:c,trackSize:l,dragStartPos:d}=r;let f;f=(r.getPointerPosition(e)-o.offset()[t.isHorizontal()?"left":"top"]-(null!==d?d:c/2))/(l-c),f=Math.max(Math.min(f,1),0),n&&(f=1-f);const h=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*f;t.updateProgress(h),t.setTranslate(h),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart(e){const t=this,r=t.params.scrollbar,{scrollbar:n,$wrapperEl:o}=t,{$el:c,$dragEl:l}=n;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===l[0]||e.target===l?n.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.transition(100),l.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),c.transition(0),r.hide&&c.css("opacity",1),t.params.cssMode&&t.$wrapperEl.css("scroll-snap-type","none"),t.emit("scrollbarDragStart",e)},onDragMove(e){const t=this,{scrollbar:r,$wrapperEl:n}=t,{$el:o,$dragEl:c}=r;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,r.setDragPosition(e),n.transition(0),o.transition(0),c.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd(e){const t=this,r=t.params.scrollbar,{scrollbar:n,$wrapperEl:o}=t,{$el:c}=n;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),o.transition("")),r.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=v.nextTick(()=>{c.css("opacity",0),c.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),r.snapOnRelease&&t.slideToClosest())},enableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:r,touchEventsDesktop:n,params:o}=e,l=t.$el[0],d=!(!_.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},f=!(!_.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};_.touch?(l.addEventListener(r.start,e.scrollbar.onDragStart,d),l.addEventListener(r.move,e.scrollbar.onDragMove,d),l.addEventListener(r.end,e.scrollbar.onDragEnd,f)):(l.addEventListener(n.start,e.scrollbar.onDragStart,d),c.addEventListener(n.move,e.scrollbar.onDragMove,d),c.addEventListener(n.end,e.scrollbar.onDragEnd,f))},disableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:r,touchEventsDesktop:n,params:o}=e,l=t.$el[0],d=!(!_.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},f=!(!_.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};_.touch?(l.removeEventListener(r.start,e.scrollbar.onDragStart,d),l.removeEventListener(r.move,e.scrollbar.onDragMove,d),l.removeEventListener(r.end,e.scrollbar.onDragEnd,f)):(l.removeEventListener(n.start,e.scrollbar.onDragStart,d),c.removeEventListener(n.move,e.scrollbar.onDragMove,d),c.removeEventListener(n.end,e.scrollbar.onDragEnd,f))},init(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,$el:r}=e,n=e.params.scrollbar;let o=h(n.el);e.params.uniqueNavElements&&"string"==typeof n.el&&o.length>1&&1===r.find(n.el).length&&(o=r.find(n.el));let c=o.find(`.${e.params.scrollbar.dragClass}`);0===c.length&&(c=h(`<div class="${e.params.scrollbar.dragClass}"></div>`),o.append(c)),v.extend(t,{$el:o,el:o[0],$dragEl:c,dragEl:c[0]}),n.draggable&&t.enableDraggable()},destroy(){this.scrollbar.disableDraggable()}};var se={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create(){const e=this;v.extend(e,{scrollbar:{init:ae.init.bind(e),destroy:ae.destroy.bind(e),updateSize:ae.updateSize.bind(e),setTranslate:ae.setTranslate.bind(e),setTransition:ae.setTransition.bind(e),enableDraggable:ae.enableDraggable.bind(e),disableDraggable:ae.disableDraggable.bind(e),setDragPosition:ae.setDragPosition.bind(e),getPointerPosition:ae.getPointerPosition.bind(e),onDragStart:ae.onDragStart.bind(e),onDragMove:ae.onDragMove.bind(e),onDragEnd:ae.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init(){const e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update(){this.scrollbar.updateSize()},resize(){this.scrollbar.updateSize()},observerUpdate(){this.scrollbar.updateSize()},setTranslate(){this.scrollbar.setTranslate()},setTransition(e){this.scrollbar.setTransition(e)},destroy(){this.scrollbar.destroy()}}};const ce={setTransform(e,progress){const{rtl:t}=this,r=h(e),n=t?-1:1,p=r.attr("data-swiper-parallax")||"0";let o=r.attr("data-swiper-parallax-x"),c=r.attr("data-swiper-parallax-y");const l=r.attr("data-swiper-parallax-scale"),d=r.attr("data-swiper-parallax-opacity");if(o||c?(o=o||"0",c=c||"0"):this.isHorizontal()?(o=p,c="0"):(c=p,o="0"),o=o.indexOf("%")>=0?parseInt(o,10)*progress*n+"%":o*progress*n+"px",c=c.indexOf("%")>=0?parseInt(c,10)*progress+"%":c*progress+"px",null!=d){const e=d-(d-1)*(1-Math.abs(progress));r[0].style.opacity=e}if(null==l)r.transform(`translate3d(${o}, ${c}, 0px)`);else{const e=l-(l-1)*(1-Math.abs(progress));r.transform(`translate3d(${o}, ${c}, 0px) scale(${e})`)}},setTranslate(){const e=this,{$el:t,slides:r,progress:progress,snapGrid:n}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,r)=>{e.parallax.setTransform(r,progress)}),r.each((t,r)=>{let o=r.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(t/2)-progress*(n.length-1)),o=Math.min(Math.max(o,-1),1),h(r).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,r)=>{e.parallax.setTransform(r,o)})})},setTransition(e=this.params.speed){const{$el:t}=this;t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t,r)=>{const n=h(r);let o=parseInt(n.attr("data-swiper-parallax-duration"),10)||e;0===e&&(o=0),n.transition(o)})}};var ue={name:"parallax",params:{parallax:{enabled:!1}},create(){const e=this;v.extend(e,{parallax:{setTransform:ce.setTransform.bind(e),setTranslate:ce.setTranslate.bind(e),setTransition:ce.setTransition.bind(e)}})},on:{beforeInit(){const e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}};const le={getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,r=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,o=e.targetTouches[1].pageY;return Math.sqrt((n-t)**2+(o-r)**2)},onGestureStart(e){const t=this,r=t.params.zoom,n=t.zoom,{gesture:o}=n;
2if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!_.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;n.fakeGestureTouched=!0,o.scaleStart=le.getDistanceBetweenTouches(e)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=h(e.target).closest(`.${t.params.slideClass}`),0===o.$slideEl.length&&(o.$slideEl=t.slides.eq(t.activeIndex)),o.$imageEl=o.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),o.$imageWrapEl=o.$imageEl.parent(`.${r.containerClass}`),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,0!==o.$imageWrapEl.length)?(o.$imageEl&&o.$imageEl.transition(0),t.zoom.isScaling=!0):o.$imageEl=void 0},onGestureChange(e){const t=this.params.zoom,r=this.zoom,{gesture:n}=r;if(!_.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;r.fakeGestureMoved=!0,n.scaleMove=le.getDistanceBetweenTouches(e)}n.$imageEl&&0!==n.$imageEl.length&&(r.scale=_.gestures?e.scale*r.currentScale:n.scaleMove/n.scaleStart*r.currentScale,r.scale>n.maxRatio&&(r.scale=n.maxRatio-1+(r.scale-n.maxRatio+1)**.5),r.scale<t.minRatio&&(r.scale=t.minRatio+1-(t.minRatio-r.scale+1)**.5),n.$imageEl.transform(`translate3d(0,0,0) scale(${r.scale})`))},onGestureEnd(e){const t=this,r=t.params.zoom,n=t.zoom,{gesture:o}=n;if(!_.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!N.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}o.$imageEl&&0!==o.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,o.maxRatio),r.minRatio),o.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${n.scale})`),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(o.$slideEl=void 0))},onTouchStart(e){const t=this.zoom,{gesture:r,image:image}=t;r.$imageEl&&0!==r.$imageEl.length&&(image.isTouched||(N.android&&e.cancelable&&e.preventDefault(),image.isTouched=!0,image.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,image.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove(e){const t=this,r=t.zoom,{gesture:n,image:image,velocity:o}=r;if(!n.$imageEl||0===n.$imageEl.length)return;if(t.allowClick=!1,!image.isTouched||!n.$slideEl)return;image.isMoved||(image.width=n.$imageEl[0].offsetWidth,image.height=n.$imageEl[0].offsetHeight,image.startX=v.getTranslate(n.$imageWrapEl[0],"x")||0,image.startY=v.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),t.rtl&&(image.startX=-image.startX,image.startY=-image.startY));const c=image.width*r.scale,l=image.height*r.scale;if(!(c<n.slideWidth&&l<n.slideHeight)){if(image.minX=Math.min(n.slideWidth/2-c/2,0),image.maxX=-image.minX,image.minY=Math.min(n.slideHeight/2-l/2,0),image.maxY=-image.minY,image.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,image.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!image.isMoved&&!r.isScaling){if(t.isHorizontal()&&(Math.floor(image.minX)===Math.floor(image.startX)&&image.touchesCurrent.x<image.touchesStart.x||Math.floor(image.maxX)===Math.floor(image.startX)&&image.touchesCurrent.x>image.touchesStart.x))return void(image.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(image.minY)===Math.floor(image.startY)&&image.touchesCurrent.y<image.touchesStart.y||Math.floor(image.maxY)===Math.floor(image.startY)&&image.touchesCurrent.y>image.touchesStart.y))return void(image.isTouched=!1)}e.cancelable&&e.preventDefault(),e.stopPropagation(),image.isMoved=!0,image.currentX=image.touchesCurrent.x-image.touchesStart.x+image.startX,image.currentY=image.touchesCurrent.y-image.touchesStart.y+image.startY,image.currentX<image.minX&&(image.currentX=image.minX+1-(image.minX-image.currentX+1)**.8),image.currentX>image.maxX&&(image.currentX=image.maxX-1+(image.currentX-image.maxX+1)**.8),image.currentY<image.minY&&(image.currentY=image.minY+1-(image.minY-image.currentY+1)**.8),image.currentY>image.maxY&&(image.currentY=image.maxY-1+(image.currentY-image.maxY+1)**.8),o.prevPositionX||(o.prevPositionX=image.touchesCurrent.x),o.prevPositionY||(o.prevPositionY=image.touchesCurrent.y),o.prevTime||(o.prevTime=Date.now()),o.x=(image.touchesCurrent.x-o.prevPositionX)/(Date.now()-o.prevTime)/2,o.y=(image.touchesCurrent.y-o.prevPositionY)/(Date.now()-o.prevTime)/2,Math.abs(image.touchesCurrent.x-o.prevPositionX)<2&&(o.x=0),Math.abs(image.touchesCurrent.y-o.prevPositionY)<2&&(o.y=0),o.prevPositionX=image.touchesCurrent.x,o.prevPositionY=image.touchesCurrent.y,o.prevTime=Date.now(),n.$imageWrapEl.transform(`translate3d(${image.currentX}px, ${image.currentY}px,0)`)}},onTouchEnd(){const e=this.zoom,{gesture:t,image:image,velocity:r}=e;if(!t.$imageEl||0===t.$imageEl.length)return;if(!image.isTouched||!image.isMoved)return image.isTouched=!1,void(image.isMoved=!1);image.isTouched=!1,image.isMoved=!1;let n=300,o=300;const c=r.x*n,l=image.currentX+c,d=r.y*o,f=image.currentY+d;0!==r.x&&(n=Math.abs((l-image.currentX)/r.x)),0!==r.y&&(o=Math.abs((f-image.currentY)/r.y));const h=Math.max(n,o);image.currentX=l,image.currentY=f;
2const m=image.width*e.scale,y=image.height*e.scale;image.minX=Math.min(t.slideWidth/2-m/2,0),image.maxX=-image.minX,image.minY=Math.min(t.slideHeight/2-y/2,0),image.maxY=-image.minY,image.currentX=Math.max(Math.min(image.currentX,image.maxX),image.minX),image.currentY=Math.max(Math.min(image.currentY,image.maxY),image.minY),t.$imageWrapEl.transition(h).transform(`translate3d(${image.currentX}px, ${image.currentY}px,0)`)},onTransitionEnd(){const e=this,t=e.zoom,{gesture:r}=t;r.$slideEl&&e.previousIndex!==e.activeIndex&&(r.$imageEl&&r.$imageEl.transform("translate3d(0,0,0) scale(1)"),r.$imageWrapEl&&r.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,r.$slideEl=void 0,r.$imageEl=void 0,r.$imageWrapEl=void 0)},toggle(e){const t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in(e){const t=this,r=t.zoom,n=t.params.zoom,{gesture:o,image:image}=r;if(o.$slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?o.$slideEl=t.$wrapperEl.children(`.${t.params.slideActiveClass}`):o.$slideEl=t.slides.eq(t.activeIndex),o.$imageEl=o.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),o.$imageWrapEl=o.$imageEl.parent(`.${n.containerClass}`)),!o.$imageEl||0===o.$imageEl.length)return;let c,l,d,f,h,m,y,v,_,E,w,A,T,O,S,I,C,N;o.$slideEl.addClass(`${n.zoomedSlideClass}`),void 0===image.touchesStart.x&&e?(c="touchend"===e.type?e.changedTouches[0].pageX:e.pageX,l="touchend"===e.type?e.changedTouches[0].pageY:e.pageY):(c=image.touchesStart.x,l=image.touchesStart.y),r.scale=o.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,r.currentScale=o.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,e?(C=o.$slideEl[0].offsetWidth,N=o.$slideEl[0].offsetHeight,d=o.$slideEl.offset().left,f=o.$slideEl.offset().top,h=d+C/2-c,m=f+N/2-l,_=o.$imageEl[0].offsetWidth,E=o.$imageEl[0].offsetHeight,w=_*r.scale,A=E*r.scale,T=Math.min(C/2-w/2,0),O=Math.min(N/2-A/2,0),S=-T,I=-O,y=h*r.scale,v=m*r.scale,y<T&&(y=T),y>S&&(y=S),v<O&&(v=O),v>I&&(v=I)):(y=0,v=0),o.$imageWrapEl.transition(300).transform(`translate3d(${y}px, ${v}px,0)`),o.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${r.scale})`)},out(){const e=this,t=e.zoom,r=e.params.zoom,{gesture:n}=t;n.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?n.$slideEl=e.$wrapperEl.children(`.${e.params.slideActiveClass}`):n.$slideEl=e.slides.eq(e.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),n.$imageWrapEl=n.$imageEl.parent(`.${r.containerClass}`)),n.$imageEl&&0!==n.$imageEl.length&&(t.scale=1,t.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(`${r.zoomedSlideClass}`),n.$slideEl=void 0)},enable(){const e=this,t=e.zoom;if(t.enabled)return;t.enabled=!0;const r=!("touchstart"!==e.touchEvents.start||!_.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},n=!_.passiveListener||{passive:!1,capture:!0},o=`.${e.params.slideClass}`;_.gestures?(e.$wrapperEl.on("gesturestart",o,t.onGestureStart,r),e.$wrapperEl.on("gesturechange",o,t.onGestureChange,r),e.$wrapperEl.on("gestureend",o,t.onGestureEnd,r)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,o,t.onGestureStart,r),e.$wrapperEl.on(e.touchEvents.move,o,t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,o,t.onGestureEnd,r),e.touchEvents.cancel&&e.$wrapperEl.on(e.touchEvents.cancel,o,t.onGestureEnd,r)),e.$wrapperEl.on(e.touchEvents.move,`.${e.params.zoom.containerClass}`,t.onTouchMove,n)},disable(){const e=this,t=e.zoom;if(!t.enabled)return;e.zoom.enabled=!1;const r=!("touchstart"!==e.touchEvents.start||!_.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},n=!_.passiveListener||{passive:!1,capture:!0},o=`.${e.params.slideClass}`;_.gestures?(e.$wrapperEl.off("gesturestart",o,t.onGestureStart,r),e.$wrapperEl.off("gesturechange",o,t.onGestureChange,r),e.$wrapperEl.off("gestureend",o,t.onGestureEnd,r)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,o,t.onGestureStart,r),e.$wrapperEl.off(e.touchEvents.move,o,t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,o,t.onGestureEnd,r),e.touchEvents.cancel&&e.$wrapperEl.off(e.touchEvents.cancel,o,t.onGestureEnd,r)),e.$wrapperEl.off(e.touchEvents.move,`.${e.params.zoom.containerClass}`,t.onTouchMove,n)}};var de={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create(){const e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(r=>{t[r]=le[r].bind(e)}),v.extend(e,{zoom:t});let r=1;Object.defineProperty(e.zoom,"scale",{get:()=>r,set(t){if(r!==t){const r=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,n=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,r,n)}r=t}})},on:{init(){const e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy(){this.zoom.disable()},touchStart(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap(e){const t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd(){const e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()},slideChange(){const e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&e.zoom.onTransitionEnd()}}};const pe={loadInSlide(e,t=!0){const r=this,n=r.params.lazy;if(void 0===e)return;
2if(0===r.slides.length)return;const o=r.virtual&&r.params.virtual.enabled?r.$wrapperEl.children(`.${r.params.slideClass}[data-swiper-slide-index="${e}"]`):r.slides.eq(e);let c=o.find(`.${n.elementClass}:not(.${n.loadedClass}):not(.${n.loadingClass})`);!o.hasClass(n.elementClass)||o.hasClass(n.loadedClass)||o.hasClass(n.loadingClass)||(c=c.add(o[0])),0!==c.length&&c.each((e,c)=>{const l=h(c);l.addClass(n.loadingClass);const d=l.attr("data-background"),f=l.attr("data-src"),m=l.attr("data-srcset"),y=l.attr("data-sizes"),v=l.parent("picture");r.loadImage(l[0],f||d,m,y,!1,()=>{if(null!=r&&r&&(!r||r.params)&&!r.destroyed){if(d?(l.css("background-image",`url("${d}")`),l.removeAttr("data-background")):(m&&(l.attr("srcset",m),l.removeAttr("data-srcset")),y&&(l.attr("sizes",y),l.removeAttr("data-sizes")),v.length&&v.children("source").each((e,t)=>{const r=h(t);r.attr("data-srcset")&&(r.attr("srcset",r.attr("data-srcset")),r.removeAttr("data-srcset"))}),f&&(l.attr("src",f),l.removeAttr("data-src"))),l.addClass(n.loadedClass).removeClass(n.loadingClass),o.find(`.${n.preloaderClass}`).remove(),r.params.loop&&t){const e=o.attr("data-swiper-slide-index");if(o.hasClass(r.params.slideDuplicateClass)){const t=r.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${r.params.slideDuplicateClass})`);r.lazy.loadInSlide(t.index(),!1)}else{const t=r.$wrapperEl.children(`.${r.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`);r.lazy.loadInSlide(t.index(),!1)}}r.emit("lazyImageReady",o[0],l[0]),r.params.autoHeight&&r.updateAutoHeight()}}),r.emit("lazyImageLoad",o[0],l[0])})},load(){const e=this,{$wrapperEl:t,params:r,slides:n,activeIndex:o}=e,c=e.virtual&&r.virtual.enabled,l=r.lazy;let d=r.slidesPerView;function f(e){if(c){if(t.children(`.${r.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(n[e])return!0;return!1}function m(e){return c?h(e).attr("data-swiper-slide-index"):h(e).index()}if("auto"===d&&(d=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(`.${r.slideVisibleClass}`).each((t,r)=>{const n=c?h(r).attr("data-swiper-slide-index"):h(r).index();e.lazy.loadInSlide(n)});else if(d>1)for(let i=o;i<o+d;i+=1)f(i)&&e.lazy.loadInSlide(i);else e.lazy.loadInSlide(o);if(l.loadPrevNext)if(d>1||l.loadPrevNextAmount&&l.loadPrevNextAmount>1){const t=l.loadPrevNextAmount,r=d,c=Math.min(o+r+Math.max(t,r),n.length),h=Math.max(o-Math.max(r,t),0);for(let i=o+d;i<c;i+=1)f(i)&&e.lazy.loadInSlide(i);for(let i=h;i<o;i+=1)f(i)&&e.lazy.loadInSlide(i)}else{const n=t.children(`.${r.slideNextClass}`);n.length>0&&e.lazy.loadInSlide(m(n));const o=t.children(`.${r.slidePrevClass}`);o.length>0&&e.lazy.loadInSlide(m(o))}}};var fe={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create(){const e=this;v.extend(e,{lazy:{initialImageLoaded:!1,load:pe.load.bind(e),loadInSlide:pe.loadInSlide.bind(e)}})},on:{beforeInit(){const e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init(){const e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll(){const e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize(){const e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove(){const e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart(){const e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd(){const e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()},slideChange(){const e=this;e.params.lazy.enabled&&e.params.cssMode&&e.lazy.load()}}};const he={LinearSpline:function(e,t){const r=function(){let e,t,r;return(n,o)=>{for(t=-1,e=n.length;e-t>1;)r=e+t>>1,n[r]<=o?t=r:e=r;return e}}();let n,o;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(o=r(this.x,e),n=o-1,(e-this.x[n])*(this.y[o]-this.y[n])/(this.x[o]-this.x[n])+this.y[n]):0},this},getInterpolateFunction(e){const t=this;t.controller.spline||(t.controller.spline=t.params.loop?new he.LinearSpline(t.slidesGrid,e.slidesGrid):new he.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate(e,t){const r=this,n=r.controller.control;let o,c;function l(e){const t=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(e),c=-r.controller.spline.interpolate(-t)),c&&"container"!==r.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(r.maxTranslate()-r.minTranslate()),c=(t-r.minTranslate())*o+e.minTranslate()),r.params.controller.inverse&&(c=e.maxTranslate()-c),e.updateProgress(c),e.setTranslate(c,r),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(n))for(let i=0;i<n.length;i+=1)n[i]!==t&&n[i]instanceof H&&l(n[i]);else n instanceof H&&t!==n&&l(n)},setTransition(e,t){const r=this,n=r.controller.control;let i;function o(t){t.setTransition(e,r),0!==e&&(t.transitionStart(),t.params.autoHeight&&v.nextTick(()=>{t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(()=>{n&&(t.params.loop&&"slide"===r.params.controller.by&&t.loopFix(),t.transitionEnd())}))}if(Array.isArray(n))for(i=0;i<n.length;i+=1)n[i]!==t&&n[i]instanceof H&&o(n[i]);else n instanceof H&&t!==n&&o(n)}};var me={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create(){const e=this;v.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:he.getInterpolateFunction.bind(e),setTranslate:he.setTranslate.bind(e),setTransition:he.setTransition.bind(e)}})}
2,on:{update(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate(){const e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition(e,t){this.controller.control&&this.controller.setTransition(e,t)}}};const ye={makeElFocusable:e=>(e.attr("tabIndex","0"),e),makeElNotFocusable:e=>(e.attr("tabIndex","-1"),e),addElRole:(e,t)=>(e.attr("role",t),e),addElLabel:(e,label)=>(e.attr("aria-label",label),e),disableEl:e=>(e.attr("aria-disabled",!0),e),enableEl:e=>(e.attr("aria-disabled",!1),e),onEnterKey(e){const t=this,r=t.params.a11y;if(13!==e.keyCode)return;const n=h(e.target);t.navigation&&t.navigation.$nextEl&&n.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(r.lastSlideMessage):t.a11y.notify(r.
2nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&n.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(r.firstSlideMessage):t.a11y.notify(r.prevSlideMessage)),t.pagination&&n.is(`.${t.params.pagination.bulletClass}`)&&n[0].click()},notify(e){const t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation(){const e=this;if(e.params.loop||!e.navigation)return;const{$nextEl:t,$prevEl:r}=e.navigation;r&&r.length>0&&(e.isBeginning?(e.a11y.disableEl(r),e.a11y.makeElNotFocusable(r)):(e.a11y.enableEl(r),e.a11y.makeElFocusable(r))),t&&t.length>0&&(e.isEnd?(e.a11y.disableEl(t),e.a11y.makeElNotFocusable(t)):(e.a11y.enableEl(t),e.a11y.makeElFocusable(t)))},updatePagination(){const e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((r,n)=>{const o=h(n);e.a11y.makeElFocusable(o),e.a11y.addElRole(o,"button"),e.a11y.addElLabel(o,t.paginationBulletMessage.replace(/\{\{index\}\}/,o.index()+1))})},init(){const e=this;e.$el.append(e.a11y.liveRegion);const t=e.params.a11y;let r,n;e.navigation&&e.navigation.$nextEl&&(r=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),r&&(e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.nextSlideMessage),r.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,t.prevSlideMessage),n.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown",`.${e.params.pagination.bulletClass}`,e.a11y.onEnterKey)},destroy(){const e=this;let t,r;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove(),e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(r=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),r&&r.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown",`.${e.params.pagination.bulletClass}`,e.a11y.onEnterKey)}};var ve={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create(){const e=this;v.extend(e,{a11y:{liveRegion:h(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(ye).forEach(t=>{e.a11y[t]=ye[t].bind(e)})},on:{init(){const e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy(){this.params.a11y.enabled&&this.a11y.destroy()}}};const ge={init(){const e=this;if(!e.params.history)return;if(!d.history||!d.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);const t=e.history;t.initialized=!0,t.paths=ge.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||d.addEventListener("popstate",e.history.setHistoryPopState))},destroy(){const e=this;e.params.history.replaceState||d.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState(){const e=this;e.history.paths=ge.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues(){const e=d.location.pathname.slice(1).split("/").filter(e=>""!==e),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory(e,t){const r=this;if(!r.history.initialized||!r.params.history.enabled)return;const n=r.slides.eq(t);let o=ge.slugify(n.attr("data-history"));d.location.pathname.includes(e)||(o=`${e}/${o}`);const c=d.history.state;c&&c.value===o||(r.params.history.replaceState?d.history.replaceState({value:o},null,o):d.history.pushState({value:o},null,o))},slugify:text=>text.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),scrollToSlide(e,t,r){const n=this;if(t)for(let i=0,o=n.slides.length;i<o;i+=1){const o=n.slides.eq(i);if(ge.slugify(o.attr("data-history"))===t&&!o.hasClass(n.params.slideDuplicateClass)){const t=o.index();n.slideTo(t,e,r)}}else n.slideTo(0,e,r)}};var _e={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const e=this;v.extend(e,{history:{init:ge.init.bind(e),setHistory:ge.setHistory.bind(e),setHistoryPopState:ge.setHistoryPopState.bind(e),scrollToSlide:ge.scrollToSlide.bind(e),destroy:ge.destroy.bind(e)}})},on:{init(){const e=this;e.params.history.enabled&&e.history.init()},destroy(){const e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd(){const e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)},slideChange(){const e=this;e.history.initialized&&e.params.cssMode&&e.history.setHistory(e.params.history.key,e.activeIndex)}}};const be={onHashCange(){const e=this;e.emit("hashChange");const t=c.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){const r=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(void 0===r)return;e.slideTo(r)}},setHash(){const e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&d.history&&d.history.replaceState)d.history.replaceState(null,null,`#${e.slides.eq(e.activeIndex).attr("data-hash")}`||""),e.emit("hashSet");else{const t=e.slides.eq(e.activeIndex),r=t.attr("data-hash")||t.attr("data-history");c.location.hash=r||"",e.emit("hashSet")}},init(){const e=this;if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;e.hashNavigation.initialized=!0;const t=c.location.hash.replace("#","");if(t){const r=0;for(let i=0,n=e.slides.length;i<n;i+=1){const n=e.slides.eq(i);if((n.attr("data-hash")||n.attr("data-history"))===t&&!n.hasClass(e.params.slideDuplicateClass)){const t=n.index();e.slideTo(t,r,e.params.runCallbacksOnInit,!0)}}}e.params.hashNavigation.watchState&&h(d).on("hashchange",e.hashNavigation.onHashCange)},destroy(){const e=this;e.params.hashNavigation.watchState&&h(d).off("hashchange",e.hashNavigation.onHashCange)}};var Ee={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create(){const e=this;v.extend(e,{hashNavigation:{initialized:!1,init:be.init.bind(e),destroy:be.destroy.bind(e),setHash:be.setHash.bind(e),onHashCange:be.onHashCange.bind(e)}})},on:{init(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy(){const e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd(){const e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()},slideChange(){const e=this;e.hashNavigation.initialized&&e.params.cssMode&&e.hashNavigation.setHash()}}};const we={run(){const e=this,t=e.slides.eq(e.activeIndex);let r=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(r=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=v.nextTick(()=>{e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,
2!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")),e.params.cssMode&&e.autoplay.running&&e.autoplay.run()},r)},start(){const e=this;return void 0===e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop(){const e=this;return!!e.autoplay.running&&(void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause(e){const t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}};var Ae={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create(){const e=this;v.extend(e,{autoplay:{running:!1,paused:!1,run:we.run.bind(e),start:we.start.bind(e),stop:we.stop.bind(e),pause:we.pause.bind(e),onVisibilityChange(){"hidden"===document.visibilityState&&e.autoplay.running&&e.autoplay.pause(),"visible"===document.visibilityState&&e.autoplay.paused&&(e.autoplay.run(),e.autoplay.paused=!1)},onTransitionEnd(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init(){const e=this;e.params.autoplay.enabled&&(e.autoplay.start(),document.addEventListener("visibilitychange",e.autoplay.onVisibilityChange))},beforeTransitionStart(e,t){const r=this;r.autoplay.running&&(t||!r.params.autoplay.disableOnInteraction?r.autoplay.pause(e):r.autoplay.stop())},sliderFirstMove(){const e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},touchEnd(){const e=this;e.params.cssMode&&e.autoplay.paused&&!e.params.autoplay.disableOnInteraction&&e.autoplay.run()},destroy(){const e=this;e.autoplay.running&&e.autoplay.stop(),document.removeEventListener("visibilitychange",e.autoplay.onVisibilityChange)}}};const Te={setTranslate(){const e=this,{slides:t}=e;for(let i=0;i<t.length;i+=1){const t=e.slides.eq(i);let r=-t[0].swiperSlideOffset;e.params.virtualTranslate||(r-=e.translate);let n=0;e.isHorizontal()||(n=r,r=0);const o=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:o}).transform(`translate3d(${r}px, ${n}px, 0px)`)}},setTransition(e){const t=this,{slides:r,$wrapperEl:n}=t;if(r.transition(e),t.params.virtualTranslate&&0!==e){let e=!1;r.transitionEnd(()=>{if(e)return;if(!t||t.destroyed)return;e=!0,t.animating=!1;const r=["webkitTransitionEnd","transitionend"];for(let i=0;i<r.length;i+=1)n.trigger(r[i])})}}};var Oe={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const e=this;v.extend(e,{fadeEffect:{setTranslate:Te.setTranslate.bind(e),setTransition:Te.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if("fade"!==e.params.effect)return;e.classNames.push(`${e.params.containerModifierClass}fade`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};v.extend(e.params,t),v.extend(e.originalParams,t)},setTranslate(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}};const Se={setTranslate(){const e=this,{$el:t,$wrapperEl:r,slides:n,width:o,height:c,rtlTranslate:l,size:d}=e,f=e.params.cubeEffect,m=e.isHorizontal(),y=e.virtual&&e.params.virtual.enabled;let v,_=0;f.shadow&&(m?(v=r.find(".swiper-cube-shadow"),0===v.length&&(v=h('<div class="swiper-cube-shadow"></div>'),r.append(v)),v.css({height:`${o}px`})):(v=t.find(".swiper-cube-shadow"),0===v.length&&(v=h('<div class="swiper-cube-shadow"></div>'),t.append(v))));for(let i=0;i<n.length;i+=1){const e=n.eq(i);let t=i;y&&(t=parseInt(e.attr("data-swiper-slide-index"),10));let r=90*t,o=Math.floor(r/360);l&&(r=-r,o=Math.floor(-r/360));
2const progress=Math.max(Math.min(e[0].progress,1),-1);let c=0,v=0,E=0;t%4==0?(c=4*-o*d,E=0):(t-1)%4==0?(c=0,E=4*-o*d):(t-2)%4==0?(c=d+4*o*d,E=d):(t-3)%4==0&&(c=-d,E=3*d+4*d*o),l&&(c=-c),m||(v=c,c=0);const w=`rotateX(${m?0:-r}deg) rotateY(${m?r:0}deg) translate3d(${c}px, ${v}px, ${E}px)`;if(progress<=1&&progress>-1&&(_=90*t+90*progress,l&&(_=90*-t-90*progress)),e.transform(w),f.slideShadows){let t=m?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),r=m?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=h(`<div class="swiper-slide-shadow-${m?"left":"top"}"></div>`),e.append(t)),0===r.length&&(r=h(`<div class="swiper-slide-shadow-${m?"right":"bottom"}"></div>`),e.append(r)),t.length&&(t[0].style.opacity=Math.max(-progress,0)),r.length&&(r[0].style.opacity=Math.max(progress,0))}}if(r.css({"-webkit-transform-origin":`50% 50% -${d/2}px`,"-moz-transform-origin":`50% 50% -${d/2}px`,"-ms-transform-origin":`50% 50% -${d/2}px`,"transform-origin":`50% 50% -${d/2}px`}),f.shadow)if(m)v.transform(`translate3d(0px, ${o/2+f.shadowOffset}px, ${-o/2}px) rotateX(90deg) rotateZ(0deg) scale(${f.shadowScale})`);else{const e=Math.abs(_)-90*Math.floor(Math.abs(_)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),r=f.shadowScale,n=f.shadowScale/t,o=f.shadowOffset;v.transform(`scale3d(${r}, 1, ${n}) translate3d(0px, ${c/2+o}px, ${-c/2/n}px) rotateX(-90deg)`)}const E=Y.isSafari||Y.isWebView?-d/2:0;r.transform(`translate3d(0px,0,${E}px) rotateX(${e.isHorizontal()?0:_}deg) rotateY(${e.isHorizontal()?-_:0}deg)`)},setTransition(e){const t=this,{$el:r,slides:n}=t;n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&r.find(".swiper-cube-shadow").transition(e)}};var Ie={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create(){const e=this;v.extend(e,{cubeEffect:{setTranslate:Se.setTranslate.bind(e),setTransition:Se.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if("cube"!==e.params.effect)return;e.classNames.push(`${e.params.containerModifierClass}cube`),e.classNames.push(`${e.params.containerModifierClass}3d`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};v.extend(e.params,t),v.extend(e.originalParams,t)},setTranslate(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}};const Ce={setTranslate(){const e=this,{slides:t,rtlTranslate:r}=e;for(let i=0;i<t.length;i+=1){const n=t.eq(i);let progress=n[0].progress;e.params.flipEffect.limitRotation&&(progress=Math.max(Math.min(n[0].progress,1),-1));let o=-180*progress,c=0,l=-n[0].swiperSlideOffset,d=0;if(e.isHorizontal()?r&&(o=-o):(d=l,l=0,c=-o,o=0),n[0].style.zIndex=-Math.abs(Math.round(progress))+t.length,e.params.flipEffect.slideShadows){let t=e.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),r=e.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom");0===t.length&&(t=h(`<div class="swiper-slide-shadow-${e.isHorizontal()?"left":"top"}"></div>`),n.append(t)),0===r.length&&(r=h(`<div class="swiper-slide-shadow-${e.isHorizontal()?"right":"bottom"}"></div>`),n.append(r)),t.length&&(t[0].style.opacity=Math.max(-progress,0)),r.length&&(r[0].style.opacity=Math.max(progress,0))}n.transform(`translate3d(${l}px, ${d}px, 0px) rotateX(${c}deg) rotateY(${o}deg)`)}},setTransition(e){const t=this,{slides:r,activeIndex:n,$wrapperEl:o}=t;if(r.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){let e=!1;r.eq(n).transitionEnd(function(){if(e)return;if(!t||t.destroyed)return;e=!0,t.animating=!1;const r=["webkitTransitionEnd","transitionend"];for(let i=0;i<r.length;i+=1)o.trigger(r[i])})}}};var Ne={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create(){const e=this;v.extend(e,{flipEffect:{setTranslate:Ce.setTranslate.bind(e),setTransition:Ce.setTransition.bind(e)}})},on:{beforeInit(){const e=this;if("flip"!==e.params.effect)return;e.classNames.push(`${e.params.containerModifierClass}flip`),e.classNames.push(`${e.params.containerModifierClass}3d`);const t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};v.extend(e.params,t),v.extend(e.originalParams,t)},setTranslate(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}};const Pe={setTranslate(){const e=this,{width:t,height:r,slides:n,$wrapperEl:o,slidesSizesGrid:c}=e,l=e.params.coverflowEffect,d=e.isHorizontal(),f=e.translate,m=d?t/2-f:r/2-f,y=d?l.rotate:-l.rotate,v=l.depth;for(let i=0,e=n.length;i<e;i+=1){const e=n.eq(i),t=c[i],r=(m-e[0].swiperSlideOffset-t/2)/t*l.modifier;let o=d?y*r:0,f=d?0:y*r,_=-v*Math.abs(r),E=l.stretch;"string"==typeof E&&-1!==E.indexOf("%")&&(E=parseFloat(l.stretch)/100*t);let w=d?0:E*r,A=d?E*r:0,T=1-(1-l.scale)*Math.abs(r);Math.abs(A)<.001&&(A=0),Math.abs(w)<.001&&(w=0),Math.abs(_)<.001&&(_=0),Math.abs(o)<.001&&(o=0),Math.abs(f)<.001&&(f=0),Math.abs(T)<.001&&(T=0);const O=`translate3d(${A}px,${w}px,${_}px)  rotateX(${f}deg) rotateY(${o}deg) scale(${T})`;if(e.transform(O),e[0].style.zIndex=1-Math.abs(Math.round(r)),l.slideShadows){let t=d?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=d?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=h(`<div class="swiper-slide-shadow-${d?"left":"top"}"></div>`),e.append(t)),0===n.length&&(n=h(`<div class="swiper-slide-shadow-${d?"right":"bottom"}"></div>`),e.append(n)),t.length&&(t[0].style.opacity=r>0?r:0),n.length&&(n[0].style.opacity=-r>0?-r:0)}}if(_.pointerEvents||_.prefixedPointerEvents){o[0].style.perspectiveOrigin=`${m}px 50%`}},setTransition(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}};var Re={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}},create(){const e=this;v.extend(e,{coverflowEffect:{setTranslate:Pe.setTranslate.bind(e),setTransition:Pe.setTransition.bind(e)}})},on:{beforeInit(){const e=this;"coverflow"===e.params.effect&&(e.classNames.push(`${e.params.containerModifierClass}coverflow`),e.classNames.push(`${e.params.containerModifierClass}3d`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}};const Le={init(){const e=this,{thumbs:t}=e.params,r=e.constructor;t.swiper instanceof r?(e.thumbs.swiper=t.swiper,v.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),v.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):v.isObject(t.swiper)&&(e.thumbs.swiper=new r(v.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick(){const e=this,t=e.thumbs.swiper;if(!t)return;const r=t.clickedIndex,n=t.clickedSlide;if(n&&h(n).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==r)return;let o;if(o=t.params.loop?parseInt(h(t.clickedSlide).attr("data-swiper-slide-index"),10):r,e.params.loop){let t=e.activeIndex;e.slides.eq(t).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,t=e.activeIndex);const r=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${o}"]`).eq(0).index(),n=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${o}"]`).eq(0).index();o=void 0===r?n:void 0===n?r:n-t<t-r?n:r}e.slideTo(o)},update(e){const t=this,r=t.thumbs.swiper;if(!r)return;const n="auto"===r.params.slidesPerView?r.slidesPerViewDynamic():r.params.slidesPerView,o=t.params.thumbs.autoScrollOffset,c=o&&!r.params.loop;if(t.realIndex!==r.realIndex||c){let l,d,f=r.activeIndex;if(r.params.loop){r.slides.eq(f).hasClass(r.params.slideDuplicateClass)&&(r.loopFix(),r._clientLeft=r.$
2wrapperEl[0].clientLeft,f=r.activeIndex);const e=r.slides.eq(f).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),n=r.slides.eq(f).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();l=void 0===e?n:void 0===n?e:n-f===f-e?f:n-f<f-e?n:e,d=t.activeIndex>t.previousIndex?"next":"prev"}else l=t.realIndex,d=l>t.previousIndex?"next":"prev";c&&(l+="next"===d?o:-1*o),r.visibleSlidesIndexes&&r.visibleSlidesIndexes.indexOf(l)<0&&(r.params.centeredSlides?l=l>f?l-Math.floor(n/2)+1:l+Math.floor(n/2)-1:l>f&&(l=l-n+1),r.slideTo(l,e?0:void 0))}let l=1;const d=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(l=1),l=Math.floor(l),r.slides.removeClass(d),r.params.loop||r.params.virtual&&r.params.virtual.enabled)for(let i=0;i<l;i+=1)r.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+i}"]`).addClass(d);else for(let i=0;i<l;i+=1)r.slides.eq(t.realIndex+i).addClass(d)}};const De=[V,z,$,W,G,X,Z,te,ne,oe,se,ue,de,fe,me,ve,_e,Ee,Ae,Oe,Ie,Ne,Re,{name:"thumbs",params:{thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create(){const e=this;v.extend(e,{thumbs:{swiper:null,init:Le.init.bind(e),update:Le.update.bind(e),onThumbClick:Le.onThumbClick.bind(e)}})},on:{beforeInit(){const e=this,{thumbs:t}=e.params;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange(){this.thumbs.swiper&&this.thumbs.update()},update(){this.thumbs.swiper&&this.thumbs.update()},resize(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate(){this.thumbs.swiper&&this.thumbs.update()},setTransition(e){const t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy(){const e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];void 0===H.use&&(H.use=H.Class.use,H.installModule=H.Class.installModule),H.use(De);t.default=H}]]);

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.