PageSourceSearch

https://www.lenstore.it/_nuxt/afce290.js

js lenstore.it collected 2026-09-25 08:20:56 UTC 1,205,959 bytes, 2 lines download raw bytes

1/*! For license information please see LICENSES */
2(window.webpackJsonp=window.webpackJsonp||[]).push([[145],{0:function(e,t,n){"use strict";n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return o})),n.d(t,"j",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return h})),n.d(t,"q",(function(){return f})),n.d(t,"p",(function(){return m})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return v})),n.d(t,"wb",(function(){return _})),n.d(t,"xb",(function(){return E})),n.d(t,"yb",(function(){return T})),n.d(t,"Sb",(function(){return A})),n.d(t,"Ub",(function(){return w})),n.d(t,"Xb",(function(){return S})),n.d(t,"Tb",(function(){return O})),n.d(t,"Eb",(function(){return I})),n.d(t,"bc",(function(){return C})),n.d(t,"ac",(function(){return P})),n.d(t,"cc",(function(){return N})),n.d(t,"zb",(function(){return D})),n.d(t,"o",(function(){return R})),n.d(t,"k",(function(){return L})),n.d(t,"f",(function(){return k})),n.d(t,"e",(function(){return x})),n.d(t,"X",(function(){return M})),n.d(t,"sb",(function(){return U})),n.d(t,"rb",(function(){return F})),n.d(t,"tb",(function(){return j})),n.d(t,"ub",(function(){return V})),n.d(t,"vb",(function(){return B})),n.d(t,"Wb",(function(){return Y})),n.d(t,"Kb",(function(){return H})),n.d(t,"Jb",(function(){return $})),n.d(t,"Ab",(function(){return z})),n.d(t,"Bb",(function(){return K})),n.d(t,"Cb",(function(){return W})),n.d(t,"Nb",(function(){return G})),n.d(t,"Lb",(function(){return Q})),n.d(t,"Yb",(function(){return X})),n.d(t,"Qb",(function(){return Z})),n.d(t,"Zb",(function(){return J})),n.d(t,"V",(function(){return ee})),n.d(t,"W",(function(){return te})),n.d(t,"fc",(function(){return ne})),n.d(t,"ec",(function(){return re})),n.d(t,"dc",(function(){return ie})),n.d(t,"Ob",(function(){return oe})),n.d(t,"r",(function(){return ae})),n.d(t,"s",(function(){return se})),n.d(t,"d",(function(){return ce})),n.d(t,"c",(function(){return le})),n.d(t,"Rb",(function(){return ue})),n.d(t,"Vb",(function(){return de})),n.d(t,"Fb",(function(){return pe})),n.d(t,"Hb",(function(){return he})),n.d(t,"Db",(function(){return fe})),n.d(t,"Mb",(function(){return me})),n.d(t,"Pb",(function(){return ge})),n.d(t,"qc",(function(){return ye})),n.d(t,"vc",(function(){return ve})),n.d(t,"gc",(function(){return _e})),n.d(t,"uc",(function(){return be})),n.d(t,"nc",(function(){return Ee})),n.d(t,"mc",(function(){return Te})),n.d(t,"oc",(function(){return Ae})),n.d(t,"jc",(function(){return we})),n.d(t,"sc",(function(){return Se})),n.d(t,"tc",(function(){return Oe})),n.d(t,"rc",(function(){return Ie})),n.d(t,"pc",(function(){return Ce})),n.d(t,"Gb",(function(){return Pe})),n.d(t,"Ib",(function(){return Ne})),n.d(t,"kc",(function(){return De})),n.d(t,"lc",(function(){return Re})),n.d(t,"hc",(function(){return Le})),n.d(t,"ic",(function(){return ke})),n.d(t,"y",(function(){return xe})),n.d(t,"H",(function(){return Me})),n.d(t,"v",(function(){return Ue})),n.d(t,"t",(function(){return Fe})),n.d(t,"S",(function(){return je})),n.d(t,"R",(function(){return Ve})),n.d(t,"Q",(function(){return Be})),n.d(t,"D",(function(){return Ye})),n.d(t,"C",(function(){return He})),n.d(t,"z",(function(){return $e})),n.d(t,"A",(function(){return ze})),n.d(t,"L",(function(){return qe})),n.d(t,"O",(function(){return Ke})),n.d(t,"K",(function(){return We})),n.d(t,"u",(function(){return Ge})),n.d(t,"M",(function(){return Qe})),n.d(t,"T",(function(){return Xe})),n.d(t,"G",(function(){return Ze})),n.d(t,"E",(function(){return Je})),n.d(t,"w",(function(){return et})),n.d(t,"x",(function(){return tt})),n.d(t,"F",(function(){return nt})),n.d(t,"B",(function(){return it})),n.d(t,"P",(function(){return ot})),n.d(t,"J",(function(){return at})),n.d(t,"I",(function(){return st})),n.d(t,"U",(function(){return ct})),n.d(t,"N",(function(){return lt})),n.d(t,"n",(function(){return ut})),n.d(t,"hb",(function(){return pt})),n.d(t,"gb",(function(){return ht})),n.d(t,"Z",(function(){return ft})),n.d(t,"ab",(function(){return mt})),n.d(t,"bb",(function(){return gt})),n.d(t,"cb",(function(){return yt})),n.d(t,"db",(function(){return vt})),n.d(t,"ib",(function(){return _t})),n.d(t,"jb",(function(){return bt})),n.d(t,"lb",(function(){return Et})),n.d(t,"ob",(function(){return Tt})),n.d(t,"nb",(function(){return At})),n.d(t,"kb",(function(){return wt})),n.d(t,"mb",(function(){return St})),n.d(t,"pb",(function(){return Ot})),n.d(t,"fb",(function(){return It})),n.d(t,"eb",(function(){return Ct})),n.d(t,"qb",(function(){return Pt})),n.d(t,"Y",(function(){return Nt}));var r=0,o=1,c=2,l=3,d=10,h=11,f=23,m=24,y=25,v=26,_=27,E=28,T=29,A=30,w=31,S=32,O=33,I=35,C=36,P=37,N=38,D=39,R=40,L=41,k=100,x=101,M=103,U=104,F=105,j=106,V=107,B=108,Y=109,H=110,$=111,z=112,K=113,W=114,G=115,Q=116,X=117,Z=118,J=119,ee=120,te=121,ne=122,re=123,ie=124,oe=125,ae=200,se=201,ce=202,le=203,ue=204,de
2=205,pe=206,he=207,fe=208,me=209,ge=210,ye=211,ve=212,_e=213,be=214,Ee=215,Te=216,Ae=217,we=218,Se=219,Oe=220,Ie=221,Ce=222,Pe=223,Ne=224,De=225,Re=226,Le=227,ke=228,xe=300,Me=301,Ue=302,Fe=303,je=304,Ve=305,Be=306,Ye=307,He=308,$e=309,ze=310,qe=311,Ke=312,We=313,Ge=314,Qe=315,Xe=316,Ze=317,Je=318,et=319,tt=320,nt=321,it=322,ot=324,at=325,st=326,ct=327,lt=328,ut=329,pt="settings",ht="Factory instantiation",ft="Client instantiation",mt="engine",gt=mt+":combiner: ",yt=mt+":matcher: ",vt=mt+":value: ",_t="sync",bt=_t+":sync-manager: ",Et=_t+":offline: ",Tt=_t+":streaming: ",At=_t+":featureflag-changes: ",wt=_t+":my-segments: ",St=_t+":polling-manager: ",Ot=_t+":submitter: ",It="impressions-tracker: ",Ct="events-tracker: ",Pt="unique-keys-tracker: ",Nt="cleanup: "},1:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return m})),n.d(t,"h",(function(){return y})),n.d(t,"i",(function(){return v})),n.d(t,"j",(function(){return _})),n.d(t,"k",(function(){return E})),n.d(t,"n",(function(){return T})),n.d(t,"l",(function(){return A})),n.d(t,"m",(function(){return w})),n.d(t,"o",(function(){return S})),n.d(t,"p",(function(){return O})),n.d(t,"q",(function(){return I}));var r=n(41);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 n=Object.keys(source),i=0;i<n.length&&!t;i++){var r=n[i];e(source[r],r,source)&&(t=source[r])}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(n){return t(e[n],n,e)})),e}function h(e,t,n){var r=n;try{var o=t.split("."),c=e;o.forEach((function(e){return c=c[e]})),void 0!==c&&(r=c)}catch(e){}return r}function f(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 T(e){return E(e)?e.toUpperCase():e}function A(e,source){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];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(r.e)([o,c],t,!1))}return o}function w(e,sub){return!(!E(e)||!E(sub))&&e.slice(0,sub.length)===sub}function S(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 O(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)}))}},106: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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},108:function(e,t,n){"use strict";n.r(t),function(e){const n="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,r="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.dis
2patchEvent({type:"abort",target:this.signal})}},o="function"==typeof AbortSignal,c="function"==typeof r.AbortSignal,l=o?AbortSignal:c?r.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,h=(e,t)=>{const code=`LRU_CACHE_OPTION_${e}`;y(code)&&v(code,`${e} option`,`options.${t}`,w)},f=(e,t)=>{const code=`LRU_CACHE_METHOD_${e}`;if(y(code)){const{prototype:n}=w,{get:r}=Object.getOwnPropertyDescriptor(n,e);v(code,`${e} method`,`cache.${t}()`,r)}},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,n)=>{d.add(code);m(`The ${e} is deprecated. Please use ${t} instead.`,"DeprecationWarning",code,n)},_=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?T:null:null;class T 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 w{constructor(e={}){const{max:t=0,ttl:n,ttlResolution:r=1,ttlAutopurge:o,updateAgeOnGet:c,updateAgeOnHas:l,allowStale:f,dispose:v,disposeAfter:T,noDisposeOnSet:S,noUpdateTTL:O,maxSize:I=0,maxEntrySize:C=0,sizeCalculation:P,fetchMethod:N,fetchContext:D,noDeleteOnFetchRejection:R,noDeleteOnStaleGet:L,allowStaleOnFetchRejection:k,allowStaleOnFetchAbort:x,ignoreFetchAbort:M}=e,{length:U,maxAge:F,stale:j}=e instanceof w?{}:e;if(0!==t&&!_(t))throw new TypeError("max option must be a nonnegative integer");const V=t?E(t):Array;if(!V)throw new Error("invalid max value: "+t);if(this.max=t,this.maxSize=I,this.maxEntrySize=C||this.maxSize,this.sizeCalculation=P||U,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=N||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=D,!this.fetchMethod&&void 0!==D)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 V(t),this.prev=new V(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 T?(this.disposeAfter=T,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!S,this.noUpdateTTL=!!O,this.noDeleteOnFetchRejection=!!R,this.allowStaleOnFetchRejection=!!k,this.allowStaleOnFetchAbort=!!x,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=!!f||!!j,this.noDeleteOnStaleGet=!!L,this.updateAgeOnGet=!!c,this.updateAgeOnHas=!!l,this.ttlResolution=_(r)||0===r?r:1,this.ttlAutopurge=!!o,this.ttl=n||F||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,w)}}j&&h("stale","allowStale"),F&&h("maxAge","ttl"),U&&h("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new T(this.max),this.starts=new T(this.max),this.setItemTTL=(e,t,r=n.now())=>{if(this.starts[e]=0!==t?r:0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const n=setTimeout((()=>{this.isStale(e)&&this.delete(this.keyList[e])}),t+1);n.unref&&n.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?n.now():0},this.statusTTL=(n,r)=>{n&&(n.ttl=this.ttls[r],n.start=this.starts[r],n.now=e||t(),n.remainingTTL=n.now+n.ttl-n.start)};let e=0;const t=()=>{const t=n.now();if(this.ttlResolution>0){e=t;const n=setTimeout((()=>e=0),this.ttlResolution);n.unref&&n.unref()}return t};this.getRemainingTTL=n=>{const r=this.keyMap.get(n);return void 0===r?0:0===this.ttls[r]||0===this.starts[r]?1/0:this.starts[r]+this.ttls[r]-(e||t())},this.isStale=n=>0!==this.ttls[n]&&0!==this.starts[n]&&(e||t())-this.starts[n]>this.ttls[n]}updateItemAge(e){}statusTTL(e,t){}
2setItemTTL(e,t,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new T(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,t,n,r)=>{if(this.isBackgroundFetch(t))return 0;if(!_(n)){if(!r)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 r)throw new TypeError("sizeCalculation must be a function");if(n=r(t,e),!_(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return n},this.addItemSize=(e,t,n)=>{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],n&&(n.entrySize=t,n.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,t){}requireSize(e,t,n,r){if(n||r)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 n=this.valList[i],r=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;if(void 0!==r&&e(r,this.keyList[i],this))return this.get(this.keyList[i],t)}}forEach(e,t=this){for(const i of this.indexes()){const n=this.valList[i],r=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==r&&e.call(t,r,this.keyList[i],this)}}rforEach(e,t=this){for(const i of this.rindexes()){const n=this.valList[i],r=this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==r&&e.call(t,r,this.keyList[i],this)}}get prune(){return f("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],r=this.valList[i],o=this.isBackgroundFetch(r)?r.__staleWhileFetching:r;if(void 0===o)continue;const c={value:o};if(this.ttls){c.ttl=this.ttls[i];const e=n.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,r]of e){if(r.start){const e=Date.now()-r.start;r.start=n.now()-e}this.set(t,r.value,r)}}dispose(e,t,n){}set(e,t,{ttl:n=this.ttl,start:r,noDisposeOnSet:o=this.noDisposeOnSet,size:c=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,status:h}={}){if(c=this.requireSize(e,t,c,l),this.maxEntrySize&&c>this.maxEntrySize)return h&&(h.set="miss",h.maxEntrySizeExceeded=!0),this.delete(e),this;let f=0===this.size?void 0:this.keyMap.get(e);if(void 0===f)f=this.newIndex(),this.keyList[f]=e,this.valList[f]=t,this.keyMap.set(e,f),this.next[this.tail]=f,this.prev[f]=this.tail,this.tail=f,this.size++,this.addItemSize(f,c,h),h&&(h.set="add"),d=!1;else{this.moveToTail(f);const n=this.valList[f];
2if(t!==n){if(this.isBackgroundFetch(n)?n.__abortController.abort(new Error("replaced")):o||(this.dispose(n,e,"set"),this.disposeAfter&&this.disposed.push([n,e,"set"])),this.removeItemSize(f),this.valList[f]=t,this.addItemSize(f,c,h),h){h.set="replace";const e=n&&this.isBackgroundFetch(n)?n.__staleWhileFetching:n;void 0!==e&&(h.oldValue=e)}}else h&&(h.set="update")}if(0===n||0!==this.ttl||this.ttls||this.initializeTTLTracking(),d||this.setItemTTL(f,n,r),this.statusTTL(h,f),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],n=this.valList[head];return this.isBackgroundFetch(n)?n.__abortController.abort(new Error("evicted")):(this.dispose(n,t,"evict"),this.disposeAfter&&this.disposed.push([n,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:n}={}){const r=this.keyMap.get(e);if(void 0!==r){if(!this.isStale(r))return t&&this.updateItemAge(r),n&&(n.has="hit"),this.statusTTL(n,r),!0;n&&(n.has="stale",this.statusTTL(n,r))}else n&&(n.has="miss");return!1}peek(e,{allowStale:t=this.allowStale}={}){const n=this.keyMap.get(e);if(void 0!==n&&(t||!this.isStale(n))){const e=this.valList[n];return this.isBackgroundFetch(e)?e.__staleWhileFetching:e}}backgroundFetch(e,t,n,o){const c=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(c))return c;const l=new r;n.signal&&n.signal.addEventListener("abort",(()=>l.abort(n.signal.reason)));const d={signal:l.signal,options:n,context:o},h=(r,o=!1)=>{const{aborted:c}=l.signal,h=n.ignoreFetchAbort&&void 0!==r;return n.status&&(c&&!o?(n.status.fetchAborted=!0,n.status.fetchError=l.signal.reason,h&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),!c||h||o?(this.valList[t]===p&&(void 0===r?p.__staleWhileFetching?this.valList[t]=p.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,r,d.options))),r):f(l.signal.reason)},f=r=>{const{aborted:o}=l.signal,c=o&&n.allowStaleOnFetchAbort,d=c||n.allowStaleOnFetchRejection,h=d||n.noDeleteOnFetchRejection;if(this.valList[t]===p){!h||void 0===p.__staleWhileFetching?this.delete(e):c||(this.valList[t]=p.__staleWhileFetching)}if(d)return n.status&&void 0!==p.__staleWhileFetching&&(n.status.returnedStale=!0),p.__staleWhileFetching;if(p.__returned===p)throw r};n.status&&(n.status.fetchDispatched=!0);const p=new Promise(((t,r)=>{this.fetchMethod(e,c,d).then((e=>t(e)),r),l.signal.addEventListener("abort",(()=>{n.ignoreFetchAbort&&!n.allowStaleOnFetchAbort||(t(),n.allowStaleOnFetchAbort&&(t=e=>h(e,!0)))}))})).then(h,(e=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=e),f(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:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:c=this.noDisposeOnSet,size:l=0,sizeCalculation:d=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:v=this.allowStaleOnFetchAbort,fetchContext:_=this.fetchContext,forceRefresh:E=!1,status:T,signal:A}={}){if(!this.fetchMethod)return T&&(T.fetch="get"),this.get(e,{allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,status:T});const w={allowStale:t,updateAgeOnGet:n,noDeleteOnStaleGet:r,ttl:o,noDisposeOnSet:c,size:l,sizeCalculation:d,noUpdateTTL:h,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:v,ignoreFetchAbort:y,status:T,signal:A};let S=this.keyMap.get(e);if(void 0===S){T&&(T.fetch="miss");const p=this.backgroundFetch(e,S,w,_);return p.__returned=p}{const r=this.valList[S];
2if(this.isBackgroundFetch(r)){const e=t&&void 0!==r.__staleWhileFetching;return T&&(T.fetch="inflight",e&&(T.returnedStale=!0)),e?r.__staleWhileFetching:r.__returned=r}const o=this.isStale(S);if(!E&&!o)return T&&(T.fetch="hit"),this.moveToTail(S),n&&this.updateItemAge(S),this.statusTTL(T,S),r;const p=this.backgroundFetch(e,S,w,_),c=void 0!==p.__staleWhileFetching,l=c&&t;return T&&(T.fetch=c&&o?"stale":"refresh",l&&o&&(T.returnedStale=!0)),l?p.__staleWhileFetching:p.__returned=p}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:r=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):(r||this.delete(e),o&&(o.returnedStale=t),t?l:void 0)):(o&&(o.get="hit"),d?l.__staleWhileFetching:(this.moveToTail(c),n&&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 f("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const n=this.keyMap.get(e);if(void 0!==n)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(n);const t=this.valList[n];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[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}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 n=this.keyList[e];this.dispose(t,n,"delete"),this.disposeAfter&&this.disposed.push([t,n,"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 f("reset","clear"),this.clear}get length(){return((e,t)=>{const code=`LRU_CACHE_PROPERTY_${e}`;if(y(code)){const{prototype:n}=w,{get:r}=Object.getOwnPropertyDescriptor(n,e);v(code,`${e} property`,`cache.${t}`,r)}})("length","size"),this.size}static get AbortController(){return r}static get AbortSignal(){return l}}t.default=w}.call(this,n(49))},109:function(e,t,n){var r,o,c;o=[t],r=function(e){"use strict";function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var t=!1;if("undefined"!=typeof window){var n={get passive(){t=!0}};window.addEventListener("testPassive",null,n),window.removeEventListener("testPassive",null,n)}function r(e){return u.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))}function o(e){var t=e||window.event;return!!r(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)}function c(){setTimeout((function(){void 0!==h&&(document.body.style.paddingRight=h,h=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,h=void 0;e.disableBodyScroll=function(e,n){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:n||{}};u=[].concat(i(u),[c]),e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,c,d,i;1===t.targetTouches.length&&(c=e,i=(n=t).targetTouches[0].clientY-l,r(n.target)||(c&&0===c.scrollTop&&0<i||(d=c)&&d.scrollHeight-d.scrollTop<=d.clientHeight&&i<0?o(n):n.stopPropagation()))},s||(document.addEventListener("touchmove",o,t?{passive:!1}:void 0),s=!0)}}else{m=n,setTimeout((function(){if(void 0===h){var e=!!m&&!0===m.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(h=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===d&&(d=document.body.style.overflow,document.body.style.overflow="hidden")}));var f={targetElement:e,options:n||{}};u=[].concat(i(u),[f])}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 r?r.apply(t,o):r)||(e.exports=c)},11:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=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}},143:function(e,t,n){"use strict";(function(e){var r=n(710),o=n(711),c=n(712);function l(){return h.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(e,t){if(l()<t)throw new RangeError("Invalid typed array length");return h.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=h.prototype:(null===e&&(e=new h(t)),e.length=t),e}function h(e,t,n){if(!(h.TYPED_ARRAY_SUPPORT||this instanceof h))return new h(e,t,n);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 f(this,e,t,n)}function f(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);h.TYPED_ARRAY_SUPPORT?(e=t).__proto__=h.prototype:e=v(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!h.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|E(t,n);e=d(e,r);var o=e.write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(h.isBuffer(t)){var n=0|_(t.length);return 0===(e=d(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?d(e,0):v(e,t);if("Buffer"===t.type&&c(t.data))return v(e,t.data)}var r;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)),!h.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function v(e,t){var n=t.length<0?0:0|_(t.length);e=d(e,n);for(var i=0;i<n;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(h.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 6,647 bytes, line 2
2(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return G(e).length;t=(""+t).toLowerCase(),r=!0}}function T(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return U(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return R(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function A(b,e,t){var i=b[e];b[e]=b[t],b[t]=i}function w(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=h.from(t,r)),h.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,o);if("number"==typeof t)return t&=255,h.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,o){var i,c=1,l=e.length,d=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;c=2,l/=2,d/=2,n/=2}function h(e,i){return 1===c?e[i]:e.readUInt16BE(i*c)}if(o){var f=-1;for(i=n;i<l;i++)if(h(e,i)===h(t,-1===f?0:i-f)){if(-1===f&&(f=i),i-f+1===d)return f*c}else-1!==f&&(i-=i-f),f=-1}else for(n+d>l&&(n=l-d),i=n;i>=0;i--){for(var m=!0,y=0;y<d;y++)if(h(e,i+y)!==h(t,y)){m=!1;break}if(m)return i}return-1}function O(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var c=t.length;if(c%2!=0)throw new TypeError("Invalid hex string");r>c/2&&(r=c/2);for(var i=0;i<r;++i){var l=parseInt(t.substr(2*i,2),16);if(isNaN(l))return i;e[n+i]=l}return i}function I(e,t,n,r){return X(G(t,e.length-n),e,n,r)}function C(e,t,n,r){return X(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,n,r)}function P(e,t,n,r){return C(e,t,n,r)}function N(e,t,n,r){return X(Q(t),e,n,r)}function D(e,t,n,r){return X(function(e,t){for(var n,r,o,c=[],i=0;i<e.length&&!((t-=2)<0);++i)r=(n=e.charCodeAt(i))>>8,o=n%256,c.push(o),c.push(r);return c}(t,e.length-n),e,n,r)}function R(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function L(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,c,l,d,h=e[i],f=null,m=h>239?4:h>223?3:h>191?2:1;if(i+m<=n)switch(m){case 1:h<128&&(f=h);break;case 2:128==(192&(o=e[i+1]))&&(d=(31&h)<<6|63&o)>127&&(f=d);break;case 3:o=e[i+1],c=e[i+2],128==(192&o)&&128==(192&c)&&(d=(15&h)<<12|(63&o)<<6|63&c)>2047&&(d<55296||d>57343)&&(f=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&h)<<18|(63&o)<<12|(63&c)<<6|63&l)>65535&&d<1114112&&(f=d)}null===f?(f=65533,m=1):f>65535&&(f-=65536,r.push(f>>>10&1023|55296),f=56320|1023&f),r.push(f),i+=m}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=k));return n}(r)}t.Buffer=h,t.SlowBuffer=function(e){+e!=e&&(e=0);return h.alloc(+e)},t.INSPECT_MAX_BYTES=50,h.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(),h.poolSize=8192,h._augment=function(e){return e.__proto__=h.prototype,e},h.from=function(e,t,n){return f(null,e,t,n)},h.TYPED_ARRAY_SUPPORT&&(h.prototype.__proto__=Uint8Array.prototype,h.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&h[Symbol.species]===h&&Object.defineProperty(h,Symbol.species,{value:null,configurable:!0})),h.alloc=function(e,t,n){return function(e,t,n,r){return m(t),t<=0?d(e,t):void 0!==n?"string"==typeof r?d(e,t).fill(n,r):d(e,t).fill(n):d(e,t)}(null,e,t,n)},h.allocUnsafe=function(e){return y(null,e)},h.allocUnsafeSlow=function(e){return y(null,e)},h.isBuffer=function(b){return!(null==b||!b._isBuffer)},h.compare=function(a,b){if(!h.isBuffer(a)||!h.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var e=a.length,t=b.length,i=0,n=Math.min(e,t);i<n;++i)if(a[i]!==b[i]){e=a[i],t=b[i];break}return e<t?-1:t<e?1:0},h.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}},h.concat=function(e,t){if(!c(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return h.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var n=h.allocUnsafe(t),r=0;for(i=0;i<e.length;++i){var o=e[i];if(!h.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,r),r+=o.length}return n},h.byteLength=E,h.prototype._isBuffer=!0,h.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},h.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},h.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},h.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?L(this,0,e):T.apply(this,arguments)},h.prototype.equals=function(b){if(!h.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===h.compare(this,b)},h.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"}
vendor: 9,844 bytes, line 2
2,h.prototype.compare=function(e,t,n,r,o){if(!h.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var c=(o>>>=0)-(r>>>=0),l=(n>>>=0)-(t>>>=0),d=Math.min(c,l),f=this.slice(r,o),m=e.slice(t,n),i=0;i<d;++i)if(f[i]!==m[i]){c=f[i],l=m[i];break}return c<l?-1:l<c?1:0},h.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},h.prototype.indexOf=function(e,t,n){return w(this,e,t,n,!0)},h.prototype.lastIndexOf=function(e,t,n){return w(this,e,t,n,!1)},h.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var c=!1;;)switch(r){case"hex":return O(this,e,t,n);case"utf8":case"utf-8":return I(this,e,t,n);case"ascii":return C(this,e,t,n);case"latin1":case"binary":return P(this,e,t,n);case"base64":return N(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,t,n);default:if(c)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),c=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function U(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=W(e[i]);return o}function F(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function V(e,t,n,r,o,c){if(!h.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(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function Y(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function H(e,t,n,r,o,c){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $(e,t,n,r,c){return c||H(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,c){return c||H(e,0,n,8),o.write(e,t,n,r,52,8),n+8}h.prototype.slice=function(e,t){var n,r=this.length;if((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),h.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=h.prototype;else{var o=t-e;n=new h(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},h.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},h.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},h.prototype.readUInt8=function(e,t){return t||j(e,1,this.length),this[e]},h.prototype.readUInt16LE=function(e,t){return t||j(e,2,this.length),this[e]|this[e+1]<<8},h.prototype.readUInt16BE=function(e,t){return t||j(e,2,this.length),this[e]<<8|this[e+1]},h.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]},h.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])},h.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},h.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||j(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},h.prototype.readInt8=function(e,t){return t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},h.prototype.readInt16LE=function(e,t){t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},h.prototype.readInt16BE=function(e,t){t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},h.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},h.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]},h.prototype.readFloatLE=function(e,t){return t||j(e,4,this.length),o.read(this,e,!0,23,4)},h.prototype.readFloatBE=function(e,t){return t||j(e,4,this.length),o.read(this,e,!1,23,4)},h.prototype.readDoubleLE=function(e,t){return t||j(e,8,this.length),o.read(this,e,!0,52,8)},h.prototype.readDoubleBE=function(e,t){return t||j(e,8,this.length),o.read(this,e,!1,52,8)},h.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||V(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},h.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||V(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},h.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,255,0),h.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},h.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},h.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,65535,0),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},h.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):Y(this,e,t,!0),t+4},h.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,4294967295,0),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},h.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=0,c=1,sub=0;for(this[t]=255&e;++i<n&&(c*=256);)e<0&&0===sub&&0!==this[t+i-1]&&(sub=1),this[t+i]=(e/c|0)-sub&255;return t+n},h.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);V(this,e,t,n,o-1,-o)}var i=n-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+n},h.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,1,127,-128),h.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},h.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):B(this,e,t,!0),t+2},h.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,2,32767,-32768),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):B(this,e,t,!1),t+2},h.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),h.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):Y(this,e,t,!0),t+4},h.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||V(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),h.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):Y(this,e,t,!1),t+4},h.prototype.writeFloatLE=function(e,t,n){return $(this,e,t,!0,n)},h.prototype.writeFloatBE=function(e,t,n){return $(this,e,t,!1,n)},h.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},h.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},h.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!h.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},h.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var code=e.charCodeAt(0);code<256&&(e=code)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!h.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var o=h.isBuffer(e)?e:G(new h(e,r).toString()),c=o.length;for(i=0;i<n-t;++i)this[i+t]=o[i%c]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function G(e,t){var n;t=t||1/0;for(var r=e.length,o=null,c=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>
2-1&&c.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&c.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&c.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&c.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;c.push(n)}else if(n<2048){if((t-=2)<0)break;c.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;c.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;c.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return c}function Q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(K,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(47))},144:function(e,t,n){"use strict";var r={};function o(code,e,t){t||(t=Error);var n=function(t){var n,r;function o(n,r,o){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,o))||this}return r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,o}(t);n.prototype.name=t.name,n.prototype.code=code,r[code]=n}function c(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(i){return String(i)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,o,l,d;if("string"==typeof t&&(o="not ",t.substr(!l||l<0?0:+l,o.length)===o)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))d="The ".concat(e," ").concat(r," ").concat(c(t,"type"));else{var h=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";d='The "'.concat(e,'" ').concat(h," ").concat(r," ").concat(c(t,"type"))}return d+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},145:function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=n(479),c=n(484);n(106)(f,o);for(var l=r(c.prototype),d=0;d<l.length;d++){var h=l[d];f.prototype[h]||(f.prototype[h]=c.prototype[h])}function f(e){if(!(this instanceof f))return new f(e);o.call(this,e),c.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",m)))}function m(){this._writableState.ended||t.nextTick(y,this)}function y(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,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)}})}).call(this,n(49))},148:function(e,t,n){"use strict";function r(){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}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}
2)),n.d(t,"c",(function(){return c}))},172:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._browserSupportsWebAuthnInternals=void 0,t.browserSupportsWebAuthn=function(){return r.stubThis(void 0!==(null===globalThis||void 0===globalThis?void 0:globalThis.PublicKeyCredential)&&"function"==typeof globalThis.PublicKeyCredential)},n(151);var r=t._browserSupportsWebAuthnInternals={stubThis:function(e){return e}}},174:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype=new Error,r.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 r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-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 n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function l(e){this.message=e}function d(e,t){if("string"!=typeof e)throw new l("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(c(e.split(".")[n]))}catch(e){throw new l("Invalid token specified: "+e.message)}}l.prototype=new Error,l.prototype.name="InvalidTokenError";const a=d;a.default=d,a.InvalidTokenError=l,e.exports=a},220:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64URLStringToBuffer=function(e){for(var t=e.replace(/-/g,"+").replace(/_/g,"/"),n=(4-t.length%4)%4,r=t.padEnd(t.length+n,"="),o=atob(r),c=new ArrayBuffer(o.length),l=new Uint8Array(c),i=0;i<o.length;i++)l[i]=o.charCodeAt(i);return c},n(400),n(5),n(17),n(801),n(32),n(426),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424)},267:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n(65);function o(e){return"boolean"==typeof e?e?r.a.DEBUG:r.a.NONE:"string"==typeof e&&Object(r.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}},268:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(262),o=n.n(r);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0],r=e[1],c=e[2],l=o.a.getUri({url:n,params:r,paramsSerializer:c}),d=l.split("?"),h=d[0],f=d[1];if(f){var m=f.split("&");return"".concat(h,"?").concat(m.sort().join("&"))}return l}},270:function(e,t,n){"use strict";var r=function(e,t=!0){const n=t&&e.headers?e.headers["x-forwarded-proto"]:void 0,r="string"==typeof n?n.includes("https"):void 0;if(r)return!0;const o=e.connection?e.connection.encrypted:void 0,c=void 0!==o?!0===o:void 0;return!!c||void 0===r&&void 0===c&&void 0};const o="undefined"!=typeof location?location:{origin:"",pathname:"/"};e.exports=function(e,t){return e?encodeURI("http"+(r(e)?"s":"")+"://"+(e.headers["x-forwarded-host"]||e.headers.host)+(t?e.url:"")):o.origin+(t?o.pathname:"")}},275:function(e,t){function n(e){return"function"==typeof e.value||(console.warn("[Vue-click-outside:] provided expression",e.expression,"is not a function."),!1)}function r(e){return void 0!==e.componentInstance&&e.componentInstance.$isServer}e.exports={bind:function(e,t,o){if(!n(t))return;function c(t){if(o.context){var n=t.path||t.composedPath&&t.composedPath();n&&n.length>0&&n.unshift(t.target),e.contains(t.target)||function(e,t){if(!e||!t)return!1;for(var i=0,n=t.length;i<n;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,n)||e.__vueClickOutside__.callback(t)}}e.__vueClickOutside__={handler:c,callback:t.value};const l="ontouchstart"in document.documentElement?"touchstart":"click";!r(o)&&document.addEventListener(l,c)},update:function(e,t){n(t)&&(e.__vueClickOutside__.callback=t.value)},unbind:function(e,t,n){const o="ontouchstart"in document.documentElement?"touchstart":"click";!r(n)&&e.__vueClickOutside__&&document.removeEventListener(o,e.__vueClickOutside__.handler),delete e.__vueClickOutside__}}},306:function(e,t,n){"use strict";var r=n(144).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,n,c){if("function"==typeof n)return e(t,null,n);n||(n={}),c=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r)}}}(c||o);var l=n.readable||!1!==n.readable&&t.readable,d=n.writable||!1!==n.writable&&t.writable,h=function(){t.writable||m()},f=t._writableState&&t._writableState.finished,m=function(){d=!1,f=!0,l||c.call(t)},y=t._readableState&&t._readableState.endEmitted,v=function(){l=!1,y=!0,d||c.call(t)},_=function(e){c.call(t,e)},E=function(){var e;return l&&!y?(t._readableState&&t._readableState.ended||(e=new r),c.call(t,e)):d&&!f?(t._writableState&&t._writableState.ended||(e=new r),c.call(t,e)):void 0},T=function(){t.req.on("finish",m)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?d&&!t._writableState&&(t.on("end",h),t.on("close",h)):(t.on("complete",m),t.on("abort",E),t.req?T():t.on("request",T)),t.on("end",v),t.on("finish",m),!1!==n.error&&t.on("error",_),t.on("close",E),function(){t.removeListener("complete",m),t.removeListener("abort",E),t.removeListener("request",T),t.req&&t.req.removeListener("finish",m),t.removeListener("end",h),t.removeListener("close",h),t.removeListener("finish",m),t.removeListener("end",v),t.removeListener("error",_),t.removeListener("close",E)}}},31:function(e,t,n){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="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}
2|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},h={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+d(r,2,"0")+":"+d(i,2,"0")},m:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,u),i=t-r<0,s=e.clone().add(n+(i?-1:1),u);return Number(-(n+(t-r)/(i?r-s:s-r))||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:r,m:n,s:t,ms:e,Q:o}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},f={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]=f;var v=function(e){return e instanceof T},_=function(e,t,n){var r;if(!e)return m;if("string"==typeof e)y[e]&&(r=e),t&&(y[e]=t,r=e);else{var i=e.name;y[i]=e,r=i}return!n&&r&&(m=r),r||!n&&m},g=function(e,t,n){if(v(e))return e.clone();var r=t?"string"==typeof t?{format:t,pl:n}:t:{};return r.date=e,new T(r)},E=h;E.l=_,E.i=v,E.w=function(e,t){return g(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var T=function(){function d(e){this.$L=this.$L||_(e.locale,null,!0),this.parse(e)}var h=d.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,n=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 r=t.match(c);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(t)}(e),this.init()},h.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()},h.$utils=function(){return E},h.isValid=function(){return!("Invalid Date"===this.$d.toString())},h.isSame=function(e,t){var n=g(e);return this.startOf(t)<=n&&n<=this.endOf(t)},h.isAfter=function(e,t){return g(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<g(e)},h.$g=function(e,t,n){return E.u(e)?this[t]:this.set(n,e)},h.year=function(e){return this.$g(e,"$y",a)},h.month=function(e){return this.$g(e,"$M",u)},h.day=function(e){return this.$g(e,"$W",i)},h.date=function(e){return this.$g(e,"$D","date")},h.hour=function(e){return this.$g(e,"$H",r)},h.minute=function(e){return this.$g(e,"$m",n)},h.second=function(e){return this.$g(e,"$s",t)},h.millisecond=function(t){return this.$g(t,"$ms",e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,o){var c=this,l=!!E.u(o)||o,d=E.p(e),h=function(e,t){var n=E.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return l?n:n.endOf(i)},f=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?h(1,0):h(31,11);case u:return l?h(1,y):h(0,y+1);case s:var g=this.$locale().weekStart||0,T=(m<g?m+7:m)-g;return h(l?v-T:v+(6-T),y);case i:case"date":return f(_+"Hours",0);case r:return f(_+"Minutes",1);case n:return f(_+"Seconds",2);case t:return f(_+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(s,o){var c,l=E.p(s),d="set"+(this.$u?"UTC":""),h=(c={},c[i]=d+"Date",c.date=d+"Date",c[u]=d+"Month",c[a]=d+"FullYear",c[r]=d+"Hours",c[n]=d+"Minutes",c[t]=d+"Seconds",c[e]=d+"Milliseconds",c)[l],f=l===i?this.$D+(o-this.$W):o;if(l===u||l===a){var m=this.clone().set("date",1);m.$d[h](f),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else h&&this.$d[h](f);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[E.p(e)]()},h.add=function(e,o){var c,l=this;e=Number(e);var d=E.p(o),h=function(t){var n=g(l);return E.w(n.date(n.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 h(1);if(d===s)return h(7);var f=(c={},c[n]=6e4,c[r]=36e5,c[t]=1e3,c)[d]||1,m=this.$d.getTime()+e*f;return E.w(m,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this;if(!this.isValid())return"Invalid Date";var n=e||"YYYY-MM-DDTHH:mm:ssZ",r=E.z(this),i=this.$locale(),s=this.$H,u=this.$m,o=this.$M,a=i.weekdays,c=i.months,d=function(e,r,i,s){return e&&(e[r]||e(t,n))||i[r].substr(0,s)},h=function(e){return E.s(s%12||12,e,"0")},f=i.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},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,n),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:h(1),hh:h(2),a:f(s,u,!0),A:f(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:r};return n.replace(l,(function(e,t){return t||m[e]||r.replace(":","")}))}
2,h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(e,c,l){var d,h=E.p(c),f=g(e),m=6e4*(f.utcOffset()-this.utcOffset()),y=this-f,v=E.m(this,f);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[r]=y/36e5,d[n]=y/6e4,d[t]=y/1e3,d)[h]||y,l?v:E.a(v)},h.daysInMonth=function(){return this.endOf(u).$D},h.$locale=function(){return y[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=_(e,t,!0);return r&&(n.$L=r),n},h.clone=function(){return E.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},d}();return g.prototype=T.prototype,g.extend=function(e,t){return e(t,T,g),g},g.locale=_,g.isDayjs=v,g.unix=function(e){return g(1e3*e)},g.en=y[m],g.Ls=y,g}()},317:function(e,t,n){"use strict";function r(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}n(12),n(44),n(46),n(45),n(36),n(16),n(30),n(26),n(33),Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToBase64URLString=function(e){var t,n=new Uint8Array(e),o="",c=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,a){if(e){if("string"==typeof e)return r(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?r(e,a):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,c=function(){};return{s:c,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}(n);try{for(c.s();!(t=c.n()).done;){var l=t.value;o+=String.fromCharCode(l)}}catch(e){c.e(e)}finally{c.f()}return btoa(o).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},n(400),n(5),n(17),n(32),n(426),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424)},318:function(e,t,n){"use strict";n(434);var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.WebAuthnError=void 0,n(16);var o=r(n(218)),c=r(n(217)),l=r(n(604)),d=r(n(261)),h=r(n(568)),f=r(n(603));function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}t.WebAuthnError=function(e){function t(e){var n,r,o,h,f=e.message,code=e.code,y=e.cause,v=e.name;return(0,c.default)(this,t),r=this,o=t,h=[f,{cause:y}],o=(0,d.default)(o),n=(0,l.default)(r,m()?Reflect.construct(o,h||[],(0,d.default)(r).constructor):o.apply(r,h)),Object.defineProperty(n,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n.name=null!=v?v:y.name,n.code=code,n}return(0,h.default)(t,e),(0,o.default)(t)}((0,f.default)(Error))},319:function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.WebAuthnAbortService=void 0,n(16);var o=r(n(217)),c=r(n(218)),l=function(){return(0,c.default)((function e(){(0,o.default)(this,e),Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}),[{key:"createNewAbortSignal",value:function(){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}},{key:"cancelCeremony",value:function(){if(this.controller){var e=new Error("Manually cancelling existing WebAuthn API call");e.name="AbortError",this.controller.abort(e),this.controller=void 0}}}])}();t.WebAuthnAbortService=new l},325:function(e,t,n){"use strict";n.r(t),t.default=function(e,t){return t=t||{},new Promise((function(n,r){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,n){o.push(t=t.toLowerCase()),u.push([t,n]),i[t]=i[t]?i[t]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==t.credentials,t.headers)s.setRequestHeader(c,t.headers[c]);s.send(t.body||null)}))}},390:function(e,t,n){"use strict";var r=n(80);function o(e){return null!==e&&"object"===r(e)}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!o(t))return c(e,{},n,r);var l=Object.assign({},t);for(var d in e)if("__proto__"!==d&&"constructor"!==d){var h=e[d];null!=h&&(r&&r(l,d,h,n)||(Array.isArray(h)&&Array.isArray(l[d])?l[d]=l[d].concat(h):o(h)&&o(l[d])?l[d]=c(h,l[d],(n?"".concat(n,"."):"")+d.toString(),r):l[d]=h))}return l}function l(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(p,t){return c(p,t,"",e)}),{})}}n(13),n(5),n(30);var d=l();d.fn=l((function(e,t,n,r){if(void 0!==e[t]&&"function"==typeof n)return e[t]=n(e[t]),!0})),d.arrayFn=l((function(e,t,n,r){if(Array.isArray(e[t])&&"function"==typeof n)return e[t]=n(e[t]),!0})),d.extend=l,e.exports=d},41:function(e,t,n){"use strict";n.d(t,"c",(function(){return o}
2)),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return h}));var r=function(e,b){return r=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])},r(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}r(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(e,t,n,r){return new(n||(n=Promise))((function(o,c){function l(e){try{h(r.next(e))}catch(e){c(e)}}function d(e){try{h(r.throw(e))}catch(e){c(e)}}function h(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,d)}h((r=r.apply(e,t||[])).next())}))}function d(e,body){var t,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}Object.create;function h(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError},478:function(e,t,n){var r=n(14),o=r.default||r;t.Vue=o,t.Vue2=o,t.isVue2=!0,t.isVue3=!1,t.install=function(){},t.warn=o.util.warn,t.createApp=function(e,t){var n,r={},c={config:o.config,use:o.use.bind(o),mixin:o.mixin.bind(o),component:o.component.bind(o),provide:function(e,t){return r[e]=t,this},directive:function(e,t){return t?(o.directive(e,t),c):o.directive(e)},mount:function(c,l){return n||((n=new o(Object.assign({propsData:t},e,{provide:Object.assign(r,e.provide)}))).$mount(c,l),n)},unmount:function(){n&&(n.$destroy(),n=void 0)}};return c},Object.keys(r).forEach((function(e){t[e]=r[e]})),t.hasInjectionContext=function(){return!!r.getCurrentInstance()}},479:function(e,t,n){"use strict";(function(t,r){var o;e.exports=R,R.ReadableState=D;n(480).EventEmitter;var c=function(e,t){return e.listeners(t).length},l=n(481),d=n(143).Buffer,h=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var f,m=n(714);f=m&&m.debuglog?m.debuglog("stream"):function(){};var y,v,_,E=n(715),T=n(482),A=n(483).getHighWaterMark,w=n(144).codes,S=w.ERR_INVALID_ARG_TYPE,O=w.ERR_STREAM_PUSH_AFTER_EOF,I=w.ERR_METHOD_NOT_IMPLEMENTED,C=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(106)(R,l);var P=T.errorOrDestroy,N=["error","close","destroy","pause","resume"];function D(e,t,r){o=o||n(145),e=e||{},"boolean"!=typeof r&&(r=t instanceof o),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=A(this,e,"readableHighWaterMark",r),this.buffer=new E,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||(y=n(485).StringDecoder),this.decoder=new y(e.encoding),this.encoding=e.encoding)}function R(e){if(o=o||n(145),!(this instanceof R))return new R(e);var t=this instanceof o;this._readableState=new D(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function L(e,t,n,r,o){f("readableAddChunk",t);var c,l=e._readableState;if(null===t)l.reading=!1,function(e,t){if(f("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?U(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}(e,l);else if(o||(c=function(e,t){var n;r=t,d.isBuffer(r)||r instanceof h||"string"==typeof t||void 0===t||e.objectMode||(n=new S("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(l,t)),c)P(e,c);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===d.prototype||(t=function(e){return d.from(e)}(t)),r)l.endEmitted?P(e,new C):k(e,l,t,!0);else if(l.ended)P(e,new O);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?k(e,l,t,!1):j(e,l)):k(e,l,t,!1)}else r||(l.reading=!1,j(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.length)}function k(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&U(e)),j(e,t)}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),R.prototype.destroy=T.destroy,R.prototype._undestroy=T.undestroy,R.prototype._destroy=function(e,t){t(e)},R.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=d.from(e,t),t=""),n=!0),L(this,e,t,!1,n)},R.prototype.unshift=function(e){return L(this,e,null,!0,!1)},R.prototype.isPaused=function(){return!1===this._readableState.flowing},R.prototype.setEncoding=function(e){y||(y=n(485).StringDecoder);var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 4,770 bytes, line 2
2for(var p=this._readableState.buffer.head,content="";null!==p;)content+=t.write(p.data),p=p.next;return this._readableState.buffer.clear(),""!==content&&this._readableState.buffer.push(content),this._readableState.length=content.length,this};var x=1073741824;function M(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>=x?e=x:(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 U(e){var t=e._readableState;f("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(F,e))}function F(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,$(e)}function j(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(V,e,t))}function V(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(f("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function B(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Y(e){f("readable nexttick read 0"),e.read(0)}function H(e,t){f("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),$(e),t.flowing&&!t.reading&&e.read(0)}function $(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function z(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function K(e){var t=e._readableState;f("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(W,t,e))}function W(e,t){if(f("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function G(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1}R.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?K(this):U(this),null;if(0===(e=M(e,t))&&t.ended)return 0===t.length&&K(this),null;var r,o=t.needReadable;return f("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",o=!0),t.ended||t.reading?f("reading or ended",o=!1):o&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(n,t))),null===(r=e>0?z(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&K(this)),null!==r&&this.emit("data",r),r},R.prototype._read=function(e){P(this,new I("_read()"))},R.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var l=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?h:A;function d(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",E),e.removeListener("finish",T),e.removeListener("drain",m),e.removeListener("error",_),e.removeListener("unpipe",d),n.removeListener("end",h),n.removeListener("end",A),n.removeListener("data",v),y=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||m())}function h(){f("onend"),e.end()}o.endEmitted?r.nextTick(l):n.once("end",l),e.on("unpipe",d);var m=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&c(e,"data")&&(t.flowing=!0,$(e))}}(n);e.on("drain",m);var y=!1;function v(t){f("ondata");var r=e.write(t);f("dest.write",r),!1===r&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==G(o.pipes,e))&&!y&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function _(t){f("onerror",t),A(),e.removeListener("error",_),0===c(e,"error")&&P(e,t)}function E(){e.removeListener("finish",T),A()}function T(){f("onfinish"),e.removeListener("close",E),A()}function A(){f("unpipe"),n.unpipe(e)}return n.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 4,880 bytes, line 2
2ndListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",_),e.once("close",E),e.once("finish",T),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},R.prototype.unpipe=function(e){var t=this._readableState,n={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,n)),this;if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,{hasUnpiped:!1});return this}var c=G(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,n)),this},R.prototype.on=function(e,t){var n=l.prototype.on.call(this,e,t),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,f("on readable",o.length,o.reading),o.length?U(this):o.reading||r.nextTick(Y,this))),n},R.prototype.addListener=R.prototype.on,R.prototype.removeListener=function(e,t){var n=l.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(B,this),n},R.prototype.removeAllListeners=function(e){var t=l.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(B,this),t},R.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(H,e,t))}(this,e)),e.paused=!1,this},R.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},R.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(o){(f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!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<N.length;o++)e.on(N[o],this.emit.bind(this,N[o]));return this._read=function(t){f("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(R.prototype[Symbol.asyncIterator]=function(){return void 0===v&&(v=n(718)),v(this)}),Object.defineProperty(R.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(R.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(R.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),R._fromList=z,Object.defineProperty(R.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(R.from=function(e,t){return void 0===_&&(_=n(719)),_(R,e,t)})}).call(this,n(47),n(49))},480:function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,c=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=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(n,r){function o(n){e.removeListener(t,c),r(n)}function c(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}w(e,t,c,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&w(e,"error",t,n)}(e,o,{once:!0})}))},d.EventEmitter=d,d.prototype._events=void 0,d.prototype._eventsCount=0,d.prototype._maxListeners=void 0;var h=10;function f(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,n,r){var o,c,l,d;if(f(n),void 0===(c=e._events)?(c=e._events=Object.create(null),e._eventsCount=0):(void 0!==c.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),c=e._events),l=c[t]),void 0===l)l=c[t]=n,++e._eventsCount;else if("function"==typeof l?l=c[t]=r?[n,l]:[l,n]:r?l.unshift(n):l.push(n),(o=m(e))>0&&l.length>
vendor: 4,557 bytes, line 2
2o&&!l.warned){l.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=e,h.type=t,h.count=l.length,d=h,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,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=v.bind(r);return o.listener=n,r.wrapFn=o,o}function E(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?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 T(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function A(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function w(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);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){r.once&&e.removeEventListener(t,o),n(c)}))}}Object.defineProperty(d,"defaultMaxListeners",{enumerable:!0,get:function(){return h},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+".");h=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 n="error"===e,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){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=r[e];if(void 0===d)return!1;if("function"==typeof d)c(d,this,t);else{var h=d.length,f=A(d,h);for(i=0;i<h;++i)c(f[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 f(t),this.on(e,_(this,e,t)),this},d.prototype.prependOnceListener=function(e,t){return f(t),this.prependListener(e,_(this,e,t)),this},d.prototype.removeListener=function(e,t){var n,r,o,i,c;if(f(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){c=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,c||t)}return this},d.prototype.off=d.prototype.removeListener,d.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[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):T.call(e,t)},d.prototype.listenerCount=T,d.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}
vendor: 9,748 bytes, line 2
2,481:function(e,t,n){e.exports=n(480).EventEmitter},482:function(e,t,n){"use strict";(function(t){function n(e,t){o(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,c){var l=this,d=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return d||h?(c?c(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(o,this,e)):t.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!c&&e?l._writableState?l._writableState.errorEmitted?t.nextTick(r,l):(l._writableState.errorEmitted=!0,t.nextTick(n,l,e)):t.nextTick(n,l,e):c?(t.nextTick(r,l),c(e)):t.nextTick(r,l)})),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)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(49))},483:function(e,t,n){"use strict";var r=n(144).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,o){var c=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,o,n);if(null!=c){if(!isFinite(c)||Math.floor(c)!==c||c<0)throw new r(o?n:"highWaterMark",c);return Math.floor(c)}return e.objectMode?16:16384}}},484:function(e,t,n){"use strict";(function(t,r){function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var c;e.exports=R,R.WritableState=D;var l={deprecate:n(717)},d=n(481),h=n(143).Buffer,f=(void 0!==t?t:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var m,y=n(482),v=n(483).getHighWaterMark,_=n(144).codes,E=_.ERR_INVALID_ARG_TYPE,T=_.ERR_METHOD_NOT_IMPLEMENTED,A=_.ERR_MULTIPLE_CALLBACK,w=_.ERR_STREAM_CANNOT_PIPE,S=_.ERR_STREAM_DESTROYED,O=_.ERR_STREAM_NULL_VALUES,I=_.ERR_STREAM_WRITE_AFTER_END,C=_.ERR_UNKNOWN_ENCODING,P=y.errorOrDestroy;function N(){}function D(e,t,l){c=c||n(145),e=e||{},"boolean"!=typeof l&&(l=t instanceof c),this.objectMode=!!e.objectMode,l&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=v(this,e,"writableHighWaterMark",l),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,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 n=e._writableState,o=n.sync,c=n.writecb;if("function"!=typeof c)throw new A;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,o,c){--t.pendingcb,n?(r.nextTick(c,o),r.nextTick(F,e,t),e._writableState.errorEmitted=!0,P(e,o)):(c(o),e._writableState.errorEmitted=!0,P(e,o),F(e,t))}(e,n,o,t,c);else{var l=M(n)||e.destroyed;l||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),o?r.nextTick(k,e,n,l,c):k(e,n,l,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.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function R(e){var t=this instanceof(c=c||n(145));if(!t&&!m.call(R,this))return new R(e);this._writableState=new D(e,this,t),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)),d.call(this)}function L(e,t,n,r,o,c,l){t.writelen=r,t.writecb=l,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new S("write")):n?e._writev(o,t.onwrite):e._write(o,c,t.onwrite),t.sync=!1}function k(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),F(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,c=new Array(r),l=t.corkedRequestsFree;l.entry=n;for(var d=0,h=!0;n;)c[d]=n,n.isBuf||(h=!1),n=n.next,d+=1;c.allBuffers=h,L(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(;n;){var f=n.chunk,m=n.encoding,y=n.callback;if(L(e,t,!1,t.objectMode?1:f.length,f,m,y),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function U(e,t){e._final((function(n){t.pendingcb--,n&&P(e,n),t.prefinished=!0,e.emit("prefinish"),F(e,t)}))}function F(e,t){var n=M(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(U,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}n(106)(R,d),D.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(D.prototype,"buffer",{get:l.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]?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(R,Symbol.hasInstance,{value:function(object){return!!m.call(this,object)||this===R&&(object&&object._writableState instanceof D)}})):m=function(object){return object instanceof this},R.prototype.pipe=function(){P(this,new w)},R.prototype.write=function(e,t,n){var o,c=this._writableState,l=!1,d=!c.objectMode&&(o=e,h.isBuffer(o)||o instanceof f);return d&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(n=t,t=null),d?t="buffer":t||(t=c.defaultEncoding),"function"!=typeof n&&(n=N),c.ending?function(e,t){var n=new I;P(e,n),r.nextTick(t,n)}(this,n):(d||function(e,t,n,o){var c;return null===n?c=new O:"string"==typeof n||t.objectMode||(c=new E("chunk",["string","Buffer"],n)),!c||(P(e,c),r.nextTick(o,c),!1)}(this,c,e,n))&&(c.pendingcb++,l=function(e,t,n,r,o,c){if(!n){var l=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,n));return t}(t,r,o);r!==l&&(n=!0,o="buffer",r=l)}var d=t.objectMode?1:r.length;t.length+=d;var f=t.length<t.highWaterMark;f||(t.needDrain=!0);if(t.writing||t.corked){var m=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:c,next:null},m?m.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else L(e,t,!1,d,r,o,c);return f}(this,c,d,e,t,n)),l},R.prototype.cork=function(){this._writableState.corked++},R.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},R.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 C(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),R.prototype._write=function(e,t,n){n(new T("_write()"))},R.prototype._writev=null,R.prototype.end=function(e,t,n){var o=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),o.corked&&(o.corked=1,this.uncork()),o.ending||function(e,t,n){t.ending=!0,F(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,o,n),this},Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),R.prototype.destroy=y.destroy,R.prototype._undestroy=y.undestroy,R.prototype._destroy=function(e,t){t(e)}}).call(this,n(47),n(49))},485:function(e,t,n){"use strict";var r=n(486).Buffer,o=r.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";
vendor: 4,116 bytes, line 2
2case"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&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=h,this.end=f,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=r.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 h(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=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 f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}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 n=t.length-1;if(n<i)return 0;var r=l(t[n]);if(r>=0)return r>0&&(e.lastNeed=r-1),r;if(--n<i||-2===r)return 0;if(r=l(t[n]),r>=0)return r>0&&(e.lastNeed=r-2),r;if(--n<i||-2===r)return 0;if(r=l(t[n]),r>=0)return r>0&&(2===r?r=0:e.lastNeed=r-3),r;return 0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",i,n)},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}},486:function(e,t,n){var r=n(143),o=r.Buffer;function c(e,t){for(var n in e)t[n]=e[n]}function l(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(c(r,t),t.Buffer=l),c(o,l),l.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},l.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},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 r.SlowBuffer(e)}},487:function(e,t,n){"use strict";e.exports=m;var r=n(144).codes,o=r.ERR_METHOD_NOT_IMPLEMENTED,c=r.ERR_MULTIPLE_CALLBACK,l=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,d=r.ERR_TRANSFORM_WITH_LENGTH_0,h=n(145);function f(e,data){var t=this._transformState;t.transforming=!1;
2var n=t.writecb;if(null===n)return this.emit("error",new c);t.writechunk=null,t.writecb=null,null!=data&&this.push(data),n(e);var r=this._readableState;r.reading=!1,(r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}function m(e){if(!(this instanceof m))return new m(e);h.call(this,e),this._transformState={afterTransform:f.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",y)}function y(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?v(this,null,null):this._flush((function(t,data){v(e,t,data)}))}function v(e,t,data){if(t)return e.emit("error",t);if(null!=data&&e.push(data),e._writableState.length)throw new d;if(e._transformState.transforming)throw new l;return e.push(null)}n(106)(m,h),m.prototype.push=function(e,t){return this._transformState.needTransform=!1,h.prototype.push.call(this,e,t)},m.prototype._transform=function(e,t,n){n(new o("_transform()"))},m.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},m.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},m.prototype._destroy=function(e,t){h.prototype._destroy.call(this,e,(function(e){t(e)}))}},49:function(e,t,n){var path,r;t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},r="/",t.cwd=function(){return r},t.chdir=function(e){path||(path=n(679)),r=path.resolve(e,r)},t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},581:function(e,t,n){"use strict";n(12),n(8),n(15),n(18),n(10),n(5),n(9);var r=n(3);Object.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})};var o=r(n(19)),c=n(220);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},582:function(e,t,n){"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)},n(17)},583:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toAuthenticatorAttachment=function(e){if(!e)return;if(r.indexOf(e)<0)return;return e};var r=["cross-platform","platform"]},584:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._browserSupportsWebAuthnAutofillInternals=void 0,t.browserSupportsWebAuthnAutofill=function(){if(!(0,r.browserSupportsWebAuthn)())return o.stubThis(new Promise((function(e){return e(!1)})));var e=globalThis.PublicKeyCredential;if(void 0===(null==e?void 0:e.isConditionalMediationAvailable))return o.stubThis(new Promise((function(e){return e(!1)})));return o.stubThis(e.isConditionalMediationAvailable())},n(5),n(151);var r=n(172);var o=t._browserSupportsWebAuthnAutofillInternals={stubThis:function(e){return e}}},585:function(e,t,n){"use strict";n(12),n(44),n(46),n(45),n(36),n(15),n(18),n(17),n(30);var r=n(3);
2Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"computed",{enumerable:!0,get:function(){return f.computed}}),t.createRef=t.createApp=void 0,Object.defineProperty(t,"customRef",{enumerable:!0,get:function(){return f.customRef}}),t.defineNuxtPlugin=t.defineNuxtMiddleware=t.defineComponent=t.defineAsyncComponent=void 0,Object.defineProperty(t,"del",{enumerable:!0,get:function(){return f.del}}),Object.defineProperty(t,"effectScope",{enumerable:!0,get:function(){return f.effectScope}}),Object.defineProperty(t,"getCurrentInstance",{enumerable:!0,get:function(){return f.getCurrentInstance}}),Object.defineProperty(t,"getCurrentScope",{enumerable:!0,get:function(){return f.getCurrentScope}}),t.globalPlugin=void 0,Object.defineProperty(t,"h",{enumerable:!0,get:function(){return f.h}}),Object.defineProperty(t,"inject",{enumerable:!0,get:function(){return f.inject}}),Object.defineProperty(t,"isProxy",{enumerable:!0,get:function(){return f.isProxy}}),t.isRaw=void 0,Object.defineProperty(t,"isReactive",{enumerable:!0,get:function(){return f.isReactive}}),Object.defineProperty(t,"isReadonly",{enumerable:!0,get:function(){return f.isReadonly}}),Object.defineProperty(t,"isRef",{enumerable:!0,get:function(){return f.isRef}}),Object.defineProperty(t,"isShallow",{enumerable:!0,get:function(){return f.isShallow}}),Object.defineProperty(t,"markRaw",{enumerable:!0,get:function(){return f.markRaw}}),Object.defineProperty(t,"nextTick",{enumerable:!0,get:function(){return f.nextTick}}),Object.defineProperty(t,"onActivated",{enumerable:!0,get:function(){return f.onActivated}}),Object.defineProperty(t,"onBeforeMount",{enumerable:!0,get:function(){return f.onBeforeMount}}),Object.defineProperty(t,"onBeforeUnmount",{enumerable:!0,get:function(){return f.onBeforeUnmount}}),Object.defineProperty(t,"onBeforeUpdate",{enumerable:!0,get:function(){return f.onBeforeUpdate}}),Object.defineProperty(t,"onDeactivated",{enumerable:!0,get:function(){return f.onDeactivated}}),Object.defineProperty(t,"onErrorCaptured",{enumerable:!0,get:function(){return f.onErrorCaptured}}),t.onGlobalSetup=void 0,Object.defineProperty(t,"onMounted",{enumerable:!0,get:function(){return f.onMounted}}),Object.defineProperty(t,"onRenderTracked",{enumerable:!0,get:function(){return f.onRenderTracked}}),Object.defineProperty(t,"onRenderTriggered",{enumerable:!0,get:function(){return f.onRenderTriggered}}),Object.defineProperty(t,"onScopeDispose",{enumerable:!0,get:function(){return f.onScopeDispose}}),Object.defineProperty(t,"onServerPrefetch",{enumerable:!0,get:function(){return f.onServerPrefetch}}),Object.defineProperty(t,"onUnmounted",{enumerable:!0,get:function(){return f.onUnmounted}}),Object.defineProperty(t,"onUpdated",{enumerable:!0,get:function(){return f.onUpdated}}),Object.defineProperty(t,"provide",{enumerable:!0,get:function(){return f.provide}}),Object.defineProperty(t,"proxyRefs",{enumerable:!0,get:function(){return f.proxyRefs}}),Object.defineProperty(t,"reactive",{enumerable:!0,get:function(){return f.reactive}}),Object.defineProperty(t,"readonly",{enumerable:!0,get:function(){return f.readonly}}),Object.defineProperty(t,"ref",{enumerable:!0,get:function(){return f.ref}}),t.reqSsrRef=t.reqRef=void 0,Object.defineProperty(t,"set",{enumerable:!0,get:function(){return f.set}}),t.setMetaPlugin=void 0,t.setSSRContext=function(e){O=Object.assign({},{}),e.context.ssrContext.nuxt.globalRefs=O},Object.defineProperty(t,"shallowReactive",{enumerable:!0,get:function(){return f.shallowReactive}}),Object.defineProperty(t,"shallowReadonly",{enumerable:!0,get:function(){return f.shallowReadonly}}),Object.defineProperty(t,"shallowRef",{enumerable:!0,get:function(){return f.shallowRef}}),t.ssrRef=t.ssrPromise=t.shallowSsrRef=void 0,Object.defineProperty(t,"toRaw",{enumerable:!0,get:function(){return f.toRaw}}),Object.defineProperty(t,"toRef",{enumerable:!0,get:function(){return f.toRef}}),Object.defineProperty(t,"toRefs",{enumerable:!0,get:function(){return f.toRefs}}),Object.defineProperty(t,"triggerRef",{enumerable:!0,get:function(){return f.triggerRef}}),Object.defineProperty(t,"unref",{enumerable:!0,get:function(){return f.unref}}),t.useAsync=void 0,Object.defineProperty(t,"useAttrs",{enumerable:!0,get:function(){return f.useAttrs}}),Object.defineProperty(t,"useCSSModule",{enumerable:!0,get:function(){return f.useCssModule}}),t.useContext=void 0,Object.defineProperty(t,"useCssModule",{enumerable:!0,get:function(){return f.useCssModule}}),Object.defineProperty(t,"useCssVars",{enumerable:!0,get:function(){return f.useCssVars}}),t.useRouter=t.useRoute=t.useMeta=t.useFetch=void 0,Object.defineProperty(t,"useSlots",{enumerable:!0,get:function(){return f.useSlots}}),t.useStore=t.useStatic=void 0,Object.defineProperty(t,"version",{enumerable:!0,get:function(){return f.version}}
2),t.warn=void 0,Object.defineProperty(t,"watch",{enumerable:!0,get:function(){return f.watch}}),Object.defineProperty(t,"watchEffect",{enumerable:!0,get:function(){return f.watchEffect}}),Object.defineProperty(t,"watchPostEffect",{enumerable:!0,get:function(){return f.watchPostEffect}}),Object.defineProperty(t,"watchSyncEffect",{enumerable:!0,get:function(){return f.watchSyncEffect}}),t.wrapProperty=t.withContext=void 0,n(22),n(13),n(8),n(66),n(24),n(16),n(181),n(88),n(398),n(10),n(5),n(177),n(475),n(477),n(115),n(26),n(196),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(197),n(9),n(33);var o=r(n(50)),c=r(n(19)),l=r(n(59)),d=r(n(23)),h=r(n(53)),f=n(14),m=n(824),y=r(n(825));n(829);function v(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,a){if(e){if("string"==typeof e)return _(e,a);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(e,a):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,c=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw c}}}}function _(e,a){(null==a||a>e.length)&&(a=e.length);for(var t=0,n=Array(a);t<a;t++)n[t]=e[t];return n}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e){if(!e)throw new Error("You must provide a key. You can have it generated automatically by adding '@nuxtjs/composition-api/dist/babel-plugin' to your Babel plugins.")}var w=function(){var e=(0,f.getCurrentInstance)();if(e)return e.proxy};function S(e){return e instanceof Function?e():e}var O={};var I=function(){var e,t=w();return{type:t?"ssrRefs":"globalRefs",setData:function(t,n){(e||O)[t]=C(n)}}},C=function(e){return e&&JSON.parse(JSON.stringify(e))||e},P=function(e,t){var n,r,o,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"globalRefs";return null!=(o=null==(r=null==(n=window[m.globalContext])?void 0:n[c])?void 0:r[t])?o:S(e)},N=t.ssrRef=function(e,t){A(t);var n=I(),r=n.type,o=(n.setData,P(e,t,r));return(0,f.ref)(o)};t.shallowSsrRef=function(e,t){A(t);var n=I(),r=n.type;n.setData;return(0,f.shallowRef)(P(e,t,r))},t.ssrPromise=function(e,t){A(t);var n=I(),r=n.type,o=(n.setData,P(e,t,r));return Promise.resolve(o)},t.useAsync=function(e,t){A(t);var n=(0,f.isRef)(t)?t:N(null,t);null===n.value&&Promise.resolve(e()).then((function(e){return n.value=e}));return n};var D=function(e){return{head:function(){var t=e.head instanceof Function?e.head.call(this):e.head;if(!this._computedHead)return t;var n=this._computedHead.map((function(e){return(0,f.isReactive)(e)?(0,f.toRaw)(e):(0,f.isRef)(e)?e.value:e}));return y.default.apply(void 0,[{}].concat((0,l.default)(n.reverse()),[t]))}}},R=(t.useMeta=function(e){var t=w();if(!t)throw new Error("useMeta must be called within a component.");if(!("head"in t.$options))throw new Error("In order to enable `useMeta`, please make sure you include `head: {}
2` within your component definition, and you are using the `defineComponent` exported from @nuxtjs/composition-api.");var n=function(){return t.$meta().refresh()};if(!t._computedHead){var r=(0,f.reactive)({titleTemplate:null,__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{},title:void 0,htmlAttrs:{},headAttrs:{},bodyAttrs:{},base:void 0,meta:[],link:[],style:[],script:[],noscript:[],changed:void 0,afterNavigation:void 0});t._computedHead=[r],t._metaRefs=(0,f.toRefs)(r),(0,f.watch)(Object.values(t._metaRefs),n,{immediate:!0})}if(e){var o=e instanceof Function?(0,f.computed)(e):(0,f.ref)(e);t._computedHead.push(o),(0,f.watch)(o,n,{immediate:!0})}return t._metaRefs},t.defineComponent=function(e){return"head"in e?T(T({},e),D(e)):e},t.withContext=function(e){var t=w();if(!t)throw new Error("This must be called within a setup function.");e((t[m.globalNuxt]||t.$options).context)},t.useContext=function(){var e=w();if(!e)throw new Error("This must be called within a setup function.");return T(T({},(e[m.globalNuxt]||e.$options).context),{},{route:(0,f.computed)((function(){return e.$route})),query:(0,f.computed)((function(){return e.$route.query})),from:(0,f.computed)((function(){return(e[m.globalNuxt]||e.$options).context.from})),params:(0,f.computed)((function(){return e.$route.params}))})},t.defineNuxtPlugin=function(e){return e},t.defineNuxtMiddleware=function(e){return e},window[m.globalContext]);function L(e){var t;if(e.message||"string"==typeof e)t=e.message||e;else try{t=JSON.stringify(e,null,2)}catch(n){t="[".concat(e.constructor.name,"]")}return T(T({},e),{},{message:t,statusCode:e.statusCode||e.status||e.response&&e.response.status||500})}var k=new WeakMap,x=new Map;function M(){return U.apply(this,arguments)}function U(){return(U=(0,d.default)(regeneratorRuntime.mark((function e(){var t,n,r,o,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=k.get(this)){e.next=3;break}return e.abrupt("return");case 3:return this[m.globalNuxt].nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,n=null,r=Date.now(),e.prev=9,e.next=12,Promise.all(t.map((function(e){if(x.has(e))return x.get(e);var t=Promise.resolve(e(c)).finally((function(){return x.delete(e)}));return x.set(e,t),t})));case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(9),n=L(e.t0);case 18:if(!((o=(this._fetchDelay||0)-(Date.now()-r))>0)){e.next=22;break}return e.next=22,new Promise((function(e){return setTimeout(e,o)}));case 22:this.$fetchState.error=n,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return c[m.globalNuxt].nbFetching--}));case 26:case"end":return e.stop()}}),e,this,[[9,14]])})))).apply(this,arguments)}var F=function(e){e.$fetchState=e.$fetchState||(0,f.reactive)({error:null,pending:!1,timestamp:0})},j=function(data){var e=w();if(!e)throw new Error("This must be called within a setup function.");(0,f.onBeforeMount)((function(){var t=e._setupProxy||e;for(var n in data)try{if(n in t){var r=n;if(t[r]===data[n])continue;if("function"==typeof t[r])continue;if((0,f.isReactive)(t[r])){for(var o in t[r])o in data[n]||delete t[r][o];Object.assign(t[r],data[n]);continue}}(0,f.set)(t,n,data[n])}catch(e){0}}))};function V(){return(V=(0,d.default)(regeneratorRuntime.mark((function e(t){var data,content;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t._fetchOnServer){e.next=2;break}return e.abrupt("return");case 2:return F(t),e.prev=3,e.next=6,M.call(t);case 6:e.next=12;break;case 8:e.prev=8,e.t0=e.catch(3),t.$fetchState.error=L(e.t0);case 12:t.$fetchState.pending=!1,t._fetchKey="push"in t.$ssrContext.nuxt.fetch?t.$ssrContext.nuxt.fetch.length:t._fetchKey||t.$ssrContext.fetchCounters[""]++,t.$vnode.data||(t.$vnode.data={}),(t.$vnode.data.attrs=t.$vnode.data.attrs||{})["data-fetch-key"]=t._fetchKey,data=Object.fromEntries(Object.entries((null==t?void 0:t._setupProxy)||(null==t?void 0:t._setupState)).filter((function(e){var t=(0,o.default)(e,2),n=(t[0],t[1]);return!(n&&"object"===(0,h.default)(n)&&"_compiled"in n||n instanceof Function||n instanceof Promise)})).map((function(e){var t=(0,o.default)(e,2),n=t[0],r=t[1];return[n,(0,f.isRef)(r)?r.value:r]}))),content=t.$fetchState.error?{_error:t.$fetchState.error}:JSON.parse(JSON.stringify(data)),"push"in t.$ssrContext.nuxt.fetch?t.$ssrContext.nuxt.fetch.push(content):t.$ssrContext.nuxt.fetch[t._fetchKey]=content;case 20:case"end":return e.stop()}}),e,null,[[3,8]])})))).apply(this,arguments)}function B(e){var t=e[m.globalNuxt];if("_payloadFetchIndex"in t)return t._payloadFetchIndex=t._payloadFetchIndex||0,t._payloadFetchIndex++;var n=e.$options._scopeId||e.$options.name||"",r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return void 0===e[n]&&(e[n]=0),e[n]++}}(e[m.globalNuxt]._fetchCounters,n),o=e.$options;if("function"==typeof o.fetchKey)return o.fetchKey.call(e,r);var c="string"==typeof o.fetchKey?o.fetchKey:n;return c?c+":"+r(c):String(r(c))}t.useFetch=function(e){var t,n=w();if(!n)throw new Error("This must be called within a setup function.");function r(){return{fetch:n.$fetch,fetchState:n.$fetchState,$fetch:n.$fetch,$fetchState:n.$fetchState}}if(function(e,t){var n=k.get(e)||[];k.set(e,[].concat((0,l.default)(n),[t]))}(n,e),"function"==typeof n.$options.fetchOnServer?n._fetchOnServer=!1!==n.$options.fetchOnServer.call(n):n._fetchOnServer=!1!==n.$options.fetchOnServer,F(n),(0,f.onServerPrefetch)((function(){return function(e){return V.apply(this,arguments)}(n)})),n._fetchDelay="number"==typeof n.$options.fetchDelay?n.$options.fetchDelay:0,n.$fetch=M.bind(n),(0,f.onBeforeMount)((function(){return!n._hydrated&&M.call(n)})),!function(e){var t,n,r;return null==(r=null==(n=null==(t=e.$vnode)?void 0:t.elm)?void 0:n.dataset)?void 0:r.fetchKey}(n))return m.isFullStatic&&function(e){e._fetchKey=B(e);var t=e.$options.fetchOnServer,n="function"==typeof t?!1!==t.call(e):!1!==t,r=e[m.globalNuxt];if(n&&!(null==r?void 0:r.isPreview)&&(null==r?void 0:r._pagePayload)){e._hydrated=!0;var data=r._pagePayload.fetch[e._fetchKey];data&&data._error?e.$fetchState.error=data._error:j(data)}}(n),r();n._hydrated=!0,n._fetchKey=(null==(t=n.$vnode.elm)?void 0:t.dataset.fetchKey)||B(n);var data=R.fetch[n._fetchKey];return data&&data._error?(n.$fetchState.error=data._error,r()):(j(data),r())},new Set,t.reqRef=function(e){return(0,f.ref)(e)},t.reqSsrRef=function(e,t){return N(e,t)},t.onGlobalSetup=function(e){Y.add(e)},t.setMetaPlugin=function(e){var head=e.app.head;Object.assign(e.app,D({head:head}))},t.globalPlugin=function(e){var t=e.app.setup;Y=new Set,e.app.setup=function(){for(var e={},n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];t instanceof Function&&(e=t.apply(void 0,r)||{});var c,l=v(Y);try{for(l.s();!(c=l.n()).done;){var d=c.value;e=T(T({},e),d.call.apply(d,[this].concat(r))||{})}}catch(e){l.e(e)}finally{l.f()}return e}};var Y,H={};t.useStatic=function(e){var t,n,param=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,f.ref)(""),r=arguments.length>2?arguments[2]:void 0,o=(0,f.computed)((function(){return"".concat(r,"-").concat(param.value)})),c=N(null,o.value);c.value&&(H[o.value]=c.value);(null==(n=null==(t=window[m.globalContext].$config)?void 0:t.app)?void 0:n.cdnURL)||m.publicPath;return(0,f.watch)(o,(function(t){t in H?c.value=H[t]:e(param.value,o.value).then((function(e){H[o.value]=e,c.value=e}))}),{immediate:!0,flush:"post"}),c};var $=t.wrapProperty=function(e,t){return function(){var n=w();if(!n)throw new Error("This must be called within a setup function.");return!1!==t?(0,f.computed)((function(){return n[e]})):n[e]}};t.useRouter=$("$router",!1),t.useRoute=$("$route"),t.useStore=function(e){var t=w();if(!t)throw new Error("This must be called within a setup function.");
2return t.$store},t.warn=function(){return console.warn("`warn` is not exported by Vue 2.7")},t.createApp=function(){return console.warn("`createApp` is not exported by Vue 2.7")},t.createRef=function(){return console.warn("`createRef` is not exported by Vue 2.7")},t.defineAsyncComponent=function(){return console.warn("`defineAsyncComponent` is not exported by Vue 2.7")},t.isRaw=function(){return console.warn("`isRaw` is not exported by Vue 2.7")}},600:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return f}));var r=n(41),o=n(108),c=n(268),l=n(608),d=3e5,h=100;function f(t,n){var f=this;void 0===n&&(n={});var m=n.enabledByDefault,y=void 0===m||m,v=n.cacheFlag,_=void 0===v?"cache":v,E=n.defaultCache,T=void 0===E?new o.default({ttl:d,max:h}):E;return function(n){var o=n.url,d=n.method,h=n.params,m=n.paramsSerializer,v=n.forceUpdate,E=void 0!==n[_]&&null!==n[_]?n[_]:y;if("get"===d&&E){var A=Object(l.a)(E)?E:T,w=Object(c.a)(o,h,m),S=A.get(w);return!S||v?(S=Object(r.b)(f,void 0,void 0,(function(){var e;return Object(r.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(n)];case 1:return[2,r.sent()];case 2:throw e=r.sent(),"delete"in A?A.delete(w):A.del(w),e;case 3:return[2]}}
2))})),A.set(w,S),S):("info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request cached by cache adapter --\x3e url: ".concat(w)),S)}return t(n)}}}).call(this,n(49))},601:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(41),o=n(108),c=n(268);function l(t,n){var l=this;void 0===n&&(n={});var d=n.threshold,h=void 0===d?1e3:d,f=n.cache,m=void 0===f?new o.default({max:10}):f;return function(n){var o=n.url,d=n.method,f=n.params,y=n.paramsSerializer,v=Object(c.a)(o,f,y),_=Date.now(),E=m.get(v)||{timestamp:_};if("get"===d){if(_-E.timestamp<=h){var T=E.value;if(T)return"info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request cached by throttle adapter --\x3e url: ".concat(v)),T}return function(e,n){var o=Object(r.b)(l,void 0,void 0,(function(){var o,c;return Object(r.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(n)];case 1:return o=r.sent(),m.set(e,{timestamp:Date.now(),value:Promise.resolve(o)}),[2,o];case 2:throw c=r.sent(),"delete"in m?m.delete(e):m.del(e),c;case 3:return[2]}}
2))}));return m.set(e,{timestamp:Date.now(),value:o}),o}(v,n)}return t(n)}}}).call(this,n(49))},602:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(41);function o(t,n){var o=this;void 0===n&&(n={});var c=n.times,l=void 0===c?2:c;return function(n){return Object(r.b)(o,void 0,void 0,(function(){var o,c,d,h,f=this;return Object(r.d)(this,(function(m){return o=n.retryTimes,c=void 0===o?l:o,d=0,h=function(){return Object(r.b)(f,void 0,void 0,(function(){var o;return Object(r.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,t(n)];case 1:return[2,r.sent()];case 2:if(o=r.sent(),c===d)throw o;return d++,"info"===e.env.LOGGER_LEVEL&&console.info("[axios-extensions] request start retrying --\x3e url: ".concat(n.url," , time: ").concat(d)),[2,h()];case 3:return[2]}}))}))},[2,h()]}))}))}}}).call(this,n(49))},605:function(e,t,n){"use strict";var r=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((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}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 h(object,e){try{return e in object}catch(e){return!1}}function f(e,source,t){var n={};return t.isMergeableObject(e)&&d(e).forEach((function(r){n[r]=c(e[r],t)})),d(source).forEach((function(r){(function(e,t){return h(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(h(e,r)&&t.isMergeableObject(source[r])?n[r]=function(e,t){if(!t.customMerge)return m;var n=t.customMerge(e);return"function"==typeof n?n:m}(r,t)(e[r],source[r],t):n[r]=c(source[r],t))})),n}function m(e,source,t){(t=t||{}).arrayMerge=t.arrayMerge||l,t.isMergeableObject=t.isMergeableObject||r,t.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(e)?n?t.arrayMerge(e,source,t):f(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,n){return m(e,n,t)}),{})};var y=m;e.exports=y},606:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return y}));var r=n(65),o=n(148),c=n(607),l=n(609),d=n(267),h=new Map(l.a),f=String(c.a?e.env.SPLITIO_DEBUG:Object(o.a)()?localStorage.getItem("splitio_debug"):""),m=r.a.NONE;function y(e){var t=e.debug,n=e.logger,o=void 0!==t?Object(d.a)(t):m,c=new r.b({logLevel:o||m},h);return c.setLogger(n),o||c._log("error","Invalid Log Level - No changes to the logs will be applied."),c}/^(enabled?|on)/i.test(f)?m=r.a.DEBUG:Object(r.c)(f)&&(m=f)}).call(this,n(49))},607:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var r=!(void 0===e||void 0===e.version||!e.version)}).call(this,n(49))},608:function(e,t,n){"use strict";function r(e){return"function"==typeof e.get&&"function"==typeof e.set&&("function"==typeof e.delete||"function"==typeof e.del)}n.d(t,"a",(function(){return r}))},609:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o="Split SDK client is ready",c=[[r.y,r.bb+"Invalid feature flag, no valid rules or unsupported targeting rule type found"],[r.n,r.cb+"[%s] %s"],[r.H,"logger: Invalid Log Level - No changes to the logs will be applied."],[r.t,"The SDK will not get ready. Reason: %s"],[r.D,r.fb+"Could not store impressions bulk with %s impression(s). Error: %s"],[r.C,r.fb+"Impression listener logImpression method threw: %s."],[r.z,r.eb+"Failed to queue %s"],[r.S,r.lb+"There was an issue loading the mock feature flags data. No changes will be applied to the current cache. %s"],[r.R,r.ob+"Failed to connect or error on streaming connection, with error message: %s"],[r.Q,r.ob+"Failed to authenticate for streaming. Error: %s."],[r.B,"HTTP request failed with %s. URL: %s. Message: %s"],[r.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."],[r.u,"%s: Client has already been destroyed - no calls possible."],[r.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.'],[r.L,"%s: %s must be a plain object."],[r.O,"%s: the maximum size allowed for the properties is 32768 bytes, which was exceeded."],[r.K,"%s: value must be a finite number."],[r.M,"%s: you passed a null or undefined %s. It must be a non-empty string."],[r.T,"%s: %s too long. It must have 250 characters or less."],[r.G,"%s: Key must be an object with bucketingKey and matchingKey with valid string properties."],[r.E,"%s: you passed an invali
2d %s. It must be a non-empty string."],[r.w,"%s: you passed an empty %s. It must be a non-empty string."],[r.x,"%s: %s must be a non-empty array."],[r.J,"%s: provided param must be a boolean value."],[r.F,r.hb+': you passed an invalid "%s" config param. It should be one of the following values: %s. Defaulting to "%s".'],[r.P,r.hb+": the provided storage is invalid.%s Falling back into default MEMORY storage"],[r.I,r.hb+': the provided "%s" config param is lower than allowed. Setting to the minimum value %s seconds'],[r.U,r.hb+": the amount of flag sets provided are big causing uri length error."],[r.N,r.hb+": the Set filter is exclusive and cannot be used simultaneously with names or prefix filters. Ignoring names and prefixes."]].concat([[r.r,r.db+"Value %s doesn't match with expected type."],[r.s,r.db+"Defined attribute `%s`. No attributes received."],[r.Rb,r.kb+"Retrying fetch of memberships (attempt #%s). Reason: %s"],[r.Vb,r.nb+"Error while doing fetch of feature flags. %s"],[r.Fb,r.ob+"Error parsing SSE error notification: %s"],[r.Hb,r.ob+"Error parsing SSE message notification: %s"],[r.Db,r.ob+"Falling back to polling mode. Reason: %s"],[r.Mb,r.pb+"Dropping %s after retry. Reason: %s."],[r.Pb,r.pb+"Failed to push %s, keeping data to retry on next iteration. Reason: %s."],[r.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."],[r.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."],[r.qc,'%s: Property "%s" is of invalid type. Setting value to null.'],[r.vc,"%s: more than 300 properties were provided. Some of them will be trimmed when processed."],[r.gc,'%s: %s "%s" is not of type string, converting.'],[r.uc,'%s: %s "%s" has extra whitespace, trimming.'],[r.nc,'%s: feature flag "%s" does not exist in this environment. Please double check what feature flags exist in Harness FME UI.'],[r.mc,"%s: traffic_type_name should be all lowercase - convert
2ing string to lowercase."],[r.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.'],[r.hc,"%s: you passed %s which is not part of the configured FlagSetsFilter, ignoring Flag Set."],[r.jc,r.hb+": %s integration item(s) at settings is invalid. %s"],[r.sc,r.hb+": feature flag filters are not applicable for Consumer modes where the SDK does not keep rollout data in sync. Filters were discarded"],[r.tc,r.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".'],[r.rc,r.hb+": feature flag filter configuration must be a non-empty array of filter objects."],[r.pc,r.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"],[r.Gb,r.ob+"Fetching Memberships due to an error processing %s notification: %s"],[r.Ib,r.ob+"Fetching SplitChanges due to an error processing %s notification: %s"],[r.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."],[r.lc,"%s: flag set %s should be all lowercase - convert
2ing string to lowercase."],[r.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([[r.f,o+" from cache"],[r.e,o],[r.X,r.fb+"Queueing impression. Feature flag: %s. Key: %s. Evaluation: %s. Label: %s"],[r.sb,"New shared client instance created."],[r.rb,"New Split SDK instance created. %s"],[r.V,r.eb+"Successfully queued %s"],[r.W,r.fb+"Successfully stored %s impression(s)."],[r.fc,"UserConsent: consent status changed from %s to %s."],[r.ec,"UserConsent: call had no effect because it was the current consent status (%s)."],[r.dc,"Starting the SDK with %s user consent. No data will be sent."],[r.tb,r.mb+"Turning segments data polling %s."],[r.ub,r.mb+"Starting polling"],[r.vb,r.mb+"Stopping polling"],[r.Wb,r.nb+"Retrying fetch of feature flags (attempt #%s). Reason: %s"],[r.Nb,r.pb+"Flushing full %s queue and resetting timer."],[r.Lb,r.pb+"Pushing %s."],[r.Ob,r.pb+"Flushing %s because page became hidden."],[r.Kb,r.ob+"Refreshing streaming token in %s seconds, and connecting streaming in %s seconds."],[r.Jb,r.ob+"Attempting to reconnect streaming in %s seconds."],[r.Ab,r.ob+"Connecting streaming."],[r.Bb,r.ob+"Streaming is disabled for given SDK key. Switching to polling mode."],[r.Cb,r.ob+"Disconnecting streaming."],[r.Yb,r.jb+"Streaming not available. Starting polling."],[r.Qb,r.jb+"Streaming couldn't connect. Continue polling."],[r.Zb,r.jb+"Streaming connected. Syncing and stopping polling."]]).concat([[r.h,r.bb+"[andCombiner] evaluates to %s"],[r.i,r.bb+"Treatment found: %s"],[r.j,r.bb+"All predicates evaluated, no treatment found."],[r.g,r.ab+': using algo "murmur" bucket %s for key %s using seed %s - treatment %s'],[r.l,r.cb+'[IN_SPLIT_TREATMENT] parent feature flag "%s" evaluated to "%s" with label "%s". %s evaluated treatment is part of %s ? %s.'],[r.m,r.cb+'[IN_SPLIT_TREATMENT] will evaluate parent feature flag: "%s" with key: %s %s'],[r.q,r.db+"Extracted attribute `%s`. %s will be used for matching."],[r.p,r.ab+":sanitize: Attempted to sanitize %s which should be of type %s. Sanitized and processed value => %s"],[r.o,r.cb+"[%s] Result: %s. Rule value: %s. Evaluation value: %s"],[r.k,r.ab+"Evaluates to default treatment. %s"],[r.b,r.Y+"Registering cleanup handler %s"],[r.a,r.Y+"Deregistering cleanup handler %s"],[r.wb,"Retrieving default SDK client."],[r.xb,"Retrieving existing SDK client."],[r.yb,"Retrieving manager instance."],[r.Sb,r.lb+"Feature flags data: \n%s"],[r.Ub,r.nb+"Spin up feature flags update using since = %s and rbSince = %s."],[r.Xb,r.nb+"New feature flags: %s. Removed feature flags: %s."],[r.Tb,r.nb+"New rule-based segments: %s. Removed rule-based segments: %s."],[r.Eb,r.ob+"New SSE message received, with data: %s."],[r.bc,r.ib+": Starting %s. Running each %s millis"],[r.ac,r.ib+": Running %s"],[r.cc,r.ib+": Stopping %s"],[r.zb,r.hb+': feature flags filtering criteria is "%s".']])},611:function(e,t,n){var r;e.exports=function(){function e(t,n,r){function o(i,c){if(!n[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=n[i]={exports:{}};t[i][0].call(p.exports,(function(e){return o(t[i][1][e]||e)}),p,p.exports,e,t,n,r)}return n[i].exports}for(var u=!1,i=0;i<r.length;i++)o(r[i]);return o}return e}()({1:[function(e,t,n){"use strict";var r={};function o(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=r[n]))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,n){script.addEventListener("load",(function(){t(script)})),script.addEventListener("error",(function(){n(new Error("".concat(e.src," failed to load.")))})),script.addEventListener("abort",(function(){n(new Error("".concat(e.src," has aborted.")))})),c.appendChild(script)})),r[n]=t,t}o.clearCache=function(){r={}},t.exports=o},{}],2:[function(e,t,n){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,n){"use strict";
2t.exports=function(e){return e=e||window.navigator.userAgent,/Android/i.test(e)}},{}],4:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/CrOS/i.test(e)}},{}],5:[function(e,t,n){"use strict";var r=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")||r(e)||o(e)||c(e)||l(e)||d(e))}},{"./is-duckduckgo":6,"./is-edge":7,"./is-opera":17,"./is-samsung":19,"./is-silk":20}],6:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("DuckDuckGo/")}},{}],7:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Edge/")||-1!==e.indexOf("Edg/")}},{}],8:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/Firefox/i.test(e)}},{}],9:[function(e,t,n){"use strict";var r=e("detectincognitojs");t.exports=function(){return r.detectIncognito()}},{detectincognitojs:52}],10:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/FxiOS/i.test(e)}},{}],11:[function(e,t,n){"use strict";var r=e("./is-ios");function o(e){return/\bGSA\b/.test(e)}t.exports=function(e){return e=e||window.navigator.userAgent,r(e)&&o(e)}},{"./is-ios":15}],12:[function(e,t,n){"use strict";var r=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 h(e){return e.indexOf("FBAN")>-1}t.exports=function(e){return e=e||window.navigator.userAgent,r(e)&&l(e)&&!d(e)&&!o(e)&&!h(e)}},{"./is-ios":15,"./is-ios-firefox":10}],13:[function(e,t,n){"use strict";var r=e("./is-ios"),o=e("./is-ios-google-search-app");t.exports=function(e){return e=e||window.navigator.userAgent,!!r(e)&&(!!o(e)||/.+AppleWebKit(?!.*Safari)/i.test(e))}},{"./is-ios":15,"./is-ios-google-search-app":11}],14:[function(e,t,n){"use strict";var r=e("./is-ios-webview");t.exports=function(e,t){return t=void 0!==t?t:window.statusbar.visible,r(e)&&t}},{"./is-ios-webview":13}],15:[function(e,t,n){"use strict";var r=e("./is-ipados");t.exports=function(e,t,n){void 0===t&&(t=!0),e=e||window.navigator.userAgent;var o=/iPhone|iPod|iPad/i.test(e);return t?o||r(e,n):o}},{"./is-ipados":16}],16:[function(e,t,n){"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}},{}],17:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("OPR/")||-1!==e.indexOf("Opera/")||-1!==e.indexOf("OPT/")}},{}],18:[function(e,t,n){"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)}},{}],19:[function(e,t,n){"use strict";t.exports=function(e){return e=e||window.navigator.userAgent,/SamsungBrowser/i.test(e)}},{}],20:[function(e,t,n){"use strict";t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("Silk/")}},{}],21:[function(e,t,n){"use strict";var r=48,o=e("./is-android"),c=e("./is-ios-firefox"),l=e("./is-ios-webview"),d=e("./is-chrome"),h=e("./is-samsung"),f=e("./is-duckduckgo");function m(e){var t=(e=e||window.navigator.userAgent).match(/CriOS\/(\d+)\./);return!!t&&parseInt(t[1],10)<r}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)&&!f(e)}function _(e){return!d(e)&&!h(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":5,"./is-duckduckgo":6,"./is-ios-firefox":10,"./is-ios-webview":13,"./is-samsung":19}],22:[function(e,t,n){t.exports=e("./dist/is-android")},{"./dist/is-android":3}],23:[function(e,t,n){t.exports=e("./dist/is-chrome-os")},{"./dist/is-chrome-os":4}],24:[function(e,t,n){t.exports=e("./dist/is-chrome")},{"./dist/is-chrome":5}],25:[function(e,t,n){t.exports=e("./dist/is-firefox")},{"./dist/is-firefox":8}],26:[function(e,t,n){t.exports=e("./dist/is-incognito")},{"./dist/is-incognito":9}],27:[function(e,t,n){t.exports=e("./dist/is-ios-safari")},{"./dist/is-ios-safari":12}],28:[function(e,t,n){t.exports=e("./dist/is-ios-webview")},{"./dist/is-ios-webview":13}],29:[function(e,t,n){t.exports=e("./dist/is-ios-wkwebview")},{"./dist/is-ios-wkwebview":14}],30:[function(e,t,n){t.exports=e("./dist/is-ios")},{"./dist/is-ios":15}],31:[function(e,t,n){t.exports=e("./dist/is-safari")},{"./dist/is-safari":18}],32:[function(e,t,n){t.exports=e("./dist/supports-popups")},{"./dist/supports-popups":21}],33:[function(e,t,n){"use strict";var r=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 n=this._events[e];if(n){var r=n.indexOf(t);n.splice(r,1)}},e.prototype._emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this._events[e];r&&r.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=r},{}],34:[function(e,t,n){"use strict";var r="undefined"!=typeof Promise?Promise:null,o=function(){function e(t){var n=this;"function"!=typeof t?(this._promise=new e.Promise((function(e,t){n._resolveFunction=e,n._rejectFunction=t})),t=t||{}
2,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=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.resolve=function(t){var n=this;return this.isFulfilled||(this._setResolved(),e.Promise.resolve().then((function(){return n._onResolve(t)})).then((function(e){n._resolveFunction(e)})).catch((function(e){n._resetState(),n.reject(e)}))),this},e.prototype.reject=function(t){var n=this;return this.isFulfilled||(this._setRejected(),e.Promise.resolve().then((function(){return n._onReject(t)})).then((function(e){n._setResolved(),n._resolveFunction(e)})).catch((function(e){return n._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=r,e}();t.exports=o},{}],35:[function(e,t,n){"use strict";var r=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,r.setAttributes)(iframe,t),iframe.getAttribute("id")||(iframe.id=iframe.name),iframe}},{"./lib/assign":36,"./lib/default-attributes":37,"./lib/set-attributes":38}],36:[function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){"object"==typeof t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}Object.defineProperty(n,"__esModule",{value:!0}),n.assign=void 0,n.assign=r},{}],37:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.defaultAttributes=void 0,n.defaultAttributes={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no"}},{}],38:[function(e,t,n){"use strict";function r(element,e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];null==n?element.removeAttribute(t):element.setAttribute(t,n)}}Object.defineProperty(n,"__esModule",{value:!0}),n.setAttributes=void 0,n.setAttributes=r},{}],39:[function(e,t,n){"use strict";function r(){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=r},{}],40:[function(e,t,n){"use strict";function r(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];setTimeout((function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}}),1)}}Object.defineProperty(n,"__esModule",{value:!0}),n.deferred=r},{}],41:[function(e,t,n){"use strict";function r(e){var t=!1;return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t||(t=!0,e.apply(void 0,n))}}Object.defineProperty(n,"__esModule",{value:!0}),n.once=r},{}],42:[function(e,t,n){"use strict";function r(e,t){if(!t)return e;e.then((function(data){return t(null,data)})).catch((function(e){return t(e)}))}Object.defineProperty(n,"__esModule",{value:!0}),n.promiseOrCallback=r},{}],43:[function(e,t,n){"use strict";var r=e("./lib/deferred"),o=e("./lib/once"),c=e("./lib/promise-or-callback");function l(e){return function(){for(var t,n=[],l=0;l<arguments.length;l++)n[l]=arguments[l];return"function"==typeof n[n.length-1]&&(t=n.pop(),t=o.once(r.deferred(t))),c.promiseOrCallback(e.apply(this,n),t)}}l.wrapPrototype=function(e,t){void 0===t&&(t={});var n=t.ignoreMethods||[],r=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter((function(t){var o,c="constructor"!==t&&"function"==typeof e.prototype[t],l=-1===n.indexOf(t);return o=!!r||"_"!==t.charAt(0),c&&o&&l}
2)).forEach((function(t){var n=e.prototype[t];e.prototype[t]=l(n)})),e},t.exports=l},{"./lib/deferred":40,"./lib/once":41,"./lib/promise-or-callback":42}],44:[function(e,t,n){var o,c;o=this,c=function(e){"use strict";function t(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function l(e){try{h(r.next(e))}catch(e){c(e)}}function d(e){try{h(r.throw(e))}catch(e){c(e)}}function h(e){e.done?n(e.value):o(e.value).then(l,d)}h((r=r.apply(e,t||[])).next())}))}function n(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var r={},o={};function c(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=o[n]))return t;var script=document.createElement("script"),r=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(r).forEach((function(e){script.setAttribute("data-".concat(e),"".concat(r[e]))})),t=new Promise((function(t,n){script.addEventListener("load",(function(){t(script)})),script.addEventListener("error",(function(){n(new Error("".concat(e.src," failed to load.")))})),script.addEventListener("abort",(function(){n(new Error("".concat(e.src," has aborted.")))})),c.appendChild(script)})),o[n]=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 n=e.container||document.head;return t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e.href),t.setAttribute("id",e.id),n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),Promise.resolve(t)};Object.defineProperty(r,"__esModule",{value:!0}),r.loadStylesheet=f=r.loadScript=void 0;var h=l,f=r.loadScript=h,m=d;r.loadStylesheet=m;var y,v,_="https://www.paypalobjects.com",E="fastlane",T="connect-boba",A={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:T,LOCALE_PATH:"".concat(T,"/locales/"),CDNX_PROD:_},w={BT:"BT",PPCP:"PPCP"};function S(){return"function"==typeof window.define&&!!window.define.amd}function O(){return S()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config}function I(e,r,o){var c,l;return void 0===o&&(o=!0),t(this,void 0,void 0,(function(){var t,d;return n(this,(function(n){if((t=P())&&t[e.module]){if(r&&(null===(c=t[e.module])||void 0===c?void 0:c.VERSION)!==r)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(r));return[2,!0]}if(!r)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,C(e,r,o)]}))}))}function C(e,t,n){if(void 0===n&&(n=!0),S()){var r=n?e.amdModule.minified:e.amdModule.unminified;return new Promise((function(e,t){window.require([r],e,t)}))}var script=n?e.script.minified:e.script.unminified;return f({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(script)})}function P(){return null===window||void 0===window?void 0:window.braintree}var N={Client:"client",HostedCardFields:"hostedFields"},D="braintree",R=((y={})[N.Client]="client",y[N.HostedCardFields]="hosted-fields",y),L=((v={})[N.Client]={id:"client",module:N.Client,amdModule:{unminified:"".concat(D,"/").concat(R[N.Client]),minified:"".concat(D,"/").concat(R[N.Client],".min")},script:{unminified:"".concat(R[N.Client],".js"),minified:"".concat(R[N.Client],".min.js")}},v[N.HostedCardFields]={id:"hcf",module:N.HostedCardFields,amdModule:{unminified:"".concat(D,"/").concat(R[N.HostedCardFields]),minified:"".concat(D,"/").concat(R[N.HostedCardFields],".min")},script:{unminified:"".concat(R[N.HostedCardFields],".js"),minified:"".concat(R[N.HostedCardFields],".min.js")}},v);function k(e){return t(this,void 0,void 0,(function(){var t,r,o,c;return n(this,(function(n){switch(n.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,r=e.minified,o=U(e),c=F(e),e.platform!==w.BT?[3,2]:[4,Promise.all([I(L.hostedFields,t,r),x(o,r)])];case 1:case 3:return n.sent(),[3,5];case 2:return e.platform!==w.PPCP?[3,4]:[4,Promise.all([I(L.client,t,r),I(L.hostedFields,t,r),x(o,r)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:c}}]}}))}))}function x(e,t){if(void 0===t&&(t=!0),S()){O();var n="".concat(E,"/").concat(t?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified);return new Promise((function(e,t){window.require([n],e,t)}))}return f({id:"axo-id",src:e,forceScriptReload:!0})}function M(e){var t=e.assetUrl,n=e.bundleId;return n?"https://cdn-".concat(n,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(A.CDNX_PROD,"/").concat(t)}function U(e){var t,n=!1!==(null==e?void 0:e.minified)?A.AXO_ASSET_NAME.minified:A.AXO_ASSET_NAME.unminified;return M({assetUrl:S()?A.AXO_ASSET_PATH:"".concat(A.AXO_ASSET_PATH,"/").concat(n,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}function F(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=k},"object"==typeof n&&void 0!==t?c(n):"function"==typeof r&&r.amd?r(["exports"],c):c((o="undefined"!=typeof globalThis?globalThis:o||self).loadAxo={})},{}],45:[function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=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},r.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"),h=e("./lib/clone"),f={}
2,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,h.clone)(y);function _(e){return f[e]||o[e]}function E(){return v.map((function(e){return(0,h.clone)(_(e))}))}function T(e,t){void 0===t&&(t=!1);var n=v.indexOf(e);if(!t&&-1===n)throw new Error('"'+e+'" is not a supported card type.');return n}function A(e){var t=[];if(!(0,l.isValidInputType)(e))return t;if(0===e.length)return E();v.forEach((function(n){var r=_(n);(0,c.addMatchingCardsToResults)(e,r,t)}));var n=(0,d.findBestMatch)(t);return n?[n]:t}A.getTypeInfo=function(e){return(0,h.clone)(_(e))},A.removeCard=function(e){var t=T(e);v.splice(t,1)},A.addCard=function(e){var t=T(e.type,!0);f[e.type]=e,-1===t&&v.push(e.type)},A.updateCard=function(e,t){var n=f[e]||o[e];if(!n)throw new Error('"'.concat(e,"\" is not a recognized type. Use `addCard` instead.'"));if(t.type&&n.type!==t.type)throw new Error("Cannot overwrite type parameter.");var c=(0,h.clone)(n);c=r(r({},c),t),f[c.type]=c},A.changeOrder=function(e,t){var n=T(e);v.splice(n,1),v.splice(t,0,e)},A.resetModifications=function(){v=(0,h.clone)(y),f={}},A.types=m,t.exports=A},{"./lib/add-matching-cards-to-results":46,"./lib/card-types":47,"./lib/clone":48,"./lib/find-best-match":49,"./lib/is-valid-input-type":50}],46:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.addMatchingCardsToResults=c;var r=e("./clone"),o=e("./matches");function c(e,t,n){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,r.clone)(t);c=Array.isArray(pattern)?String(pattern[0]).length:String(pattern).length,e.length>=c&&(l.matchStrength=c),n.push(l);break}}}},{"./clone":48,"./matches":51}],47:[function(e,t,n){"use strict";var r={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}}
2,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=r},{}],48:[function(e,t,n){"use strict";function r(e){return e?JSON.parse(JSON.stringify(e)):null}Object.defineProperty(n,"__esModule",{value:!0}),n.clone=r},{}],49:[function(e,t,n){"use strict";function r(e){var t=e.filter((function(e){return e.matchStrength})).length;return t>0&&t===e.length}function o(e){return r(e)?e.reduce((function(e,t){return e?Number(e.matchStrength)<Number(t.matchStrength)?t:e:t})):null}Object.defineProperty(n,"__esModule",{value:!0}),n.findBestMatch=o},{}],50:[function(e,t,n){"use strict";function r(e){return"string"==typeof e||e instanceof String}Object.defineProperty(n,"__esModule",{value:!0}),n.isValidInputType=r},{}],51:[function(e,t,n){"use strict";function r(e,t,n){var r=String(t).length,o=e.substr(0,r),c=parseInt(o,10);return t=parseInt(String(t).substr(0,o.length),10),n=parseInt(String(n).substr(0,o.length),10),c>=t&&c<=n}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)?r(e,pattern[0],pattern[1]):o(e,pattern)}Object.defineProperty(n,"__esModule",{value:!0}),n.matches=c},{}],52:[function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,c){function l(e){try{h(r.next(e))}catch(e){c(e)}}function d(e){try{h(r.throw(e))}catch(e){c(e)}}function h(e){e.done?n(e.value):o(e.value).then(l,d)}h((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,body){var t,n,r,g,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=body.call(e,o)}catch(e){c=[6,e],n=0}finally{t=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};function c(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,new Promise((function(e,t){var n="Unknown",c=!1;function l(t){c||(c=!0,e({isPrivate:t,browserName:n}))}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 h(e){try{return e===eval.toString().length}catch(e){return!1}}function f(){var e=0,t=parseInt("-1");try{t.toFixed(t)}catch(t){e=t.message.length}return e}function m(){return 44===f()}function y(){return 51===f()}function v(){return 25===f()}function _(){return void 0!==navigator.msSaveBlob&&h(39)}function E(){var e;return r(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,navigator.storage.getDirectory()];case 1:return r.sent(),l(!1),[3,3];case 2:return t=r.sent(),n=t,t instanceof Error&&(n=null!==(e=t.message)&&void 0!==e?e:t),"string"!=typeof n?(l(!1),[2]):(l(!!n.includes("unknown transient reason")),[3,3]);case 3:return[2]}}
2))}))}function T(){var e=String(Math.random());try{var t=indexedDB.open(e,1);t.onupgradeneeded=function(t){var n=t.target.result,r=function(e){l(e)};try{n.createObjectStore("t",{autoIncrement:!0}).put(new Blob),r(!1)}catch(e){(e.message||"").includes("are not yet supported")?r(!0):r(!1)}finally{n.close(),indexedDB.deleteDatabase(e)}},t.onerror=function(){return l(!1)}}catch(e){l(!1)}}function 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 w(){var e;return r(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?T():A(),t.label=3;case 3:return[2]}}))}))}function S(){var e=window;return void 0!==e.performance&&void 0!==e.performance.memory&&void 0!==e.performance.memory.jsHeapSizeLimit?performance.memory.jsHeapSizeLimit:1073741824}function O(){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(e,t){l(Math.round(t/1048576)<2*Math.round(S()/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?O():I()}function P(){return r(this,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:if(!navigator.storage||!navigator.storage.getDirectory)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,navigator.storage.getDirectory()];case 2:return n.sent(),l(!1),[3,4];case 3:return e=n.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 N(){l(void 0===window.indexedDB)}function main(){return r(this,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return m()?(n="Safari",[4,w()]):[3,2];case 1:return e.sent(),[3,6];case 2:return y()?(n=d(),C(),[3,6]):[3,3];case 3:return v()?(n="Firefox",[4,P()]):[3,5];case 4:return e.sent(),[3,6];case 5:_()?(n="Internet Explorer",N()):t(new Error("detectIncognito cannot determine the browser")),e.label=6;case 6:return[2]}}
2))}))}main().catch(t)}))];case 1:return[2,e.sent()]}}))}))}n.__esModule=!0,n.detectIncognito=void 0,n.detectIncognito=c,"undefined"!=typeof window&&(window.detectIncognito=c),n.default=c},{}],53:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Framebus=void 0;var r=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&&(r.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 n=this.origin;if(e=this.namespaceEvent(e),(0,r.isntString)(e))return!1;if((0,r.isntString)(n))return!1;"function"==typeof data&&(t=data,data=void 0);var o=(0,r.packagePayload)(e,n,data,t);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach((function(e){(0,r.sendMessage)(e,o,n)})):(0,r.broadcast)(o,{origin:n,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,data){var n=this;return new e.Promise((function(e,r){n.emit(t,data,(function(t){e(t)}))||r(new Error('Listener not added for "'.concat(t,'"')))}))},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var n=this,o=this.origin,c=t;return e=this.namespaceEvent(e),!(0,r.subscriptionArgsInvalid)(e,c,o)&&(this.hasAdditionalChecksForOnListeners&&(c=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];n.passesVerifyDomainCheck(this&&this.origin)&&n.hasMatchingTargetFrame(this&&this.source)&&t.apply(void 0,e)}),this.listeners.push({eventName:e,handler:c,originalHandler:t}),r.subscribers[o]=r.subscribers[o]||{},r.subscribers[o][e]=r.subscribers[o][e]||[],r.subscribers[o][e].push(c),!0)},e.prototype.off=function(e,t){var n=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&&(n=o.handler)}e=this.namespaceEvent(e);var c=this.origin;if((0,r.subscriptionArgsInvalid)(e,n,c))return!1;var l=r.subscribers[c]&&r.subscribers[c][e];if(!l)return!1;for(i=0;i<l.length;i++)if(l[i]===n)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}();n.Framebus=c},{"./lib":61}],54:[function(e,t,n){"use strict";var r=e("./lib"),o=e("./framebus");(0,r.attach)(),t.exports=o.Framebus},{"./framebus":53,"./lib":61}],55:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.detach=n.attach=void 0;var r=e("./"),o=!1;function c(){o||"undefined"==typeof window||(o=!0,window.addEventListener("message",r.onMessage,!1))}function l(){o=!1,window.removeEventListener("message",r.onMessage,!1)}n.attach=c,n.detach=l},{"./":61}],56:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.broadcastToChildWindows=void 0;var r=e("./");function o(e,t,source){for(var i=r.childWindows.length-1;i>=0;i--){var n=r.childWindows[i];n.closed?r.childWindows.splice(i,1):source!==n&&(0,r.broadcast)(e,{origin:t,frame:n.top})}}n.broadcastToChildWindows=o},{"./":61}],57:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.broadcast=void 0;var r=e("./");function o(e,t){var n,i=0,c=t.origin,l=t.frame;try{for(l.postMessage(e,c),(0,r.hasOpener)(l)&&l.opener.top!==window.top&&o(e,{origin:c,frame:l.opener.top});n=l.frames[i];)o(e,{origin:c,frame:n}),i++}catch(e){}}n.broadcast=o},{"./":61}],58:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subscribers=n.childWindows=n.prefix=void 0,n.prefix="/*framebus*/",n.childWindows=[],n.subscribers={}},{}],59:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.dispatch=void 0;var r=e("./");function o(e,t,data,n,o){if(r.subscribers[e]&&r.subscribers[e][t]){var c=[];data&&c.push(data),n&&c.push(n);for(var i=0;i<r.subscribers[e][t].length;i++)r.subscribers[e][t][i].apply(o,c)}}n.dispatch=o},{"./":61}],60:[function(e,t,n){"use strict";function r(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}Object.defineProperty(n,"__esModule",{value:!0}),n.hasOpener=void 0,n.hasOpener=r},{}],61:[function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var desc=Object.getOwnPropertyDescriptor(t,n);
2desc&&!("get"in desc?!t.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,desc)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var p in e)"default"===p||Object.prototype.hasOwnProperty.call(t,p)||r(t,e,p)};Object.defineProperty(n,"__esModule",{value:!0}),o(e("./attach"),n),o(e("./broadcast-to-child-windows"),n),o(e("./broadcast"),n),o(e("./constants"),n),o(e("./dispatch"),n),o(e("./has-opener"),n),o(e("./is-not-string"),n),o(e("./message"),n),o(e("./package-payload"),n),o(e("./send-message"),n),o(e("./subscribe-replier"),n),o(e("./subscription-args-invalid"),n),o(e("./types"),n),o(e("./unpack-payload"),n)},{"./attach":55,"./broadcast":57,"./broadcast-to-child-windows":56,"./constants":58,"./dispatch":59,"./has-opener":60,"./is-not-string":62,"./message":63,"./package-payload":64,"./send-message":65,"./subscribe-replier":66,"./subscription-args-invalid":67,"./types":68,"./unpack-payload":69}],62:[function(e,t,n){"use strict";function r(e){return"string"!=typeof e}Object.defineProperty(n,"__esModule",{value:!0}),n.isntString=void 0,n.isntString=r},{}],63:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.onMessage=void 0;var r=e("./");function o(e){if(!(0,r.isntString)(e.data)){var t=(0,r.unpackPayload)(e);if(t){var data=t.eventData,n=t.reply;(0,r.dispatch)("*",t.event,data,n,e),(0,r.dispatch)(e.origin,t.event,data,n,e),(0,r.broadcastToChildWindows)(e.data,t.origin,e.source)}}}n.onMessage=o},{"./":61}],64:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.packagePayload=void 0;var r=e("./");function o(e,t,data,n){var o,c={event:e,origin:t};"function"==typeof n&&(c.reply=(0,r.subscribeReplier)(n,t)),c.eventData=data;try{o=r.prefix+JSON.stringify(c)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}n.packagePayload=o},{"./":61}],65:[function(e,t,n){"use strict";function r(e,t,n){try{e.postMessage(t,n)}catch(e){}}Object.defineProperty(n,"__esModule",{value:!0}),n.sendMessage=void 0,n.sendMessage=r},{}],66:[function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.subscribeReplier=void 0;var o=e("../framebus"),c=r(e("@braintree/uuid"));function l(e,t){var n=(0,c.default)();function r(data,c){e(data,c),o.Framebus.target({origin:t}).off(n,r)}return o.Framebus.target({origin:t}).on(n,r),n}n.subscribeReplier=l},{"../framebus":53,"@braintree/uuid":39}],67:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.subscriptionArgsInvalid=void 0;var r=e("./");function o(e,t,n){return!!(0,r.isntString)(e)||"function"!=typeof t||(0,r.isntString)(n)}n.subscriptionArgsInvalid=o},{"./":61}],68:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},{}],69:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.unpackPayload=void 0;var r=e("./");function o(e){var t;if(e.data.slice(0,r.prefix.length)!==r.prefix)return!1;try{t=JSON.parse(e.data.slice(r.prefix.length))}catch(e){return!1}if(t.reply){var n=e.origin,o=e.source,c=t.reply;t.reply=function(e){if(o){var t=(0,r.packagePayload)(c,n,e);t&&o.postMessage(t,n)}}}return t}n.unpackPayload=o},{"./":61}],70:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.isIos=n.isIE9=n.isSamsungBrowser=n.isAndroidChrome=n.isKitKatWebview=void 0;var r="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");n.isIos=d;var h=e("@braintree/browser-detection/is-ie9");n.isIE9=h;var f=/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=r),o(e)&&f.test(e)}function v(e){return void 0===e&&(e=r),(o(e)||c(e))&&l(e)}function _(e){return void 0===e&&(e=r),/SamsungBrowser/.test(e)||m(e)}n.isKitKatWebview=y,n.isAndroidChrome=v,n.isSamsungBrowser=_},{"@braintree/browser-detection/is-android":83,"@braintree/browser-detection/is-chrome":85,"@braintree/browser-detection/is-chrome-os":84,"@braintree/browser-detection/is-ie9":86,"@braintree/browser-detection/is-ios":87}],71:[function(e,t,n){"use strict";var r=e("./lib/device");t.exports=function(){return!(0,r.isSamsungBrowser)()}},{"./lib/device":70}],72:[function(e,t,n){arguments[4][3][0].apply(n,arguments)},{dup:3}],73:[function(e,t,n){arguments[4][4][0].apply(n,arguments)},{dup:4}],74:[function(e,t,n){arguments[4][5][0].apply(n,arguments)},{"./is-duckduckgo":75,"./is-edge":76,"./is-opera":80,"./is-samsung":81,"./is-silk":82,dup:5}],75:[function(e,t,n){arguments[4][6][0].apply(n,arguments)},{dup:6}],76:[function(e,t,n){arguments[4][7][0].apply(n,arguments)},{dup:7}],77:[function(e,t,n){"use strict";
2t.exports=function(e){return-1!==(e=e||window.navigator.userAgent).indexOf("MSIE 9")}},{}],78:[function(e,t,n){arguments[4][15][0].apply(n,arguments)},{"./is-ipados":79,dup:15}],79:[function(e,t,n){arguments[4][16][0].apply(n,arguments)},{dup:16}],80:[function(e,t,n){arguments[4][17][0].apply(n,arguments)},{dup:17}],81:[function(e,t,n){arguments[4][19][0].apply(n,arguments)},{dup:19}],82:[function(e,t,n){arguments[4][20][0].apply(n,arguments)},{dup:20}],83:[function(e,t,n){arguments[4][22][0].apply(n,arguments)},{"./dist/is-android":72,dup:22}],84:[function(e,t,n){arguments[4][23][0].apply(n,arguments)},{"./dist/is-chrome-os":73,dup:23}],85:[function(e,t,n){arguments[4][24][0].apply(n,arguments)},{"./dist/is-chrome":74,dup:24}],86:[function(e,t,n){t.exports=e("./dist/is-ie9")},{"./dist/is-ie9":77}],87:[function(e,t,n){arguments[4][30][0].apply(n,arguments)},{"./dist/is-ios":78,dup:30}],88:[function(e,t,n){t.exports=e("./dist/supports-input-formatting")},{"./dist/supports-input-formatting":71}],89:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),o=e("./errors"),c=e("../lib/assign").assign,l=e("../lib/methods"),d=e("../lib/convert-methods-to-error"),h=e("@braintree/wrap-promise");function f(e){this._client=e.client}f.prototype.getRewardsBalance=function(e){var data,t=e.nonce;return 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 r({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 r({type:o.AMEX_NONCE_REQUIRED.type,code:o.AMEX_NONCE_REQUIRED.code,message:"getRewardsBalance must be called with a nonce."}))},f.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 r({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 r({type:o.AMEX_NONCE_REQUIRED.type,code:o.AMEX_NONCE_REQUIRED.code,message:"getExpressCheckoutProfile must be called with a nonce."}))},f.prototype.teardown=function(){return d(this,l(f.prototype)),Promise.resolve()},t.exports=h.wrapPrototype(f)},{"../lib/assign":145,"../lib/braintree-error":148,"../lib/convert-methods-to-error":150,"../lib/methods":180,"./errors":90,"@braintree/wrap-promise":43}],90:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={AMEX_NONCE_REQUIRED:{type:r.types.MERCHANT,code:"AMEX_NONCE_REQUIRED"},AMEX_NETWORK_ERROR:{type:r.types.NETWORK,code:"AMEX_NETWORK_ERROR"}}},{"../lib/braintree-error":148}],91:[function(e,t,n){"use strict";var r=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",h=e("@braintree/wrap-promise");function f(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 r(e)}))}t.exports={create:h(f),VERSION:d}},{"../lib/basic-component-verification":146,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./american-express":89,"@braintree/wrap-promise":43}],92:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),o=e("../lib/analytics"),c=e("./errors"),l=e("../lib/methods"),d=e("../lib/convert-methods-to-error"),h=e("@braintree/wrap-promise"),f=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,n={countryCode:t.countryCode,currencyCode:t.currencyCode,merchantCapabilities:t.merchantCapabilities||["supports3DS"],supportedNetworks:t.supportedNetworks.map((function(e){return"mastercard"===e?"masterCard":e}))};return Object.assign({},n,e)},m.prototype.performValidation=function(e){var t=this;return e&&e.validationURL?this._waitForClient().then((function(){var n={validationUrl:e.validationURL,domainName:e.domainName||(f()?window.parent.location.hostname:window.location.hostname),merchantIdentifier:e.merchantIdentifier||t.merchantIdentifier};return null!=e.displayName&&(n.displayName=e.displayName),t._client.request({method:"post",endpoint:"apple_pay_web/sessions",data:{_meta:{source:"apple-pay"},applePayWebSession:n}})})).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 r({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 r({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 r(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 r({type:c.APPLE_PAY_TOKENIZATION.type,code:c.APPLE_PAY_TOKENIZATION.code,message:c.APPLE_PAY_TOKENIZATION.message,details:{originalError:e}}))})):Promise.reject(new r(c.APPLE_PAY_PAYMENT_TOKEN_REQUIRED))},m.prototype.teardown=function(){return d(this,l(m.prototype)),Promise.resolve()},t.exports=h.wrapPrototype(m)},{"../lib/analytics":143,"../lib/braintree-error":148,"../lib/convert-methods-to-error":150,"../lib/in-iframe":174,"../lib/methods":180,"./errors":93,"@braintree/wrap-promise":43}],93:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={APPLE_PAY_NOT_ENABLED:{type:r.types.MERCHANT,code:"APPLE_PAY_NOT_ENABLED",message:"Apple Pay is not enabled for this merchant."},APPLE_PAY_VALIDATION_URL_REQUIRED:{type:r.types.MERCHANT,code:"APPLE_PAY_VALIDATION_URL_REQUIRED",message:"performValidation must be called with a validationURL."},APPLE_PAY_MERCHANT_VALIDATION_NETWORK:{type:r.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:r.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:r.types.MERCHANT,code:"APPLE_PAY_PAYMENT_TOKEN_REQUIRED",message:"tokenize must be called with a payment token."},APPLE_PAY_TOKENIZATION:{type:r.types.NETWORK,code:"APPLE_PAY_TOKENIZATION",message:"A network error occurred when processing the Apple Pay payment."}}},{"../lib/braintree-error":148}],94:[function(e,t,n){"use strict";var r=e("./apple-pay"),o=e("../lib/analytics"),c=e("../lib/braintree-error"),l=e("../lib/basic-component-verification"),d=e("../lib/create-assets-url"),h=e("../lib/create-deferred-client"),f=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 n,l=h.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(f.APPLE_PAY_NOT_ENABLED))}));return e.createPromise=l,n=new r(e),e.useDeferredClient?n:l.then((function(e){return n._client=e,n}))}))}t.exports={create:y(v),VERSION:m}},{"../lib/analytics":143,"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./apple-pay":92,"./errors":93,"@braintree/wrap-promise":43}],95:[function(e,t,n){"use strict";var r=e("./constants").BRAINTREE_VERSION,o=e("./request/graphql"),c=e("./request"),l=e("../lib/is-verified-domain"),d=e("../lib/braintree-error"),h=e("../lib/convert-to-braintree-error"),f=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"),T=e("../lib/assign").assign,A=e("../lib/analytics"),w=e("./errors"),S=e("../lib/constants").VERSION,O=e("../lib/constants").GRAPHQL_URLS,I=e("../lib/methods"),C=e("../lib/convert-methods-to-error"),P=e("../lib/assets"),N=e("../lib/constants").FRAUDNET_FNCLS,D=e("../lib/constants").FRAUDNET_SOURCE,R=e("../lib/constants").FRAUDNET_URL,L={};function k(e){var t,n;if(e=e||{},t=JSON.stringify(e),!(n=e.gatewayConfiguration))throw new d(w.CLIENT_MISSING_GATEWAY_CONFIGURATION);if(["assetsUrl","clientApiUrl","configUrl"].forEach((function(e){if(e in n&&!l(n[e]))throw new d({type:w.CLIENT_GATEWAY_CONFIGURATION_INVA
2LID_DOMAIN.type,code:w.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=n.clientApiUrl+"/v1/",n.graphQL){if(!l(n.graphQL.url))throw new d({type:w.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.type,code:w.CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN.code,message:"graphQL.url property is on an invalid domain."});this._graphQL=new o({graphQL:n.graphQL})}}function x(e,t){var n;if(-1===e?n=new d(w.CLIENT_REQUEST_TIMEOUT):401===e?n=new d(w.CLIENT_AUTHORIZATION_INVALID):403===e?n=new d(w.CLIENT_AUTHORIZATION_INSUFFICIENT):429===e?n=new d(w.CLIENT_RATE_LIMITED):e>=500?n=new d(w.CLIENT_GATEWAY_NETWORK):(e<200||e>=400)&&(n=h(t,{type:w.CLIENT_REQUEST_ERROR.type,code:w.CLIENT_REQUEST_ERROR.code,message:w.CLIENT_REQUEST_ERROR.message})),n)return n.details=n.details||{},n.details.httpStatus=e,n}function M(e){return{Authorization:"Bearer "+(e.authorizationFingerprint||e.authorization),"Braintree-Version":r}}k.initialize=function(e){var t,n,r=L[e.authorization];if(r)return A.sendEvent(r,"custom.client.load.cached"),r;try{n=m(e.authorization)}catch(e){return Promise.reject(new d(w.CLIENT_INVALID_AUTHORIZATION))}return r=f(n,e.sessionId).then((function(n){return e.debug&&(n.isDebug=!0),n.authorization=e.authorization,t=new k(n)})),L[e.authorization]=r,A.sendEvent(r,"custom.client.load.initialized"),r.then((function(e){return A.sendEvent(t,"custom.client.load.succeeded"),e})).catch((function(t){return delete L[e.authorization],Promise.reject(t)}))},k.clearCache=function(){L={}},k.prototype._findOrCreateFraudnetJSON=function(e){var t,n,r,o,c=document.querySelector('script[fncls="'+N+'"]');c||((c=document.body.appendChild(document.createElement("script"))).type="application/json",c.setAttribute("fncls",N)),t=this.getConfiguration(),n={rda_tenant:"bt_card",mid:t.gatewayConfiguration.merchantId},(r=t.authorizationFingerprint)&&r.split("&").forEach((function(e){var component=e.split("=");"customer_id"===component[0]&&component.length>1&&(n.cid=component[1])})),o={f:e.substr(0,32),fp:n,bu:!1,s:D},c.text=JSON.stringify(o)},k.prototype.request=function(e,t){var n=this,r=new Promise((function(t,r){var o,c,l,f,m=Boolean("payment_methods/credit_cards"===e.endpoint&&n.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);if("graphQLApi"!==e.api&&(e.method?e.endpoint||(o="options.endpoint"):o="options.method"),o)throw new d({type:w.CLIENT_OPTION_REQUIRED.type,code:w.CLIENT_OPTION_REQUIRED.code,message:o+" is required when making a request."});if(c="api"in e?e.api:"clientApi",f={method:e.method,graphQL:n._graphQL,timeout:e.timeout,metadata:n._configuration.analyticsMetadata},"clientApi"===c)l=n._clientApiBaseUrl,f.data=y.addMetadata(n._configuration,e.data);
2else{if("graphQLApi"!==c)throw new d({type:w.CLIENT_OPTION_INVALID.type,code:w.CLIENT_OPTION_INVALID.code,message:"options.api is invalid."});l=O[n._configuration.gatewayConfiguration.environment],e.endpoint="",f.method="post",f.data=T({clientSdkMetadata:{platform:n._configuration.analyticsMetadata.platform,source:n._configuration.analyticsMetadata.source,integration:n._configuration.analyticsMetadata.integration,sessionId:n._configuration.analyticsMetadata.sessionId,version:S}},e.data),f.headers=M(n._configuration)}f.url=l+e.endpoint,f.sendAnalyticsEvent=function(e,t){t?A.sendEventPlus(n,e,t):A.sendEvent(n,e)},n._request(f,(function(e,data,o){var l,d;(d=x(o,e))?r(d):"graphQLApi"===c&&data.errors?r(h(data.errors,{type:w.CLIENT_GRAPHQL_REQUEST_ERROR.type,code:w.CLIENT_GRAPHQL_REQUEST_ERROR.code,message:w.CLIENT_GRAPHQL_REQUEST_ERROR.message})):(l=T({_httpStatus:o},data),m&&l.creditCards&&l.creditCards.length>0&&(n._findOrCreateFraudnetJSON(l.creditCards[0].nonce),P.loadScript({src:R,forceScriptReload:!0})),t(l))}))}));return"function"==typeof t?(t=_(E(t)),void r.then((function(e){t(null,e,e._httpStatus)})).catch((function(e){var n=e&&e.details&&e.details.httpStatus;t(e,null,n)}))):r},k.prototype.toJSON=function(){return this.getConfiguration()},k.prototype.getVersion=function(){return S},k.prototype.teardown=v((function(){var e=this;return delete L[e.getConfiguration().authorization],C(e,I(k.prototype)),Promise.resolve()})),t.exports=k},{"../lib/add-metadata":142,"../lib/analytics":143,"../lib/assets":144,"../lib/assign":145,"../lib/braintree-error":148,"../lib/constants":149,"../lib/convert-methods-to-error":150,"../lib/convert-to-braintree-error":151,"../lib/create-authorization-data":153,"../lib/deferred":155,"../lib/is-verified-domain":178,"../lib/methods":180,"../lib/once":181,"./constants":96,"./errors":97,"./get-configuration":98,"./request":111,"./request/graphql":109,"@braintree/wrap-promise":43}],96:[function(e,t,n){"use strict";t.exports={BRAINTREE_VERSION:"2018-05-10"}},{}],97:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN:{type:r.types.MERCHANT,code:"CLIENT_GATEWAY_CONFIGURATION_INVALID_DOMAIN"},CLIENT_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"CLIENT_OPTION_REQUIRED"}
2,CLIENT_OPTION_INVALID:{type:r.types.MERCHANT,code:"CLIENT_OPTION_INVALID"},CLIENT_MISSING_GATEWAY_CONFIGURATION:{type:r.types.INTERNAL,code:"CLIENT_MISSING_GATEWAY_CONFIGURATION",message:"Missing gatewayConfiguration."},CLIENT_INVALID_AUTHORIZATION:{type:r.types.MERCHANT,code:"CLIENT_INVALID_AUTHORIZATION",message:"Authorization is invalid. Make sure your client token or tokenization key is valid."},CLIENT_GATEWAY_NETWORK:{type:r.types.NETWORK,code:"CLIENT_GATEWAY_NETWORK",message:"Cannot contact the gateway at this time."},CLIENT_REQUEST_TIMEOUT:{type:r.types.NETWORK,code:"CLIENT_REQUEST_TIMEOUT",message:"Request timed out waiting for a reply."},CLIENT_REQUEST_ERROR:{type:r.types.NETWORK,code:"CLIENT_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_GRAPHQL_REQUEST_ERROR:{type:r.types.NETWORK,code:"CLIENT_GRAPHQL_REQUEST_ERROR",message:"There was a problem with your request."},CLIENT_RATE_LIMITED:{type:r.types.MERCHANT,code:"CLIENT_RATE_LIMITED",message:"You are being rate-limited; please try again in a few minutes."},CLIENT_AUTHORIZATION_INSUFFICIENT:{type:r.types.MERCHANT,code:"CLIENT_AUTHORIZATION_INSUFFICIENT",message:"The authorization used has insufficient privileges."},CLIENT_AUTHORIZATION_INVALID:{type:r.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":148}],98:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),o=e("@braintree/wrap-promise"),c=e("./request"),l=e("@braintree/uuid"),d=e("../lib/constants"),h=e("./errors"),f=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(n,o){var _,E,T,A,w=t||l(),S={merchantAppId:window.location.host,platform:d.PLATFORM,sdkVersion:d.VERSION,source:d.SOURCE,integration:d.INTEGRATION,integrationType:d.INTEGRATION,sessionId:w};E=e.attrs,T=e.configUrl,E._meta=S,E.braintreeLibraryVersion=d.BRAINTREE_LIBRARY_VERSION,E.configVersion="3",A={url:T,method:"GET",data:E},E.authorizationFingerprint&&e.graphQL?(y(e.graphQL.date,v)&&(A.graphQL=new f({graphQL:{url:e.graphQL.url,features:["configuration"]}})),A.metadata=S):E.tokenizationKey&&(A.graphQL=new f({graphQL:{url:m[e.environment],features:["configuration"]}}),A.metadata=S),c(A,(function(t,c,l){var d;if(t)return d=403===l?h.CLIENT_AUTHORIZATION_INSUFFICIENT:401===l?h.CLIENT_AUTHORIZATION_INVALID:h.CLIENT_GATEWAY_NETWORK,void o(new r({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:S,gatewayConfiguration:c},n(_)}))}))}t.exports={getConfiguration:o(_)}},{"../lib/braintree-error":148,"../lib/constants":149,"../lib/is-date-string-before-or-on":175,"./constants":96,"./errors":97,"./request":111,"./request/graphql":109,"@braintree/uuid":39,"@braintree/wrap-promise":43}],99:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),o=e("./client"),c="3.144.0",l=e("@braintree/wrap-promise"),d=e("../lib/errors");function h(e){return e.authorization?o.initialize(e):Promise.reject(new r({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(h),VERSION:c}},{"../lib/braintree-error":148,"../lib/errors":158,"./client":95,"@braintree/wrap-promise":43}],100:[function(e,t,n){"use strict";var r=e("../../lib/querystring"),o=e("../../lib/assign").assign,c=e("./prep-body"),l=e("./parse-body"),d=e("./xhr"),h=d.isAvailable,f=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 T(e){return!e||e===v}function A(e,t){var n,path,r,o,c,l,d,h,f,m,y;try{n=(o=new URL(e)).hostname,path=o.pathname}catch(t){n=(e.match(/^https?:\/\/([^\/]+)/)||[])[1]||"",path=(e.match(/^https?:\/\/[^\/]+(\/.*)$/)||[])[1]||e}"/v1/tracking/batch/events"!==(r=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,f=Math.round(y.startTime),h=Math.round(y.responseEnd),t.sendAnalyticsEvent("core.api-request-latency",{connect_start_time:l,domain:n,endpoint:r,end_time:h,request_start_time:d,start_time:f})))}function w(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 S(e,t,n){var v,_,E,body,O,I,C,P=e.url,N=e.graphQL,D=e.timeout,R=d.getRequestObject(),L=n,k=Boolean(N&&N.isGraphQLRequest(P,e.data));e.headers=o({"Content-Type":"application/json"},e.headers),E=k?new f(e):new m(e),P=E.getUrl(),body=E.getBody(),O
2=E.getMethod(),I=E.getHeaders(),"GET"===O&&(P=r.queryify(P,body),body=null),h?R.onreadystatechange=function(){if(4===R.readyState){if(0===R.status&&k)return delete e.graphQL,void S(e,t,n);if(C=l(R.responseText),_=E.adaptResponseBody(C),v=E.determineStatus(R.status,C),e.sendAnalyticsEvent&&A(P,e),v>=400||v<200){if(k&&w(C))return delete e.graphQL,void S(e,t,n);if(t<y&&T(v))return t++,void S(e,t,n);L(_||"error",null,v||500)}else L(null,_,v)}}:(e.headers&&(P=r.queryify(P,I)),R.onload=function(){L(null,l(R.responseText),R.status)},R.onerror=function(){L("error",null,500)},R.onprogress=function(){},R.ontimeout=function(){L("timeout",null,-1)});try{R.open(O,P,!0)}catch(r){if(!k)throw r;return delete e.graphQL,void S(e,t,n)}R.timeout=D,h&&Object.keys(I).forEach((function(e){R.setRequestHeader(e,I[e])}));try{R.send(c(O,body))}catch(e){}}function O(e,t){S(e,0,t)}t.exports={request:O}},{"../../lib/assign":145,"../../lib/querystring":182,"./default-request":101,"./graphql/request":110,"./parse-body":112,"./prep-body":113,"./xhr":114}],101:[function(e,t,n){"use strict";function r(e){this._url=e.url,this._data=e.data,this._method=e.method,this._headers=e.headers}r.prototype.getUrl=function(){return this._url},r.prototype.getBody=function(){return this._data},r.prototype.getMethod=function(){return this._method},r.prototype.getHeaders=function(){return this._headers},r.prototype.adaptResponseBody=function(e){return e},r.prototype.determineStatus=function(e){return e},t.exports=r},{}],102:[function(e,t,n){"use strict";var r=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):r(e)}function d(body,e){var t,n=body.data.clientConfiguration;return t={environment:n.environment.toLowerCase(),clientApiUrl:n.clientApiUrl,assetsUrl:n.assetsUrl,analytics:{url:n.analyticsUrl},merchantId:n.merchantId,venmo:"off"},n.supportedFeatures&&(t.graphQL={url:e._graphQL._config.url,features:n.supportedFeatures.map((function(e){return e.toLowerCase()}))}),n.braintreeApi&&(t.braintreeApi=n.braintreeApi),n.applePayWeb&&(t.applePayWeb=n.applePayWeb,t.applePayWeb.supportedNetworks=h(n.applePayWeb.supportedCardBrands,c.applePayWeb),delete t.applePayWeb.supportedCardBrands),n.fastlane&&(t.fastlane=n.fastlane),n.ideal&&(t.ideal=n.ideal),n.creditCard?(t.challenges=n.creditCard.challenges.map((function(e){return e.toLowerCase()})),t.creditCards={supportedCardTypes:h(n.creditCard.supportedCardBrands,c.creditCard)},t.threeDSecureEnabled=n.creditCard.threeDSecureEnabled,t.threeDSecure=n.creditCard.threeDSecure):(t.challenges=[],t.creditCards={supportedCardTypes:[]},t.threeDSecureEnabled=!1),n.googlePay&&(t.androidPay={displayName:n.googlePay.displayName,enabled:!0,environment:n.googlePay.environment.toLowerCase(),googleAuthorizationFingerprint:n.googlePay.googleAuthorization,paypalClientId:n.googlePay.paypalClientId,supportedNetworks:h(n.googlePay.supportedCardBrands,c.googlePay)}),n.venmo&&(t.payWithVenmo={merchantId:n.venmo.merchantId,accessToken:n.venmo.accessToken,environment:n.venmo.environment.toLowerCase(),enrichedCustomerDataEnabled:n.venmo.enrichedCustomerDataEnabled}),n.paypal?(t.paypalEnabled=!0,t.paypal=o({},n.paypal),t.paypal.currencyIsoCode=t.paypal.currencyCode,t.paypal.environment=t.paypal.environment.toLowerCase(),delete t.paypal.currencyCode):t.paypalEnabled=!1,n.unionPay&&(t.unionPay={enabled:!0,merchantAccountId:n.unionPay.merchantAccountId}),n.visaCheckout&&(t.visaCheckout={apikey:n.visaCheckout.apiKey,encryptionKey:n.visaCheckout.encryptionKey,externalClientId:n.visaCheckout.externalClientId,supportedCardTypes:h(n.visaCheckout.supportedCardBrands,c.visaCheckout)}),n.masterpass&&(t.masterpass={merchantCheckoutId:n.masterpass.merchantCheckoutId,supportedNetworks:h(n.masterpass.supportedCardBrands,c.masterpass)}),n.usBankAccount&&(t.usBankAccount={routeId:n.usBankAccount.routeId,plaid:{publicKey:n.usBankAccount.plaidPublicKey}}),n.openBanking&&(t.openBanking={businessNames:n.openBanking.businessNames,allowListedDomains:n.openBanking.allowListedDomains,profileId:n.openBanking.profileId}),t}function h(e,t){return e.reduce((function(e,n){return t.hasOwnProperty(n)?e.concat(t[n]):e}),[])}t.exports=l},{"../../../../lib/assign":145,"./error":105}
2],103:[function(e,t,n){"use strict";var r=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?h(e):r(e)}function h(body){var e,t,data=body.data.tokenizeCreditCardForPayPalConnect,n=data.paymentMethod.details,r=n.last4?n.last4.substr(2,4):"",d=n.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:r?"ending in "+r:"",nonce:data.paymentMethod.id,details:{cardholderName:n.cardholderName,expirationMonth:n.expirationMonth,expirationYear:n.expirationYear,bin:n.bin||"",cardType:o[n.brandCode]||"Unknown",lastFour:n.last4||"",lastTwo:r},type:"CreditCard",threeDSecureInfo:null}]},data.authenticationInsight&&(t=data.authenticationInsight.customerAuthenticationRegulationEnvironment,e.creditCards[0].authenticationInsight={regulationEnvironment:l[t]||t.toLowerCase()}),e}t.exports=d},{"./error":105}],104:[function(e,t,n){"use strict";var r=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?h(e):r(e)}function h(body){var e,t,data=body.data.tokenizeCreditCard,n=data.creditCard,r=n.last4?n.last4.substr(2,4):"",d=n.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:r?"ending in "+r:"",nonce:data.token,details:{cardholderName:n.cardholderName,expirationMonth:n.expirationMonth,expirationYear:n.expirationYear,bin:n.bin||"",cardType:o[n.brandCode]||"Unknown",lastFour:n.last4||"",lastTwo:r},type:"CreditCard",threeDSecureInfo:null}]},data.authenticationInsight&&(t=data.authenticationInsight.customerAuthenticationRegulationEnvironment,e.creditCards[0].authenticationInsight={regulationEnvironment:l[t]||t.toLowerCase()}),e}t.exports=d},{"./error":105}],105:[function(e,t,n){"use strict";function r(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:h(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,n){var r,o=t.extensions.legacyCode,c=e[0];1!==e.length?(n.forEach((function(e){e.field===c&&(r=e)})),r||(r={field:c,fieldErrors:[]},n.push(r)),d(e.slice(1),t,r.fieldErrors)):n.push({code:o,field:c,message:t.message})}function h(e){return{creditCard:"Credit card is invalid"}[e[0].field]}t.exports=r},{}],106:[function(e,t,n){"use strict";var r="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:r,operationName:"ClientConfiguration"}}t.exports=o},{}],107:[function(e,t,n){"use strict";var r=e("../../../../lib/assign").assign;function o(e){var t=e.hasAuthenticationInsight,n="mutation TokenizeCreditCardForPayPalConnect($input: TokenizeCreditCardForPayPalConnectInput!";return t&&(n+=", $authenticationInsightInput: AuthenticationInsightInput!"),n+=") {   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&&(n+="    authenticationInsight(input: $authenticationInsightInput) {      customerAuthenticationRegulationEnvironment    }"),n+="  } }"}function c(body,e){var t=body.creditCard,n=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,h="hasBuyerConsent"in n&&n.hasBuyerConsent,f=t.shippingAddress,m=l(body,e),y=r({},m.input,{email:d,optIn:h,phone:t.phone});return o&&(y.termsAndConditionsVersion=o),c&&(y.termsAndConditionsCountry=c),"authAssertion"in n&&(y.authAssertion=n.authAssertion),f&&(y.shippingAddress=f),{input:y}}function l(body,e){var t=body.creditCard,n=t&&t.billingAddress,r=t&&t.expirationDate,o=t&&(t.expirationMonth||r&&r.split("/")[0].trim()),c=t&&(t.expirationYear||r&&r.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}),n&&(l.input.creditCard.billingAddress=n),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=r({validate:e},input.options)),input}function h(body){var e={hasAuthenticationInsight:Boolean(body.authenticationInsight&&body.merchantAccountId)};return{query:o(e),variables:c(body,e),operationName:"TokenizeCreditCardForPayPalConnect"}}t.exports=h},{"../../../../lib/assign":145}],108:[function(e,t,n){"use strict";var r=e("../../../../lib/assign").assign;function o(e){var t=e.hasAuthenticationInsight,n="mutation TokenizeCreditCard($input: TokenizeCreditCardInput!";return t&&(n+=", $authenticationInsightInput: AuthenticationInsightInput!"),n+=") {   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&&(n+="    authenticationInsight(input: $authenticationInsightInput) {      customerAuthenticationRegulationEnvironment    }"),n+="  } }"}function c(body,e){var t=body.creditCard,n=t&&t.billingAddress,r=t&&t.expirationDate,o=t&&(t.expirationMonth||r&&r.split("/")[0].trim()),c=t&&(t.expirationYear||r&&r.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}),n&&(d.input.creditCard.billingAddress=n),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=r({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":145}],109:[function(e,t,n){"use strict";var r={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 r[e]===
2path})),!l(body)&&t)},c.prototype.getClientApiPath=function(e){var path,t="/client_api/v1/",n=e.split(t);return n.length>1&&(path=n[1].split("?")[0]),path},c.prototype._isGraphQLEnabled=function(){return Boolean(this._config)},t.exports=c},{}],110:[function(e,t,n){"use strict";var r=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"),h=e("./adapters/credit-card-tokenization"),f=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,n){return n?f(e,t):h(e,t)},configuration:v};function T(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 w(e){var body={};return Object.keys(e).forEach((function(t){var n=c(t);"object"==typeof e[t]?body[n]=w(e[t]):"number"==typeof e[t]?body[n]=String(e[t]):body[n]=e[t]})),body}T.prototype.getUrl=function(){return this._graphQL.getGraphQLEndpoint()},T.prototype.getBody=function(){var e=w(this._data),t=this._generator(e,l(this._data.creditCard)),body=o({clientSdkMetadata:this._clientSdkMetadata},t);return JSON.stringify(body)},T.prototype.getMethod=function(){return"POST"},T.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":r},o({},this._headers,t)},T.prototype.adaptResponseBody=function(e){return this._adapter(e,this,"creditCard"in this._data&&l(this._data.creditCard))},T.prototype.determineStatus=function(e,t){var n,r;return 200===e?(r=t.errors&&t.errors[0]&&t.errors[0].extensions&&t.errors[0].extensions.errorClass,n=t.data&&!t.errors?200:"VALIDATION"===r?422:"AUTHORIZATION"===r?403:"AUTHENTICATION"===r?401:A(r,t)?403:500):n=e||500,this._sendAnalyticsEvent("graphql.status."+e),this._sendAnalyticsEvent("graphql.determinedStatus."+n),n},t.exports=T},{"../../../lib/assign":145,"../../../lib/is-fastlane-checkout":176,"../../../lib/snake-case-to-camel-case":184,"../../constants":96,"./adapters/configuration":102,"./adapters/credit-card-tokenization":104,"./adapters/credit-card-tokenization-fastlane":103,"./generators/configuration":106,"./generators/credit-card-for-fastlane-tokenization":107,"./generators/credit-card-tokenization":108}],111:[function(e,t,n){"use strict";var r=e("../../lib/once"),o=e("./ajax-driver");t.exports=function(e,t){t=r(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":181,"./ajax-driver":100}],112:[function(e,t,n){"use strict";t.exports=function(body){try{body=JSON.parse(body)}catch(e){}return body}},{}],113:[function(e,t,n){"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}},{}],114:[function(e,t,n){"use strict";var r="undefined"!=typeof window&&window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest;function o(){return r?new window.XMLHttpRequest:new window.XDomainRequest}t.exports={isAvailable:r,getRequestObject:o}},{}],115:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS:{type:r.types.MERCHANT,code:"DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS",message:"Data Collector must be created with Kount and/or PayPal."}}},{"../lib/braintree-error":148}],116:[function(e,t,n){"use strict";
2var r,o=e("../lib/constants").FRAUDNET_FNCLS,c=e("../lib/constants").FRAUDNET_SOURCE,l=e("../lib/constants").FRAUDNET_URL,d=e("../lib/assets").loadScript,h=32;function f(e){var t=new y;return!(e=e||{}).sessionId&&r?(t.sessionId=r,Promise.resolve(t)):t.initialize(e)}function m(){r=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 n=document.body.appendChild(document.createElement("script"));return"production"!==t&&(e.sandbox=!0),n.type="application/json",n.setAttribute("fncls",o),n.text=JSON.stringify(e),n}y.prototype.initialize=function(e){var t=this;this.sessionId=e.sessionId||e.clientSessionId,this.sessionId&&(this.sessionId=this.sessionId.substring(0,h)),e.sessionId||(r=this.sessionId);var n={f:this.sessionId,s:c};return e.hasOwnProperty("beacon")&&!0!==e.beacon?n.bu=!1:n.b=_(this.sessionId),e.hasOwnProperty("cb1")&&(n.cb1=e.cb1),this._parameterBlock=E(n,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:f,clearSessionIdCache:m}},{"../lib/assets":144,"../lib/constants":149}],117:[function(e,t,n){"use strict";var r=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"),h=e("../lib/methods"),f=e("../lib/convert-methods-to-error"),m="3.144.0",y=e("@braintree/wrap-promise"),v=e("./errors");function _(e){var t="Data Collector",n={_instances:[]},data={};return c.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return n._instantiatedWithAClient=!e.useDeferredClient,n._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),r.setup(c).then((function(e){e&&(data.correlation_id=e.sessionId,n._instances.push(e))}))})).then((function(){return 0===n._instances.length?Promise.reject(new o(v.DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS)):(n.deviceData=JSON.stringify(data),n.rawDeviceData=data,n)})),n.teardown=E(n),n.getDeviceData=T(n),n._instantiatedWithAClient?n._createPromise:n}))}function E(e){return y((function(){return e._createPromise.then((function(){e._instances.forEach((function(e){e&&e.teardown()})),f(e,h(e))}))}))}function T(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":146,"../lib/braintree-error":148,"../lib/convert-methods-to-error":150,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"../lib/methods":180,"./errors":115,"./fraudnet":116,"@braintree/wrap-promise":43}],118:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={FASTLANE_SDK_LOAD_ERROR:{type:r.types.MERCHANT,code:"FASTLANE_SDK_LOAD_ERROR"}}},{"../lib/braintree-error":148}],119:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),o=e("./errors"),c=e("../lib/assets").loadFastlane,l=e("@braintree/wrap-promise"),d=e("../lib/assign").assign;function h(e){var t=e.client.getConfiguration(),n=e.client.getVersion(),l=!0;return"production"!==t.gatewayConfiguration.environment&&(l=!1),c(d({platform:"BT",btSdkVersion:n,minified:l},e)).then((function(t){var n={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:n},e,t.metadata))})).catch((function(e){return Promise.reject(new r({type:o.FASTLANE_SDK_LOAD_ERROR.type,code:o.FASTLANE_SDK_LOAD_ERROR.code,message:e.message}))}))}t.exports=l(h)},{"../lib/assets":144,"../lib/assign":145,"../lib/braintree-error":148,"./errors":118,"@braintree/wrap-promise":43}],120:[function(e,t,n){"use strict";var r=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"),h="3.144.0",f=e("../lib/assign").assign;function m(e){var t="fastlane";return r.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(f({client:t,deviceData:e.deviceData},e))}))}t.exports={create:d(m),VERSION:h}},{"../lib/assign":145,"../lib/basic-component-verification":146,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./fastlane":119,"@braintree/wrap-promise":43}],121:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={GOOGLE_PAYMENT_NOT_ENABLED:{type:r.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:r.types.UNKNOWN},GOOGLE_PAYMENT_UNSUPPORTED_VERSION:{code:"GOOGLE_PAYMENT_UNSUPPORTED_VERSION",type:r.types.MERCHANT}}},{"../lib/braintree-error":148}],122:[function(e,t,n){"use strict";var r=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"),h=e("../lib/braintree-error"),f=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 h({code:f.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:f.GOOGLE_PAYMENT_UNSUPPORTED_VERSION.type})}function E(e,t){Object.keys(t).forEach((function(n){"object"==typeof t[n]?e[n]=o({},t[n],e[n]):e[n]=e[n]||t[n]}))}_.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(),n=e.cardRequirements&&e.cardRequirements.allowedCardNetworks,r=t.cardRequirements.allowedCardNetworks,c=n||r;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 n=l(t.allowedPaymentMethods,"type",e.type);n&&E(e,n)})),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),n=this._googlePayVersion,c=v[n];return t.transactionInfo&&t.transactionInfo.totalPrice&&(t.transactionInfo.totalPrice=t.transactionInfo.totalPrice.toString()),r.sendEvent(this._createPromise,"google-payment.v"+n+".createPaymentDataRequest"),this[c](t)},_.prototype.parseResponse=function(e){var t=this;return Promise.resolve().then((function(){var n,o=2===e.apiVersion?e.paymentMethodData.tokenizationData.token:e.paymentMethodToken.token,c=JSON.parse(o),l=c.error;return l?Promise.reject(l):(r.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded"),c.paypalAccounts?(n=c.paypalAccounts[0],r.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded.paypal"),Promise.resolve({nonce:n.nonce,type:n.type,description:n.description})):(n=c.androidPayCards[0],r.sendEvent(t._createPromise,"google-payment.parseResponse.succeeded.google-payment"),Promise.resolve({nonce:n.nonce,type:n.type,description:n.description,details:{cardType:n.details.cardType,lastFour:n.details.lastFour,lastTwo:n.details.lastTwo,isNetworkTokenized:n.details.isNetworkTokenized,bin:n.details.bin},binData:n.binData})))})).catch((function(e){return r.sendEvent(t._createPromise,"google-payment.parseResponse.failed"),Promise.reject(new h({code:f.GOOGLE_PAYMENT_GATEWAY_ERROR.code,message:f.GOOGLE_PAYMENT_GATEWAY_ERROR.message,type:f.GOOGLE_PAYMENT_GATEWAY_ERROR.type,details:{originalError:e}}))}))},_.prototype.teardown=function(){return c(this,m(_.prototype)),Promise.resolve()},t.exports=y.wrapPrototype(_)},{"../lib/analytics":143,"../lib/assign":145,"../lib/braintree-error":148,"../lib/convert-methods-to-error":150,"../lib/find":160,"../lib/generate-google-pay-configuration":172,"../lib/methods":180,"./errors":121,"@braintree/wrap-promise":43}],123:[function(e,t,n){"use strict";var r=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"),h=e("@braintree/wrap-promise"),f="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 n,d;return n=l.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:c.create(e.authorization),name:t}).then((function(t){var n=t.getConfiguration();return e.client=t,n.gatewayConfiguration.androidPay?t:Promise.reject(new o(m.GOOGLE_PAYMENT_NOT_ENABLED))})),e.createPromise=n,d=new r(e),e.useDeferredClient?d:n.then((function(e){return d._client=e,d}))}))}t.exports={create:h(y),VERSION:f}},{"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./errors":121,"./google-payment":122,"@braintree/wrap-promise":43}],124:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error"),o=e("../shared/errors"),c=e("../shared/constants").allowedAttributes;function l(e,t){var n;return c.hasOwnProperty(e)?null==t||d(e,t)||(n=new r({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.'})):n=new r({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.'}),n}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":148,"../shared/constants":132,"../shared/errors":133}],125:[function(e,t,n){"use strict";var r=e("../shared/constants"),o=e("../../lib/use-min");t.exports=function(e,t,n){return e+"/web/"+r.VERSION+"/html/hosted-fields-frame"+o(n)+".html#"+t}},{"../../lib/use-min":186,"../shared/constants":132}],126:[function(e,t,n){"use strict";var r=e("../shared/constants").navigationDirections,o=e("../shared/browser-detection"),c=e("../shared/focus-intercept"),l=e("../shared/find-parent-tags"),d=["INPUT","SELECT","TEXTAREA"],h=["hidden","button","reset","submit","checkbox","radio","file"];function f(element){return o.hasSoftwareKeyboard()?d.indexOf(element.tagName)>-1&&h.indexOf(element.type)<0:"hidden"!==element.type}function m(e,t){switch(e){case r.BACK:return{checkIndexBounds:function(e){return e<0},indexChange:-1};case r.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(f(element=e[t]))return element;return null}t.exports={removeExtraFocusElements:function(e,t){var n=Array.prototype.slice.call(e.elements);
2[y(n),y(n.reverse())].forEach((function(input){input&&c.matchFocusElement(input.getAttribute("id"))&&t(input.getAttribute("id"))}))},createFocusChangeHandler:function(e,t){return function(data){var n,r,o,d,h=document.getElementById("bt-"+data.field+"-"+data.direction+"-"+e);if(h)if(o=l(h,"form")[0],document.forms.length<1||!o)t.onRemoveFocusIntercepts();else{n=(o=[].slice.call(o.elements)).indexOf(h),d=m(data.direction,o.length);do{if(n+=d.indexChange,d.checkIndexBounds(n))return;r=o[n]}while(!f(r));c.matchFocusElement(r.getAttribute("id"))?t.onTriggerInputFocus(r.getAttribute("data-braintree-type")):r.focus()}}}}},{"../shared/browser-detection":131,"../shared/constants":132,"../shared/find-parent-tags":134,"../shared/focus-intercept":135}],127:[function(e,t,n){"use strict";var r=e("../shared/constants").allowedStyles;t.exports=function(e){var t,element=document.createElement("input"),n={};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),r.forEach((function(style){var e=t[style];e&&(n[style]=e)})),document.body.removeChild(element),n}},{"../shared/constants":132}],128:[function(e,t,n){"use strict";var r=e("../../lib/assign").assign,o=e("../../lib/create-assets-url"),c=e("../../lib/is-verified-domain"),l=e("../../lib/destructor"),d=e("@braintree/iframer"),h=e("framebus"),f=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"),T=e("../../lib/constants").INTEGRATION_TIMEOUT_MS,A=e("@braintree/uuid"),w=e("../shared/find-parent-tags"),S=e("../shared/browser-detection"),O=_.events,I=e("@braintree/event-emitter"),C=e("./inject-frame"),P=e("../../lib/analytics"),N=_.allowedFields,D=e("../../lib/methods"),shadow=e("../../lib/shadow"),R=e("../../lib/find-root-node"),L=e("../../lib/convert-methods-to-error"),k=e("../../lib/errors"),x=e("../shared/get-card-types"),M=e("./attribute-validation-error"),U=e("@braintree/wrap-promise"),F=e("./focus-change"),j=e("../shared/focus-intercept").destroy,V=5;function B(e){return function(t){var n,r=t.merchantPayload,o=r.emittedBy,c=e[o].containerElement;Object.keys(r.fields).forEach((function(t){r.fields[t].container=e[t].containerElement})),n=r.fields[o],c.classList.toggle(_.externalClasses.FOCUSED,n.isFocused),c.classList.toggle(_.externalClasses.VALID,n.isValid),c.classList.toggle(_.externalClasses.INVALID,!n.isPotentiallyValid),this._state={cards:r.cards,fields:r.fields},this._emit(t.type,r)}}function Y(e){var t=e.getBoundingClientRect(),n=Math.floor(t.height/2),r=Math.floor(t.width/2);return t.top<(window.innerHeight-n||document.documentElement.clientHeight-n)&&t.right>r&&t.bottom>n&&t.left<(window.innerWidth-r||document.documentElement.clientWidth-r)}function H(e){var t,n,w,S,N,R=this,M={},U={},V=[],Y=A(),z=e.sessionId;if(this._merchantConfigurationOptions=r({},e),e.client?(w=(n=e.client.getConfiguration(void 0,z)).gatewayConfiguration.assetsUrl,S=n.isDebug):(w=o.create(e.authorization),S=Boolean(e.isDebug)),this._clientPromise=f.create({client:e.client,authorization:e.authorization,debug:S,assetsUrl:w,name:"Hosted Fields",sessionId:z}),N=y(w,Y,S),!e.fields||0===Object.keys(e.fields).length)throw new m({type:k.INSTANTIATION_OPTION_REQUIRED.type,code:k.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:k.INSTANTIATION_OPTION_INVALID.type,code:k.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:x("")},this._bus=new h({channel:Y,verifyDomain:c,targetFrames:[window]}),this._destructor.registerFunctionForTeardown((function(){R._bus.teardown()})),e.client?P.sendEvent(this._clientPromise,"custom.hosted-fields.initialized"):P.sendEvent(this._clientPromise,"custom.hosted-fields.initialized.deferred-client"),Object.keys(e.fields).forEac
2h(function(t){var n,r,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(r=(n=e.fields[t]).container||n.selector)&&(r=document.querySelector(r)),!r||1!==r.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:n.selector,fieldContainer:n.container,fieldKey:t}});if(r.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:n.selector,fieldContainer:n.container,fieldKey:t}});if(o=r,shadow.isShadowElement(o)&&(o=shadow.transformToSlot(o,"height: 100%")),n.maxlength&&"number"!=typeof n.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(n.minlength&&"number"!=typeof n.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:n.iframeTitle||"Secure Credit Card Frame - "+_.allowedFields[t].label}),this._bus.addTargetFrame(c),this._injectedNodes.push.apply(this._injectedNodes,C(Y,c,o,(function(){R.focus(t)}))),this._setupLabelFocus(t,r),M[t]={frameElement:c,containerElement:r},l=new Promise((function(e){U[t]=e})),V.push(l),this._state.fields[t]={isEmpty:!0,isValid:!1,isPotentiallyValid:!0,isFocused:!1,container:r},setTimeout((function(){c.src=N}),0)}.bind(this)),this._merchantConfigurationOptions.styles&&Object.keys(this._merchantConfigurationOptions.styles).forEach((function(e){var t=R._merchantConfigurationOptions.styles[e];"string"==typeof t&&(R._merchantConfigurationOptions.styles[e]=v(t))})),this._bus.on(O.REMOVE_FOCUS_INTERCEPTS,(function(data){j(data&&data.id)})),this._bus.on(O.TRIGGER_FOCUS_CHANGE,F.createFocusChangeHandler(Y,{onRemoveFocusIntercepts:function(element){R._bus.emit(O.REMOVE_FOCUS_INTERCEPTS,{id:element})},onTriggerInputFocus:function(e){R.focus(e)}})),this._bus.on(O.READY_FOR_CLIENT,(function(e){R._clientPromise.then((function(t){e(t)}))})),this._bus.on(O.CARD_FORM_ENTRY_HAS_BEGUN,(function(){P.sendEvent(R._clientPromise,"hosted-fields.input.started")})),this._bus.on(O.BIN_AVAILABLE,(function(e){R._emit("binAvailable",{bin:e})})),t=setTimeout((function(){P.sendEvent(R._clientPromise,"custom.hosted-fields.load.timed-out"),R._emit("timeout")}),T),Promise.all(V).then((function(e){var n=e[0];clearTimeout(t),n($(R._merchantConfigurationOptions)),R._cleanUpFocusIntercepts(),R._emit("ready")})),this._bus.on(O.FRAME_READY,(function(data,e){U[data.field](e)})),this._bus.on(O.INPUT_EVENT,B(M).bind(this)),this._destructor.registerFunctionForTeardown((function(){var e,t,n;for(e=0;e<R._injectedNodes.length;e++)(n=(t=R._injectedNodes[e]).parentNode).removeChild(t),n.classList.remove(_.externalClasses.FOCUSED,_.externalClasses.INVALID,_.externalClasses.VALID)})),this._destructor.registerFunctionForTeardown((function(){j()})),this._destructor.registerFunctionForTeardown((function(){var e=D(H.prototype).concat(D(I.prototype));L(R,e)}))}function $(e){var t=r({},e);return t.fields=r({},t.fields),Object.keys(t.fields).forEach((function(e){t.fields[e]=r({},t.fields[e]),delete t.fields[e].container})),t}I.createChild(H),H.prototype._setupLabelFocus=function(e,t){var n,i,r=this,o=R(t);if(null!=t.id){for(n=Array.prototype.slice.call(document.querySelectorAll('label[for="'+t.id+'"]')),o!==document&&(n=n.concat(Array.prototype.slice.call(o.querySelectorAll('label[for="'+t.id+'"]')))),n=(n=n.concat(w(t,"label"))).filter((function(label,e,t){return t.indexOf(label)===e})),i=0;i<n.length;i++)n[i].addEventListener("click",c,!1);this._destructor.registerFunctionForTeardown((function(){for(i=0;i<n.length;i++)n[i].removeEventListener("click",c,!1)}))}function c(){r.focus(e)}},H.prototype._getAnyFieldContainer=function(){var e=this;return Object.keys(this._fields).reduce((function(t,n){return t||e._fields[n].containerElement}),null)},H.prototype._cleanUpFocusIntercepts=function(){var e,t;document.forms.length<1?this._bus.emit(O.REMOVE_FOCUS_INTERCEPTS):(e=this._getAnyFieldContainer(),(t=w(e,"form")[0])?F.removeExtraFocusElements(t,function(e){this._bus.emit(O.REMOVE_FOCUS_INTERCEPTS,{id:e})}.bind(this)):this._bus.emit(O.REMOVE_FOCUS_INTERCEPTS))},H.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)))},H.prototype.getChallenges=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.challenges}))}
2,H.prototype.getSupportedCardTypes=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.creditCards.supportedCardTypes.map((function(e){return"MasterCard"===e?"Mastercard":e}))}))},H.prototype.teardown=function(){var e=this;return new Promise((function(t,n){e._destructor.teardown((function(r){P.sendEvent(e._clientPromise,"custom.hosted-fields.teardown-completed"),r?n(r):t()}))}))},H.prototype.tokenize=function(e){var t=this;return e||(e={}),new Promise((function(n,r){t._bus.emit(O.TOKENIZATION_REQUEST,e,(function(e){var o=e[0],c=e[1];o?(t._attachInvalidFieldContainersToError(o),r(new m(o))):n(c)}))}))},H.prototype.addClass=function(e,t){var n;return N.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(O.ADD_CLASS,{field:e,classname:t}):n=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.'}):n=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.'}),n?Promise.reject(n):Promise.resolve()},H.prototype.removeClass=function(e,t){var n;return N.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(O.REMOVE_CLASS,{field:e,classname:t}):n=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.'}):n=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.'}),n?Promise.reject(n):Promise.resolve()},H.prototype.setAttribute=function(e){var t,n;return N.hasOwnProperty(e.field)?this._fields.hasOwnProperty(e.field)?(t=M(e.attribute,e.value))?n=t:this._bus.emit(O.SET_ATTRIBUTE,{field:e.field,attribute:e.attribute,value:e.value}):n=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.'}):n=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.'}),n?Promise.reject(n):Promise.resolve()},H.prototype.setMonthOptions=function(e){var t,n=this,r=this._merchantConfigurationOptions.fields;return r.expirationMonth?r.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){n._bus.emit(O.SET_MONTH_OPTIONS,e,t)}))},H.prototype.setMessage=function(e){this._bus.emit(O.SET_MESSAGE,{field:e.field,message:e.message})},H.prototype.removeAttribute=function(e){var t,n;return N.hasOwnProperty(e.field)?this._fields.hasOwnProperty(e.field)?(t=M(e.attribute))?n=t:this._bus.emit(O.REMOVE_ATTRIBUTE,{field:e.field,attribute:e.attribute}):n=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.'}):n=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.'}),n?Promise.reject(n):Promise.resolve()},H.prototype.setPlaceholder=function(e,t){return this.setAttribute({field:e,attribute:"placeholder",value:t})},H.prototype.clear=function(e){var t;return N.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?this._bus.emit(O.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()},H.prototype.focus=function(e){var t,n=this._fields[e];return N.hasOwnProperty(e)?this._fields.hasOwnProperty(e)?(n.frameElement.focus(),this._bus.emit(O.TRIGGER_INPUT_FOCUS,{field:e}),S.isIos()&&setTimeout((function(){Y(n.containerElement)||n.containerElement.scrollIntoView()}),V)):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()},H.prototype.getState=function(){return this._state},t.exports=U.wrapPrototype(H)},{"../../lib/analytics":143,"../../lib/assign":145,"../../lib/braintree-error":148,"../../lib/constants":149,"../../lib/convert-methods-to-error":150,"../../lib/create-assets-url":152,"../../lib/create-deferred-client":154,"../../lib/destructor":156,"../../lib/errors":158,"../../lib/find-root-node":159,"../../lib/is-verified-domain":178,"../../lib/methods":180,"../../lib/shadow":183,"../shared/browser-detection":131,"../shared/constants":132,"../shared/errors":133,"../shared/find-parent-tags":134,"../shared/focus-intercept":135,"../shared/get-card-types":136,"./attribute-validation-error":124,"./compose-url":125,"./focus-change":126,"./get-styles-from-class":127,"./inject-frame":129,"@braintree/event-emitter":33,"@braintree/iframer":35,"@braintree/uuid":39,"@braintree/wrap-promise":43,framebus:54}],129:[function(e,t,n){"use strict";var r=e("../shared/focus-intercept"),o=e("../shared/constants").navigationDirections;t.exports=function(e,t,n,c){var l=t.getAttribute("type"),d=document.createElement("div"),h=document.createDocumentFragment(),f=r.generate(e,l,o.BACK,c),m=r.generate(e,l,o.FORWARD,c);return d.style.clear="both",h.appendChild(f),h.appendChild(t),h.appendChild(m),h.appendChild(d),n.appendChild(h),[t,d]}},{"../shared/constants":132,"../shared/focus-intercept":135}],130:[function(e,t,n){"use strict";var r=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"),h=e("../lib/braintree-error"),f="3.144.0";function m(e){return o.verify({name:"Hosted Fields",authorization:e.authorization,client:e.client}).then((function(){var t=new r(e);return new Promise((function(e,n){t.on("ready",(function(){e(t)})),t.on("timeout",(function(){n(new h(c.HOSTED_FIELDS_TIMEOUT))}))}))}))}t.exports={supportsInputFormatting:l,create:d(m),VERSION:f}},{"../lib/basic-component-verification":146,"../lib/braintree-error":148,"./external/hosted-fields":128,"./shared/errors":133,"@braintree/wrap-promise":43,"restricted-input/supports-input-formatting":88}],131:[function(e,t,n){"use strict";var r=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"),h=e("@braintree/browser-detection/is-ios-safari");function f(){return r()||o()||c()}function m(){return l()&&c()}t.exports={isAndroid:r,isChromeOS:o,isChromeIos:m,isFirefox:e("@braintree/browser-detection/is-firefox"),isIos:c,isIosWebview:e("@braintree/browser-detection/is-ios-webview"),isSafari:d,isIosSafari:h,hasSoftwareKeyboard:f}},{"@braintree/browser-detection/is-android":22,"@braintree/browser-detection/is-chrome":24,"@braintree/browser-detection/is-chrome-os":23,"@braintree/browser-detection/is-firefox":25,"@braintree/browser-detection/is-ios":30,"@braintree/browser-detection/is-ios-safari":27,"@braintree/browser-detection/is-ios-webview":28,"@braintree/browser-detection/is-safari":31}],132:[function(e,t,n){"use strict";var r=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=r(["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":157,"./errors":133}],133:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={HOSTED_FIELDS_TIMEOUT:{type:r.types.UNKNOWN,code:"HOSTED_FIELDS_TIMEOUT",message:"Hosted Fields timed out when attempting to set up."},HOSTED_FIELDS_INVALID_FIELD_KEY:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_INVALID_FIELD_KEY"},HOSTED_FIELDS_INVALID_FIELD_SELECTOR:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_INVALID_FIELD_SELECTOR",message:"Selector does not reference a valid DOM node."},HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_DUPLICATE_IFRAME",message:"Element already contains a Braintree iframe."},HOSTED_FIELDS_FIELD_INVALID:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_INVALID"},HOSTED_FIELDS_FIELD_NOT_PRESENT:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_NOT_PRESENT"},HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"HOSTED_FIELDS_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},HOSTED_FIELDS_TOKENIZATION_FAIL_ON_DUPLICATE:{type:r.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:r.types.CUSTOMER,code:"HOSTED_FIELDS_TOKENIZATION_CVV_VERIFICATION_FAILED",message:"CVV verification failed during tokenization."},HOSTED_FIELDS_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_FAILED_TOKENIZATION",message:"The supplied card data failed tokenization."},HOSTED_FIELDS_FIELDS_EMPTY:{type:r.types.CUSTOMER,code:"HOSTED_FIELDS_FIELDS_EMPTY",message:"All fields are empty. Cannot tokenize empty card fields."},HOSTED_FIELDS_FIELDS_INVALID:{type:r.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:r.types.MERCHANT,code:"HOSTED_FIELDS_ATTRIBUTE_NOT_SUPPORTED"},HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_ATTRIBUTE_VALUE_NOT_ALLOWED"},HOSTED_FIELDS_FIELD_PROPERTY_INVALID:{type:r.types.MERCHANT,code:"HOSTED_FIELDS_FIELD_PROPERTY_INVALID"}}},{"../../lib/braintree-error":148}],134:[function(e,t,n){"use strict";function r(element,e){for(var t=element.parentNode,n=[];null!=t;)null!=t.tagName&&t.tagName.toLowerCase()===e&&n.push(t),t=t.parentNode;return n}t.exports=r},{}],135:[function(e,t,n){"use strict";var r=e("./browser-detection"),o=e("./constants"),c=Object.keys(o.allowedFields),l=o.navigationDirections,d={generate:function(e,t,n,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 r.hasSoftwareKeyboard()||r.isFirefox()?(input.setAttribute("aria-hidden","true"),input.setAttribute("autocomplete","off"),input.setAttribute("data-braintree-direction",n),input.setAttribute("data-braintree-type",t),input.setAttribute("id","bt-"+t+"-"+n+"-"+e),input.setAttribute("style",JSON.stringify(c).replace(/[{}"]/g,"").replace(/,/g,";")),input.classList.add("focus-intercept"),input.addEventListener("focus",(function(e){o(e),r.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,n,r,o;return!!e&&!((t=e.split("-")).length<4)&&(n="bt"===t[0],r=c.indexOf(t[1])>-1,o=t[2]===l.BACK||t[2]===l.FORWARD,Boolean(n&&r&&o))}};t.exports=d},{"./browser-detection":131,"./constants":132}],136:[function(e,t,n){"use strict";var r=e("credit-card-type");t.exports=function(e){var t=r(e);return t.forEach((function(e){"mastercard"===e.type&&(e.type="master-card")})),t}},{"credit-card-type":45}],137:[function(e,t,n){"use strict";
2var r=e("./american-express"),o=e("./apple-pay"),c=e("./client"),l=e("./fastlane"),d=e("./data-collector"),h=e("./hosted-fields"),f=e("./local-payment"),m=e("./masterpass"),y=e("./instant-verification"),v=e("./payment-request"),_=e("./payment-ready"),E=e("./paypal"),T=e("./paypal-checkout"),A=e("./paypal-checkout-v6"),w=e("./google-payment"),S=e("./sepa"),O=e("./three-d-secure"),I=e("./unionpay"),C=e("./us-bank-account"),P=e("./vault-manager"),N=e("./venmo"),D=e("./visa-checkout"),R=e("./preferred-payment-methods"),L="3.144.0";t.exports={fastlane:l,americanExpress:r,applePay:o,client:c,dataCollector:d,hostedFields:h,instantVerification:y,localPayment:f,masterpass:m,googlePayment:w,paymentRequest:v,paymentReady:_,paypal:E,paypalCheckout:T,paypalCheckoutV6:A,threeDSecure:O,unionpay:I,usBankAccount:C,vaultManager:P,venmo:N,visaCheckout:D,sepa:S,preferredPaymentMethods:R,VERSION:L}},{"./american-express":91,"./apple-pay":94,"./client":99,"./data-collector":117,"./fastlane":120,"./google-payment":123,"./hosted-fields":130,"./instant-verification":140,"./local-payment":191,"./masterpass":195,"./payment-ready":201,"./payment-request":204,"./paypal":215,"./paypal-checkout":212,"./paypal-checkout-v6":209,"./preferred-payment-methods":218,"./sepa":222,"./three-d-secure":232,"./unionpay":236,"./us-bank-account":242,"./vault-manager":245,"./venmo":250,"./visa-checkout":260}],138:[function(e,t,n){"use strict";var r={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:r,ACH_MANDATE_DETAILS_QUERY:o}},{}],139:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={INSTANT_VERIFICATION_ERROR:{type:r.types.MERCHANT,code:"INSTANT_VERIFICATION_ERROR"},INSTANT_VERIFICATION_NOT_ENABLED:{type:r.types.MERCHANT,code:"INSTANT_VERIFICATION_NOT_ENABLED",message:"Instant Verification is not enabled for this merchant account."},INSTANT_VERIFICATION_CANCELED:{type:r.types.CUSTOMER,code:"INSTANT_VERIFICATION_CANCELED",message:"Customer canceled the Instant Verification payment before authorizing."},INSTANT_VERIFICATION_FAILURE:{type:r.types.UNKNOWN,code:"INSTANT_VERIFICATION_FAILURE",message:"Instant Verification payment failed during authorizing."},INSTANT_VERIFICATION_JWT_REQUIRED:{type:r.types.MERCHANT,code:"INSTANT_VERIFICATION_JWT_MISSING",message:"JWT is required for Instant Verification payment flow."},INSTANT_VERIFICATION_MANDATE_ID_REQUIRED:{type:r.types.MERCHANT,code:"INSTANT_VERIFICATION_MANDATE_ID_REQUIRED",message:"Mandate ID is required to fetch ACH mandate details."},INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED:{type:r.types.NETWORK,code:"INSTANT_VERIFICATION_MANDATE_DETAILS_FAILED",message:"Failed to fetch ACH mandate details."}}},{"../lib/braintree-error":148}],140:[function(e,t,n){"use strict";var r=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"),h=e("./instant-verification"),f="3.144.0",m=e("@braintree/wrap-promise");function y(e){var t="Instant Verification";return r.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 h(e):Promise.reject(new o(d.INSTANT_VERIFICATION_NOT_ENABLED))}))}t.exports={create:m(y),VERSION:f}},{"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./errors":139,"./instant-verification":141,"@braintree/wrap-promise":43}],141:[function(e,t,n){"use strict";var r=e("../lib/vendor/polyfill").atob,o=e("../lib/analytics"),c=e("../lib/braintree-error"),l=e("./constants"),d=e("./errors"),h=e("../lib/querystring"),f=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,n=t._client.getConfiguration().authorizationFingerprint,r="";return e.jwt?(r=y(t._client.getConfiguration())+"?"+h.stringify({ct:e.jwt,at:n}),"undefined"!=typeof window&&window.location&&(o.sendEvent(t._client,"instant-verification.redirect.initiated"),window.location.href=r),Promise.resolve()):Promise.reject(new c(d.INSTANT_VERIFICATION_JWT_REQUIRED))},m.prototype.handleRedirect=function(e){var t,n,l,h=this;return e.success?(n=JSON.parse(r(e.success)),o.sendEvent(h._client,"instant-verification.redirect.completed.success"),n.tokenizedAccounts&&n.tokenizedAccounts[0]&&(l=n.tokenizedAccounts[0].tokenized_account),Promise.resolve(l)):(e.cancel&&(n=JSON.parse(r(e.cancel)),o.sendEvent(h._client,"instant-verification.redirect.completed.canceled"),t=new c(d.INSTANT_VERIFICATION_CANCELED)),e.error&&(n=JSON.parse(r(e.error)),o.sendEvent(h._client,"instant-verification.redirect.completed.error"),t=new c(d.INSTANT_VERIFICATION_FAILURE)),Promise.reject(t))},m.prototype.getAchMandateDetails=function(e){var t=this,n=e&&e.mandateId;return new Promise((function(e,r){n?t._client.request({api:"graphQLApi",method:"post",data:{query:l.ACH_MANDATE_DETAILS_QUERY,variables:{id:n},operationName:"AchMandateDetails"}},(function(n,l){if(n)return o.sendEvent(t._client,"instant-verification.ach-mandate-details.failed"),void r(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:n}}));if(l.data&&l.data.node){var h=l.data.node;h.details?(o.sendEvent(t._client,"instant-verification.ach-mandate-details.succeeded"),e(v(h))):r(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 r(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."}))})):r(new c(d.INSTANT_VERIFICATION_MANDATE_ID_REQUIRED))}))},t.exports=f.wrapPrototype(m)},{"../lib/analytics":143,"../lib/braintree-error":148,"../lib/querystring":182,"../lib/vendor/polyfill":187,"./constants":138,"./errors":139,"@braintree/wrap-promise":43}],142:[function(e,t,n){"use strict";var r=e("./create-authorization-data"),o=e("./json-clone"),c=e("./constants");function l(e,data){var t,n=data?o(data):{},l=r(e.authorization).attrs,d=o(e.analyticsMetadata);for(t in n.braintreeLibraryVersion=c.BRAINTREE_LIBRARY_VERSION,n._meta)n._meta.hasOwnProperty(t)&&(d[t]=n._meta[t]);return n._meta=d,l.tokenizationKey?n.tokenizationKey=l.tokenizationKey:n.authorizationFingerprint=l.authorizationFingerprint,n}function d(e){var t=e.getConfiguration(),n=r(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 n.tokenizationKey?l.tokenization_key=n.tokenizationKey:l.auth_fingerprint=n.authorizationFingerprint,l}t.exports={addMetadata:l,addEventMetadata:d}},{"./constants":149,"./create-authorization-data":153,"./json-clone":179}],143:[function(e,t,n){"use strict";var r=e("./constants"),o=e("./add-metadata"),c=e("./assign").assign;function l(e,t,n){return d(e,t,{},n)}function d(e,t,n,l){var d=Date.now();return"vault"===n.flow?n.context_type="BA_Token":"checkout"===n.flow&&(n.context_type="EC_Token"),Promise.resolve(e).then((function(e){var f=e._request,m=r.ANALYTICS_URL,y=r.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},n)}],data.tracking=[_],n&&"object"==typeof n&&(data.tracking=[h(_,n)]),f({url:m,method:"post",data:data,timeout:r.ANALYTICS_REQUEST_TIMEOUT_MS},l)})).catch((function(e){l&&l(e)}
2))}function h(e,t){var n=c({},t);return Object.keys(n).forEach((function(e){-1===r.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete n[e]})),c(e,n)}t.exports={sendEvent:l,sendEventPlus:d}},{"./add-metadata":142,"./assign":145,"./constants":149}],144:[function(e,t,n){"use strict";var r=e("@braintree/asset-loader/load-script"),o=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:r,loadFastlane:o.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":44}],145:[function(e,t,n){"use strict";var r="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:r,_assign:o}},{}],146:[function(e,t,n){"use strict";var r=e("./braintree-error"),o=e("./errors"),c="3.144.0";function l(e){var t,n,l;return e?(l=e.name,t=e.client,n=e.authorization,t||n?n||t.getVersion()===c?Promise.resolve():Promise.reject(new r({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 r({type:o.INSTANTIATION_OPTION_REQUIRED.type,code:o.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+l+"."}))):Promise.reject(new r({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":148,"./errors":158}],147:[function(e,t,n){"use strict";var r=e("./once");function o(e,t){0===e.length?(e(),t(null)):e(t)}t.exports=function(e,t){var i,n=e.length,c=n,l=r(t);if(0!==n)for(i=0;i<n;i++)o(e[i],d);else l(null);function d(e){e?l(e):0==(c-=1)&&l(null)}}},{"./once":181}],148:[function(e,t,n){"use strict";var r=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=r(["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":157}],149:[function(e,t,n){"use strict";var r="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:r,INTEGRATION:"custom",SOURCE:"client",PLATFORM:o,BRAINTREE_LIBRARY_VERSION:"braintree/"+o+"/"+r,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"]}},{}],150:[function(e,t,n){"use strict";var r=e("./braintree-error"),o=e("./errors");t.exports=function(e,t){t.forEach((function(t){e[t]=function(){throw new r({type:o.METHOD_CALLED_AFTER_TEARDOWN.type,code:o.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}}))}},{"./braintree-error":148,"./errors":158}],151:[function(e,t,n){"use strict";var r=e("./braintree-error");function o(e,t){return e instanceof r?e:new r({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}t.exports=o},{"./braintree-error":148}],152:[function(e,t,n){"use strict";var r=e("./constants").ASSETS_URLS;function o(e){return r.production}t.exports={create:o}},{"./constants":149}],153:[function(e,t,n){"use strict";var r=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("_"),n=t[0];return{merchantId:t.slice(2).join("_"),environment:n}}function d(e){var t,n,data={attrs:{},configUrl:""};return c(e)?(n=l(e),data.environment=n.environment,data.attrs.tokenizationKey=e,data.configUrl=o[n.environment]+"/merchants/"+n.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(r(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":149,"../lib/vendor/polyfill":187}],154:[function(e,t,n){"use strict";var r=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 r({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 r({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":144,"./braintree-error":148,"./errors":158}],155:[function(e,t,n){"use strict";t.exports=function(e){return function(){var t=arguments;setTimeout((function(){e.apply(null,t)}),1)}}},{}],156:[function(e,t,n){"use strict";var r=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,r(this._teardownRegistry,function(t){this._teardownRegistry=[],this._isTearingDown=!1,"function"==typeof e&&e(t)}.bind(this)))},t.exports=o},{"./batch-execute-functions":147}],157:[function(e,t,n){"use strict";function r(e,t){return t=null==t?"":t,e.reduce((function(e,n){return e[n]=t+n,e}),{})}t.exports=r},{}],158:[function(e,t,n){"use strict";var r=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:r.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:r.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:r.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:r.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"},INSTANTIATION_OPTION_INVALID:{type:r.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":148}],159:[function(e,t,n){"use strict";t.exports=function(element){for(;element.parentNode;)element=element.parentNode;return element}},{}],160:[function(e,t,n){"use strict";t.exports=function(e,t,n){var i;for(i=0;i<e.length;i++)if(e[i].hasOwnProperty(t)&&e[i][t]===n)return e[i];return null}},{}],161:[function(e,t,n){"use strict";var r=e("./strategies/popup"),o=e("./strategies/popup-bridge"),c=e("./strategies/modal"),l=e("framebus"),d=e("../shared/events"),h=e("../shared/errors"),f=e("../shared/constants"),m=e("@braintree/uuid"),y=e("@braintree/iframer"),v=e("../../braintree-error"),_=e("../shared/browser-detection"),E=e("./../../assign").assign,T=e("../../constants").BUS_CONFIGURATION_REQUEST_EVENT,A=["name","dispatchFrameUrl","openFrameUrl"];function w(){}function S(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 O(e){S(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()}O.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()},O.prototype._writeDispatchFrame=function(){var e=f.DISPATCH_FRAME_NAME+"_"+this._serviceId,t=this._options.dispatchFrameUrl;this._dispatchFrame=y({"aria-hidden":!0,name:e,title:e,src:t,class:f.DISPATCH_FRAME_CLASS,height:0,width:0,style:{position:"absolute",left:"-9999px"}}),document.body.appendChild(this._dispatchFrame)},O.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(T,function(e){e(this.state)}.bind(this))},O.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(h.FRAME_SERVICE_FRAME_OPEN_FAILED)));this._pollForPopupClose()}},O.prototype.redirect=function(e){this._frame&&!this.isFrameClosed()&&this._frame.redirect(e)},O.prototype.close=function(){this.isFrameClosed()||this._frame.close()},O.prototype.focus=function(){this.isFrameClosed()||this._frame.focus()},O.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)}},O.prototype.createNoopHandler=function(){return{close:w,focus:w}},O.prototype.teardown=function(){this.close(),this._dispatchFrame.parentNode.removeChild(this._dispatchFrame),this._dispatchFrame=null,this._cleanupFrame()},O.prototype.isFrameClosed=function(){return null==this._frame||this._frame.isClosed()},O.prototype._cleanupFrame=function(){this._frame=null,clearInterval(this._popupInterval),this._popupInterval=null},O.prototype._pollForPopupClose=function(){return this._popupInterval=setInterval(function(){this.isFrameClosed()&&(this._cleanupFrame(),this._onCompleteCallback&&this._onCompleteCallback(new v(h.FRAME_SERVICE_FRAME_CLOSED)))}.bind(this),f.POPUP_POLL_INTERVAL),this._popupInterval},O.prototype._getFrameForEnvironment=function(e){var t=_.supportsPopups(),n=Boolean(window.popupBridge),l=E({},this._options,e);return n?new o(l):t?new r(l):new c(l)},t.exports=O},{"../../braintree-error":148,"../../constants":149,"../shared/browser-detection":168,"../shared/constants":169,"../shared/errors":170,"../shared/events":171,"./../../assign":145,"./strategies/modal":163,"./strategies/popup":166,"./strategies/popup-bridge":164,"@braintree/iframer":35,"@braintree/uuid":39,framebus:54}],162:[function(e,t,n){"use strict";var r=e("./frame-service");t.exports={create:function(e,t){var n=new r(e);n.initialize((function(){t(n)}))}}},{"./frame-service":161}],163:[function(e,t,n){"use strict";var r=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 h(e){this._closed=null,this._frame=null,this._options=e||{},this._container=this._options.container||document.body}h.prototype.initialize=d,h.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=r(e),this._el.appendChild(this._frame)):this._el=this._frame=r(e),this._closed=!1,this._container.appendChild(this._el)},h.prototype.focus=d,h.prototype.close=function(){this._container.removeChild(this._el),this._frame=null,this._closed=!0,c.isIosWKWebview()&&this._unlockScrolling()},h.prototype.isClosed=function(){return Boolean(this._closed)},h.prototype.redirect=function(e){this._frame.src=e},h.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},h.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=h},{"../../../assign":145,"../../shared/browser-detection":168,"@braintree/iframer":35}],164:[function(e,t,n){"use strict";var r=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(n,c){var l=!c&&!n;t._closed=!0,n||l?e(new r(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":148,"../../shared/errors":170}],165:[function(e,t,n){"use strict";var r=e("../../../shared/constants"),o=e("./position");function c(e,t,n){return void 0!==t?t:o[e](n)}t.exports=function(e){var t=e.height||r.DEFAULT_POPUP_HEIGHT,n=e.width||r.DEFAULT_POPUP_WIDTH,o=c("top",e.top,t),l=c("left",e.left,n);return[r.POPUP_BASE_OPTIONS,"height="+t,"width="+n,"top="+o,"left="+l].join(",")}},{"../../../shared/constants":169,"./position":167}],166:[function(e,t,n){"use strict";var r=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,r(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":165}],167:[function(e,t,n){"use strict";function r(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,n){return(e-t)/2+n}t.exports={top:r,left:o,center:c}},{}],168:[function(e,t,n){"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":30,"@braintree/browser-detection/is-ios-wkwebview":29,"@braintree/browser-detection/supports-popups":32}],169:[function(e,t,n){"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}},{}],170:[function(e,t,n){"use strict";var r=e("../../braintree-error");t.exports={FRAME_SERVICE_FRAME_CLOSED:{type:r.types.INTERNAL,code:"FRAME_SERVICE_FRAME_CLOSED",message:"Frame closed before tokenization could occur."},FRAME_SERVICE_FRAME_OPEN_FAILED:{type:r.types.INTERNAL,code:"FRAME_SERVICE_FRAME_OPEN_FAILED",message:"Frame failed to open."}}},{"../../braintree-error":148}],171:[function(e,t,n){"use strict";var r=e("../../enumerate");t.exports=r(["DISPATCH_FRAME_READY","DISPATCH_FRAME_REPORT"],"frameService:")},{"../../enumerate":157}],172:[function(e,t,n){"use strict";var r="3.144.0",o=e("./assign").assign;function c(e,t){var n=e.analyticsMetadata,c={gateway:"braintree","braintree:merchantId":e.gatewayConfiguration.merchantId,"braintree:apiVersion":"v1","braintree:sdkVersion":r,"braintree:metadata":JSON.stringify({source:n.source,integration:n.integration,sessionId:n.sessionId,version:r,platform:n.platform})};return o({},c,t)}t.exports=function(e,t,n){var data,r,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})}}]},n&&(data.merchantInfo={merchantId:n}),o.paypalClientId&&(r={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(r))):(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),n&&(data.merchantId=n),t&&(data.apiVersion=t)),data}},{"./assign":145}],173:[function(e,t,n){"use strict";function r(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=r},{}],174:[function(e,t,n){"use strict";
2t.exports=function(e){e=e||window;try{return e.self!==e.top}catch(e){return!0}}},{}],175:[function(e,t,n){"use strict";function r(e){var t=e.split("-");return new Date(t[0],t[1],t[2])}function o(e,t){return r(e)<=r(t)}t.exports=o},{}],176:[function(e,t,n){"use strict";t.exports=function(e){return e&&e.hasOwnProperty("fastlane")&&e.fastlane}},{}],177:[function(e,t,n){"use strict";function r(e){return"https:"===(e=e||window.location.protocol)}t.exports={isHTTPS:r}},{}],178:[function(e,t,n){"use strict";var r,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)&&((r=r||document.createElement("a")).href=e,t=c(r.hostname),o.hasOwnProperty(t))}t.exports=l},{}],179:[function(e,t,n){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],180:[function(e,t,n){"use strict";t.exports=function(e){return Object.keys(e).filter((function(t){return"function"==typeof e[t]}))}},{}],181:[function(e,t,n){"use strict";function r(e){var t=!1;return function(){t||(t=!0,e.apply(null,arguments))}}t.exports=r},{}],182:[function(e,t,n){"use strict";function r(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 n=t.split("="),r=decodeURIComponent(n[0]),o=decodeURIComponent(n[1]);return e[r]=o,e}),{}):{}}function d(e,t){var n,r,p,c=[];for(p in e)e.hasOwnProperty(p)&&(r=e[p],n=t?o(e)?t+"[]":t+"["+p+"]":p,"object"==typeof r?c.push(d(r,n)):c.push(encodeURIComponent(n)+"="+encodeURIComponent(r)));return c.join("&")}function h(e,t){return e=e||"",null!=t&&"object"==typeof t&&r(t)&&(e+=-1===e.indexOf("?")?"?":"",e+=-1!==e.indexOf("=")?"&":"",e+=d(t)),e}t.exports={parse:l,stringify:d,queryify:h,hasQueryParams:c}},{}],183:[function(e,t,n){"use strict";var r=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"),n=l(element),h="shadow-slot-"+r(),slot=document.createElement("slot"),f=document.createElement("div");return slot.setAttribute("name",h),element.appendChild(slot),f.setAttribute("slot",h),n.appendChild(f),e&&(t||(t=document.createElement("style"),element.appendChild(t)),t.sheet.insertRule('::slotted([slot="'+h+'"]) { '+e+" }")),c(n)?d(f,e):f}t.exports={isShadowElement:c,getShadowHost:l,transformToSlot:d}},{"./find-root-node":159,"@braintree/uuid":39}],184:[function(e,t,n){"use strict";t.exports=function(e){return-1===e.indexOf("_")?e:e.toLowerCase().replace(/(\_\w)/g,(function(e){return e[1].toUpperCase()}))}},{}],185:[function(e,t,n){"use strict";var r=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 r.parse(e)}t.exports={getUrlParams:o}},{"./querystring":182}],186:[function(e,t,n){"use strict";function r(e){return e?"":".min"}t.exports=r},{}],187:[function(e,t,n){"use strict";var r="function"==typeof atob?atob:o;function o(e){var a,b,t,n,r,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|(n=o.indexOf(e.charAt(i++)))>>4&3,b=(15&n)<<4|(r=o.indexOf(e.charAt(i++)))>>2&15,t=(3&r)<<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 r.call(window,e)},_atob:o}},{}],188:[function(e,t,n){"use strict";
2t.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"]}},{}],189:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error"),o=e("../shared/errors");function c(e,t){var n,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 r(o.LOCAL_PAYMENT_QR_CODE_INVALID_DATA);if("string"==typeof t){if(!(n=document.querySelector(t)))throw new r({type:r.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 r(o.LOCAL_PAYMENT_QR_CODE_INVALID_CONTAINER);n=t}return n.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",n.appendChild(c),c}t.exports=c},{"../../lib/braintree-error":148,"../shared/errors":193}],190:[function(e,t,n){"use strict";var r=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,h=e("../../lib/analytics"),f=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"),T=e("./constants"),A=e("../shared/errors"),w=e("../../lib/assign").assign,S=e("../../lib/in-iframe"),O=e("../shared/browser-detection"),I=e("./inject-qr-code"),C=1282,P=720;function N(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 D(e){var t=e.blikOptions||{},n="string"==typeof e.paymentType?e.paymentType.toLowerCase():e.paymentType;return"blik"===n?t.hasOwnProperty("level_0")||t.hasOwnProperty("oneClick"):!("swish"!==n||!e.swishOptions||!e.swishOptions.requestQrCode)||["pay_upon_invoice","mbway","bancomatpay"].includes(n)}function R(e){var i,option;for(i=0;i<T.REQUIRED_OPTIONS_FOR_ADDRESS.length;i++)if(option=T.REQUIRED_OPTIONS_FOR_ADDRESS[i],!e.hasOwnProperty(option))return option;return!1}function L(e){var i,t,n,option;for(t=0;t<e.length;t++)for(n=e[t],i=0;i<T.REQUIRED_OPTIONS_FOR_LINE_ITEMS.length;i++)if(option=T.REQUIRED_OPTIONS_FOR_LINE_ITEMS[i],!n.hasOwnProperty(option))return option;return!1}function k(e){var i,option,t,n=e.blikOptions||{};for(e.redirectUrl||T.REQUIRED_OPTIONS_FOR_BLIK_SEAMLESS_PAYMENT_TYPE.push("onPaymentStart"),i=0;i<T.REQUIRED_OPTIONS_FOR_BLIK_SEAMLESS_PAYMENT_TYPE.length;i++)if(option=T.REQUIRED_OPTIONS_FOR_BLIK_SEAMLESS_PAYMENT_TYPE[i],!e.hasOwnProperty(option))return option;if(n.hasOwnProperty("level_0")){for(i=0;i<T.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_LEVEL_0.length;i++)if(option=T.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_LEVEL_0[i],!n.level_0.hasOwnProperty(option))return"blikOptions.level_0."+option}else if(n.hasOwnProperty("oneClick"))if((t=n.oneClick||{}).hasOwnProperty("aliasKey")){for(i=0;i<T.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_SUBSEQUENT.length;i++)if(option=T.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_SUBSEQUENT[i],!t.hasOwnProperty(option))return"blikOptions.oneClick."+option}else for(i=0;i<T.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_FIRST.length;i++)if(option=T.REQUIRED_OPTIONS_FOR_BLIK_OPTIONS_ONE_CLICK_FIRST[i],!t.hasOwnProperty(option))return"blikOptions.oneClick."+option;return!1}function x(e){return!(e.cryptoOptions||{}).approvalUrl&&"cryptoOptions.approvalUrl"}function M(e){var i,option,t=e.swishOptions||{},n=["givenName","surname","currencyCode","paymentType","amount"];for(i=0;i<n.length;i++)if(option=n[i],!e.hasOwnProperty(option))return option;return t.requestQrCode&&!t.qrContainer?"swishOptions.qrContainer":!(t.requestQrCode||t.returnUrl||e.redirectUrl||!O.isMobileDevice()
2)&&"swishOptions.returnUrl"}function U(e,t,n){return!!("swish"===n&&e.swishOptions&&e.swishOptions.requestQrCode&&t.paymentResource.qrDetails&&t.paymentResource.qrDetails.qrImage)}function F(e){var i,option,t,n,r;if(!e)return!0;if("crypto"===(r=e.paymentType||"").toLowerCase())return x(e);if("swish"===r.toLowerCase())return M(e);if(D(e)){if("pay_upon_invoice"===r.toLowerCase())for(i=0;i<T.REQUIRED_OPTIONS_FOR_PAY_UPON_INVOICE_PAYMENT_TYPE.length;i++){if(option=T.REQUIRED_OPTIONS_FOR_PAY_UPON_INVOICE_PAYMENT_TYPE[i],!e.hasOwnProperty(option))return option;if("address"===option||"billingAddress"===option){if(t=R(e[option]))return option+"."+t}else if("lineItems"===option&&(n=L(e[option])))return option+"."+n}else if("blik"===r.toLowerCase())return k(e)}else{for(e.redirectUrl||T.REQUIRED_OPTIONS_FOR_START_PAYMENT.push("onPaymentStart"),i=0;i<T.REQUIRED_OPTIONS_FOR_START_PAYMENT.length;i++)if(option=T.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,N.prototype._initialize=function(){var e=this,t=this._client,n=setTimeout((function(){h.sendEvent(t,"local-payment.load.timed-out")}),d);return new Promise((function(o){r.create({name:"localpaymentlandingpage",dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+c(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},(function(r){e._frameService=r,clearTimeout(n),h.sendEvent(t,"local-payment.load.succeeded"),o(e)}))}))},N.prototype.startPayment=function(e){var t,n,address,r,l,d,f,m,E,T,S,N,R=this;if(R._isRedirectFlow?e.redirectUrl=R._redirectUrl:T=R._frameService._serviceId,t=F(e))return n=new o(A.LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION),"string"==typeof t&&(n.details="Missing required '"+t+"' option."),Promise.reject(n);if(e.paymentType&&"swish"===e.paymentType.toLowerCase()&&e.swishOptions&&e.swishOptions.requestQrCode){if(O.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||{},r=e.fallback||{},f=e.billingAddress||{},l={amount:e.amount,billingAddress:{line1:f.streetAddress,line2:f.extendedAddress,city:f.locality,state:f.region,postalCode:f.postalCode,countryCode:f.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:R._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},R._paymentType=e.paymentType.toLowerCase(),"swish"===R._paymentType&&O.isMobileDevice()&&(l.redirectToApp=!0,R._isRedirectFlow=!0),"crypto"===R._paymentType&&(R._isRedirectFlow=!0),R._isRedirectFlow?"swish"===R._paymentType&&e.swishOptions&&e.swishOptions.returnUrl&&O.isMobileDevice()?(S=_.queryify(e.swishOptions.returnUrl,{wasCanceled:!0}),N=e.swishOptions.returnUrl):(S=_.queryify(R._redirectUrl,{wasCanceled:!0}),N=R._redirectUrl):(S=_.queryify(R._assetsUrl+"/html/local-payment-redirect-frame"+c(R._isDebug)+".html",{channel:T,r:r.cancelUrl||r.url,t:r.cancelButtonText||r.buttonText,c:1}),N=_.queryify(R._assetsUrl+"/html/local-payment-redirect-frame"+c(R._isDebug)+".html",{channel:T,r:r.url,t:r.buttonText})),w(l,{cancelUrl:S,returnUrl:N}),R._authorizationInProgress&&!R._isRedirectFlow?(h.sendEvent(R._client,R._paymentType+".local-payment.start-payment.error.already-opened"),Promise.reject(new o(A.LOCAL_PAYMENT_ALREADY_IN_PROGRESS))
2):(R._authorizationInProgress=!0,d=new v,D(e)||R._isRedirectFlow||(R._startPaymentCallback=R._createStartPaymentCallback((function(e){d.resolve(e)}),(function(e){d.reject(e)})),R._frameService.open({width:m.width||C,height:m.height||P},R._startPaymentCallback)),"crypto"===R._paymentType?(h.sendEvent(R._client,R._paymentType+".local-payment.start-payment.redirected"),R._redirectToPaymentResource(e.cryptoOptions.approvalUrl),d.resolve(),d):(R._client.request({method:"post",endpoint:"local_payments/create",data:l}).then((function(t){var n=t.paymentResource.redirectUrl;if(R._isRedirectFlow?h.sendEvent(R._client,R._paymentType+".local-payment.start-payment.redirected"):h.sendEvent(R._client,R._paymentType+".local-payment.start-payment.opened"),R._startPaymentOptions=e,U(e,t,R._paymentType)){R._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 D(e)?(R._authorizationInProgress=!1,"string"==typeof n&&n.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(){R._isRedirectFlow||R._frameService.redirect(n)}))).then((function(){R._isRedirectFlow&&(R._redirectToPaymentResource(n),d.resolve())})):R._isRedirectFlow?(R._redirectToPaymentResource(n),d.resolve()):R._isRedirectFlow||R._frameService.redirect(n);return d})).catch((function(e){var t=e.details&&e.details.httpStatus;R._isRedirectFlow||R._frameService.close(),R._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))},N.prototype._redirectToPaymentResource=function(e){S()?window.top.location.href=e:window.location.href=e},N.prototype.tokenize=function(e){var t=this,n=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}}})):n.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e)}).then((function(e){var r=t._formatTokenizePayload(e);return window.popupBridge?h.sendEvent(n,t._paymentType+".local-payment.tokenization.success-popupbridge"):h.sendEvent(n,t._paymentType+".local-payment.tokenization.success"),r})).catch((function(e){return h.sendEvent(n,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}))}))},N.prototype.closeWindow=function(){this._authoriztionInProgress&&h.sendEvent(this._client,this._paymentType+".local-payment.start-payment.closed.by-merchant"),this._frameService.close()},N.prototype.focusWindow=function(){this._frameService.focus()},N.prototype._createStartPaymentCallback=function(e,t){var n=this,r=this._client;return function(c,l){if(n._authorizationInProgress=!1,c)if("FRAME_SERVICE_FRAME_CLOSED"===c.code){if(l&&"processing_error"===l.errorcode)return h.sendEvent(r,n._paymentType+".local-payment.failed-in-window"),void t(new o(A.LOCAL_PAYMENT_START_PAYMENT_FAILED));h.sendEvent(r,n._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||n._frameService.redirect(n._loadingFrameUrl),n.tokenize(l).then(e).catch(t).then((function(){n._frameService.close()})))}},N.prototype._formatTokenizePayload=function(e){var t,n={};
2return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&(n.details.payerInfo&&(t.details=n.details.payerInfo),n.details.correlationId&&(t.correlationId=n.details.correlationId)),t},N.prototype.hasTokenizationParams=function(){var e=_.parse();return!(!e.errorcode&&!e.token)||Boolean(e.btLpToken&&e.btLpPaymentId&&e.btLpPayerId)},N.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"}}},N.prototype.teardown=function(){var e=this;return e._isRedirectFlow||e._frameService.teardown(),m(e,f(N.prototype)),h.sendEvent(e._client,"local-payment.teardown-completed"),Promise.resolve()},t.exports=E.wrapPrototype(N)},{"../../lib/analytics":143,"../../lib/assign":145,"../../lib/braintree-error":148,"../../lib/constants":149,"../../lib/convert-methods-to-error":150,"../../lib/convert-to-braintree-error":151,"../../lib/frame-service/external":162,"../../lib/in-iframe":174,"../../lib/methods":180,"../../lib/querystring":182,"../../lib/use-min":186,"../shared/browser-detection":192,"../shared/errors":193,"./constants":188,"./inject-qr-code":189,"@braintree/extended-promise":34,"@braintree/wrap-promise":43}],191:[function(e,t,n){"use strict";var r=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"),h="3.144.0",f=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 n,o,c=t.getConfiguration();return e.client=t,!0!==c.gatewayConfiguration.paypalEnabled?Promise.reject(new m(y.LOCAL_PAYMENT_NOT_ENABLED)):(r.sendEvent(t,"local-payment.initialized"),n=new d(e),e.redirectUrl?(o=v(window.location.href)).token||o.wasCanceled?n.tokenize(o).then((function(e){return n.tokenizePayload=e,n})).catch((function(e){return console.log("Error while tokenizing: ",e),n})):n:n._initialize())}))}t.exports={create:f(_),VERSION:h}},{"../lib/analytics":143,"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"../lib/querystring":182,"./external/local-payment":190,"./shared/errors":193,"@braintree/wrap-promise":43}],192:[function(e,t,n){"use strict";var r=e("@braintree/browser-detection/is-android"),o=e("@braintree/browser-detection/is-ios");function c(){return r()||o()}t.exports={isMobileDevice:c}},{"@braintree/browser-detection/is-android":22,"@braintree/browser-detection/is-ios":30}],193:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={LOCAL_PAYMENT_NOT_ENABLED:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_NOT_ENABLED",message:"LocalPayment is not enabled for this merchant."},LOCAL_PAYMENT_ALREADY_IN_PROGRESS:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_ALREADY_IN_PROGRESS",message:"LocalPayment payment is already in progress."},LOCAL_PAYMENT_CANCELED:{type:r.types.CUSTOMER,code:"LOCAL_PAYMENT_CANCELED",message:"Customer canceled the LocalPayment before authorizing."},LOCAL_PAYMENT_WINDOW_CLOSED:{type:r.types.CUSTOMER,code:"LOCAL_PAYMENT_WINDOW_CLOSED",message:"Customer closed LocalPayment window before authorizing."},LOCAL_PAYMENT_WINDOW_OPEN_FAILED:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_WINDOW_OPEN_FAILED",message:"LocalPayment window failed to open; make sure startPayment was called in response to a user action."},LOCAL_PAYMENT_START_PAYMENT_FAILED:{type:r.types.NETWORK,code:"LOCAL_PAYMENT_START_PAYMENT_FAILED",message:"LocalPayment startPayment failed."},LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_START_PAYMENT_MISSING_REQUIRED_OPTION",message:"Missing required option for startPayment."},LOCAL_PAYMENT_START_PAYMENT_DEFERRED_PAYMENT_FAILED:{type:r.types.UNKNOWN,code:"LOCAL_PAYMENT_START_PAYMENT_DEFERRED_PAYMENT_FAILED",message:"LocalPayment startPayment deferred payment failed."},LOCAL_PAYMENT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"LOCAL_PAYMENT_TOKENIZATION_FAILED",message:"Could not tokenize user's local payment method."},LOCAL_PAYMENT_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"LOCAL_PAYMENT_INVALID_PAYMENT_OPTION",message:"Local payment options are invalid."},LOCAL_PAYMENT_QR_CODE_INVALID_DATA:{type:r.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:r.types.MERCHANT,code:"LOCAL_PAYMENT_QR_CODE_CONTAINER_NOT_FOUND",message:"QR code container element not found."},LOCAL_PAYMENT_QR_CODE_INVALID_CONTAINER:{type:r.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:r.types.MERCHANT,code:"LOCAL_PAYMENT_QR_CODE_NOT_SUPPORTED",message:"QR code is only supported on desktop devices."}}},{"../../lib/braintree-error":148}],194:[function(e,t,n){"use strict";var r=e("../../lib/frame-service/external"),o=e("../../lib/braintree-error"),c=e("../shared/errors"),l="3.144.0",d=e("../../lib/methods"),h=e("@braintree/wrap-promise"),f=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 T(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 n=setTimeout((function(){f.sendEvent(e._client,"masterpass.load.timed-out")}),_);r.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(r){e._frameService=r,clearTimeout(n),f.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(n,r){t._navigateFrameToLoadingPage(e).catch(r),t._frameService.open(e.frameOptions,t._createFrameOpenHandler(n,r))}))},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(n){var r,o=t._assetsUrl+"/html/masterpass-loading-frame"+(t._isDebug?"":".min")+".html?",c=t._client.getConfiguration().gatewayConfiguration,l=e.config||{};r={environment:c.environment,requestToken:n.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]&&(r[e]=l[e])})),o+=Object.keys(r).map((function(e){return e+"="+r[e]})).join("&"),t._frameService.redirect(o)}
2)).catch((function(e){var n=e.details&&e.details.httpStatus;return t._closeWindow(),422===n?Promise.reject(y(e,c.MASTERPASS_INVALID_PAYMENT_OPTION)):Promise.reject(y(e,c.MASTERPASS_FLOW_FAILED))}))},E.prototype._createFrameOpenHandler=function(e,t){var n=this;return window.popupBridge?function(r,l){return n._authInProgress=!1,r?(f.sendEvent(n._client,"masterpass.tokenization.closed-popupbridge.by-user"),void t(y(r,c.MASTERPASS_POPUP_CLOSED))):l.queryItems?void n._tokenizeMasterpass(l.queryItems).then(e).catch(t):(f.sendEvent(n._client,"masterpass.tokenization.failed-popupbridge"),void t(new o(c.MASTERPASS_FLOW_FAILED)))}:function(r,l){if(r)return n._authInProgress=!1,"FRAME_SERVICE_FRAME_CLOSED"===r.code?(f.sendEvent(n._client,"masterpass.tokenization.closed.by-user"),void t(new o(c.MASTERPASS_POPUP_CLOSED))):r.code&&r.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1?(f.sendEvent(n._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:r}}))):(f.sendEvent(n._client,"masterpass.tokenization.failed"),n._closeWindow(),void t(y(r,c.MASTERPASS_FLOW_FAILED)));n._tokenizeMasterpass(l).then(e).catch(t)}},E.prototype._tokenizeMasterpass=function(e){var t=this;return"success"!==e.mpstatus?(f.sendEvent(t._client,"masterpass.tokenization.closed.by-user"),t._closeWindow(),Promise.reject(new o(c.MASTERPASS_POPUP_CLOSED))):T(e)?(f.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?f.sendEvent(t._client,"masterpass.tokenization.success-popupbridge"):f.sendEvent(t._client,"masterpass.tokenization.success"),e.masterpassCards[0]})).catch((function(e){return t._closeWindow(),window.popupBridge?f.sendEvent(t._client,"masterpass.tokenization.failed-popupbridge"):f.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)),f.sendEvent(e._client,"masterpass.teardown-completed"),t()}))},t.exports=h.wrapPrototype(E)},{"../../lib/analytics":143,"../../lib/braintree-error":148,"../../lib/constants":149,"../../lib/convert-methods-to-error":150,"../../lib/convert-to-braintree-error":151,"../../lib/frame-service/external":162,"../../lib/methods":180,"../shared/constants":197,"../shared/errors":198,"@braintree/wrap-promise":43}],195:[function(e,t,n){"use strict";var r=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"),h=e("../lib/create-assets-url"),f="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 r(m.MASTERPASS_BROWSER_NOT_SUPPORTED))})).then((function(){return d.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:h.create(e.authorization),name:t})})).then((function(t){return e.client=t,e.client.getConfiguration().gatewayConfiguration.masterpass?new l(e)._initialize():Promise.reject(new r(m.MASTERPASS_NOT_ENABLED))}))}function _(){return Boolean(window.popupBridge||c.supportsPopups())}t.exports={create:y(v),isSupported:_,VERSION:f}},{"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./external/masterpass":194,"./shared/browser-detection":196,"./shared/errors":198,"@braintree/wrap-promise":43}],196:[function(e,t,n){"use strict";
2t.exports={supportsPopups:e("@braintree/browser-detection/supports-popups")}},{"@braintree/browser-detection/supports-popups":32}],197:[function(e,t,n){"use strict";t.exports={LANDING_FRAME_NAME:"braintreemasterpasslanding",POPUP_WIDTH:450,POPUP_HEIGHT:660,MASTERPASS_VERSION:"v6",REQUIRED_OPTIONS_FOR_TOKENIZE:["subtotal","currencyCode"]}},{}],198:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={MASTERPASS_BROWSER_NOT_SUPPORTED:{type:r.types.CUSTOMER,code:"MASTERPASS_BROWSER_NOT_SUPPORTED",message:"Browser is not supported."},MASTERPASS_NOT_ENABLED:{type:r.types.MERCHANT,code:"MASTERPASS_NOT_ENABLED",message:"Masterpass is not enabled for this merchant."},MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"MASTERPASS_TOKENIZE_MISSING_REQUIRED_OPTION",message:"Missing required option for tokenize."},MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS:{type:r.types.MERCHANT,code:"MASTERPASS_TOKENIZATION_ALREADY_IN_PROGRESS",message:"Masterpass tokenization is already in progress."},MASTERPASS_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"MASTERPASS_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's Masterpass account."},MASTERPASS_POPUP_OPEN_FAILED:{type:r.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:r.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:r.types.CUSTOMER,code:"MASTERPASS_POPUP_CLOSED",message:"Customer closed Masterpass popup before authorizing."},MASTERPASS_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"MASTERPASS_INVALID_PAYMENT_OPTION",message:"Masterpass payment options are invalid."},MASTERPASS_FLOW_FAILED:{type:r.types.NETWORK,code:"MASTERPASS_FLOW_FAILED",message:"Could not initialize Masterpass flow."}}},{"../../lib/braintree-error":148}],199:[function(e,t,n){"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"]}},{}],200:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={PAYMENT_READY_ERROR:{type:r.types.MERCHANT,code:"PAYMENT_READY_ERROR"},PAYMENT_READY_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"PAYMENT_READY_MISSING_REQUIRED_OPTION",message:"Missing required option for Payment Ready method."},PAYMENT_READY_CREATE_SESSION_ERROR:{type:r.types.NETWORK,code:"PAYMENT_READY_CREATE_SESSION_ERROR",message:"Error creating customer session."},PAYMENT_READY_UPDATE_SESSION_ERROR:{type:r.types.NETWORK,code:"PAYMENT_READY_UPDATE_SESSION_ERROR",message:"Error updating customer session."},PAYMENT_READY_NO_SESSION_ID:{type:r.types.MERCHANT,code:"PAYMENT_READY_NO_SESSION_ID",message:"A session ID is required"},PAYMENT_READY_GET_RECOMMENDATIONS_ERROR:{type:r.types.NETWORK,code:"PAYMENT_READY_GET_RECOMMENDATIONS_ERROR",message:"Error getting customer recommendations"}}},{"../lib/braintree-error":148}],201:[function(e,t,n){"use strict";var r=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"),h=e("@braintree/wrap-promise"),f="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,r.sendEvent(t,"payment-ready.client.initialized"),new o(e)}))}t.exports={create:h(m),VERSION:f}},{"../lib/analytics":143,"../lib/basic-component-verification":146,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./payment-ready":202,"@braintree/wrap-promise":43}],202:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),o=e("../lib/analytics"),c=e("../lib/braintree-error"),l=e("./constants"),d=e("./errors"),h=e("../lib/has-missing-option");function f(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}f.prototype.createCustomerSession=function(e){var t=this;return!e||h(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})).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}}))}
2))},f.prototype.updateCustomerSession=function(e){var t=this;return!e||h(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}}))}))},f.prototype.getCustomerRecommendations=function(e){var t=this;return!e||h(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}}))}))},f.prototype.sendPresentedEvent=function(e){var t=e.presentmentDetails?e.presentmentDetails.experimentType:null,n=e.presentmentDetails?e.presentmentDetails.pageType:null,r=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),r&&!Object.values(l.BUTTON_ORDER).includes(r)&&(r=l.BUTTON_ORDER.OTHER),t&&!Object.values(l.EXPERIMENT_TYPE).includes(t)&&(t=l.EXPERIMENT_TYPE.TEST),n&&!Object.values(l.PAGE_TYPE).includes(n)&&(n=l.PAGE_TYPE.OTHER),c=m({buttonOrder:r,buttonType:d,experimentType:t,pageType:n,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")},f.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=r.wrapPrototype(f)},{"../lib/analytics":143,"../lib/braintree-error":148,"../lib/has-missing-option":173,"./constants":199,"./errors":200,"@braintree/wrap-promise":43}],203:[function(e,t,n){"use strict";var r=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"),h=e("@braintree/iframer"),f=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",T=e("../shared/constants"),A=T.events,w=T.errors,S=e("@braintree/wrap-promise"),O={Visa:"visa",MasterCard:"mastercard","American Express":"amex","Diners Club":"diners",Discover:"discover",JCB:"jcb",UnionPay:"unionpay",Maestro:"maestro"},I="18278000977346790994";
2function C(e,t,n){return e+"/web/"+E+"/html/payment-request-frame"+m(n)+".html#"+t}function P(e){var t=e.enabledPaymentMethods||{};v.call(this),this._componentId=f(),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._constructDefaultSupportedPaymentMethods(),this._defaultSupportedPaymentMethods=Object.keys(this._supportedPaymentMethods).map(function(e){return this._supportedPaymentMethods[e]}.bind(this)),this._bus=new c({channel:this._componentId})}v.createChild(P),P.prototype._constructDefaultSupportedPaymentMethods=function(){var e=this._client.getConfiguration(),t=e.gatewayConfiguration.androidPay,n=e.gatewayConfiguration.creditCards,r={};return this._enabledPaymentMethods.basicCard&&n&&n.supportedCardTypes.length>0&&(r.basicCard={supportedMethods:"basic-card",data:{supportedNetworks:n.supportedCardTypes.reduce((function(e,t){return t in O&&e.push(O[t]),e}),[])}}),this._enabledPaymentMethods.googlePay&&t&&t.enabled&&(r.googlePay={supportedMethods:"https://google.com/pay",data:d(e,this._googlePayVersion,this._googleMerchantId)}),r},P.prototype.initialize=function(){var e=this._client.getConfiguration(),t=this;return this._frame=h({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 _(w.PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS)):new Promise((function(n){t._bus.on(A.FRAME_READY,(function(e){e(t._client)})),t._bus.on(A.FRAME_CAN_MAKE_REQUESTS,(function(){r.sendEvent(t._client,"payment-request.initialized"),t._bus.on(A.SHIPPING_ADDRESS_CHANGE,(function(e){var n={target:{shippingAddress:e},updateWith:function(e){t._bus.emit(A.UPDATE_SHIPPING_ADDRESS,e)}};t._emit("shippingAddressChange",n),t._emit("shippingaddresschange",n)})),t._bus.on(A.SHIPPING_OPTION_CHANGE,(function(e){var n={target:{shippingOption:e},updateWith:function(e){t._bus.emit(A.UPDATE_SHIPPING_OPTION,e)}};t._emit("shippingOptionChange",n),t._emit("shippingoptionchange",n)})),n(t)})),t._frame.src=C(e.gatewayConfiguration.assetsUrl,t._componentId,e.isDebug),document.body.appendChild(t._frame)}))},P.prototype.createSupportedPaymentMethodsConfiguration=function(e,t){var n;if(!e)throw new _(w.PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_MUST_INCLUDE_TYPE);if(!this._enabledPaymentMethods[e])throw new _(w.PAYMENT_REQUEST_CREATE_SUPPORTED_PAYMENT_METHODS_CONFIGURATION_TYPE_NOT_ENABLED);return(n=o({},this._supportedPaymentMethods[e])).data=o({},n.data,t),n},P.prototype.tokenize=function(e){var t=this;return new Promise((function(n,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)):(r.sendEvent(t._client,"payment-request.tokenize.succeeded"),n({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}))}))}))},P.prototype.canMakePayment=function(e){var t,n=this;return window.PaymentRequest?e.supportedPaymentMethods&&(e.supportedPaymentMethods.forEach((function(e){var n=e.supportedMethods;n in T.SUPPORTED_METHODS||(t=n)})),t)?Promise.reject(new _({type:w.PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD.type,code:w.PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD.code,message:t+" is not a supported payment method."})):new Promise((function(t,o){n._bus.emit(A.CAN_MAKE_PAYMENT,{supportedPaymentMethods:e.supportedPaymentMethods||n._defaultSupportedPaymentMethods,details:e.details,options:e.options},(function(e){var c=e[0],l=e[1];c?o(n._formatCanMakePaymentError(c)):(r.sendEvent(n._client,"payment-request.can-make-payment."+l),t(l))}))})):(r.sendEvent(n._client,"payment-request.can-make-payment.not-available"),Promise.resolve(!1))},P.prototype.teardown=function(){return this._bus.teardown(),this._frame.parentNode.removeChild(this._frame),l(this,y(P.prototype)),r.sendEvent(this._client,"payment-request.teardown-completed"),Promise.resolve()},P.prototype._formatTokenizationError=function(e){var t;switch(e.name){case"AbortError":return t=new _({type:w.PAYMENT_REQUEST_CANCELED.type,code:w.PAYMENT_REQUEST_CANCELED.code,message:w.PAYMENT_REQUEST_CANCELED.message,details:{originalError:e}}),r.sendEvent(this._client,"payment-request.tokenize.canceled"),t;case"PAYMENT_REQUEST_INITIALIZATION_FAILED":t=new _({type:w.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.type,code:w.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.code,message:w.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.message,details:{originalError:e}});break;case"BRAINTREE_GATEWAY_GOOGLE_PAYMENT_TOKENIZATION_ERROR":t=new _({type:w.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.type,code:w.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.code,message:w.PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE.message,details:{originalError:e}});break;case"BRAINTREE_GATEWAY_GOOGLE_PAYMENT_PARSING_ERROR":t=new _({type:w.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.type,code:w.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.code,message:w.PAYMENT_REQUEST_GOOGLE_PAYMENT_PARSING_ERROR.message,details:{originalError:e}});break;default:t=new _({code:w.PAYMENT_REQUEST_NOT_COMPLETED.code,type:e.type||_.types.CUSTOMER,message:w.PAYMENT_REQUEST_NOT_COMPLETED.message,details:{originalError:e}})}return r.sendEvent(this._client,"payment-request.tokenize.failed"),t},P.prototype._formatCanMakePaymentError=function(e){var t;switch(e.name){case"PAYMENT_REQUEST_INITIALIZATION_FAILED":t=new _({type:w.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.type,code:w.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.code,message:w.PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED.message,details:{originalError:e}});break;case"NotAllowedError":t=new _({type:w.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.type,code:w.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.code,message:w.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED.message,details:{originalError:e}});break;default:t=new _({code:w.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.code,type:w.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.type,message:w.PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED.message,details:{originalError:e}})}return r.sendEvent(this._client,"payment-request.can-make-payment.failed"),t},t.exports=S.wrapPrototype(P)},{"../../lib/analytics":143,"../../lib/assign":145,"../../lib/braintree-error":148,"../../lib/convert-methods-to-error":150,"../../lib/generate-google-pay-configuration":172,"../../lib/methods":180,"../../lib/use-min":186,"../shared/constants":205,"@braintree/event-emitter":33,"@braintree/iframer":35,"@braintree/uuid":39,"@braintree/wrap-promise":43,framebus:54}],204:[function(e,t,n){"use strict";var r=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"),h="3.144.0";function f(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 r(e).initialize()}))}t.exports={create:d(f),VERSION:h}},{"../lib/basic-component-verification":146,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./external/payment-request":203,"@braintree/wrap-promise":43}],205:[function(e,t,n){"use strict";var r=e("../../lib/enumerate"),o=e("./errors"),c={};c.events=r(["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":157,"./errors":206}],206:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={PAYMENT_REQUEST_NO_VALID_SUPPORTED_PAYMENT_METHODS:{type:r.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:r.types.CUSTOMER,code:"PAYMENT_REQUEST_CANCELED",message:"Payment request was canceled."},PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED:{type:r.types.MERCHANT,code:"PAYMENT_REQUEST_INITIALIZATION_MISCONFIGURED",message:"Something went wrong when configuring the payment request."},PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED:{type:r.types.UNKNOWN,code:"PAYMENT_REQUEST_CAN_MAKE_PAYMENT_FAILED",message:"Something went wrong when calling `canMakePayment`"},PAYMENT_REQUEST_CAN_MAKE_PAYMENT_NOT_ALLOWED:{type:r.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:r.types.MERCHANT,code:"PAYMENT_REQUEST_UNSUPPORTED_PAYMENT_METHOD"}
2,PAYMENT_REQUEST_GOOGLE_PAYMENT_FAILED_TO_TOKENIZE:{type:r.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:r.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:r.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:r.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":148}],207:[function(e,t,n){"use strict";var r="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:r,PAYPAL_V6_SDK_BASE_URL:o,PAYPAL_V6_ENVIRONMENT:c,ANALYTICS_PREFIX:l,ANALYTICS_EVENTS:d}},{}],208:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={PAYPAL_CHECKOUT_V6_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_CHECKOUT_V6_SANDBOX_ACCOUNT_NOT_LINKED:{type:r.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:r.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:r.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:r.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED",message:"PayPal V6 SDK instance creation failed."},PAYPAL_CHECKOUT_V6_CLIENT_TOKEN_INVALID:{type:r.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_CLIENT_TOKEN_INVALID",message:"Client token is invali
2d or expired."},PAYPAL_CHECKOUT_V6_SDK_NOT_INITIALIZED:{type:r.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:r.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_ELIGIBILITY_CHECK_FAILED",message:"Failed to check payment method eligibility."},PAYPAL_CHECKOUT_V6_INVALID_ELIGIBILITY_OPTIONS:{type:r.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:r.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_SESSION_CREATION_FAILED",message:"Failed to create PayPal payment session."},PAYPAL_CHECKOUT_V6_PAYMENT_START_FAILED:{type:r.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_PAYMENT_START_FAILED",message:"Failed to start PayPal payment flow."},PAYPAL_CHECKOUT_V6_PAYMENT_CANCELED:{type:r.types.CUSTOMER,code:"PAYPAL_CHECKOUT_V6_PAYMENT_CANCELED",message:"Customer canceled the PayPal payment."},PAYPAL_CHECKOUT_V6_INVALID_SESSION_OPTIONS:{type:r.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:r.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:r.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:r.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:r.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_ORDER_CREATION_FAILED",message:"Could not create PayPal order."},PAYPAL_CHECKOUT_V6_INVALID_ORDER_OPTIONS:{type:r.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:r.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_TOKENIZATION_FAILED",message:"Could not tokenize PayPal account."},PAYPAL_CHECKOUT_V6_MISSING_TOKENIZATION_DATA:{type:r.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:r.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:r.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:r.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:r.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_UPDATE_FAILED",message:"Could not update PayPal payment details."},PAYPAL_CHECKOUT_V6_INVALID_LINE_ITEMS:{type:r.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:r.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:r.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:r.types.CUSTOMER,code:"PAYPAL_CHECKOUT_V6_BILLING_AGREEMENT_CANCELED",message:"Customer canceled the billing agreement."},PAYPAL_CHECKOUT_V6_MESSAGES_CREATION_FAILED:{type:r.types.NETWORK,code:"PAYPAL_CHECKOUT_V6_MESSAGES_CREATION_FAILED",message:"Could not create PayPal Messages instance."},PAYPAL_CHECKOUT_V6_VIC_PARAM_REQUIRED:{type:r.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:r.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:r.types.CUSTOMER,code:"PAYPAL_CHECKOUT_V6_VIC_CANCELED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_CHECKOUT_V6_VIC_IN_PROGRESS:{type:r.types.MERCHANT,code:"PAYPAL_CHECKOUT_V6_VIC_IN_PROGRESS",message:"Vault initiated checkout already in progress."}}},{"../lib/braintree-error":148}],209:[function(e,t,n){"use strict";var r=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 r.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return new c(e)._initialize(e)}))}function h(){return!0}t.exports={create:o(d),isSupported:h,VERSION:l}},{"../lib/basic-component-verification":146,"./paypal-checkout-v6":210,"@braintree/wrap-promise":43}],210:[function(e,t,n){"use strict";var r=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"),h=e("../lib/create-assets-url"),f=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"),T=e("@braintree/wrap-promise"),A=e("@braintree/extended-promise"),w=e("./constants"),S=e("../lib/constants").INTEGRATION_TIMEOUT_MS;A.suppressUnhandledPromiseMessage=!0;var O=["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=f(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?h.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,r.sendEvent(e,w.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,n=e.getConfiguration(),o=setTimeout((function(){r.sendEvent(e,"paypal-checkout-v6.frame-service.timed-out"),t.reject(new c(m.PAYPAL_CHECKOUT_V6_SESSION_CREATION_FAILED))}),S);return this._assetsUrl=n.gatewayConfiguration.paypal.assetsUrl+"/web/"+w.VERSION,this._isDebug=n.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,n,r,o,c,l=["currencyIsoCode","name","oneTimeFeeAmount","productDescription","productPrice","productQuantity","shippingAmount","taxAmount","totalAmount"],d=["billingFrequency","billingFrequencyUnit","numberOfExecutions","sequence","startDate","trial","pricingScheme"],h={billingCycles:[]};if(e.hasOwnProperty("billingCycles"))for(t=0;t<e.billingCycles.length;t++){for(n=e.billingCycles[t],r={},o=0;o<d.length;o++)r[d[o]]=n[d[o]];h.billingCycles.push(r)}for(c=0;c<l.length;c++)h[l[c]]=e[l[c]];return h},I.prototype.loadPayPalSDK=function(e){var t=this;return this._clientPromise.then((function(n){var o,l=new A,d="production"===n.getConfiguration().gatewayConfiguration.environment?"":"sandbox.";
2return o=e&&e.env&&w.PAYPAL_V6_ENVIRONMENT[e.env]?w.PAYPAL_V6_ENVIRONMENT[e.env]:w.PAYPAL_V6_SDK_BASE_URL.replace("{ENV}",d),window.paypal&&window.paypal.version?(r.sendEvent(n,w.ANALYTICS_EVENTS.SDK_ALREADY_LOADED),Promise.resolve(t)):(r.sendEvent(n,w.ANALYTICS_EVENTS.SDK_LOAD_STARTED),t._paypalScript=document.createElement("script"),t._paypalScript.src=o,t._paypalScript.async=!0,t._paypalScript.onload=function(){r.sendEvent(n,w.ANALYTICS_EVENTS.SDK_LOAD_SUCCEEDED),l.resolve(t)},t._paypalScript.onerror=function(){r.sendEvent(n,w.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 n=t.getConfiguration(),c=n.gatewayConfiguration.paypal.clientId;return e=o({clientId:c,components:e.components,pageType:"checkout"},e),n.analyticsMetadata&&n.analyticsMetadata.sessionId&&(e.clientMetadataId=n.analyticsMetadata.sessionId),r.sendEvent(t,w.ANALYTICS_EVENTS.CREATE_INSTANCE_STARTED),window.paypal.createInstance(e).then((function(e){return r.sendEvent(t,w.ANALYTICS_EVENTS.CREATE_INSTANCE_SUCCEEDED),e})).catch((function(e){throw r.sendEvent(t,w.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,n={checkout:{instanceKey:"_paypalInstance",promiseKey:"_checkoutInstancePromise",components:["paypal-payments"]},vault:{instanceKey:"_paypalVaultInstance",promiseKey:"_vaultInstancePromise",components:["paypal-billing-agreements"]},messages:{instanceKey:"_paypalMessagesSdkInstance",promiseKey:"_messagesInstancePromise",components:["paypal-messages"]}}[e],r=n.instanceKey,o=n.promiseKey,c=n.components;t[r]||t[o]||!t._isPayPalSdkAvailable()||(t[o]=t._clientPromise.then((function(){return t._createPayPalInstance({components:c})})).then((function(e){return t[r]=e,e})).catch((function(e){return t[o]=null,Promise.reject(e)})))},I.prototype._buildBillingAgreementRequest=function(e){var t={},n={billingAgreementDescription:"description"};return["billingAgreementDescription","userAction","offerCredit","locale","landingPageType","planType","displayName","returnUrl","cancelUrl","shippingAddressOverride","enableShippingAddress","shippingAddressEditable"].forEach((function(r){var o=n[r]||r;e.hasOwnProperty(r)&&(t[o]=e[r])})),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,n=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||n.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 r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_BA_TOKEN_STARTED),e.request({endpoint:"paypal_hermes/setup_billing_agreement",method:"post",data:o}).then((function(t){r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_BA_TOKEN_SUCCEEDED);var n=t.agreementSetup.tokenId;if(!n)throw new Error("Could not extract approval token from billing agreement setup");return{approvalTokenId:n,agreementSetup:t.agreementSetup}})).catch((function(n){if(r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_BA_TOKEN_FAILED),t._setupError)throw t._setupError;throw l(n,{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,n=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}},h=!1;if(e.hasOwnProperty("shippingAddressEditable")&&(h=!1===e.shippingAddressEditable),d.experienceProfile.addressOverride=h,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 r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_ORDER_STARTED),e.request({endpoint:"paypal_hermes/create_payment_resource",method:"post",data:d}).then((function(t){r.sendEvent(e,w.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 n._contextId=c,{orderId:c,paymentResource:t.paymentResource}}
2)).catch((function(t){if(r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_ORDER_FAILED),n._setupError)throw n._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,n){var o=n?w.ANALYTICS_EVENTS.CHECKOUT_WITH_VAULT_APPROVED:w.ANALYTICS_EVENTS.PAYMENT_APPROVED,c=n?w.ANALYTICS_EVENTS.CHECKOUT_WITH_VAULT_CANCELED:w.ANALYTICS_EVENTS.PAYMENT_CANCELED,l={commit:"boolean"!=typeof t.commit||t.commit,onApprove:function(data){return r.sendEvent(e,o),t.onApprove(data)},onCancel:function(data){if(r.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,n,o,c,l){var d;d="paypal-credit"===o?"createPayPalCreditOneTimePaymentSession":"pay-later"===o?"createPayLaterOneTimePaymentSession":"createPayPalOneTimePaymentSession";var h=Boolean(l.requestBillingAgreement),f=h?w.ANALYTICS_EVENTS.CHECKOUT_WITH_VAULT_STARTED:w.ANALYTICS_EVENTS.PAYMENT_STARTED;return r.sendEvent(t,f),e[d](this._createCheckoutSessionOptions(t,c,h)).start({presentationMode:n},this._createOrderPromise(l,c.onError))},I.prototype._createBillingSessionCallbacks=function(e,t){return{onApprove:function(data){return r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_BA_SESSION_APPROVED),t.onApprove(data)},onCancel:function(data){r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_BA_SESSION_CANCELED),t.onCancel&&"function"==typeof t.onCancel&&t.onCancel(data)},onError:function(n){r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_BA_SESSION_FAILED),t.onError&&"function"==typeof t.onError&&t.onError(n)}}},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,n,o,c,l){var d=this,h="paypal-credit"===o?"createPayPalCreditBillingAgreementWithoutPurchase":"createPayPalBillingAgreementWithoutPurchase";r.sendEvent(t,w.ANALYTICS_EVENTS.CREATE_BA_SESSION_STARTED);var f=e[h](this._createBillingSessionCallbacks(t,l));r.sendEvent(t,w.ANALYTICS_EVENTS.CREATE_BA_SESSION_SESSION_CREATED);var m=d._createBillingTokenPromise(c).catch((function(e){throw l.onError&&l.onError(e),e}));return f.start({presentationMode:n},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 n=this;this._validatePaymentSessionOptions(e),this._flow="checkout",this._sessionType=t;var r={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]&&(r[t]=e[t])})),e.hasOwnProperty("enableShippingAddress")&&(r.enableShippingAddress=e.enableShippingAddress),e.hasOwnProperty("shippingAddressEditable")&&(r.shippingAddressEditable=e.shippingAddressEditable),{start:function(o){var l=(o=o||{}).presentationMode||e.presentationMode||"auto",d=n._paypalInstance,h=n._val
2idateAppSwitchUrls(e,l);return h?Promise.reject(h):d&&n._client?n._startCheckoutSession(d,n._client,l,t,e,r):n._checkoutInstancePromise?n._checkoutInstancePromise.then((function(o){return n._clientPromise.then((function(c){return n._startCheckoutSession(o,c,l,t,e,r)}))})).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);r.sendEvent(t._clientPromise,w.ANALYTICS_EVENTS.SESSION_CHECKOUT_CREATED);var n=!0===e.offerCredit?"paypal-credit":"paypal";return!0===e.offerCredit&&r.sendEvent(t._clientPromise,w.ANALYTICS_EVENTS.CREDIT_OFFERED),t._initializePayPalInstance("checkout"),this._createPaymentSession(e,n)},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 r.sendEvent(t._clientPromise,w.ANALYTICS_EVENTS.SESSION_CHECKOUT_CREATED),r.sendEvent(t._clientPromise,w.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);r.sendEvent(t._clientPromise,w.ANALYTICS_EVENTS.SESSION_CHECKOUT_WITH_VAULT_CREATED);var n=o({},e,{requestBillingAgreement:!0});return t._initializePayPalInstance("checkout"),this._createPaymentSession(n,"paypal")},I.prototype.createPayment=function(e){var t=this;return new Promise((function(n,r){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){n(e.approvalTokenId)})).catch(r);t._createPaymentResource(e).then((function(e){n(e.orderId)})).catch(r)}else r(new c(m.PAYPAL_CHECKOUT_V6_INVALID_SESSION_OPTIONS))}))},I.prototype.createBillingAgreementSession=function(e){var t=this,n={};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);r.sendEvent(t._clientPromise,w.ANALYTICS_EVENTS.SESSION_VAULT_CREATED);var o=!0===e.offerCredit?"paypal-credit":"paypal";!0===e.offerCredit&&r.sendEvent(t._clientPromise,w.ANALYTICS_EVENTS.CREDIT_OFFERED),t._initializePayPalInstance("vault");var l=t._buildBillingAgreementRequest(e);return n.start=function(n){var d=(n=n||{}).presentationMode||e.presentationMode||"auto",h=t._paypalVaultInstance,f=t._validateAppSwitchUrls(e,d);return f?Promise.reject(f):h&&t._client?t._startBillingSession(h,t._client,d,o,l,e):t._vaultInstancePromise?t._vaultInstancePromise.then((function(n){return t._clientPromise.then((function(h){if(!t._isPayPalSdkAvailable())throw r.sendEvent(h,w.ANALYTICS_EVENTS.CREATE_BA_SESSION_SDK_NOT_LOADED),new c(m.PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED);return r.sendEvent(h,w.ANALYTICS_EVENTS.CREATE_BA_SESSION_INSTANCE_CREATED),t._startBillingSession(n,h,d,o,l,e)}))})).catch((function(e){return t._clientPromise.then((function(t){throw r.sendEvent(t,w.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 r.sendEvent(e,w.ANALYTICS_EVENTS.CREATE_BA_SESSION_SDK_NOT_LOADED),new c(m.PAYPAL_CHECKOUT_V6_SDK_INITIALIZATION_FAILED)}))},n},I.prototype.tokenizePayment=function(e){var t=this;return new Promise((function(n,o){var d=!0,h=Boolean(e&&e.billingToken);e&&(h||(e.payerID||e.payerId)&&(e.orderID||e.orderId||e.paymentID||e.paymentId))?(e.hasOwnProperty("vault")&&(d=e.vault),t._clientPromise.then((function(f){var y,data,v;return h?(v=w.ANALYTICS_EVENTS.TOKENIZE_BA_PREFIX,r.sendEvent(f,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=w.ANALYTICS_EVENTS.TOKENIZE_PAYMENT_PREFIX,r.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"),f.request({endpoint:y,method:"post",data:data}).then((function(e){var n,o;return n=t._formatTokenizePayload(e),h?r.sendEvent(f,v+".succeeded"):(n.creditFinancingOffered&&(o="pay-later"===t._sessionType?w.ANALYTICS_EVENTS.PAY_LATER_ACCEPTED:w.ANALYTICS_EVENTS.CREDIT_ACCEPTED,r.sendEventPlus(t._clientPromise,o,{flow:t._flow,context_id:t._contextId})),r.sendEventPlus(t._clientPromise,v+".success",{flow:t._flow,context_id:t._contextId})),n})).catch((function(e){if(h)throw r.sendEvent(f,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(r.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(n).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,n={};
2return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&n.details.payerInfo&&(t.details=n.details.payerInfo),n.details&&n.details.creditFinancingOffered&&(t.creditFinancingOffered=n.details.creditFinancingOffered),n.details&&n.details.shippingOptionId&&(t.shippingOptionId=n.details.shippingOptionId),n.details&&n.details.cobrandedCardLabel&&(t.cobrandedCardLabel=n.details.cobrandedCardLabel),t},I.prototype._verifyConsistentCurrency=function(e){var t,n=!0,r=["shippingCurrency","handlingCurrency","taxTotalCurrency","insuranceCurrency","shippingDiscountCurrency","discountCurrency"];return!e.currency||!(e.hasOwnProperty("shippingOptions")&&Array.isArray(e.shippingOptions)&&!(n=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&&!(n=e.lineItems.every((function(t){return!t.unitTaxAmountCurrency||e.currency.toLowerCase()===t.unitTaxAmountCurrency.toLowerCase()}))))&&(e.hasOwnProperty("amountBreakdown")&&e.amountBreakdown&&(t=e.amountBreakdown,n=!r.some((function(n){return t.hasOwnProperty(n)&&t[n]&&e.currency.toLowerCase()!==t[n].toLowerCase()}))),n)},I.prototype.updatePayment=function(e){var t,n=this;return e&&e.paymentId&&e.amount&&e.currency?n._contextId!==e.paymentId?Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_PAYMENT_NOT_FOUND)):n._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},n._merchantAccountId&&(t.merchantAccountId=n._merchantAccountId),e.lineItems&&(t.lineItems=e.lineItems),e.shippingOptions&&(t.shippingOptions=e.shippingOptions),e.amountBreakdown&&(t.amountBreakdown=e.amountBreakdown),n._clientPromise.then((function(n){return r.sendEvent(n,"paypal-checkout-v6.update-payment.started"),n.request({endpoint:"paypal_hermes/patch_payment_resource",method:"post",data:t}).then((function(t){return r.sendEvent(n,"paypal-checkout-v6.update-payment.succeeded"),{success:!0,orderId:e.paymentId,updates:t.updates||{}}})).catch((function(e){return r.sendEvent(n,"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(n){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));r.sendEvent(n,w.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){r.sendEvent(n,w.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 r.sendEvent(n,w.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(n){return r.sendEvent(n,w.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 r.sendEvent(n,w.ANALYTICS_EVENTS.CREATE_MESSAGES_SUCCEEDED),o})).catch((function(e){throw r.sendEvent(n,w.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})}))):(r.sendEvent(n,w.ANALYTICS_EVENTS.CREATE_MESSAGES_FAILED),Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_SDK_NOT_INITIALIZED)))}))},I.prototype.startVaultInitiatedCheckout=function(e){var t,n=this;return this._vaultInitiatedCheckoutInProgress?this._clientPromise.then((function(e){return r.sendEvent(e,"paypal-checkout-v6.vic.error.already-in-progress"),Promise.reject(new c(m.PAYPAL_CHECKOUT_V6_VIC_IN_PROGRESS))})):(O.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([n._clientPromise,n._frameServicePromise]).then((function(t){var c=t[0],l=o({},e,{flow:"checkout",returnUrl:n._constructVaultCheckoutUrl("redirect-frame"),cancelUrl:n._constructVaultCheckoutUrl("cancel-frame")});r.sendEvent(c,"paypal-checkout-v6.vic.started");var d=new A;return n._frameService.open({},n._createFrameServiceCallback(d)),n._createPaymentResource(l).then((function(e){return n._frameService.redirect(e.paymentResource.redirectUrl),d}))})).then((function(e){return n._frameService.close(),n._vaultInitiatedCheckoutInProgress=!1,n._removeModalBackdrop(),n._clientPromise.then((function(t){return r.sendEvent(t,"paypal-checkout-v6.vic.succeeded"),e}))})).catch((function(e){if(n._vaultInitiatedCheckoutInProgress=!1,n._removeModalBackdrop(),n._frameService&&n._frameService.close(),"FRAME_SERVICE_FRAME_CLOSED"===e.code)return n._clientPromise.then((function(e){return r.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 n._clientPromise.then((function(t){return r.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){r.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(n,r){var o,c,l;n?e.reject(n):r&&(o=r.PayerID||r.payerId||r.payerid,c=r.orderId||r.orderid||r.OrderID,l={paymentToken:r.token,payerID:o,paymentID:r.paymentId,orderID:c},t._frameService.redirect(t._loadingFrameUrl),t.tokenizePayment(l).then((function(t){e.resolve(t)}
2)).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){r.sendEvent(e,w.ANALYTICS_EVENTS.TEARDOWN)}))},t.exports=T.wrapPrototype(I)},{"../lib/analytics":143,"../lib/assign":145,"../lib/braintree-error":148,"../lib/constants":149,"../lib/convert-methods-to-error":150,"../lib/convert-to-braintree-error":151,"../lib/create-assets-url":152,"../lib/create-authorization-data":153,"../lib/create-deferred-client":154,"../lib/frame-service/external":162,"../lib/methods":180,"../lib/use-min":186,"./constants":207,"./errors":208,"@braintree/extended-promise":34,"@braintree/wrap-promise":43}],211:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED:{type:r.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:r.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:r.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_PARAM_REQUIRED"},PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED:{type:r.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:r.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:r.types.CUSTOMER,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS:{type:r.types.MERCHANT,code:"PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS",message:"Vault initiated checkout already in progress."},PAYPAL_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."},PAYPAL_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"PAYPAL_MISSING_REQUIRED_OPTION",message:"Missing required option."},PAYPAL_BILLING_AGREEMENT_JWT_FAILED:{type:r.types.NETWORK,code:"PAYPAL_BILLING_AGREEMENT_JWT_FAILED",message:"Could not create a billing agreement token from the payment method JWT."}}},{"../lib/braintree-error":148}],212:[function(e,t,n){"use strict";var r=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 r.verify({name:t,client:e.client,authorization:e.authorization}).then((function(){return new c(e)._initialize(e)}))}function h(){return!0}t.exports={create:o(d),isSupported:h,VERSION:l}},{"../lib/basic-component-verification":146,"./paypal-checkout":213,"@braintree/wrap-promise":43}],213:[function(e,t,n){"use strict";var r=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"),h=e("@braintree/wrap-promise"),f=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"),T=e("../lib/methods"),A=e("../lib/use-min"),w=e("../lib/convert-methods-to-error"),S=e("../lib/querystring"),O="3.144.0",I=e("../lib/constants").INTEGRATION_TIMEOUT_MS,C=["amount","currency","vaultInitiatedCheckoutPaymentMethodToken"],P="https://www.{ENV}paypal.com/smart/buttons/preload";function N(e){this._merchantAccountId=e.merchantAccountId,this._autoSetDataUserIdToken=Boolean(e.autoSetDataUserIdToken)}d.suppressUnhandledPromiseMessage=!0,N.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 f(y.PAYPAL_SANDBOX_ACCOUNT_NOT_LINKED)):this._setupError=new f(y.PAYPAL_NOT_ENABLED)),this._setupError?Promise.reject(this._setupError):(r.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)},N.prototype._createBillingAgreementJwt=function(e){var t=this,n=this._configuration.paymentMethodIdJwt;return n?e.request({api:"graphQLApi",data:{query:v.CREATE_BILLING_AGREEMENT_JWT_MUTATION,variables:{input:{paymentMethodJwt:n}}}}).then((function(n){t._billingAgreementJwt=n.data.createBillingAgreementJwt.jwt,r.sendEvent(e,"paypal-checkout.create-billing-agreement-jwt.succeeded")})).catch((function(n){t._billingAgreementJwtError=new f({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:n}}),r.sendEvent(e,"paypal-checkout.create-billing-agreement-jwt.failed")})):Promise.resolve()},N.prototype._setupFrameService=function(e){var t=new d,n=e.getConfiguration(),o=setTimeout((function(){r.sendEvent(e,"paypal-checkout.frame-service.timed-out"),t.reject(new f(y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_SETUP_FAILED))}),I);return this._assetsUrl=n.gatewayConfiguration.paypal.assetsUrl+"/web/"+O,this._isDebug=n.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},N.prototype.createPayment=function(e){var t=this;return e&&v.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(r.sendEvent(this._clientPromise,"paypal-checkout.createPayment"),this._createPaymentResource(e).then((function(n){var r;return r="checkout"===e.flow?S.parse(n.paymentResource.redirectUrl).token:n.agreementSetup.tokenId,t._contextId=r,r}))):Promise.reject(new f(y.PAYPAL_FLOW_OPTION_REQUIRED))},N.prototype._createPaymentResource=function(e,t){var n=this,o="paypal_hermes/"+v.FLOW_ENDPOINTS[e.flow];return this._flow=e.flow,delete this.intentFromCreatePayment,t=t||{},!0===e.offerCredit&&r.sendEvent(this._clientPromise,"paypal-checkout.credit.offered"),this._clientPromise.then((function(e){return Promise.all([e,n._billingAgreementJwtPromise||Promise.resolve()])})).then((function(r){return r[0].request({endpoint:o,method:"post",data:n._formatPaymentResourceData(e,t)}).then((function(data){return n.intentFromCreatePayment=e.intent,data}))})).catch((function(e){return n._setupError?Promise.reject(n._setupError):422===(e.details&&e.details.httpStatus)?Promise.reject(new f({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}))}))},N.prototype.updatePayment=function(e){var t=this,n="paypal_hermes/patch_payment_resource";return!e||this._hasMissingOption(e,v.REQUIRED_OPTIONS)?(r.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment.missing-options",{flow:t._flow,context_id:t._contextId}),Promise.reject(new f(y.PAYPAL_MISSING_REQUIRED_OPTION))):this._verifyConsistentCurrency(e)?(r.sendEventPlus(this._clientPromise,"paypal-checkout.updatePayment",{flow:t._flow,context_id:t._contextId}),this._clientPromise.then((function(r){return r.request({endpoint:n,method:"post",data:t._formatUpdatePaymentData(e)})})).catch((function(e){return 422===(e.details&&e.details.httpStatus)?(r.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment.invalid",{flow:t._flow,context_id:t._contextId}),Promise.reject(new f({type:y.PAYPAL_INVALID_PAYMENT_OPTION.type,code:y.PAYPAL_INVALID_PAYMENT_OPTION.code,message:y.PAYPAL_INVALID_PAYMENT_OPTION.message,details:{originalError:e}}))):(r.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})))}))):(r.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment.inconsistent-currencies",{flow:t._flow,context_id:t._contextId}),Promise.reject(new f({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.")}})))},N.prototype.startVaultInitiatedCheckout=function(e){var t,n=this;return this._vaultInitiatedCheckoutInProgress?(r.sendEventPlus(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.error.already-in-progress",{flow:n._flow,context_id:n._contextId}),Promise.reject(new f(y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_IN_PROGRESS))
2):(C.forEach((function(param){e.hasOwnProperty(param)||(t=param)})),t?Promise.reject(new f({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"}),r.sendEventPlus(this._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.started",{flow:n._flow,context_id:n._contextId}),this._waitForVaultInitiatedCheckoutDependencies().then((function(){var t=new d,r=n._createPaymentResource(e,{returnUrl:n._constructVaultCheckoutUrl("redirect-frame"),cancelUrl:n._constructVaultCheckoutUrl("cancel-frame")}).then((function(e){var r=e.paymentResource.redirectUrl;return n._frameService.redirect(r),t}));return n._frameService.open({},n._createFrameServiceCallback(t)),r})).catch((function(e){return n._vaultInitiatedCheckoutInProgress=!1,n._removeModalBackdrop(),"FRAME_SERVICE_FRAME_CLOSED"===e.code?(r.sendEventPlus(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.canceled.by-customer",{flow:n._flow,context_id:n._contextId}),Promise.reject(new f(y.PAYPAL_START_VAULT_INITIATED_CHECKOUT_CANCELED))):(n._frameService&&n._frameService.close(),e.code&&e.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1?(r.sendEventPlus(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.failed.popup-not-opened",{flow:n._flow,context_id:n._contextId}),Promise.reject(new f({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 n._frameService.close(),n._vaultInitiatedCheckoutInProgress=!1,n._removeModalBackdrop(),r.sendEventPlus(n._clientPromise,"paypal-checkout.startVaultInitiatedCheckout.succeeded",{flow:n._flow,context_id:n._contextId}),Promise.resolve(e)}))))},N.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))},N.prototype._removeModalBackdrop=function(){this._modalBackdrop&&this._modalBackdrop.parentNode&&this._modalBackdrop.parentNode.removeChild(this._modalBackdrop)},N.prototype.closeVaultInitiatedCheckoutWindow=function(){return this._vaultInitiatedCheckoutInProgress&&r.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))},N.prototype.focusVaultInitiatedCheckoutWindow=function(){return this._waitForVaultInitiatedCheckoutDependencies().then(function(){this._frameService.focus()}.bind(this))},N.prototype._createFrameServiceCallback=function(e){var t=this;return function(n,r){n?e.reject(n):r&&(t._frameService.redirect(t._loadingFrameUrl),t.tokenizePayment({paymentToken:r.token,payerID:r.PayerID,paymentID:r.paymentId,orderID:r.orderId}).then((function(t){e.resolve(t)})).catch((function(t){e.reject(t)})))}},N.prototype._waitForVaultInitiatedCheckoutDependencies=function(){var e=this;return this._clientPromise.then((function(){return e._frameServicePromise}))},N.prototype._constructVaultCheckoutUrl=function(e){var t=this._frameService._serviceId;return this._assetsUrl+"/html/"+e+A(this._isDebug)+".html?channel="+t},N.prototype.tokenizePayment=function(e){var t,n=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,r.sendEventPlus(this._clientPromise,"paypal-checkout.tokenization.started",{flow:n._flow,context_id:n._contextId}),this._clientPromise.then((function(e){return e.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:n._formatTokenizeData(c,l)})}
2)).then((function(e){return t=n._formatTokenizePayload(e),r.sendEventPlus(n._clientPromise,"paypal-checkout.tokenization.success",{flow:n._flow,context_id:n._contextId}),t.creditFinancingOffered&&r.sendEventPlus(n._clientPromise,"paypal-checkout.credit.accepted",{flow:n._flow,context_id:n._contextId}),t})).catch((function(e){return n._setupError?Promise.reject(n._setupError):(r.sendEventPlus(n._clientPromise,"paypal-checkout.tokenization.failed",{flow:n._flow,context_id:n._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})))}))},N.prototype.getClientId=function(){return this._clientPromise.then((function(e){return e.getConfiguration().gatewayConfiguration.paypal.clientId}))},N.prototype.loadPayPalSDK=function(e){var t,n,r=new d,c=e&&e.dataAttributes||{},l=c["user-id-token"]||c["data-user-id-token"],h=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),h||(h=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"),n=v.ENVIRONMENT[e.env]||"https://www.paypal.com/sdk/js?",delete e.env,this._paypalScript.onload=function(){r.resolve()},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 r=t[0];e["client-id"]=r,this._billingAgreementJwt&&!l?this._paypalScript.setAttribute("data-user-id-token",this._billingAgreementJwt):this._autoSetDataUserIdToken&&h&&(this._paypalScript.setAttribute("data-user-id-token",h),this._attachPreloadPixel({id:r,userIdToken:h,amount:c.amount,currency:e.currency,merchantId:e["merchant-id"]})),this._paypalScript.src=S.queryify(n,e),document.head.insertBefore(this._paypalScript,document.head.firstElementChild)}.bind(this)),r.then(function(){return this}.bind(this))},N.prototype._attachPreloadPixel=function(e){var t,n=e.id,r=e.userIdToken,o="production"===this._authorizationInformation.environment?"":"sandbox.",c=P.replace("{ENV}",o),l={"client-id":n,"user-id-token":r};e.amount&&(l.amount=e.amount),e.currency&&(l.currency=e.currency),e.merchantId&&(l["merchant-id"]=e.merchantId),(t=new XMLHttpRequest).open("GET",S.queryify(c,l)),t.send()},N.prototype._formatPaymentResourceData=function(e,t){var n=this,r=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||r.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)),n._formatPaymentResourceCheckoutData(o,e),n._formatPaymentResourceVaultData(o,e),this._riskCorrelationId=e.riskCorrelationId,e.riskCorrelationId&&(o.correlationId=this._riskCorrelationId),o},N.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))},N.prototype._formatPaymentResourceCheckoutData=function(e,t){var n,r=t.intent;if("checkout"===t.flow){for(n in e.amount=t.amount,e.currencyIsoCode=t.currency,e.requestBillingAgreement=t.requestBillingAgreement,t.hasOwnProperty("userAction")&&(e.experienceProfile.userAction=t.userAction),r&&("capture"===r&&(r="sale"),e.intent=r),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(n)&&(e[n]=t.shippingAddressOverride[n]);t.contactPreference&&(e.contactPreference=t.contactPreference),t.hasOwnProperty("billingAgreementDetails")&&(e.billingAgreementDetails=t.billingAgreementDetails),!0===t.editBillingAgreement&&this._configuration.paymentMethodIdJwt&&(e.editBillingAgreementJwt=this._configuration.paymentMethodIdJwt)}},N.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()}))},N.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},N.prototype._formatPlanMetadata=function(e){var i,t,n,r,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(n=e.billingCycles[i],r={},t=0;t<c.length;t++)r[c[t]]=n[c[t]];l.billingCycles.push(r)}for(i=0;i<o.length;i++)l[o[i]]=e[o[i]];return l},N.prototype._formatUpdatePaymentData=function(e){var t=this,n={merchantAccountId:this._merchantAccountId,paymentId:e.paymentId||e.orderId,currencyIsoCode:e.currency};return e.hasOwnProperty("amount")&&(n.amount=e.amount),e.hasOwnProperty("lineItems")&&(n.lineItems=e.lineItems),e.hasOwnProperty("shippingOptions")&&(n.shippingOptions=e.shippingOptions),e.hasOwnProperty("amountBreakdown")&&(n.amountBreakdown=e.amountBreakdown),e.hasOwnProperty("shippingAddress")&&(r.sendEventPlus(t._clientPromise,"paypal-checkout.updatePayment.shippingAddress.provided.by-the-merchant",{flow:t._flow,context_id:t._contextId}),n.line1=e.shippingAddress.line1,e.shippingAddress.hasOwnProperty("line2")&&(n.line2=e.shippingAddress.line2),n.city=e.shippingAddress.city,n.state=e.shippingAddress.state,n.postalCode=e.shippingAddress.postalCode,n.countryCode=e.shippingAddress.countryCode,e.shippingAddress.hasOwnProperty("phone")&&(n.phone=e.shippingAddress.phone),e.shippingAddress.hasOwnProperty("recipientName")&&(n.recipientName=e.shippingAddress.recipientName)),n},N.prototype._formatTokenizeData=function(e,t){var n=this._configuration,r=n.gatewayConfiguration,o="TOKENIZATION_KEY"===n.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=r.paypal.unvettedMerchant,e.intent&&(data.paypalAccount.intent=e.intent)),this._merchantAccountId&&(data.merchantAccountId=this._merchantAccountId),data},N.prototype._formatTokenizePayload=function(e){var t,n={};
2return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&n.details.payerInfo&&(t.details=n.details.payerInfo),n.details&&n.details.creditFinancingOffered&&(t.creditFinancingOffered=n.details.creditFinancingOffered),n.details&&n.details.shippingOptionId&&(t.shippingOptionId=n.details.shippingOptionId),n.details&&n.details.cobrandedCardLabel&&(t.cobrandedCardLabel=n.details.cobrandedCardLabel),t},N.prototype.teardown=function(){var e=this;return w(this,T(N.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=h.wrapPrototype(N)},{"../lib/analytics":143,"../lib/assign":145,"../lib/braintree-error":148,"../lib/constants":149,"../lib/convert-methods-to-error":150,"../lib/convert-to-braintree-error":151,"../lib/create-assets-url":152,"../lib/create-authorization-data":153,"../lib/create-deferred-client":154,"../lib/frame-service/external":162,"../lib/methods":180,"../lib/querystring":182,"../lib/use-min":186,"../paypal/shared/constants":216,"./errors":211,"@braintree/extended-promise":34,"@braintree/wrap-promise":43}],214:[function(e,t,n){"use strict";var r=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"),h="3.144.0",f=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"),T=e("../../lib/convert-methods-to-error"),A=e("../../lib/querystring"),w=e("@braintree/wrap-promise");function S(e){this._client=e.client,this._assetsUrl=e.client.getConfiguration().gatewayConfiguration.paypal.assetsUrl+"/web/"+h,this._isDebug=e.client.getConfiguration().isDebug,this._loadingFrameUrl=this._assetsUrl+"/html/paypal-landing-frame"+l(this._isDebug)+".html",this._authorizationInProgress=!1}S.prototype._initialize=function(){var e=this,t=this._client,n=setTimeout((function(){y.sendEvent(t,"paypal.load.timed-out")}),m);return new Promise((function(o){r.create({name:f.LANDING_FRAME_NAME,dispatchFrameUrl:e._assetsUrl+"/html/dispatch-frame"+l(e._isDebug)+".html",openFrameUrl:e._loadingFrameUrl},(function(r){e._frameService=r,clearTimeout(n),y.sendEvent(t,"paypal.load.succeeded"),o(e)}))}))},S.prototype.tokenize=function(e,t){var n,r,c=this,l=this._client;return t&&(t=d(_(t))),e&&f.FLOW_ENDPOINTS.hasOwnProperty(e.flow)?(n=new Promise((function(t,n){c._authorizationInProgress?(y.sendEvent(l,"paypal.tokenization.error.already-opened"),n(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(n),c._frameService.open({},c._createFrameServiceCallback(e,t,n)))})),t?(n.then((function(e){t(null,e)})).catch(t),this._frameService.createHandler({beforeClose:function(){y.sendEvent(l,"paypal.tokenization.closed.by-merchant")}})):n):(r=new o(E.PAYPAL_FLOW_OPTION_REQUIRED),t?(t(r),this._frameService.createNoopHandler()):Promise.reject(r))},S.prototype._createFrameServiceCallback=function(e,t,n){var r=this,c=this._client;return window.popupBridge?function(l,d){var h=d&&d.path&&"/cancel"===d.path.substring(0,7);r._authorizationInProgress=!1,l||h?(y.sendEvent(c,"popup-bridge:paypal:canceled"),n(new o(E.PAYPAL_POPUP_CLOSED))):d&&r._tokenizePayPal(e,d.queryItems).then(t).catch(n)}:function(l,d){r._authorizationInProgress=!1,l?"FRAME_SERVICE_FRAME_CLOSED"===l.code?(y.sendEvent(c,"paypal.tokenization.closed.by-user"),n(new o(E.PAYPAL_POPUP_CLOSED))):l.code&&l.code.indexOf("FRAME_SERVICE_FRAME_OPEN_FAILED")>-1&&n(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}}
2)):d&&r._tokenizePayPal(e,d).then(t).catch(n)}},S.prototype._tokenizePayPal=function(e,t){var n=this,r=this._client;return window.popupBridge||this._frameService.redirect(this._loadingFrameUrl),r.request({endpoint:"payment_methods/paypal_accounts",method:"post",data:this._formatTokenizeData(e,t)}).then((function(e){var t=n._formatTokenizePayload(e);return window.popupBridge?y.sendEvent(r,"popup-bridge:paypal:succeeded"):y.sendEvent(r,"paypal.tokenization.success"),t.creditFinancingOffered&&y.sendEvent(r,"paypal.credit.accepted"),n._frameService.close(),t})).catch((function(e){return window.popupBridge?y.sendEvent(r,"popup-bridge:paypal:failed"):y.sendEvent(r,"paypal.tokenization.failed"),n._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}))}))},S.prototype._formatTokenizePayload=function(e){var t,n={};return e.paypalAccounts&&(n=e.paypalAccounts[0]),t={nonce:n.nonce,details:{},type:n.type},n.details&&n.details.payerInfo&&(t.details=n.details.payerInfo),n.details&&n.details.creditFinancingOffered&&(t.creditFinancingOffered=n.details.creditFinancingOffered),t},S.prototype._formatTokenizeData=function(e,t){var n=this._client.getConfiguration(),r=n.gatewayConfiguration,o="TOKENIZATION_KEY"===n.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=r.paypal.unvettedMerchant,e.hasOwnProperty("intent")&&(data.paypalAccount.intent=e.intent)),data},S.prototype._navigateFrameToAuth=function(e){var t=this,n=this._client,r="paypal_hermes/"+f.FLOW_ENDPOINTS[e.flow];return n.request({endpoint:r,method:"post",data:this._formatPaymentResourceData(e)}).then((function(r){var o;o="checkout"===e.flow?r.paymentResource.redirectUrl:r.agreementSetup.approvalUrl,"commit"===e.useraction&&(o=A.queryify(o,{useraction:"commit"})),window.popupBridge&&y.sendEvent(n,"popup-bridge:paypal:started"),t._frameService.redirect(o)})).catch((function(e){var n=e.details&&e.details.httpStatus;return t._frameService.close(),t._authorizationInProgress=!1,422===n?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}))}))},S.prototype._formatPaymentResourceData=function(e){var t,n=this._client.getConfiguration().gatewayConfiguration,r=this._frameService._serviceId,o={returnUrl:n.paypal.assetsUrl+"/web/"+h+"/html/redirect-frame"+l(this._isDebug)+".html?channel="+r,cancelUrl:n.paypal.assetsUrl+"/web/"+h+"/html/cancel-frame"+l(this._isDebug)+".html?channel="+r,offerPaypalCredit:!0===e.offerCredit,offerPayLater:!0===e.offerPayLater,experienceProfile:{brandName:e.displayName||n.paypal.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},S.prototype.closeWindow=function(){this._authorizationInProgress&&y.sendEvent(this._client,"paypal.tokenize.closed.by-merchant"),this._frameService.close()},S.prototype.focusWindow=function(){this._frameService.focus()},S.prototype.teardown=w((function(){var e=this;return e._frameService.teardown(),T(e,v(S.prototype)),y.sendEvent(e._client,"paypal.teardown-completed"),Promise.resolve()})),t.exports=S},{"../../lib/analytics":143,"../../lib/braintree-error":148,"../../lib/constants":149,"../../lib/convert-methods-to-error":150,"../../lib/convert-to-braintree-error":151,"../../lib/deferred":155,"../../lib/frame-service/external":162,"../../lib/methods":180,"../../lib/once":181,"../../lib/querystring":182,"../../lib/use-min":186,"../shared/constants":216,"../shared/errors":217,"@braintree/wrap-promise":43}],215:[function(e,t,n){"use strict";var r=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"),h=e("./shared/errors"),f=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 n=t.getConfiguration();return e.client=t,!0!==n.gatewayConfiguration.paypalEnabled?Promise.reject(new d(h.PAYPAL_NOT_ENABLED)):(r.sendEvent(e.client,"paypal.initialized"),new f(e)._initialize())}))}function _(){return!0}t.exports={create:y(v),isSupported:_,VERSION:m}},{"../lib/analytics":143,"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./external/paypal":214,"./shared/errors":217,"@braintree/wrap-promise":43}],216:[function(e,t,n){"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 } }"}},{}],217:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={PAYPAL_NOT_ENABLED:{type:r.types.MERCHANT,code:"PAYPAL_NOT_ENABLED",message:"PayPal is not enabled for this merchant."},PAYPAL_TOKENIZATION_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"PAYPAL_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},PAYPAL_ACCOUNT_TOKENIZATION_FAILED:{type:r.types.NETWORK,code:"PAYPAL_ACCOUNT_TOKENIZATION_FAILED",message:"Could not tokenize user's PayPal account."},PAYPAL_FLOW_FAILED:{type:r.types.NETWORK,code:"PAYPAL_FLOW_FAILED",message:"Could not initialize PayPal flow."},PAYPAL_FLOW_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"PAYPAL_FLOW_OPTION_REQUIRED",message:"PayPal flow property is invalid or missing."},PAYPAL_POPUP_OPEN_FAILED:{type:r.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:r.types.CUSTOMER,code:"PAYPAL_POPUP_CLOSED",message:"Customer closed PayPal popup before authorizing."},PAYPAL_INVALID_PAYMENT_OPTION:{type:r.types.MERCHANT,code:"PAYPAL_INVALID_PAYMENT_OPTION",message:"PayPal payment options are invalid."}}},{"../../lib/braintree-error":148}],218:[function(e,t,n){"use strict";var r=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:r(d),VERSION:l}},{"../lib/basic-component-verification":146,"./preferred-payment-methods":219,"@braintree/wrap-promise":43}],219:[function(e,t,n){"use strict";var r=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 n=t.data.preferredPaymentMethods.paypalPreferred,r=t.data.preferredPaymentMethods.venmoPreferred;return o.sendEvent(e,"preferred-payment-methods.paypal.api-detected."+n),o.sendEvent(e,"preferred-payment-methods.venmo.api-detected."+r),{paypalPreferred:n,venmoPreferred:r}})).catch((function(){return t._setupError?Promise.reject(t._setupError):(o.sendEvent(e,"preferred-payment-methods.api-error"),{paypalPreferred:!1,venmoPreferred:!1})}))},t.exports=r.wrapPrototype(d)},{"../lib/analytics":143,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"@braintree/wrap-promise":43}],220:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error"),o=e("../shared/errors"),c=e("../../lib/frame-service/external"),l=e("../../lib/analytics"),d=e("../../lib/use-min"),h=e("../shared/constants").BILLING_ADDRESS_OPTIONS,f=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&&h.forEach((function(option){var e=f(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 r(o.SEPA_CREATE_MANDATE_FAILED);return{approvalUrl:t.approvalUrl,last4:t.last4,bankReferenceToken:t.bankReferenceToken}})).catch((function(){throw new r(o.SEPA_CREATE_MANDATE_FAILED)}))}function E(e,t){var n="sepadirectdebit",h=t.assetsUrl+"/html",f=t.debug||!1;return new Promise((function(m,_){var E=S();c.create({name:n,dispatchFrameUrl:h+"/dispatch-frame"+d(f)+".html",openFrameUrl:h+"/sepa-landing-frame"+d(f)+".html",top:E.top,left
2:E.left,height:v,width:y},(function(n){l.sendEvent(e,"sepa.popup.initialized"),n.open({},(function(e,t){return A(t)?(n.close(),m()):w(t,e)?(n.close(),_(new r(o.SEPA_CUSTOMER_CANCELED))):(n.close(),_(new r(o.SEPA_TOKENIZATION_FAILED)))})),n.redirect(t.approvalUrl)}))}))}function T(e){window.location.href=e}function A(e){return e&&e.success}function w(e,t){return e&&e.cancel||t&&"FRAME_SERVICE_FRAME_CLOSED"===t.code}function S(){return{top:Math.round((window.outerHeight-v)/2)+window.screenTop,left:Math.round((window.outerWidth-y)/2)+window.screenLeft}}function O(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 r(o.SEPA_TRANSACTION_FAILED);return{nonce:e.nonce,ibanLastFour:t.last4,customerId:t.customerId,mandateType:t.mandateType}})).catch((function(){throw new r(o.SEPA_TRANSACTION_FAILED)}))}function I(e,t){return e.request({api:"clientApi",method:"get",endpoint:"sepa_debit/"+t.cart_id}).then((function(n){var r=n.sepaDebitMandateDetail;return l.sendEvent(e,"sepa.redirect.mandate.approved"),m(t,{last4:r.last4,customerId:r.merchantOrPartnerCustomerId,mandateType:r.mandateType,bankReferenceToken:r.bankReferenceToken}),O(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 r(o.SEPA_TRANSACTION_FAILED)}))}t.exports={createMandate:_,openPopup:E,handleApproval:O,POPUP_WIDTH:y,POPUP_HEIGHT:v,redirectPage:T,handleApprovalForFullPageRedirect:I}},{"../../lib/analytics":143,"../../lib/assign":145,"../../lib/braintree-error":148,"../../lib/frame-service/external":162,"../../lib/snake-case-to-camel-case":184,"../../lib/use-min":186,"../shared/constants":223,"../shared/errors":224}],221:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),o=e("../../lib/braintree-error"),c=e("../shared/errors"),l=e("../shared/constants"),d=e("./mandate"),h=e("../../lib/has-missing-option"),f=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),f.sendEvent(this._client,"sepa.component.initialized")}v.prototype.tokenize=function(e){var t,n=this,r=y({cancelUrl:n._cancelUrl,returnUrl:n._returnUrl},e);return!e||h(e,l.REQUIRED_OPTIONS)?(f.sendEvent(n._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(n._client,r).then((function(t){return f.sendEvent(n._client,"sepa.create-mandate.success"),n._isRedirectFlow?d.redirectPage(t.approvalUrl):(e.last4=t.last4,e.bankReferenceToken=t.bankReferenceToken,d.openPopup(n._client,{approvalUrl:t.approvalUrl,assetsUrl:n._assetsUrl}))})),n._isRedirectFlow?Promise.resolve():t.then((function(){return f.sendEvent(n._client,"sepa.mandate.approved"),d.handleApproval(n._client,{bankReferenceToken:e.bankReferenceToken,last4:e.last4,customerId:e.customerId,mandateType:e.mandateType,merchantAccountId:e.merchantAccountId})})).then((function(e){return f.sendEvent(n._client,"sepa.tokenization.success"),Promise.resolve(e)})).catch((function(e){return f.sendEvent(n._client,"sepa."+e.details+".failed"),Promise.reject(e)}))):(f.sendEvent(n._client,"sepa.input-validation.invalid-mandate"),Promise.reject(new o(c.SEPA_INVALID_MANDATE_TYPE)))},t.exports=r.wrapPrototype(v)},{"../../lib/analytics":143,"../../lib/assign":145,"../../lib/braintree-error":148,"../../lib/has-missing-option":173,"../shared/constants":223,"../shared/errors":224,"./mandate":220,"@braintree/wrap-promise":43}],222:[function(e,t,n){"use strict";var r=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"),h=e("@braintree/wrap-promise"),f="3.144.0",m=e("../lib/querystring").parse,y=e("../lib/assign").assign,v=e("./external/mandate");function _(e){var t="SEPA",n=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,r.sendEvent(t,"sepa.client.initialized"),new o(e)})).then((function(t){return n.success&&"true"===n.success&&n.cart_id?(e=y(e,n),v.handleApprovalForFullPageRedirect(e.client,e).then((function(e){return t.tokenizePayload=e,t})).catch((function(e){console.error("Problem while finishing tokenizing: ",e)}))):(n.cancel&&r.sendEvent(e.client,"sepa.redirect.customer-canceled.failed"),t)}))}t.exports={create:h(_),VERSION:f}},{"../lib/analytics":143,"../lib/assign":145,"../lib/basic-component-verification":146,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"../lib/querystring":182,"./external/mandate":220,"./external/sepa":221,"@braintree/wrap-promise":43}],223:[function(e,t,n){"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"]}},{}],224:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={SEPA_CREATE_MANDATE_FAILED:{type:r.types.MERCHANT,code:"SEPA_CREATE_MANDATE_FAILED",message:"SEPA create mandate failed.",details:"create-mandate"},SEPA_CUSTOMER_CANCELED:{type:r.types.CUSTOMER,code:"SEPA_CUSTOMER_CANCELED",message:"User canceled SEPA authorization",details:"customer-canceled"},SEPA_INVALID_MANDATE_TYPE:{type:r.types.MERCHANT,code:"SEPA_INVALID_MANDATE_TYPE",message:"SEPA mandate type is invalid"},SEPA_TOKENIZATION_FAILED:{type:r.types.UNKNOWN,code:"SEPA_TOKENIZATION_FAILED",message:"SEPA encountered a problem",details:"open-popup"},SEPA_TOKENIZE_MISSING_REQUIRED_OPTION:{type:r.types.MERCHANT,code:"SEPA_TOKENIZE_MISSING_REQUIRED_OPTION",message:"Missing required option for tokenize."},SEPA_TRANSACTION_FAILED:{type:r.types.UNKNOWN,code:"SEPA_TRANSACTION_FAILED",message:"SEPA transaction failed",details:"handle-approval"}}},{"../../lib/braintree-error":148}],225:[function(e,t,n){"use strict";var r=e("../../../lib/assign").assign,o=e("../../../lib/analytics"),c=e("../../../lib/braintree-error"),l=e("../../../lib/is-verified-domain"),d=e("@braintree/extended-promise"),h=e("@braintree/event-emitter"),f=e("../../shared/errors"),m=e("@braintree/iframer"),y=e("framebus"),v=e("../../shared/constants"),_=e("@braintree/uuid"),E=e("../../shared/events"),T=e("../../../lib/use-min"),A=e("../../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT,w="3.144.0",S=400,O=400;function I(e){h.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/"+w}d.suppressUnhandledPromiseMessage=!0,h.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(f.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},I.prototype.verifyCard=function(e,t){var n,r,c=this;return t=t||{},(r=this._checkForVerifyCardError(e,t))?Promise.reject(r):(this._verifyCardInProgress=!0,n=this._formatVerifyCardOptions(e),this._formatLookupData(n).then((function(data){return o.sendEvent(c._createPromise,"three-d-secure.verification-flow.started"),c._performLookup(n.nonce,data)})).then((function(e){return o.sendEvent(c._createPromise,"three-d-secure.verification-flow.3ds-version."+e.lookup.threeDSecureVersion),c._onLookupComplete(e,n)})).then((function(e){return c.initializeChallengeWithLookupResponse(e,n)})).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(f.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},I.prototype._presentChallenge=function(){throw new c(f.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},I.prototype.prepareLookup=function(){throw new c(f.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,n="payment_methods/"+e+"/three_d_secure/lookup";return this._waitForClient().then((function(){return t._client.request({endpoint:n,method:"post",data:data}).catch((function(e){var n,r=e&&e.details&&e.details.httpStatus,l="three-d-secure.verification-flow.lookup-failed";return 404===r?(n=f.THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR,l+=".404"):422===r?(n=f.THREEDS_LOOKUP_VALIDATION_ERROR,l+=".422"):n=f.THREEDS_LOOKUP_ERROR,o.sendEvent(t._createPromise,l),Promise.reject(new c({type:n.type,code:n.code,message:n.message,details:{originalError:e}}))}
2))}))},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 n;return!0===this._verifyCardInProgress?new c(f.THREEDS_AUTHENTICATION_IN_PROGRESS):(e.nonce?this._existsAndIsNumeric(e.amount)||(n="an amount"):n="a nonce",n||(n=this._checkForFrameworkSpecificVerifyCardErrors(e,t)),n?new c({type:f.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:f.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard options must include "+n+"."}):null)},I.prototype.initializeChallengeWithLookupResponse=function(e,t){var n=this;return t=t||{},this._lookupPaymentMethod=e.paymentMethod,n._verifyCardPromisePlus=n._verifyCardPromisePlus||new d,n._handleLookupResponse(e,t),n._verifyCardPromisePlus.then((function(e){return o.sendEvent(n._createPromise,"three-d-secure.verification-flow.liability-shifted."+String(e.liabilityShifted)),o.sendEvent(n._createPromise,"three-d-secure.verification-flow.liability-shift-possible."+String(e.liabilityShiftPossible)),e}))},I.prototype._handleLookupResponse=function(e,t){var details,n=Boolean(e.lookup&&e.lookup.acsUrl);o.sendEvent(this._createPromise,"three-d-secure.verification-flow.challenge-presented."+String(n)),n?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 r({},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=r({},this._lookupPaymentMethod,{liabilityShiftPossible:t&&t.liabilityShiftPossible,liabilityShifted:t&&t.liabilityShifted,verificationDetails:t&&t.verificationDetails}),Promise.resolve(e)):Promise.reject(new c(f.THREEDS_NO_VERIFICATION_PAYLOAD))},I.prototype._setupV1Bus=function(e){var t=this._client.getConfiguration(),n=window.location.href.split("#")[0],r=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:r.acsUrl,pareq:r.pareq,termUrl:r.termUrl+"&three_d_secure_version="+w+"&authentication_complete_base_url="+encodeURIComponent(d),md:r.md,parentUrl:n})})),c.on(E.AUTHENTICATION_COMPLETE,e.handleAuthResponse),c},I.prototype._setupV1Iframe=function(e){var t=this._assetsUrl+"/html/three-d-secure-bank-frame"+T(this._isDebug)+".html?showLoader="+e.showLoader;return m({src:t,height:S,width:O,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":143,"../../../lib/assign":145,"../../../lib/braintree-error":148,"../../../lib/constants":149,"../../../lib/is-verified-domain":178,"../../../lib/use-min":186,"../../shared/constants":233,"../../shared/errors":234,"../../shared/events":235,"@braintree/event-emitter":33,"@braintree/extended-promise":34,"@braintree/iframer":35,"@braintree/uuid":39,framebus:54}],226:[function(e,t,n){"use strict";var r=e("./songbird");function o(e){r.call(this,e)}o.prototype=Object.create(r.prototype,{constructor:r}),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=r.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="bootstrap3",t}
2,t.exports=o},{"./songbird":230}],227:[function(e,t,n){"use strict";var r=e("./songbird");function o(e){r.call(this,e)}o.prototype=Object.create(r.prototype,{constructor:r}),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":230}],228:[function(e,t,n){"use strict";var r=e("./cardinal-modal"),o=e("./bootstrap3-modal"),c=e("./inline-iframe");t.exports={"cardinal-modal":r,"bootstrap3-modal":o,"inline-iframe":c}},{"./bootstrap3-modal":226,"./cardinal-modal":227,"./inline-iframe":229}],229:[function(e,t,n){"use strict";var r=e("./songbird"),o=e("../../../lib/braintree-error"),c=e("../../shared/errors"),l=e("../../../lib/enumerate");function d(e){r.call(this,e)}d.prototype=Object.create(r.prototype,{constructor:r}),d.events=l(["AUTHENTICATION_IFRAME_AVAILABLE"],"inline-iframe-framework:"),d.prototype.setUpEventListeners=function(e){r.prototype.setUpEventListeners.call(this,e),this.on(d.events.AUTHENTICATION_IFRAME_AVAILABLE,(function(t,n){e("authentication-iframe-available",t,n)}))},d.prototype._createCardinalConfigurationOptions=function(e){var t=r.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,n){var r,l;e&&details?("CCA"!==details.paymentType||"suppress"!==details.data.mode&&"static"!==details.data.mode)&&(l=!0):l=!0,l?n(new o(c.THREEDS_INLINE_IFRAME_DETAILS_INCORRECT)):((r=document.createElement("div")).innerHTML=e,"suppress"===details.data.mode?(r.style.display="none",document.body.appendChild(r),t()):"static"===details.data.mode&&this._emit(d.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:r},(function(){t()})))},t.exports=d},{"../../../lib/braintree-error":148,"../../../lib/enumerate":157,"../../shared/errors":234,"./songbird":230}],230:[function(e,t,n){"use strict";var r=e("./base"),o=e("../../../lib/assign").assign,c=e("../../../lib/deferred"),l=e("../../../lib/braintree-error"),d=e("../../../lib/convert-to-braintree-error"),h=e("../../../lib/analytics"),f=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,T="3.144.0",A="01",w=["ui.close","ui.render","ui.renderHidden","ui.loading.close","ui.loading.render"],S=["low_value","transaction_risk_analysis"];function O(e){r.call(this,e),this._songbirdInitFailed=!1,this._clientMetadata={requestedThreeDSecureVersion:"2",sdkVersion:E+"/"+T},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,O.prototype=Object.create(r.prototype,{constructor:O}),O.events=y(["LOOKUP_COMPLETE","CUSTOMER_CANCELED","UI.CLOSE","UI.RENDER","UI.RENDERHIDDEN","UI.LOADING.CLOSE","UI.LOADING.RENDER"],"songbird-framework:"),O.prototype.setUpEventListeners=function(e){this.on(O.events.LOOKUP_COMPLETE,(function(data,t){e("lookup-complete",data,t)})),this.on(O.events.CUSTOMER_CANCELED,(function(){e("customer-canceled")})),this.on(O.events["UI.CLOSE"],(function(){e("authentication-modal-close")}
2)),this.on(O.events["UI.RENDER"],(function(){e("authentication-modal-render")})),this.on(O.events["UI.RENDERHIDDEN"],(function(){e("authentication-modal-render-hidden")})),this.on(O.events["UI.LOADING.CLOSE"],(function(){e("authentication-modal-loader-close")})),this.on(O.events["UI.LOADING.RENDER"],(function(){e("authentication-modal-loader-render")}))},O.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/"+T,data}))},O.prototype.initializeChallengeWithLookupResponse=function(e,t){return this.setupSongbird().then(function(){return r.prototype.initializeChallengeWithLookupResponse.call(this,e,t)}.bind(this))},O.prototype.handleSongbirdError=function(e){this._songbirdInitFailed=!0,this._removeSongbirdListeners(),h.sendEvent(this._createPromise,"three-d-secure.cardinal-sdk.songbird-error."+e),this._songbirdPromise&&this._songbirdPromise.resolve()},O.prototype._triggerCardinalBinProcess=function(e){var t=this,n=Date.now();return window.Cardinal.trigger("bin.process",e).then((function(e){t._clientMetadata.issuerDeviceDataCollectionTimeElapsed=Date.now()-n,t._clientMetadata.issuerDeviceDataCollectionResult=e&&e.Status}))},O.prototype.transformBillingAddress=function(e,t){return t&&(I(t,e,"billing"),e.billingPhoneNumber=t.phoneNumber,e.billingGivenName=t.givenName,e.billingSurname=t.surname),e},O.prototype.transformShippingAddress=function(e){var t=e.shippingAddress;return t&&(I(t,e,"shipping"),delete e.shippingAddress),e},O.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},O.prototype._createV1IframeModal=function(iframe){var e=this._createV1IframeModalElement(iframe),t=e.querySelector("[data-braintree-v1-fallback-close-button]"),n=e.querySelector("[data-braintree-v1-fallback-backdrop]"),r=this;function o(){e.parentNode.removeChild(e),r.cancelVerifyCard(m.THREEDS_CARDINAL_SDK_CANCELED),document.removeEventListener("keyup",r._onV1Keyup),r._onV1Keyup=null}return this._onV1Keyup=function(t){"Escape"===t.key&&e.parentNode&&o()},t&&t.addEventListener("click",o),n&&n.addEventListener("click",o),document.addEventListener("keyup",this._onV1Keyup),e},O.prototype._addV1IframeToPage=function(){document.body.appendChild(this._v1Modal)},O.prototype.setupSongbird=function(e){var t=this,n=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:n}):(t._v2SetupFailureReason="cardinal-global-unavailable",Promise.reject(new l(m.THREEDS_CARDINAL_SDK_SETUP_FAILED)))})).catch((function(e){var n=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(n),window.clearTimeout(t._songbirdSetupTimeoutReference),h.sendEvent(t._client,"three-d-secure.cardinal-sdk.init.setup-failed"),t.handleSongbirdError("cardinal-sdk-setup-failed."+t._v2SetupFailureReason)}))),this._songbirdPromise},O.prototype._configureCardinalSdk=function(e){var t=this;return this._waitForClient().then((function(){return t._client.getConfiguration().gatewayConfiguration.threeDSecure})).then((function(n){var r=n.cardinalAuthenticationJWT,o=e.setupOptions,c=e.setupStartTime,l=t._createCardinalConfigurationOptions(o);w.forEach((function(e){t.setCardinalListener(e,(function(){t._emit(O.events[e.toUpperCase()])}))})),t.setCardinalListener("payments.setupComplete",t._createPaymentsSetupCompleteCallback()),t._setupFrameworkSpecificListeners(),window.Cardinal.configure(l),window.Cardinal.setup("init",{jwt:r}),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)}))},O.prototype.setCardinalListener=function(e,t){this._cardinalEvents.push(e),window.Cardinal.on(e,t)},O.prototype._setupFrameworkSpecificListeners=function(){},O.prototype._createCardinalConfigurationOptions=function(e){var t=e.cardinalSDKConfig||{},n=t.payment||{};return!t.logging&&e.loggingEnabled&&(t.logging={level:"verbose"}),t.payment={},n.hasOwnProperty("displayLoading")&&(t.payment.displayLoading=n.displayLoading),n.hasOwnProperty("displayExitButton")&&(t.payment.displayExitButton=n.displayExitButton),t},O.prototype._loadCardinalScript=function(e){var t,n=this,r={};return this._waitForClient().then((function(){return r.src=n._client.getConfiguration().gatewayConfiguration.threeDSecure.cardinalSongbirdUrl,(t=n._client.getConfiguration().gatewayConfiguration.threeDSecure.cardinalSongbirdIdentityHash)&&(r.crossorigin="anonymous",r.integrity=t),n._songbirdSetupTimeoutReference=window.setTimeout((function(){h.sendEvent(n._client,"three-d-secure.cardinal-sdk.init.setup-timeout"),n.handleSongbirdError("cardinal-sdk-setup-timeout")}),e.timeout||_),f.loadScript(r)})).catch((function(e){return n._v2SetupFailureReason="songbird-js-failed-to-load",Promise.reject(d(e,m.THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED))}))},O.prototype._createPaymentsSetupCompleteCallback=function(){var e=this;return function(data){e._getDfReferenceIdPromisePlus.resolve(data.sessionId),window.clearTimeout(e._songbirdSetupTimeoutReference),h.sendEvent(e._createPromise,"three-d-secure.cardinal-sdk.init.setup-completed"),e._songbirdPromise.resolve()}},O.prototype.getDfReferenceId=function(){return this._getDfReferenceIdPromisePlus},O.prototype._performJWTValidation=function(e,t){var n=this,r=this._lookupPaymentMethod.nonce,o="payment_methods/"+r+"/three_d_secure/authenticate_from_jwt",c=e&&e.Payment&&e.Payment.ExtendedData&&e.Payment.ExtendedData.ChallengeCancel;return c&&(h.sendEvent(this._createPromise,"three-d-secure.verification-flow.cardinal-sdk.cancel-code."+c),c===A&&this._emit(O.events.CUSTOMER_CANCELED)),h.sendEvent(this._createPromise,"three-d-secure.verification-flow.upgrade-payment-method.started"),this._waitForClient().then((function(){return n._client.request({method:"post",endpoint:o,data:{jwt:t,paymentMethodNonce:r}})})).then((function(t){var r=t.paymentMethod||n._lookupPaymentMethod,o=n._formatAuthResponse(r,t.threeDSecureInfo);return o.rawCardinalSDKVerificationData=e,h.sendEvent(n._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 h.sendEvent(n._client,"three-d-secure.verification-flow.upgrade-payment-method.errored"),Promise.reject(t)}))},O.prototype._createPaymentsValidatedCallback=function(){var e=this;return function(data,t){var n;if(h.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)}
2)).catch((function(t){e._verifyCardPromisePlus.reject(t)}));break;case"ERROR":switch(h.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk-error."+data.ErrorNumber),data.ErrorNumber){case 10001:case 10002:n=new l(m.THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT);break;case 10003:case 10007:case 10009:n=new l(m.THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT);break;case 10005:case 10006:n=new l(m.THREEDS_CARDINAL_SDK_BAD_CONFIG);break;case 10008:case 10010:n=new l(m.THREEDS_CARDINAL_SDK_BAD_JWT);break;case 10011:h.sendEvent(e._createPromise,"three-d-secure.verification-flow.canceled"),n=new l(m.THREEDS_CARDINAL_SDK_CANCELED);break;default:n=new l(m.THREEDS_CARDINAL_SDK_ERROR)}n.details={originalError:{code:data.ErrorNumber,description:data.ErrorDescription}},e._verifyCardPromisePlus.reject(n)}else e.handleSongbirdError("cardinal-sdk-setup-error.number-"+data.ErrorNumber)}},O.prototype._checkForVerifyCardError=function(e,t){return e.bin?r.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."})},O.prototype._checkForFrameworkSpecificVerifyCardErrors=function(e,t){var n;return"function"==typeof e.onLookupComplete||t.ignoreOnLookupCompleteRequirement||(n="an onLookupComplete function"),n},O.prototype._formatVerifyCardOptions=function(e){var t=r.prototype._formatVerifyCardOptions.call(this,e),n=t.additionalInformation||{};return n=this.transformBillingAddress(n,e.billingAddress),n=this.transformShippingAddress(n),e.onLookupComplete&&(t.onLookupComplete=c(e.onLookupComplete)),e.email&&(n.email=e.email),e.mobilePhoneNumber&&(n.mobilePhoneNumber=e.mobilePhoneNumber),t.additionalInformation=n,t},O.prototype._onLookupComplete=function(e,t){var n=this;return r.prototype._onLookupComplete.call(this,e).then((function(e){return new Promise((function(r,o){function c(){r(e)}e.requiresUserAuthentication=Boolean(e.lookup&&e.lookup.acsUrl),n._verifyCardPromisePlus.catch(o),t.onLookupComplete?t.onLookupComplete(e,c):n._emit(O.events.LOOKUP_COMPLETE,e,c)}))}))},O.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}})},O.prototype._formatLookupData=function(e){var t=this;return r.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(!S.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: `"+S.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)}))},O.prototype.cancelVerifyCard=function(e){var t=this;return r.prototype.cancelVerifyCard.call(this).then((function(n){return t._verifyCardPromisePlus&&(e=e||new l(m.THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT),t._verifyCardPromisePlus.reject(e)),n}))},O.prototype._removeSongbirdListeners=function(){this._cardinalEvents.forEach((function(e){window.Cardinal.off(e)})),this._cardinalEvents=[]},O.prototype.teardown=function(){return window.Cardinal&&this._removeSongbirdListeners(),r.prototype.teardown.call(this)},O.prototype._reloadThreeDSecure=function(){var e=this,t=Date.now();return e.teardown().then((function(){e._configureCardinalSdk({setupOptions:e.originalSetupOptions,setupStartTime:t})}))},t.exports=O},{"../../../lib/analytics":143,"../../../lib/assets":144,"../../../lib/assign":145,"../../../lib/braintree-error":148,"../../../lib/constants":149,"../../../lib/convert-to-braintree-error":151,"../../../lib/deferred":155,"../../../lib/enumerate":157,"../../shared/errors":234,"./base":225,"@braintree/extended-promise":34}],231:[function(e,t,n){"use strict";var r=e("@braintree/wrap-promise"),o=e("../../lib/methods"),c=e("../../lib/convert-methods-to-error"),l=e("@braintree/event-emitter"),d=e("./frameworks");function h(e){var t=this,n=d[e.framework];l.call(this),this._framework=new n(e),this._framework.setUpEventListeners((function(){t._emit.apply(t,arguments)}))}l.createChild(h),h.prototype.verifyCard=function(e){var t;return this.hasListener("lookup-complete")&&(t={ignoreOnLookupCompleteRequirement:!0}),this._framework.verifyCard(e,t)},h.prototype.initializeChallengeWithLookupResponse=function(e){return"string"==typeof e&&(e=JSON.parse(e)),this._framework.initializeChallengeWithLookupResponse(e)},h.prototype.prepareLookup=function(e){return this._framework.prepareLookup(e).then((function(data){return JSON.stringify(data)}))},h.prototype.cancelVerifyCard=function(){return this._framework.cancelVerifyCard()},h.prototype.teardown=function(){var e=o(h.prototype).concat(o(l.prototype));return c(this,e),this._framework.teardown()},t.exports=r.wrapPrototype(h)},{"../../lib/convert-methods-to-error":150,"../../lib/methods":180,"./frameworks":228,"@braintree/event-emitter":33,"@braintree/wrap-promise":43}],232:[function(e,t,n){"use strict";var r=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"),h=e("../lib/braintree-error"),f=e("../lib/analytics"),m=e("./shared/errors"),y="3.144.0",v=e("@braintree/wrap-promise");function _(e){var t="3D Secure",n=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 n,r=t.getConfiguration(),c=r.gatewayConfiguration;return e.client=t,c.threeDSecureEnabled||(n=m.THREEDS_NOT_ENABLED),"TOKENIZATION_KEY"===r.authorizationType&&(n=m.THREEDS_CAN_NOT_USE_TOKENIZATION_KEY),"production"===c.environment&&!o()&&(n=m.THREEDS_HTTPS_REQUIRED),c.threeDSecure&&c.threeDSecure.cardinalAuthenticationJWT||(f.sendEvent(e.client,"three-d-secure.initialization.failed.missing-cardinalAuthenticationJWT"),n=m.THREEDS_NOT_ENABLED_FOR_V2),n?Promise.reject(new h(n)):(f.sendEvent(e.client,"three-d-secure.initialized"),t)})),v=new r({client:e.client,assetsUrl:c,createPromise:y,loggingEnabled:e.loggingEnabled,cardinalSDKConfig:e.cardinalSDKConfig,framework:n});return e.client?y.then((function(){return v})):v}))}function E(e){var t=String(e.version||"");if(!t||"1"===t)throw new h({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 h({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":143,"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"../lib/is-https":177,"./external/three-d-secure":231,"./shared/errors":234,"@braintree/wrap-promise":43}],233:[function(e,t,n){"use strict";t.exports={LANDING_FRAME_NAME:"braintreethreedsecurelanding"}},{}],234:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={THREEDS_NOT_ENABLED:{type:r.types.MERCHANT,code:"THREEDS_NOT_ENABLED",message:"3D Secure is not enabled for this merchant."},THREEDS_CAN_NOT_USE_TOKENIZATION_KEY:{type:r.types.MERCHANT,code:"THREEDS_CAN_NOT_USE_TOKENIZATION_KEY",message:"3D Secure can not use a tokenization key for authorization."},THREEDS_HTTPS_REQUIRED:{type:r.types.MERCHANT,code:"THREEDS_HTTPS_REQUIRED",message:"3D Secure requires HTTPS."},THREEDS_NOT_ENABLED_FOR_V2:{type:r.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:r.types.MERCHANT,code:"THREEDS_UNRECOGNIZED_VERSION"},THREEDS_CARDINAL_SDK_SETUP_FAILED:{type:r.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:r.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:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT",message:"Cardinal's Songbird.js took too long to setup."},THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT:{type:r.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT",message:"Cardinal's API took too long to respond."},THREEDS_CARDINAL_SDK_BAD_CONFIG:{type:r.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:r.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_JWT",message:"Cardinal JWT missing or malformed. Please check your setup configuration."},THREEDS_CARDINAL_SDK_ERROR:{type:r.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:r.types.CUSTOMER,code:"THREEDS_CARDINAL_SDK_CANCELED",message:"Canceled by user."},THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT:{type:r.types.MERCHANT,code:"THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT",message:"3D Secure verfication canceled by merchant."},THREEDS_AUTHENTICATION_IN_PROGRESS:{type:r.types.MERCHANT,code:"THREEDS_AUTHENTICATION_IN_PROGRESS",message:"Cannot call verifyCard while existing authentication is in progress."},THREEDS_MISSING_VERIFY_CARD_OPTION:{type:r.types.MERCHANT,code:"THREEDS_MISSING_VERIFY_CARD_OPTION"},THREEDS_JWT_AUTHENTICATION_FAILED:{type:r.types.UNKNOWN,code:"THREEDS_JWT_AUTHENTICATION_FAILED",message:"Something went wrong authenticating the JWT from Cardinal"},THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR:{type:r.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:r.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:r.types.UNKNOWN,code:"THREEDS_LOOKUP_ERROR",message:"Something went wrong during the 3D Secure lookup"},THREEDS_INLINE_IFRAME_DETAILS_INCORRECT:{type:r.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:r.types.MERCHANT,code:"THREEDS_NO_VERIFICATION_PAYLOAD",message:"No verification payload available."},THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN:{type:r.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:r.types.INTERNAL,code:"THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED",message:"Method not implemented for this framework."},THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID:{type:r.types.MERCHANT,code:"THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID",message:"Requested Exemption Type is invalid."},THREEDS_UNSUPPORTED_VERSION:{type:r.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":148}],235:[function(e,t,n){"use strict";var r=e("../../lib/enumerate");t.exports=r(["AUTHENTICATION_COMPLETE"],"threedsecure:")},{"../../lib/enumerate":157}],236:[function(e,t,n){"use strict";var r=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"),h=e("../lib/analytics"),f=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 n=t.getConfiguration();return e.client=t,n.gatewayConfiguration.unionPay&&!0===n.gatewayConfiguration.unionPay.enabled?(h.sendEvent(e.client,"unionpay.initialized"),new r(e)):Promise.reject(new c(f.UNIONPAY_NOT_ENABLED))}))}t.exports={create:y(v),VERSION:m}},{"../lib/analytics":143,"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./shared/errors":238,"./shared/unionpay":239,"@braintree/wrap-promise":43}],237:[function(e,t,n){"use strict";var r=e("../../lib/enumerate");t.exports={events:r(["HOSTED_FIELDS_FETCH_CAPABILITIES","HOSTED_FIELDS_ENROLL","HOSTED_FIELDS_TOKENIZE"],"union-pay:"),HOSTED_FIELDS_FRAME_NAME:"braintreeunionpayhostedfields"}},{"../../lib/enumerate":157}],238:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={UNIONPAY_NOT_ENABLED:{type:r.types.MERCHANT,code:"UNIONPAY_NOT_ENABLED",message:"UnionPay is not enabled for this merchant."},UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID:{type:r.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:r.types.MERCHANT,code:"UNIONPAY_HOSTED_FIELDS_INSTANCE_REQUIRED",message:"Could not find the Hosted Fields instance."},UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED:{type:r.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:r.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:r.types.MERCHANT,code:"UNIONPAY_EXPIRATION_DATE_INCOMPLETE",message:"You must supply expiration month and year or neither."},UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID:{type:r.types.CUSTOMER,code:"UNIONPAY_ENROLLMENT_CUSTOMER_INPUT_INVALID",message:"Enrollment failed due to user input error."},UNIONPAY_ENROLLMENT_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_ENROLLMENT_NETWORK_ERROR",message:"Could not enroll UnionPay card."},UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_FETCH_CAPABILITIES_NETWORK_ERROR",message:"Could not fetch card capabilities."},UNIONPAY_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"UNIONPAY_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},UNIONPAY_MISSING_MOBILE_PHONE_DATA:{type:r.types.MERCHANT,code:"UNIONPAY_MISSING_MOBILE_PHONE_DATA",message:"A `mobile` with `countryCode` and `number` is required."},UNIONPAY_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"UNIONPAY_FAILED_TOKENIZATION",message:"The supplied card data failed tokenization."}}},{"../../lib/braintree-error":148}],239:[function(e,t,n){"use strict";var r=e("../../lib/analytics"),o=e("../../lib/braintree-error"),c=e("framebus"),l=e("./constants"),d=e("../../lib/is-verified-domain"),h=e("../../lib/use-min"),f=e("../../lib/convert-methods-to-error"),m=e("./errors"),y=l.events,v=e("@braintree/iframer"),_=e("../../lib/methods"),E="3.144.0",T=e("@braintree/uuid"),A=e("@braintree/wrap-promise"),w=e("../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT;function S(e){this._options=e}S.prototype.fetchCapabilities=function(e){var t=this,n=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?n.request({method:"get",endpoint:"payment_methods/credit_cards/capabilities",data:{_meta:{source:"unionpay"},creditCard:{number:c}}}).then((function(e){return r.sendEvent(n,"unionpay.capabilities-received"),e})).catch((function(e){var t=e.details&&e.details.httpStatus;return r.sendEvent(n,"unionpay.capabilities-failed"),403===t?Promise.reject(e):Promise.reject(new o({type:m.UNIONPAY_FETCH_CAPABILITIES_NETWORK_E
2RROR.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,n){t._bus.emit(y.HOSTED_FIELDS_FETCH_CAPABILITIES,{hostedFields:l},(function(t){t.err?n(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))},S.prototype.enroll=function(e){var data,t=this,n=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,n){t._initializeHostedFields().then((function(){t._bus.emit(y.HOSTED_FIELDS_ENROLL,{hostedFields:d,mobile:l},(function(t){t.err?n(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 n.request({method:"post",endpoint:"union_pay_enrollments",data:data}).then((function(e){return r.sendEvent(n,"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},r.sendEvent(n,"unionpay.enrollment-failed"),Promise.reject(t)}))}return Promise.reject(new o(m.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},S.prototype.tokenize=function(e){var data,t=this,n=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),n.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,r.sendEvent(n,"unionpay.nonce-received"),t})).catch((function(e){var t,c=e.details&&e.details.httpStatus;return r.sendEvent(n,"unionpay.nonce-failed"),403===c?t=e:c<500?(t=new o(m.UNIONPAY_FAILED_TOKENIZATION)).details={originalError:e}:(t=new o(m.UNIONPAY_TOKENIZATION_NETWORK_ERROR)).details={originalError:e},Promise.reject(t)}))):l?l._bus?new Promise((function(n,r){t._initializeHostedFields().then((function(){t._bus.emit(y.HOSTED_FIELDS_TOKENIZE,e,(function(e){e.err?r(new o(e.err)):n(e.payload)}))}))})):Promise.reject(new o(m.UNIONPAY_HOSTED_FIELDS_INSTANCE_INVALID)):Promise.reject(new o(m.UNIONPAY_CARD_OR_HOSTED_FIELDS_INSTANCE_REQUIRED))},S.prototype.teardown=function(){return this._bus&&(this._hostedFieldsFrame.parentNode.removeChild(this._hostedFieldsFrame),this._bus.teardown()),f(this,_(S.prototype)),Promise.resolve()},S.prototype._initializeHostedFields=function(){var e,t,n=T(),r=this;return this._hostedFieldsInitializePromise||(this._hostedFieldsInitializePromise=new Promise((function(o){e=r._options.client.getConfiguration().gatewayConfiguration.assetsUrl,t=r._options.client.getConfiguration().isDebug,r._bus=new c({channel:n,verifyDomain:d}),r._hostedFieldsFrame=v({name:l.HOSTED_FIELDS_FRAME_NAME+"_"+n,src:e+"/web/"+E+"/html/unionpay-hosted-fields-frame"+h(t)+".html",height:0,width:0}),r._bus.on(w,(function(e){e(r._options.client),o()})),document.body.appendChild(r._hostedFieldsFrame)}))),this._hostedFieldsInitializePromise}
2,t.exports=A.wrapPrototype(S)},{"../../lib/analytics":143,"../../lib/braintree-error":148,"../../lib/constants":149,"../../lib/convert-methods-to-error":150,"../../lib/is-verified-domain":178,"../../lib/methods":180,"../../lib/use-min":186,"./constants":237,"./errors":238,"@braintree/iframer":35,"@braintree/uuid":39,"@braintree/wrap-promise":43,framebus:54}],240:[function(e,t,n){"use strict";t.exports={PLAID_LINK_JS:"https://cdn.plaid.com/link/v2/stable/link-initialize.js"}},{}],241:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={US_BANK_ACCOUNT_OPTION_REQUIRED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_OPTION_REQUIRED"},US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_MUTUALLY_EXCLUSIVE_OPTIONS"},US_BANK_ACCOUNT_LOGIN_LOAD_FAILED:{type:r.types.NETWORK,code:"US_BANK_ACCOUNT_LOGIN_LOAD_FAILED",message:"Bank login flow failed to load."},US_BANK_ACCOUNT_LOGIN_CLOSED:{type:r.types.CUSTOMER,code:"US_BANK_ACCOUNT_LOGIN_CLOSED",message:"Customer closed bank login flow before authorizing."},US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE",message:"Another bank login tokenization request is active."},US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR:{type:r.types.NETWORK,code:"US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR",message:"A tokenization network error occurred."},US_BANK_ACCOUNT_FAILED_TOKENIZATION:{type:r.types.CUSTOMER,code:"US_BANK_ACCOUNT_FAILED_TOKENIZATION",message:"The supplied data failed tokenization."},US_BANK_ACCOUNT_NOT_ENABLED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_NOT_ENABLED",message:"US bank account is not enabled."},US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED:{type:r.types.MERCHANT,code:"US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED",message:"Bank login is not enabled."}}},{"../lib/braintree-error":148}],242:[function(e,t,n){"use strict";var r=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"),h=e("./us-bank-account"),f="3.144.0",m=e("@braintree/wrap-promise");function y(e){var t="US Bank Account";return r.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 h(e):Promise.reject(new o(d.US_BANK_ACCOUNT_NOT_ENABLED))}))}t.exports={create:m(y),VERSION:f}},{"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./errors":241,"./us-bank-account":243,"@braintree/wrap-promise":43}],243:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),o=e("./constants"),c=e("./errors"),l=e("../lib/errors"),d=e("../lib/analytics"),h=e("../lib/once"),f=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 T(e){var t,n=e.details&&e.details.httpStatus;return(t=new r(401===n?l.BRAINTREE_API_ACCESS_RESTRICTED:n<500?c.US_BANK_ACCOUNT_FAILED_TOKENIZATION:c.US_BANK_ACCOUNT_TOKENIZATION_NETWORK_ERROR)).details={originalError:e},t}function A(e,t){var data=e.data[t].paymentMethod,n="US bank account ending in - "+data.details.last4;return{nonce:data.id,details:{},description:n,type:"us_bank_account"}}function w(script,e){function t(){var t=this.readyState;t&&"loaded"!==t&&"complete"!==t||(o(),e(null,window.Plaid))}function n(){script.parentNode.removeChild(script),e(new r(c.US_BANK_ACCOUNT_LOGIN_LOAD_FAILED))}function o(){script.removeEventListener("error",n),script.removeEventListener("load",t),script.removeEventListener("readystatechange",t)}script.addEventListener("error",n),script.addEventListener("load",t),script.addEventListener("readystatechange",t)}function S(address){return{streetAddress:address.streetAddress,extendedAddress:address.extendedAddress,city:address.locality,state:address.region,zipCode:address.postalCode}}
2function O(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||{}).mandateText?e.bankDetails&&e.bankLogin?Promise.reject(new r({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 r({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 r({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,n=e.bankDetails,data={achMandate:e.mandateText,routingNumber:n.routingNumber,accountNumber:n.accountNumber,accountType:n.accountType.toUpperCase(),billingAddress:S(n.billingAddress||{})};return O(data,n),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 n=T(e);return d.sendEvent(t,"usbankaccount.bankdetails.tokenization.failed"),Promise.reject(n)}))},E.prototype._tokenizeBankLogin=function(e){var t=this,n=this._client,o=n.getConfiguration().gatewayConfiguration,l="production"===o.environment,h=o.usBankAccount.plaid;return e.bankLogin.displayName?h?this._isTokenizingBankLogin?Promise.reject(new r(c.US_BANK_ACCOUNT_LOGIN_REQUEST_ACTIVE)):(this._isTokenizingBankLogin=!0,new Promise((function(o,f){t._loadPlaid((function(m,y){m?f(m):(y.create({clientName:e.bankLogin.displayName,apiVersion:"v2",env:l?"production":"sandbox",key:h.publicKey,product:"auth",selectAccount:!0,onExit:function(){t._isTokenizingBankLogin=!1,d.sendEvent(n,"usbankaccount.banklogin.tokenization.closed.by-user"),f(new r(c.US_BANK_ACCOUNT_LOGIN_CLOSED))},onSuccess:function(r,c){var h=e.bankLogin,data={publicToken:r,accountId:l?c.account_id:"plaid_account_id",accountType:c.account.subtype.toUpperCase(),achMandate:e.mandateText,billingAddress:S(h.billingAddress||{})};O(data,h),n.request({api:"graphQLApi",data:{query:_,variables:{input:{usBankLogin:data}}}}).then((function(e){t._isTokenizingBankLogin=!1,d.sendEvent(n,"usbankaccount.banklogin.tokenization.succeeded"),o(A(e,"tokenizeUsBankLogin"))})).catch((function(e){var r;t._isTokenizingBankLogin=!1,r=T(e),d.sendEvent(n,"usbankaccount.banklogin.tokenization.failed"),f(r)}))}}).open(),d.sendEvent(n,"usbankaccount.banklogin.tokenization.started"))}))}))):Promise.reject(new r(c.US_BANK_ACCOUNT_BANK_LOGIN_NOT_ENABLED)):Promise.reject(new r({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=h(e),window.Plaid?e(null,window.Plaid):(t=document.querySelector('script[src="'+o.PLAID_LINK_JS+'"]'))?w(t,e):((script=document.createElement("script")).src=o.PLAID_LINK_JS,script.async=!0,w(script,e),document.body.appendChild(script),this._plaidScript=script)},E.prototype.teardown=function(){return this._plaidScript&&document.body.removeChild(this._plaidScript),f(this,m(E.prototype)),Promise.resolve()},t.exports=y.wrapPrototype(E)},{"../lib/analytics":143,"../lib/braintree-error":148,"../lib/convert-methods-to-error":150,"../lib/errors":158,"../lib/methods":180,"../lib/once":181,"./constants":240,"./errors":241,"@braintree/wrap-promise":43}],244:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={VAULT_MANAGER_DELETE_PAYMENT_METHOD_NONCE_REQUIRES_CLIENT_TOKEN:{type:r.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:r.types.MERCHANT,code:"VAULT_MANAGER_PAYMENT_METHOD_NONCE_NOT_FOUND"},VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR:{type:r.types.UNKNOWN,code:"VAULT_MANAGER_DELETE_PAYMENT_METHOD_UNKNOWN_ERROR"}}},{"../lib/braintree-error":148}],245:[function(e,t,n){"use strict";var r=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",h=e("@braintree/wrap-promise");function f(e){var t="Vault Manager";return r.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:h(f),VERSION:d}},{"../lib/basic-component-verification":146,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./vault-manager"
2:246,"@braintree/wrap-promise":43}],246:[function(e,t,n){"use strict";var r=e("../lib/analytics"),o=e("../lib/braintree-error"),c=e("./errors"),l=e("../lib/convert-methods-to-error"),d=e("../lib/methods"),h=e("@braintree/wrap-promise"),f="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 r.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:f,variables:{input:{singleUseTokenId:e}},operationName:"DeletePaymentMethodFromSingleUseToken"}}).then((function(){r.sendEvent(t,"vault-manager.delete-payment-method.succeeded")})).catch((function(n){var l,d=n.details.originalError;return r.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)})):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=h.wrapPrototype(m)},{"../lib/analytics":143,"../lib/braintree-error":148,"../lib/convert-methods-to-error":150,"../lib/methods":180,"./errors":244,"@braintree/wrap-promise":43}],247:[function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e("./venmo-desktop"));t.exports=function(e){return new r.default(e).initialize()}},{"./venmo-desktop":249}],248:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.VENMO_PAYMENT_CONTEXT_STATUS_QUERY=n.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY=n.UPDATE_PAYMENT_CONTEXT_QUERY=n.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY=n.CREATE_PAYMENT_CONTEXT_QUERY=n.LEGACY_CREATE_PAYMENT_CONTEXT_QUERY=void 0,n.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}",n.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}",n.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY="mutation UpdateVenmoQRCodePaymentContext($input: UpdateVenmoQRCodePaymentContextInput!) {\n  updateVenmoQRCodePaymentContext(input: $input) {\n    clientMutationId\n  }\n}",n.UPDATE_PAYMENT_CONTEXT_QUERY="mutation UpdateVenmoPaymentContextStatus($input: UpdateVenmoPaymentContextStatusInput!) {\n  updateVenmoPaymentContextStatus(input: $input) {\n    clientMutationId\n  }\n}",n.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}",n.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}"},{}],249:[function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)}
2,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var c=o(e("framebus")),l=o(e("@braintree/iframer")),d=o(e("@braintree/uuid")),h=e("../shared/events"),f=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(h.VENMO_DESKTOP_IFRAME_READY,(function(){t(e)})),e.bus.on(h.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,n){e.launchDesktopPromiseRejectFunction=n;var r=function(){e.bus.off(h.VENMO_DESKTOP_CUSTOMER_CANCELED,c),e.bus.off(h.VENMO_DESKTOP_UNKNOWN_ERROR,o)},o=function(t){r(),e.sendEvent("venmo.tokenize.desktop.unknown-error",{payment_method_usage:e.paymentMethodUsage}),n({allowUIToHandleError:!1,reason:"UNKNOWN_ERROR",err:t})},c=function(){r(),e.updateVenmoDesktopPaymentContext("CANCELED"),e.sendEvent("venmo.tokenize.desktop.status-change.canceled-from-modal",{payment_method_usage:e.paymentMethodUsage}),n({allowUIToHandleError:!1,reason:"CUSTOMER_CANCELED"})};e.completedHandler=function(e){r(),t(e)},e.bus.on(h.VENMO_DESKTOP_CUSTOMER_CANCELED,c),e.bus.on(h.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)},e.prototype.triggerRejected=function(e){this.launchDesktopPromiseRejectFunction&&this.launchDesktopPromiseRejectFunction(e)},e.prototype.hideDesktopFlow=function(){this.setAlert(""),this.iframe.style.display="none",this.bus.emit(h.VENMO_DESKTOP_CLOSED_FROM_PARENT),this.isHidden=!0},e.prototype.displayError=function(e){this.isHidden||(this.bus.emit(h.VENMO_DESKTOP_DISPLAY_ERROR,{message:e}),this.setAlert(e))},e.prototype.displayQRCode=function(e,t){this.isHidden||(this.bus.emit(h.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(h.VENMO_DESKTOP_AUTHORIZE),this.setAlert("Venmo account authorized"))},e.prototype.authorizing=function(){this.isHidden||(this.bus.emit(h.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 n=new Date(t.expiresAt).getTime()-new Date(t.createdAt).getTime(),r=Date.now()+n;return e.displayQRCode(t.id,t.merchantId),e.pollForStatusChange(t.status,r)})).then((function(t){if(t){var n=t.userName||"";n="@"+n.replace("@",""),e.triggerCompleted({paymentMethodNonce:t.paymentMethodId,username:n,payerInfo:t.payerInfo,id:e.venmoContextId||""})}})).catch((function(t){t.allowUIToHandleError||(e.sendEvent("venmo.tokenize.desktop.unhandled-error",{payment_method_usage:e.paymentMethodUsage}
2),e.triggerRejected(t))}))},e.prototype.pollForStatusChange=function(e,t){var n=this;return this.venmoContextId?Date.now()>t?this.updateVenmoDesktopPaymentContext("EXPIRED").then((function(){return n.displayError("Something went wrong"),n.sendEvent("venmo.tokenize.desktop.status-change.sdk-timeout",{payment_method_usage:n.paymentMethodUsage}),n.Promise.reject({allowUIToHandleError:!0,reason:"TIMEOUT"})})):this.lookupVenmoDesktopPaymentContext().then((function(r){if(!n.venmoContextId||!r)return n.Promise.resolve();var o=r.status;if(o!==e)switch(e=o,n.sendEvent("venmo.tokenize.desktop.status-change."+e.toLowerCase(),{payment_method_usage:n.paymentMethodUsage}),e){case"CREATED":break;case"EXPIRED":case"FAILED":case"CANCELED":var c="CANCELED"===e?"The authorization was canceled":"Something went wrong";return n.displayError(c),n.Promise.reject({allowUIToHandleError:!0,reason:e});case"SCANNED":n.authorizing();break;case"APPROVED":return n.authorize(),n.Promise.resolve(r)}return new n.Promise((function(r,o){setTimeout((function(){n.pollForStatusChange(e,t).then(r).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(f.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(f.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 n=e.profileId||t.merchantId;return{id:t.id,status:t.status,merchantId:n,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:r({id:this.venmoContextId,status:e},t)},n=this.shouldUseLegacyQRCodeMutation?f.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY:f.UPDATE_PAYMENT_CONTEXT_QUERY;return this.apiRequest(n,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?f.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY:f.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}();n.default=v},{"../shared/events":254,"./queries":248,"@braintree/iframer":35,"@braintree/uuid":39,framebus:54}],250:[function(e,t,n){"use strict";var r=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"),h=e("@braintree/wrap-promise"),f=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 n,o,h=_.isIncognito().catch((function(){return{isPrivate:!1,browserName:"unknown"}}));return e.profileId&&"string"!=typeof e.profileId?Promise.reject(new f(d.VENMO_INVALID_PROFILE_ID)):e.deepLinkReturnUrl&&"string"!=typeof e.deepLinkReturnUrl?Promise.reject(new f(d.VENMO_INVALID_DEEP_LINK_RETURN_URL)):e.riskCorrelationId&&"string"!=typeof e.riskCorrelationId?Promise.reject(new f(d.VENMO_INVALID_RISK_CORRELATION_ID)):(n=c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:l.create(e.authorization),name:t}).then((function(t){var n=t.getConfiguration();return e.client=t,n.gatewayConfiguration.payWithVenmo?t:Promise.reject(new f(d.VENMO_NOT_ENABLED))})),Promise.all([n,h]).then((function(t){var c=t[1];return e._isIncognito=c.isPrivate,e.createPromise=n,o=new m(e),r.sendEvent(n,"venmo.initialized"),o})))}))}function T(e){return y.isBrowserSupported(e)}t.exports={create:h(E),isBrowserSupported:T,VERSION:v}},{"../lib/analytics":143,"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./shared/browser-detection":251,"./shared/errors":253,"./shared/supports-venmo":256,"./venmo":258,"@braintree/wrap-promise":43}],251:[function(e,t,n){"use strict";var r,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"),h=e("@braintree/browser-detection/is-ios-webview");try{r=e("@braintree/browser-detection/is-incognito")}catch(e){r=function(){return Promise.resolve({isPrivate:!1,browserName:"unknown"})}}function f(){return o()&&window.navigator.userAgent.toLowerCase().indexOf("wv")>-1}
2function m(){return!!l()&&(h()||!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 f()||h()}t.exports={isAndroid:o,isAndroidWebview:f,isChrome:c,isIos:l,isIosChrome:v,isIosSafari:d,isIosWebview:h,isWebview:_,isFacebookOwnedBrowserOnAndroid:y,doesNotSupportWindowOpenInIos:m,isIncognito:r}},{"@braintree/browser-detection/is-android":22,"@braintree/browser-detection/is-chrome":24,"@braintree/browser-detection/is-incognito":26,"@braintree/browser-detection/is-ios":30,"@braintree/browser-detection/is-ios-safari":27,"@braintree/browser-detection/is-ios-webview":28}],252:[function(e,t,n){"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"}},{}],253:[function(e,t,n){"use strict";var r=e("../../lib/braintree-error");t.exports={VENMO_NOT_ENABLED:{type:r.types.MERCHANT,code:"VENMO_NOT_ENABLED",message:"Venmo is not enabled for this merchant."},VENMO_TOKENIZATION_REQUEST_ACTIVE:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_REQUEST_ACTIVE",message:"Another tokenization request is active."},VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE",message:"No tokenization in progress."},VENMO_APP_FAILED:{type:r.types.UNKNOWN,code:"VENMO_APP_FAILED",message:"Venmo app encountered a problem."},VENMO_APP_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_APP_CANCELED",message:"Venmo app authorization was canceled."},VENMO_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_CANCELED",message:"User canceled Venmo authorization, or Venmo app is not available."},VENMO_CUSTOMER_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_CUSTOMER_CANCELED",message:"User canceled Venmo authorization."},VENMO_NETWORK_ERROR:{type:r.types.NETWORK,code:"VENMO_NETWORK_ERROR",message:"Something went wrong making the request"},VENMO_DESKTOP_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_DESKTOP_CANCELED",message:"User canceled Venmo authorization by closing the Venmo Desktop modal."},VENMO_TOKENIZATION_CANCELED_BY_MERCHANT:{type:r.types.MERCHANT,code:"VENMO_TOKENIZATION_CANCELED_BY_MERCHANT",message:"The Venmo tokenization was canceled by the merchant."},VENMO_DESKTOP_UNKNOWN_ERROR:{type:r.types.UNKNOWN,code:"VENMO_DESKTOP_UNKNOWN_ERROR",message:"Something went wrong with the Venmo Desktop flow."},VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED:{type:r.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:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR",message:"Something went wrong during mobile polling."},VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED:{type:r.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_EXPIRED",message:"The Venmo authorization request is expired."},VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED:{type:r.types.CUSTOMER,code:"VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED",message:"The Venmo authorization was canceled"},VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT:{type:r.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:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_NO_CONTEXT_ID",message:"No Venmo payment context ID available."},VENMO_MOBILE_POLLING_TOKENIZATION_FAILED:{type:r.types.UNKNOWN,code:"VENMO_MOBILE_POLLING_TOKENIZATION_FAILED",message:"The Venmo authorization failed."},VENMO_INVALID_PROFILE_ID:{type:r.types.MERCHANT,code:"VENMO_INVALID_PROFILE_ID",message:"Venmo profile ID is invali
2d."},VENMO_INVALID_DEEP_LINK_RETURN_URL:{type:r.types.MERCHANT,code:"VENMO_INVALID_DEEP_LINK_RETURN_URL",message:"Venmo deep link return URL is invalid."},VENMO_INVALID_RISK_CORRELATION_ID:{type:r.types.MERCHANT,code:"VENMO_INVALID_RISK_CORRELATION_ID",message:"Venmo risk correlation ID is invalid."},VENMO_TOKENIZATION_FAILED:{type:r.types.UNKNOWN,code:"VENMO_TOKENIZATION_FAILED",message:"Venmo encountered a problem"},VENMO_ECD_DISABLED:{type:r.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":148}],254:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.VENMO_DESKTOP_UNKNOWN_ERROR=n.VENMO_DESKTOP_REQUEST_NEW_QR_CODE=n.VENMO_DESKTOP_CLOSED_FROM_PARENT=n.VENMO_DESKTOP_IFRAME_READY=n.VENMO_DESKTOP_DISPLAY_QR_CODE=n.VENMO_DESKTOP_DISPLAY_ERROR=n.VENMO_DESKTOP_CUSTOMER_CANCELED=n.VENMO_DESKTOP_AUTHORIZING=n.VENMO_DESKTOP_AUTHORIZE=n.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT=void 0,n.VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT="VENMO_DESKTOP_AUTHORIZATION_TIMED_OUT",n.VENMO_DESKTOP_AUTHORIZE="VENMO_DESKTOP_AUTHORIZE",n.VENMO_DESKTOP_AUTHORIZING="VENMO_DESKTOP_AUTHORIZING",n.VENMO_DESKTOP_CUSTOMER_CANCELED="VENMO_DESKTOP_CUSTOMER_CANCELED",n.VENMO_DESKTOP_DISPLAY_ERROR="VENMO_DESKTOP_DISPLAY_ERROR",n.VENMO_DESKTOP_DISPLAY_QR_CODE="VENMO_DESKTOP_DISPLAY_QR_CODE",n.VENMO_DESKTOP_IFRAME_READY="VENMO_DESKTOP_IFRAME_READY",n.VENMO_DESKTOP_CLOSED_FROM_PARENT="VENMO_DESKTOP_CLOSED_FROM_PARENT",n.VENMO_DESKTOP_REQUEST_NEW_QR_CODE="VENMO_DESKTOP_REQUEST_NEW_QR_CODE",n.VENMO_DESKTOP_UNKNOWN_ERROR="VENMO_DESKTOP_UNKNOWN_ERROR"},{}],255:[function(e,t,n){"use strict";var r=e("./constants");function o(e){return e.useAllowDesktopWebLogin?e.enableVenmoSandbox&&e.environment&&"production"!==e.environment?r.VENMO_WEB_LOGIN_SANDBOX_URL:r.VENMO_WEB_LOGIN_URL:e.mobileWebFallBack?r.VENMO_APP_OR_MOBILE_AUTH_URL:r.VENMO_MOBILE_APP_AUTH_ONLY_URL}t.exports=o},{"./constants":252}],256:[function(e,t,n){"use strict";var r=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=r.isAndroid(),t=e&&r.isChrome(),n=r.isIos(),o=r.isIosSafari();return{isAndroid:e,isAndroidChrome:t,isIos:n,isIosSafari:o,isMobileDevice:e||n,isMobileDeviceThatSupportsReturnToSameTab:o||t,isWebview:r.isAndroidWebview()||r.isIosWebview()}}function d(e,t){return(!((e.merchantAllowsNonDefaultBrowsers||e.merchantAllowsReturningToNewBrowserTab)&&!o())||!r.isIosChrome())&&(t.isIos&&!t.isIosSafari||t.isAndroid&&!t.isAndroidChrome?!e.merchantAllowsReturningToNewBrowserTab:r.isFacebookOwnedBrowserOnAndroid())}function h(e,t){return!e.merchantAllowsWebviews&&t.isWebview}function f(){var e=l();return e.isMobileDevice&&!e.isIosSafari&&!e.isAndroidChrome}function m(e){var t=c(e),n=l();return!(f()&&!t.merchantAllowsNonDefaultBrowsers)&&!h(t,n)&&!d(t,n)&&(!!n.isMobileDevice||t.merchantAllowsDesktopBrowsers)}t.exports={isBrowserSupported:m,isNonDefaultBrowser:f}},{"../../lib/in-iframe":174,"./browser-detection":251}],257:[function(e,t,n){"use strict";var r=e("../../lib/frame-service/external"),o=e("../../lib/use-min"),c=e("@braintree/extended-promise"),l=e("../shared/errors"),d=e("../../lib/braintree-error"),h="3.144.0",f='<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,n=e.venmoUrl,r=e.checkForStatusChange,o=e.cancelTokenization,h=e.checkPaymentContextStatus,f=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 n=1;e?(m&&m("login","failed"),f.reject(e)):(m&&(m("login","succeeded"),m("return-to-merchant","start")),r(n).then((function(data){m&&m("return-to-merchant","succeeded"),f.resolve(data)})).catch((function(e){h().then((function(t){"CREATED"===t.status?(m&&m("return-to-merchant","canceled"),f.reject(new d(l.VENMO_CUSTOMER_CANCELED))):(m&&m("return-to-merchant","failed"),f.reject(e))}))}))),t.close(),A()})),t.redirect(n),f}function T(){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 w(){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;","}"],n=["#"+_.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;","}"],r=["#"+_.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,n,r,o,c).join("\n")}function S(e){var t,n,r,o,c,l,d,h,y=document.getElementById(_.backdrop);y?y.classList.remove("hidden"):(t=document.createElement("style"),n=document.createElement("div"),r=document.createElement("div"),o=document.createElement("div"),c=document.createElement("div"),l=document.createElement("div"),d=document.createElement("button"),h=document.createElement("button"),e&&(t.nonce=e),t.id="venmo-desktop-web__injected-styles",t.innerHTML=w(),n.id=_.backdrop,r.id=_.backdropContainer,o.id=_.venmoLogo,o.innerHTML=f,c.id=_.message,c.innerText="What would you like to do?",l.id=_.instructions,l.innerText=m,d.id=_.continueButton,d.innerText="Continue payment",h.id=_.cancelButton,h.innerText="Cancel payment",document.head.appendChild(t),r.appendChild(o),r.appendChild(c),r.appendChild(l),r.appendChild(d),r.appendChild(h),n.appendChild(r),document.body.appendChild(n),n.addEventListener("click",(function(e){e.stopPropagation()})))}function O(e){return S(e.styleCspNonce),e.analyticsCallback&&e.analyticsCallback("login","start"),E(e)}function I(e){var t=new c,n="venmoDesktopWebLogin",l=e.assetsUrl,d=e.debug||!1,f=T(),m=l+"/web/"+h+"/html";return r.create({name:n,dispatchFrameUrl:m+"/dispatch-frame"+o(d)+".html",openFrameUrl:m+"/venmo-landing-frame"+o(d)+".html",top:f.top,left
2:f.left,height:v,width:y},(function(e){t.resolve(e)})),t}c.suppressUnhandledPromiseMessage=!0,t.exports={runWebLogin:O,openPopup:E,setupDesktopWebLogin:I,POPUP_WIDTH:y,POPUP_HEIGHT:v}},{"../../lib/braintree-error":148,"../../lib/frame-service/external":162,"../../lib/use-min":186,"../shared/errors":253,"@braintree/extended-promise":34}],258:[function(e,t,n){"use strict";var r=e("../lib/analytics"),o=e("../lib/assign").assign,c=e("./shared/supports-venmo"),l=e("./shared/browser-detection"),d=e("./shared/constants"),h=e("./shared/errors"),f=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"),T=e("../lib/in-iframe"),A=e("@braintree/extended-promise"),w=e("./shared/get-venmo-url"),S=e("./shared/web-login-backdrop"),O=e("../lib/snake-case-to-camel-case"),I=e("../lib/url-params"),C=e("./external/"),P=e("./external/queries"),N="3.144.0",D=250,R=3e5;function L(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=T()||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=D,this._mobilePollingExpiresThreshold=R,this._pollCount=0,this._riskCorrelationId=e.riskCorrelationId,this._shouldCreateVenmoPaymentContext=this._cannotHaveReturnUrls||!this._shouldUseLegacyFlow,this._isIncognito=e._isIncognito,this._enableVenmoSandbox=e.enableVenmoSandbox||!1,r.sendEvent(this._createPromise,"venmo.options.is-incognito."+String(Boolean(this._isIncognito))),r.sendEvent(this._createPromise,"venmo.desktop-flow.configured."+String(Boolean(this._allowDesktop))),this.hasTokenizationResult()?r.sendEvent(this._createPromise,"venmo.appswitch.return-in-new-tab"):this._useDesktopQRFlow?this._createPromise=this._createPromise.then((function(e){var n=e.getConfiguration().gatewayConfiguration;return C({url:n.assetsUrl+"/web/"+N+"/html/venmo-desktop-frame.html",environment:"production"===n.environment?"PRODUCTION":"SANDBOX",profileId:t._profileId||n.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,n){r.sendEventPlus(t._createPromise,e,n||{})},verifyDomain:m}).then((function(n){return t._venmoDesktopInstance=n,r.sendEvent(t._createPromise,"venmo.desktop-flow.presented"),e})).catch((function(){return r.sendEvent(t._createPromise,"venmo.desktop-flow.setup-failed"),t._useDesktopQRFlow=!1,e}))})):this._shouldCreateVenmoPaymentContext&&(this._createPromise=this._createPromise.then((function(e){var n,o,c=t._determineAnalyticsCategory(),l=t._cannotHaveReturnUrls?"manual-return":"mobile-payment-context",d=e.getConfiguration();return o=S.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(),n=t._createVenmoPaymentContext(e).then((function(){return r.sendEventPlus(t._createPromise,"venmo."+l+".presented",{platform:c}),e})).catch((function(e){return r.sendEvent(t._createPromise,"venmo."+l+".setup-failed"),Promise.reject(new E({type:h.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.type,code:h.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.code,message:k(e)?e.details.originalError[0].message:h.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.message,details:{originalError:e}}))})),A.all([o,n]).then((function(e){var t=e[1];return Promise.resolve(t)})).catch((function(e){return Promise.reject(e)}))})))}function k(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 x(e){var t="",n="";if(e)t=e;else{t=window.location.hash.substring(1);try{window.top&&window.top!==window&&window.top.location&&(n=window.top.location.hash.substring(1))&&(t=n)}catch(e){}}var r=t.split("&").reduce((function(e,t){var n=t.split("="),r=decodeURIComponent(n[0]).replace(/\W/g,""),o=O(r),c=decodeURIComponent(n[1]);return e[o]=c,e}),{});return r.resourceId&&(r.id=r.resourceId),r}function M(e){return"@"+(e=e||"").replace("@","")}function U(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 F(){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,L.prototype._determineAnalyticsCategory=function(){return this._popupBridgeIsInstalled()?"popup-bridge":this._useDesktopQRFlow?"desktop-qr":this._useAllowDesktopWebLogin?"web-login-flow":this._isDesktop()?"desktop":"mobile"},L.prototype._createVenmoPaymentContext=function(e,t){var n,o,c=this,l=e.getConfiguration(),d=c._determineAnalyticsCategory(),f=l.gatewayConfiguration.payWithVenmo,m=!1,y=c._useAllowDesktopWebLogin?"NATIVE_WEB":"MOBILE_WEB";if(!this._shouldCreateVenmoPaymentContext)return Promise.resolve();if(this._shouldUseLegacyFlow)n=e.request({api:"graphQLApi",data:{query:P.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)&&!f.enrichedCustomerDataEnabled)return Promise.reject(new E(h.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]})),r.sendEventPlus(c._createPromise,"venmo.create-payment-context.started",{platform:d}),n=e.request({api:"graphQLApi",data:{query:P.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 r.sendEventPlus(c._createPromise,"venmo.create-payment-context.succeeded",{context_id:t.id,platform:d}),t})).catch((function(e){throw r.sendEventPlus(c._createPromise,"venmo.create-payment-context.failed",{platform:d}),e}))}return n.then((function(n){var r=.6666*(new Date(n.expiresAt)-new Date(n.createdAt));clearTimeout(c._refreshPaymentContextTimeout),c._refreshPaymentContextTimeout=setTimeout((function(){c._tokenizationInProgress||c._createVenmoPaymentContext(e,!0)}),r),t&&c._tokenizationInProgress||(c._venmoPaymentContextStatus=n.status,c._venmoPaymentContextId=n.id)}))},L.prototype._popupBridgeIsInstalled=function(){return window.popupBridge&&"function"==typeof window.popupBridge.open},L.prototype._venmoNativeAppIsInstalled=function(){return Boolean(window.popupBridge&&(window.parent&&window.parent.popupBridge.isVenmoInstalled||window.popupBridge.isVenmoInstalled))},L.prototype._handleDeepLinkAppSwitch=function(e){j()?this._handleIosWebviewDeepLink(e):this._popupBridgeIsInstalled()?this._handlePopupBridgeAppSwitch(e):l.isAndroidWebview()?(r.sendEvent(this._createPromise,"venmo.appswitch.start.android-webview-redirect"),T()?this._handleIFrameBreakout(e):window.location.href=e):l.isAndroid()&&!l.isWebview()?(r.sendEvent(this._createPromise,"venmo.appswitch.start.android-browser-redirect"),T()?this._handleIFrameBreakout(e):window.location.href=e):(r.sendEvent(this._createPromise,"venmo.appswitch.start.webview"),this._venmoWindow=window.open(e))},L.prototype._handleIosWebviewDeepLink=function(e){r.sendEvent(this._createPromise,"venmo.appswitch.start.ios-webview"),T()?this._handleIosWebviewInIframe(e):!this._venmoNativeAppIsInstalled()&&this._popupBridgeIsInstalled()?this._handlePopupBridgeAppSwitch(e):window.location.href=e},L.prototype._handleIosWebviewInIframe=function(e){this._venmoNativeAppIsInstalled()?this._handleIFrameBreakout(e):this._popupBridgeIsInstalled()?this._handlePopupBridgeAppSwitch(e):this._handleIFrameBreakout(e)},L.prototype._handlePopupBridgeAppSwitch=function(e){r.sendEvent(this._createPromise,"venmo.appswitch.start.popup-bridge"),window.popupBridge.open(e)},L.prototype._handleBrowserAppSwitch=function(e){r.sendEvent(this._createPromise,"venmo.appswitch.start.browser"),l.doesNotSupportWindowOpenInIos()||this._shouldUseRedirectStrategy()?window.location.href=e:T()&&l.isAndroid()&&l.isChrome()?(r.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)},L.prototype._handleIFrameBreakout=function(e){window.top.location.href=e},L.prototype.appSwitch=function(e){this._deepLinkReturnUrl?this._handleDeepLinkAppSwitch(e):this._handleBrowserAppSwitch(e)},L.prototype.getUrl=function(){return this._createPromise.then(function(e){var t=e.getConfiguration(),n={},r=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,r=r.replace(/#*$/,""),this._venmoPaymentContextId&&(this._shouldUseLegacyFlow?l+="|pcid:"+this._venmoPaymentContextId:n.resource_id=this._venmoPaymentContextId),this._riskCorrelationId&&(n["client-metadata-id"]=this._riskCorrelationId),this._shouldIncludeReturnUrls()||this._useAllowDesktopWebLogin?(this._useAllowDesktopWebLogin&&(r=this._assetsUrl+"/web/"+N+"/html/redirect-frame.html"),n["x-success"]=r+"#venmoSuccess=1",n["x-cancel"]=r+"#venmoCancel=1",n["x-error"]=r+"#venmoError=1"):(n["x-success"]="NOOP",n["x-cancel"]="NOOP",n["x-error"]="NOOP"),this._allowAndroidRecreation?n.allowAndroidRecreation=1:n.allowAndroidRecreation=0,n.ua=window.navigator.userAgent,n.braintree_merchant_id=this._profileId||o.merchantId,n.braintree_access_token=l,n.braintree_environment=o.environment,n.braintree_sdk_data=btoa(JSON.stringify(d)),w({useAllowDesktopWebLogin:this._useAllowDesktopWebLogin,mobileWebFallBack:this._mobileWebFallBack,enableVenmoSandbox:this._enableVenmoSandbox,environment:o.environment})+"?"+f.stringify(n)}.bind(this))},L.prototype.isBrowserSupported=function(){return c.isBrowserSupported({allowNewBrowserTab:this._allowNewBrowserTab,allowWebviews:this._allowWebviews,allowDesktop:this._allowDesktop,allowDesktopWebLogin:this._allowDesktopWebLogin,allowNonDefaultBrowsers:this._allowNonDefaultBrowsers})},L.prototype.hasTokenizationResult=function(){return this._hasTokenizationResult()},L.prototype._hasTokenizationResult=function(e){var t=x(e),n={},r=I.getUrlParams();window;try{window.top&&window.top!==window&&window.top.location&&(n=x(window.top.location.hash))}catch(e){}return r.resource_id?this._venmoPaymentContextId=r.resource_id:t.id?this._venmoPaymentContextId=t.id:n.id&&(this._venmoPaymentContextId=n.id),void 0!==(t.venmoSuccess||t.venmoError||t.venmoCancel||n.venmoSuccess||n.venmoError||n.venmoCancel)},L.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()},L.prototype._isDesktop=function(){return!(l.isIos()||l.isAndroid())},L.prototype._isIOSIframeWithoutVenmoApp=function(){return l.isIos()&&T()&&!this._venmoNativeAppIsInstalled()&&!this._requireManualReturn},L.prototype.tokenize=function(e){var t=this;return e=e||{},!0===this._tokenizationInProgress?Promise.reject(new E(h.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,U(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)}))})))},L.prototype.cancelTokenization=function(){return this._tokenizationInProgress?(this._removeVisibilityEventListener(),this._tokenizePromise&&this._tokenizePromise.reject(new E(h.VENMO_TOKENIZATION_CANCELED_BY_MERCHANT)),this._pollingInProgress=!1,Promise.all([this._cancelMobilePaymentContext(),this._cancelVenmoDesktopContext()])):Promise.reject(new E(h.VENMO_TOKENIZATION_REQUEST_NOT_ACTIVE))},L.prototype._tokenizeWebLoginWithRedirect=function(){var e,t=this;return r.sendEventPlus(t._createPromise,"venmo.tokenize.web-login.start",{context_id:t._venmoPaymentContextId}),this._tokenizePromise=new A,this.getUrl().then((function(n){return e={checkForStatusChange:t._checkPaymentContextStatusAndProcessResult.bind(t),cancelTokenization:t.cancelTokenization.bind(t),frameServiceInstance:t._frameServiceInstance,venmoUrl:n,debug:t._isDebug,checkPaymentContextStatus:t._checkPaymentContextStatus.bind(t),analyticsCallback:function(e,n){r.sendEventPlus(t._createPromise,"venmo.desktop."+e+"."+n,{context_id:t._venmoPaymentContextId})}},t._cspNonce&&(e=o({},e,{styleCspNonce:t._cspNonce})),S.runWebLogin(e).then((function(e){r.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){r.sendEventPlus(t._createPromise,"venmo.tokenize.web-login.failure",{context_id:t._venmoPaymentContextId}),t._tokenizePromise.reject(e)})),t._tokenizePromise}))},L.prototype._queryPaymentContextStatus=function(e){var t=this;return r.sendEventPlus(t._createPromise,"venmo.query-payment-context.started",{context_id:e}),this._createPromise.then((function(n){var r=t._shouldUseLegacyFlow?P.LEGACY_VENMO_PAYMENT_CONTEXT_STATUS_QUERY:P.VENMO_PAYMENT_CONTEXT_STATUS_QUERY;return n.request({api:"graphQLApi",data:{query:r,variables:{id:e}}})})).then((function(n){return r.sendEventPlus(t._createPromise,"venmo.query-payment-context.succeeded",{context_id:e}),n.data.node})).catch((function(n){throw r.sendEventPlus(t._createPromise,"venmo.query-payment-context.failed",{context_id:e}),n}))},L.prototype._checkPaymentContextStatusAndProcessResult=function(e){var t=this;return t._checkPaymentContextStatus().then((function(n){var o=n.status;if(o!==t._venmoPaymentContextStatus)switch(t._venmoPaymentContextStatus=o,r.sendEventPlus(t._createPromise,"venmo.tokenize.web-login.status-change."+o.toLowerCase(),{context_id:t._venmoPaymentContextId}),o){case"APPROVED":return Promise.resolve(n);case"CANCELED":return Promise.reject(new E(h.VENMO_CUSTOMER_CANCELED));case"EXPIRED":case"FAILED":return Promise.reject(new E(h.VENMO_TOKENIZATION_FAILED))}return new Promise((function(n,r){e<t._maxRetryCount?(e++,t._checkPaymentContextStatusAndProcessResult(e).then(n).catch(r)):r(new E(h.VENMO_TOKENIZATION_FAILED))}))}))},L.prototype._checkPaymentContextStatus=function(){var e=this;return e._queryPaymentContextStatus(e._venmoPaymentContextId).catch((function(e){return Promise.reject(new E({type:h.VENMO_NETWORK_ERROR.type,code:h.VENMO_NETWORK_ERROR.code,message:h.VENMO_NETWORK_ERROR.message,details:e}))})).then((function(e){return Promise.resolve(e)}))},L.prototype._validatePollingContext=function(){return this._venmoPaymentContextId?Date.now()>this._mobilePollingContextExpiresIn?Promise.reject(new E(h.VENMO_MOBILE_POLLING_TOKENIZATION_TIMEOUT)):null:Promise.reject(new E(h.VENMO_MOBILE_POLLING_TOKENIZATION_NO_CONTEXT_ID))},L.prototype._handleWindowClosure=function(){var e=this,t=e._determineAnalyticsCategory();return e._venmoWindow&&e._venmoWindow.closed&&"CREATED"===e._venmoPaymentContextStatus&&!0===e._cancelOnReturnToBrowser?(r.sendEventPlus(e._createPromise,"venmo.appswitch.browser-window.closed",{context_id:e._venmoPaymentContextId}),e._cancelMobilePaymentContext().then((function(){r.sendEventPlus(e._createPromise,"venmo.tokenize.manual-return.canceled",{context_id:e._venmoPaymentContextId,platform:t})})).catch((function(n){r.sendEventPlus(e._createPromise,"venmo.tokenize.manual-return.canceled.error",{context_id:e._venmoPaymentContextId,platform:t})})),Promise.reject(new E(h.VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED))):null},L.prototype._handleCancelOnReturn=function(){var e,t,n=this;return n._cancelOnReturnToBrowser?(e=Math.ceil(d.DEFAULT_PROCESS_RESULTS_DELAY/n._mobilePollingInterval),t=x(),n._pollCount++,void 0===(t.venmoSuccess||t.venmoError||t.venmoCancel)&&"CREATED"===n._venmoPaymentContextStatus&&n._pollCount>=e?(r.sendEventPlus(n._createPromise,"venmo.appswitch.cancel-on-return-to-browser",{context_id:n._venmoPaymentContextId}),n._cancelMobilePaymentContext().then((function(){r.sendEventPlus(n._createPromise,"venmo.appswitch.cancel-on-return-to-browser.success",{context_id:n._venmoPaymentContextId})})).catch((function(){r.sendEventPlus(n._createPromise,"venmo.appswitch.cancel-on-return-to-browser.error",{context_id:n._venmoPaymentContextId})})).finally((function(){n._pollCount=0}))):null):null},L.prototype._handleStatusChange=function(e){var t=this,n=e.status;if(n!==t._venmoPaymentContextStatus)switch(t._venmoPaymentContextStatus=n,r.sendEventPlus(t._createPromise,"venmo.tokenize.manual-return.status-change."+n.toLowerCase(),{context_id:t._venmoPaymentContextId,platform:t._determineAnalyticsCategory()}
2),n){case"EXPIRED":case"FAILED":case"CANCELED":return Promise.reject(new E(h["VENMO_MOBILE_POLLING_TOKENIZATION_"+n]));case"APPROVED":return Promise.resolve(e)}return t._continuePolling()},L.prototype._continuePolling=function(){var e=this;return new Promise((function(t,n){setTimeout((function(){e._pollForStatusChange().then(t).catch(n)}),e._mobilePollingInterval)}))},L.prototype._queryAndProcessStatus=function(){var e=this;return this._queryPaymentContextStatus(this._venmoPaymentContextId).catch((function(e){return Promise.reject(new E({type:h.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.type,code:h.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.code,message:h.VENMO_MOBILE_POLLING_TOKENIZATION_NETWORK_ERROR.message,details:{originalError:e}}))})).then((function(t){return e._handleStatusChange(t)}))},L.prototype._pollForStatusChange=function(){var e=this._validatePollingContext();if(e)return e;var t=this._handleWindowClosure();return t||(this._handleCancelOnReturn(),this._queryAndProcessStatus())},L.prototype._startPolling=function(){var e=this,t=e._determineAnalyticsCategory();return this._pollingInProgress||(this._pollingInProgress=!0,this._pollForStatusChange().then((function(n){e._pollingInProgress=!1,r.sendEventPlus(e._createPromise,"venmo.tokenize.manual-return.success",{context_id:e._venmoPaymentContextId,platform:t}),e._tokenizePromise.resolve({paymentMethodNonce:n.paymentMethodId,username:n.userName,payerInfo:n.payerInfo,id:e._venmoPaymentContextId})})).catch((function(n){e._pollingInProgress=!1,r.sendEventPlus(e._createPromise,"venmo.tokenize.manual-return.failure",{context_id:e._venmoPaymentContextId,platform:t}),e._tokenizePromise.reject(n)}))),this._tokenizePromise},L.prototype._tokenizeForMobileWithManualReturn=function(){var e=this;return this._mobilePollingContextExpiresIn=Date.now()+this._mobilePollingExpiresThreshold,this.hasTokenizationResult()?this.processHashChangeFlowResults():(r.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)})))},L.prototype._shouldUseRedirectStrategy=function(){return!!l.isIos()&&(!0===this._mobileWebFallBack||this._useRedirectForIOS)},L.prototype._tokenizeForMobileWithHashChangeListeners=function(e){var t,n,o=this;if(this.hasTokenizationResult())return this.processHashChangeFlowResults();var c=this._determineAnalyticsCategory();function l(e){var t;o.processHashChangeFlowResults(e).catch((function(e){r.sendEventPlus(o._createPromise,"venmo.tokenize.mobile.failure",{context_id:o._venmoPaymentContextId,platform:c}),t=e})).then((function(e){r.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 r.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 r=e.newURL.split("#")[1];o._hasTokenizationResult(r)&&(t=!0,clearTimeout(n),l(r))},window.addEventListener("hashchange",this._onHashChangeListener,!1),this._visibilityChangeListener=function(){var r=e.processResultsDelay||d.DEFAULT_PROCESS_RESULTS_DELAY;window.document.hidden||(o._venmoWindow&&!o._venmoWindow.closed&&o._venmoWindow.close(),t||(n=setTimeout(l,r)))},this.getUrl().then((function(e){return o.hasTokenizationResult()?(l(),o._tokenizePromise):(o.appSwitch(e),setTimeout((function(){window.document.addEventListener(F(),o._visibilityChangeListener)}),d.DOCUMENT_VISIBILITY_CHANGE_EVENT_DELAY),o._tokenizePromise)}))},L.prototype._tokenizeForDesktopQRFlow=function(){var e=this;return r.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(),r.sendEventPlus(e._createPromise,"venmo.tokenize.desktop.success",{context_id:t&&t.id}),e._tokenizePromise.resolve(t)}
2)).catch((function(t){r.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(h.VENMO_DESKTOP_CANCELED)):e._tokenizePromise.reject(new E({type:h.VENMO_DESKTOP_UNKNOWN_ERROR.type,code:h.VENMO_DESKTOP_UNKNOWN_ERROR.code,message:h.VENMO_DESKTOP_UNKNOWN_ERROR.message,details:{originalError:t}}))})),this._tokenizePromise},L.prototype._cancelMobilePaymentContext=function(){var e=this;return this._createPromise.then((function(t){var n;return e._venmoPaymentContextId?(n=e._shouldUseLegacyFlow?P.LEGACY_UPDATE_PAYMENT_CONTEXT_QUERY:P.UPDATE_PAYMENT_CONTEXT_QUERY,t.request({api:"graphQLApi",data:{query:n,variables:{input:{id:e._venmoPaymentContextId,status:"CANCELED"}}}})):Promise.resolve()}))},L.prototype._cancelVenmoDesktopContext=function(){var e=this;return this._createPromise.then((function(){return e._venmoDesktopInstance&&e._venmoDesktopInstance.updateVenmoDesktopPaymentContext("CANCELED"),Promise.resolve()}))},L.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(L.prototype))}.bind(this))},L.prototype._removeVisibilityEventListener=function(){window.removeEventListener("hashchange",this._onHashChangeListener),window.document.removeEventListener(F(),this._visibilityChangeListener),delete this._visibilityChangeListener,delete this._onHashChangeListener},L.prototype.processHashChangeFlowResults=function(e){var t=this,n=x(e);return new Promise((function(e,o){t._shouldUseLegacyFlow?n.venmoSuccess?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.success"),window.popupBridge&&r.sendEvent(t._createPromise,"popup-bridge:venmo:succeeded"),e(n)):n.venmoError?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.error"),window.popupBridge&&r.sendEvent(t._createPromise,"popup-bridge:venmo:failed"),o(new E({type:h.VENMO_APP_FAILED.type,code:h.VENMO_APP_FAILED.code,message:h.VENMO_APP_FAILED.message,details:{originalError:{message:decodeURIComponent(n.errorMessage),code:n.errorCode}}}))):n.venmoCancel?(r.sendEvent(t._createPromise,"venmo.appswitch.handle.cancel"),window.popupBridge&&r.sendEvent(t._createPromise,"popup-bridge:venmo:canceled"),o(new E(h.VENMO_APP_CANCELED))):(r.sendEvent(t._createPromise,"venmo.appswitch.cancel-or-unavailable"),o(new E(h.VENMO_CANCELED))):(t._pollingInProgress||(t._pollingInProgress=!0),t._pollForStatusChange().then((function(n){return t._pollingInProgress=!1,r.sendEventPlus(t._createPromise,"venmo.appswitch.handle.payment-context-status-query.success",{context_id:t._venmoPaymentContextId}),window.popupBridge&&r.sendEvent(t._createPromise,"popup-bridge:venmo:succeeded"),e({paymentMethodNonce:n.paymentMethodId,username:n.userName,payerInfo:n.payerInfo,id:t._venmoPaymentContextId})})).catch((function(c){t._pollingInProgress=!1,c.code===h.VENMO_MOBILE_POLLING_TOKENIZATION_CANCELED.code?(window.popupBridge&&r.sendEvent(t._createPromise,"popup-bridge:venmo:canceled"),o(c)):window.popupBridge&&r.sendEvent(t._createPromise,"popup-bridge:venmo:failed"),r.sendEventPlus(t._createPromise,"venmo.process-results.payment-context-status-query-failed",{context_id:t._venmoPaymentContextId}),e(n)}))),t._clearFragmentParameters()}))},L.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(L)},{"../lib/analytics":143,"../lib/assign":145,"../lib/braintree-error":148,"../lib/convert-methods-to-error":150,"../lib/in-iframe":174,"../lib/is-verified-domain":178,"../lib/methods":180,"../lib/querystring":182,"../lib/snake-case-to-camel-case":184,"../lib/url-params":185,"./external/":247,"./external/queries":248,"./shared/browser-detection":251,"./shared/constants":252,"./shared/errors":253,"./shared/get-venmo-url":255,"./shared/supports-venmo":256,"./shared/web-login-backdrop":257,"@braintree/extended-promise":34,"@braintree/wrap-promise":43}],259:[function(e,t,n){"use strict";var r=e("../lib/braintree-error");t.exports={VISA_CHECKOUT_NOT_ENABLED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_NOT_ENABLED",message:"Visa Checkout is not enabled for this merchant."},VISA_CHECKOUT_INIT_OPTIONS_REQUIRED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_INIT_OPTIONS_REQUIRED",message:"initOptions requires an object."},VISA_CHECKOUT_PAYMENT_REQUIRED:{type:r.types.MERCHANT,code:"VISA_CHECKOUT_PAYMENT_REQUIRED",message:"tokenize requires callid, encKey, and encPaymentData."},VISA_CHECKOUT_TOKENIZATION:{type:r.types.NETWORK,code:"VISA_CHECKOUT_TOKENIZATION",message:"A network error occurred when processing the Visa Checkout payment."}}},{"../lib/braintree-error":148}],260:[function(e,t,n){"use strict";var r=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"),h=e("../lib/analytics"),f=e("./errors"),m="3.144.0",y=e("@braintree/wrap-promise");function v(e){var t="Visa Checkout";return r.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?(h.sendEvent(e.client,"visacheckout.initialized"),new d(e)):Promise.reject(new o(f.VISA_CHECKOUT_NOT_ENABLED))}))}t.exports={create:y(v),VERSION:m}},{"../lib/analytics":143,"../lib/basic-component-verification":146,"../lib/braintree-error":148,"../lib/create-assets-url":152,"../lib/create-deferred-client":154,"./errors":259,"./visa-checkout":261,"@braintree/wrap-promise":43}],261:[function(e,t,n){"use strict";var r=e("../lib/braintree-error"),o=e("../lib/analytics"),c=e("./errors"),l=e("../lib/json-clone"),d=e("../lib/methods"),h=e("../lib/convert-methods-to-error"),f=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,n=this._client.getConfiguration().gatewayConfiguration,o=n.visaCheckout;if(!e)throw new r(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(n.visaCheckout.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.visaC
2heckoutCards[0]})).catch((function(e){return o.sendEvent(t._client,"visacheckout.tokenize.failed"),Promise.reject(new r({type:c.VISA_CHECKOUT_TOKENIZATION.type,code:c.VISA_CHECKOUT_TOKENIZATION.code,message:c.VISA_CHECKOUT_TOKENIZATION.message,details:{originalError:e}}))})):Promise.reject(new r(c.VISA_CHECKOUT_PAYMENT_REQUIRED))},y.prototype.teardown=function(){return h(this,d(y.prototype)),Promise.resolve()},t.exports=f.wrapPrototype(y)},{"../lib/analytics":143,"../lib/braintree-error":148,"../lib/convert-methods-to-error":150,"../lib/json-clone":179,"../lib/methods":180,"./errors":259,"@braintree/wrap-promise":43}]},{},[137])(137)},631:function(e,t,n){!function(e,t,n){"use strict";var r;t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,function(e){e.SwiperComponent="Swiper",e.SwiperSlideComponent="SwiperSlide",e.SwiperDirective="swiper",e.SwiperInstance="$swiper"}(r||(r={}));var o,c,l=Object.freeze({containerClass:"swiper-container",wrapperClass:"swiper-wrapper",slideClass:"swiper-slide"});(function(e){e.Ready="ready",e.ClickSlide="clickSlide"})(o||(o={})),function(e){e.AutoUpdate="autoUpdate",e.AutoDestroy="autoDestroy",e.DeleteInstanceOnDestroy="deleteInstanceOnDestroy",e.CleanupStylesOnDestroy="cleanupStylesOnDestroy"}(c||(c={}));var d=["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 h(){for(var s=0,i=0,e=arguments.length;i<e;i++)s+=arguments[i].length;var t=Array(s),n=0;for(i=0;i<e;i++)for(var a=arguments[i],r=0,o=a.length;r<o;r++,n++)t[n]=a[r];return t}var f,m=function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},y=function(e,t,n){var r,c,l;if(e&&!e.destroyed){var d=(null===(r=t.composedPath)||void 0===r?void 0:r.call(t))||t.path;if((null==t?void 0:t.target)&&d){var h=Array.from(e.slides),f=Array.from(d);if(h.includes(t.target)||f.some((function(e){return h.includes(e)}))){var y=e.clickedIndex,v=Number(null===(l=null===(c=e.clickedSlide)||void 0===c?void 0:c.dataset)||void 0===l?void 0:l.swiperSlideIndex),_=Number.isInteger(v)?v:null;n(o.ClickSlide,y,_),n(m(o.ClickSlide),y,_)}}}},v=function(e,t){d.forEach((function(n){e.on(n,(function(){for(var e=arguments,r=[],o=0;o<arguments.length;o++)r[o]=e[o];t.apply(void 0,h([n],r));var c=m(n);c!==n&&t.apply(void 0,h([c],r))}))}))},_="instanceName";function E(e,t){var n=function(e,t){var n,r,o,c,l=null===(r=null===(n=e.data)||void 0===n?void 0:n.attrs)||void 0===r?void 0:r[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[m(t)]},d=function(element,e,t){return e.arg||n(t,_)||element.id||r.SwiperInstance},h=function(element,e,t){var n=d(element,e,t);return t.context[n]||null},f=function(e){return e.value||t},E=function(input){return[!0,void 0,null,""].includes(input)},T=function(e){var t,n,r=(null===(t=e.data)||void 0===t?void 0:t.on)||(null===(n=e.componentOptions)||void 0===n?void 0:n.listeners);return function(e){for(var t,n=arguments,o=[],c=1;c<arguments.length;c++)o[c-1]=n[c];var l=null===(t=r)||void 0===t?void 0:t[e];l&&l.fns.apply(l,o)}};return{bind:function(element,e,t){-1===element.className.indexOf(l.containerClass)&&(element.className+=(element.className?" ":"")+l.containerClass),element.addEventListener("click",(function(n){var r=T(t),o=h(element,e,t);y(o,n,r)}))},inserted:function(element,t,n){var r=n.context,c=f(t),l=d(element,t,n),h=T(n),m=r,y=null==m?void 0:m[l];y&&!y.destroyed||(y=new e(element,c),m[l]=y,v(y,h),h(o.Ready,y))},componentUpdated:function(element,e,t){var r,o,l,d,m,y,v,_,T,A,w,S,O=n(t,c.AutoUpdate);if(E(O)){var I=h(element,e,t);if(I){var C=f(e).loop;C&&(null===(o=null===(r=I)||void 0===r?void 0:r.loopDestroy)||void 0===o||o.call(r)),null===(l=null==I?void 0:I.update)||void 0===l||l.call(I),null===(m=null===(d=I.navigation)||void 0===d?void 0:d.update)||void 0===m||m.call(d),null===(v=null===(y=I.pagination)||void 0===y?void 0:y.render)||void 0===v||v.call(y),null===(T=null===(_=I.pagination)||void 0===_?void 0:_.update)||void 0===T||T.call(_),C&&(null===(w=null===(A=I)||void 0===A?void 0:A.loopCreate)||void 0===w||w.call(A),null===(S=null==I?void 0:I.update)||void 0===S||S.call(I))}}},unbind:function(element,e,t){var r,o=n(t,c.AutoDestroy);if(E(o)){var l=h(element,e,t);l&&l.initialized&&(null===(r=null==l?void 0:l.destroy)||void 0===r||r.call(l,E(n(t,c.DeleteInstanceOnDestroy)),E(n(t,c.CleanupStylesOnDestroy))))}}}}function T(e){var t;return n.extend({name:r.SwiperComponent,props:(t={defaultOptions:{type:Object,required:!1,default:function(){return{}}},options:{type:Object,required:!1}}
2,t[c.AutoUpdate]={type:Boolean,default:!0},t[c.AutoDestroy]={type:Boolean,default:!0},t[c.DeleteInstanceOnDestroy]={type:Boolean,required:!1,default:!0},t[c.CleanupStylesOnDestroy]={type:Boolean,required:!1,default:!0},t),data:function(){var e;return(e={})[r.SwiperInstance]=null,e},computed:{swiperInstance:{cache:!1,set:function(e){this[r.SwiperInstance]=e},get:function(){return this[r.SwiperInstance]}},swiperOptions:function(){return this.options||this.defaultOptions},wrapperClass:function(){return this.swiperOptions.wrapperClass||l.wrapperClass}},methods:{handleSwiperClick:function(e){y(this.swiperInstance,e,this.$emit.bind(this))},autoReLoopSwiper:function(){var e,t;if(this.swiperInstance&&this.swiperOptions.loop){var n=this.swiperInstance;null===(e=null==n?void 0:n.loopDestroy)||void 0===e||e.call(n),null===(t=null==n?void 0:n.loopCreate)||void 0===t||t.call(n)}},updateSwiper:function(){var e,t,n,r,o,l,d,h;this[c.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===(r=null===(n=this.swiperInstance.navigation)||void 0===n?void 0:n.update)||void 0===r||r.call(n),null===(l=null===(o=this.swiperInstance.pagination)||void 0===o?void 0:o.render)||void 0===l||l.call(o),null===(h=null===(d=this.swiperInstance.pagination)||void 0===d?void 0:d.update)||void 0===h||h.call(d))},destroySwiper:function(){var e,t;this[c.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[c.DeleteInstanceOnDestroy],this[c.CleanupStylesOnDestroy]))},initSwiper:function(){this.swiperInstance=new e(this.$el,this.swiperOptions),v(this.swiperInstance,this.$emit.bind(this)),this.$emit(o.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:l.containerClass,on:{click:this.handleSwiperClick}},[this.$slots[f.ParallaxBg],e("div",{class:this.wrapperClass},this.$slots.default),this.$slots[f.Pagination],this.$slots[f.PrevButton],this.$slots[f.NextButton],this.$slots[f.Scrollbar]])}})}!function(e){e.ParallaxBg="parallax-bg",e.Pagination="pagination",e.Scrollbar="scrollbar",e.PrevButton="button-prev",e.NextButton="button-next"}(f||(f={}));var A=n.extend({name:r.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)||l.slideClass}},methods:{update:function(){var e,t=this.$parent;t[c.AutoUpdate]&&(null===(e=null==t?void 0:t.swiperInstance)||void 0===e||e.update())}},mounted:function(){this.update()},updated:function(){this.update()},render:function(e){return e("div",{class:this.slideClass},this.$slots.default)}}),w=function(e){var t=function(n,o){if(!t.installed){var c=T(e);o&&(c.options.props.defaultOptions.default=function(){return o}),n.component(r.SwiperComponent,c),n.component(r.SwiperSlideComponent,A),n.directive(r.SwiperDirective,E(e,o)),t.installed=!0}};return t};function S(e){var t;return(t={version:"4.1.1",install:w(e),directive:E(e)})[r.SwiperComponent]=T(e),t[r.SwiperSlideComponent]=A,t}var O=S(t),I=O.version,C=O.install,P=O.directive,N=O.Swiper,D=O.SwiperSlide;e.Swiper=N,e.SwiperSlide=D,e.default=O,e.directive=P,e.install=C,e.version=I,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(911),n(14))},635:function(e,t,n){"use strict";n(10),n(5),n(9),Object.defineProperty(t,"__esModule",{value:!0});var r=n(789);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(803);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=n(172);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=n(805);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=n(584);
2Object.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 h=n(220);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 f=n(317);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 m=n(319);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=n(318);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=n(806);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]}}))}))},645:function(e,t,n){(function(e){e.installComponents=function(component,e){var n="function"==typeof component.exports?component.exports.extendOptions:component.options;for(var i in"function"==typeof component.exports&&(n.components=component.exports.options.components),n.components=n.components||{},e)n.components[i]=n.components[i]||e[i];n.functional&&function(component,e){if(component.exports[t])return;component.exports[t]=!0;var n=component.exports.render;component.exports.render=function(t,r){return n(t,Object.assign({},r,{_c:function(t,a,b){return r._c(e[t]||t,a,b)}}))}}(component,n.components)};var t="_functionalComponents"}).call(this,n(47))},65:function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return v}));var r=n(11),o=n(1),c=n(267),l={DEBUG:"DEBUG",INFO:"INFO",WARN:"WARN",ERROR:"ERROR",NONE:"NONE"},d={DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5},h={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 f(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(r.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,n){if("number"==typeof t){var r=this.codes.get(t);t=r?m(r,n):"Message code ".concat(t).concat(n?", with args: "+n.toString():"")}else n&&(t=m(t,n));if(this.options.prefix&&(t=this.options.prefix+" => "+t),this.logger)try{return void this.logger[e](t)}catch(e){}h[e](t)},e.prototype._shouldLog=function(e){return e>=this.logLevel},e}()},679:function(e,t,n){(function(e){function n(e,t){for(var n=0,i=e.length-1;i>=0;i--){var r=e[i];"."===r?e.splice(i,1):".."===r?(e.splice(i,1),n++):n&&(e.splice(i,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function filter(e,t){if(e.filter)return e.filter(t);for(var n=[],i=0;i<e.length;i++)t(e[i],i,e)&&n.push(e[i]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var path=i>=0?arguments[i]:e.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(t=path+"/"+t,r="/"===path.charAt(0))}return(r?"/":"")+(t=n(filter(t.split("/"),(function(p){return!!p})),!r).join("/"))||"."}
2,t.normalize=function(path){var e=t.isAbsolute(path),o="/"===r(path,-1);return(path=n(filter(path.split("/"),(function(p){return!!p})),!e).join("/"))||e||(path="."),path&&o&&(path+="/"),(e?"/":"")+path},t.isAbsolute=function(path){return"/"===path.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(filter(e,(function(p,e){if("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),c=r(n.split("/")),l=Math.min(o.length,c.length),d=l,i=0;i<l;i++)if(o[i]!==c[i]){d=i;break}var h=[];for(i=d;i<o.length;i++)h.push("..");return(h=h.concat(c.slice(d))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(path){if("string"!=typeof path&&(path+=""),0===path.length)return".";for(var code=path.charCodeAt(0),e=47===code,t=-1,n=!0,i=path.length-1;i>=1;--i)if(47===(code=path.charCodeAt(i))){if(!n){t=i;break}}else n=!1;return-1===t?e?"/":".":e&&1===t?"/":path.slice(0,t)},t.basename=function(path,e){var t=function(path){"string"!=typeof path&&(path+="");var i,e=0,t=-1,n=!0;for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!n){e=i+1;break}}else-1===t&&(n=!1,t=i+1);return-1===t?"":path.slice(e,t)}(path);return e&&t.substr(-1*e.length)===e&&(t=t.substr(0,t.length-e.length)),t},t.extname=function(path){"string"!=typeof path&&(path+="");for(var e=-1,t=0,n=-1,r=!0,o=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(47!==code)-1===n&&(r=!1,n=i+1),46===code?-1===e?e=i:1!==o&&(o=1):-1!==e&&(o=-1);else if(!r){t=i+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===t+1?"":path.slice(e,n)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(49))},707:function(e,t,n){"use strict";var r=n(106),o=n(708),c=n(486).Buffer,l=new Array(16);function d(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(e,t){return e<<t|e>>>32-t}function f(a,b,e,t,n,r,s){return h(a+(b&e|~b&t)+n+r|0,s)+b|0}function m(a,b,e,t,n,r,s){return h(a+(b&t|e&~t)+n+r|0,s)+b|0}function y(a,b,e,t,n,r,s){return h(a+(b^e^t)+n+r|0,s)+b|0}function v(a,b,e,t,n,r,s){return h(a+(e^(b|~t))+n+r|0,s)+b|0}r(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,n=this._d;a=f(a,b,t,n,e[0],3614090360,7),n=f(n,a,b,t,e[1],3905402710,12),t=f(t,n,a,b,e[2],606105819,17),b=f(b,t,n,a,e[3],3250441966,22),a=f(a,b,t,n,e[4],4118548399,7),n=f(n,a,b,t,e[5],1200080426,12),t=f(t,n,a,b,e[6],2821735955,17),b=f(b,t,n,a,e[7],4249261313,22),a=f(a,b,t,n,e[8],1770035416,7),n=f(n,a,b,t,e[9],2336552879,12),t=f(t,n,a,b,e[10],4294925233,17),b=f(b,t,n,a,e[11],2304563134,22),a=f(a,b,t,n,e[12],1804603682,7),n=f(n,a,b,t,e[13],4254626195,12),t=f(t,n,a,b,e[14],2792965006,17),a=m(a,b=f(b,t,n,a,e[15],1236535329,22),t,n,e[1],4129170786,5),n=m(n,a,b,t,e[6],3225465664,9),t=m(t,n,a,b,e[11],643717713,14),b=m(b,t,n,a,e[0],3921069994,20),a=m(a,b,t,n,e[5],3593408605,5),n=m(n,a,b,t,e[10],38016083,9),t=m(t,n,a,b,e[15],3634488961,14),b=m(b,t,n,a,e[4],3889429448,20),a=m(a,b,t,n,e[9],568446438,5),n=m(n,a,b,t,e[14],3275163606,9),t=m(t,n,a,b,e[3],4107603335,14),b=m(b,t,n,a,e[8],1163531501,20),a=m(a,b,t,n,e[13],2850285829,5),n=m(n,a,b,t,e[2],4243563512,9),t=m(t,n,a,b,e[7],1735328473,14),a=y(a,b=m(b,t,n,a,e[12],2368359562,20),t,n,e[5],4294588738,4),n=y(n,a,b,t,e[8],2272392833,11),t=y(t,n,a,b,e[11],1839030562,16),b=y(b,t,n,a,e[14],4259657740,23),a=y(a,b,t,n,e[1],2763975236,4),n=y(n,a,b,t,e[4],1272893353,11),t=y(t,n,a,b,e[7],4139469664,16),b=y(b,t,n,a,e[10],3200236656,23),a=y(a,b,t,n,e[13],681279174,4),n=y(n,a,b,t,e[0],3936430074,11),t=y(t,n,a,b,e[3],3572445317,16),b=y(b,t,n,a,e[6],76029189,23),a=y(a,b,t,n,e[9],3654602809,4),n=y(n,a,b,t,e[12],3873151461,11),t=y(t,n,a,b,e[15],530742520,16),a=v(a,b=y(b,t,n,a,e[2],3299628645,23),t,n,e[0],4096336452,6),n=v(n,a,b,t,e[7],1126891415,10),t=v(t,n,a,b,e[14],2878612391,15),b=v(b,t,n,a,e[5],4237533241,21),a=v(a,b,t,n,e[12],1700485571,6),n=v(n,a,b,t,e[3],2399980690,10),t=v(t,n,a,b,e[10],4293915773,15),b=v(b,t,n,a,e[1],2240044497,21),a=v(a,b,t,n,e[8],1873313359,6),n=v(n,a,b,t,e[15],4264355552,10),t=v(t,n,a,b,e[6],2734768916,15),b=v(b,t,n,a,e[13],1309151649,21),a=v(a,b,t,n,e[4],4149444226,6),n=v(n,a,b,t,e[11],3174756917,10),t=v(t,n,a,b,e[2],718787259,15),b=v(b,t,n,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+n|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},708:function(e,t,n){"use strict";var r=n(709).Buffer,o=n(713).Transform;function c(e){o.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(106)(c,o),c.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},c.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},c.prototype.update=function(data,e){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(data,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(data)||(data=r.from(data,e));for(var t=this._block,n=0;
vendor: 4,497 bytes, line 2
2this._blockOffset+data.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)t[i++]=data[n++];this._update(),this._blockOffset=0}for(;n<data.length;)t[this._blockOffset++]=data[n++];for(var o=0,c=8*data.length;c>0;++o)this._length[o]+=c,(c=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*c);return this},c.prototype._update=function(){throw new Error("_update is not implemented")},c.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},c.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=c},709:function(e,t,n){var r=n(143),o=r.Buffer;function c(e,t){for(var n in e)t[n]=e[n]}function l(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(c(r,t),t.Buffer=l),l.prototype=Object.create(o.prototype),c(o,l),l.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},l.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},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 r.SlowBuffer(e)}},710:function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,i,n=l(e),r=n[0],d=n[1],h=new c(function(e,t,n){return 3*(t+n)/4-n}(0,r,d)),f=0,m=d>0?r-4:r;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)],h[f++]=t>>16&255,h[f++]=t>>8&255,h[f++]=255&t;2===d&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,h[f++]=255&t);1===d&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,h[f++]=t>>8&255,h[f++]=255&t);return h},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,c=[],l=16383,i=0,h=n-o;i<h;i+=l)c.push(d(e,i,i+l>h?h:i+l));1===o?(t=e[n-1],c.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],c.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return c.join("")};for(var r=[],o=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)r[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 n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var o,c,output=[],i=t;i<n;i+=3)o=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),output.push(r[(c=o)>>18&63]+r[c>>12&63]+r[c>>6&63]+r[63&c]);return output.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},711:function(e,t){t.read=function(e,t,n,r,o){var c,l,d=8*o-r-1,h=(1<<d)-1,f=h>>1,m=-7,i=n?o-1:0,y=n?-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+=r;m>0;l=256*l+e[t+i],i+=y,m-=8);if(0===c)c=1-f;else{if(c===h)return l?NaN:1/0*(s?-1:1);l+=Math.pow(2,r),c-=f}return(s?-1:1)*l*Math.pow(2,c-r)},t.write=function(e,t,n,r,o,c){var l,d,h,f=8*c-o-1,m=(1<<f)-1,y=m>>1,rt=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,i=r?0:c-1,v=r?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*(h=Math.pow(2,-l))<1&&(l--,h*=2),(t+=l+y>=1?rt/h:rt*Math.pow(2,1-y))*h>=2&&(l++,h/=2),l+y>=m?(d=0,l=m):l+y>=1?(d=(t*h-1)*Math.pow(2,o),l+=y):(d=t*Math.pow(2,y-1)*Math.pow(2,o),l=0));o>=8;e[n+i]=255&d,i+=v,d/=256,o-=8);for(l=l<<o|d,f+=o;f>0;e[n+i]=255&l,i+=v,l/=256,f-=8);e[n+i-v]|=128*s}},712:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},713:function(e,t,n){(t=e.exports=n(479)).Stream=t,t.Readable=t,t.Writable=n(484),t.Duplex=n(145),t.Transform=n(487),t.PassThrough=n(720),t.finished=n(306),t.pipeline=n(721)},715:function(e,t,n){"use strict";function r(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
vendor: 4,470 bytes, line 2
2i%2?r(Object(source),!0).forEach((function(t){c(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):r(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}function c(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(input,e){if("object"!=typeof input||null===input)return input;var t=input[Symbol.toPrimitive];if(void 0!==t){var n=t.call(input,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(input)}(e,"string");return"symbol"==typeof t?t:String(t)}var h=n(143).Buffer,f=n(716).inspect,m=f&&f.custom||"inspect";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}var t,n,r;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(s){if(0===this.length)return"";for(var p=this.head,e=""+p.data;p=p.next;)e+=s+p.data;return e}},{key:"concat",value:function(e){if(0===this.length)return h.alloc(0);for(var t,n,r,o=h.allocUnsafe(e>>>0),p=this.head,i=0;p;)t=p.data,n=o,r=i,h.prototype.copy.call(t,n,r),i+=p.data.length,p=p.next;return o}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var p=this.head,t=1,n=p.data;for(e-=n.length;p=p.next;){var r=p.data,o=e>r.length?r.length:e;if(o===r.length?n+=r:n+=r.slice(0,e),0===(e-=o)){o===r.length?(++t,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++t}return this.length-=t,n}},{key:"_getBuffer",value:function(e){var t=h.allocUnsafe(e),p=this.head,n=1;for(p.data.copy(t),e-=p.data.length;p=p.next;){var r=p.data,o=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,o),0===(e-=o)){o===r.length?(++n,p.next?this.head=p.next:this.head=this.tail=null):(this.head=p,p.data=r.slice(o));break}++n}return this.length-=n,t}},{key:m,value:function(e,t){return f(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&l(t.prototype,n),r&&l(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},717:function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(47))},718:function(e,t,n){"use strict";(function(t){var r;function o(e,t,n){return(t=function(e){var t=function(input,e){if("object"!=typeof input||null===input)return input;var t=input[Symbol.toPrimitive];if(void 0!==t){var n=t.call(input,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(input)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n(306),l=Symbol("lastResolve"),d=Symbol("lastReject"),h=Symbol("error"),f=Symbol("ended"),m=Symbol("lastPromise"),y=Symbol("handlePromise"),v=Symbol("stream");function _(e,t){return{value:e,done:t}}function E(e){var t=e[l];if(null!==t){var data=e[v].read();null!==data&&(e[m]=null,e[l]=null,e[d]=null,t(_(data,!1)))}}function T(e){t.nextTick(E,e)}var A=Object.getPrototypeOf((function(){}
2)),w=Object.setPrototypeOf((o(r={get stream(){return this[v]},next:function(){var e=this,n=this[h];if(null!==n)return Promise.reject(n);if(this[f])return Promise.resolve(_(void 0,!0));if(this[v].destroyed)return new Promise((function(n,r){t.nextTick((function(){e[h]?r(e[h]):n(_(void 0,!0))}))}));var r,o=this[m];if(o)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[f]?n(_(void 0,!0)):t[y](n,r)}),r)}}(o,this));else{var data=this[v].read();if(null!==data)return Promise.resolve(_(data,!1));r=new Promise(this[y])}return this[m]=r,r}},Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var e=this;return new Promise((function(t,n){e[v].destroy(null,(function(e){e?n(e):t(_(void 0,!0))}))}))})),r),A);e.exports=function(e){var t,n=Object.create(w,(o(t={},v,{value:e,writable:!0}),o(t,l,{value:null,writable:!0}),o(t,d,{value:null,writable:!0}),o(t,h,{value:null,writable:!0}),o(t,f,{value:e._readableState.endEmitted,writable:!0}),o(t,y,{value:function(e,t){var data=n[v].read();data?(n[m]=null,n[l]=null,n[d]=null,e(_(data,!1))):(n[l]=e,n[d]=t)},writable:!0}),t));return n[m]=null,c(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[d];return null!==t&&(n[m]=null,n[l]=null,n[d]=null,t(e)),void(n[h]=e)}var r=n[l];null!==r&&(n[m]=null,n[l]=null,n[d]=null,r(_(void 0,!0))),n[f]=!0})),e.on("readable",T.bind(null,n)),n}}).call(this,n(49))},719:function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},720:function(e,t,n){"use strict";e.exports=o;var r=n(487);function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}n(106)(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},721:function(e,t,n){"use strict";var r;var o=n(144).codes,c=o.ERR_MISSING_ARGS,l=o.ERR_STREAM_DESTROYED;function d(e){if(e)throw e}function h(e){e()}function f(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var m,y=function(e){return e.length?"function"!=typeof e[e.length-1]?d:e.pop():d}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new c("streams");var v=t.map((function(e,i){var o=i<t.length-1;return function(e,t,o,c){c=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(c);var d=!1;e.on("close",(function(){d=!0})),void 0===r&&(r=n(306)),r(e,{readable:t,writable:o},(function(e){if(e)return c(e);d=!0,c()}));var h=!1;return function(t){if(!d&&!h)return h=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void c(t||new l("pipe"))}}(e,o,i>0,(function(e){m||(m=e),e&&v.forEach(h),o||(v.forEach(h),y(m))}))}));return t.reduce(f)}},725:function(e,t,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var d=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$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=r},726:function(e,t,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,c=r(),l=c.default;void 0===l&&(l=[]);var d=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$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=r},736:function(e,t,n){e.exports={}},737:function(e,t,n){e.exports={}},738:function(e,t,n){e.exports={}},740:function(e,t,n){(function(e,r){var o;!function(){var c=t,l=(e&&e.exports,"object"==typeof r&&r);l.global!==l&&l.window;var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=/[\x01-\x7F]/g,f=/[\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])/,T=/[\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: 13,859 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|bn
vendor: 5,447 bytes, line 2
2ot|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,w={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:"∽",b
vendor: 26,255 bytes, line 2
2sime:"⋍",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,902 bytes, line 2
2S={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:"ÿ"},O={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,P={}.hasOwnProperty,N=function(object,e){return P.call(object,e)},D=function(e,t){if(!e)return t;var n,r={};for(n in t)r[n]=N(e,n)?e[n]:t[n];return r},R=function(e,t){var output="";return e>=55296&&e<=57343||e>1114111?(t&&x("character reference outside the permissible Unicode range"),"�"):N(O,e)?(t&&x("disallowed character reference"),O[e]):(t&&function(e,t){for(var n=-1,r=e.length;++n<r;)if(e[n]==t)return!0;return!1}(I,e)&&x("disallowed character reference"),e>65535&&(output+=C((e-=65536)>>>10&1023|55296),e=56320|1023&e),output+=C(e))},L=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},k=function(e){return"&#"+e+";"},x=function(e){throw Error("Parse error: "+e)},M=function(e,t){(t=D(t,M.options)).strict&&T.test(e)&&x("forbidden code point");var n=t.encodeEverything,r=t.useNamedReferences,o=t.allowUnsafeSymbols,c=t.decimal?k:L,l=function(symbol){return c(symbol.charCodeAt(0))};return n?(e=e.replace(h,(function(symbol){return r&&N(y,symbol)?"&"+y[symbol]+";":l(symbol)})),r&&(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),r&&(e=e.replace(m,(function(e){return"&"+y[e]+";"})))):r?(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),n=e.charCodeAt(1);return c(1024*(t-55296)+n-56320+65536)})).replace(f,l)};M.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var U=function(html,e){var t=(e=D(e,U.options)).strict;return t&&E.test(html)&&x("malformed character reference"),html.replace(A,(function(n,r,o,c,l,d,h,f,m){var y,v,_,E,T,A;return r?w[T=r]:o?(T=o,(A=c)&&e.isAttributeValue?(t&&"="==A&&x("`&` did n
2ot start a character reference"),n):(t&&x("named character reference was not terminated by a semicolon"),S[T]+(A||""))):l?(_=l,v=d,t&&!v&&x("character reference was not terminated by a semicolon"),y=parseInt(_,10),R(y,t)):h?(E=h,v=f,t&&!v&&x("character reference was not terminated by a semicolon"),y=parseInt(E,16),R(y,t)):(t&&x("named character reference was not terminated by a semicolon"),n)}))};U.options={isAttributeValue:!1,strict:!1};var F={version:"1.2.0",encode:M,decode:U,escape:function(e){return e.replace(v,(function(e){return _[e]}))},unescape:U};void 0===(o=function(){return F}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(741)(e),n(47))},742:function(e,t,n){"use strict";function r(e,t=100,n={}){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 n)throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:r}=n;let o,c,l,d,h;function f(){const t=o,n=c;return o=void 0,c=void 0,h=e.apply(t,n),h}function m(){const e=Date.now()-d;e<t&&e>=0?l=setTimeout(m,t-e):(l=void 0,r||(h=f()))}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 n=r&&!l;if(l||(l=setTimeout(m,t)),n)return h=f(),h};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=()=>{h=f(),y.clear()},y}n.r(t),n.d(t,"default",(function(){return r}))},789:function(e,t,n){"use strict";n(12),n(8),n(15),n(18),n(10),n(9);var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.startRegistration=function(e){return T.apply(this,arguments)},n(22),n(24),n(5);var o=r(n(19)),c=r(n(23)),l=n(317),d=n(220),h=n(172),f=n(581),m=n(802),y=n(319),v=n(583);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(){return(T=(0,c.default)(regeneratorRuntime.mark((function e(t){var n,r,o,c,_,T,w,S,O,I,C,P,N,D,R,L,k,x;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.optionsJSON&&t.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."),t={optionsJSON:t}),o=(r=t).optionsJSON,c=r.useAutoRegister,_=void 0!==c&&c,(0,h.browserSupportsWebAuthn)()){e.next=4;break}throw new Error("WebAuthn is not supported in this browser");case 4:return T=E(E({},o),{},{challenge:(0,d.base64URLStringToBuffer)(o.challenge),user:E(E({},o.user),{},{id:(0,d.base64URLStringToBuffer)(o.user.id)}),excludeCredentials:null===(n=o.excludeCredentials)||void 0===n?void 0:n.map(f.toPublicKeyCredentialDescriptor)}),w={},_&&(w.mediation="conditional"),w.publicKey=T,w.signal=y.WebAuthnAbortService.createNewAbortSignal(),e.prev=9,e.next=12,navigator.credentials.create(w);case 12:S=e.sent,e.next=18;break;case 15:throw e.prev=15,e.t0=e.catch(9),(0,m.identifyRegistrationError)({error:e.t0,options:w});case 18:if(S){e.next=20;break}throw new Error("Registration was not completed");
2case 20:if(I=(O=S).id,C=O.rawId,P=O.response,N=O.type,D=void 0,"function"==typeof P.getTransports&&(D=P.getTransports()),R=void 0,"function"==typeof P.getPublicKeyAlgorithm)try{R=P.getPublicKeyAlgorithm()}catch(e){A("getPublicKeyAlgorithm()",e)}if(L=void 0,"function"==typeof P.getPublicKey)try{null!==(k=P.getPublicKey())&&(L=(0,l.bufferToBase64URLString)(k))}catch(e){A("getPublicKey()",e)}if("function"==typeof P.getAuthenticatorData)try{x=(0,l.bufferToBase64URLString)(P.getAuthenticatorData())}catch(e){A("getAuthenticatorData()",e)}return e.abrupt("return",{id:I,rawId:(0,l.bufferToBase64URLString)(C),response:{attestationObject:(0,l.bufferToBase64URLString)(P.attestationObject),clientDataJSON:(0,l.bufferToBase64URLString)(P.clientDataJSON),transports:D,publicKeyAlgorithm:R,publicKey:L,authenticatorData:x},type:N,clientExtensionResults:S.getClientExtensionResults(),authenticatorAttachment:(0,v.toAuthenticatorAttachment)(S.authenticatorAttachment)});case 29:case"end":return e.stop()}}),e,null,[[9,15]])})))).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)}},802:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identifyRegistrationError=function(e){var t=e.error,n=e.options,c=n.publicKey;if(!c)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(n.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,h;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"===n.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===(h=c.authenticatorSelection)||void 0===h?void 0:h.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((function(param){return"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 f=globalThis.location.hostname;if(!(0,r.isValidDomain)(f))return new o.WebAuthnError({message:"".concat(globalThis.location.hostname," is an invalid domain"),code:"ERROR_INVALID_DOMAIN",cause:t});if(c.rp.id!==f)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_ER
2ROR",cause:t})}return t},n(8),n(16),n(5),n(151);var r=n(582),o=n(318)},803:function(e,t,n){"use strict";n(12),n(8),n(15),n(18),n(10),n(9);var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.startAuthentication=function(e){return A.apply(this,arguments)},n(22),n(24),n(5);var o=r(n(19)),c=r(n(23)),l=n(317),d=n(220),h=n(172),f=n(584),m=n(581),y=n(804),v=n(319),_=n(583);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(){return(A=(0,c.default)(regeneratorRuntime.mark((function e(t){var n,r,o,c,E,A,w,S,O,I,C,P,N,D,R,L,k,x;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.optionsJSON&&t.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."),t={optionsJSON:t}),o=(r=t).optionsJSON,c=r.useBrowserAutofill,E=void 0!==c&&c,A=r.verifyBrowserAutofillInput,w=void 0===A||A,(0,h.browserSupportsWebAuthn)()){e.next=4;break}throw new Error("WebAuthn is not supported in this browser");case 4:if(0!==(null===(n=o.allowCredentials)||void 0===n?void 0:n.length)&&(S=null===(O=o.allowCredentials)||void 0===O?void 0:O.map(m.toPublicKeyCredentialDescriptor)),I=T(T({},o),{},{challenge:(0,d.base64URLStringToBuffer)(o.challenge),allowCredentials:S}),C={},!E){e.next=17;break}return e.next=10,(0,f.browserSupportsWebAuthnAutofill)();case 10:if(e.sent){e.next=12;break}throw Error("Browser does not support WebAuthn autofill");case 12:if(!(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&w)){e.next=15;break}throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');case 15:C.mediation="conditional",I.allowCredentials=[];case 17:return C.publicKey=I,C.signal=v.WebAuthnAbortService.createNewAbortSignal(),e.prev=19,e.next=22,navigator.credentials.get(C);case 22:P=e.sent,e.next=28;break;case 25:throw e.prev=25,e.t0=e.catch(19),(0,y.identifyAuthenticationError)({error:e.t0,options:C});case 28:if(P){e.next=30;break}throw new Error("Authentication was not completed");case 30:return D=(N=P).id,R=N.rawId,L=N.response,k=N.type,x=void 0,L.userHandle&&(x=(0,l.bufferToBase64URLString)(L.userHandle)),e.abrupt("return",{id:D,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:k,clientExtensionResults:P.getClientExtensionResults(),authenticatorAttachment:(0,_.toAuthenticatorAttachment)(P.authenticatorAttachment)});case 34:case"end":return e.stop()}}),e,null,[[19,25]])})))).apply(this,arguments)}},804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identifyAuthenticationError=function(e){var t=e.error,n=e.options,c=n.publicKey;if(!c)throw Error("options was missing required publicKey property");if("AbortError"===t.name){if(n.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,r.isValidDomain)(l))return new o.WebAuthnError({message:"".concat(globalThis.location.hostname," is an invali
2d 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},n(16),n(151);var r=n(582),o=n(318)},805:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.platformAuthenticatorIsAvailable=function(){if(!(0,r.browserSupportsWebAuthn)())return new Promise((function(e){return e(!1)}));return PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()},n(5);var r=n(172)},806:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},825:function(e,t,n){var r=n(826),o=r.defu,c=r.createDefu,l=r.defuFn,d=r.defuArrayFn;e.exports=o,e.exports.defu=o,e.exports.default=o,e.exports.createDefu=c,e.exports.defuFn=l,e.exports.defuArrayFn=d},826:function(e,t,n){"use strict";var r=n(627),o=n(80);function c(e){if(null===e||"object"!==o(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 l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",o=arguments.length>3?arguments[3]:void 0;if(!c(t))return l(e,{},n,o);var object=Object.assign({},t);for(var d in e)if("__proto__"!==d&&"constructor"!==d){var h=e[d];null!=h&&(o&&o(object,d,h,n)||(Array.isArray(h)&&Array.isArray(object[d])?object[d]=[].concat(r(h),r(object[d])):c(h)&&c(object[d])?object[d]=l(h,object[d],(n?"".concat(n,"."):"")+d.toString(),o):object[d]=h))}return object}function d(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(p,t){return l(p,t,"",e)}),{})}}n(46),n(637),n(13),n(638),n(639),n(640),n(5),n(30),n(26),n(33),Object.defineProperty(t,"__esModule",{value:!0});var h=d(),f=d((function(object,e,t){if(void 0!==object[e]&&"function"==typeof t)return object[e]=t(object[e]),!0})),m=d((function(object,e,t){if(Array.isArray(object[e])&&"function"==typeof t)return object[e]=t(object[e]),!0}));t.createDefu=d,t.default=h,t.defu=h,t.defuArrayFn=m,t.defuFn=f},832:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(29),n(39);t.default=function(e){var t=(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&e.headers?e.headers["x-forwarded-proto"]:void 0,n="string"==typeof t?t.includes("https"):void 0;if(n)return!0;var r=e.connection?e.connection.encrypted:void 0,o=void 0!==r?!0===r:void 0;return!!o||void 0===n&&void 0===o&&void 0}},845:function(e,t,n){"use strict";n.r(t);var r=["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 h(e){return"string"==typeof e}var f=Object.prototype.toString;function m(e){return"[object Object]"===f.call(e)}function y(e){return null==e}function v(e){return"function"==typeof e}function _(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=null,r=null;return 1===e.length?d(e[0])||l(e[0])?r=e[0]:"string"==typeof e[0]&&(n=e[0]):2===e.length&&("string"==typeof e[0]&&(n=e[0]),(d(e[1])||l(e[1]))&&(r=e[1])),{locale:n,params:r}}function E(e){return JSON.parse(JSON.stringify(e))}function T(e,t){return!!~e.indexOf(t)}var A=Object.prototype.hasOwnProperty;function w(e,t){return A.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 n=void 0;for(n in source)w(source,n)&&(d(source[n])?output[n]=S(output[n],source[n]):output[n]=source[n])}}return output}function O(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 n=l(a),r=l(b);if(n&&r)return a.length===b.length&&a.every((function(e,i){return O(e,b[i])}));if(n||r)return!1;var o=Object.keys(a),c=Object.keys(b);return o.length===c.length&&o.every((function(e){return O(a[e],b[e])}))}catch(e){return!1}}var I={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,n=t.parent,r=t.props,o=t.slots,c=n.$i18n;if(c){var path=r.path,l=r.locale,d=r.places,h=o(),f=c.i(path,l,function(e){var t;for(t in e)if("default"!==t)return!1;return Boolean(t)}(h)||d?function(e,t){var n=t?function(e){0;return Array.isArray(e)?e.reduce(P,{}):Object.assign({},e)}(t):{};if(!e)return n;e=e.filter((function(e){return e.tag||""!==e.text.trim()}));var r=e.every(N);0;return e.reduce(r?C:P,n)}(h.default,d):h),m=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return m?e(m,data,f):f}}};function C(e,t){return t.data&&t.data.attrs&&t.data.attrs.place&&(e[t.data.attrs.place]=t),e}function P(e,t,n){return e[n]=t,e}function N(e){return Boolean(e.data&&e.data.attrs&&e.data.attrs.place)}var D,R={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 n=t.props,o=t.parent,data=t.data,c=o.$i18n;if(!c)return null;var l=null,f=null;h(n.format)?l=n.format:d(n.format)&&(n.format.key&&(l=n.format.key),f=Object.keys(n.format).reduce((function(e,t){var o;return T(r,t)?Object.assign({},e,((o={})[t]=n.format[t],o)):e}),null));var m=n.locale||c.locale,y=c._ntp(n.value,m,l,f),v=y.map((function(e,t){var n,slot=data.scopedSlots&&data.scopedSlots[e.type];return slot?slot(((n={})[e.type]=e.value,n.index=t,n.parts=y,n)):e.value})),_=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return _?e(_,{attrs:data.attrs,class:data.class,staticClass:data.staticClass},v):v}};
2function L(e,t,n){M(e,n)&&U(e,t,n)}function k(e,t,n,r){if(M(e,n)){var o=n.context.$i18n;(function(e,t){var n=t.context;return e._locale===n.$i18n.locale})(e,n)&&O(t.value,t.oldValue)&&O(e._localeMessage,o.getLocaleMessage(o.locale))||U(e,t,n)}}function x(e,t,n,r){if(n.context){var o=n.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 M(e,t){var n=t.context;return n?!!n.$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,n){var r,o,l=function(e){var path,t,n,r;h(e)?path=e:m(e)&&(path=e.path,t=e.locale,n=e.args,r=e.choice);return{path:path,locale:t,args:n,choice:r}}(t.value),path=l.path,d=l.locale,f=l.args,y=l.choice;if(path||d||f)if(path){var v=n.context;e._vt=e.textContent=null!=y?(r=v.$i18n).tc.apply(r,[path,y].concat(F(d,f))):(o=v.$i18n).t.apply(o,[path].concat(F(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 F(e,t){var n=[];return e&&n.push(e),t&&(Array.isArray(t)||m(t))&&n.push(t),n}function j(e,t){void 0===t&&(t={bridge:!1}),j.installed=!0;(D=e).version&&Number(D.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=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),this].concat(t))},e.prototype.$tc=function(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var o=this.$i18n;return o._tc.apply(o,[e,o.locale,o._getMessages(),this,t].concat(n))},e.prototype.$te=function(e,t){var n=this.$i18n;return n._te(e,n.locale,n._getMessages(),t)},e.prototype.$d=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).d.apply(t,[e].concat(n))},e.prototype.$n=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this.$i18n).n.apply(t,[e].concat(n))}})(D),D.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:{};(e.__i18nBridge||e.__i18n).forEach((function(e){t=S(t,JSON.parse(e))})),Object.keys(t).forEach((function(n){e.i18n.mergeLocaleMessage(n,t[n])}))}catch(e){}this._i18n=e.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(m(e.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ne?this.$root.$i18n:null;if(n&&(e.i18n.root=this.$root,e.i18n.formatter=n.formatter,e.i18n.fallbackLocale=n.fallbackLocale,e.i18n.formatFallbackMessages=n.formatFallbackMessages,e.i18n.silentTranslationWarn=n.silentTranslationWarn,e.i18n.silentFallbackWarn=n.silentFallbackWarn,e.i18n.pluralizationRules=n.pluralizationRules,e.i18n.preserveDirectiveContent=n.preserveDirectiveContent),e.__i18nBridge||e.__i18n)try{var r=e.i18n&&e.i18n.messages?e.i18n.messages:{};(e.__i18nBridge||e.__i18n).forEach((function(e){r=S(r,JSON.parse(e))})),e.i18n.messages=r}catch(e){}var o=e.i18n.sharedMessages;o&&m(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()),n&&n.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||m(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)),D.directive("t",{bind:L,update:k,unbind:x}),D.component(I.name,I),D.component(R.name,R),D.config.optionMergeStrategies.i18n=function(e,t){return void 0===t?e:t}}var V=function(){this._caches=Object.create(null)};V.prototype.interpolate=function(e,t){if(!t)return[e];var n=this._caches[e];return n||(n=function(e){var t=[],n=0,text="";for(;n<e.length;){var r=e[n++];if("{"===r){text&&t.push({type:"text",value:text}),text="";var sub="";for(r=e[n++];void 0!==r&&"}"!==r;)sub+=r,r=e[n++];var o="}"===r,c=B.test(sub)?"list":o&&Y.test(sub)?"named":"unknown";t.push({value:sub,type:c})}else"%"===r?"{"!==e[n]&&(text+=r):text+=r}return text&&t.push({type:"text",value:text}),t}(e),this._caches[e]=n),function(e,t){var n=[],r=0,o=Array.isArray(t)?"list":d(t)?"named":"unknown";if("unknown"===o)return n;for(;r<e.length;){var c=e[r];switch(c.type){case"text":n.push(c.value);break;case"list":n.push(t[parseInt(c.value,10)]);break;case"named":"named"===o&&n.push(t[c.value])}r++}return n}(n,t)};var B=/^(?:\d)+/,Y=/^(?:\w)+/;var H=[];H[0]={ws:[0],ident:[3,0],"[":[4],eof:[7]},H[1]={ws:[1],".":[2],"[":[4],eof:[7]},H[2]={ws:[2],ident:[3,0],0:[3,0],number:[3,0]},H[3]={ident:[3,0],0:[3,0],number:[3,0],ws:[1,1],".":[2,1],"[":[4,1],eof:[7,1]},H[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],eof:8,else:[4,0]},H[5]={"'":[4,0],eof:8,else:[5,0]},H[6]={'"':[4,0],eof:8,else:[6,0]};var $=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function z(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,n=path.trim();
2return("0"!==path.charAt(0)||!isNaN(path))&&(t=n,$.test(t)?(a=(e=n).charCodeAt(0))!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1):"*"+n)}var W=function(){this._cache=Object.create(null)};W.prototype.parsePath=function(path){var e=this._cache[path];return e||(e=function(path){var e,t,n,r,o,c,l,d=[],h=-1,f=0,m=0,y=[];function v(){var e=path[h+1];if(5===f&&"'"===e||6===f&&'"'===e)return h++,n="\\"+e,y[0](),!0}for(y[1]=function(){void 0!==t&&(d.push(t),t=void 0)},y[0]=function(){void 0===t?t=n:t+=n},y[2]=function(){y[0](),m++},y[3]=function(){if(m>0)m--,f=4,y[0]();else{if(m=0,void 0===t)return!1;if(!1===(t=K(t)))return!1;y[1]()}};null!==f;)if(h++,"\\"!==(e=path[h])||!v()){if(r=z(e),8===(o=(l=H[f])[r]||l.else||8))return;if(f=o[0],(c=y[o[1]])&&(n=void 0===(n=o[2])?e:n,!1===c()))return;if(7===f)return d}}(path),e&&(this._cache[path]=e)),e||[]},W.prototype.getPathValue=function(e,path){if(!d(e))return null;var t=this.parsePath(path);if(0===t.length)return null;for(var n=t.length,r=e,i=0;i<n;){var o=r[t[i]];if(null==o)return null;r=o,i++}return r};var G,Q=/<\/?[\w\s="/.':;#-\/]+>/,X=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,Z=/^@(?:\.([a-zA-Z]+))?:/,J=/[()]/g,ee={upper:function(e){return e.toLocaleUpperCase()},lower:function(e){return e.toLocaleLowerCase()},capitalize:function(e){return""+e.charAt(0).toLocaleUpperCase()+e.substr(1)}},te=new V,ne=function(e){var t=this;void 0===e&&(e={}),!D&&"undefined"!=typeof window&&window.Vue&&j(window.Vue);var n=e.locale||"en-US",r=!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||te,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 W,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,n){var r=Object.getPrototypeOf(t);if(r&&r.getChoiceIndex)return r.getChoiceIndex.call(t,e,n);var o,c;return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[e,n]):(o=e,c=n,o=Math.abs(o),2===c?o?o>1?1:0:1:o?Math.min(o,2):0)},this._exist=function(e,n){return!(!e||!n)&&(!y(t._path.getPathValue(e,n))||!!e[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(o).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,o[e])})),this._initVM({locale:n,fallbackLocale:r,messages:o,dateTimeFormats:c,numberFormats:l})},re={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,n){var r=function(e,t,n,o){if(m(n))Object.keys(n).forEach((function(c){var l=n[c];m(l)?(o.push(c),o.push("."),r(e,t,l,o),o.pop(),o.pop()):(o.push(c),r(e,t,l,o),o.pop())}));else if(l(n))n.forEach((function(n,c){m(n)?(o.push("["+c+"]"),o.push("."),r(e,t,n,o),o.pop(),o.pop()):(o.push("["+c+"]"),r(e,t,n,o),o.pop())}));else if(h(n)){if(Q.test(n)){var d="Detected HTML in message '"+n+"' of keypath '"+o.join("")+"' at '"+t+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";
2"warn"===e?c(d):"error"===e&&function(e,t){"undefined"!=typeof console&&(console.error("[vue-i18n] "+e),t&&console.error(t.stack))}(d)}}};r(t,e,n,[])},ne.prototype._initVM=function(data){var e=D.config.silent;D.config.silent=!0,this._vm=new D({data:data,__VUE18N__INSTANCE__:!0}),D.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,n,r=(t=e._dataListeners,n=[],t.forEach((function(a){return n.push(a)})),n),i=r.length;i--;)D.nextTick((function(){r[i]&&r[i].$forceUpdate()}))}),{deep:!0})},ne.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var t=this,n=this._vm;return this.vm.$watch("locale",(function(r){n.$set(n,"locale",r),t.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=r),n.$forceUpdate()}),{immediate:!0})}if(!this._sync||!this._root)return null;var r=this._vm;return this._root.$i18n.vm.$watch("locale",(function(e){r.$set(r,"locale",e),r.$forceUpdate()}),{immediate:!0})},ne.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)},re.vm.get=function(){return this._vm},re.messages.get=function(){return E(this._getMessages())},re.dateTimeFormats.get=function(){return E(this._getDateTimeFormats())},re.numberFormats.get=function(){return E(this._getNumberFormats())},re.availableLocales.get=function(){return Object.keys(this.messages).sort()},re.locale.get=function(){return this._vm.locale},re.locale.set=function(e){this._vm.$set(this._vm,"locale",e)},re.fallbackLocale.get=function(){return this._vm.fallbackLocale},re.fallbackLocale.set=function(e){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",e)},re.formatFallbackMessages.get=function(){return this._formatFallbackMessages},re.formatFallbackMessages.set=function(e){this._formatFallbackMessages=e},re.missing.get=function(){return this._missing},re.missing.set=function(e){this._missing=e},re.formatter.get=function(){return this._formatter},re.formatter.set=function(e){this._formatter=e},re.silentTranslationWarn.get=function(){return this._silentTranslationWarn},re.silentTranslationWarn.set=function(e){this._silentTranslationWarn=e},re.silentFallbackWarn.get=function(){return this._silentFallbackWarn},re.silentFallbackWarn.set=function(e){this._silentFallbackWarn=e},re.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},re.preserveDirectiveContent.set=function(e){this._preserveDirectiveContent=e},re.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},re.warnHtmlInMessage.set=function(e){var t=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=e,n!==e&&("warn"===e||"error"===e)){var r=this._getMessages();Object.keys(r).forEach((function(e){t._checkLocaleMessage(e,t._warnHtmlInMessage,r[e])}))}},re.postTranslation.get=function(){return this._postTranslation},re.postTranslation.set=function(e){this._postTranslation=e},re.sync.get=function(){return this._sync},re.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,n,r,o,c){if(!y(n))return n;if(this._missing){var l=this._missing.apply(null,[e,t,r,o]);if(h(l))return l}else 0;if(this._formatFallbackMessages){var d=_.apply(void 0,o);return this._render(t,c,d.params,t)}return t},ne.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:y(e))&&!y(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)}
2,ne.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn},ne.prototype._interpolate=function(e,t,n,r,o,c,d){if(!t)return null;var f,_=this._path.getPathValue(t,n);if(l(_)||m(_))return _;if(y(_)){if(!m(t))return null;if(!h(f=t[n])&&!v(f))return null}else{if(!h(_)&&!v(_))return null;f=_}return h(f)&&(f.indexOf("@:")>=0||f.indexOf("@.")>=0)&&(f=this._link(e,t,f,r,"raw",c,d)),this._render(f,o,c,n)},ne.prototype._link=function(e,t,n,r,o,c,d){var h=n,f=h.match(X);for(var m in f)if(f.hasOwnProperty(m)){var link=f[m],y=link.match(Z),v=y[0],_=y[1],E=link.replace(v,"").replace(J,"");if(T(d,E))return h;d.push(E);var A=this._interpolate(e,t,E,r,"raw"===o?"string":o,"raw"===o?void 0:c,d);if(this._isFallbackRoot(A)){if(!this._root)throw Error("unexpected error");var w=this._root.$i18n;A=w._translate(w._getMessages(),w.locale,w.fallbackLocale,E,r,o,c)}A=this._warnDefault(e,E,A,r,l(c)?c:[c],o),this._modifiers.hasOwnProperty(_)?A=this._modifiers[_](A):ee.hasOwnProperty(_)&&(A=ee[_](A)),d.pop(),h=A?h.replace(link,A):h}return h},ne.prototype._createMessageContext=function(e,t,path,n){var r=this,o=l(e)?e:[],c=d(e)?e:{},h=this._getMessages(),f=this.locale;return{list:function(e){return o[e]},named:function(e){return c[e]},values:e,formatter:t,path:path,messages:h,locale:f,linked:function(e){return r._interpolate(f,h[f]||{},e,null,n,void 0,[e])}}},ne.prototype._render=function(e,t,n,path){if(v(e))return e(this._createMessageContext(n,this._formatter||te,path,t));var r=this._formatter.interpolate(e,n,path);return r||(r=te.interpolate(e,n,path)),"string"!==t||h(r)?r:r.join("")},ne.prototype._appendItemToChain=function(e,t,n){var r=!1;return T(e,t)||(r=!0,t&&(r="!"!==t[t.length-1],t=t.replace(/!/g,""),e.push(t),n&&n[t]&&(r=n[t]))),r},ne.prototype._appendLocaleToChain=function(e,t,n){var r,o=t.split("-");do{var c=o.join("-");r=this._appendItemToChain(e,c,n),o.splice(-1,1)}while(o.length&&!0===r);return r},ne.prototype._appendBlockToChain=function(e,t,n){for(var r=!0,i=0;i<t.length&&"boolean"==typeof r;i++){var o=t[i];h(o)&&(r=this._appendLocaleToChain(e,o,n))}return r},ne.prototype._getLocaleChain=function(e,t){if(""===e)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[e];if(!n){t||(t=this.fallbackLocale),n=[];for(var r,o=[e];l(o);)o=this._appendBlockToChain(n,o,t);(o=h(r=l(t)?t:d(t)?t.default?t.default:null:t)?[r]:r)&&this._appendBlockToChain(n,o,null),this._localeChainCache[e]=n}return n},ne.prototype._translate=function(e,t,n,r,o,c,l){for(var d,h=this._getLocaleChain(t,n),i=0;i<h.length;i++){var f=h[i];if(!y(d=this._interpolate(f,e[f],r,o,c,l,[r])))return d}return null},ne.prototype._t=function(e,t,n,r){for(var o,c=[],l=arguments.length-4;l-- >0;)c[l]=arguments[l+4];if(!e)return"";var d,h=_.apply(void 0,c);this._escapeParameterHtml&&(h.params=(null!=(d=h.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 f=h.locale||t,m=this._translate(n,f,this.fallbackLocale,e,r,"string",h.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(f,e,m,r,c,"string"),this._postTranslation&&null!=m&&(m=this._postTranslation(m,e)),m},ne.prototype.t=function(e){for(var t,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(n))},ne.prototype._i=function(e,t,n,r,o){var c=this._translate(n,t,this.fallbackLocale,e,r,"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,r,[o],"raw")},ne.prototype.i=function(e,t,n){return e?(h(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,n)):""},ne.prototype._tc=function(e,t,n,r,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 h={count:o,n:o},f=_.apply(void 0,l);return f.params=Object.assign(h,f.params),l=null===f.locale?[f.params]:[f.locale,f.params],this.fetchChoice((c=this)._t.apply(c,[e,t,n,r].concat(l)),o)},ne.prototype.fetchChoice=function(e,t){if(!e||!h(e))return null;var n=e.split("|");return n[t=this.getChoiceIndex(t,n.length)]?n[t].trim():e},ne.prototype.tc=function(e,t){for(var n,r=[],o=arguments.length-2;o-- >0;)r[o]=arguments[o+2];return(n=this)._tc.apply(n,[e,this.locale,this._getMessages(),null,t].concat(r))},ne.prototype._te=function(e,t,n){for(var r=[],o=arguments.length-3;o-- >0;)r[o]=arguments[o+3];var c=_.apply(void 0,r).locale||t;return this._exist(n[c],e)},ne.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)},ne.prototype.getLocaleMessage=function(e){return E(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 E(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 n in t){var r=e+"__"+n;this._dateTimeFormatters.hasOwnProperty(r)&&delete this._dateTimeFormatters[r]}},ne.prototype._localizeDateTime=function(e,t,n,r,o,c){for(var l=t,d=r[l],h=this._getLocaleChain(t,n),i=0;i<h.length;i++){var f=h[i];if(l=f,!y(d=r[f])&&!y(d[o]))break}if(y(d)||y(d[o]))return null;var m,v=d[o];if(c)m=new Intl.DateTimeFormat(l,Object.assign({},v,c));else{var _=l+"__"+o;(m=this._dateTimeFormatters[_])||(m=this._dateTimeFormatters[_]=new Intl.DateTimeFormat(l,v))}return m.format(e)},ne.prototype._d=function(e,t,n,r){if(!n)return(r?new Intl.DateTimeFormat(t,r):new Intl.DateTimeFormat(t)).format(e);var o=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),n,r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,n,t)}return o||""},ne.prototype.d=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this.locale,c=null,l=null;return 1===t.length?(h(t[0])?c=t[0]:d(t[0])&&(t[0].locale&&(r=t[0].locale),t[0].key&&(c=t[0].key)),l=Object.keys(t[0]).reduce((function(e,n){var r;return T(o,n)?Object.assign({},e,((r={})[n]=t[0][n],r)):e}),null)):2===t.length&&(h(t[0])&&(c=t[0]),h(t[1])&&(r=t[1])),this._d(e,r,c,l)},ne.prototype.getNumberFormat=function(e){return E(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 n in t){var r=e+"__"+n;this._numberFormatters.hasOwnProperty(r)&&delete this._numberFormatters[r]}},ne.prototype._getNumberFormatter=function(e,t,n,r,o,c){for(var l=t,d=r[l],h=this._getLocaleChain(t,n),i=0;i<h.length;i++){var f=h[i];if(l=f,!y(d=r[f])&&!y(d[o]))break}if(y(d)||y(d[o]))return null;var m,v=d[o];if(c)m=new Intl.NumberFormat(l,Object.assign({},v,c));else{var _=l+"__"+o;(m=this._numberFormatters[_])||(m=this._numberFormatters[_]=new Intl.NumberFormat(l,v))}return m},ne.prototype._n=function(e,t,n,r){if(!ne.availabilities.numberFormat)return"";if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).format(e);var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),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:n,locale:t},r))}return c||""},ne.prototype.n=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+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,n){var o;return T(r,n)?Object.assign({},e,((o={})[n]=t[0][n],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,n,r){if(!ne.availabilities.numberFormat)return[];if(!n)return(r?new Intl.NumberFormat(t,r):new Intl.NumberFormat(t)).formatToParts(e);var o=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),n,r),c=o&&o.formatToParts(e);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,n,r)}return c||[]},Object.defineProperties(ne.prototype,re),Object.defineProperty(ne,"availabilities",{get:function(){if(!G){var e="undefined"!=typeof Intl;G={dateTimeFormat:e&&void 0!==Intl.DateTimeFormat,numberFormat:e&&void 0!==Intl.NumberFormat}}return G}}),ne.install=j,ne.version="8.28.2",t.default=ne},846:function(e,t,n){"use strict";function r(e,t,n){"object"==typeof n.value&&(n.value=o(n.value)),n.enumerable&&!n.get&&!n.set&&n.configurable&&n.writable&&"__proto__"!==t?e[t]=n.value:Object.defineProperty(e,t,n)}function o(e){if("object"!=typeof e)return e;var t,n,c,i=0,l=Object.prototype.toString.call(e);
2if("[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(n=Object.getOwnPropertySymbols(e);i<n.length;i++)r(c,n[i],Object.getOwnPropertyDescriptor(e,n[i]));for(i=0,n=Object.getOwnPropertyNames(e);i<n.length;i++)Object.hasOwnProperty.call(c,t=n[i])&&c[t]===e[t]||r(c,t,Object.getOwnPropertyDescriptor(e,t))}return c||e}n.r(t),n.d(t,"klona",(function(){return o}))},868:function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n(13),n(5),n(30);var o=r(n(53));function c(e){return null!==e&&"object"===(0,o.default)(e)}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3?arguments[3]:void 0;if(!c(t))return l(e,{},n,r);var o=Object.assign({},t);for(var d in e)if("__proto__"!==d&&"constructor"!==d){var h=e[d];null!=h&&(r&&r(o,d,h,n)||(Array.isArray(h)&&Array.isArray(o[d])?o[d]=o[d].concat(h):c(h)&&c(o[d])?o[d]=l(h,o[d],(n?"".concat(n,"."):"")+d.toString(),r):o[d]=h))}return o}function d(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(p,t){return l(p,t,"",e)}),{})}}var h=t.default=d();h.fn=d((function(e,t,n,r){if(void 0!==e[t]&&"function"==typeof n)return e[t]=n(e[t]),!0})),h.arrayFn=d((function(e,t,n,r){if(Array.isArray(e[t])&&"function"==typeof n)return e[t]=n(e[t]),!0})),h.extend=d},872:function(e,t){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";var r="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=n(1);e.exports=function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a="object"===("undefined"==typeof document?"undefined":r(document))&&"string"==typeof document.cookie,s="object"===(void 0===t?"undefined":r(t))&&"object"===(void 0===n?"undefined":r(n))&&void 0!==e,u=!a&&!s||a&&s,c=function(e){if(s){var r=t.headers.cookie||"";return e&&(r=(r=n.getHeaders())["set-cookie"]?r["set-cookie"].map((function(e){return e.split(";")[0]})).join(";"):""),r}if(a)return document.cookie||""},l=function(){var e=n.getHeader("Set-Cookie");return(e="string"==typeof e?[e]:e)||[]},p=function(e){return n.setHeader("Set-Cookie",e)},d=function(e,t){if(!t)return e;try{return JSON.parse(e)}catch(t){return e}},h={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]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};if(!u)if(t="object"===(void 0===t?"undefined":r(t))?JSON.stringify(t):t,s){var i=l();i.push(o.serialize(e,t,n)),p(i)}else document.cookie=o.serialize(e,t,n)},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,n=void 0===t?"":t,r=e.value,o=void 0===r?"":r,i=e.opts,a=void 0===i?{path:"/"}:i;h.set(n,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:h.parseJSON};if(u)return"";var n=o.parse(c(t.fromRes))[e];return d(n,t.parseJSON)},getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fromRes:!1,parseJSON:h.parseJSON};if(u)return{};var t=o.parse(c(e.fromRes));for(var n in t)t[n]=d(t[n],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),h.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 n in t)h.remove(n,e)}},nodeCookie:o};return h}},function(e,t,n){"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 n={},r=t||{},o=e.split(u),s=r.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(),h=l.substr(++p,l.length).trim();'"'==h[0]&&(h=h.slice(1,-1)),null==n[d]&&(n[d]=i(h,s))}}return n},t.serialize=function(e,t,n){var o=n||{},c=o.encode||s;if("function"!=typeof c)throw new TypeError("option encode is invali
2d");if(!r.test(e))throw new TypeError("argument name is invalid");var i=c(t);if(i&&!r.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(!r.test(o.domain))throw new TypeError("option domain is invalid");a+="; Domain="+o.domain}if(o.path){if(!r.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=/; */,r=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/}])},876:function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"VueDatePicker",(function(){return yt}));var r=n(109),o=n(14),c=n(31),l=n.n(c),a=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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"],n=e%100;return"[".concat(e).concat(t[(n-20)%10]||t[n]||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"},h={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"},f={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"],n=e%100;return"[".concat(e).concat(t[(n-20)%10]||t[n]||t[0],"]")},buttonValidate:"Ok",buttonCancel:"Avbryt",rangeHeaderText:"Från %d till %d"},p=Object.freeze({__proto__:null,fr:s,en:d,es:h,de:f,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"},T={date:"dddd DD MMMM",month:"MMMM",quarter:"[Q]Q",year:"YYYY",range:"DD MMMM YYYY"},A="date",w="month",S="quarter",O="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 P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function N(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?P(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var D=o.default.extend({name:"Localable",props:{locale:{type:Object,default:function(){return{lang:void 0}}}},computed:{currentLocale:function(){var e=this.locale.lang;return N(N({},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())}}}),R=o.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 L(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 k=L((function(e){function t(n){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(n)}e.exports=t})),x=["click"],M=[],U={instances:M,bind:F,update:function(e,t){JSON.stringify(t.value)!==JSON.stringify(t.oldValue)&&F(e,t)},unbind:j};function F(e,t){var n=t.value;j(e);var r=n,i="function"==typeof r,a="object"===k(r);if((i||a)&&!1!==r.isActive){var o=function(e){var t=e.el,n=e.handler;return{el:t,eventHandlers:x.map((function(e){return{event:e,handler:function(e){return function(e){var t=e.event,n=e.el,r=e.handler,i=t.path||(t.composedPath?t.composedPath():void 0);if(i?i.indexOf(n)<0:!n.contains(t.target))return r(t,n)}({event:e,el:t,handler:n})}}}))}}({el:e,handler:i?r:r.handler});o.eventHandlers.forEach((function(e){var t=e.event,n=e.handler;return setTimeout((function(){return document.addEventListener(t,n,!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,n=e.handler;return document.removeEventListener(t,n,!1)})),M.splice(t,1))}var V={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 B(e){var t=k(e);return"boolean"===t||"string"===t||e.nodeType===Node.ELEMENT_NODE}function Y(e){if(null!=e&&""!==e)return isNaN(+e)?String(e):"".concat(Number(e),"px")}function H(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.$scopedSlots[t]?e.$scopedSlots[t]&&e.$scopedSlots[t](n):!e.$slots[t]||n&&!r?void 0:e.$slots[t]}function $(e){return e&&e.nodeType===Node.ELEMENT_NODE?+window.getComputedStyle(e).getPropertyValue("z-index")||$(e.parentNode):0}var z={mixins:[V],props:{activator:{default:void 0,validator:function(e){return["string","object"].includes(k(e))}},disabled:{type:Boolean,default:!1}},data:function(){return{activatorElement:void 0,activatorNode:[]}},watch:{activator:"resetActivator"},mounted:function(){var e,t,n=(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);n&&["v-slot","normal"].includes(n)&&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=H(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 n=document;t="string"==typeof this.activator?n.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 H(this,"default",this.getValueProxy(),!0)},getValueProxy:function(){var e=this;return{get value(){return e.isActive},set value(t){e.isActive=t}}}}},K=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},W=function(e,t){if(e){if("string"==typeof e)return K(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(e,t):void 0}},G=function(e){return function(e){if(Array.isArray(e))return K(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||W(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 n=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 r=window.getComputedStyle(e);n.left=parseInt(r.marginLeft||0),n.top=parseInt(r.marginTop||0)}return n}}function X(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?X(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var J={name:"VDMenu",mixins:[z,{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:B,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 n=e.$el===e.$el.parentNode.firstChild?e.$el:e.$el.nextSibling;e.$el.parentNode.insertBefore(t.elm,n)}}))}))},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,n=e.content,r=(this.isAttached?t.offsetLeft:t.left)||0;return this.rtl?t.right-n.width:r},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 Y(this.isAttached?this.computedLeft:this.calcXOverflow(this.computedLeft,e))},calcTop:function(){return Y(this.isAttached?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow:function(e,t){var n=e+t-this.pageWidth+12;return(e=(!this.left||this.right)&&n>0?Math.max(e-n,0):Math.max(e,12))+(window.pageXOffset||document.documentElement.scrollLeft)},calcYOverflow:function(e){var t=this.pageYOffset+(window.innerHeight||document.documentElement.clientHeight),n=this.dimensions,r=n.activator,i=(n.content||{}).height,a=t<e+i;return a&&r.top>i?e=this.pageYOffset+(r.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 n=parseInt(e.split("px")[0]),r=parseInt(t.split("px")[0]),i=this.dimensions.activator,a=[];return a.push(i.top<r-this.pageYOffset?"top":"bottom"),a.push(i.left===n?"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"],n=e;n;){if(t.includes(window.getComputedStyle(n).position))return!0;n=n.offsetParent}return!1}(e)}},sneakPeek:function(e){var t=this;requestAnimationFrame((function(){var n=t.$refs.content;n&&"none"===n.style.display?(n.style.display="inline-block",e(),n.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={},n=this.getActivator();n&&(t.activator=Q(n,this.attach),t.activator.offsetLeft=n.offsetLeft,this.isAttached?t.activator.offsetTop=n.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:$(e);return parseInt(t)}}
2,methods:{getMaxZIndex:function(){var e=this.$el,t=G(document.getElementsByClassName("menu__content--active")),n=[this.stackMinZIndex,$(e)].concat(G(t.map((function(e){return $(e)}))));return Math.max.apply(Math,G(n))}}}],directives:{Resize:{inserted:function(e,t){var n=t.value,r=t.options||{passive:!0},i=!1,a=function(){i||(i=!0,window.requestAnimationFrame(n),i=!1)};window.addEventListener("resize",a,r),Object.assign(e,{onResize:{resizeCallback:a,options:r,running:i}}),t.modifiers&&t.modifiers.quiet||a()},unbind:function(e){if(e.onResize){var t=e.onResize,n=t.resizeCallback,r=t.options;window.removeEventListener("resize",n,r),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 Y(this.maxHeight)},calculedMaxWidth:function(){return Y(this.maxWidth)},calculedMenuWidth:function(){if(this.minWidth)return Y(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 Y(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:Z(Z({},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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?ee(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ee(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ne(e){return Boolean(e)&&Boolean(e.match(/^(#|(rgb|hsl)a?\()/))}var rt={props:{color:{type:String}}
2,methods:{setBackgroundColor:function(e,t){return ne(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 ne(e)?t?te(te({},t),{},{style:te(te({},t.style),{},{color:"".concat(e)})}):{color:"".concat(e)}:t}}},re={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,n=new Array(t),i=0;i<t;i++)n[i]=e[i];return o.default.extend({mixins:n})}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?oe(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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 re[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 n=this.hasClickListener?"button":"span",r=Y(this.size),i=ae(ae({},this.getDefaultData()),{},{style:ae({},r&&{fontSize:r,height:r,width:r})}),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(n,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":"",n={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()}}},r=this.$createElement("div",{staticClass:"vd-picker__input-clear__icon"},[this.$createElement(se,n,t)]);return this.$createElement("div",{staticClass:"vd-picker__input-clear"},[r])}},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()])}}),le=ie(rt,V).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=o.default.extend(le),ue=o.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],n=[C.down,C.pagedown];if(t.includes(e.keyCode))e.deltaY=-1;else{if(!n.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),n=e.deltaY;if("keydown"===e.type&&t[0]===document.body){var r=this.$refs.dialog,i=window.getSelection()&&window.getSelection().anchorNode;return!(r&&this.hasScrollbar(r)&&this.isInside(i,r))||this.shouldScroll(r,n)}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,n)}return!0},composedPath:function(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;){if(t.push(n),"HTML"===n.tagName)return t.push(document),t.push(window),t;n=n.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"),n=this.absolute?this.$el.parentNode:t;n&&n.insertBefore(e.$el,n.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=$(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,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,(function i(a){n(a),e.removeEventListener(t,i,r)}),r)}(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 n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,t)||W(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=L((function(e,t){e.exports=function(e,t,n){var r=t.prototype,i=r.format;n.en.ordinal=function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"},r.format=function(e){var t=this,n=this.$locale(),r=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 n.ordinal(t.$D);case"gggg":return t.weekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"k":case"kk":return r.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)}}})),he=L((function(e,t){e.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}})),fe=L((function(e,t){e.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}})),me=L((function(e,t){e.exports=function(e,t,n){t.prototype.isToday=function(){var e=n();return this.format("YYYY-MM-DD")===e.format("YYYY-MM-DD")}}})),ge=L((function(e,t){var n,r;e.exports=(n="month",r="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)===r?this.add(3*e,n):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)===r){var s=this.quarter()-1;return a?this.month(3*s).startOf(n).startOf("day"):this.month(3*s+2).endOf(n).endOf("day")}return o.bind(this)(e,t)}})})),ye=L((function(e,t){e.exports=function(e,t,n){var r=(new Date).getTimezoneOffset(),i=t.prototype;n.utc=function(e,n){return new t({date:e,utc:!0,format:n})},i.utc=function(){return n(this.toDate(),{locale:this.$L,utc:!0})},i.local=function(){return n(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 n,i=Math.abs(e)<=16?60*e:e;return 0!==e?(n=this.local().add(i+r,"minute")).$offset=i:n=this.utc(),n};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+r;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()}}})),ve=L((function(e,t){e.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,"day").add(e,"day")}}})),_e=L((function(e,t){var n,r;e.exports=(n="week",r="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(r).add(1,r).date(t),a=this.endOf(n);if(i.isBefore(a))return 1}var o=this.startOf(r).date(t).startOf(n).subtract(1,"millisecond"),s=this.diff(o,n,!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 n=e.regexText,r=e.startDate,i=e.endDate,a=n.replace(I,"".concat(r).concat(t?"|":"")).replace(I,"".concat(i).concat(t?"|":""));return t?a.split("|"):a}function Te(e){return 3*e}function Ae(e){var t=e.date,n=e.min,r=e.max,i=e.type,a=void 0===i?"date":i,o=e.allowedFn,s=t.format(be(a));return(!o||o(s))&&(!n||Se(s,n,a)||Ie(s,n,a))&&(!r||Se(s,r,a)||Oe(s,r,a))}function we(e){var t=e.date,n=e.type,r=void 0===n?"date":n,i=e.locale;return Se(Ne({date:t,locale:i,format:be(r)}),Ne({date:void 0,locale:i,format:be(r)}),"quarter"===r?"month":r)}function Se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"date";
2return l()(e,be(n)).isSame(l()(t,be(n)),n)}function Oe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";if("year"===n)return Boolean(t)&&e<l()(t,"YYYY-MM-DD").get(n);var r=l.a.isDayjs(e)?e:l()(e).startOf("day");return Boolean(t)&&r.isBefore(l()(t).startOf("day"),n)}function Ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"day";if("year"===n)return Boolean(t)&&e>l()(t,"YYYY-MM-DD").get(n);var r=l.a.isDayjs(e)?e:l()(e).startOf("day");return Boolean(t)&&r.isAfter(l()(t).startOf("day"),n)}function Ce(e,t,n){return Ie(e,t)&&Oe(e,n)}function Pe(e){var t=e.date,n=e.locale,r=void 0===n?{lang:d}:n,a=e.type;return"year"===(void 0===a?"date":a)?l()(t).utc():l()(t).locale(r.lang)}function Ne(e){var t=e.date,n=e.locale,r=e.format;return Pe({date:t,locale:n}).format(r)}function De(e){var t=e.year,n=e.month;return Pe({locale:e.locale}).year(t).month(n).startOf("month")}function Re(e){var t=e.startDate,n=e.endDate,r=e.locale,i=e.interval,a=void 0===i?"day":i,o=Pe({date:t,locale:r}),s=Pe({date:n,locale:r}).diff(o,a);return G(Array(s+1).keys()).map((function(e){return o.add(e,a)}))}function Le(e){var t=e.headerFormat,n=e.locale,r=e.date,i=e.range,a=e.rangeHeaderText;if(i&&a){var o=xe({dates:r,locale:n,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 r?Ne({date:r,locale:n,format:t}):"--"}function ke(e){var t=e.date,n=e.type,r=e.locale;if(t)return Ne({date:t,locale:r,format:be(n)})}function xe(e){var t=e.dates,n=void 0===t?{}:t,r=e.locale,i=e.format,a=n.start,o=n.end;return a||o?!a&&o?"__ ~ ".concat(Pe({date:o,locale:r}).startOf("day").format(i)):a&&!o?"".concat(Pe({date:a,locale:r}).startOf("day").format(i)," ~ __"):"".concat(Pe({date:a,locale:r}).startOf("day").format(i)," ~ ").concat(Pe({date:o,locale:r}).startOf("day").format(i)):"__ ~ __"}l.a.extend(pe),l.a.extend(he),l.a.extend(fe),l.a.extend(me),l.a.extend(ge),l.a.extend(ye),l.a.extend(ve),l.a.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 Oe(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,n=e.value,r=e.key,i=e.type;return this.$createElement("div",this.setTextColor(this.color,{key:r,staticClass:"vd-picker__controls-label"}),[this.$createElement("button",{attrs:{type:"button"},on:{click:function(){return t.$emit("update-mode",i)}}},[n])])},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 Ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};
2n%2?Ue(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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]),n={staticClass:"vd-picker-header__year",class:{"vd-picker-header__year--active":"year"===this.mode}};return this.$createElement("div",n,[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,n=e.date,r=e.isActive,i=e.onClick;return this.$createElement("transition-group",{staticClass:"vd-picker-header__date",class:{"vd-picker-header__date--active":r},props:{name:this.transitionName,tag:"div"}},[n].map((function(e){return function(e){return t.$createElement("span",{staticClass:"vd-picker-header__wrap-button",key:e,on:Fe({},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 Ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?Ve(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ve(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Ye=ie(rt,D).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 Be(Be({},t),{},{availableDates:(n={dates:t.dates,minDate:e.minDate,maxDate:e.maxDate,locale:e.currentLocale},r=n.dates,a=void 0===r?{}:r,o=n.minDate,s=n.maxDate,c=n.locale,d=a.start,u=a.end,h=o||Pe({locale:c}).year(1900),f=s||Pe({locale:c}).year(3e3),Re({startDate:d,endDate:u,locale:c}).filter((function(e){return e.isSameOrAfter(h,"day")&&e.isSameOrBefore(l()(f,"day"))})))});var n,r,a,o,s,c,d,u,h,f})).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)&&Se(t[0],this.mutableDate.start)&&Se(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 n=this,r=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 n.setPresetDates(e)}}},[r,i])}},render:function(e){if(this.presetsFormatted)return e("div",{staticClass:"vd-picker-presets"},[this.genWrapper()])}});function He(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 n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start&&t.start(Object.assign(e,t))}(e,t)},touchend:function(e){return function(e,t){var n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end&&t.end(Object.assign(e,t)),function(e){var t=e.touchstartX,n=e.touchendX,r=e.touchstartY,i=e.touchendY;e.offsetX=n-t,e.offsetY=i-r,Math.abs(e.offsetY)<.5*Math.abs(e.offsetX)&&(e.left&&n<t-16&&e.left(e),e.right&&n>t+16&&e.right(e)),Math.abs(e.offsetX)<.5*Math.abs(e.offsetY)&&(e.up&&i<r-16&&e.up(e),e.down&&i>r+16&&e.down(e))}(t)}(e,t)},touchmove:function(e){return function(e,t){var n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move&&t.move(Object.assign(e,t))}(e,t)}}}var $e={inserted:function(e,t,n){var r=t.value,i=r.parent?e.parentElement:e,a=r.options||{passive:!0};if(i){var o=He(t.value);i._touchHandlers=Object(i._touchHandlers),i._touchHandlers[n.context._uid]=o,Object.keys(o).forEach((function(e){i.addEventListener(e,o[e],a)}))}},unbind:function(e,t,n){var r=t.value.parent?e.parentElement:e;if(r&&r._touchHandlers){var i=r._touchHandlers[n.context._uid];
2Object.keys(i).forEach((function(e){r.removeEventListener(e,i[e])})),delete r._touchHandlers[n.context._uid]}}};function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var qe=ie(rt,D).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 we({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&&(Oe(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 H(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,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?ze(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({day:this.formattedDay},e));return this.$createElement("span",{staticClass:"vd-picker__table-day__text"},[t])}},render:function(e){var t=this,n={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,n),[this.genWrapper()])}}),Ke=ie(rt).extend({name:"VDPickerTableDate",directives:{Touch:$e},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,n="string"==typeof t.className&&"vd-picker__table-days"===t.className.split(" ")[0];if(this.range&&!this.isRangeSelected&&!n){var r=t.dataset.date;if(!r)return this.handleMouseMove({target:t.parentNode});var i=r===this.rangeCurrentHoveredDay;r&&!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,n){return e.$createElement("div",{key:n,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(qe,{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()])}}),We={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"===k(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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?Ge(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Xe=ie(rt,D).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 we({date:De({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=De({year:this.pickerDate.year,month:e,locale:this.currentLocale});return Se(this.mutableDate.format("YYYY-MM"),t.format("YYYY-MM"),"month")},isAllowed:function(e){return Ae({date:De({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 n=this,r=this.isCurrent(t)&&!this.isSelected(t),i=this.isSelected(t),a=this.$createElement("button",{key:t,staticClass:"vd-picker__months-button",style:Qe(Qe({},r&&{"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 n.$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 Ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Je(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};
2n%2?Ze(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var et=ie(rt,D).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 we({date:De({year:this.pickerDate.year,month:e,locale:this.currentLocale}),type:"quarter",locale:this.currentLocale})},isSelected:function(e){if(!this.mutableDate)return!1;var t=De({year:this.pickerDate.year,month:e,locale:this.currentLocale});return Se(this.mutableDate.format("YYYY-MM"),t.format("YYYY-MM"),"month")},isAllowed:function(e){return Ae({date:De({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 n=this,r=Te(t),i=this.isCurrent(r)&&!this.isSelected(r),a=this.isSelected(r),o=this.$createElement("button",{key:t,staticClass:"vd-picker__quarters-button",style:Je(Je({},i&&{"border-color":this.color}),a&&Je(Je({},this.setTextColor("#fff")),this.setBackgroundColor(this.color))),attrs:{type:"button",disabled:!this.isAllowed(t)},on:{click:function(){return n.$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 n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nt(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?tt(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,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 we({date:De({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:De({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,n=e.container,r=e.min,i=e.max;return t?t.offsetTop-n.offsetHeight/2+t.offsetHeight/2:r||i?0:n.scrollHeight/2-n.offsetHeight/2}({activeItem:e,container:this.$el,min:this.min,max:this.max})},genYearButton:function(e){var t=this,n=this.isCurrent(e)&&!this.isSelected(e),r=this.isSelected(e);return this.$createElement("li",{key:e,staticClass:"vd-picker__years-button",class:{active:this.isSelected(e)},style:nt(nt({},n&&{"border-color":this.color}),r&&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 n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var at=function(){function e(t,n){var r=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.a.locale(r.lang),this.locale=r,this.start=l()().year(n).month(t).startOf("month"),this.end=this.start.endOf("month"),this.month=t,this.year=n}return function(e,t,n){t&&ot(e.prototype,t),n&&ot(e,n)}(e,[{key:"getWeekStart",value:function(){return this.start.weekday()}},{key:"getDays",value:function(){return Array.from(Re({startDate:this.start,endDate:this.end,locale:this.locale}))}},{key:"getWeekDays",value:function(){var e=this.locale,t=e.lang,n=e.weekDays,r=G(t.weekdaysShort);return t.weekStart&&1===t.weekStart&&r.push(r.shift()),n||r}},{key:"getMonths",value:function(){return Array.apply(0,Array(12)).map((function(e,t){return l()().month(t).format("MMM")}))}},{key:"getQuarters",value:function(){return Array.apply(0,Array(4)).map((function(e,t){var n=l()().quarter(t+1).startOf("quarter").format("MMMM"),r=l()().quarter(t+1).endOf("quarter").format("MMMM");return"".concat(n," - ").concat(r)}))}},{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,n=e.visibleYearsNumber,r=e.min,a=e.max,o=parseInt(t,10)||parseInt(l()().format("YYYY"),10),s=a?parseInt(a,10):o+n,c=Math.min(s,r?parseInt(r,10):o-n);return G(Array(s-c+1).keys()).map((function(e){return s-e}))}}]),e}();function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ct(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};n%2?st(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):st(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var lt=ie(rt,ue,D).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"===k(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,r=e.maxDate,i=e.minDate,o=e.range,s=e.rangeHeaderText,{formattedHeaderYear:Ne({date:a=e.mutableDate,locale:n=e.locale,format:"YYYY"}),formattedHeaderDate:Le({date:a,headerFormat:t,locale:n,range:o,rangeHeaderText:s}),minDate:i,maxDate:r,minMonth:ke({date:i,type:"month",locale:n}),maxMonth:ke({date:r,type:"month",locale:n}),minYear:ke({date:i,type:"year",locale:n}),maxYear:ke({date:r,type:"year",locale:n})};var e,t,n,r,i,a,o,s}},created:function(){this.initAgenda()},beforeDestroy:function(){Object(r.clearAllBodyScrollLocks)()},watch:{value:"initAgenda",date:"initDatesForPicker",type:"updateMode",fullscreen:{handler:function(e){var t=this;this.$nextTick((function(){var i=t.$refs.body;e?(Object(r.disableBodyScroll)(i),t.genOverlay()):(t.removeOverlay(!1),Object(r.enableBodyScroll)(i))}))},immediate:!0},mode:function(e){var t=this;"year"===e&&this.fullscreen&&(Object(r.enableBodyScroll)(this.$refs.body),this.$nextTick((function(){Object(r.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&&(Oe(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,n,r=(t=e,n=this.mutableDate,l()(t).isAfter(l()(n))?"next":"prev");this.updateTransitions(r),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=Pe({date:this.range?e.end||e.start:e,locale:this.currentLocale});if(Ie(t,this.maxDate)&&(t=Pe({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(Te(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),n=this.pickerDate.year;(t>11||t<0)&&(n+="prev"===e?-1:1,t="prev"===e?11:0),this.updateTransitions(e),this.pickerDate=new at(t,n,this.currentLocale)},changeYear:function(e){var t=this.pickerDate.year+("prev"===e?-1:1),n=this.pickerDate.month;this.updateTransitions(e),this.pickerDate=new at(n,t,this.currentLocale)},updateMode:function(e){this.mode=e},updateSelectedYearMonth:function(e,t){var n=function(e,t,n){return"year"===n?{year:e,month:t.month}:"quarter"===n?{year:t.year,month:Te(e)}:{year:t.year,month:e}}(e,this.pickerDate,t),r=n.year,i=n.month;if(this.pickerDate=new at(i,r,this.currentLocale),t===O&&"year"!==this.type){var a="quarter"===this.type?"quarter":"month";return this.updateMode(a)}if("date"===this.type)this.updateMode("date");else{var o=De({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),n=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"},[n])])},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(Ye,{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!==O&&this.genControls(),this.mode===A&&this.genTableDate(),this.mode===w&&this.genMonths(),this.mode===S&&this.genQuarters(),this.mode===O&&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(Ke,{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,n=e.maxMonth;return this.$createElement(Xe,{props:{active:this.mode===w,allowedDates:this.type===w?this.allowedDates:void 0,color:this.color,locale:this.currentLocale,max:n,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,n=e.maxMonth;return this.$createElement(et,{props:{active:this.mode===S,allowedDates:this.type===S?this.allowedDates:void 0,color:this.color,locale:this.currentLocale,max:n,min:t,mutableDate:this.mutableDate,pickerDate:this.pickerDate,transitionName:this.transitionDaysName},on:{input:this.updateSelectedYearMonth}})},genYears:function(){var e=this.formatters,t=e.minYear,n=e.maxYear;return this.$createElement(it,{props:{active:this.mode===O,allowedDates:this.type===O?this.allowedDates:void 0,color:this.color,max:n,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(We,{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 ut(e,t){var n=function(e){var t=e.message,n=e.vm;if(n){if(n.$_alreadyWarned=n.$_alreadyWarned||[],n.$_alreadyWarned.includes(t))return;n.$_alreadyWarned.push(t)}return"[VueDatePicker] ".concat(t)+(n?function(e){if(e._isVue&&e.$parent){for(var t=[],n=0;e;){if(t.length>0){var r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}n>0&&(t[t.length-1]=[r,n],n=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(ht(e[0]),"... (").concat(e[1]," recursive calls)"):ht(e))})).join("\n")}return"\n\n(found in ".concat(ht(e),")")}(n):"")}({message:e,vm:t});null!=n&&console.warn(n)}var pt=/(?:^|[-_])(\w)/g;function ht(e,t){if(e.$root===e)return"<Root>";var n="function"==typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e||{},r=n.name||n._componentTag,i=n.__file;if(!r&&i){var a=i.match(/([^/\\]+)\.vue$/);r=a&&a[1]}return(r?"<".concat(r.replace(pt,(function(e){return e.toUpperCase()})).replace(/[-_]/g,""),">"):"<Anonymous>")+(i&&!1!==t?" at ".concat(i):"")}function ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mt(e){for(var t=arguments,n=1;n<arguments.length;n++){var r=null!=t[n]?t[n]:{};
2n%2?ft(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ft(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gt={minWidth:"290px",maxWidth:"315px"},yt=ie(D,R).extend({name:"VDPicker",provide:function(){return{VDPicker:this}},directives:{ClickOutside:U},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:B,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 T[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,n=e.buttonCancel,r=e.rangeHeaderText;return{buttonValidate:this.buttonValidate||t,buttonCancel:this.buttonCancel||n,rangeHeaderText:this.rangeHeaderText||r}},internalDate:{get:function(){return e=this.value,n=(t={range:this.range,locale:this.currentLocale,type:this.type}).locale,i=t.type,t.range?{start:e&&null!=e.start?Pe({date:e.start,locale:n}):void 0,end:e&&null!=e.end?Pe({date:e.end,locale:n}):void 0}:null!=e?Pe({date:e,locale:n,type:i}):void 0;var e,t,n,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,n=e.internalDate,i=e.locale,r=e.rangeInputText,s=e.type;if(e.isDateDefined){if(e.range&&r){var o=xe({dates:n,locale:i,format:t}).split(" ~ "),c=de(o,2);return Ee({regexText:r,startDate:c[0],endDate:c[1]})}var u=n.month(),l="quarter"===s?Te(u):u;return Ne({date:n.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,n,r,i=this;["no-input"].forEach((function(e){var t,n,r;i.$attrs.hasOwnProperty(e)&&(n=(t={original:e,vm:i}).original,r=t.vm,ut("[REMOVED] '".concat(n,"' has been removed. You can safely omit it."),r))})),this.$attrs.hasOwnProperty("fullscreen-breakpoint")&&(t=(e={original:"fullscreen-mobile",replacement:"mobile-breakpoint",vm:this}).original,n=e.replacement,r=e.vm,ut("[UPGRADE] '".concat(t,"' is deprecated, use '").concat(n,"' instead."),r))},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,Object(r.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,n=mt(mt({},gt),{},{value:this.isMenuActive,origin:this.origin,allowOverflow:this.allowOverflow,attach:!t&&this.attach,transition:t?"slide-in-out-transition":"scale-transition",bottomSheet:t}),r=this.activator;return this.$createElement(J,{attrs:{role:"menu"},props:mt(mt({},n),{},{activator:r}),on:{transitionEnd:function(){e.isBooted=!0}},ref:"menu"},[this.genAgenda()])},genAgenda:function(){return this.$createElement(lt,{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())}}),vt=Object.freeze({__proto__:null,VueDatePicker:yt}),_t={installed:!1,version:"0.2.11",install:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0,o.default!==t&&console.error("Multiple instances of Vue detected.");var i=n.components||{},a=n.options||{};t.prototype.$vuedatepicker=a,o.default.prototype.$vuedatepicker=a,Object.entries(i).forEach((function(e){var n=de(e,2),r=n[0],i=n[1];t.component(r,i)}))}}},bt=_t.install;_t.install=function(e,t){bt.call(_t,e,{components:vt,options:t})},"undefined"!=typeof window&&window.Vue&&window.Vue.use(_t),t.default=_t}.call(this,n(47))},878:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(object,e){return Object.prototype.hasOwnProperty.call(object,e)},n.p="",n(n.s="fb15")}({"00ee":function(e,t,n){var r={};r[n("b622")("toStringTag")]="z",e.exports="[object z]"===String(r)},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){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,n){return e.call(t,a,b,n)}}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,n){var r=n("fc6a"),o=n("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(r(e))}},"06cf":function(e,t,n){var r=n("83ab"),o=n("d1e7"),c=n("5c6c"),l=n("fc6a"),d=n("c04e"),h=n("5135"),f=n("0cfb"),m=Object.getOwnPropertyDescriptor;t.f=r?m:function(e,t){if(e=l(e),t=d(t,!0),f)try{return m(e,t)}catch(e){}if(h(e,t))return c(!o.f.call(e,t),e[t])}},"07ac":function(e,t,n){var r=n("23e7"),o=n("6f53").values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},"0cfb":function(e,t,n){var r=n("83ab"),o=n("d039"),c=n("cc12");e.exports=!r&&!o((function(){return 7!=Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a}))},1276:function(e,t,n){"use strict";var r=n("d784"),o=n("44e7"),c=n("825a"),l=n("1d80"),d=n("4840"),h=n("8aa5"),f=n("50c4"),m=n("14c3"),y=n("9263"),v=n("d039"),_=[].push,E=Math.min,T=4294967295,A=!v((function(){return!RegExp(T,"y")}));r("split",2,(function(e,t,n){var r;return r="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,n){var r=String(l(this)),c=void 0===n?T:n>>>0;if(0===c)return[];if(void 0===e)return[r];if(!o(e))return t.call(r,e,c);for(var d,h,f,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,r))&&!((h=E.lastIndex)>v&&(output.push(r.slice(v,d.index)),d.length>1&&d.index<r.length&&_.apply(output,d.slice(1)),f=d[0].length,v=h,output.length>=c));)E.lastIndex===d.index&&E.lastIndex++;return v===r.length?!f&&E.test("")||output.push(""):output.push(r.slice(v)),output.length>c?output.slice(0,c):output}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:t.call(this,e,n)}:t,[function(t,n){var o=l(this),c=null==t?void 0:t[e];return void 0!==c?c.call(t,o,n):r.call(String(o),t,n)},function(e,o){var l=n(r,e,this,o,r!==t);if(l.done)return l.value;var y=c(e),v=String(this),_=d(y,RegExp),w=y.unicode,S=(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")+(A?"y":"g"),O=new _(A?y:"^(?:"+y.source+")",S),I=void 0===o?T:o>>>0;if(0===I)return[];if(0===v.length)return null===m(O,v)?[v]:[];for(var p=0,q=0,C=[];q<v.length;){O.lastIndex=A?q:0;var P,N=m(O,A?v:v.slice(q));if(null===N||(P=E(f(O.lastIndex+(A?0:q)),v.length))===p)q=h(v,q,w);else{if(C.push(v.slice(p,q)),C.length===I)return C;for(var i=1;i<=N.length-1;i++)if(C.push(N[i]),C.length===I)return C;q=p=P}}return C.push(v.slice(p)),C}]}),!A)},"13d5":function(e,t,n){"use strict";var r=n("23e7"),o=n("d58f").left,c=n("a640"),l=n("ae40"),d=c("reduce"),h=l("reduce",{1:0});r({target:"Array",proto:!0,forced:!d||!h},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n("c6b6"),o=n("9263");e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var c=n.call(e,t);if("object"!=typeof c)throw TypeError("RegExp exec method returned something other than an Object or null");return c}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},"159b":function(e,t,n){var r=n("da84"),o=n("fdbc"),c=n("17c2"),l=n("9112");for(var d in o){var h=r[d],f=h&&h.prototype;if(f&&f.forEach!==c)try{l(f,"forEach",c)}catch(e){f.forEach=c}}},"17c2":function(e,t,n){"use strict";
2var r=n("b727").forEach,o=n("a640"),c=n("ae40"),l=o("forEach"),d=c("forEach");e.exports=l&&d?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"1be4":function(e,t,n){var r=n("d066");e.exports=r("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,n){var r=n("b622")("iterator"),o=!1;try{var c=0,l={next:function(){return{done:!!c++}},return:function(){o=!0}};l[r]=function(){return this},Array.from(l,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var object={};object[r]=function(){return{next:function(){return{done:n=!0}}}},e(object)}catch(e){}return n}},"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,n){var r=n("d039"),o=n("b622"),c=n("2d00"),l=o("species");e.exports=function(e){return c>=51||!r((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,n=e.length;i<n&&!1!==t(e[i],i);i++);}}},"23cb":function(e,t,n){var r=n("a691"),o=Math.max,c=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):c(n,t)}},"23e7":function(e,t,n){var r=n("da84"),o=n("06cf").f,c=n("9112"),l=n("6eeb"),d=n("ce4e"),h=n("e893"),f=n("94ca");e.exports=function(e,source){var t,n,m,y,v,_=e.target,E=e.global,T=e.stat;if(t=E?r:T?r[_]||d(_,{}):(r[_]||{}).prototype)for(n in source){if(y=source[n],m=e.noTargetGet?(v=o(t,n))&&v.value:t[n],!f(E?n:_+(T?".":"#")+n,e.forced)&&void 0!==m){if(typeof y==typeof m)continue;h(y,m)}(e.sham||m&&m.sham)&&c(y,"sham",!0),l(t,n,y,e)}}},"241c":function(e,t,n){var r=n("ca84"),o=n("7839").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),o=n("825a"),c=n("d039"),l=n("ad6d"),d="toString",h=RegExp.prototype,f=h[d],m=c((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),y=f.name!=d;(m||y)&&r(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 h)?l.call(e):t)}),{unsafe:!0})},"2d00":function(e,t,n){var r,o,c=n("da84"),l=n("342f"),d=c.process,h=d&&d.versions,f=h&&h.v8;f?o=(r=f.split("."))[0]+r[1]:l&&(!(r=l.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=l.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),o=n("3f8c"),c=n("b622")("iterator");e.exports=function(e){if(null!=e)return e[c]||e["@@iterator"]||o[r(e)]}},"37e8":function(e,t,n){var r=n("83ab"),o=n("9bf2"),c=n("825a"),l=n("df75");e.exports=r?Object.defineProperties:function(e,t){c(e);for(var n,r=l(t),d=r.length,h=0;d>h;)o.f(e,n=r[h++],t[n]);return e}},"3b81":function(e,t,n){},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,o=n("69f3"),c=n("7dd0"),l="String Iterator",d=o.set,h=o.getterFor(l);c(String,"String",(function(e){d(this,{type:l,string:String(e),index:0})}),(function(){var e,t=h(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(e,t,n){var r=n("da84");e.exports=r},"42a0":function(e,t){var n,r,o=9007199254740991,c="[object Arguments]",l="[object Function]",d="[object GeneratorFunction]",h=/^(?:0|[1-9]\d*)$/,f=Object.prototype,m=f.hasOwnProperty,y=f.toString,v=f.propertyIsEnumerable,_=(n=Object.keys,r=Object,function(e){return n(r(e))}),E=Math.max,T=!v.call({valueOf:1},"valueOf");function A(e,t){var n=C(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&P(e)}(e)&&m.call(e,"callee")&&(!v.call(e,"callee")||y.call(e)==c)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var l in e)!t&&!m.call(e,l)||o&&("length"==l||S(l,r))||n.push(l);return n}function w(object,e,t){var n=object[e];m.call(object,e)&&I(n,t)&&(void 0!==t||e in object)||(object[e]=t)}function S(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||h.test(e))&&e>-1&&e%1==0&&e<t}function O(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||f)}function I(e,t){return e===t||e!=e&&t!=t}var C=Array.isArray;function P(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}(e.length)&&!function(e){var t=N(e)?y.call(e):"";return t==l||t==d}(e)}function N(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var D,R=(D=function(object,source){if(T||O(source)||P(source))!function(source,e,object,t){object||(object={});for(var n=-1,r=e.length;++n<r;){var o=e[n],c=t?t(object[o],source[o],o,object,source):void 0;w(object,o,void 0===c?source[o]:c)}}(source,function(object){return P(object)?A(object):function(object){if(!O(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)&&w(object,e,source[e])},function(e,t){return t=E(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=E(n.length-t,0),c=Array(o);++r<o;)c[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=c,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,l)}}((function(object,e){var t=-1,n=e.length,r=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(r=D.length>3&&"function"==typeof r?(n--,r):void 0,o&&function(e,t,object){if(!N(object))return!1;var n=typeof t;return!!("number"==n?P(object)&&S(t,object.length):"string"==n&&t in object)&&I(object[t],e)}(e[0],e[1],o)&&(r=n<3?void 0:r,n=1),object=Object(object);++t<n;){var source=e[t];source&&D(object,source,t,r)}return object})));e.exports=R},"44ad":function(e,t,n){var r=n("d039"),o=n("c6b6"),c="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?c.call(e,""):Object(e)}:Object},"44d2":function(e,t,n){var r=n("b622"),o=n("7c73"),c=n("9bf2"),l=r("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,n){var r=n("861d"),o=n("c6b6"),c=n("b622")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==o(e))}},"466d":function(e,t,n){"use strict";var r=n("d784"),o=n("825a"),c=n("50c4"),l=n("1d80"),d=n("8aa5"),h=n("14c3");r("match",1,(function(e,t,n){return[function(t){var n=l(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var l=o(e),f=String(this);if(!l.global)return h(l,f);var m=l.unicode;l.lastIndex=0;for(var y,v=[],_=0;null!==(y=h(l,f));){var E=String(y[0]);v[_]=E,""===E&&(l.lastIndex=d(f,c(l.lastIndex),m)),_++}return 0===_?null:v}]}))},4840:function(e,t,n){var r=n("825a"),o=n("1c0b"),c=n("b622")("species");e.exports=function(e,t){var n,l=r(e).constructor;return void 0===l||null==(n=r(l)[c])?t:o(n)}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4d64":function(e,t,n){var r=n("fc6a"),o=n("50c4"),c=n("23cb"),l=function(e){return function(t,n,l){var d,h=r(t),f=o(h.length),m=c(l,f);if(e&&n!=n){for(;f>m;)if((d=h[m++])!=d)return!0}else for(;f>m;
2m++)if((e||m in h)&&h[m]===n)return e||m||0;return!e&&-1}};e.exports={includes:l(!0),indexOf:l(!1)}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").filter,c=n("1dde"),l=n("ae40"),d=c("filter"),h=l("filter");r({target:"Array",proto:!0,forced:!d||!h},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("0366"),o=n("7b0b"),c=n("9bdd"),l=n("e95a"),d=n("50c4"),h=n("8418"),f=n("35a1");e.exports=function(e){var t,n,m,y,v,_,E=o(e),T="function"==typeof this?this:Array,A=arguments.length,w=A>1?arguments[1]:void 0,S=void 0!==w,O=f(E),I=0;if(S&&(w=r(w,A>2?arguments[2]:void 0,2)),null==O||T==Array&&l(O))for(n=new T(t=d(E.length));t>I;I++)_=S?w(E[I],I):E[I],h(n,I,_);else for(v=(y=O.call(E)).next,n=new T;!(m=v.call(y)).done;I++)_=S?c(y,w,[m.value,I],!0):m.value,h(n,I,_);return n.length=I,n}},"50c4":function(e,t,n){var r=n("a691"),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5692:function(e,t,n){var r=n("c430"),o=n("c6cd");(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),o=n("241c"),c=n("7418"),l=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(l(e)),n=c.f;return n?t.concat(n(e)):t}},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("1d80"),o="["+n("5899")+"]",c=RegExp("^"+o+o+"*"),l=RegExp(o+o+"*$"),d=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(c,"")),2&e&&(n=n.replace(l,"")),n}};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,n){"use strict";var r=n("83ab"),o=n("d039"),c=n("df75"),l=n("7418"),d=n("d1e7"),h=n("7b0b"),f=n("44ad"),m=Object.assign,y=Object.defineProperty;e.exports=!m||o((function(){if(r&&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(),n="abcdefghijklmnopqrst";return e[symbol]=7,n.split("").forEach((function(e){t[e]=e})),7!=m({},e)[symbol]||c(m({},t)).join("")!=n}))?function(e,source){for(var t=h(e),n=arguments.length,o=1,m=l.f,y=d.f;n>o;)for(var v,_=f(arguments[o++]),E=m?c(_).concat(m(_)):c(_),T=E.length,A=0;T>A;)v=E[A++],r&&!y.call(_,v)||(t[v]=_[v]);return t}:m},6547:function(e,t,n){var r=n("a691"),o=n("1d80"),c=function(e){return function(t,n){var c,l,d=String(o(t)),h=r(n),f=d.length;return h<0||h>=f?e?"":void 0:(c=d.charCodeAt(h))<55296||c>56319||h+1===f||(l=d.charCodeAt(h+1))<56320||l>57343?e?d.charAt(h):c:e?d.slice(h,h+2):l-56320+(c-55296<<10)+65536}};e.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(e,t,n){var r=n("861d"),o=n("e8b5"),c=n("b622")("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[c])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"69f3":function(e,t,n){var r,o,c,l=n("7f9a"),d=n("da84"),h=n("861d"),f=n("9112"),m=n("5135"),y=n("f772"),v=n("d012"),_=d.WeakMap;if(l){var E=new _,T=E.get,A=E.has,w=E.set;r=function(e,t){return w.call(E,e,t),t},o=function(e){return T.call(E,e)||{}},c=function(e){return A.call(E,e)}}else{var S=y("state");v[S]=!0,r=function(e,t){return f(e,S,t),t},o=function(e){return m(e,S)?e[S]:{}},c=function(e){return m(e,S)}}e.exports={set:r,get:o,has:c,enforce:function(e){return c(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!h(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},"6dd8":function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}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 n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,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 n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),r="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,h=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 n=!1,r=!1,o=0;function l(){n&&(n=!1,e()),r&&h()}function d(){c(l)}function h(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(d,t);o=e}return h}(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_,n=t.indexOf(e);~n&&t.splice(n,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()}
vendor: 4,698 bytes, line 2
2));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!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(){r&&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,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];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=w(0,0,0,0);function v(e){return parseFloat(e)||0}function _(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+v(e["border-"+n+"-width"])}),0)}function E(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return y;var r=m(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],c=e["padding-"+o];t[o]=v(c)}return t}(r),c=o.left+o.right,l=o.top+o.bottom,d=v(r.width),h=v(r.height);if("border-box"===r.boxSizing&&(Math.round(d+c)!==t&&(d-=_(r,"left","right")+c),Math.round(h+l)!==n&&(h-=_(r,"top","bottom")+l)),!function(e){return e===m(e).document.documentElement}(e)){var f=Math.round(d+c)-t,E=Math.round(h+l)-n;1!==Math.abs(f)&&(d-=f),1!==Math.abs(E)&&(h-=E)}return w(o.left,o.top,d,h)}var T="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 r?T(e)?function(e){var t=e.getBBox();return w(0,0,t.width,t.height)}(e):E(e):y}function w(e,t,n,r){return{x:e,y:t,width:n,height:r}}var S=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=w(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}(),O=function(e,t){var n,r,o,c,l,d,rect,h=(r=(n=t).x,o=n.y,c=n.width,l=n.height,d="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,rect=Object.create(d.prototype),f(rect,{x:r,y:o,width:c,height:l,top:o,right:r+c,bottom:l+o,left:r}),rect);f(this,{target:e,contentRect:h})},I=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}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 S(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 O(e.target,e.broadcastRect())}
2));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 n,P=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 n=h.getInstance(),r=new I(t,n,this);C.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){P.prototype[e]=function(){var t;return(t=C.get(this))[e].apply(t,arguments)}}));var N=void 0!==o.ResizeObserver?o.ResizeObserver:P;t.a=N}).call(this,n("c8ba"))},"6ea2":function(e,t,n){"use strict";var r=n("890c");n.n(r).a},"6eeb":function(e,t,n){var r=n("da84"),o=n("9112"),c=n("5135"),l=n("ce4e"),d=n("8925"),h=n("69f3"),f=h.get,m=h.enforce,y=String(String).split("String");(e.exports=function(e,t,n,d){var h=!!d&&!!d.unsafe,f=!!d&&!!d.enumerable,v=!!d&&!!d.noTargetGet;"function"==typeof n&&("string"!=typeof t||c(n,"name")||o(n,"name",t),m(n).source=y.join("string"==typeof t?t:"")),e!==r?(h?!v&&e[t]&&(f=!0):delete e[t],f?e[t]=n:o(e,t,n)):f?e[t]=n:l(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||d(this)}))},"6f53":function(e,t,n){var r=n("83ab"),o=n("df75"),c=n("fc6a"),l=n("d1e7").f,d=function(e){return function(t){for(var n,d=c(t),h=o(d),f=h.length,i=0,m=[];f>i;)n=h[i++],r&&!l.call(d,n)||m.push(e?[n,d[n]]:d[n]);return m}};e.exports={entries:d(!0),values:d(!1)}},7156:function(e,t,n){var r=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var c,l;return o&&"function"==typeof(c=t.constructor)&&c!==n&&r(l=c.prototype)&&l!==n.prototype&&o(e,l),e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var path=n("428f"),r=n("5135"),o=n("e538"),c=n("9bf2").f;e.exports=function(e){var t=path.Symbol||(path.Symbol={});r(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,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r,o=n("825a"),c=n("37e8"),l=n("7839"),d=n("d012"),html=n("1be4"),h=n("cc12"),f=n("f772"),m="prototype",y="script",v=f("IE_PROTO"),_=function(){},E=function(content){return"<"+y+">"+content+"</"+y+">"},T=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,iframe,t;T=r?function(e){e.write(E("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(iframe=h("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 n=l.length;n--;)delete T[m][l[n]];return T()};d[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(_[m]=o(e),n=new _,_[m]=null,n[v]=e):n=T(),void 0===t?n:c(n,t)}},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),o=n("9ed3"),c=n("e163"),l=n("d2bb"),d=n("d44e"),h=n("9112"),f=n("6eeb"),m=n("b622"),y=n("c430"),v=n("3f8c"),_=n("ae93"),E=_.IteratorPrototype,T=_.BUGGY_SAFARI_ITERATORS,A=m("iterator"),w="keys",S="values",O="entries",I=function(){return this};e.exports=function(e,t,n,m,_,C,P){o(n,t,m);var N,D,R,L=function(e){if(e===_&&F)return F;if(!T&&e in M)return M[e];switch(e){case w:case S:case O:return function(){return new n(this,e)}}return function(){return new n(this)}},k=t+" Iterator",x=!1,M=e.prototype,U=M[A]||M["@@iterator"]||_&&M[_],F=!T&&U||L(_),j="Array"==t&&M.entries||U;if(j&&(N=c(j.call(new e)),E!==Object.prototype&&N.next&&(y||c(N)===E||(l?l(N,E):"function"!=typeof N[A]&&h(N,A,I)),d(N,k,!0,!0),y&&(v[k]=I))),_==S&&U&&U.name!==S&&(x=!0,F=function(){return U.call(this)}),y&&!P||M[A]===F||h(M,A,F),v[t]=F,_)if(D={values:L(S),keys:C?F:L(w),entries:L(O)},P)for(R in D)(T||x||!(R in M))&&f(M,R,D[R]);else r({target:t,proto:!0,forced:T||x},D);return D}},"7f9a":function(e,t,n){var r=n("da84"),o=n("8925"),c=r.WeakMap;e.exports="function"==typeof c&&/native code/.test(o(c))},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}}
2)[1]}))},8418:function(e,t,n){"use strict";var r=n("c04e"),o=n("9bf2"),c=n("5c6c");e.exports=function(object,e,t){var n=r(e);n in object?o.f(object,n,c(0,t)):object[n]=t}},"861d":function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"88bc":function(e,t,n){(function(t){var n=9007199254740991,r="[object Arguments]",o="[object Function]",c="[object GeneratorFunction]",l="[object Symbol]",d="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,f=d||h||Function("return this")();function m(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var y=Object.prototype,v=y.hasOwnProperty,_=y.toString,E=f.Symbol,T=y.propertyIsEnumerable,A=E?E.isConcatSpreadable:void 0,w=Math.max;function S(e,t,n,r,o){var c=-1,l=e.length;for(n||(n=O),o||(o=[]);++c<l;){var d=e[c];t>0&&n(d)?t>1?S(d,t-1,n,r,o):m(o,d):r||(o[o.length]=d)}return o}function O(e){return C(e)||function(e){return function(e){return P(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(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")&&(!T.call(e,"callee")||_.call(e)==r)}(e)||!!(A&&e&&e[A])}function I(e){if("string"==typeof e||function(e){return"symbol"==typeof e||P(e)&&_.call(e)==l}(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var C=Array.isArray;function P(e){return!!e&&"object"==typeof e}var N,D,R=(N=function(object,e){return null==object?{}:function(object,e){return function(object,e,t){for(var n=-1,r=e.length,o={};++n<r;){var c=e[n],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 n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}(S(e,1),I))},D=w(void 0===D?N.length-1:D,0),function(){for(var e=arguments,t=-1,n=w(e.length-D,0),r=Array(n);++t<n;)r[t]=e[D+t];t=-1;for(var o=Array(D+1);++t<D;)o[t]=e[t];return o[D]=r,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(N,this,o)});e.exports=R}).call(this,n("c8ba"))},"890c":function(e,t,n){},8925:function(e,t,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8e95":function(e,t,n){var r=n("c195");e.exports=new r},9020:function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,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=n},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),o=n("9bf2"),c=n("5c6c");e.exports=r?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,n){"use strict";var r,o,c=n("ad6d"),l=n("9f7f"),d=RegExp.prototype.exec,h=String.prototype.replace,f=d,m=(r=/a/,o=/b*/g,d.call(r,"a"),d.call(o,"a"),0!==r.lastIndex||0!==o.lastIndex),y=l.UNSUPPORTED_Y||l.BROKEN_CARET,v=void 0!==/()??/.exec("")[1];(m||v||y)&&(f=function(e){var t,n,r,i,o=this,l=y&&o.sticky,f=c.call(o),source=o.source,_=0,E=e;return l&&(-1===(f=f.replace("y","")).indexOf("g")&&(f+="g"),E=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(source="(?: "+source+")",E=" "+E,_++),n=new RegExp("^(?:"+source+")",f)),v&&(n=new RegExp("^"+source+"$(?!\\s)",f)),m&&(t=o.lastIndex),r=d.call(l?n:o,E),l?r?(r.input=r.input.slice(_),r[0]=r[0].slice(_),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:m&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),v&&r&&r.length>1&&h.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=f},"94ca":function(e,t,n){var r=n("d039"),o=/#|\.prototype\./,c=function(e,t){var n=data[l(e)];return n==h||n!=d&&("function"==typeof t?r(t):!!t)},l=c.normalize=function(e){return String(e).replace(o,".").toLowerCase()},data=c.data={},d=c.NATIVE="N",h=c.POLYFILL="P";e.exports=c},"99af":function(e,t,n){"use strict";var r=n("23e7"),o=n("d039"),c=n("e8b5"),l=n("861d"),d=n("7b0b"),h=n("50c4"),f=n("8418"),m=n("65f0"),y=n("1dde"),v=n("b622"),_=n("2d00"),E=v("isConcatSpreadable"),T=9007199254740991,A="Maximum allowed index exceeded",w=_>=51||!o((function(){var e=[];return e[E]=!1,e.concat()[0]!==e})),S=y("concat"),O=function(e){if(!l(e))return!1;var t=e[E];return void 0!==t?!!t:c(e)};r({target:"Array",proto:!0,forced:!w||!S},{concat:function(e){var i,t,n,r,o,c=d(this),l=m(c,0),y=0;for(i=-1,n=arguments.length;i<n;i++)if(O(o=-1===i?c:arguments[i])){if(y+(r=h(o.length))>T)throw TypeError(A);for(t=0;t<r;t++,y++)t in o&&f(l,y,o[t])}else{if(y>=T)throw TypeError(A);f(l,y++,o)}return l.length=y,l}})},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var c=e.return;throw void 0!==c&&r(c.call(e)),t}}},"9bf2":function(e,t,n){var r=n("83ab"),o=n("0cfb"),c=n("825a"),l=n("c04e"),d=Object.defineProperty;t.f=r?d:function(e,t,n){if(c(e),t=l(t,!0),c(n),o)try{return d(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),c=n("5c6c"),l=n("d44e"),d=n("3f8c"),h=function(){return this};e.exports=function(e,t,n){var f=t+" Iterator";return e.prototype=o(r,{next:c(1,n)}),l(e,f,!1,!0),d[f]=h,e}},"9f7f":function(e,t,n){"use strict";var r=n("d039");function o(s,e){return RegExp(s,e)}t.UNSUPPORTED_Y=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},a15b:function(e,t,n){"use strict";var r=n("23e7"),o=n("44ad"),c=n("fc6a"),l=n("a640"),d=[].join,h=o!=Object,f=l("join",",");r({target:"Array",proto:!0,forced:h||!f},{join:function(e){return d.call(c(this),void 0===e?",":e)}})},a48b:function(e,t,n){var r=n("0497"),o=function(e){var t="",n=Object.keys(e);
vendor: 5,166 bytes, line 2
2return n.forEach((function(o,c){var l=e[o];(function(e){return/[height|width]$/.test(e)})(o=r(o))&&"number"==typeof l&&(l+="px"),t+=!0===l?o:!1===l?"not "+o:"("+o+": "+l+")",c<n.length-1&&(t+=" and ")})),t};e.exports=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach((function(q,n){t+=o(q),n<e.length-1&&(t+=", ")})),t):o(e)}},a4d3:function(e,t,n){"use strict";var r=n("23e7"),o=n("da84"),c=n("d066"),l=n("c430"),d=n("83ab"),h=n("4930"),f=n("fdbf"),m=n("d039"),y=n("5135"),v=n("e8b5"),_=n("861d"),E=n("825a"),T=n("7b0b"),A=n("fc6a"),w=n("c04e"),S=n("5c6c"),O=n("7c73"),I=n("df75"),C=n("241c"),P=n("057f"),N=n("7418"),D=n("06cf"),R=n("9bf2"),L=n("d1e7"),k=n("9112"),x=n("6eeb"),M=n("5692"),U=n("f772"),F=n("d012"),j=n("90e3"),V=n("b622"),B=n("e538"),Y=n("746f"),H=n("d44e"),$=n("69f3"),z=n("b727").forEach,K=U("hidden"),W="Symbol",G="prototype",Q=V("toPrimitive"),X=$.set,Z=$.getterFor(W),J=Object[G],ee=o.Symbol,te=c("JSON","stringify"),ne=D.f,re=R.f,ie=P.f,oe=L.f,ae=M("symbols"),se=M("op-symbols"),ce=M("string-to-symbol-registry"),le=M("symbol-to-string-registry"),ue=M("wks"),de=o.QObject,pe=!de||!de[G]||!de[G].findChild,he=d&&m((function(){return 7!=O(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ne(J,t);r&&delete J[t],re(e,t,n),r&&e!==J&&re(J,t,r)}:re,fe=function(e,t){var symbol=ae[e]=O(ee[G]);return X(symbol,{type:W,tag:e,description:t}),d||(symbol.description=t),symbol},me=f?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof ee},ge=function(e,t,n){e===J&&ge(se,t,n),E(e);var r=w(t,!0);return E(n),y(ae,r)?(n.enumerable?(y(e,K)&&e[K][r]&&(e[K][r]=!1),n=O(n,{enumerable:S(0,!1)})):(y(e,K)||re(e,K,S(1,{})),e[K][r]=!0),he(e,r,n)):re(e,r,n)},ye=function(e,t){E(e);var n=A(t),r=I(n).concat(Ee(n));return z(r,(function(t){d&&!ve.call(n,t)||ge(e,t,n[t])})),e},ve=function(e){var t=w(e,!0),n=oe.call(this,t);return!(this===J&&y(ae,t)&&!y(se,t))&&(!(n||!y(this,t)||!y(ae,t)||y(this,K)&&this[K][t])||n)},_e=function(e,t){var n=A(e),r=w(t,!0);if(n!==J||!y(ae,r)||y(se,r)){var o=ne(n,r);return!o||!y(ae,r)||y(n,K)&&n[K][r]||(o.enumerable=!0),o}},be=function(e){var t=ie(A(e)),n=[];return z(t,(function(e){y(ae,e)||y(F,e)||n.push(e)})),n},Ee=function(e){var t=e===J,n=ie(t?se:A(e)),r=[];return z(n,(function(e){!y(ae,e)||t&&!y(J,e)||r.push(ae[e])})),r};h||(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),n=function(e){this===J&&n.call(se,e),y(this,K)&&y(this[K],t)&&(this[K][t]=!1),he(this,t,S(1,e))};return d&&pe&&he(J,t,{configurable:!0,set:n}),fe(t,e)},x(ee[G],"toString",(function(){return Z(this).tag})),x(ee,"withoutSetter",(function(e){return fe(j(e),e)})),L.f=ve,R.f=ge,D.f=_e,C.f=P.f=be,N.f=Ee,B.f=function(e){return fe(V(e),e)},d&&(re(ee[G],"description",{configurable:!0,get:function(){return Z(this).description}}),l||x(J,"propertyIsEnumerable",ve,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:ee}),z(I(ue),(function(e){Y(e)})),r({target:W,stat:!0,forced:!h},{for:function(e){var t=String(e);if(y(ce,t))return ce[t];var symbol=ee(t);return ce[t]=symbol,le[symbol]=t,symbol},keyFor:function(e){if(!me(e))throw TypeError(e+" is not a symbol");if(y(le,e))return le[e]},useSetter:function(){pe=!0},useSimple:function(){pe=!1}}),r({target:"Object",stat:!0,forced:!h,sham:!d},{create:function(e,t){return void 0===t?O(e):ye(O(e),t)},defineProperty:ge,defineProperties:ye,getOwnPropertyDescriptor:_e}),r({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:be,getOwnPropertySymbols:Ee}),r({target:"Object",stat:!0,forced:m((function(){N.f(1)}))},{getOwnPropertySymbols:function(e){return N.f(T(e))}}),te&&r({target:"JSON",stat:!0,forced:!h||m((function(){var symbol=ee();return"[null]"!=te([symbol])||"{}"!=te({a:symbol})||"{}"!=te(Object(symbol))}))},{stringify:function(e,t,n){for(var r,o=[e],c=1;arguments.length>c;)o.push(arguments[c++]);if(r=t,(_(t)||void 0!==e)&&!me(e))return v(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!me(t))return t}),o[1]=t,te.apply(null,o)}}),ee[G][Q]||k(ee[G],Q,ee[G].valueOf),H(ee,W),F[K]=!0},a623:function(e,t,n){"use strict";var r=n("23e7"),o=n("b727").every,c=n("a640"),l=n("ae40"),d=c("every"),h=l("every");r({target:"Array",proto:!0,forced:!d||!h},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},a630:function(e,t,n){var r=n("23e7"),o=n("4df4");r({target:"Array",stat:!0,forced:!n("1c7e")((function(e){Array.from(e)}))},{from:o})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a9e3:function(e,t,n){"use strict";var r=n("83ab"),o=n("da84"),c=n("94ca"),l=n("6eeb"),d=n("5135"),h=n("c6b6"),f=n("7156"),m=n("c04e"),y=n("d039"),v=n("7c73"),_=n("241c").f,E=n("06cf").f,T=n("9bf2").f,A=n("58a8").trim,w="Number",S=o[w],O=S.prototype,I=h(v(O))==w,C=function(e){var t,n,r,o,c,l,d,code,h=m(e,!1);if("string"==typeof h&&h.length>
22)if(43===(t=(h=A(h)).charCodeAt(0))||45===t){if(88===(n=h.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(h.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+h}for(l=(c=h.slice(2)).length,d=0;d<l;d++)if((code=c.charCodeAt(d))<48||code>o)return NaN;return parseInt(c,r)}return+h};if(c(w,!S(" 0o1")||!S("0b1")||S("+0x1"))){for(var P,N=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof N&&(I?y((function(){O.valueOf.call(n)})):h(n)!=w)?f(new S(C(t)),n,N):C(t)},D=r?_(S):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),R=0;D.length>R;R++)d(S,P=D[R])&&!d(N,P)&&T(N,P,E(S,P));N.prototype=O,O.constructor=N,l(o,w,N)}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),o=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(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,n){var r=n("83ab"),o=n("d039"),c=n("5135"),l=Object.defineProperty,d={},h=function(e){throw e};e.exports=function(e,t){if(c(d,e))return d[e];t||(t={});var n=[][e],f=!!c(t,"ACCESSORS")&&t.ACCESSORS,m=c(t,0)?t[0]:h,y=c(t,1)?t[1]:void 0;return d[e]=!!n&&!o((function(){if(f&&!r)return!0;var e={length:-1};f?l(e,1,{enumerable:!0,get:h}):e[1]=1,n.call(e,m,y)}))}},ae93:function(e,t,n){"use strict";var r,o,c,l=n("e163"),d=n("9112"),h=n("5135"),f=n("b622"),m=n("c430"),y=f("iterator"),v=!1;[].keys&&("next"in(c=[].keys())?(o=l(l(c)))!==Object.prototype&&(r=o):v=!0),null==r&&(r={}),m||h(r,y)||d(r,y,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},b041:function(e,t,n){"use strict";var r=n("00ee"),o=n("f5df");e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),o=n("9bf2").f,c=Function.prototype,l=c.toString,d=/^\s*function ([^ (]*)/,h="name";r&&!(h in c)&&o(c,h,{configurable:!0,get:function(){try{return l.call(this).match(d)[1]}catch(e){return""}}})},b622:function(e,t,n){var r=n("da84"),o=n("5692"),c=n("5135"),l=n("90e3"),d=n("4930"),h=n("fdbf"),f=o("wks"),m=r.Symbol,y=h?m:m&&m.withoutSetter||l;e.exports=function(e){return c(f,e)||(d&&c(m,e)?f[e]=m[e]:f[e]=y("Symbol."+e)),f[e]}},b64b:function(e,t,n){var r=n("23e7"),o=n("7b0b"),c=n("df75");r({target:"Object",stat:!0,forced:n("d039")((function(){c(1)}))},{keys:function(e){return c(o(e))}})},b727:function(e,t,n){var r=n("0366"),o=n("44ad"),c=n("7b0b"),l=n("50c4"),d=n("65f0"),h=[].push,f=function(e){var t=1==e,n=2==e,f=3==e,m=4==e,y=6==e,v=5==e||y;return function(_,E,T,A){for(var w,S,O=c(_),I=o(O),C=r(E,T,3),P=l(I.length),N=0,D=A||d,R=t?D(_,P):n?D(_,0):void 0;P>N;N++)if((v||N in I)&&(S=C(w=I[N],N,O),e))if(t)R[N]=S;else if(S)switch(e){case 3:return!0;case 5:return w;case 6:return N;case 2:h.call(R,w)}else if(m)return!1;return y?-1:f||m?m:R}};e.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},bcf7:function(e,t,n){var r=n("9020"),o=n("217d").each;function c(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}c.prototype={constuctor:c,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;o(t,(function(n,i){if(n.equals(e))return n.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,n){var r=n("861d");e.exports=function(input,e){if(!r(input))return input;var t,n;if(e&&"function"==typeof(t=input.toString)&&!r(n=t.call(input)))return n;if("function"==typeof(t=input.valueOf)&&!r(n=t.call(input)))return n;if(!e&&"function"==typeof(t=input.toString)&&!r(n=t.call(input)))return n;throw TypeError("Can't convert object to primitive value")}},c195:function(e,t,n){var r=n("bcf7"),o=n("217d"),c=o.each,l=o.isFunction,d=o.isArray;function h(){if(!window.matchMedia)throw new Error("matchMedia n
2ot present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}h.prototype={constructor:h,register:function(q,e,t){var n=this.queries,o=t&&this.browserIsIncapable;return n[q]||(n[q]=new r(q,o)),l(e)&&(e={match:e}),d(e)||(e=[e]),c(e,(function(e){l(e)&&(e={match:e}),n[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=h},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),o=n("ce4e"),c="__core-js_shared__",l=r[c]||o(c,{});e.exports=l},c832:function(e,t,n){(function(t){var n,r="__lodash_hash_undefined__",o="[object Function]",c="[object GeneratorFunction]",l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/,h=/^\./,f=/[^.[\]]+|\[(?:(-?\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")(),T=Array.prototype,A=Function.prototype,w=Object.prototype,S=E["__core-js_shared__"],O=(n=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",I=A.toString,C=w.hasOwnProperty,P=w.toString,N=RegExp("^"+I.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=E.Symbol,R=T.splice,L=$(E,"Map"),k=$(Object,"create"),x=D?D.prototype:void 0,M=x?x.toString:void 0;function U(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function F(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function j(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function V(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function B(object,path){var e;path=function(e,object){if(G(e))return!1;var t=typeof e;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=e&&!X(e))||(d.test(e)||!l.test(e)||null!=object&&e in Object(object))}(path,object)?[path]:G(e=path)?e:z(e);for(var t=0,n=path.length;null!=object&&t<n;)object=object[K(path[t++])];return t&&t==n?object:void 0}function Y(e){if(!Q(e)||(t=e,O&&O in t))return!1;var t,pattern=function(e){var t=Q(e)?P.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)?N:y;return pattern.test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function H(map,e){var t,n,data=map.__data__;return("string"==(n=typeof(t=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?data["string"==typeof e?"string":"hash"]:data.map}function $(object,e){var t=function(object,e){return null==object?void 0:object[e]}(object,e);return Y(t)?t:void 0}U.prototype.clear=function(){this.__data__=k?k(null):{}},U.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},U.prototype.get=function(e){var data=this.__data__;if(k){var t=data[e];return t===r?void 0:t}return C.call(data,e)?data[e]:void 0},U.prototype.has=function(e){var data=this.__data__;return k?void 0!==data[e]:C.call(data,e)},U.prototype.set=function(e,t){return this.__data__[e]=k&&void 0===t?r:t,this},F.prototype.clear=function(){this.__data__=[]},F.prototype.delete=function(e){var data=this.__data__,t=V(data,e);return!(t<0||(t==data.length-1?data.pop():R.call(data,t,1),0))},F.prototype.get=function(e){var data=this.__data__,t=V(data,e);return t<0?void 0:data[t][1]},F.prototype.has=function(e){return V(this.__data__,e)>-1},F.prototype.set=function(e,t){var data=this.__data__,n=V(data,e);return n<0?data.push([e,t]):data[n][1]=t,this},j.prototype.clear=function(){this.__data__={hash:new U,map:new(L||F),string:new U}},j.prototype.delete=function(e){return H(this,e).delete(e)},j.prototype.get=function(e){return H(this,e).get(e)},j.prototype.has=function(e){return H(this,e).has(e)},j.prototype.set=function(e,t){return H(this,e).set(e,t),this};var z=W((function(e){var t;
2e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(X(e))return M?M.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return h.test(e)&&n.push(""),e.replace(f,(function(e,t,r,o){n.push(r?o.replace(m,"$1"):t||e)})),n}));function K(e){if("string"==typeof e||X(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function W(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],c=n.cache;if(c.has(o))return c.get(o);var l=e.apply(this,r);return n.cache=c.set(o,l),l};return n.cache=new(W.Cache||j),n}W.Cache=j;var G=Array.isArray;function Q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function X(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==P.call(e)}e.exports=function(object,path,e){var t=null==object?void 0:B(object,path);return void 0===t?e:t}}).call(this,n("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,n){"use strict";var r=n("23e7"),o=n("4d64").indexOf,c=n("a640"),l=n("ae40"),d=[].indexOf,h=!!d&&1/[1].indexOf(1,-0)<0,f=c("indexOf"),m=l("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:h||!f||!m},{indexOf:function(e){return h?d.apply(this,arguments)||0:o(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n("5135"),o=n("fc6a"),c=n("4d64").indexOf,l=n("d012");e.exports=function(object,e){var t,n=o(object),i=0,d=[];for(t in n)!r(l,t)&&r(n,t)&&d.push(t);for(;e.length>i;)r(n,t=e[i++])&&(~c(d,t)||d.push(t));return d}},cc12:function(e,t,n){var r=n("da84"),o=n("861d"),c=r.document,l=o(c)&&o(c.createElement);e.exports=function(e){return l?c.createElement(e):{}}},cca6:function(e,t,n){var r=n("23e7"),o=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},ce4e:function(e,t,n){var r=n("da84"),o=n("9112");e.exports=function(e,t){try{o(r,e,t)}catch(n){r[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,n){var path=n("428f"),r=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(path[e])||o(r[e]):path[e]&&path[e][t]||r[e]&&r[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,c=o&&!r.call({1:2},1);t.f=c?function(e){var t=o(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){n("746f")("iterator")},d2bb:function(e,t,n){var r=n("825a"),o=n("3bbe");
vendor: 4,319 bytes, line 2
2e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,c){return r(n),o(c),t?e.call(n,c):n.__proto__=c,n}}():void 0)},d3b7:function(e,t,n){var r=n("00ee"),o=n("6eeb"),c=n("b041");r||o(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,o=n("5135"),c=n("b622")("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,c)&&r(e,c,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n("1c0b"),o=n("7b0b"),c=n("44ad"),l=n("50c4"),d=function(e){return function(t,n,d,h){r(n);var f=o(t),m=c(f),y=l(f.length),v=e?y-1:0,i=e?-1:1;if(d<2)for(;;){if(v in m){h=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&&(h=n(h,m[v],v,f));return h}};e.exports={left:d(!1),right:d(!0)}},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),o=n("d039"),c=n("b622"),l=n("9263"),d=n("9112"),h=c("species"),f=!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 n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,y){var E=c(e),T=!o((function(){var t={};return t[E]=function(){return 7},7!=""[e](t)})),A=T&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[h]=function(){return n},n.flags="",n[E]=/./[E]),n.exec=function(){return t=!0,null},n[E](""),!t}));if(!T||!A||"replace"===e&&(!f||!m||v)||"split"===e&&!_){var w=/./[E],S=n(E,""[e],(function(e,t,n,r,o){return t.exec===l?T&&!o?{done:!0,value:w.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:m,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),O=S[0],I=S[1];r(String.prototype,e,O),r(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,n){"use strict";var r=n("23e7"),o=n("b727").map,c=n("1dde"),l=n("ae40"),d=c("map"),h=l("map");r({target:"Array",proto:!0,forced:!d||!h},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var r=n("23e7"),o=n("83ab"),c=n("56ef"),l=n("fc6a"),d=n("06cf"),h=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(object){for(var e,t,n=l(object),r=d.f,o=c(n),f={},m=0;o.length>m;)void 0!==(t=r(n,e=o[m++]))&&h(f,e,t);return f}})},ddb0:function(e,t,n){var r=n("da84"),o=n("fdbc"),c=n("e260"),l=n("9112"),d=n("b622"),h=d("iterator"),f=d("toStringTag"),m=c.values;for(var y in o){var v=r[y],_=v&&v.prototype;if(_){if(_[h]!==m)try{l(_,h,m)}catch(e){_[h]=m}if(_[f]||l(_,f,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,n){var r=n("ca84"),o=n("7839");e.exports=Object.keys||function(e){return r(e,o)}},e01a:function(e,t,n){"use strict";var r=n("23e7"),o=n("83ab"),c=n("da84"),l=n("5135"),d=n("861d"),h=n("9bf2").f,f=n("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};f(v,m);var _=v.prototype=m.prototype;_.constructor=v;var E=_.toString,T="Symbol(test)"==String(m("test")),A=/^Symbol\((.*)\)[^)]+$/;h(_,"description",{configurable:!0,get:function(){var symbol=d(this)?this.valueOf():this,e=E.call(symbol);if(l(y,symbol))return"";var desc=T?e.slice(7,-1):e.replace(A,"$1");return""===desc?void 0:desc}}),r({global:!0,forced:!0},{Symbol:v})}},e163:function(e,t,n){var r=n("5135"),o=n("7b0b"),c=n("f772"),l=n("e177"),d=c("IE_PROTO"),h=Object.prototype;e.exports=l?Object.getPrototypeOf:function(e){return e=o(e),r(e,d)?e[d
2]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?h:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e260:function(e,t,n){"use strict";var r=n("fc6a"),o=n("44d2"),c=n("3f8c"),l=n("69f3"),d=n("7dd0"),h="Array Iterator",f=l.set,m=l.getterFor(h);e.exports=d(Array,"Array",(function(e,t){f(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),c.Arguments=c.Array,o("keys"),o("values"),o("entries")},e439:function(e,t,n){var r=n("23e7"),o=n("d039"),c=n("fc6a"),l=n("06cf").f,d=n("83ab"),h=o((function(){l(1)}));r({target:"Object",stat:!0,forced:!d||h,sham:!d},{getOwnPropertyDescriptor:function(e,t){return l(c(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e893:function(e,t,n){var r=n("5135"),o=n("56ef"),c=n("06cf"),l=n("9bf2");e.exports=function(e,source){for(var t=o(source),n=l.f,d=c.f,i=0;i<t.length;i++){var h=t[i];r(e,h)||n(e,h,d(source,h))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e95a:function(e,t,n){var r=n("b622"),o=n("3f8c"),c=r("iterator"),l=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||l[c]===e)}},eaf9:function(e,t,n){"use strict";var r=n("3b81");n.n(r).a},f013:function(e,t,n){"use strict";var r=n("fdb2");n.n(r).a},f5df:function(e,t,n){var r=n("00ee"),o=n("c6b6"),c=n("b622")("toStringTag"),l="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),c))?n:l?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},f6fd:function(e,t){!function(e){var t="currentScript",n=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 n)if(n[i].src==e||"interactive"==n[i].readyState)return n[i];return null}}})}(document)},f772:function(e,t,n){var r=n("5692"),o=n("90e3"),c=r("keys");e.exports=function(e){return c[e]||(c[e]=o(e))}},f7fe:function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]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,h="object"==typeof self&&self&&self.Object===Object&&self,f=d||h||Function("return this")(),m=Object.prototype.toString,y=Math.max,v=Math.min,_=function(){return f.Date.now()};function E(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function T(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(n,"");var d=o.test(e);return d||c.test(e)?l(e.slice(2),d?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,c,l,d,h,f=0,m=!1,A=!1,w=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function S(time){var t=r,n=o;return r=o=void 0,f=time,l=e.apply(n,t)}function O(time){var e=time-h;return void 0===h||e>=t||e<0||A&&time-f>=c}function I(){var time=_();if(O(time))return C(time);d=setTimeout(I,function(time){var e=t-(time-h);return A?v(e,c-(time-f)):e}(time))}function C(time){return d=void 0,w&&r?S(time):(r=o=void 0,l)}function P(){var time=_(),e=O(time);if(r=arguments,o=this,h=time,e){if(void 0===d)return function(time){return f=time,d=setTimeout(I,t),m?S(time):l}(h);if(A)return d=setTimeout(I,t),S(h)}return void 0===d&&(d=setTimeout(I,t)),l}return t=T(t)||0,E(n)&&(m=!!n.leading,c=(A="maxWait"in n)?y(T(n.maxWait)||0,t):c,w="trailing"in n?!!n.trailing:w),P.cancel=function(){void 0!==d&&clearTimeout(d),f=0,r=h=o=d=void 0},P.flush=function(){return void 0===d?l:C(_())},P}}
2).call(this,n("c8ba"))},fb15:function(e,t,n){"use strict";var r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,n)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%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}n.r(t),"undefined"!=typeof window&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1])),n("4de4"),n("4160"),n("a15b"),n("d81d"),n("fb6a"),n("07ac"),n("159b"),n("a4d3"),n("e439"),n("dbb4"),n("b64b");var d=n("a48b"),h=n.n(d);function f(e,t,n,r,o,c,l,d){var h,f="function"==typeof e?e.options:e;if(t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),c&&(f._scopeId="data-v-"+c),l?(h=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)},f._ssrRegister=h):o&&(h=d?function(){o.call(this,this.$root.$options.shadowRoot)}:o),h)if(f.functional){f._injectStyles=h;var m=f.render;f.render=function(e,t){return h.call(t),m(e,t)}}else{var y=f.beforeCreate;f.beforeCreate=y?[].concat(y,h):[h]}return{exports:e,options:f}}var m=f({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=n("88bc"),v=n.n(y),_=n("42a0"),E=n.n(_),T=n("c832"),A=n.n(T),w=function(e,t,n){e&&(e.data=e.data||{},e.data[t]=l({},e.data[t],{},n))},S=function(e,t,n){e&&(e.data=e.data||{},e.data[t]=n)},O=["class","staticClass","style","attrs","props","domProps","on","nativeOn","directives","scopesSlots","slot","ref","key"],I=function e(t){var n=t.context&&t.context.$createElement,r=!!t.componentOptions,o=!t.tag,c=r?t.componentOptions.children:t.children;if(o)return t.text;var data=function(e,t){var data=v()(e.data,O);if(t){var n=e.componentOptions;E()(data,{props:n.propsData,on:n.listeners})}return data.key&&(data.key=data.key+"-cloned-cid"),data}(t,r);return n(r?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)}},P=function(e){return l({},C(e,"staticStyle",{}),{},C(e,"style",{}))},N=(n("99af"),n("a623"),n("a630"),n("c975"),n("13d5"),n("a9e3"),n("ac1f"),n("3ca3"),n("466d"),function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}),D=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},R=function(e){return e.unslick||!e.infinite?0:e.slideCount},L=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var c=(t-1)/2+1;return parseInt(o)>0&&(c+=1),r&&t%2==0&&(c+=1),c}return r?0:t-1},k=function(e){var t=e.slidesToShow,n=e.centerMode,r=e.rtl,o=e.centerPadding;if(n){var c=(t-1)/2+1;return parseInt(o)>0&&(c+=1),r||t%2!=0||(c+=1),c}return r?t-1:0},x=function(e){return e.currentSlide-U(e)},M=function(e){return e.currentSlide+F(e)},U=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},F=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=[],n=x(e),r=M(e),o=n;o<r;o++)e.lazyLoadedList.indexOf(o)<0&&t.push(o);return t},V=function(e,t){var n,r,o,c,d=e.slidesToScroll,h=e.slidesToShow,f=e.slideCount,m=e.currentSlide,
2y=e.lazyLoad,v=e.infinite;if(n=f%d!==0?0:(f-m)%d,"previous"===t.message)c=m-(o=0===n?d:h-n),y&&!v&&(c=-1===(r=m-o)?f-1:r);else if("next"===t.message)c=m+(o=0===n?d:n),y&&!v&&(c=(m+d)%f+n);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+L(e)?"left":"right":e.targetSlide<e.currentSlide-k(e)?"right":"left"}(l({},e,{targetSlide:c}));c>t.currentSlide&&"left"===_?c-=f:c<t.currentSlide&&"right"===_&&(c+=f)}}else if("index"===t.message&&(c=Number(t.index))===t.currentSlide)return null;return c},B=function(e){return Object.keys(e).filter((function(t){return void 0!==e[t]})).reduce((function(t,n){return t[n]=e[n],t}),{})},Y=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,r=e.infinite?-1*e.slidesToShow:0,o=[];n<t;)o.push(n),n=r+e.slidesToScroll,r+=Math.min(e.slidesToScroll,e.slidesToShow);return o}(e),r=0;if(t>n[n.length-1])t=n[n.length-1];else for(var o in n){if(t<n[o]){t=r;break}r=n[o]}return t},H=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,r=e.listRef.querySelectorAll(".slick-slide");if(Array.from(r).every((function(r){if(e.vertical){if(r.offsetTop+G(r)/2>-1*e.swipeLeft)return n=r,!1}else if(r.offsetLeft-t+W(r)/2>-1*e.swipeLeft)return n=r,!1;return!0})),!n)return 0;var o=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-o)||1}return e.slidesToScroll},$=function(e,t){var n={};return t.forEach((function(t){return n[t]=e[t]})),n},z={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"]},K=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},W=function(e){return e&&e.offsetWidth||0},G=function(e){return e&&e.offsetHeight||0},Q=function(e){var t,n,r,o,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,r=Math.atan2(n,t),(o=Math.round(180*r/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;Z(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,r=e.slideIndex,o=e.trackRef,c=e.infinite,l=e.centerMode,d=e.slideCount,h=e.slidesToShow,f=e.slidesToScroll,m=e.slideWidth,y=e.listWidth,v=e.variableWidth,_=e.slideHeight,E=e.fade,T=e.vertical;if(E||1===e.slideCount)return 0;var A=0;if(c?(A=-D(e),d%f!==0&&r+f>d&&(A=-(r>d?h-(r-d):d%f)),l&&(A+=parseInt(h/2))):(d%f!==0&&r+f>d&&(A=h-d%f),l&&(A=parseInt(h/2))),t=T?r*_*-1+A*_:r*m*-1+A*m,!0===v){var w,S=o.$el;if(w=r+D(e),t=(n=S&&S.childNodes[w])?-1*n.offsetLeft:0,!0===l){w=c?r+D(e):r,n=S&&S.children[w],t=0;for(var O=0;O<w;O++)t-=S&&S.children[O]&&S.children[O].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(y-n.offsetWidth)/2}}return t},Z=function(e,t){return t.reduce((function(t,n){return t&&e.hasOwnProperty(n)}),!0)?null:console.error("Keys Missing:",e)},J=function(e){var t,n;Z(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r=e.slideCount+2*e.slidesToShow;e.vertical?n=r*e.slideHeight:t=function(e){return 1===e.slideCount?1:D(e)+e.slideCount+R(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"),n&&(style.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?style.marginTop=e.left+"px":style.marginLeft=e.left+"px"),style},ee=function(e){Z(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var style=J(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}},ne=Object.keys(te).reduce((function(e,t){return e[t]=te[t].default,e}),{});function re(source,e){if(null==source)return{};var t,i,n=function(source,e){if(null==source)return{};var t,i,n={},r=Object.keys(source);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||(n[t]=source[t]);return n}(source,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(source);for(i=0;i<r.length;i++)t=r[i],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(source,t)&&(n[t]=source[t])}return n}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}),{}),n("cca6"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("ddb0");var oe=n("6dd8"),ae=n("f7fe"),se=n.n(ae),ce=function(e){var t,n,r,o,c;return r=(c=e.rtl?e.slideCount-1-e.index:e.index)<0||c>=e.slideCount,e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(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":n,"slick-cloned":r,"slick-current":c===e.currentSlide}},le=function(e,t){return null!=e.key&&String(e.key)||t},ue={name:"SliderTrack",props:z.TRACK,methods:{cloneSlide:function(e,t){var n=this,r=I(e);return r.key=t.key,w(r,"class",t.class),w(r,"attrs",t.attrs),w(r,"style",t.style),w(r,"on",{click:function(r){C(e,"on.click",(function(){}))(r),n.$emit("childClicked",t.childOnClickOptions)}}),r},renderSlides:function(e,t){var n,r=this,o=this.$createElement,c=[],d=[],h=[],f=t.length,m=x(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 T=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(r.cloneSlide(_,{key:"original"+le(_,v),class:A,style:l({outline:"none"},T),attrs:{tabIndex:"-1","data-index":v,"aria-hidden":"".concat(!A["slick-active"])},childOnClickOptions:E})),e.infinite&&!1===e.fade&&f>e.slidesToShow){var w=f-v;w<=D(e)&&f!==e.slidesToShow&&((n=-w)>=m&&(_=t),A=ce(l({},e,{index:n})),d.push(r.cloneSlide(_,{key:"precloned"+le(_,n),class:A,style:T,attrs:{tabIndex:"-1","data-index":n,"aria-hidden":"".concat(!A["slick-active"])},childOnClickOptions:E}
2))),f!==e.slidesToShow&&((n=f+v)<y&&(_=t),A=ce(l({},e,{index:n})),h.push(r.cloneSlide(_,{key:"postcloned"+le(_,n),class:A,style:T,attrs:{tabIndex:"-1","data-index":n,"aria-hidden":"".concat(!A["slick-active"])},childOnClickOptions:E})))}}),this),e.rtl?d.concat(c,h).reverse():d.concat(c,h)}},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=ue,pe=(n("6ea2"),f(de,void 0,void 0,!1,null,"e4caeaf8",null).exports);function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}n("b0c0"),n("25f0");var fe,me={name:"SliderArrow",props:[].concat((fe=z.ARROW,function(e){if(Array.isArray(e))return he(e)}(fe)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(fe)||function(e,t){if(e){if("string"==typeof e)return he(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?he(e,t):void 0}}(fe)||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,n=arguments[0],r={"slick-arrow":!0},o=!0,option={currentSlide:this.currentSlide,slideCount:this.slideCount};return"previous"===this.type?(r["slick-prev"]=!0,!this.infinite&&(0===this.currentSlide||this.slideCount<=this.slidesToShow)&&(r["slick-disabled"]=!0,o=!1),option.key="0",e=this.prevArrow?this.prevArrow(option)[0]:n("button",{attrs:{type:"button","data-role":"none"},style:"display: block;"},["Previous"])):(r["slick-next"]=!0,K(this.$props)||(r["slick-disabled"]=!0,o=!1),option.key="1",e=this.nextArrow?this.nextArrow(option)[0]:n("button",{attrs:{type:"button","data-role":"none"},style:"display: block;"},["Next"])),S(e,"key",option.key),w(e,"class",r),w(e,"on",{click:function(){o&&t.$emit("arrowClicked",{message:t.type})}}),e}},ge=me,ye=(n("f013"),f(ge,void 0,void 0,!1,null,"21137603",null).exports),ve=(n("1276"),{name:"SliderDots",props:z.DOT,render:function(){var e,t=this,n=arguments[0],r=(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(r+1).join("0").split("")).map((function(e,i){var r=i*t.slidesToScroll,o=i*t.slidesToScroll+(t.slidesToScroll-1),c={"slick-active":t.currentSlide>=r&&t.currentSlide<=o},l={message:"dots",index:i,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide},d=t.customPaging?t.customPaging(i)[0]:n("button",[i+1]);return n("li",{key:i,class:c,on:{click:function(){return t.$emit("dotClicked",l)}}},[d])})),l=o({},this.dotsClass,!0);return n("ul",{style:{display:"block"},class:l},[c])}}),_e=f(ve,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:ye,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
vendor: 13,442 bytes, line 2
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),n=!1,r=0,o=Object.keys(this.$props);r<o.length;r++){var c=o[r];if(!e.hasOwnProperty(c)){n=!0;break}if("object"!==ie(e[c])&&"function"!=typeof e[c]&&e[c]!==this.$props[c]){n=!0;break}}this.updateState(t,n),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 n=function(e){var t,n=e.children.length,r=Math.ceil(W(e.listRef)),o=Math.ceil(W(e.trackRef));if(e.vertical)t=r;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=r/100),t=Math.ceil((r-c)/e.slidesToShow)}var l=e.listRef&&G(e.listRef.querySelector('[data-index="0"]')),d=l*e.slidesToShow,h=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(h=n-1-e.initialSlide);var f=e.lazyLoadedList||[],m=j({currentSlide:h,lazyLoadedList:f});f.concat(m);var y={slideCount:n,slideWidth:t,listWidth:r,trackWidth:o,currentSlide:h,slideHeight:l,listHeight:d,lazyLoadedList:f};return null===e.autoplaying&&e.autoplay&&(y.autoplaying="playing"),y}(e);e=l({},e,{},n,{slideIndex:n.currentSlide}),e=l({},e,{left:X(e)});var r=J(e);(t||this.slideCount!==e.children.length)&&(n.trackStyle=r),Object.assign(this.$data,n)},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=D(this.spec),t=R(this.spec);if(this.variableWidth){var n=[],r=[],o=[];this.$slots.default.forEach((function(e){var t=P(e).width;o.push(t),n.push(t)}));for(var i=0;i<e;i++)r.push(o[o.length-1-i]),n.push(o[o.length-1-i]);for(var c=0;c<t;c++)n.push(o[c]);for(var l=0;l<this.currentSlide;l++)r.push(o[l]);n=n.filter((function(e){return e})),r=r.filter((function(e){return e}));var d={width:"calc(".concat(n.join(" + "),")"),left:"calc(".concat(r.map((function(e){return"-".concat(e)})).join(" + "),")")};if(this.centerMode){var h=o[this.currentSlide];d.left="calc(".concat(r.map((function(e){return"-".concat(e)})).join(" + ")," + (100% - ").concat(h,") / 2 )")}this.trackStyle=d}else{var f=e+t+this.slideCount,m=100/this.slidesToShow*f,y=100/f,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,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.asNavFor,o=this.speed,c=this.currentSlide,d=function(e){var t=e.waitForAnimate,n=e.animating,r=e.fade,o=e.infinite,c=e.index,d=e.slideCount,h=e.lazyLoadedList,f=e.lazyLoad,m=e.currentSlide,y=e.centerMode,v=e.slidesToScroll,_=e.slidesToShow,E=e.useCSS;if(t&&n)return{};var T,A,w,S=c,O={},I={};if(r){if(!o&&(c<0||c>=d))return{};c<0?S=c+d:c>=d&&(S=c-d),f&&h.indexOf(S)<0&&h.push(S),O={animating:!0,currentSlide:S,lazyLoadedList:h},I={animating:!1}}else T=S,S<0?(T=S+d,o?d%v!==0&&(T=d-d%v):T=0):!K(e)&&S>m?S=T=m:y&&S>=d?(S=o?d:d-1,T=o?0:d-1):S>=d&&(T=S-d,o?d%v!==0&&(T=0):T=d-_),A=X(l({},e,{slideIndex:S})),w=X(l({},e,{slideIndex:T})),o||(A===w&&(S=T),A=w),f&&h.concat(j(l({},e,{currentSlide:S}))),E?(O={animating:!0,currentSlide:T,trackStyle:ee(l({},e,{left:A})),lazyLoadedList:h},I={animating:!1,currentSlide:T,trackStyle:J(l({},e,{left:w})),swipeLeft:null}):O={currentSlide:T,trackStyle:J(l({},e,{left:w})),lazyLoadedList:h};return{state:O,nextState:I}}(l({index:e},this.$props,{},this.$data,{trackRef:this.$refs.track,useCSS:this.useCSS&&!n})),h=d.state,f=d.nextState;if(h){this.$parent.$emit("beforeChange",c,h.currentSlide);var m=h.lazyLoadedList.filter((function(e){return t.lazyLoadedList.indexOf(e)<0}));m.length&&this.$parent.$emit("lazyLoad",m),Object.assign(this.$data,h),r&&r.goTo(e),f&&(this.animationEndCallback=setTimeout((function(){var e=f.animating,n=re(f,["animating"]);Object.assign(t.$data,n),t.callbackTimers.push(setTimeout((function(){t.animating=e}),10)),t.$parent.$emit("afterChange",h.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"),n=t.length,r=0;Array.prototype.forEach.call(t,(function(image){var t=function(){return++r&&r>=n&&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),n=this.currentSlide;n<this.slideCount+R(t);n++)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}for(var r=this.currentSlide-1;r>=-D(t);r--)if(this.lazyLoadedList.indexOf(r)<0){e.push(r);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,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"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],n=l({},this.$props,{},this.$data),r=V(n,e);(0===r||r)&&(!0===t?this.slideHandler(r,t):this.slideHandler(r))},swipeStart:function(e){this.verticalSwiping&&this.disableBodyScroll();var t=function(e,t,n){return!t||!n&&-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,n=function(e,t){var n=t.scrolling,r=t.animating,o=t.vertical,c=t.swipeToSlide,d=t.verticalSwiping,h=t.rtl,f=t.currentSlide,m=t.edgeFriction,y=t.edgeDragged,v=t.onEdge,_=t.swiped,E=t.swiping,T=t.slideCount,A=t.slidesToScroll,w=t.infinite,S=t.touchObject,O=t.swipeEvent,I=t.listHeight,C=t.listWidth;if(!n){if(r)return e.preventDefault();o&&c&&d&&e.preventDefault();var P,N={},D=X(t);S.curX=e.touches?e.touches[0].pageX:e.clientX,S.curY=e.touches?e.touches[0].pageY:e.clientY,S.swipeLength=Math.round(Math.sqrt(Math.pow(S.curX-S.startX,2)));var R=Math.round(Math.sqrt(Math.pow(S.curY-S.startY,2)));if(!d&&!E&&R>10)return{scrolling:!0};d&&(S.swipeLength=R);var L=(h?-1:1)*(S.curX>S.startX?1:-1);d&&(L=S.curY>S.startY?1:-1);var k=Math.ceil(T/A),x=Q(t.touchObject,d),M=S.swipeLength;return w||(0===f&&"right"===x||f+1>=k&&"left"===x||!K(t)&&"left"===x)&&(M=S.swipeLength*m,!1===y&&v&&(v(x),N.edgeDragged=!0)),!_&&O&&(O(x),N.swiped=!0),P=o?D+M*(I/C)*L:h?D-M*L:D+M*L,d&&(P=D+M*L),N=l({},N,{touchObject:S,swipeLeft:P,trackStyle:J(l({},t,{left:P}))}),Math.abs(S.curX-S.startX)<.8*Math.abs(S.curY-S.startY)||S.swipeLength>10&&(N.swiping=!0,e.preventDefault()),N}}(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)}}));n&&(n.swiping&&(this.clickable=!1),Object.assign(this.$data,n))},swipeEnd:function(e){var t=function(e,t){var n=t.dragging,r=t.swipe,o=t.touchObject,c=t.listWidth,d=t.touchThreshold,h=t.verticalSwiping,f=t.listHeight,m=t.currentSlide,y=t.swipeToSlide,v=t.scrolling,_=t.onSwipe;if(!n)return r&&e.preventDefault(),{};var E=h?f/d:c/d,T=Q(o,h),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 w,S;switch(e.preventDefault(),_&&_(T),T){case"left":case"up":S=m+H(t),w=y?Y(t,S):S,A.currentDirection=0;break;case"right":case"down":S=m-H(t),w=y?Y(t,S):S,A.currentDirection=1;break;default:w=m}A.triggerSlideHandler=w}else{var O=X(t);A.trackStyle=ee(l({},t,{left:O}))}return A}(e,l({},this.$props,{},this.$data,{trackRef:this.$refs.track,listRef:this.$refs.list,slideIndex:this.currentSlide}));if(t){var n=t.triggerSlideHandler;this.triggerSlideHandler=void 0,Object.assign(this.$data,t),void 0!==n&&(this.slideHandler(n),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,n=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},n)}),0))},play:function(){var e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else{if(!K(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")},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},n=$(this.spec,z.TRACK);n=B(l({},n));var r,o,c,d=this.pauseOnHover,h=B({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 f=$(this.spec,z.DOT),m=this.pauseOnDotsHover,y=B({mouseenter:m?this.onDotsLeave:void 0,mouseover:m?this.onDotsOver:void 0,mouseleave:m?this.onDotsLeave:void 0});r=e(_e,{props:l({},f),nativeOn:l({},y),on:{dotClicked:this.changeSlide}})}var v=$(this.spec,z.ARROW);this.arrows&&(o=e(ye,{props:l({},l({},v,{type:"previous"})),on:{arrowClicked:this.changeSlide}}),c=e(ye,{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 T,A=l({},this.$parent.$vnode.data.style);this.unslick||(A=l({},A,{},(T=_,Object.keys(T).filter((function(e){return void 0!==T[e]&&null!==T[e]})).reduce((function(e,t){return e[t]=T[t],e}),{})),{},E));var w=this.accessibility,S=this.dragging,O=this.touchMove,I=B({click:this.clickHandler,mousedown:O?this.swipeStart:void 0,mousemove:S&&O?this.swipeMove:void 0,mouseup:O?this.swipeEnd:void 0,mouseleave:S&&O?this.swipeEnd:void 0,touchstart:O?this.swipeStart:void 0,touchmove:S&&O?this.swipeMove:void 0,touchend:O?this.swipeEnd:void 0,touchcancel:S&&O?this.swipeEnd:void 0,keydown:w?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({},n),nativeOn:l({},h),on:{childClicked:this.selectHandler}},[this.$slots.default])]),this.unslick?"":c,this.unslick?"":r])}},Te=Ee,Ae=(n("eaf9"),f(Te,void 0,void 0,!1,null,"3d1a4f76",null).exports
2),we=N()&&n("8e95"),Se={name:"VueSlickCarousel",components:{InnerSlider:Ae},mixins:[m],inheritAttrs:!1,props:te,data:function(){return{breakpoint:null}},computed:{settings:function(){var e,t,n=this,r=B(this.$props);return e=this.breakpoint?"unslick"===(t=this.responsive.filter((function(e){return e.breakpoint===n.breakpoint})))[0].settings?"unslick":l({},ne,{},r,{},t[0].settings):l({},ne,{},r),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 we.unregister(e.query,e.handler)})),this.responsiveMediaHandlers=[]},media:function(e,t){N()&&(we.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(n,r){var o=h()({minWidth:0===r?0:t[r-1]+1,maxWidth:n});e.media(o,(function(){e.breakpoint=n}))}));var n=h()({minWidth:t.slice(-1)[0]});this.media(n,(function(){e.breakpoint=null}))}}},render:function(){var e=arguments[0],t=this.settings,n=this.$slots.default||[];if("unslick"===t)return e("div",{class:"regular slider"},[n]);t.prevArrow=this.$scopedSlots.prevArrow,t.nextArrow=this.$scopedSlots.nextArrow,t.customPaging=this.$scopedSlots.customPaging,n=n.filter((function(e){return!!e.tag}));for(var r=[],o=null,i=0;i<n.length;i+=t.rows*t.slidesPerRow){for(var c=[],d=i;d<i+t.rows*t.slidesPerRow;d+=t.slidesPerRow){for(var h=[],f=d;f<d+t.slidesPerRow&&(t.variableWidth&&P(n[f])&&(o=P(n[f]).width),!(f>=n.length));f+=1){var m=I(n[f]);S(m,"key",100*i+10*d+f),w(m,"attrs",{tabIndex:-1}),w(m,"style",{width:"".concat(100/t.slidesPerRow,"%"),display:"inline-block"}),h.push(m)}c.push(e("div",{key:10*i+d},[h]))}t.variableWidth?r.push(e("div",{key:i,style:{width:o}},[c])):r.push(e("div",{key:i},[c]))}return r.length<=t.slidesToShow&&(t.unslick=!0),e(Ae,{ref:"innerSlider",props:l({},t),key:Object.values(t).join("")},[r])}},Oe=f(Se,void 0,void 0,!1,null,null,null).exports;t.default=Oe},fb6a:function(e,t,n){"use strict";var r=n("23e7"),o=n("861d"),c=n("e8b5"),l=n("23cb"),d=n("50c4"),h=n("fc6a"),f=n("8418"),m=n("b622"),y=n("1dde"),v=n("ae40"),_=y("slice"),E=v("slice",{ACCESSORS:!0,0:0,1:2}),T=m("species"),A=[].slice,w=Math.max;r({target:"Array",proto:!0,forced:!_||!E},{slice:function(e,t){var n,r,m,y=h(this),v=d(y.length),_=l(e,v),E=l(void 0===t?v:t,v);if(c(y)&&("function"!=typeof(n=y.constructor)||n!==Array&&!c(n.prototype)?o(n)&&null===(n=n[T])&&(n=void 0):n=void 0,n===Array||void 0===n))return A.call(y,_,E);for(r=new(void 0===n?Array:n)(w(E-_,0)),m=0;_<E;_++,m++)_ in y&&f(r,m,y[_]);return r.length=m,r}})},fc6a:function(e,t,n){var r=n("44ad"),o=n("1d80");e.exports=function(e){return r(o(e))}},fdb2:function(e,t,n){},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,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}}).default},e.exports=r()},880:function(e,t,n){e.exports={}},883:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Jsonld=void 0;var o=r(n(884)),c=r(n(886));t.Jsonld=c.default,t.default={install:function(e){e.mixin((0,o.default)())}}},884:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),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 n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var l=c(n(885));t.default=function(){return{beforeCreate:function(){var e,t,n=this;if(this.$options&&"function"==typeof this.$options.jsonld){var r=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(n,r)}}}}}},885:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=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},r.apply(this,arguments)},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.getJsonLdHeadObject=void 0;t.getJsonLdHeadObject=function(e,t){var n=t.call(e);return null===n?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(n,null,"")).toString(16),type:"application/ld+json",json:n}]}};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),n=(0,t.getJsonLdHeadObject)(this,this.$options.jsonld);return c(head)&&null===n?{}:c(head)?n:null===n?head:r(r({},head),{script:o(o([],head.script||[],!0),n.script,!0)})}},886:function(e,t,n){"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)}},888:function(e,t,n){"use strict";n.r(t);var r=n(108);n.d(t,"Cache",(function(){return r.default}));var o=n(600);n.d(t,"cacheAdapterEnhancer",(function(){return o.a}));var c=n(602);n.d(t,"retryAdapterEnhancer",(function(){return c.a}));var l=n(601);n.d(t,"throttleAdapterEnhancer",(function(){return l.a}))},902:function(e,t,n){"use strict";n.r(t),n.d(t,"Auth",(function(){return x})),n.d(t,"Auth0Scheme",(function(){return se})),n.d(t,"BaseScheme",(function(){return Q})),n.d(t,"ConfigurationDocument",(function(){return j})),n.d(t,"ConfigurationDocumentRequestError",(function(){return U})),n.d(t,"CookieScheme",(function(){return ee})),n.d(t,"ExpiredAuthSessionError",(function(){return V})),n.d(t,"IdToken",(function(){return G})),n.d(t,"LaravelJWTScheme",(function(){return ce})),n.d(t,"LocalScheme",(function(){return Z})),n.d(t,"Oauth2Scheme",(function(){return ne})),n.d(t,"OpenIDConnectScheme",(function(){return ie})),n.d(t,"RefreshController",(function(){return B})),n.d(t,"RefreshScheme",(function(){return ae})),n.d(t,"RefreshToken",(function(){return z})),n.d(t,"RequestHandler",(function(){return K})),n.d(t,"Storage",(function(){return k})),n.d(t,"Token",(function(){return W})),n.d(t,"TokenStatus",(function(){return $})),n.d(t,"TokenStatusEnum",(function(){return Y})),n.d(t,"authMiddleware",(function(){return M}));var r=n(270),o=n.n(r),c=n(14),l=n(266),d=n.n(l),h=n(390),f=n.n(h),m=n(174),y=n.n(m);const v=e=>null==e,_=e=>!v(e),E=(e,a,b)=>O(a,e)===O(b,e);function T(u){return u&&u.length&&new RegExp(["^\\/([a-zA-Z0-9@\\-%_~.:]","[/a-zA-Z0-9@\\-%_~.:]*)?","([?][^#]*)?(#[^#]*)?$"].join("")).test(u)}function A(e){const t={},n=e.split("&");for(let i=0;i<n.length;i++){const e=n[i].split("=");
2t[decodeURIComponent(e[0])]=decodeURIComponent(e[1]||"")}return t}function w(e){return Object.entries(e).filter((([e,t])=>void 0!==t)).map((([e,t])=>encodeURIComponent(e)+(null!=t?"="+encodeURIComponent(t):""))).join("&")}function S(e,t,n){return e.matched.some((e=>Object.values(e.components).some((component=>component.options&&component.options[t]===n))))}function O(path="",e){let t=path.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,"/"),t}function I(e){return"string"==typeof e?e:JSON.stringify(e)}function C(e){if("string"==typeof e)try{return JSON.parse(e)}catch(e){}return e}function P(e,t){if(!t||!e||"object"!=typeof e)return e;if(t in e)return e[t];const n=Array.isArray(t)?t:(t+"").split(".");let r=e;for(;n.length&&r;)r=r[n.shift()];return r}function N(e,t){return e&&t&&"string"==typeof e&&!e.startsWith(t)?t+" "+e:e}function D(...e){return e.join("/").replace(/[/]+/g,"/").replace(/^(.+):\//,"$1://").replace(/^file:/,"file:/").replace(/\/(\?|&|#[^!])/g,"$1").replace(/\?/g,"&").replace("&","?")}const R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function L(e){let t="";for(let i=0;i<e;i++)t+=R.charAt(Math.floor(62*Math.random()));return t}class k{constructor(e,t){this.ctx=e,this.options=t,this._initState()}setUniversal(e,t){return v(t)?this.removeUniversal(e):(this.setCookie(e,t),this.setLocalStorage(e,t),this.setState(e,t),t)}getUniversal(e){let t;return v(t)&&(t=this.getCookie(e)),v(t)&&(t=this.getLocalStorage(e)),v(t)&&(t=this.getState(e)),t}syncUniversal(e,t){let n=this.getUniversal(e);return v(n)&&_(t)&&(n=t),_(n)&&this.setUniversal(e,n),n}removeUniversal(e){this.removeState(e),this.removeLocalStorage(e),this.removeCookie(e)}_initState(){if(c.default.set(this,"_state",{}),this._useVuex=this.options.vuex&&!!this.ctx.store,this._useVuex){const e={namespaced:!0,state:()=>this.options.initialState,mutations:{SET(e,t){c.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 c.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]?c.default.set(this._state,e,t):this._useVuex?this.ctx.store.commit(this.options.vuex.namespace+"/SET",{key:e,value:t}):c.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=>P(t[this.options.vuex.namespace],e)),t)}removeState(e){this.setState(e,void 0)}setLocalStorage(e,t){if(v(t))return this.removeLocalStorage(e);if(!this.isLocalStorageEnabled())return;const n=this.getPrefix()+e;try{localStorage.setItem(n,I(t))}catch(e){if(!this.options.ignoreExceptions)throw e}return t}getLocalStorage(e){if(!this.isLocalStorageEnabled())return;const t=this.getPrefix()+e;return C(localStorage.getItem(t))}removeLocalStorage(e){if(!this.isLocalStorageEnabled())return;const t=this.getPrefix()+e;localStorage.removeItem(t)}
2getCookies(){if(!this.isCookiesEnabled())return;const e=document.cookie;return d.a.parse(e||"")||{}}setCookie(e,t,n={}){if(!this.options.cookie)return;if(!this.isCookiesEnabled())return;const r=(void 0!==n.prefix?n.prefix:this.options.cookie.prefix)+e,o=Object.assign({},this.options.cookie.options,n),c=I(t);v(t)&&(o.maxAge=-1),"number"==typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires));const l=d.a.serialize(r,c,o);return document.cookie=l,t}getCookie(e){if(!this.options.cookie)return;if(!this.isCookiesEnabled())return;const t=this.options.cookie.prefix+e,n=this.getCookies();return C(n[t]?decodeURIComponent(n[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;const 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))}}class x{constructor(e,t){this.strategies={},this._errorListeners=[],this._redirectListeners=[],this.ctx=e,this.options=t;const n=new k(e,{...t,initialState:{user:null,loggedIn:!1}});this.$storage=n,this.$state=n.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(e=!0){if(e){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")}
2async init(){if(this.options.resetOnError&&this.onError(((...e)=>{("function"!=typeof this.options.resetOnError||this.options.resetOnError(...e))&&this.reset()})),this.$storage.syncUniversal("strategy",this.options.defaultStrategy),!this.getStrategy(!1)&&(this.$storage.setUniversal("strategy",this.options.defaultStrategy),!this.getStrategy(!1)))return Promise.resolve();try{await this.mounted()}catch(e){this.callOnError(e)}finally{this.options.watchLoggedIn&&this.$storage.watchState("loggedIn",(e=>{S(this.ctx.route,"auth",!1)||this.redirect(e?"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 ${e} is not defined!`);return this.reset(),this.$storage.setUniversal("strategy",e),this.mounted()}mounted(...e){return this.getStrategy().mounted?Promise.resolve(this.getStrategy().mounted(...e)).catch((e=>(this.callOnError(e,{method:"mounted"}),Promise.reject(e)))):this.fetchUserOnce()}loginWith(e,...t){return this.setStrategy(e).then((()=>this.login(...t)))}login(...e){return this.getStrategy().login?this.wrapLogin(this.getStrategy().login(...e)).catch((e=>(this.callOnError(e,{method:"login"}),Promise.reject(e)))):Promise.resolve()}fetchUser(...e){return this.getStrategy().fetchUser?Promise.resolve(this.getStrategy().fetchUser(...e)).catch((e=>(this.callOnError(e,{method:"fetchUser"}),Promise.reject(e)))):Promise.resolve()}logout(...e){return this.getStrategy().logout?Promise.resolve(this.getStrategy().logout(...e)).catch((e=>(this.callOnError(e,{method:"logout"}),Promise.reject(e)))):(this.reset(),Promise.resolve())}setUserToken(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(...e){return this.getStrategy().reset||(this.setUser(!1),this.get
2Strategy().token.reset(),this.getStrategy().refreshToken.reset()),this.getStrategy().reset(...e)}refreshTokens(){return this.getStrategy().refreshController?Promise.resolve(this.getStrategy().refreshController.handleRefresh()).catch((e=>(this.callOnError(e,{method:"refreshTokens"}),Promise.reject(e)))):Promise.resolve()}check(...e){return this.getStrategy().check?this.getStrategy().check(...e):{valid:!0}}fetchUserOnce(...e){return this.$state.user?Promise.resolve():this.fetchUser(...e)}setUser(e){this.$storage.setState("user",e);let t={valid:Boolean(e)};t.valid&&(t=this.check()),this.$storage.setState("loggedIn",t.valid)}request(e,t={}){const n="object"==typeof t?Object.assign({},t,e):e;if(""===n.baseURL&&(n.baseURL=o()(this.ctx.req)),this.ctx.app.$axios)return this.ctx.app.$axios.request(n).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,n){const r=this.getStrategy().token.get(),o=Object.assign({},n,t),c=this.strategies[e].options.token.name||"Authorization";return o.headers||(o.headers={}),!o.headers[c]&&_(r)&&r&&"string"==typeof r&&(o.headers[c]=r),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,t={}){this.error=e;for(const n of this._errorListeners)n(e,t)}redirect(e,t=!1){if(!this.options.redirect)return;const n=this.options.fullPathRedirect?this.ctx.route.fullPath:this.ctx.route.path;let r=this.options.redirect[e];if(r){if(this.options.rewriteRedirects&&("login"===e&&T(n)&&!E(this.ctx,r,n)&&this.$storage.setUniversal("redirect",n),"home"===e)){const e=this.$storage.getUniversal("redirect");this.$storage.setUniversal("redirect",null),T(e)&&(r=e)}r=this.callOnRedirect(r,n)||r,E(this.ctx,r,n)||(t?(T(r)&&!r.includes(this.ctx.base)&&(r=O("/"+this.ctx.base+"/"+r)),window.location.replace(r)):this.ctx.redirect(r,this.ctx.query))}}onRedirect(e){this._redirectListeners.push(e)}callOnRedirect(e,t){for(const n of this._redirectListeners)e=n(e,t)||e;return e}hasScope(e){const t=this.$state.user&&P(this.$state.user,this.options.scopeKey);return!!t&&(Array.isArray(t)?t.includes(e):Boolean(P(t,e)))}}const M=async e=>{if(S(e.route,"auth",!1))return;const t=function(e,t=[]){return[].concat(...e.matched.map((function(e,n){return Object.keys(e.components).map((function(r){return t.push(n),e.components[r]}))})))}(e.route,[]);if(!t.length)return;const{login:n,callback:r}=e.$auth.options.redirect,o=S(e.route,"auth","guest"),c=t=>O(e.route.path,e)===O(t,e);if(e.$auth.$state.loggedIn){const{tokenExpired:t,refreshTokenExpired:r,isRefreshable:l}=e.$auth.check(!0);if((!n||c(n)||o)&&e.$auth.redirect("home"),r)e.$auth.reset();else if(t)if(l)try{await e.$auth.refreshTokens()}catch(t){e.$auth.reset()}else e.$auth.reset()}else o||r&&c(r)||e.$auth.redirect("login")};class U extends Error{constructor(){super("Error loading OpenIDConnect configuration document"),this.name="ConfigurationDocumentRequestError"}}const F=e=>console.warn(`[AUTH] [OPENID CONNECT] Invalid configuration. ${e}`);class j{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}async request(){var e,t,n,r;const o=null==(r=null==(n=null==(t=null==(e=this.scheme.$auth.ctx)?void 0:e.nuxtState)?void 0:t.$auth)?void 0:n.openIDConnect)?void 0:r.configurationDocument;if(o&&this.set(o),!this.get()){const e=await this.scheme.requestHandler.axios.$get(this.scheme.options.endpoints.configuration).catch((e=>Promise.reject(e)));0,this.set(e)}}validate(){const e={responseType:"response_type_supported",scope:"scopes_supported",grantType:"grant_types_supported",acrValues:"acr_values_supported"};Object.keys(e).forEach((t=>{const n=this.get(),r=e[t],o=n[r],c=this.scheme.options[t];
2void 0!==o&&(Array.isArray(c)&&Array.isArray(o)&&c.forEach((e=>{o.includes(e)||F(`A value of scheme options ${t} is not supported by ${r} of by Authorization Server.`)})),Array.isArray(c)||!Array.isArray(o)||o.includes(c)||F(`Value of scheme option ${t} is not supported by ${r} of by Authorization Server.`),Array.isArray(c)||Array.isArray(o)||o===c||F(`Value of scheme option ${t} is not supported by ${r} of by Authorization Server.`))}))}async init(){await this.request().catch((()=>{throw new U})),this.validate(),this.setSchemeEndpoints()}setSchemeEndpoints(){const e=this.get();this.scheme.options.endpoints=f()(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)}}class V extends Error{constructor(){super("Both token and refresh token have expired. Your request was aborted."),this.name="ExpiredAuthSessionError"}}class B{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}}var Y,H;(H=Y||(Y={})).UNKNOWN="UNKNOWN",H.VALID="VALID",H.EXPIRED="EXPIRED";class ${constructor(e,t){this._status=this._calculate(e,t)}unknown(){return Y.UNKNOWN===this._status}valid(){return Y.VALID===this._status}expired(){return Y.EXPIRED===this._status}_calculate(e,t){const n=Date.now();try{if(!e||!t)return Y.UNKNOWN}catch(e){return Y.UNKNOWN}return n<(t-=500)?Y.VALID:Y.EXPIRED}}class z{constructor(e,t){this.scheme=e,this.$storage=t}get(){const e=this.scheme.options.refreshToken.prefix+this.scheme.name;return this.$storage.getUniversal(e)}set(e){const t=N(e,this.scheme.options.refreshToken.type);return this._setToken(t),this._updateExpiration(t),t}sync(){const e=this._syncToken();return this._syncExpiration(),e}reset(){this._setToken(!1),this._setExpiration(!1)}status(){return new $(this.get(),this._getExpiration())}_getExpiration(){const e=this.scheme.options.refreshToken.expirationPrefix+this.scheme.name;return this.$storage.getUniversal(e)}_setExpiration(e){const t=this.scheme.options.refreshToken.expirationPrefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncExpiration(){const e=this.scheme.options.refreshToken.expirationPrefix+this.scheme.name;return this.$storage.syncUniversal(e)}_updateExpiration(e){let t;const n=Date.now(),r=1e3*Number(this.scheme.options.refreshToken.maxAge),o=r?n+r:0;try{t=1e3*y()(e+"").exp||o}catch(e){if(t=o,!e||"InvalidTokenError"!==e.name)throw e}return this._setExpiration(t||!1)}_setToken(e){const t=this.scheme.options.refreshToken.prefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncToken(){const e=this.scheme.options.refreshToken.prefix+this.scheme.name;return this.$storage.syncUniversal(e)}}class K{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){this.interceptor=this.axios.interceptors.request.use((async t=>{if(!this._needToken(t)||t.url===e)return t;const{valid:n,tokenExpired:r,refreshTokenExpired:o,isRefreshable:c}=this.scheme.check(!0);let l=n;if(o)throw this.scheme.reset(),new V;if(r){if(!c)throw this.scheme.reset(),new V;l=await this.scheme.refreshTokens().then((()=>!0)).catch((()=>{throw this.scheme.reset(),new V}))}const d=this.scheme.token.get();if(!l){if(!d&&this._requestHasAuthorizationHeader(t))throw new V;return t}return this._getUpdatedRequestConfig(t,d)}))}reset(){this.axios.interceptors.request.eject(this.interceptor),this.interceptor=null}_needToken(e){const 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]}}class W{constructor(e,t){this.scheme=e,this.$storage=t}get(){const e=this.scheme.options.token.prefix+this.scheme.name;return this.$storage.getUniversal(e)}set(e){const t=N(e,this.scheme.options.token.type);return this._setToken(t),this._updateExpiration(t),"string"==typeof t&&this.scheme.requestHandler.setHeader(t),t}sync(){const 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 $(this.get(),this._getExpiration())}_getExpiration(){const e=this.scheme.options.token.expirationPrefix+this.scheme.name;return this.$storage.getUniversal(e)}_setExpiration(e){const t=this.scheme.options.token.expirationPrefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncExpiration(){const e=this.scheme.options.token.expirationPrefix+this.scheme.name;return this.$storage.syncUniversal(e)}_updateExpiration(e){let t;const n=Date.now(),r=1e3*Number(this.scheme.options.token.maxAge),o=r?n+r:0;try{t=1e3*y()(e+"").exp||o}catch(e){if(t=o,!e||"InvalidTokenError"!==e.name)throw e}return this._setExpiration(t||!1)}_setToken(e){const t=this.scheme.options.token.prefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncToken(){const e=this.scheme.options.token.prefix+this.scheme.name;return this.$storage.syncUniversal(e)}}class G{constructor(e,t){this.scheme=e,this.$storage=t}get(){const e=this.scheme.options.idToken.prefix+this.scheme.name;return this.$storage.getUniversal(e)}set(e){const t=N(e,this.scheme.options.idToken.type);return this._setToken(t),this._updateExpiration(t),t}sync(){const e=this._syncToken();return this._syncExpiration(),e}reset(){this._setToken(!1),this._setExpiration(!1)}status(){return new $(this.get(),this._getExpiration())}_getExpiration(){const e=this.scheme.options.idToken.expirationPrefix+this.scheme.name;return this.$storage.getUniversal(e)}_setExpiration(e){const t=this.scheme.options.idToken.expirationPrefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncExpiration(){const e=this.scheme.options.idToken.expirationPrefix+this.scheme.name;return this.$storage.syncUniversal(e)}_updateExpiration(e){let t;const n=Date.now(),r=1e3*Number(this.scheme.options.idToken.maxAge),o=r?n+r:0;try{t=1e3*y()(e+"").exp||o}catch(e){if(t=o,!e||"InvalidTokenError"!==e.name)throw e}return this._setExpiration(t||!1)}_setToken(e){const t=this.scheme.options.idToken.prefix+this.scheme.name;return this.$storage.setUniversal(t,e)}_syncToken(){const e=this.scheme.options.idToken.prefix+this.scheme.name;return this.$storage.syncUniversal(e)}userInfo(){const e=this.get();if("string"==typeof e)return y()(e)}}class Q{constructor(e,...t){this.$auth=e,this.options=t.reduce(((p,e)=>f()(p,e)),{})}get name(){return this.options.name}}const 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 Z extends Q{constructor(e,t,...n){super(e,t,...n,X),this.token=new W(this,this.$auth.$storage),this.requestHandler=new K(this,this.$auth.ctx.$axios)}check(e=!1){const t={valid:!1,tokenExpired:!1};if(!this.token.sync())return t;if(!e)return t.valid=!0,t;return this.token.status().expired()?(t.tokenExpired=!0,t):(t.valid=!0,t)}mounted({tokenCallback:e=()=>this.$auth.reset(),refreshTokenCallback:t}={}){const{tokenExpired:n,refreshTokenExpired:r}=this.check(!0);return r&&"function"==typeof t?t():n&&"function"==typeof e&&e(),this.initializeRequestInterceptor(),this.$auth.fetchUserOnce()}async login(e,{reset:t=!0}={}){if(!this.options.endpoints.login)return;t&&this.$auth.reset({resetInterceptor:!1}),this.options.clientId&&(e.data.client_id=this.options.clientId),this.options.grantType&&(e.data.grant_type=this.options.grantType),this.options.scope&&(e.data.scope=this.options.scope);const n=await this.$auth.request(e,this.options.endpoints.login);return this.updateTokens(n),this.requestHandler.interceptor||this.initializeRequestInterceptor(),this.options.user.autoFetch&&await this.fetchUser(),n}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=>{const t=P(e.data,this.options.user.property);if(!t){const e=new Error(`User Data response does not contain field ${this.options.user.property}`);return Promise.reject(e)}return this.$auth.setUser(t),e})).catch((e=>(this.$auth.callOnError(e,{method:"fetchUser"}),Promise.reject(e)))):(this.$auth.setUser({}),Promise.resolve()):Promise.resolve()}async logout(e={}){return this.options.endpoints.logout&&await this.$auth.requestWith(this.name,e,this.options.endpoints.logout).catch((()=>{})),this.$auth.reset()}reset({resetInterceptor:e=!0}={}){this.$auth.setUser(!1),this.token.reset(),e&&this.requestHandler.reset()}updateTokens(e){const t=!this.options.token.required||P(e.data,this.options.token.property);this.token.set(t)}initializeRequestInterceptor(){this.requestHandler.initializeRequestInterceptor()}}const J={name:"cookie",cookie:{name:null},token:{type:"",property:"",maxAge:!1,global:!1,required:!1},endpoints:{csrf:null}};class ee extends Z{constructor(e,t){super(e,t,J)}mounted(){return super.mounted()}check(){const e={valid:!1};if(!super.check().valid)return e;if(this.options.cookie.name){const t=this.$auth.$storage.getCookies();return e.valid=Boolean(t[this.options.cookie.name]),e}return e.valid=!0,e}async login(e){return this.$auth.reset(),this.options.endpoints.csrf&&await this.$auth.request(this.options.endpoints.csrf,{maxRedirects:0}),super.login(e,{reset:!1})}reset(){return this.options.cookie.name&&this.$auth.$storage.setCookie(this.options.cookie.name,null,{prefix:""}),super.reset()}}const te={name:"oauth2",accessType:null,redirectUri:null,logoutRedirectUri:null,clientId:null,audie
2nce: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 ne extends Q{constructor(e,t,...n){super(e,t,...n,te),this.req=e.ctx.req,this.token=new W(this,this.$auth.$storage),this.refreshToken=new z(this,this.$auth.$storage),this.refreshController=new B(this),this.requestHandler=new K(this,this.$auth.ctx.$axios)}get scope(){return Array.isArray(this.options.scope)?this.options.scope.join(" "):this.options.scope}get redirectURI(){const path=O((this.$auth.ctx.base||"")+"/"+this.$auth.options.redirect.callback);return this.options.redirectUri||D(o()(this.req),path)}get logoutRedirectURI(){return this.options.logoutRedirectUri||D(o()(this.req),this.$auth.options.redirect.logout)}check(e=!1){const t={valid:!1,tokenExpired:!1,refreshTokenExpired:!1,isRefreshable:!0},n=this.token.sync();if(this.refreshToken.sync(),!n)return t;if(!e)return t.valid=!0,t;const r=this.token.status();return this.refreshToken.status().expired()?(t.refreshTokenExpired=!0,t):r.expired()?(t.tokenExpired=!0,t):(t.valid=!0,t)}async mounted(){const{tokenExpired:e,refreshTokenExpired:t}=this.check(!0);(t||e&&this.options.autoLogout)&&this.$auth.reset(),this.requestHandler.initializeRequestInterceptor(this.options.endpoints.token);if(!await this._handleCallback())return this.$auth.fetchUserOnce()}reset(){this.$auth.setUser(!1),this.token.reset(),this.refreshToken.reset(),this.requestHandler.reset()}async login(e={}){const t={protocol:"oauth2",response_type:this.options.responseType,access_type:this.options.accessType,client_id:this.options.clientId,redirect_uri:this.redirectURI,scope:this.scope,state:e.state||L(10),code_challenge_method:this.options.codeChallengeMethod,...e.params};if(this.options.audience&&(t.audience=this.options.audience),(t.response_type.includes("token")||t.response_type.includes("id_token"))&&(t.nonce=e.nonce||L(10)),t.code_challenge_method)switch(t.code_challenge_method){case"plain":case"S256":{const e=this.generateRandomString();this.$auth.$storage.setUniversal(this.name+".pkce_state",e);const n=this.generateRandomString();this.$auth.$storage.setUniversal(this.name+".pkce_code_verifier",n);const r=await this.pkceChallengeFromVerifier(n,"S256"===t.code_challenge_method);t.code_challenge=window.encodeURIComponent(r)}}this.options.responseMode&&(t.response_mode=this.options.responseMode),this.options.acrValues&&(t.acr_values=this.options.acrValues),this.$auth.$storage.setUniversal(this.name+".state",t.state);const n=this.options.endpoints.authorization+"?"+w(t);window.location.replace(n)}logout(){if(this.options.endpoints.logout){const e={client_id:this.options.clientId+"",logout_uri:this.logoutRedirectURI},t=this.options.endpoints.logout+"?"+w(e);window.location.replace(t)}return this.$auth.reset()}async fetchUser(){if(!this.check().valid)return;if(!this.options.endpoints.userInfo)return void this.$auth.setUser({});const e=await this.$auth.requestWith(this.name,{url:this.options.endpoints.userInfo});this.$auth.setUser(P(e.data,this.options.user.property))}async _handleCallback(){if(this.$auth.options.redirect&&O(this.$auth.ctx.route.path,this.$auth.ctx)!==O(this.$auth.options.redirect.callback,this.$auth.ctx))return;const e=A(this.$auth.ctx.route.hash.substr(1)),t=Object.assign({},this.$auth.ctx.route.query,e);let n,r=t[this.options.token.property];this.options.refreshToken.property&&(n=t[this.options.refreshToken.property]);const o=this.$auth.$storage.getUniversal(this.name+".state");if(this.$auth.$storage.setUniversal(this.name+".state",null),!o||t.state===o){if("code"===this.options.responseType&&t.code){let e;this.options.codeChallengeMethod&&"implicit"!==this.options.codeChallengeMethod&&(e=this.$auth.$storage.getUniversal(this.name+".pkce_code_verifier"),this.$auth.$storage.setUniversal(this.name+".pkce_code_verifier",null));const o=await this.$auth.request({method:"post",url:this.options.endpoints.token,baseURL:"",data:w({code:t.code,client_id:this.options.clientId+"",redirect_uri:this.redirectURI,response_type:this.options.responseType,audience:this.options.audience,grant_type:this.options.grantType,code_verifier:e})});r=P(o.data,this.options.token.property)||r,n=P(o.data,this.options.refreshToken.property)||n}if(r&&r.length)return this.token.set(r),n&&n.length&&this.refreshToken.set(n),this.$auth.options.watchLoggedIn?(this.$auth.redirect("home",!0),!0):void 0}}async refreshTokens(){const e=this.refreshToken.get();if(!e)return;if(this.refreshToken.status().expired())throw this.$auth.reset(),new V;this.requestHandler.clearHeader();const t=await this.$auth.request({method:"post",url:this.options.endpoints.token,baseURL:"",headers:{"Content-Type":"application/x-www-form-urlencoded"},data:w({refresh_token:(n=e,r=this.options.token.type,n&&r&&"string"==typeof n?n.replace(r+" ",""):n),scopes:this.scope,client_id:this.options.clientId+"",grant_type:"refresh_token"})}).catch((e=>(this.$auth.callOnError(e,{method:"refreshToken"}),Promise.reject(e))));var n,r;return this.updateTokens(t),t}updateTokens(e){const t=P(e.data,this.options.token.property),n=P(e.data,this.options.refreshToken.property);this.token.set(t),n&&this.refreshToken.set(n)}async pkceChallengeFromVerifier(e,t){if(t){const t=await this._sha256(e);return this._base64UrlEncode(t)}return e}generateRandomString(){const e=new Uint32Array(28);return window.crypto.getRandomValues(e),Array.from(e,(e=>("0"+e.toString(16)).substr(-2))).join("")}_sha256(e){const 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(/=+$/,"")}}const 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."}
2,codeChallengeMethod:"S256"};class ie extends ne{constructor(e,t,...n){super(e,t,...n,re),this.idToken=new G(this,this.$auth.$storage),this.configurationDocument=new j(this,this.$auth.$storage)}updateTokens(e){super.updateTokens(e);const t=P(e.data,this.options.idToken.property);t&&this.idToken.set(t)}check(e=!1){const t={valid:!1,tokenExpired:!1,refreshTokenExpired:!1,idTokenExpired:!1,isRefreshable:!0},n=this.token.sync();if(this.refreshToken.sync(),this.idToken.sync(),!n)return t;if(!e)return t.valid=!0,t;const r=this.token.status(),o=this.refreshToken.status(),c=this.idToken.status();return o.expired()?(t.refreshTokenExpired=!0,t):r.expired()?(t.tokenExpired=!0,t):c.expired()?(t.idTokenExpired=!0,t):(t.valid=!0,t)}async mounted(){await this.configurationDocument.init();const{tokenExpired:e,refreshTokenExpired:t}=this.check(!0);(t||e&&this.options.autoLogout)&&this.$auth.reset(),this.requestHandler.initializeRequestInterceptor(this.options.endpoints.token);if(!await this._handleCallback())return this.$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){const e={id_token_hint:this.idToken.get(),post_logout_redirect_uri:this.logoutRedirectURI},t=this.options.endpoints.logout+"?"+w(e);window.location.replace(t)}return this.$auth.reset()}async fetchUser(){if(!this.check().valid)return;if(this.idToken.get()){const e=this.idToken.userInfo();return void this.$auth.setUser(e)}if(!this.options.endpoints.userInfo)return void this.$auth.setUser({});const{data:data}=await this.$auth.requestWith(this.name,{url:this.options.endpoints.userInfo});this.$auth.setUser(data)}async _handleCallback(){if(this.$auth.options.redirect&&O(this.$auth.ctx.route.path)!==O(this.$auth.options.redirect.callback))return;const e=A(this.$auth.ctx.route.hash.substr(1)),t=Object.assign({},this.$auth.ctx.route.query,e);let n,r=t[this.options.token.property];this.options.refreshToken.property&&(n=t[this.options.refreshToken.property]);let o=t[this.options.idToken.property];const c=this.$auth.$storage.getUniversal(this.name+".state");if(this.$auth.$storage.setUniversal(this.name+".state",null),!c||t.state===c){if("code"===this.options.responseType&&t.code){let e;this.options.codeChallengeMethod&&"implicit"!==this.options.codeChallengeMethod&&(e=this.$auth.$storage.getUniversal(this.name+".pkce_code_verifier"),this.$auth.$storage.setUniversal(this.name+".pkce_code_verifier",null));const c=await this.$auth.request({method:"post",url:this.options.endpoints.token,baseURL:"",data:w({code:t.code,client_id:this.options.clientId,redirect_uri:this.redirectURI,response_type:this.options.responseType,audience:this.options.audience,grant_type:this.options.grantType,code_verifier:e})});r=P(c.data,this.options.token.property)||r,n=P(c.data,this.options.refreshToken.property)||n,o=P(c.data,this.options.idToken.property)||o}if(r&&r.length)return this.token.set(r),n&&n.length&&this.refreshToken.set(n),o&&o.length&&this.idToken.set(o),this.$auth.redirect("home",!0),!0}}}const oe={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 ae extends Z{constructor(e,t){super(e,t,oe),this.refreshRequest=null,this.refreshToken=new z(this,this.$auth.$storage),this.refreshController=new B(this)}check(e=!1){const t={valid:!1,tokenExpired:!1,refreshTokenExpired:!1,isRefreshable:!0},n=this.token.sync(),r=this.refreshToken.sync();if(!n||!r)return t;if(!e)return t.valid=!0,t;const 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();const 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(const 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({resetInterceptor:e=!0}={}){this.$auth.setUser(!1),this.token.reset(),this.refreshToken.reset(),e&&this.requestHandler.reset()}updateTokens(e,{isRefreshing:t=!1,updateOnRefresh:n=!0}={}){const r=!this.options.token.required||P(e.data,this.options.token.property),o=!this.options.refreshToken.required||P(e.data,this.options.refreshToken.property);this.token.set(r),o&&(!t||t&&n)&&this.refreshToken.set(o)}initializeRequestInterceptor(){this.requestHandler.initializeRequestInterceptor(this.options.endpoints.refresh.url)}}class se extends ne{logout(){this.$auth.reset();const e={client_id:this.options.clientId+"",returnTo:this.logoutRedirectURI},t=this.options.endpoints.logout+"?"+w(e);window.location.replace(t)}}class ce extends ae{updateTokens(e,{isRefreshing:t=!1,updateOnRefresh:n=!1}={}){super.updateTokens(e,{isRefreshing:t,updateOnRefresh:n})}}},909:function(e,t,n){"use strict";n.r(t),n.d(t,"SplitFactory",(function(){return Lo}));var r=n(11),o=n(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 n;if(null===(n=e.sync.requestOptions)||void 0===n?void 0:n.getHeaderOverrides)try{var o=e.sync.requestOptions.getHeaderOverrides({headers:Object(r.a)({},t)});Object.keys(o).filter((function(e){return!c.has(e.toLowerCase())}
2)).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(n,r){var o=setTimeout((function(){r(new Error("Operation timed out because it exceeded the configured time limit of ".concat(e," ms.")))}),e);t.then((function(e){clearTimeout(o),n(e)}),(function(e){clearTimeout(o),r(e)}))}))}var h=100,f="Global fetch API is not available.";var m="control",y="DEBUG",v="OPTIMIZED",_="NONE",E="localhost",T="standalone",A="producer",w="consumer",S="consumer_partial",O="MEMORY",I="LOCALSTORAGE",C="GRANTED",P="DECLINED",N="UNKNOWN",D="getTreatment",R="getTreatments",L="getTreatmentWithConfig",k="getTreatmentsWithConfig",x="getTreatmentsByFlagSet",M="getTreatmentsByFlagSets",U="getTreatmentsWithConfigByFlagSet",F="getTreatmentsWithConfigByFlagSets",j="track",V="split",B="splits",Y="names",H=0,$=1,z=2,K="sp",W="im",G="ic",Q="ev",X="te",Z="to",J="se",ee="ms",te="t",ne="ts",re="tc",ie="tcs",oe="tf",ae="tfs",se="tcf",ce="tcfs",le="tr",ue=50,de=80,pe="1.3",he="IN_SEGMENT",fe="IN_RULE_BASED_SEGMENT",me="standard",ge="rule-based",ye={headers:{"Cache-Control":"no-cache"}};function ve(e){return"users="+encodeURIComponent(e)}function _e(e,t,n){var c=e.urls,m=e.sync.__splitFiltersValidation&&e.sync.__splitFiltersValidation.queryString,y=e.sync.impressionsMode,v=function(e,t){var n=t.getOptions,c=t.getFetch,m=e.log,y=e.core.authorizationKey,v=e.version,_=e.runtime,E=_.ip,T=_.hostname,A=n&&n(e),w=c&&c(e);w||m.error(o.t,[f]);var S={Accept:"application/json","Content-Type":"application/json",Authorization:"Bearer ".concat(y),SplitSDKVersion:v};return E&&(S.SplitSDKMachineIP=E),T&&(S.SplitSDKMachineName=T.replace(/[^\x00-\xFF]/g,"")),function(t,n,c,y){void 0===n&&(n={}),void 0===c&&(c=function(){}),void 0===y&&(y=!1);var v=Object(r.a)({headers:l(e,Object(r.a)({},S,n.headers||{})),method:n.method||"GET",body:n.body},A);return w?w(t,v).then((function(e){return e.ok?(c(),e):d(h,e.text()).then((function(t){return Promise.reject({response:e,message:t})}),(function(){return Promise.reject({response:e})}))})).catch((function(e){var n=e&&e.response,r="";r=n?404===n.status?"Invalid SDK key or resource not found.":e.message:e.message||"Network Error",n&&403===n.status||m[y?"info":"error"](o.B,[n?"status code "+n.status:"no status code",t,r]);var l=new Error(r);throw l.statusCode=n&&n.status,c(l),l})):Promise.reject(new Error(f))}}(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 r="".concat(c.auth,"/v2/auth?s=").concat(e.sync.flagSpecVersion);if(t){var o=t.map(ve).join("&");o&&(r+="&"+o)}return v(r,void 0,n.trackHttp(Z))},fetchSplitChanges:function(t,r,l,d){var h="".concat(c.sdk,"/splitChanges?s=").concat(e.sync.flagSpecVersion,"&since=").concat(t).concat(d?"&rbSince="+d:"").concat(m||"").concat(l?"&till="+l:"");return v(h,r?ye:void 0,n.trackHttp(K)).catch((function(t){throw 414===t.statusCode&&e.log.error(o.U),t}))},fetchSegmentChanges:function(e,t,r,o){var l="".concat(c.sdk,"/segmentChanges/").concat(t,"?since=").concat(e).concat(o?"&till="+o:"");return v(l,r?ye:void 0,n.trackHttp(J))},fetchMemberships:function(e,t,r){var o="".concat(c.sdk,"/memberships/").concat(encodeURIComponent(e)).concat(r?"?till="+r:"");return v(o,t?ye:void 0,n.trackHttp(ee))},postEventsBulk:function(body,e){var t="".concat(c.events,"/events/bulk");return v(t,{method:"POST",body:body,headers:e},n.trackHttp(Q))},postTestImpressionsBulk:function(body,e){var t="".concat(c.events,"/testImpressions/bulk");return v(t,{method:"POST",body:body,headers:Object(r.a)({SplitSDKImpressionsMode:y},e)},n.trackHttp(W))},postTestImpressionsCount:function(body,e){var t="".concat(c.events,"/testImpressions/count");return v(t,{method:"POST",body:body,headers:e},n.trackHttp(G))},postUniqueKeysBulkCs:function(body,e){var t="".concat(c.telemetry,"/v1/keys/cs");return v(t,{method:"POST",body:body,headers:e},n.trackHttp(X))},postUniqueKeysBulkSs:function(body,e){var t="".concat(c.telemetry,"/v1/keys/ss");return v(t,{method:"POST",body:body,headers:e},n.trackHttp(X))},postMetricsConfig:function(body,e){var t="".concat(c.telemetry,"/v1/metrics/config");return v(t,{method:"POST",body:body,headers:e},n.trackHttp(X),!0)},postMetricsUsage:function(body,e){var t="".concat(c.telemetry,"/v1/metrics/usage");return v(t,{method:"POST",body:body,headers:e},n.trackHttp(X),!0)}}}function be(e,t,n,r){void 0===r&&(r="task");var c,l,d,h=0,f=!1,m=0;function y(){for(var n=[],l=0;l<arguments.length;l++)n[l]=arguments[l];return h++,e.debug(o.ac,[r]),c=(c?c.then((function(){return t.apply(void 0,n)})):t.apply(void 0,n)).then((function(e){return h--,e}))}function v(e){return y.apply(void 0,l).then((function(t){return f&&e===m&&(d=setTimeout(v,n,e)),t}))}return{execute:y,isExecuting:function(){return h>0},start:function(){for(var t=[],c=0;c<arguments.length;c++)t[c]=arguments[c];if(!f)return f=!0,m++,l=t,e.debug(o.bc,[r,n]),v(m)},stop:function(){f&&(f=!1,e.debug(o.cc,[r]),clearTimeout(d),d=void 0)},isRunning:function(){return f}}}function Ee(e,t,n,r,c,l,d){void 0===l&&(l=0);var data,h=n.name,f=0;return be(e,(function(){if(n.isEmpty()&&!data)return Promise.resolve();var r="number"==typeof(data=n.pop(data)).length?"".concat(data.length," ").concat(h):h;e[d?"debug":"info"](o.Lb,[r]);var m=JSON.stringify(c?c(data):data);return l||(data=void 0),t(m).then((function(){f=0,data=void 0})).catch((function(t){l?f===l?(f=0,data=void 0,e[d?"debug":"warn"](o.Mb,[r,t])):(f++,e[d?"debug":"warn"](o.Pb,[r,t])):e[d?"debug":"warn"](o.Mb,[r,t])}))}),r,h+" submitter")}function Te(e,t){var n,r=!1,o=e.start;e.start=function(){r=!0,n=setTimeout(o,t)};var c=e.stop;return e.stop=function(){r=!1,clearTimeout(n),c()},e.isRunning=function(){return r},e}function Ae(e){var t=e.settings,n=t.log,r=t.scheduler.eventsPushRate,c=t.startup.eventsFirstPushWindow,l=e.splitApi.postEventsBulk,d=e.storage.events,h=Ee(n,l,d,r);return c>0&&(h=Te(h,c)),d.setOnFullQueueCb((function(){h.isRunning()&&(n.info(o.Nb,[d.name]),h.execute())}
2)),h}var we=n(1);function Se(e,data){var t=Object(we.f)(data,"feature"),n=[];return Object(we.d)(t,(function(t,r){n.push({f:r,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.bucketingKey,pt:t.pt,properties:t.properties}}))})})),n}function Oe(e){var t=e.settings,n=t.log,r=t.scheduler.impressionsRefreshRate,c=t.core.labelsEnabled,l=e.splitApi.postTestImpressionsBulk,d=e.storage.impressions,h=Ee(n,l,d,r,Se.bind(void 0,c),1);return d.setOnFullQueueCb((function(){h.isRunning()&&(n.info(o.Nb,[d.name]),h.execute())})),h}function Ie(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++){var r=n[i].split("::");if(2===r.length){var o=r[0],c=r[1],l={f:o,m:Number(c),rc:e[n[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 Pe="state::splits-arrived",Ne="state::splits-cache-loaded",De="state::segments-arrived",Re="init::timeout",Le="init::ready",ke="init::cache-ready",xe="state::update",Me="FLAGS_UPDATE",Ue="SEGMENTS_UPDATE";function Fe(e){return w===e||S===e}var je=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/;function Ve(e,t,n,r){if(void 0===r&&(r="feature flag name"),null==t)e.error(o.M,[n,r]);else if(Object(we.k)(t)){if(je.test(t)&&(e.warn(o.uc,[n,r,t]),t=t.trim()),t.length>0)return t;e.error(o.w,[n,r])}else e.error(o.E,[n,r]);return!1}function Be(e,t,n,r,c){if(void 0===r&&(r="feature flag names"),void 0===c&&(c="feature flag name"),Array.isArray(t)&&t.length>0){var l=[];if(t.forEach((function(t){var r=Ve(e,t,n,c);r&&l.push(r)})),l.length)return Object(we.q)(l)}return e.error(o.x,[n,r]),!1}var Ye=[{type:"bySet",maxLength:50,queryParam:"sets="},{type:"byName",maxLength:400,queryParam:"names="},{type:"byPrefix",maxLength:50,queryParam:"prefixes="}],He=/^[a-z0-9][_a-z0-9]{0,49}$/,$e=/[A-Z]/;function ze(e,t,n){var r=t.map((function(t){return $e.test(t)&&(e.warn(o.lc,[n,t]),t=t.toLowerCase()),t})).filter((function(t){return He.test(t)?"string"==typeof t:(e.warn(o.kc,[n,t,He,t]),!1)}));return Object(we.q)(r)}function qe(e,t){return Object(we.b)(e,(function(filter){return filter.type===t&&filter.values.length>0}))}function Ke(e,t,n){var c,l,d={validFilters:[],queryString:null,groupedFilters:{bySet:[],byName:[],byPrefix:[]}};return t?Fe(n)?(e.warn(o.sc),d):Array.isArray(t)&&0!==t.length?(d.validFilters=t.filter((function(filter,t){return filter&&(n=filter.type,Ye.some((function(e){return e.type===n})))&&Array.isArray(filter.values)?(d.groupedFilters[filter.type]=d.groupedFilters[filter.type].concat(filter.values),!0):(e.warn(o.tc,[t]),!1);var n})),Ye.forEach((function(t){var n=t.type,r=t.maxLength;d.groupedFilters[n].length>0&&(d.groupedFilters[n]=function(e,t,n,r){var c=Be(e,n,o.hb,"".concat(t," filter"),"".concat(t," filter value"));if(c){if("bySet"===t&&(c=ze(e,c,o.hb)),c.length>r)throw new Error("".concat(r," 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,n,d.groupedFilters[n],r))})),qe(d.validFilters,"bySet")&&((qe(d.validFilters,"byName")||qe(d.validFilters,"byPrefix"))&&e.error(o.N),Object(r.a)(d.groupedFilters,{byName:[],byPrefix:[]})),d.queryString=(c=d.groupedFilters,l=[],Ye.forEach((function(e){var t=e.type,n=e.queryParam,filter=c[t];filter.length>0&&l.push(n+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 We,Ge=250;function Qe(e,t,n,r){if(null==t)return e.error(o.M,[n,r]),!1;if(Object(we.h)(t))return e.warn(o.gc,[n,r,t]),Object(we.p)(t);if(Object(we.k)(t)){if((t=t.trim()).length>0&&t.length<=Ge)return t;0===t.length?e.error(o.w,[n,r]):t.length>Ge&&e.error(o.T,[n,r])}else e.error(o.E,[n,r]);return!1}function Xe(e,t,n){if(Object(we.j)(t)){var r=Qe(e,t.matchingKey,n,"matchingKey"),c=Qe(e,t.bucketingKey,n,"bucketingKey");return r&&c?{matchingKey:r,bucketingKey:c}:(e.error(o.G,[n]),!1)}return Qe(e,t,n,"key")}function Ze(e,t,n,r){var o=n.splits,c=n.rbSegments,l=n.segments,d=n.largeSegments,h=t.splitChanges,f=h.ff,m=h.rbs;e.debug("storage: set feature flags and segments".concat(r?" for key ".concat(r):"")),o&&f&&(o.clear(),o.update(f.d||[],[],f.t)),c&&m&&(c.clear(),c.update(m.d||[],[],m.t));var y=t.segmentChanges;if(r){var v=t.memberships&&t.memberships[r];!v&&y&&(v={ms:{k:y.filter((function(e){return e.added.indexOf(r)>-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)"}(We||(We={}));var Je=/^[0-9]+[.a-zA-Z0-9_-]*$|^[a-zA-Z]+[a-zA-Z0-9_-]*$/;function et(e){var t=Object(we.j)(e)?e.treatment:e;return!(!Object(we.k)(t)||t.length>100)&&Je.test(t)}function tt(e,t){if(void 0!==t){if(et(t))return t;e.error("Fallback treatments - Discarded fallback: ".concat(We.Treatment))}}function nt(e,t){var n={};return Object(we.j)(t)?(Object.keys(t).forEach((function(r){var o,c=t[r];(o=r).length<=100&&!o.includes(" ")?et(c)?n[r]=c:e.error("Fallback treatments - Discarded treatment for flag '".concat(r,"': ").concat(We.Treatment)):e.error("Fallback treatments - Discarded flag '".concat(r,"': ").concat(We.FlagName))})),n):n}var base={mode:T,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 n=t.defaults,r=t.runtime,c=t.storage,l=t.integrations,d=t.logger,h=t.consent,f=t.flagSpec,m=Object(we.l)({},base,n,e);m.features=Object(we.e)(e,"features");var O=d(m);m.log=O;var I=m.sync;I.impressionsMode=function(e,t){return t=Object(we.n)(t),[y,v,_].indexOf(t)>-1?t:(e.error(o.F,["impressionsMode",[y,v,_],v]),v)}(O,I.impressionsMode);var C,P,N,D=m.scheduler,R=m.startup;D.featuresRefreshRate=it(D.featuresRefreshRate),D.segmentsRefreshRate=it(D.segmentsRefreshRate),D.offlineRefreshRate=it(D.offlineRefreshRate),D.eventsPushRate=it(D.eventsPushRate),D.telemetryRefreshRate=it((C="telemetryRefreshRate",(P=D.telemetryRefreshRate)>=(N=60)?P:(O.error(o.I,[C,N]),N))),void 0===Object(we.e)(e,"scheduler.impressionsRefreshRate")&&I.impressionsMode===y&&(D.impressionsRefreshRate=60),D.impressionsRefreshRate=it(D.impressionsRefreshRate),D.metricsRefreshRate&&O.warn("`metricsRefreshRate` will be deprecated soon. For configuring telemetry rates, update `telemetryRefreshRate` value in configs"),R.requestTimeoutBeforeReady=it(R.requestTimeoutBeforeReady),R.readyTimeout=it(R.readyTimeout),R.eventsFirstPushWindow=it(R.eventsFirstPushWindow),m.mode=function(e,t){if("localhost"===e)return E;if(-1===[T,A,w,S].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 n=t.mode,r=t.initialRolloutPlan;if(!Fe(n))return Object(we.j)(r)&&Object(we.j)(r.splitChanges)?r:void e.error("storage: invalid rollout plan provided");e.warn("storage: initial rollout plan is ignored in consumer mode")}(O,m));var L=m.core.key;t.acceptKey?m.mode===E&&void 0===L?m.core.key="localhost_key":m.core.key=Xe(O,L,o.Z):(void 0!==L&&O.warn("Provided `key` is ignored in server-side SDK."),m.core.key=void 0),m.runtime=r(m),l&&(m.integrations=l(m)),!1!==m.streamingEnabled&&(m.streamingEnabled=!0,D.pushRetryBackoffBase=it(D.pushRetryBackoffBase)),!1!==I.enabled&&(I.enabled=!0);var k=Ke(O,I.splitFilters,m.mode);return I.splitFilters=k.validFilters,I.__splitFiltersValidation=k,I.flagSpecVersion=f?f(m):pe,m.userConsent=h?h(m):void 0,m.fallbackTreatments=m.fallbackTreatments?function(e,t){if(Object(we.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")}(O,m.fallbackTreatments):void 0,m}var at="sdk_key";var st,ct,lt,ut={};function pt(e,t){var n=function(e,t){var n=!1;return null==t?e.error(o.M,[o.gb,at]):Object(we.k)(t)?t.length>0?n=t:e.error(o.w,[o.gb,at]):e.error(o.E,[o.gb,at]),n}(e,t);return n&&(ut[n]?(e.warn(o.pc,["".concat(ut[n]," factory/ies with this SDK Key")]),ut[n]++):(ut[n]=1,Object.keys(ut).length>1&&e.warn(o.pc,["an instance of the Split factory"]))),n}function ht(e){var t=e();return function(){return Math.round(e()-t)}}function ft(e){return Object(we.j)(e)?e.matchingKey:e}function mt(e){return Object(we.j)(e)?{matchingKey:e.matchingKey,bucketingKey:e.bucketingKey}:{matchingKey:e,bucketingKey:e}}function gt(e){return!e.core.key}var yt=((st={})[T]=0,st[w]=1,st[S]=2,st),vt=((ct={})[v]=0,ct[y]=1,ct[_]=2,ct),_t=((lt={})[N]=1,lt[C]=2,lt[P]=3,lt);function bt(e,t){return{name:"telemetry config",isEmpty:function(){return!1},clear:function(){},pop:function(){var n,o,c=t.urls,l=t.scheduler,d=gt(t),h=function(e){var t=0;
2e.validFilters.forEach((function(filter){"bySet"===filter.type&&(t+=filter.values.length)}));var n=e.groupedFilters.bySet.length;return{flagSetsTotal:t,flagSetsIgnored:t-n}}(t.sync.__splitFiltersValidation),f=h.flagSetsTotal,m=h.flagSetsIgnored;return Object(r.a)((n=t.mode,o=t.storage.type,{oM:yt[n],st:o.toLowerCase(),aF:Object.keys(ut).length,rF:Object.keys(ut).reduce((function(e,t){return e+ut[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:vt[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:f,fsI:m})}}}function Et(e){var t=e.settings,n=t.log,r=t.core.key,c=e.splitApi,l=c.postUniqueKeysBulkCs,d=c.postUniqueKeysBulkSs,h=e.storage.uniqueKeys,f=Ee(n,void 0!==r?l:d,h,9e5);return h.setOnFullQueueCb((function(){f.isRunning()&&(n.info(o.Nb,[h.name]),f.execute())})),f}function Tt(e){var t=[Oe(e),Ae(e),Ce(e),Et(e)],n=function(e){var t=e.storage.telemetry,n=e.platform.now;if(t&&n){var r=e.settings,o=e.settings,c=o.log,l=o.scheduler.telemetryRefreshRate,d=e.splitApi,h=e.readiness,f=e.sdkReadinessManager,m=ht(n),y=Te(Ee(c,d.postMetricsUsage,t,l,void 0,0,!0),l);return h.gate.once(ke,(function(){t.recordTimeUntilReadyFromCache(m())})),f.incInternalReadyCbCount(),h.gate.once(Le,(function(){t.recordTimeUntilReady(m()),y.isRunning()&&Ee(c,d.postMetricsConfig,bt(t,r),0,void 0,0,!0).execute()})),y}}(e);return{start:function(e){e||t.forEach((function(e){return e.start()})),n&&n.start()},stop:function(e){t.forEach((function(e){return e.stop()})),!e&&n&&n.stop()},isRunning:function(){return t.some((function(e){return e.isRunning()}))},execute:function(e){var r=e?[]:t.map((function(e){return e.execute()}));return n&&r.push(n.execute()),Promise.all(r).then((function(){}))},isExecuting:function(){return t.some((function(e){return e.isExecuting()}))}}}var At,wt="PUSH_NONRETRYABLE_ERROR",St="PUSH_RETRYABLE_ERROR",Ot="PUSH_SUBSYSTEM_UP",It="PUSH_SUBSYSTEM_DOWN",Ct="MEMBERSHIPS_MS_UPDATE",Pt="MEMBERSHIPS_LS_UPDATE",Nt="SEGMENT_UPDATE",Dt="SPLIT_KILL",Rt="SPLIT_UPDATE",Lt="RB_SEGMENT_UPDATE",kt="CONTROL",xt="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 Ut=function(){function e(){}return e.prototype.update=function(e,t,n){var r=this,o=e.map((function(e){return r.addSplit(e)})).some((function(e){return e}));return o=t.map((function(e){return r.removeSplit(e.name)})).some((function(e){return e}))||o,this.setChangeNumber(n),o},e.prototype.getSplits=function(e){var t=this,n={};return e.forEach((function(e){n[e]=t.getSplit(e)})),n},e.prototype.getAll=function(){var e=this;return this.getSplitNames().map((function(t){return e.getSplit(t)}))},e.prototype.killLocally=function(e,t,n){var o=this.getSplit(e);if(o&&(!o.changeNumber||o.changeNumber<n)){var c=Object(r.a)({},o);return c.killed=!0,c.defaultTreatment=t,c.changeNumber=n,this.addSplit(c)}return!1},e}();function Ft(e){for(var t=e.conditions||[],i=0;i<t.length;i++)for(var n=t[i].matcherGroup.matchers,r=0;r<n.length;r++){var o=n[r].matcherType;if(o===he||"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 Vt=function(){function e(t,n,r){this.baseMillis=e.__TEST__BASE_MILLIS||n||e.DEFAULT_BASE_MILLIS,this.maxMillis=e.__TEST__MAX_MILLIS||r||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 Bt=[/control_pri$/,/control_sec$/],Yt=[10,20];function Ht(e,t,n){var r=function(e,t){var n=Bt.map((function(e){return{regex:e,hasPublishers:!0,oTime:-1,cTime:-1}})),r=!0,o=!0;return{handleOpen:function(){t.streamingEvent(0),e.emit(Ot)},isStreamingUp:function(){return o&&r},handleOccupancyEvent:function(c,l,d){for(var i=0;i<n.length;i++){var h=n[i];if(h.regex.test(l)){if(t.streamingEvent(Yt[i],c),d>h.oTime){h.oTime=d,h.hasPublishers=0!==c;var f=n.some((function(e){return e.hasPublishers}));o&&(!f&&r?e.emit(It):f&&!r&&e.emit(Ot)),r=f}return}}},handleControlEvent:function(c,l,d){if(c!==At.STREAMING_RESET)for(var i=0;i<n.length;i++){var h=n[i];if(h.regex.test(l))return void(d>
2h.cTime&&(h.cTime=d,c===At.STREAMING_DISABLED?(t.streamingEvent(30,0),e.emit(wt)):r&&(c===At.STREAMING_PAUSED&&o?(t.streamingEvent(30,2),e.emit(It)):c!==At.STREAMING_RESUMED||o||(t.streamingEvent(30,1),e.emit(Ot))),o=c===At.STREAMING_RESUMED))}else e.emit(c)}}}(t,n);return{handleOpen:function(){r.handleOpen()},handleError:function(r){var c=r;try{c=function(e){return Object(we.k)(e.data)&&(e.parsedData=JSON.parse(e.data)),e}(r)}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(n.streamingEvent(60,code),40140<=code&&code<=40149)return!0;if(4e4<=code&&code<=49999)return!1}else n.streamingEvent(40,1);return!0}(c)?t.emit(wt):t.emit(St)},handleMessage:function(n){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=xt),t}}(n),!c)return}catch(t){return void e.warn(o.Hb,[t])}var l=c.parsedData,data=c.data,d=c.channel,h=c.timestamp;if(e.debug(o.Eb,[data]),r.isStreamingUp()||-1!==[xt,kt].indexOf(l.type))switch(l.type){case Rt:case Nt:case Ct:case Pt:case Dt:case Lt:t.emit(l.type,l);break;case xt:r.handleOccupancyEvent(l.metrics.publishers,d,h);break;case kt:r.handleControlEvent(l.controlType,d,h)}}}}function $t(e,t,n,r){var o,c,l;function d(t){var o,d,h,f=0,m=-1,y=!1,v=new Vt(_);function _(){if(o=!0,f>Math.max(m,t.getChangeNumber())){y=!1;var E=f;(c?new Promise((function(e){l=setTimeout((function(){c=void 0,n.execute(h,!0,d?f:void 0).then(e)}),c)})):n.execute(h,!0,d?f:void 0)).then((function(n){if(o){if(!1!==n){var c=t.getChangeNumber();m=c>-1?c:Math.max(m,E)}if(y)_();else{h&&r.trackUpdatesFromSSE(ee);var l=v.attempts+1;if(f<=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,n,r){var l=e.type,E=e.cn;E<=Math.max(m,t.getChangeNumber())||E<=f||(f=E,c||(y=!0,d=!1,h=n&&{type:l,cn:E,added:n.added,removed:n.removed},c=r,!v.timeoutID&&o||_(),v.reset()))},stop:function(){clearTimeout(l),c=void 0,o=!1,v.reset()}}}var h=((o={})[Ct]=d(t.segments),o[Pt]=d(t.largeSegments),o);return{put:function(e,t,n){h[e.type].put(e,t,n)},stop:function(){h[Ct].stop(),h[Pt].stop()}}}function zt(e,t,n){var r={};return{put:function(o){var c=o.changeNumber,l=o.segmentName;r[l]||(r[l]=function(r){var o,c,l=0,d=!1,h=new Vt(f,1e4,6e4);function f(){o=!0,l>(n.getChangeNumber(r)||-1)?(d=!1,t.execute(!1,r,!0,c?l:void 0).then((function(){if(o)if(d)f();else{var t=h.attempts+1;if(l<=(n.getChangeNumber(r)||-1))return e.debug("Refresh completed".concat(c?" bypassing the CDN":""," in ").concat(t," attempts.")),void(o=!1);if(t<10)return void h.scheduleCall();c?(e.debug("No changes fetched after ".concat(t," attempts with CDN bypassed.")),o=!1):(h.reset(),c=!0,f())}}))):o=!1}return{put:function(e){e<=(n.getChangeNumber(r)||-1)||e<=l||(l=e,d=!0,c=!1,!h.timeoutID&&o||f(),h.reset())},stop:function(){o=!1,h.reset()}}}(l)),r[l].put(c)},stop:function(){Object.keys(r).forEach((function(e){return r[e].stop()}))}}}var qt=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,n=Uint32Array,r=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,r){for(var b=new t(31),i=0;i<31;++i)b[i]=r+=1<<e[i-1];var o=new n(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(r,2),h=d[0],f=d[1];h[28]=258,f[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,n,r){for(var s=e.length,i=0,o=new t(n);i<s;++i)++o[e[i]-1];var c,l=new t(n);for(i=0;i<n;++i)l[i]=l[i-1]+o[i-1]<<1;if(r){c=new t(1<<n);var d=15-n;for(i=0;i<s;++i)if(e[i])for(var h=i<<4|e[i],f=n-e[i],m=l[e[i]-1]++<<f,v=m|(1<<f)-1;m<=v;++m)c[y[m]>>>d]=h}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 T=new e(32);for(i=0;i<32;++i)T[i]=5;var A=_(E,9,1),w=_(T,5,1),S=function(a){for(var e=a[0],i=1;i<a.length;++i)a[i]>e&&(e=a[i]);return e},O=function(e,p,t){var n=p/8|0;return(e[n]|e[n+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)}
2,C=["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,n){var r=new Error(t||C[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,P),!n)throw r;return r},N=function(l,d,f){var y=l.length;if(!y||f&&f.f&&!f.l)return d||new e(0);var v=!d||f,E=!f||f.i;f||(f={}),d||(d=new e(3*y));var T=function(t){var n=d.length;if(t>n){var r=new e(Math.max(2*n,t));r.set(d),d=r}},C=f.f||0,N=f.p||0,D=f.b||0,R=f.l,L=f.d,k=f.m,x=f.n,M=8*y;do{if(!R){C=O(l,N,1);var U=O(l,N+1,3);if(N+=3,!U){var F=l[(s=4+((N+7)/8|0))-4]|l[s-3]<<8,j=s+F;if(j>y){E&&P(0);break}v&&T(D+F),d.set(l.subarray(s,j),D),f.b=D+=F,f.p=N=8*j,f.f=C;continue}if(1==U)R=A,L=w,k=9,x=5;else if(2==U){var V=O(l,N,31)+257,B=O(l,N+10,15)+4,Y=V+O(l,N+5,31)+1;N+=14;for(var H=new e(Y),$=new e(19),i=0;i<B;++i)$[c[i]]=O(l,N+3*i,7);N+=3*B;var z=S($),K=(1<<z)-1,W=_($,z,1);for(i=0;i<Y;){var s,G=W[O(l,N,K)];if(N+=15&G,(s=G>>>4)<16)H[i++]=s;else{var Q=0,X=0;for(16==s?(X=3+O(l,N,3),N+=2,Q=H[i-1]):17==s?(X=3+O(l,N,7),N+=3):18==s&&(X=11+O(l,N,127),N+=7);X--;)H[i++]=Q}}var Z=H.subarray(0,V),dt=H.subarray(V);k=S(Z),x=S(dt),R=_(Z,k,1),L=_(dt,x,1)}else P(1);if(N>M){E&&P(0);break}}v&&T(D+131072);for(var J=(1<<k)-1,ee=(1<<x)-1,te=N;;te=N){var ne=(Q=R[I(l,N)&J])>>>4;if((N+=15&Q)>M){E&&P(0);break}if(Q||P(2),ne<256)d[D++]=ne;else{if(256==ne){te=N,R=null;break}var re=ne-254;if(ne>264){var b=r[i=ne-257];re=O(l,N,(1<<b)-1)+h[i],N+=b}var ie=L[I(l,N)&ee],oe=ie>>>4;ie||P(3),N+=15&ie;dt=m[oe];if(oe>3){b=o[oe];dt+=I(l,N)&(1<<b)-1,N+=b}if(N>M){E&&P(0);break}v&&T(D+131072);for(var ae=D+re;D<ae;D+=4)d[D]=d[D-dt],d[D+1]=d[D+1-dt],d[D+2]=d[D+2-dt],d[D+3]=d[D+3-dt];D=ae}}f.l=R,f.p=te,f.b=D,f.f=C,R&&(C=1,f.m=k,f.d=L,f.n=x)}while(!C);return D==d.length?d:function(r,s,o){(null==s||s<0)&&(s=0),(null==o||o>r.length)&&(o=r.length);var c=new(r instanceof t?t:r instanceof n?n:e)(o-s);return c.set(r.subarray(s,o)),c}(d,0,D)};return{gunzipSync:function(data,t){return N(data.subarray(function(e){31==e[0]&&139==e[1]&&8==e[2]||P(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=e[10]|2+(e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)}(data),-8),t||new e((r=(n=data).length,(n[r-4]|n[r-3]<<8|n[r-2]<<16|n[r-1]<<24)>>>0)));var n,r},unzlibSync:function(data,e){return N(((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}}}(),Kt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Wt(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,n=void 0,r=void 0,o=0;r=e.charAt(o++);~r&&(n=t%4?64*n+r:r,t++%4)?output+=String.fromCharCode(255&n>>(-2*t&6)):0)r=Kt.indexOf(r);return output}var Gt=String.fromCharCode;function Qt(e){var t,n,r,o,c;return n=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=[],r=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 n,r=null;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)}(n,(function(e){!function(e,t){var n=null;for("number"==typeof e&&(n=e,e=function(){return null});null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null}(e,r)})),t()}function Xt(e,t){return(65535&e)*t+(((e>>>16)*t&65535)<<16)}function Zt(e,t){return e<<t|e>>>32-t}function Jt(e,t){t=t||0;for(var n,r=(e=e||"").length%4,o=e.length-r,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=Zt(c,15),d),h1=Xt(h1=Zt(h1^=c,13),5)+3864292196;switch(c=0,r){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=Zt(c,15),d)}return h1^=e.length,n=h1,n=Xt(n^=n>>>16,2246822507),(h1=(n=Xt(n^=n>>>13,3266489909))^n>>>16)>>>0}function en(e,t){return Jt(Qt(e),t>>>0)}function tn(e,t){return Math.abs(en(e,t)%100)+1}function nn(data,e){var t,n=Wt(data),r=(t=n.split("").map((function(e){return e.charCodeAt(0)})),new Uint8Array(t));if("string"==typeof qt)throw new Error(qt);if(1===e)return qt.gunzipSync(r);if(2===e)return qt.unzlibSync(r);throw new Error("Invalid compression algorithm #".concat(e))}function rn(data,e,t){void 0===t&&(t=!0);var n,r=nn(data,e),o=(n=r,String.fromCharCode.apply(null,n));return t&&(o=o.replace(/\d+/g,'"$&"')),JSON.parse(o)}function on(e,t){if(0===e.h)return 0;var n=e.i||6e4;return en(t,e.s||0)%n}function an(e,t,n,r,c,l){var d=f(t.splits),h=f(t.rbSegments);function f(t){var r,o,f,m=-1,y=!1,v=new Vt(_,1e4,6e4);function _(){r=!0,m>t.getChangeNumber()?(y=!1,n.execute(!0,o?m:void 0,f).then((function(){if(r)if(y)_();else{f&&c.trackUpdatesFromSSE(K),l&&l.execute(!0);var t=v.attempts+1;if(d.isSync()&&h.isSync())return e.debug("Refresh completed".concat(o?" bypassing the CDN":""," in ").concat(t," attempts.")),void(r=!1);if(t<10)return void v.scheduleCall();o?(e.debug("No changes fetched after ".concat(t," attempts with CDN bypassed.")),r=!1):(v.reset(),o=!0,_(
2))}}))):r=!1}return{put:function(e,n){var c=e.changeNumber,l=e.pcn,d=e.type,h=t.getChangeNumber();c<=h||c<=m||(m=c,y=!0,o=!1,f=void 0,n&&h===l&&(f={payload:n,changeNumber:c,type:d}),!v.timeoutID&&r||_(),v.reset())},stop:function(){r=!1,v.reset()},isSync:function(){return m<=t.getChangeNumber()}}}return{put:function(t){if(t.d&&void 0!==t.c)try{var n=(r=t.c,data=t.d,r>0?rn(data,r,!1):JSON.parse(Wt(data)));if(n)return void(t.type===Lt?h:d).put(t,n)}catch(n){e.warn(o.Ib,[t.type,n])}var r,data;(t.type===Lt?h:d).put(t)},killSplit:function(e){var n=e.changeNumber,o=e.splitName,c=e.defaultTreatment;t.splits.killLocally(o,c,n)&&r.emit(Pe,!0),d.put({changeNumber:n})},stop:function(){d.stop(),h.stop()}}}function sn(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(Wt(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 n=JSON.parse(t["x-ably-capability"]);return Object(r.a)({decodedToken:t,channels:n},e)}var o,c,l;return e}))}}function cn(e){return function(input){for(var e=String(input),output="",t=void 0,n=void 0,r=0,map=Kt;e.charAt(0|r)||(map="=",r%1);output+=map.charAt(63&t>>8-r%1*8)){if((n=e.charCodeAt(r+=3/4))>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");t=t<<8|n}return output}(en(e,0).toString())}var ln=/^control_/;var un,dn,pn=function(){function e(e,t){var n=t.getEventSource,r=t.getOptions;if(this.settings=e,this.eventSource=n&&n(e),!this.eventSource)throw new Error("EventSource API is not available.");this.headers=function(e){var t={SplitSDKClientKey:Object(we.k)(e.core.authorizationKey)?e.core.authorizationKey.slice(-4):"",SplitSDKVersion:e.version},n=e.runtime,r=n.ip,o=n.hostname;return r&&(t.SplitSDKMachineIP=r),o&&(t.SplitSDKMachineName=o),t}(e),this.options=r&&r(e)}return e.prototype.setEventHandler=function(e){this.handler=e},e.prototype.open=function(e){var t;this.close();var n=Object.keys(e.channels).map((function(e){var t=ln.test(e)?"[?occupancy=metrics.publishers]":"";return encodeURIComponent(t+e)})).join(","),o="".concat(this.settings.urls.streaming,"/sse?channels=").concat(n,"&accessToken=").concat(e.token,"&v=").concat("1.1","&heartbeats=true"),c=gt(this.settings);this.connection=new this.eventSource(c?o:o+"&SplitSDKVersion=".concat(this.headers.SplitSDKVersion,"&SplitSDKClientKey=").concat(this.headers.SplitSDKClientKey),Object(r.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 hn(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function fn(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function mn(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 gn(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 yn(e,t){return[e[0]^t[0],e[1]^t[1]]}function vn(e){return e=yn(e,[0,e[0]>>>1]),e=yn(e=fn(e,[4283543511,3981806797]),[0,e[0]>>>1]),e=yn(e=fn(e,[3301882366,444984403]),[0,e[0]>>>1])}function _n(e,t){return function(e,t){t=t||0;for(var n=(e=e||"").length%16,r=e.length-n,h1=[0,t],h2=[0,t],o=[0,0],c=[0,0],l=[2277735313,289559509],d=[1291169091,658871167],i=0;i<r;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=mn(o=fn(o,l),31),h1=hn(h1=mn(h1=yn(h1,o=fn(o,d)),27),h2),h1=hn(fn(h1,[0,5]),[0,1390208809]),c=mn(c=fn(c,d),33),h2=hn(h2=mn(h2=yn(h2,c=fn(c,l)),31),h1),h2=hn(fn(h2,[0,5]),[0,944331445]);switch(o=[0,0],c=[0,0],n){case 15:c=yn(c,gn([0,e.charCodeAt(i+14)],48));case 14:c=yn(c,gn([0,e.charCodeAt(i+13)],40));case 13:c=yn(c,gn([0,e.charCodeAt(i+12)],32));case 12:c=yn(c,gn([0,e.charCodeAt(i+11)],24));case 11:c=yn(c,gn([0,e.charCodeAt(i+10)],16));case 10:c=yn(c,gn([0,e.charCodeAt(i+9)],8));case 9:c=fn(c=yn(c,[0,e.charCodeAt(i+8)]),d),h2=yn(h2,c=fn(c=mn(c,33),l));case 8:o=yn(o,gn([0,e.charCodeAt(i+7)],56));case 7:o=yn(o,gn([0,e.charCodeAt(i+6)],48));case 6:o=yn(o,gn([0,e.charCodeAt(i+5)],40));case 5:o=yn(o,gn([0,e.charCodeAt(i+4)],32));case 4:o=yn(o,gn([0,e.charCodeAt(i+3)],24));case 3:o=yn(o,gn([0,e.charCodeAt(i+2)],16));case 2:o=yn(o,gn([0,e.charCodeAt(i+1)],8));case 1:o=fn(o=yn(o,[0,e.charCodeAt(i)]),l),h1=yn(h1,o=fn(o=mn(o,31),d))}return h1=hn(h1=yn(h1,[0,e.length]),h2=yn(h2,[0,e.length])),h2=hn(h2,h1),h1=hn(h1=vn(h1),h2=vn(h2)),h2=hn(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 bn(s){var i,e,t,n=[0];for(i=0;i<s.length;i+=1){for(t=parseInt(s.charAt(i),16),e=n.length-1;e>=0;e-=1)n[e]=16*n[e]+t,t=n[e]/10|0,n[e]%=10;for(;t>0;)n.unshift(t%10),t=t/10|0}return n.join("")}function En(e,t,n,r,c,l,h){var f=n.segments,m=n.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===Pt?m.resetSegments(e):f.resetSegments(e):(t=f.resetSegments(e.ms||{}),t=m.resetSegments(e.ls||{})||t),n.save&&n.save(),jt(n)&&(t||y)&&(y=!1,r.emit(De,{type:Ue,names:[]}))}function T(n,r,c,d){var f=r?new Promise((function(e){E(r),e(!0)})):t(h,c,d,_).then((function(e){return E(e),v=!1,!0}));return f.catch((function(t){return v&&l>n?(n+=1,e.warn(o.Rb,[n,t]),T(n)):(v=!1,!1)}))}return function(e,t,n){return T(0,e,t,n)}}!function(e){e[e.None=0]="None",e[e.Gzip=1]="Gzip",e[e.Zlib=2]="Zlib"}(un||(un={})),function(e){e[e.UnboundedFetchRequest=0]="UnboundedFetchRequest",e[e.BoundedFetchRequest=1]="BoundedFetchRequest",e[e.KeyList=2]="KeyList",e[e.SegmentRemoval=3]="SegmentRemoval"}(dn||(dn={}));var Tn=36e5;function An(e,t,n){var r,c=t.log,l=gt(t)?864e5:Tn;return function d(h,f,m,y,v){r&&Date.now()-r>l&&(t.sync.flagSpecVersion=pe);var _=e(h,f,m,t.sync.flagSpecVersion===pe?y:void 0).catch((function(n){if((!n.statusCode||400===n.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"),r=Date.now(),t.sync.flagSpecVersion="1.2",e(h,f,m);throw n}));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}}:r?(c.info(o.nb+"Proxy error recovered"),r=void 0,d(-1,void 0,void 0,-1).then((function(e){return Promise.all([n.splits.clear(),n.rbSegments.clear()]).then((function(){return e}))}))):data}))}}function wn(e){if(Array.from)return Array.from(e);var t=[];return e.forEach((function(e){t.push(e)})),t}function Sn(e,t){void 0===t&&(t=he);var n=e,r=n.conditions,o=n.excluded,c=new Set;
2if(o&&o.segments&&o.segments.forEach((function(e){var n=e.type,r=e.name;(n===me&&t===he||n===ge&&t===fe)&&c.add(r)})),r)for(var i=0;i<r.length;i++){r[i].matcherGroup.matchers.forEach((function(e){e.matcherType===t&&c.add(e.userDefinedSegmentMatcherData.segmentName)}))}return c}function On(e,t,n){return e.reduce((function(e,r){return"ARCHIVED"===r.status||n&&!function(e,t){var n=t.groupedFilters,r=n.bySet,o=n.byName,c=n.byPrefix;if(r.length>0)return e.sets&&e.sets.some((function(e){return r.indexOf(e)>-1}));var l=o.length>0,d=c.length>0;if(!l&&!d)return!0;var h=l&&o.indexOf(e.name)>-1,f=d&&c.some((function(t){return Object(we.m)(e.name,t)}));return h||f}(r,n)?e.removed.push(r):(e.added.push(r),Sn(r).forEach((function(e){t.add(e)}))),e.names.push(r.name),e}),{added:[],removed:[],names:[]})}function In(e,t,n,r,c,l,h,f){void 0===l&&(l=0),void 0===h&&(h=0);var m=n.splits,y=n.rbSegments,v=n.segments,_=!0;function E(e){return _&&l&&(e=d(l,e)),e}return function(l,d,T){return Promise.all([m.getChangeNumber(),y.getChangeNumber()]).then((function A(w,S){void 0===S&&(S=0);var O=w[0],I=w[1];return e.debug(o.Ub,w),Promise.resolve(T?T.type===Rt?Promise.resolve(y.contains(Sn(T.payload,fe))).then((function(e){return e?{ff:{d:[T.payload],t:T.changeNumber}}:t(O,l,d,I,E)})):{rbs:{d:[T.payload],t:T.changeNumber}}:t(O,l,d,I,E)).then((function(t){var l=new Set,d=[],h=!1;if(t.ff){var E=On(t.ff.d||[],l,r),T=E.added,A=E.removed,w=E.names;d=w,e.debug(o.Xb,[T.length,A.length]),h=m.update(T,A,t.ff.t)}var S=!1;if(t.rbs){var O=On(t.rbs.d||[],l);T=O.added,A=O.removed;e.debug(o.Tb,[T.length,A.length]),S=y.update(T,A,t.rbs.t)}return Promise.all([h,S,v.registerSegments(wn(l))]).then((function(e){var t=e[0],r=e[1];return n.save&&n.save(),_=!1,!c||Promise.resolve(!c.splitsArrived||(t||r)&&(f||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:Ue,names:d.length>0?d:[]};c.emit(Pe,t)}return!0}))}))})).catch((function(t){return _&&h>S?(S+=1,e.warn(o.Wb,[S,t]),A(w,S)):(_=!1,e.warn(o.Vb,[t]),!1)}))}))}}var Cn=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}(),Pn=36e5;function Nn(e){return e-e%Pn}var Dn=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(Nn(t))},e.prototype.track=function(e,t,n){var r=this._makeKey(e,t),o=this.cache[r];this.cache[r]=o?o+n:n,this.onFullQueue&&(this.cacheSize=this.cacheSize+n,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}(),Rn=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}(),Ln=/[^.]+$/;var kn=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(Ln);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 xn=n(41),Mn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.matchingKey=n,r.regexSplitsCacheKey=new RegExp("^".concat(t,"\\.(splits?|trafficType|flagSet)\\.")),r}return Object(xn.c)(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(we.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(we.m)(e,"".concat(this.prefix,".split."))},t.prototype.isRBSegmentKey=function(e){return Object(we.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}(kn);function Un(e,t){return{buildSegmentNameKey:function(n){return"".concat(e,".").concat(t,".largeSegment.").concat(n)},extractSegmentName:function(n){var p="".concat(e,".").concat(t,".largeSegment.");if(Object(we.m)(n,p))return n.slice(p.length)},buildTillKey:function(){return"".concat(e,".").concat(t,".largeSegments.till")}}}var Fn=n(148),jn="storage:localstorage: ",Vn="1",Bn=function(e){function t(t,n,r){var o=e.call(this)||this;return o.keys=n,o.log=t.log,o.flagSetsFilter=t.sync.__splitFiltersValidation.groupedFilters.bySet,o.storage=r,o}return Object(xn.c)(t,e),t.prototype._decrementCount=function(e){var t=Object(we.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),Ft(e)){var n=this.keys.buildSplitsWithSegmentCountKey();this._decrementCount(n)}}catch(e){this.log.error(jn+e)}},t.prototype._incrementCounts=function(e){try{var t=this.keys.buildTrafficTypeKey(e.trafficTypeName);if(this.storage.setItem(t,Object(we.o)(this.storage.getItem(t))+1+""),Ft(e)){var n=this.keys.buildSplitsWithSegmentCountKey();this.storage.setItem(n,Object(we.o)(this.storage.getItem(n))+1+"")}}catch(e){this.log.error(jn+e)}},t.prototype.clear=function(){for(var e=this,t=this.storage.length,n=[],r=0;r<t;r++){var o=this.storage.key(r);null!=o&&this.keys.isSplitsCacheKey(o)&&n.push(o)}n.forEach((function(t){e.storage.removeItem(t)})),this.hasSync=!1},t.prototype.addSplit=function(e){var t=e.name,n=this.keys.buildSplitKey(t),r=this.storage.getItem(n),o=r?JSON.parse(r):null;return o&&(this._decrementCounts(o),this.removeFromFlagSets(o.name,o.sets)),this.storage.setItem(n,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(jn+e),!1}},t.prototype.getChangeNumber=function(){var e=this.storage.getItem(this.keys.buildSplitsTillKey());return null!==e?(e=parseInt(e,10),Object(we.i)(e)?-1:e):-1},t.prototype.getSplitNames=function(){for(var e=this.storage.length,t=[],n=0;n<e;){var r=this.storage.key(n);null!=r&&this.keys.isSplitKey(r)&&t.push(this.keys.extractKey(r)),n++}return t},t.prototype.trafficTypeExists=function(e){var t=Object(we.o)(this.storage.getItem(this.keys.buildTrafficTypeKey(e)));return Object(we.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(we.o)(e);return!Object(we.h)(t)||t>0},t.prototype.getNamesByFlagSets=function(e){var t=this;return e.map((function(e){var n=t.keys.buildFlagSetKey(e),r=t.storage.getItem(n);return new Set(r?JSON.parse(r):[])}))},t.prototype.addToFlagSets=function(e){var t=this;
2e.sets&&e.sets.forEach((function(n){if(!(t.flagSetsFilter.length>0)||t.flagSetsFilter.some((function(e){return e===n}))){var r=t.keys.buildFlagSetKey(n),o=t.storage.getItem(r),c=new Set(o?JSON.parse(o):[]);c.has(e.name)||(c.add(e.name),t.storage.setItem(r,JSON.stringify(wn(c))))}}))},t.prototype.removeFromFlagSets=function(e,t){var n=this;t&&t.forEach((function(t){n.removeNames(t,e)}))},t.prototype.removeNames=function(e,t){var n=this.keys.buildFlagSetKey(e),r=this.storage.getItem(n);if(r){var o=new Set(JSON.parse(r));o.delete(t),0!==o.size?this.storage.setItem(n,JSON.stringify(wn(o))):this.storage.removeItem(n)}},t}(Ut),Yn=function(){function e(e,t,n){this.keys=t,this.log=e.log,this.storage=n}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,n){var r=this,o=e.map((function(e){return r.add(e)})).some((function(e){return e}));return o=t.map((function(e){return r.remove(e.name)})).some((function(e){return e}))||o,this.setChangeNumber(n),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(jn+e)}},e.prototype.updateSegmentCount=function(e){var t=this.keys.buildSplitsWithSegmentCountKey(),n=Object(we.o)(this.storage.getItem(t))+e;n>0?this.storage.setItem(t,n+""):this.storage.removeItem(t)},e.prototype.add=function(e){var t=e.name,n=this.keys.buildRBSegmentKey(t),r=this.storage.getItem(n),o=r?JSON.parse(r):null;this.storage.setItem(n,JSON.stringify(e));var c=0;return o&&Ft(o)&&c--,Ft(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)),Ft(t)&&this.updateSegmentCount(-1),!0)},e.prototype.getNames=function(){for(var e=this.storage.length,t=[],n=0;n<e;){var r=this.storage.key(n);null!=r&&this.keys.isRBSegmentKey(r)&&t.push(this.keys.extractKey(r)),n++}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=wn(e),n=this.getNames();return t.every((function(e){return-1!==n.indexOf(e)}))},e.prototype.getChangeNumber=function(){var e=this.storage.getItem(this.keys.buildRBSegmentsTillKey());return null!==e?(e=parseInt(e,10),Object(we.i)(e)?-1:e):-1},e.prototype.usesSegments=function(){var e=this.storage.getItem(this.keys.buildSplitsWithSegmentCountKey()),t=null===e?0:Object(we.o)(e);return!Object(we.h)(t)||t>0},e}(),Hn=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,n=!1,r=e,o=r.added,c=r.removed;if(o&&c)o.forEach((function(e){n=t.addSegment(e)||n})),c.forEach((function(e){n=t.removeSegment(e)||n}));else{var l=(e.k||[]).map((function(s){return s.n})).sort(),d=this.getRegisteredSegments().sort();if(l.length||d.length){for(var h=0;h<l.length&&h<d.length&&l[h]===d[h];)h++;if(h===l.length&&h===d.length)n=!1;else{for(var f=h;f<d.length;f++)this.removeSegment(d[f]);for(var m=h;m<l.length;m++)this.addSegment(l[m]);n=!0}}else n=!1}return this.setChangeNumber(e.cn),n},e}(),$n=function(e){function t(t,n,r){var o=e.call(this)||this;return o.log=t,o.keys=n,o.storage=r,o}return Object(xn.c)(t,e),t.prototype.addSegment=function(e){var t=this.keys.buildSegmentNameKey(e);return this.storage.getItem(t)!==Vn&&(this.storage.setItem(t,Vn),!0)},t.prototype.removeSegment=function(e){var t=this.keys.buildSegmentNameKey(e);return this.storage.getItem(t)===Vn&&(this.storage.removeItem(t),!0)},t.prototype.isInSegment=function(e){return this.storage.getItem(this.keys.buildSegmentNameKey(e))===Vn},t.prototype.getRegisteredSegments=function(){for(var e=[],i=0,t=this.storage.length;i<t;i++){var n=this.keys.extractSegmentName(this.storage.key(i));n&&e.push(n)}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(we.i)(e)?-1:e):-1},t}(Hn),zn=function(e){function t(t){var n=e.call(this)||this;return n.splitsCache={},n.ttCache={},n.changeNumber=-1,n.segmentsCount=0,n.flagSetsCache={},n.flagSetsFilter=t?t.groupedFilters.bySet:[],n}return Object(xn.c)(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,n=this.getSplit(t);if(n){var r=n.trafficTypeName;this.ttCache[r]--,this.ttCache[r]||delete this.ttCache[r],this.removeFromFlagSets(n.name,n.set
2s),Ft(n)&&this.segmentsCount--}this.splitsCache[t]=e;var o=e.trafficTypeName;return this.ttCache[o]=(this.ttCache[o]||0)+1,this.addToFlagSets(e),Ft(e)&&this.segmentsCount++,!0},t.prototype.removeSplit=function(e){var t=this.getSplit(e);if(!t)return!1;delete this.splitsCache[e];var n=t.trafficTypeName;return this.ttCache[n]--,this.ttCache[n]||delete this.ttCache[n],this.removeFromFlagSets(t.name,t.sets),Ft(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(we.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(n){t.flagSetsFilter.length>0&&!t.flagSetsFilter.some((function(e){return e===n}))||(t.flagSetsCache[n]||(t.flagSetsCache[n]=new Set([])),t.flagSetsCache[n].add(e.name))}))},t.prototype.removeFromFlagSets=function(e,t){var n=this;t&&t.forEach((function(t){n.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}(Ut),qn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.segmentCache={},t}return Object(xn.c)(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}(Hn);function Kn(e){var t=Math.min(22,Math.max(0,Math.ceil(Math.log(e)/Math.log(1.5))));return Object(we.i)(t)?0:t}var Wn=.001;function Gn(e){var t=e.settings;return t.mode!==E&&(gt(t)||Math.random()<=Wn)}var Qn=function(){function e(e,t,n){this.splits=e,this.segments=t,this.largeSegments=n,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(H),iDe:this.getImpressionStats(z),iDr:this.getImpressionStats($),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(H),eD:this.getEventStats($),sE:this.popStreamingEvents(),t:this.popTags(),ufs:this.popUpdatesFromSSE()}},e.prototype.getTimeUntilReady=function(){return this.timeUntilReady},e.prototype.recordTimeUntilReady=function(e){this.timeUntilReady=e},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 n=this.httpErrors[e]=this.httpErrors[e]||{};n[t]=(n[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])[Kn(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])[Kn(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}(),Xn=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 n=this.uniqueKeysTracker[e];n.has(t)||(n.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=[],n=Object.keys(e),r=0;r<n.length;r++){var o=n[r],c={k:o,fs:wn(e[o])};t.push(c)}return{keys:t}},e}(),Zn=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,n){var r=this,o=e.map((function(e){return r.add(e)})).some((function(e){return e}));return o=t.map((function(e){return r.remove(e.name)}
2)).some((function(e){return e}))||o,this.changeNumber=n,o},e.prototype.add=function(e){var t=e.name,n=this.get(t);return n&&Ft(n)&&this.segmentsCount--,this.cache[t]=e,Ft(e)&&this.segmentsCount++,!0},e.prototype.remove=function(e){var t=this.get(e);return!!t&&(delete this.cache[e],Ft(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=wn(e),n=this.getNames();return t.every((function(e){return-1!==n.indexOf(e)}))},e.prototype.getChangeNumber=function(){return this.changeNumber},e.prototype.usesSegments=function(){return this.segmentsCount>0},e}();function Jn(e){var t=e.settings,n=t.scheduler,r=n.impressionsQueueSize,o=n.eventsQueueSize,c=t.sync.__splitFiltersValidation,l=new zn(c),d=new Zn,h=new qn,f={splits:l,rbSegments:d,segments:h,largeSegments:new qn,impressions:new Cn(r),impressionCounts:new Dn,events:new Rn(o),telemetry:Gn(e)?new Qn(l,h):void 0,uniqueKeys:new Xn,destroy:function(){},shared:function(){return{splits:this.splits,rbSegments:this.rbSegments,segments:new qn,largeSegments:new qn,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};f.impressions.track=m,f.events.track=m,f.impressionCounts.track=m,f.uniqueKeys.track=m}return f}Jn.type=O;var er=10,nr=864e5;function rr(e,t,n,r,o,c){var l=n.log,d=n.initialRolloutPlan,h=parseInt(t.getItem(r.buildLastUpdatedKey()),10);if(!Object(we.i)(h)){var f=Object(we.h)(e.expirationDays)&&e.expirationDays>=1?e.expirationDays:er;if(h<o-nr*f)return l.info(jn+"Cache expired more than "+f+" days ago. Cleaning up cache"),!0}var m=r.buildHashKey(),y=t.getItem(m),v=function(e){return en("".concat(e.core.authorizationKey,"::").concat(e.sync.__splitFiltersValidation.queryString,"::").concat(e.sync.flagSpecVersion)).toString(16)}(n);if(y!==v){try{t.setItem(m,v)}catch(e){l.error(jn+e)}return!(!c||d)&&(l.info(jn+"SDK key, flags filter criteria, or flags spec version has changed. Cleaning up cache"),!0)}if(e.clearOnInit){var _=parseInt(t.getItem(r.buildLastClear()),10);if(Object(we.i)(_)||_<o-nr)return l.info(jn+"clearOnInit was set and cache was not cleared in the last 24 hours. Cleaning up cache"),!0}}function ir(e,t,n){if(n){if(Object(Fn.b)(n))return Object(Fn.c)(n)?n:function(e,t,n){var r,o=[],c={},l=Promise.resolve();return{load:function(){return r||(r=Promise.resolve().then((function(){return n.getItem(t)})).then((function(e){c=JSON.parse(e||"{}"),o=Object.keys(c)})).catch((function(t){e.error(jn+"Error calling wrapper `getItem` method: "+t)})))},save:function(){return l=l.then((function(){return Promise.resolve(n.setItem(t,JSON.stringify(c)))})).catch((function(t){e.error(jn+"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,n);e.warn(jn+"Invalid storage provided. Falling back to LocalStorage API")}if(Object(Fn.a)())return localStorage;e.warn(jn+"LocalStorage API is unavailable. Falling back to default MEMORY storage")}function or(e){void 0===e&&(e={});var t=function(e){return e?e+".SPLITIO":"SPLITIO"}(e.prefix);function n(n){var r=n.settings,o=n.settings,c=o.log,l=o.scheduler,d=l.impressionsQueueSize,h=l.eventsQueueSize,f=ir(c,t,e.wrapper);if(!f)return Jn(n);var m,y=ft(r.core.key),v=new Mn(t,y),_=new Bn(r,v,f),E=new Yn(r,v,f),T=new $n(c,v,f),A=new $n(c,Un(t,y),f);return{splits:_,rbSegments:E,segments:T,largeSegments:A,impressions:new Cn(d),impressionCounts:new Dn,events:new Rn(h),telemetry:Gn(n)?new Qn(_,T):void 0,uniqueKeys:new Xn,validateCache:function(){return m||(m=function(e,t,n,r,o,c,l,d){return Promise.resolve(t.load&&t.load()).then((function(){var h=Date.now(),f=
2o.getChangeNumber()>-1,m=t.getItem(r.buildLastUpdatedKey()),y=m?parseInt(m,10):void 0,v=Object(we.i)(y)||void 0===y?void 0:y;if(rr(e,t,n,r,h,f)){o.clear(),c.clear(),l.clear(),d.clear();try{t.setItem(r.buildLastClear(),h+"")}catch(e){n.log.error(jn+e)}return t.save&&t.save(),{initialCacheLoad:!0,lastUpdateTimestamp:void 0}}return{initialCacheLoad:!f,lastUpdateTimestamp:v}}))}(e,f,r,v,_,E,T,A)),m},save:function(){return f.save&&f.save()},destroy:function(){return f.whenSaved&&f.whenSaved()},shared:function(e){return{splits:this.splits,rbSegments:this.rbSegments,segments:new $n(c,new Mn(t,e),f),largeSegments:new $n(c,Un(t,e),f),impressions:this.impressions,impressionCounts:this.impressionCounts,events:this.events,telemetry:this.telemetry,uniqueKeys:this.uniqueKeys,destroy:function(){}}}}}return n.type=I,n}function ar(e){return null!=e&&"function"==typeof e.then}function sr(e,t,n){return!t.isDestroyed()||(e.error(o.u,[n]),!1)}function cr(e,t,n,r){return!!t.isReadyFromCache()||(e.warn(o.c,[n,r?" for feature flag ".concat(r.toString()):""]),!1)}function lr(e,t,n,r){return sr(e,t,n)&&cr(e,t,n,r)}var ur="fallback - ";var dr="killed",pr="default rule",fr="definition not found",mr="not ready",gr="exception",yr="archived",vr="not in split",_r="targeting rule type unsupported by sdk",Er="prerequisites not met",Tr=ur+fr;function Ar(e,t,n,r,c){return!t.isReady()||r!==fr&&r!==Tr&&null!=r||(e.warn(o.nc,[c,n]),!1)}function wr(e){var t=e.conditions,n=Object(we.b)(t,(function(e){return"ROLLOUT"===e.conditionType}));return n||(n=t[0]),n?n.partitions.map((function(e){return e.treatment})):[]}function Sr(e){return e?{name:e.name,trafficType:e.trafficTypeName,killed:e.killed,changeNumber:e.changeNumber||0,treatments:wr(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 Or(e){var t=[];return e.forEach((function(e){var view=Sr(e);view&&t.push(view)})),t}function Ir(e,t,n){var o=n.readinessManager,c=n.sdkStatus,l=e.log,d=Fe(e.mode);return Object(r.a)(Object.create(c),{split:function(e){var n=Ve(l,e,V);if(!lr(l,o,V)||!n)return d?Promise.resolve(null):null;var r=t.getSplit(n);return ar(r)?r.catch((function(){return null})).then((function(e){return Ar(l,o,n,e,V),Sr(e)})):(Ar(l,o,n,r,V),Sr(r))},splits:function(){if(!lr(l,o,B))return d?Promise.resolve([]):[];var e=t.getAll();return ar(e)?e.catch((function(){return[]})).then(Or):Or(e)},names:function(){if(!lr(l,o,Y))return d?Promise.resolve([]):[];var e=t.getSplitNames();return ar(e)?e.catch((function(){return[]})):e}})}var Cr=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(r.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 Pr(e,t,n){return null==t||Object(we.j)(t)?t:(e.error(o.L,[n,"attributes"]),!1)}function Nr(e,t,n){if(!Pr(e,t,n))return!1;var r=!0;return Object.keys(t).forEach((function(o){(function(e,t,n,r){if(!Object(we.k)(t)||0===t.length)return e.warn("".concat(r,": you passed an invalid attribute name, attribute name must be a non-empty string.")),!1;var o=Object(we.k)(n),c=Object(we.h)(n),l=Object(we.g)(n),d=Array.isArray(n);return!!(o||c||l||d)||(e.warn("".concat(r,": you passed an invalid attribute value for ").concat(t,". Acceptable types are: string, number, boolean and array of strings.")),!1)})(e,o,t[o],n)||(r=!1)})),r}function Dr(e,t,n){var o=function(e,t){var n=new Cr,o=t.getTreatment,c=t.getTreatmentWithConfig,l=t.getTreatments,d=t.getTreatmentsWithConfig,h=t.getTreatmentsByFlagSets,f=t.getTreatmentsWithConfigByFlagSets,m=t.getTreatmentsByFlagSet,y=t.getTreatmentsWithConfigByFlagSet;function v(e){var t=n.getAll();return Object.keys(t).length>0?Object(r.a)({},t,e):e}return Object(r.a)(t,{getTreatment:function(e,t,n,r){return o(e,t,v(n),r)},getTreatmentWithConfig:function(e,t,n,r){return c(e,t,v(n),r)},getTreatments:function(e,t,n,r){return l(e,t,v(n),r)},getTreatmentsWithConfig:function(e,t,n,r){return d(e,t,v(n),r)},getTreatmentsByFlagSets:function(e,t,n,r){return h(e,t,v(n),r)},getTreatmentsWithConfigByFlagSets:function(e,t,n,r){return f(e,t,v(n),r)},getTreatmentsByFlagSet:function(e,t,n,r){return m(e,t,v(n),r)},getTreatmentsWithConfigByFlagSet:function(e,t,n,r){return y(e,t,v(n),r)},setAttribute:function(t,r){var o={};return o[t]=r,!!Nr(e,o,"setAttribute")&&(e.debug("stored ".concat(r," for attribute ").
2concat(t)),n.setAttribute(t,r))},getAttribute:function(t){return e.debug("retrieved attribute ".concat(t)),n.getAttribute(t+"")},setAttributes:function(t){return!!Nr(e,t,"setAttributes")&&n.setAttributes(t)},getAttributes:function(){return n.getAll()},removeAttribute:function(t){return e.debug("removed attribute ".concat(t)),n.removeAttribute(t+"")},clearAttributes:function(){return n.clear()}})}(e,t);return Object(r.a)(o,{getTreatment:o.getTreatment.bind(o,n),getTreatmentWithConfig:o.getTreatmentWithConfig.bind(o,n),getTreatments:o.getTreatments.bind(o,n),getTreatmentsWithConfig:o.getTreatmentsWithConfig.bind(o,n),getTreatmentsByFlagSets:o.getTreatmentsByFlagSets.bind(o,n),getTreatmentsWithConfigByFlagSets:o.getTreatmentsWithConfigByFlagSets.bind(o,n),getTreatmentsByFlagSet:o.getTreatmentsByFlagSet.bind(o,n),getTreatmentsWithConfigByFlagSet:o.getTreatmentsWithConfigByFlagSet.bind(o,n),track:o.track.bind(o,n),isClientSide:!0,key:n})}var Rr={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},Lr={BOOLEAN:"BOOLEAN",STRING:"STRING",NUMBER:"NUMBER",SET:"SET",DATETIME:"DATETIME",NOT_SPECIFIED:"NOT_SPECIFIED"};function kr(e){return e?e.segmentName||e.largeSegmentName:void 0}function xr(e){return e&&e.whitelist}function Mr(e){return e.value}function Ur(e){return new Date(e).setUTCHours(0,0,0,0)}function Fr(e){return new Date(e).setUTCSeconds(0,0)}function jr(e){var t=e.map((function(e){var t,n=e.matcherType,r=e.negate,o=e.keySelector,c=e.userDefinedSegmentMatcherData,l=e.userDefinedLargeSegmentMatcherData,d=e.whitelistMatcherData,h=e.unaryNumericMatcherData,f=e.betweenMatcherData,m=e.dependencyMatcherData,y=e.booleanMatcherData,v=e.stringMatcherData,_=e.betweenStringMatcherData,E=o&&o.attribute,T=function(e){var t=Rr[e];return t||Rr.UNDEFINED}(n),A=Lr.STRING;return T===Rr.IN_SEGMENT?t=kr(c):T===Rr.IN_LARGE_SEGMENT?t=kr(l):T===Rr.EQUAL_TO?(t=Mr(h),A=Lr.NUMBER,"DATETIME"===h.dataType&&(t=Ur(t),A=Lr.DATETIME)):T===Rr.GREATER_THAN_OR_EQUAL_TO||T===Rr.LESS_THAN_OR_EQUAL_TO?(t=Mr(h),A=Lr.NUMBER,"DATETIME"===h.dataType&&(t=Fr(t),A=Lr.DATETIME)):T===Rr.BETWEEN?(t=f,A=Lr.NUMBER,"DATETIME"===t.dataType&&(t=function(e){return{dataType:e.dataType,start:Fr(e.start),end:Fr(e.end)}}(t),A=Lr.DATETIME)):T===Rr.BETWEEN_SEMVER?t=_:T===Rr.EQUAL_TO_SET||T===Rr.CONTAINS_ANY_OF_SET||T===Rr.CONTAINS_ALL_OF_SET||T===Rr.PART_OF_SET?(t=xr(d),A=Lr.SET):T===Rr.WHITELIST||T===Rr.IN_LIST_SEMVER||T===Rr.STARTS_WITH||T===Rr.ENDS_WITH||T===Rr.CONTAINS_STRING?t=xr(d):T===Rr.IN_SPLIT_TREATMENT?(t=m,A=Lr.NOT_SPECIFIED):T===Rr.EQUAL_TO_BOOLEAN?(A=Lr.BOOLEAN,t=y):T===Rr.MATCHES_STRING||T===Rr.EQUAL_TO_SEMVER||T===Rr.GREATER_THAN_OR_EQUAL_TO_SEMVER||T===Rr.LESS_THAN_OR_EQUAL_TO_SEMVER?t=v:T===Rr.IN_RULE_BASED_SEGMENT&&(t=kr(c),A=Lr.NOT_SPECIFIED),{attribute:E,negate:r,type:T,name:n,value:t,dataType:A}}));return-1===Object(we.c)(t,(function(e){return e.type===Rr.UNDEFINED}))?t:[]}var Vr=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 n=t.size,r=t.treatment;return e.ranges.push(e.inc+=n),e.treatments.push(r),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(we.c)(this._ranges,(function(t){return e<=t}));return this._treatments[t]},e}();var Br=/^[0-9]+$/,Yr=".";function Hr(a,b){if(Br.test(a)&&Br.test(b)){var e=a.length-b.length;if(0!==e)return e}return a<b?-1:a>b?1:0}function $r(e){return e.replace(/^0+(?=\d)/,"")}function zr(e){throw new Error("Unable to convert to Semver, incorrect format: "+e)}var qr=function(){function e(e){Object(we.k)(e)||zr(e);var t=e.indexOf("+"),n=-1===t?[e]:[e.slice(0,t),e.slice(t+1)],r=n[0],o=n[1];""===o&&zr(e),-1===(t=r.indexOf("-"))?(this._isStable=!0,this._preRelease=[]):(this._isStable=!1,this._preRelease=r.slice(t+1).split(Yr).map((function(t){return t||zr(e),Br.test(t)?$r(t):t})),r=r.slice(0,t));var c=r.split(Yr).map((function(t){return t&&Br.test(t)||zr(e),$r(t)}));3!==c.length&&zr(e),this._major=c[0],this._minor=c[1],this._patch=c[2],this.version=c.join(Yr),this._preRelease.length&&(this.version+="-"+this._preRelease.j
2oin(Yr)),o&&(this.version+="+"+o)}return e.prototype.compare=function(e){if(this.version===e.version)return 0;var t=Hr(this._major,e._major);if(0!==t)return t;if(0!==(t=Hr(this._minor,e._minor)))return t;if(0!==(t=Hr(this._patch,e._patch)))return t;if(!this._isStable&&e._isStable)return-1;if(this._isStable&&!e._isStable)return 1;for(var i=0,n=Math.min(this._preRelease.length,e._preRelease.length);i<n;i++){var r=Hr(this._preRelease[i],e._preRelease[i]);if(0!==r)return r}return this._preRelease.length-e._preRelease.length},e}();var Kr=[void 0,function(){return function(e){return null!=e}},function(e,t){return function(n){return t.segments.isInSegment(e,n)}},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 n=t.length===e.length,r=function(i){Object(we.c)(e,(function(e){return e===t[i]}))<0&&(n=!1)},i=0;i<t.length&&n;i++)r(i);return n}},function(e){return function(t){for(var n=!1,r=function(i){Object(we.c)(t,(function(t){return t===e[i]}))>=0&&(n=!0)},i=0;i<e.length&&!n;i++)r(i);return n}},function(e){return function(t){var n=!0;if(t.length<e.length)n=!1;else for(var r=function(i){Object(we.c)(t,(function(t){return t===e[i]}))<0&&(n=!1)},i=0;i<e.length&&n;i++)r(i);return n}},function(e){return function(t){for(var n=t.length<=e.length,r=function(i){Object(we.c)(e,(function(e){return e===t[i]}))<0&&(n=!1)},i=0;i<t.length&&n;i++)r(i);return n}},function(e){return function(t){return e.some((function(e){return Object(we.a)(t,e)}))}},function(e){return function(t){return e.some((function(e){return Object(we.m)(t,e)}))}},function(e){return function(t){return e.some((function(e){return Object(we.k)(t)&&t.indexOf(e)>-1}))}},function(e,t,n){var r=e.split,c=e.treatments;function l(e,t,r){var c=!1;return Array.isArray(t)&&(c=-1!==t.indexOf(e.treatment)),n.debug(o.l,[r,e.treatment,e.label,r,t,c]),c}return function(e,d){var h=e.key,f=e.attributes;n.debug(o.m,[r,JSON.stringify(h),f?"\n attributes: "+JSON.stringify(f):""]);var m=d(n,h,r,f,t);return ar(m)?m.then((function(e){return l(e,c,r)})):l(m,c,r)}},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 qr(e);return function(e){var n=new qr(e);return t.version===n.version}},function(e){var t=new qr(e);return function(e){return new qr(e).compare(t)>=0}},function(e){var t=new qr(e);return function(e){return new qr(e).compare(t)<=0}},function(e){var t=new qr(e.start),n=new qr(e.end);return function(e){var r=new qr(e);return t.compare(r)<=0&&n.compare(r)>=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 qr(e).version})));return function(e){var n=new qr(e).version;return t.has(n)}},function(e,t){return function(n){return!!t.largeSegments&&t.largeSegments.isInSegment(e,n)}},function e(t,n,r){return function(o,c){var l=o.key,d=o.attributes,h=ft(l);function f(e){var t=e.conditions||[];if(!t.length)return!1;var o=ni(r,t,n)(mt(l),void 0,void 0,void 0,d,c);return ar(o)?o.then((function(e){return!!e})):!!o}function m(t){var o=t.type,f=t.name;return o===me?n.segments.isInSegment(f,h):o===ge?e(f,n,r)({key:l,attributes:d},c):!("large"!==o||!n.largeSegments)&&n.largeSegments.isInSegment(f,h)}function y(e){if(!e)return!1;var t=function(e){var t=e.excluded||{};return!(!t.keys||-1===t.keys.indexOf(h))||(t.segments||[]).reduce((function(e,t){return ar(e)?e.then((function(e){return e||m(t)})):e||m(t)}),!1)}(e);return ar(t)?t.then((function(t){return!t&&f(e)})):!t&&f(e)}var v=n.rbSegments.get(t);return ar(v)?v.then(y):y(v)}}];function Wr(e,t,n){var r,o=t.type,c=t.value;return Kr[o]&&(r=Kr[o](c,n,e)),r}function Gr(e,t){return{key:e,attributes:t}}function Qr(e,t,n,r,c){var l,d,h,f=function(e,t){switch(e){case Rr.EQUAL_TO:return"DATETIME"===t?Ur:void 0;case Rr.GREATER_THAN_OR_EQUAL_TO:case Rr.LESS_THAN_OR_EQUAL_TO:case Rr.BETWEEN:return"DATETIME"===t?Fr:void 0;case Rr.IN_SPLIT_TREATMENT:case Rr.IN_RULE_BASED_SEGMENT:return Gr;default:return}}(t,r);switch(r){case Lr.NUMBER:case Lr.DATETIME:d=n,h=Object(we.o)(d),l=isNaN(h)?void 0:h;break;case Lr.STRING:l=function(e){var t=e;return Object(we.j)(e)&&(t=e.matchingKey?e.matchingKey:void 0),Object(we.p)(t)||void 0}(n);break;case Lr.SET:l=function(e){var t=Array.isArray(e)?Object(we.q)(e.map((function(e){return e+""}))):[];return t.length?t:void 0}(n);break;case Lr.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}}(n);break;case Lr.NOT_SPECIFIED:l=n;break;default:l=void 0}return f&&(l=f(l,c)),e.debug(o.p,[n,r,l instanceof Object?JSON.stringify(l):l]),l}function Xr(e,t,n,r){var c=n.attribute,l=function(e,t,n,r){var c=void 0;return n?r?(c=r[n],e.debug(o.q,[n,c])):e.warn(o.s,[n]):c=t,c}(e,t,c,r),d=Qr(e,n.type,l,n.dataType,r);return void 0!==d?d:void e.warn(o.r,[l+(c?" for attribute "+c:"")])}function Zr(e,t,n,r){var c=tn(t,n),l=r.getTreatmentFor(c);return e.debug(o.g,[c,t,n,l]),l}function Jr(e,t,n,r,o,label){if(t)return!o||{treatment:Zr(e,n,r,o),label:label}}function ei(e,t,n,label,r){return function(o,c,l,d,h,f){if("ROLLOUT"===r&&!function(e,t,n){return!(e<100&&tn(t,n)>e)}(l,o.bucketingKey,d))return{treatment:void 0,label:vr};var m=t(o,h,f);return ar(m)?m.then((function(t){return Jr(e,t,o.bucketingKey,c,n,label)})):Jr(e,m,o.bucketingKey,c,n,label)}}function ti(e,t){function n(t){var n=t.every((function(e){return e}));return e.debug(o.h,[n]),n}return function(e,r,o){var c=t.map((function(t){return t(e,r,o)}));return-1!==Object(we.c)(c,ar)?Promise.all(c).then(n):n(c)}}function ni(e,t,n){for(var r=[],i=0;i<t.length;i++){var c=t[i],l=c.matcherGroup,d=c.partitions,label=c.label,h=c.conditionType,f=jr(l.matchers).map((function(t){var r;try{r=Wr(e,t,n)}catch(n){e.error(o.n,[t.name,n])}return function(n,c,l){var d=Xr(e,n,t,c),h=!1;if(void 0!==d&&r)try{h=r(d,l)}catch(n){e.error(o.n,[t.name,n])}function f(n){return e.debug(o.o,[t.name,n,t.value,d]),Boolean(n^t.negate)}return ar(h)?h.then(f):f(h)}}));if(0===f.length){r=[];break}r.push(ei(e,ti(e,f),d&&Vr.parse(d),label,h))}return function(e,t){function n(t){for(var i=0,n=t.length;i<n;i++){var r=t[i];if(void 0!==r)return Object(we.g)(r)||e.debug(o.i,[r.treatment]),r}e.debug(o.j)}return Array.isArray(t)&&0!==t.length?function(e,r,o,c,l,d){var h=t.map((function(t){return t(e,r,o,c,l,d)}));return-1!==Object(we.c)(h,ar)?Promise.all(h).then((function(e){return n(e)})):n(h)}:function(){return e.error(o.y),{treatment:m,label:_r}}}(e,r)}function ri(e,t){return{treatment:Object(we.e)(e,"treatment",t),label:Object(we.e)(e,"label",pr)}}function ii(e,t,n){var r=t.killed,c=t.seed,l=t.trafficAllocation,d=t.trafficAllocationSeed,h=t.status,f=t.conditions,y=t.prerequisites,v=Object(we.k)(t.defaultTreatment)?t.defaultTreatment:m,_=ni(e,f,n),E=function(e,t,n){return function(r,o){var c=r.key,l=r.attributes;function d(e){var r=o(n,c,e.n,l,t);return ar(r)?r.then((function(t){return-1!==e.ts.indexOf(t.treatment)})):-1!==e.ts.indexOf(r.treatment)}return(e=null==e?[]:e).reduce((function(e,t){return ar(e)?e.then((function(e){return!!e&&d(t)})):!!e&&d(t)}),!0)}}(y,n,e);return{getTreatment:function(t,n,f){var y=mt(t);function T(t){if(!t)return e.debug(o.k,["Prerequisite not met"]),{treatment:v,label:Er};var r=_(y,c,l,d,n,f);return ar(r)?r.then((function(e){return ri(e,v)})):ri(r,v)}if("ARCHIVED"===h)return{treatment:m,label:yr};if(r)return e.debug(o.k,["Flag is killed"]),{treatment:v,label:dr};var A=E({key:t,attributes:n},f);return ar(A)?A.then(T):T(A)}}}var oi={treatment:m,label:gr,config:null};function ai(e){var t={};return e.forEach((function(e){t[e]=oi})),t}function si(e,t,n,r,o,c){var l;try{l=o.splits.getSplit(n)}catch(e){return oi}return ar(l)?l.then((function(n){return ui(e,t,n,r,o,c)})).catch((function(){return oi})):ui(e,t,l,r,o,c)}function ci(e,t,n,r,o,c){var l;try{l=o.splits.getSplits(n)}catch(e){return ai(n)}return ar(l)?l.then((function(l){return di(e,t,n,l,r,o,c)})).catch((function(){return ai(n)})):di(e,t,n,l,r,o,c)}function ui(e,t,n,r,o,c){var l={treatment:m,label:fr,config:null};if(n){if(ar(l=ii(e,n,o).getTreatment(t,r,si)))return l.then((function(e){return e.changeNumber=n.changeNumber,e.config=n.configurations&&n.configurations[e.treatment]||null,e.impressionsDisabled=(null==c?void 0:c.impressionsDisabled)||n.impressionsDisabled,e}));l.changeNumber=n.changeNumber,l.config=n.configurations&&n.configurations[l.treatment]||null,l.impressionsDisabled=(null==c?void 0:c.impressionsDisabled)||n.impressionsDisabled}return l}function di(e,t,n,r,o,c,l){var d={},h=[];return n.forEach((function(n){var f=ui(e,t,r[n],o,c,l);ar(f)?h.push(f.then((function(e){d[n]=e}))):d[n]=f})),h.length>0?Promise.all(h).then((function(){return d})):d}function pi(e,t,n){e.warn(o.oc,[n,t])}var hi={treatment:m,label:mr};function fi(e){var t={};return e.forEach((function(e){t[e]=hi})),t}function mi(e){if(e&&e.properties)try{return JSON.stringify(e.properties)}catch(e){}}function gi(e){var t=e.sdkReadinessManager.readinessManager,n=e.storage,r=e.settings,c=e.impressionsTracker,l=e.eventTracker,d=e.telemetryTracker,h=e.fallbackTreatmentsCalculator,f=r.log,y=r.mode,v=Fe(y);function _(e,r,o,l,h,m){void 0===h&&(h=!1),void 0===m&&(m=D);var y=d.trackEval(h?re:te),_=function(t){var n=[],d=w(t,r,e,mi(l),h,m,n);return c.track(n,o),y(n[0]&&n[0].imp.label),d}
2,E=t.isReadyFromCache()?si(f,e,r,o,n,l):v?Promise.resolve(hi):hi;return ar(E)?E.then((function(e){return _(e)})):_(E)}function T(e,r,o,l,h,m){void 0===h&&(h=!1),void 0===m&&(m=R);var y=d.trackEval(h?ie:ne),_=function(t){var n=[],r={},d=mi(l);return Object.keys(t).forEach((function(o){r[o]=w(t[o],o,e,d,h,m,n)})),c.track(n,o),y(n[0]&&n[0].imp.label),r},E=t.isReadyFromCache()?ci(f,e,r,o,n,l):v?Promise.resolve(fi(r)):fi(r);return ar(E)?E.then((function(e){return _(e)})):_(E)}function A(e,r,l,h,m,y,_){void 0===m&&(m=!1),void 0===y&&(y=ae),void 0===_&&(_=M);var E=d.trackEval(y),T=function(t){var n=[],r={},o=mi(h);return Object.keys(t).forEach((function(c){r[c]=w(t[c],c,e,o,m,_,n)})),c.track(n,l),E(n[0]&&n[0].imp.label),r},A=t.isReadyFromCache()?function(e,t,n,r,c,l,d){var h;function f(h){for(var f,m=new Set,i=0;i<n.length;i++){var y=h[i];y.size?(f=y,m=new Set(wn(m).concat(wn(f)))):e.warn(o.ic,[l,n[i]])}return m.size?ci(e,t,wn(m),r,c,d):{}}try{h=c.splits.getNamesByFlagSets(n)}catch(e){return{}}return ar(h)?h.then((function(e){return f(e)})).catch((function(){return{}})):f(h)}(f,e,r,l,n,_,h):v?Promise.resolve({}):{};return ar(A)?A.then((function(e){return T(e)})):T(A)}function w(e,n,r,c,l,d,y){var v=ft(r),_=function(e){return Object(we.j)(e)?e.bucketingKey:void 0}(r),E=e.changeNumber,T=e.impressionsDisabled,A=e.treatment,label=e.label,w=e.config,S=void 0===w?null:w;if(A===m){var O=h(n,label);A=O.treatment,label=O.label,S=O.config}return Ar(f,t,n,label,d)&&(f.info(o.X,[n,v,A,label]),y.push({imp:{feature:n,keyName:v,treatment:A,time:Date.now(),bucketingKey:_,label:label,changeNumber:E,properties:c},disabled:T})),l?{treatment:A,config:S}:A}return{getTreatment:_,getTreatmentWithConfig:function(e,t,n,r){return _(e,t,n,r,!0,L)},getTreatments:T,getTreatmentsWithConfig:function(e,t,n,r){return T(e,t,n,r,!0,k)},getTreatmentsByFlagSets:A,getTreatmentsWithConfigByFlagSets:function(e,t,n,r){return A(e,t,n,r,!0,ce,F)},getTreatmentsByFlagSet:function(e,t,n,r){return A(e,[t],n,r,!1,oe,x)},getTreatmentsWithConfigByFlagSet:function(e,t,n,r){return A(e,[t],n,r,!0,se,U)},track:function(e,r,o,c,h,m){void 0===m&&(m=1024);var v=d.trackEval(le),_=ft(e),T={eventTypeId:o,trafficTypeName:r,value:c,timestamp:Date.now(),key:_,properties:h};!function(e,t,n,r,o,c){if(!t.isReady()||r===E)return!0;var l=n.trafficTypeExists(o);ar(l)?l.then((function(t){return t||pi(e,o,c),t})):l||pi(e,o,c)}(f,t,n.splits,y,r,j);var A=l.track(T,m);return ar(A)?A.then((function(e){return v(),e})):(v(),A)}}}var yi={NULL:0,STRING:2,BOOLEAN:4,NUMBER:8},vi=300,_i=32768,bi=1024;function Ei(e,t,n){if(null==t)return{properties:null,size:bi};if(!Object(we.j)(t))return e.error(o.L,[n,"properties"]),{properties:!1,size:bi};var c=Object.keys(t),l=Object(r.a)({},t),output={properties:l,size:bi};c.length>vi&&e.warn(o.vc,[n]);for(var i=0;i<c.length;i++){output.size+=c[i].length*yi.STRING;var d=l[c[i]],h=Object(we.k)(d),f=Object(we.h)(d),m=Object(we.g)(d),y=null===d;if(h||f||m||y||(l[c[i]]=null,d=null,y=!0,e.warn(o.qc,[n,c[i]])),y?output.size+=yi.NULL:f?output.size+=yi.NUMBER:m?output.size+=yi.BOOLEAN:h&&(output.size+=d.length*yi.STRING),output.size>_i){e.error(o.O,[n]),output.properties=!1;break}}return output}var Ti=/[A-Z]/,Ai="traffic_type";var wi=/^[a-zA-Z0-9][-_.:a-zA-Z0-9]{0,79}$/,Si="event_type";function Oi(e,t,n,r){var c=e.log,l=Fe(e.mode);function d(t,r,l,d,h){var f=Xe(c,r,t),m=t.indexOf("ByFlagSet")>-1?function(e,t,n,r){var c=Be(e,n,t,"flag sets","flag set"),l=c?ze(e,c,t):[];return r.length>0&&(l=l.filter((function(n){return r.indexOf(n)>-1||(e.warn(o.hc,[t,n]),!1)}))),!!l.length&&l}(c,t,l,e.sync.__splitFiltersValidation.groupedFilters.bySet):Object(we.m)(t,R)?Be(c,l,t):Ve(c,l,t),y=Pr(c,d,t),v=sr(c,n,t),_=function(e,t,n){if(Object(we.j)(t)){var r=Ei(e,t.properties,n).properties,c=r&&Object.keys(r).length>0?{properties:r}:void 0,l=t.impressionsDisabled;return l?c?Object(xn.a)(Object(xn.a)({},c),{impressionsDisabled:l}):{impressionsDisabled:l}:c}t&&e.error(o.L,[n,"evaluation options"])}(c,h,t);return cr(c,n,t,m),{valid:v&&f&&m&&!1!==y,key:f,nameOrNames:m,attributes:y,options:_}}function h(e,t){if(Array.isArray(e)){var n={};return e.forEach((function(e){return n[e]=h(e,t)})),n}var o=r(e),c=o.treatment,l=o.config;return t?{treatment:c,config:l}:c}function f(e){return l?Promise.resolve(e):e}return{getTreatment:function(e,n,r,o){var c=d(D,e,n,r,o);return c.valid?t.getTreatment(c.key,c.nameOrNames,c.attributes,c.options):f(h(c.nameOrNames,!1))},getTreatmentWithConfig:function(e,n,r,o){var c=d(L,e,n,r,o);return c.valid?t.getTreatmentWithConfig(c.key,c.nameOrNames,c.attributes,c.options):f(h(c.nameOrNames,!0))},getTreatments:function(e,n,r,o){var c=d(R,e,n,r,o);return c.valid?t.getTreatments(c.key,c.nameOrNames,c.attributes,c.options):f(h(c.nameOrNames||[],!1))}
2,getTreatmentsWithConfig:function(e,n,r,o){var c=d(k,e,n,r,o);return c.valid?t.getTreatmentsWithConfig(c.key,c.nameOrNames,c.attributes,c.options):f(h(c.nameOrNames||[],!0))},getTreatmentsByFlagSets:function(e,n,r,o){var c=d(M,e,n,r,o);return c.valid?t.getTreatmentsByFlagSets(c.key,c.nameOrNames,c.attributes,c.options):f({})},getTreatmentsWithConfigByFlagSets:function(e,n,r,o){var c=d(F,e,n,r,o);return c.valid?t.getTreatmentsWithConfigByFlagSets(c.key,c.nameOrNames,c.attributes,c.options):f({})},getTreatmentsByFlagSet:function(e,n,r,o){var c=d(x,e,[n],r,o);return c.valid?t.getTreatmentsByFlagSet(c.key,c.nameOrNames[0],c.attributes,c.options):f({})},getTreatmentsWithConfigByFlagSet:function(e,n,r,o){var c=d(U,e,[n],r,o);return c.valid?t.getTreatmentsWithConfigByFlagSet(c.key,c.nameOrNames[0],c.attributes,c.options):f({})},track:function(e,r,l,d,h){var m=Xe(c,e,j),y=function(e,t,n){if(null==t)e.error(o.M,[n,Ai]);else if(Object(we.k)(t)){if(0!==t.length)return Ti.test(t)&&(e.warn(o.mc,[n]),t=t.toLowerCase()),t;e.error(o.w,[n,Ai])}else e.error(o.E,[n,Ai]);return!1}(c,r,j),v=function(e,t,n){if(null==t)e.error(o.M,[n,Si]);else if(Object(we.k)(t))if(0===t.length)e.error(o.w,[n,Si]);else{if(wi.test(t))return t;e.error(o.A,[n,t])}else e.error(o.E,[n,Si]);return!1}(c,l,j),_=function(e,t,n){return Object(we.h)(t)||null==t?t:(e.error(o.K,[n]),!1)}(c,d,j),E=Ei(c,h,j),T=E.properties,A=E.size;return sr(c,n,j)&&m&&y&&v&&!1!==_&&!1!==T?t.track(m,y,v,_,T,A):f(!1)}}}var Ii=1e3;function Ci(e,t){var n=e.sdkReadinessManager,o=e.syncManager,c=e.storage,l=e.signalListener,d=e.settings,h=e.telemetryTracker,f=e.impressionsTracker,m=!1,y=0;function v(){return o?o.flush():Promise.resolve()}return Object(r.a)(Object.create(n.sdkStatus),Oi(d,gi(e),n.readinessManager,e.fallbackTreatmentsCalculator),{init:function(){m||(m=!0,t||(pt(d.log,d.core.authorizationKey),n.readinessManager.init(),f.start(),o&&o.start(),l&&l.start()))},flush:function(){return e=v,time=Ii,t=Date.now(),(n=t-y)<time?(d.log.warn("Flush cooldown, remaining time ".concat((time-n)/1e3," seconds")),Promise.resolve()):(y=t,e());var e,time,t,n},destroy:function(){var e;return m=!1,n.readinessManager.destroy(),t||(e=d.core.authorizationKey,ut[e]&&ut[e]--,0===ut[e]&&delete ut[e],h.sessionLength(),l&&l.stop(),f.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 Ni(e){var t=e.clients,n=e.storage,c=e.syncManager,l=e.sdkReadinessManager,d=e.settings,h=d.core.key,f=d.log,m=d.initialRolloutPlan,y=Dr(f,Ci(e),h),v=Pi(mt(h));return t[v]=y,function(d){if(void 0===d)return f.debug(o.wb),y;var h=Xe(f,d,o.Z);if(!1===h)throw new Error("Shared Client needs a valid key.");var v=Pi(h);if(t[v])f.debug(o.xb);else{var _=ft(h),E=l.shared(),T=n.shared&&n.shared(_,(function(e){e?E.readinessManager.timeout():E.readinessManager.segments.emit(De)}));T&&m&&Ze(f,m,{segments:T.segments,largeSegments:T.largeSegments},_);var A=c&&T&&c.shared(_,E.readinessManager,T);t[v]=Dr(f,Ci(Object(r.a)({},e,{sdkReadinessManager:E,storage:T||n,syncManager:A}),!0),h),f.info(o.sb)}return t[v]}}var Di=function(e,t,n,r){this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null},Ri=function(){function e(){this.tail=null,this.head=null,this.length=0}return e.prototype.removeNode=function(e){if(e&&e instanceof Di){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t}},e.prototype.unshiftNode=function(e){if(e&&e instanceof Di&&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 Di(arguments[i],null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length},e}(),Li=function(){function e(e){this.maxLen=e||1,this.items=new Map,this.lru=new Ri}return e.prototype.get=function(e){var t=this.items.get(e);if(t&&t instanceof Di)return this.lru.unshiftNode(t),t.value.value},e.prototype.set=function(e,t){var n=this.items.get(e);if(n){if(!(n instanceof Di))return!1;this.lru.unshiftNode(n),this.lru.head.value.value=t}else{if(this.lru.length===this.maxLen){var r=this.lru.tail;if(!r)return!1;this.items.delete(r.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 Li(e),this.hasher=t}return e.prototype.testAndSet=function(e){var t=this.hasher(e),n=this.cache.get(t);return this.cache.set(t,e.time),n},e}();function xi(e){return en(function(e){return"".concat(e.keyName,":").concat(e.feature,":").concat(e.treatment,":").concat(e.label,":").concat(e.changeNumber)}(e))}var Mi=500;function Ui(){return new ki(Mi,xi)}function Fi(e){var t=Jn(e);return t.validateCache=function(){return Promise.resolve({initialCacheLoad:!1})},t}function ji(e,t){var n=!1,r=!1;var o=function e(o){var c=new Promise((function(e,n){return o.then(e,(function(e){r?n(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&&(n=!0),"function"==typeof o?(r=!0,d):e(d)}}),c}(e);return o.hasOnFulfilled=function(){return n},o}function Vi(e,t,n,o){void 0===n&&(n=function(e){var t=Object(r.a)(new e,{splitsArrived:!1,splitsCacheLoaded:!1,hasInit:!1,initCallbacks:[]});
2return t.on(Pe,(function(e,n){n||(t.splitsArrived=!0)})),t.once(Ne,(function(){t.splitsCacheLoaded=!0})),t}(e));var c=t.startup.readyTimeout,l=function(e){var t=Object(r.a)(new e,{segmentsArrived:!1});return t.once(De,(function(){t.segmentsArrived=!0})),t}(e),d=new e,h=0;function f(){var e=Date.now();h=e>h?e:h+1}var m={initialCacheLoad:!0},y=!1;n.splitsCacheLoaded?y=!0:n.once(Ne,(function(e){if(m=e,y=!0,!E&&!A)try{f(),d.emit(ke,e)}catch(e){setTimeout((function(){throw e}),0)}}));var v=!1;function _(){v||E||(v=!0,f(),d.emit(Re,"Split SDK emitted SDK_READY_TIMED_OUT event."))}var E=!1;n.on(Pe,S),l.on(De,S);var T,A=!1;function w(){A=!1,c>0&&!E&&(T=setTimeout(_,c))}function S(e){if(!A)if(E)try{f(),d.emit(xe,e)}catch(e){setTimeout((function(){throw e}),0)}else if(n.splitsArrived&&l.segmentsArrived){clearTimeout(T),E=!0;try{if(f(),!y){y=!0;var t={initialCacheLoad:!0,lastUpdateTimestamp:void 0};d.emit(ke,t)}d.emit(Le,m)}catch(e){setTimeout((function(){throw e}),0)}}}return n.initCallbacks.push(w),n.hasInit&&w(),{splits:n,segments:l,gate:d,shared:function(){return Vi(e,t,n,!0)},timeout:_,setDestroyed:function(){A=!0},init:function(){n.hasInit||(n.hasInit=!0,n.initCallbacks.forEach((function(e){return e()})))},destroy:function(){A=!0,f(),clearTimeout(T),o||(n.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 h},metadataReady:function(){return m}}}Fi.type=O;var Bi="newListener",Yi="removeListener",Hi=new Error(Re);function $i(e,t,n){void 0===n&&(n=Vi(e,t));var c=t.log,l=0,d=0;n.gate.on(Yi,(function(e){e===Le&&d--})),n.gate.on(Bi,(function(e){e===Le||e===Re?n.isReady()?c.error(o.v,[e===Le?"SDK_READY":"SDK_READY_TIMED_OUT"]):e===Le&&d++:e===ke&&n.isReadyFromCache()&&c.error(o.v,["SDK_READY_FROM_CACHE"])}));var h,f=h=ji(new Promise((function(e,t){n.gate.once(Le,(function(){c.info(o.e),d!==l||h.hasOnFulfilled()||c.warn(o.d),e()})),n.gate.once(Re,(function(e){t(new Error(e))}))})),m);function m(e){c.error(e&&e.message)}function y(){return{isReady:n.isReady(),isReadyFromCache:n.isReadyFromCache(),isTimedout:n.isTimedout(),hasTimedout:n.hasTimedout(),isDestroyed:n.isDestroyed(),isOperational:n.isOperational(),lastUpdate:n.lastUpdate()}}return n.gate.once(ke,(function(){c.info(o.f)})),{readinessManager:n,shared:function(){return $i(e,t,n.shared())},incInternalReadyCbCount:function(){l++},sdkStatus:Object(r.a)(Object.create(n.gate),{Event:{SDK_READY:Le,SDK_READY_FROM_CACHE:ke,SDK_UPDATE:xe,SDK_READY_TIMED_OUT:Re},ready:function(){return n.hasTimedout()?n.isReady()?Promise.resolve():ji(Promise.reject(new Error("Split SDK has emitted SDK_READY_TIMED_OUT event.")),m):f},whenReady:function(){return new Promise((function(e,t){n.isReady()?e(n.metadataReady()):n.hasTimedout()?t(Hi):(n.gate.once(Le,e),n.gate.once(Re,(function(){return t(Hi)})))}))},whenReadyFromCache:function(){return new Promise((function(e,t){n.isReadyFromCache()?e(n.metadataReady()):n.hasTimedout()?t(Hi):(n.gate.once(ke,e),n.gate.once(Re,(function(){return t(Hi)})))}))},getStatus:y,__getStatus:y})}}var zi={add:function(){return!0},contains:function(){return!0},clear:function(){}};function qi(e,t,n){var c,l,d=e.settings,h=e.impressionsObserverFactory,f=e.filterAdapterFactory,m=d.log,_=d.impressionListener,E=d.runtime,T=E.ip,A=E.hostname,w=d.version,S=d.sync.impressionsMode,O=h(),I=function(e,t,n){var r;return void 0===n&&(n=zi),{track:function(r,c){n.add(r,c)?t.track(r,c):e.debug("".concat(o.qb,"The feature ").concat(c," and key ").concat(r," exist in the filter"))},start:function(){n.refreshRate&&(r=setInterval(n.clear,n.refreshRate))},stop:function(){clearInterval(r)}}}(m,t.uniqueKeys,f&&f()),C=function(e,t){return{process:function(n){var r=Date.now();return e.track(n.feature,r,1),t.track(n.keyName,n.feature),!1}}}(t.impressionCounts,I),N=S===v?(c=O,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<Nn(t)}}):S===y?function(e){return{process:function(t){return t.properties||(t.pt=e.testAndSet(t)),!0}}}(O):C;return{start:function(){I.start()},stop:function(){I.stop()}
2,track:function(e,c){if(d.userConsent!==P){var l=e.filter((function(e){var t=e.imp;return e.disabled?C.process(t):N.process(t)})),h=e.length,f=l.length;if(f){var y=t.impressions.track(l.map((function(e){return e.imp})));ar(y)?y.then((function(){m.info(o.W,[h])})).catch((function(e){m.error(o.D,[h,e])})):t.telemetry&&(t.telemetry.recordImpressionStats(H,f),t.telemetry.recordImpressionStats(z,h-f))}if(_||n)for(var v=function(i){var t={impression:Object(r.a)({},e[i].imp),attributes:c,ip:T,hostname:A,sdkLanguageVersion:w};setTimeout((function(){n&&n.handleImpression(t);try{_&&_.logImpression(t)}catch(e){m.error(o.C,[e])}}))},i=0;i<h;i++)v(i)}}}}var Ki=n(65);function Wi(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 Gi(e){var t,n=e.settings,c=e.platform,l=e.storageFactory,d=e.splitApiFactory,h=e.extraProps,f=e.syncManagerFactory,y=e.SignalListener,v=e.integrationsManagerFactory,_=e.sdkManagerFactory,E=e.sdkClientMethodFactory,T=e.lazyInit,A=n.log,w=n.initialRolloutPlan,S=n.core.key,O=$i(c.EventEmitter,n),I=O.readinessManager,C=l({settings:n,onReadyCb:function(e){e?I.timeout():(I.splits.emit(Pe),I.segments.emit(De))},onReadyFromCacheCb:function(){I.splits.emit(Ne)}}),N=(void 0===(t=n.fallbackTreatments)&&(t={}),function(e,label){var n;void 0===label&&(label="");var r=(null===(n=t.byFlag)||void 0===n?void 0:n[e])||t.global;return r?Object(we.k)(r)?{treatment:r,config:null,label:"".concat(ur).concat(label)}:{treatment:r.treatment,config:r.config,label:"".concat(ur).concat(label)}:{treatment:m,config:null,label:label}});w&&(Ze(A,w,C,S&&ft(S)),C.splits.getChangeNumber()>-1&&I.splits.emit(Ne,{initialCacheLoad:!1}));var D={},R=function(e,t){if(e&&t){var n=ht(t);return{trackEval:function(n){var r=ht(t);return function(label){switch(label){case gr:return void e.recordException(n);case mr:e.recordNonReadyUsage&&e.recordNonReadyUsage()}e.recordLatency(n,r())}},trackHttp:function(n){var r=ht(t);return function(t){e.recordHttpLatency(n,r()),t&&t.statusCode?e.recordHttpError(n,t.statusCode):e.recordSuccessfulSync(n,Date.now())}},sessionLength:function(){e.recordSessionLength&&e.recordSessionLength(n())},streamingEvent:function(t,n){t===de?e.recordAuthRejections():(e.recordStreamingEvents({e:t,d:n,t:Date.now()}),t===ue&&e.recordTokenRefreshes())},addTag:function(t){e.addTag&&e.addTag(t)},trackUpdatesFromSSE:function(t){e.recordUpdatesFromSSE(t)}}}var r=function(){return function(){}};return{trackEval:r,trackHttp:r,sessionLength:function(){},streamingEvent:function(){},addTag:function(){},trackUpdatesFromSSE:function(){}}}(C.telemetry,c.now),L=v&&v({settings:n,storage:C,telemetryTracker:R}),k=qi(e,C,L),x=function(e,t,n,c){var l=e.log,d=Fe(e.mode);function h(e,t){var c=e.eventTypeId,d=e.trafficTypeName,h=e.key,f=e.value,m=e.timestamp,y=e.properties,v='event of type "'.concat(c,'" for traffic type "').concat(d,'". Key: ').concat(h,". Value: ").concat(f,". Timestamp: ").concat(m,". ").concat(y?"With properties.":"With no properties.");return t?(l.info(o.V,[v]),n&&setTimeout((function(){var t=Object(r.a)({},e);y&&(t.properties=Object(r.a)({},y)),n.handleEvent(t)}))):l.error(o.z,[v]),t}return{track:function(n,r){if(e.userConsent===P)return!!d&&Promise.resolve(!1);var o=t.track(n,r);return ar(o)?o.then(h.bind(null,n)):(c&&c.recordEventStats(o?H:$,1),h(n,o))}}}(n,C.events,L,C.telemetry),M=d&&d(n,c,R),U={clients:D,splitApi:M,eventTracker:x,impressionsTracker:k,telemetryTracker:R,sdkReadinessManager:O,readiness:I,settings:n,storage:C,platform:c,fallbackTreatmentsCalculator:N},F=f&&f(U);U.syncManager=F;var j=y&&new y(F,n,C,M);U.signalListener=j;var V=E(U),B=_(n,C.splits,O);function Y(){Object.keys(D).map((function(e){return D[e].init()}))}return A.info(o.rb,[n.version]),Object(r.a)({client:V,manager:function(){return A.debug(o.yb),B},Logger:Wi(A),settings:n,destroy:function(){return Promise.all(Object.keys(D).map((function(e){return D[e].destroy()}))).then((function(){}))}},h&&h(U),T?{init:Y}:Y())}var Qi={GRANTED:C,DECLINED:P,UNKNOWN:N};function Xi(e){var t=e.settings,n=e.settings.log,r=e.syncManager,c=e.storage,l=c.events,d=c.impressions,h=c.impressionCounts,f=c.uniqueKeys;return Mt(t)||n.info(o.dc,[t.userConsent]),{setStatus:function(e){var c,m;if(!Object(we.g)(e))return n.warn(o.J,["UserConsent.setStatus"]),!1;var y=e?C:P;return t.userConsent!==y?(n.info(o.fc,[t.userConsent,y]),t.userConsent=y,e?null===(c=null==r?void 0:r.submitterManager)||void 0===c||c.start():(null===(m=null==r?void 0:r.submitterManager)||void 0===m||m.stop(!0),l.clear&&l.clear(),d.clear&&d.clear(),h.clear&&h.clear(),f.clear&&f.clear())):n.info(o.ec,[y]),!0},getStatus:function(){return t.userConsent},Status:Qi}}function Zi(data){var e=data.treatment;
2return data.keys?{conditionType:"WHITELIST",matcherGroup:{combiner:"AND",matchers:[{keySelector:null,matcherType:"WHITELIST",negate:!1,whitelistMatcherData:{whitelist:Object(we.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 Ji(e,t,n,r){return be(r.log,function(e,t,n,r){var c=r.log,l=t.splits,d=!0;return function(){var h=[],f=null,y={};try{y=e(r)}catch(e){f=e,c.error(o.S,[e])}return!f&&y?(c.debug(o.Sb,[JSON.stringify(y)]),Object(we.d)(y,(function(e,t){h.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(h,[],Date.now())]).then((function(){return n.splits.emit(Pe,{type:Me,names:[]}),d&&(d=!1,Promise.resolve(t.validateCache?t.validateCache():{initialCacheLoad:!0}).then((function(e){e.initialCacheLoad||n.splits.emit(Ne,e),n.segments.emit(De,{type:Ue,names:[]})}))),!0}))):Promise.resolve(!0)}}(e,t,n,r),r.scheduler.offlineRefreshRate,"offlineUpdater")}function eo(){return Promise.resolve()}var to,no=(to=function(){var e={emptyMock:"1"};return function(t){var n,r,o=t.features||{};if(n=o,!((r=Object.keys(n)).length!==Object.keys(e).length?(e=Object(we.l)({},n),1):r.some((function(t){var r,o,c=!e[t],l=typeof(r=e[t])!=typeof(o=n[t])||("string"==typeof r?r!==o:r.treatment!==o.treatment||r.config!==o.config),d=c||l;return d&&(e=Object(we.l)({},n)),d}))))return!1;var c={};return Object(we.d)(o,(function(data,e){var t=data,n=null;Object(we.j)(data)&&(t=data.treatment,n=data.config||n);var r={};null!==n&&(r[t]=n),c[e]={trafficTypeName:"localhost",conditions:[Zi({treatment:t})],configurations:r}})),c}},function(e){var t=e.settings,n=e.readiness,o=e.storage,c=Ji(to(),o,n,t),l=c.start,d=[];return Object(r.a)(c,{start:function(){l(),d.forEach((function(e){return e()})),d.length=0},flush:eo,shared:function(e,t){function n(){t.segments.emit(De)}return c.isRunning()?setTimeout(n):d.push(n),{stop:function(){},flush:eo}}})});var ro=n(606),io=[P,C,N];var oo="LOCALSTORAGE";var ao={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,n=e.log,r=e.mode,o=e.storage,c=void 0===o?{type:O}:o,l=c.type,d=c.options,h=void 0===d?{}:d,f=c.prefix,m=c.expirationDays,y=c.clearOnInit,v=c.wrapper,_=function(){t=l,l=O};return r===E&&l===oo&&_(),l!==O&&l!==oo&&(_(),n.error("Invalid storage type. Fallback into MEMORY storage")),{type:l,options:h,prefix:f,expirationDays:m,clearOnInit:y,wrapper:v,__originalType:t}},logger:ro.a,consent:function(e){var t=e.userConsent,n=e.log;return t=Object(we.n)(t),io.indexOf(t)>-1?t:(n.error(o.F,["userConsent",io,C]),C)}};var so,co="object"==typeof Reflect?Reflect:null,lo=co&&"function"==typeof co.apply?co.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};so=co&&"function"==typeof co.ownKeys?co.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var uo=Number.isNaN||function(e){return e!=e};function po(){po.init.call(this)}po.prototype._events=void 0,po.prototype._eventsCount=0,po.prototype._maxListeners=void 0;var ho=10;function fo(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function mo(e){return void 0===e._maxListeners?po.defaultMaxListeners:e._maxListeners}function go(e,t,n,r){var o,c,l,d;if(fo(n),void 0===(c=e._events)?(c=e._events=Object.create(null),e._eventsCount=0):(void 0!==c.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),c=e._events),l=c[t]),void 0===l)l=c[t]=n,++e._eventsCount;else if("function"==typeof l?l=c[t]=r?[n,l]:[l,n]:r?l.unshift(n):l.push(n),(o=mo(e))>0&&l.length>
vendor: 6,079 bytes, line 2
2o&&!l.warned){l.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=e,h.type=t,h.count=l.length,d=h,console&&console.warn&&console.warn(d)}return e}function yo(){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 vo(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=yo.bind(r);return o.listener=n,r.wrapFn=o,o}function _o(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?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):Eo(o,o.length)}function bo(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function Eo(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}Object.defineProperty(po,"defaultMaxListeners",{enumerable:!0,get:function(){return ho},set:function(e){if("number"!=typeof e||e<0||uo(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ho=e}}),po.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},po.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||uo(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},po.prototype.getMaxListeners=function(){return mo(this)},po.prototype.emit=function(e){for(var t=[],i=1;i<arguments.length;i++)t.push(arguments[i]);var n="error"===e,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){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=r[e];if(void 0===l)return!1;if("function"==typeof l)lo(l,this,t);else{var d=l.length,h=Eo(l,d);for(i=0;i<d;++i)lo(h[i],this,t)}return!0},po.prototype.addListener=function(e,t){return go(this,e,t,!1)},po.prototype.on=po.prototype.addListener,po.prototype.prependListener=function(e,t){return go(this,e,t,!0)},po.prototype.once=function(e,t){return fo(t),this.on(e,vo(this,e,t)),this},po.prototype.prependOnceListener=function(e,t){return fo(t),this.prependListener(e,vo(this,e,t)),this},po.prototype.removeListener=function(e,t){var n,r,o,i,c;if(fo(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){c=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,c||t)}return this},po.prototype.off=po.prototype.removeListener,po.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,o=Object.keys(n);for(i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[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},po.prototype.listeners=function(e){return _o(this,e,!0)},po.prototype.rawListeners=function(e){return _o(this,e,!1)},po.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):bo.call(e,t)},po.prototype.listenerCount=bo,po.prototype.eventNames=function(){return this._eventsCount>0?so(this._events):[]};var To=n(325);var Ao="visibilitychange",wo="pagehide",So="for visibilitychange and pagehide events.",Oo=function(){function e(e,t,n,r){this.syncManager=e,this.settings=t,this.storage=n,this.serviceApi=r,this.flushData=this.flushData.bind(this),this.flushDataIfHidden=this.flushDataIfHidden.bind(this),this.fromImpressionsCollector=Se.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(Ao,this.flushDataIfHidden),"undefined"!=typeof window&&window.addEventListener&&window.addEventListener(wo,this.flushData)},e.prototype.stop=function(){this.settings.log.debug(o.a,[So]),"undefined"!=typeof document&&document.removeEventListener&&document.removeEventListener(Ao,this.flushDataIfHidden),"undefined"!=typeof window&&window.removeEventListener&&window.removeEventListener(wo,this.flushData)},e.prototype.flushData=function(){if(this.syncManager){var e=this.settings.urls,t=e.events,n=e.telemetry;if(Mt(this.settings)){var r={sim:this.settings.sync.impressionsMode};this._flushData(t+"/testImpressions/beacon",this.storage.impressions,this.serviceApi.postTestImpressionsBulk,this.fromImpressionsCollector,r),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(n+"/v1/keys/cs/beacon",this.storage.uniqueKeys,this.serviceApi.postUniqueKeysBulkCs)}this.storage.telemetry&&this._flushData(n+"/v1/metrics/usage/beacon",this.storage.telemetry,this.serviceApi.postMetricsUsage)}},e.prototype.flushDataIfHidden=function(){"hidden"===document.visibilityState&&this.flushData()}
2,e.prototype._flushData=function(e,t,n,r,c){if(!t.isEmpty()){var l=r?r(t.pop()):t.pop();this._sendBeacon(e,l,c)||n(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 n={entries:data,token:this.settings.core.authorizationKey,sdk:this.settings.version};t&&Object(r.a)(n,t);var o=JSON.stringify(n);try{return navigator.sendBeacon(e,o)}catch(e){return!1}}return!1},e}();var Io,Co,Po={getFetch:function(){return"function"==typeof fetch?fetch:To.default},getEventSource:function(){return"function"==typeof EventSource?EventSource:void 0},EventEmitter:po,now:"object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):Date.now},No=Oo,Do=(Io=function(e){var t=e.splitApi,n=e.storage,r=e.readiness,c=e.settings,l=c.log,d=function(e,t,n,r,o){return be(r.log,In(r.log,An(e,r,t),t,r.sync.__splitFiltersValidation,n.splits,r.startup.requestTimeoutBeforeReady,r.startup.retriesOnFailureBeforeReady,o),r.scheduler.featuresRefreshRate,"splitChangesUpdater")}(t.fetchSplitChanges,n,r,c,!0),h={},f=v(ft(c.core.key),r,n);function m(){Object(we.d)(h,(function(e){e.start()}))}function y(){Object(we.d)(h,(function(e){e.isRunning()&&e.stop()}))}function v(e,n,r){var o=function(e,t,n,r,o){return be(r.log,En(r.log,function(e){return function(t,n,r,o){var c=e(t,n,r);return o&&(c=o(c)),c.then((function(e){return e.json()}))}}(e),t,n.segments,r.startup.requestTimeoutBeforeReady,r.startup.retriesOnFailureBeforeReady,o),r.scheduler.segmentsRefreshRate,"mySegmentsUpdater")}(t.fetchMemberships,r,n,c,e);function l(e){n.isReady()||jt(r)||n.segments.emit(De,e)}return jt(r)?n.splits.once(Pe,l):setTimeout(l,0),h[e]=o,o}return r.splits.on(Pe,(function(){if(d.isRunning()){var e=jt(n);e!==f.isRunning()&&(l.info(o.tb,[e?"ON":"OFF"]),e?m():y())}})),{splitsSyncTask:d,segmentsSyncTask:f,start:function(){l.info(o.ub),d.start(),jt(n)&&m()},stop:function(){l.info(o.vb),d.isRunning()&&d.stop(),y()},isRunning:d.isRunning,syncAll:function(){var e=[d.execute()];return Object(we.d)(h,(function(t){e.push(t.execute())})),Promise.all(e)},add:v,remove:function(e){delete h[e]},get:function(e){return h[e]}}},Co=function(e,t){var n,c=e.settings,l=e.storage,d=e.splitApi,h=e.readiness,f=e.platform,m=e.telemetryTracker,y=gt(c)?void 0:ft(c.core.key),v=c.log;try{n=new pn(c,f)}catch(e){return void v.warn(o.Db,[e])}var _=sn(d.fetchAuth),E=new f.EventEmitter,T=Ht(v,E,m);n.setEventHandler(T);var A,w,S,O,I=y?void 0:zt(v,t.segmentsSyncTask,l.segments),C=an(v,l,t.splitsSyncTask,h.splits,m,y?void 0:t.segmentsSyncTask),P={},N={},D=!1,R=new Vt(L,c.scheduler.pushRetryBackoffBase);function L(){if(!A){v.info(o.Ab),A=!1;var e=y?Object.keys(N):void 0;_(e).then((function(t){if(!A)return t.pushEnabled?void(e&&e.length<Object.keys(N).length||function(e){S&&clearTimeout(S),O&&clearTimeout(O);var t=e.decodedToken,r=t.exp-t.iat-600,c="number"==typeof e.connDelay&&e.connDelay>=0?e.connDelay:60;v.info(o.Kb,[r,c]),S=setTimeout(L,1e3*r),O=setTimeout((function(){A||n.open(e)}),1e3*c),m.streamingEvent(ue,t.exp)}(t)):(v.info(o.Bb),void E.emit(wt))})).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(wt);E.emit(St)}}))}}function k(){A||(A=!0,n.close(),v.info(o.Cb),S&&clearTimeout(S),O&&clearTimeout(O),R.reset(),x())}function x(){C.stop(),y?Object(we.d)(N,(function(e){return e.worker.stop()})):I.stop()}function M(e){switch(e.u){case dn.BoundedFetchRequest:var t;try{data=e.d,l=e.c,t=nn(data,l)}catch(e){v.warn(o.Gb,["BoundedFetchRequest",e]);break}return void Object(we.d)(N,(function(n,r){var o,c,l,d,h=n.hash64,f=n.worker;o=t,c=h.hex,l=parseInt(c.slice(8),16)%(8*o.length),d=l%8,(o[Math.floor(l/8)]&1<<d)>0&&f.put(e,void 0,on(e,r))}));case dn.KeyList:var n,r,c=void 0;try{c=rn(e.d,e.c),n=new Set(c.a),r=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(we.d)(N,(function(t){var o=t.hash64,c=t.worker,l=!!n.has(o.dec)||!r.has(o.dec)&&void 0;void 0!==l&&c.put(e,{added:l?[e.n[0]]:[],removed:l?[]:[e.n[0]]})}));case dn.SegmentRemoval:if(!e.n||!e.n.length){v.warn(o.Gb,["SegmentRemoval","No segment name was provided"]);break}return void Object(we.d)(N,(function(t){t.worker.put(e,{added:[],removed:e.n})}))}var data,l;
2Object(we.d)(N,(function(t,n){t.worker.put(e,void 0,on(e,n))}))}return E.on(It,x),E.on(Ot,(function(){R.reset()})),E.on(wt,(function(){w=!0,k(),E.emit(It)})),E.on(St,(function(){n.close();var e=R.scheduleCall();v.info(o.Jb,[e/1e3]),E.emit(It)})),E.on(At.STREAMING_RESET,(function(){A||(S&&clearTimeout(S),L())})),E.on(Dt,C.killSplit),E.on(Rt,C.put),E.on(Lt,C.put),y?(E.on(Ct,M),E.on(Pt,M)):E.on(Nt,I.put),Object(r.a)(Object.create(E),{stop:function(){k(),y&&this.remove(y)},start:function(){w||!1===A||(A=!1,y?this.add(y,t.segmentsSyncTask):setTimeout(L))},isRunning:function(){return!1===A},add:function(e,t){var n,r,o=cn(e);P[o]||(P[o]=e,N[e]={hash64:(n=e,r=_n(n).slice(0,16),{hex:r,dec:bn(r)}),worker:$t(v,l,t,m)},D=!0,this.isRunning()&&setTimeout((function(){D&&(D=!1,L())}),0))},remove:function(e){var t=cn(e);delete P[t],delete N[e]}})},function(e){var t=e.settings,n=e.settings,r=n.log,c=n.streamingEnabled,l=n.sync.enabled,d=e.telemetryTracker,h=e.storage,f=e.readiness,m=Io&&Io(e),y=l&&c&&m&&Co?Co(e,m):void 0,v=Tt(e);y&&(y.on(Ot,(function(){r.info(o.Zb),m.isRunning()&&(m.stop(),d.streamingEvent(70,0)),m.syncAll()})),y.on(It,(function(){m.isRunning()?r.info(o.Qb):(r.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(h.validateCache?h.validateCache():{initialCacheLoad:!0}).then((function(e){_&&(E&&(e.initialCacheLoad||f.splits.emit(Ne,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,n){if(m){var r=m.add(e,t,n);return l&&y&&y.add(e,r),_&&(l?y?m.isRunning()?jt(n)&&r.start():r.execute():jt(n)&&r.start():t.isReady()||r.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 Ro(e){return e.storage.type===I?or(e.storage):e.storage.__originalType===I?Fi:Jn}function Lo(e,t){var n=function(e){return ot(e,ao)}(e),r=function(e){var t={settings:e,platform:Po,storageFactory:Ro(e),splitApiFactory:_e,syncManagerFactory:Do,sdkManagerFactory:Ir,sdkClientMethodFactory:Ni,SignalListener:No,impressionsObserverFactory:Ui,extraProps:function(e){return{UserConsent:Xi(e)}}};e.mode===E&&(t.splitApiFactory=void 0,t.syncManagerFactory=no,t.SignalListener=void 0);return t}(n);return t&&t(r),Gi(r)}},910:function(e,t,n){"use strict";function r(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}n.r(t),n.d(t,"isPerformanceSupported",(function(){return h})),n.d(t,"now",(function(){return f})),n.d(t,"setupDevtoolsPlugin",(function(){return y}));const o="function"==typeof Proxy,c="devtools-plugin:setup";let l,d;function h(){var e;return void 0!==l||("undefined"!=typeof window&&window.performance?(l=!0,d=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(l=!0,d=globalThis.perf_hooks.performance):l=!1),l}function f(){return h()?d.now():Date.now()}class m{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const t in e.settings){const r=e.settings[t];n[t]=r.defaultValue}const r=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(r),data=JSON.parse(e);Object.assign(o,data)}catch(e){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}o=e},now:()=>f()},t&&t.on("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]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}
2))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}function y(e,t){const n=e,l=r(),d=r().__VUE_DEVTOOLS_GLOBAL_HOOK__,h=o&&n.enableEarlyProxy;if(!d||!l.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&h){const e=h?new m(n,d):null;(l.__VUE_DEVTOOLS_PLUGINS__=l.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else d.emit(c,e,t)}},911:function(e,t,n){"use strict";function r(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(n){void 0===e[n]?e[n]=t[n]:r(t[n])&&r(e[n])&&Object.keys(t[n]).length>0&&o(e[n],t[n])}))}n.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 h{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 f(e,t){const n=[];let i=0;if(e&&!t&&e instanceof h)return e;if(e)if("string"==typeof e){let r,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)n.push(o.childNodes[i])}else for(r=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||c).querySelectorAll(e.trim()):[c.getElementById(e.trim().split("#")[1])],i=0;i<r.length;i+=1)r[i]&&n.push(r[i])}else if(e.nodeType||e===d||e===c)n.push(e);else if(e.length>0&&e[0].nodeType)for(i=0;i<e.length;i+=1)n.push(e[i]);return new h(n)}function m(e){const t=[];for(let i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}f.fn=h.prototype,f.Class=h,f.Dom7=h;"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 n;if(void 0!==t){for(let i=0;i<this.length;i+=1)n=this[i],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0],n){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];const t=n.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,n,r,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),f(t).is(n))r.apply(t,o);else{const e=f(t).parents();for(let t=0;t<e.length;t+=1)f(e[t]).is(n)&&r.apply(e[t],o)}}function l(e){const t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}"function"==typeof e[1]&&([t,r,o]=e,n=void 0),o||(o=!1);const d=t.split(" ");let h;for(let i=0;i<this.length;i+=1){const e=this[i];if(n)for(h=0;h<d.length;h+=1){const t=d[h];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:r,proxyListener:c}),e.addEventListener(t,c,o)}else for(h=0;h<d.length;h+=1){const t=d[h];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:r,proxyListener:l}),e.addEventListener(t,l,o)}}return this},off:function(...e){let[t,n,r,o]=e;"function"==typeof e[1]&&([t,r,o]=e,n=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(!n&&c.dom7Listeners?l=c.dom7Listeners[e]:n&&c.dom7LiveListeners&&(l=c.dom7LiveListeners[e]),l&&l.length)for(let t=l.length-1;t>=0;t-=1){const n=l[t];r&&n.listener===r||r&&n.listener&&n.listener.dom7proxy&&n.listener.dom7proxy===r?(c.removeEventListener(e,n.proxyListener,o),l.splice(t,1)
2):r||(c.removeEventListener(e,n.proxyListener,o),l.splice(t,1))}}}return this},trigger:function(...e){const t=e[0].split(" "),n=e[1];for(let i=0;i<t.length;i+=1){const r=t[i];for(let t=0;t<this.length;t+=1){const o=this[t];let l;try{l=new d.CustomEvent(r,{detail:n,bubbles:!0,cancelable:!0})}catch(e){l=c.createEvent("Event"),l.initEvent(r,!0,!0),l.detail=n}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"],n=this;let i;function r(o){if(o.target===this)for(e.call(this,o),i=0;i<t.length;i+=1)n.off(t[i],r)}if(e)for(i=0;i<t.length;i+=1)n.on(t[i],r);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,n=e.clientTop||body.clientTop||0,r=e.clientLeft||body.clientLeft||0,o=e===d?d.scrollY:e.scrollTop,l=e===d?d.scrollX:e.scrollLeft;return{top:t.top+o-n,left:t.left+l-r}}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 n,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(n=f(e),i=0;i<n.length;i+=1)if(n[i]===t)return!0;return!1}if(e===c)return t===c;if(e===d)return t===d;if(e.nodeType||e instanceof h){for(n=e.nodeType?[e]:e,i=0;i<n.length;i+=1)if(n[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 n;return e>t-1?new h([]):e<0?(n=t+e,new h(n<0?[]:[this[n]])):new h([this[e]])},append:function(...e){let t;for(let n=0;n<e.length;n+=1){t=e[n];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 h)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 n=c.createElement("div");for(n.innerHTML=e,t=n.childNodes.length-1;t>=0;t-=1)this[i].insertBefore(n.childNodes[t],this[i].childNodes[0])}else if(e instanceof h)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&&f(this[0].nextElementSibling).is(e)?new h([this[0].nextElementSibling]):new h([]):this[0].nextElementSibling?new h([this[0].nextElementSibling]):new h([]):new h([])},nextAll:function(e){const t=[];let n=this[0];if(!n)return new h([]);for(;n.nextElementSibling;){const r=n.nextElementSibling;e?f(r).is(e)&&t.push(r):t.push(r),n=r}return new h(t)},prev:function(e){if(this.length>0){const t=this[0];return e?t.previousElementSibling&&f(t.previousElementSibling).is(e)?new h([t.previousElementSibling]):new h([]):t.previousElementSibling?new h([t.previousElementSibling]):new h([])}return new h([])},prevAll:function(e){const t=[];let n=this[0];if(!n)return new h([]);for(;n.previousElementSibling;){const r=n.previousElementSibling;e?f(r).is(e)&&t.push(r):t.push(r),n=r}return new h(t)},parent:function(e){const t=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(e?f(this[i].parentNode).is(e)&&t.push(this[i].parentNode):t.push(this[i].parentNode));return f(m(t))},parents:function(e){const t=[];for(let i=0;i<this.length;i+=1){let n=this[i].parentNode;for(;n;)e?f(n).is(e)&&t.push(n):t.push(n),n=n.parentNode}return f(m(t))},closest:function(e){let t=this;return void 0===e?new h([]):(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 n=this[i].querySelectorAll(e);for(let e=0;e<n.length;e+=1)t.push(n[e])}return new h(t)},children:function(e){const t=[];for(let i=0;i<this.length;i+=1){const n=this[i].childNodes;for(let r=0;r<n.length;r+=1)e?1===n[r].nodeType&&f(n[r]).is(e)&&t.push(n[r]):1===n[r].nodeType&&t.push(n[r])}return new h(m(t))},filter:function(e){const t=[],n=this;for(let i=0;i<n.length;
2i+=1)e.call(n[i],i,n[i])&&t.push(n[i]);return new h(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,n;for(i=0;i<e.length;i+=1){const r=f(e[i]);for(n=0;n<r.length;n+=1)t[t.length]=r[n],t.length+=1}return t},styles:function(){return this[0]?d.getComputedStyle(this[0],null):{}}};Object.keys(y).forEach((e=>{f.fn[e]=f.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 n,r,o;const c=d.getComputedStyle(e,null);return d.WebKitCSSMatrix?(r=c.transform||c.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map((a=>a.replace(",","."))).join(", ")),o=new d.WebKitCSSMatrix("none"===r?"":r)):(o=c.MozTransform||c.OTransform||c.MsTransform||c.msTransform||c.transform||c.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=o.toString().split(",")),"x"===t&&(r=d.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=d.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0},parseUrlQuery(e){const t={};let i,n,param,r,o=e||d.location.href;if("string"==typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",n=o.split("&").filter((e=>""!==e)),r=n.length,i=0;i<r;i+=1)param=n[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 n=e[i];if(null!=n){const e=Object.keys(Object(n));for(let r=0,o=e.length;r<o;r+=1){const o=e[r],desc=Object.getOwnPropertyDescriptor(n,o);void 0!==desc&&desc.enumerable&&(v.isObject(t[o])&&v.isObject(n[o])?v.extend(t[o],n[o]):!v.isObject(t[o])&&v.isObject(n[o])?(t[o]={},v.extend(t[o],n[o])):t[o]=n[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={}
2,t.params&&t.params.on&&Object.keys(t.params.on).forEach((e=>{t.on(e,t.params.on[e])}))}on(e,t,n){const r=this;if("function"!=typeof t)return r;const o=n?"unshift":"push";return e.split(" ").forEach((e=>{r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][o](t)})),r}once(e,t,n){const r=this;if("function"!=typeof t)return r;function o(...n){r.off(e,o),o.f7proxy&&delete o.f7proxy,t.apply(r,n)}return o.f7proxy=t,r.on(e,o,n)}off(e,t){const n=this;return n.eventsListeners?(e.split(" ").forEach((e=>{void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach(((r,o)=>{(r===t||r.f7proxy&&r.f7proxy===t)&&n.eventsListeners[e].splice(o,1)}))})),n):n}emit(...e){const t=this;if(!t.eventsListeners)return t;let n,data,r;"string"==typeof e[0]||Array.isArray(e[0])?(n=e[0],data=e.slice(1,e.length),r=t):(n=e[0].events,data=e[0].data,r=e[0].context||t);return(Array.isArray(n)?n:n.split(" ")).forEach((e=>{if(t.eventsListeners&&t.eventsListeners[e]){const n=[];t.eventsListeners[e].forEach((e=>{n.push(e)})),n.forEach((e=>{e.apply(r,data)}))}})),t}useModulesParams(e){const t=this;t.modules&&Object.keys(t.modules).forEach((n=>{const r=t.modules[n];r.params&&v.extend(e,r.params)}))}useModules(e={}){const t=this;t.modules&&Object.keys(t.modules).forEach((n=>{const r=t.modules[n],o=e[n]||{};r.instance&&Object.keys(r.instance).forEach((e=>{const n=r.instance[e];t[e]="function"==typeof n?n.bind(t):n})),r.on&&t.on&&Object.keys(r.on).forEach((e=>{t.on(e,r.on[e])})),r.create&&r.create.bind(t)(o)}))}static set components(e){this.use&&this.use(e)}static installModule(e,...t){const n=this;n.prototype.modules||(n.prototype.modules={});const r=e.name||`${Object.keys(n.prototype.modules).length}_${v.now()}`;return n.prototype.modules[r]=e,e.proto&&Object.keys(e.proto).forEach((t=>{n.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((t=>{n[t]=e.static[t]})),e.install&&e.install.apply(n,t),n}static use(e,...t){const n=this;return Array.isArray(e)?(e.forEach((e=>n.installModule(e))),n):n.installModule(e,...t)}}var T={updateSize:function(){const e=this;let t,n;const r=e.$el;t=void 0!==e.params.width?e.params.width:r[0].clientWidth,n=void 0!==e.params.height?e.params.height:r[0].clientHeight,0===t&&e.isHorizontal()||0===n&&e.isVertical()||(t=t-parseInt(r.css("padding-left"),10)-parseInt(r.css("padding-right"),10),n=n-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10),v.extend(e,{width:t,height:n,size:e.isHorizontal()?t:n}))},updateSlides:function(){const e=this,t=e.params,{$wrapperEl:n,size:r,rtlTranslate:o,wrongRTL:c}=e,l=e.virtual&&t.virtual.enabled,h=l?e.virtual.slides.length:e.slides.length,f=n.children(`.${e.params.slideClass}`),m=l?e.virtual.slides.length:f.length;let y=[];const _=[],E=[];function T(e){return!t.cssMode||e!==f.length-1}let A=t.slidesOffsetBefore;"function"==typeof A&&(A=t.slidesOffsetBefore.call(e));let w=t.slidesOffsetAfter;"function"==typeof w&&(w=t.slidesOffsetAfter.call(e));const S=e.snapGrid.length,O=e.snapGrid.length;let I,C,P=t.spaceBetween,N=-A,D=0,R=0;if(void 0===r)return;"string"==typeof P&&P.indexOf("%")>=0&&(P=parseFloat(P.replace("%",""))/100*r),e.virtualSize=-P,o?f.css({marginLeft:"",marginTop:""}):f.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 L=t.slidesPerColumn,k=I/L,x=Math.floor(m/t.slidesPerColumn);for(let i=0;i<m;i+=1){C=0;const n=f.eq(i);if(t.slidesPerColumn>1){let r,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*L*t.slidesPerGroup)/L),t.slidesPerGroup);c=Math.floor(l/d),o=l-c*d+e*t.slidesPerGroup,r=o+c*I/L,n.css({"-webkit-box-ordinal-group":r,"-moz-box-ordinal-group":r,"-ms-flex-order":r,"-webkit-order":r,order:r})}else"column"===t.slidesPerColumnFill?(o=Math.floor(i/L),c=i-o*L,(o>x||o===x&&c===L-1)&&(c+=1,c>=L&&(c=0,o+=1))):(c=Math.floor(i/k),o=i-c*k);n.css("margin-"+(e.isHorizontal()?"top":"left"),0!==c&&t.spaceBetween&&`${t.spaceBetween}px`)}if("none"!==n.css("display")){if("auto"===t.slidesPerView){const r=d.getComputedStyle(n[0],null),o=n[0].style.transform,c=n[0].style.webkitTransform;if(o&&(n[0].style.transform="none"),c&&(n[0].style.webkitTransform="none"),t.roundLengths)C=e.isHorizontal()?n.outerWidth(!0):n.outerHeight(!0);else if(e.isHorizontal()){const e=parseFloat(r.getPropertyValue("width")),t=parseFloat(r.getPropertyValue("padding-left")),n=parseFloat(r.getPropertyValue("padding-right")),o=parseFloat(r.getPropertyValue("margin-left")),c=parseFloat(r.getPropertyValue("margin-right")),l=r.getPropertyValue("box-sizing");C=l&&"border-box"===l?e+o+c:e+t+n+o+c}else{const e=parseFloat(r.getPropertyValue("height")),t=parseFloat(r.getPropertyValue("padding-top")),n=parseFloat(r.getPropertyValue("padding-bottom")),o=parseFloat(r.getPropertyValue("margin-top")),c=p
2arseFloat(r.getPropertyValue("margin-bottom")),l=r.getPropertyValue("box-sizing");C=l&&"border-box"===l?e+o+c:e+t+n+o+c}o&&(n[0].style.transform=o),c&&(n[0].style.webkitTransform=c),t.roundLengths&&(C=Math.floor(C))}else C=(r-(t.slidesPerView-1)*P)/t.slidesPerView,t.roundLengths&&(C=Math.floor(C)),f[i]&&(e.isHorizontal()?f[i].style.width=`${C}px`:f[i].style.height=`${C}px`);f[i]&&(f[i].swiperSlideSize=C),E.push(C),t.centeredSlides?(N=N+C/2+D/2+P,0===D&&0!==i&&(N=N-r/2-P),0===i&&(N=N-r/2-P),Math.abs(N)<.001&&(N=0),t.roundLengths&&(N=Math.floor(N)),R%t.slidesPerGroup===0&&y.push(N),_.push(N)):(t.roundLengths&&(N=Math.floor(N)),(R-Math.min(e.params.slidesPerGroupSkip,R))%e.params.slidesPerGroup===0&&y.push(N),_.push(N),N=N+C+P),e.virtualSize+=C+P,D=C,R+=1}}let M;if(e.virtualSize=Math.max(e.virtualSize,r)+w,o&&c&&("slide"===t.effect||"coverflow"===t.effect)&&n.css({width:`${e.virtualSize+t.spaceBetween}px`}),t.setWrapperSize&&(e.isHorizontal()?n.css({width:`${e.virtualSize+t.spaceBetween}px`}):n.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()?n.css({width:`${e.virtualSize+t.spaceBetween}px`}):n.css({height:`${e.virtualSize+t.spaceBetween}px`}),t.centeredSlides)){M=[];for(let i=0;i<y.length;i+=1){let n=y[i];t.roundLengths&&(n=Math.floor(n)),y[i]<e.virtualSize+y[0]&&M.push(n)}y=M}if(!t.centeredSlides){M=[];for(let i=0;i<y.length;i+=1){let n=y[i];t.roundLengths&&(n=Math.floor(n)),y[i]<=e.virtualSize-r&&M.push(n)}y=M,Math.floor(e.virtualSize-r)-Math.floor(y[y.length-1])>1&&y.push(e.virtualSize-r)}if(0===y.length&&(y=[0]),0!==t.spaceBetween&&(e.isHorizontal()?o?f.filter(T).css({marginLeft:`${P}px`}):f.filter(T).css({marginRight:`${P}px`}):f.filter(T).css({marginBottom:`${P}px`})),t.centeredSlides&&t.centeredSlidesBounds){let e=0;E.forEach((n=>{e+=n+(t.spaceBetween?t.spaceBetween:0)})),e-=t.spaceBetween;const n=e-r;y=y.map((e=>e<0?-A:e>n?n+w:e))}if(t.centerInsufficientSlides){let e=0;if(E.forEach((n=>{e+=n+(t.spaceBetween?t.spaceBetween:0)})),e-=t.spaceBetween,e<r){const t=(r-e)/2;y.forEach(((e,n)=>{y[n]=e-t})),_.forEach(((e,n)=>{_[n]=e+t}))}}v.extend(e,{slides:f,snapGrid:y,slidesGrid:_,slidesSizesGrid:E}),m!==h&&e.emit("slidesLengthChange"),y.length!==S&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),_.length!==O&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()},updateAutoHeight:function(e){const t=this,n=[];let i,r=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)=>{n.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;n.push(t.slides.eq(e)[0])}else n.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i<n.length;i+=1)if(void 0!==n[i]){const e=n[i].offsetHeight;r=e>r?e:r}r&&t.$wrapperEl.css("height",`${r}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,n=t.params,{slides:r,rtlTranslate:o}=t;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&t.updateSlidesOffset();let c=-e;o&&(c=e),r.removeClass(n.slideVisibleClass),t.visibleSlidesIndexes=[],t.visibleSlides=[];for(let i=0;i<r.length;i+=1){const e=r[i],l=(c+(n.centeredSlides?t.minTranslate():0)-e.swiperSlideOffset)/(e.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility||n.centeredSlides&&n.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),r.eq(i).addClass(n.slideVisibleClass))}e.progress=o?-l:l}t.visibleSlides=f(t.visibleSlides)},updateProgress:function(e){const t=this;if(void 0===e){const n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();
vendor: 4,862 bytes, line 2
2let{progress:progress,isBeginning:o,isEnd:c}=t;const l=o,d=c;0===r?(progress=0,o=!0,c=!0):(progress=(e-t.minTranslate())/r,o=progress<=0,c=progress>=1),v.extend(t,{progress:progress,isBeginning:o,isEnd:c}),(n.watchSlidesProgress||n.watchSlidesVisibility||n.centeredSlides&&n.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:n,$wrapperEl:r,activeIndex:o,realIndex:c}=e,l=e.virtual&&n.virtual.enabled;let d;t.removeClass(`${n.slideActiveClass} ${n.slideNextClass} ${n.slidePrevClass} ${n.slideDuplicateActiveClass} ${n.slideDuplicateNextClass} ${n.slideDuplicatePrevClass}`),d=l?e.$wrapperEl.find(`.${n.slideClass}[data-swiper-slide-index="${o}"]`):t.eq(o),d.addClass(n.slideActiveClass),n.loop&&(d.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${c}"]`).addClass(n.slideDuplicateActiveClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${c}"]`).addClass(n.slideDuplicateActiveClass));let h=d.nextAll(`.${n.slideClass}`).eq(0).addClass(n.slideNextClass);n.loop&&0===h.length&&(h=t.eq(0),h.addClass(n.slideNextClass));let f=d.prevAll(`.${n.slideClass}`).eq(0).addClass(n.slidePrevClass);n.loop&&0===f.length&&(f=t.eq(-1),f.addClass(n.slidePrevClass)),n.loop&&(h.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicateNextClass),f.hasClass(n.slideDuplicateClass)?r.children(`.${n.slideClass}:not(.${n.slideDuplicateClass})[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass):r.children(`.${n.slideClass}.${n.slideDuplicateClass}[data-swiper-slide-index="${f.attr("data-swiper-slide-index")}"]`).addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{slidesGrid:r,snapGrid:o,params:c,activeIndex:l,realIndex:d,snapIndex:h}=t;let f,m=e;if(void 0===m){for(let i=0;i<r.length;i+=1)void 0!==r[i+1]?n>=r[i]&&n<r[i+1]-(r[i+1]-r[i])/2?m=i:n>=r[i]&&n<r[i+1]&&(m=i+1):n>=r[i]&&(m=i);c.normalizeSlideIndex&&(m<0||void 0===m)&&(m=0)}if(o.indexOf(n)>=0)f=o.indexOf(n);else{const e=Math.min(c.slidesPerGroupSkip,m);f=e+Math.floor((m-e)/c.slidesPerGroup)}if(f>=o.length&&(f=o.length-1),m===l)return void(f!==h&&(t.snapIndex=f,t.emit("snapIndexChange")));const y=parseInt(t.slides.eq(m).attr("data-swiper-slide-index")||m,10);v.extend(t,{snapIndex:f,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,n=t.params,r=f(e.target).closest(`.${n.slideClass}`)[0];let o=!1;if(r)for(let i=0;i<t.slides.length;i+=1)t.slides[i]===r&&(o=!0);if(!r||!o)return t.clickedSlide=void 0,void(t.clickedIndex=void 0);t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(f(r).attr("data-swiper-slide-index"),10):t.clickedIndex=f(r).index(),n.slideToClickedSlide&&void 0!==t.clickedIndex&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}};var A={getTranslate:function(e=(this.isHorizontal()?"x":"y")){const{params:t,rtlTranslate:n,translate:r,$wrapperEl:o}=this;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let c=v.getTranslate(o[0],e);return n&&(c=-c),c||0},setTranslate:function(e,t){const n=this,{rtlTranslate:r,params:o,$wrapperEl:c,wrapperEl:l,progress:progress}=n;let d,h=0,f=0;n.isHorizontal()?h=r?-e:e:f=e,o.roundLengths&&(h=Math.floor(h),f=Math.floor(f)),o.cssMode?l[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-h:-f:o.virtualTranslate||c.transform(`translate3d(${h}px, ${f}px, 0px)`),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?h:f;const m=n.maxTranslate()-n.minTranslate();d=0===m?0:(e-n.minTranslate())/m,d!==progress&&n.updateProgress(e),n.emit("setTranslate",n.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,n=!0,r=!0,o){const c=this,{params:l,wrapperEl:d}=c;if(c.animating&&l.preventInteractionOnTransition)return!1;const h=c.minTranslate(),f=c.maxTranslate();let m;if(m=r&&e>h?h:r&&e<f?f: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}
2return 0===t?(c.setTransition(0),c.setTranslate(m),n&&(c.emit("beforeTransitionStart",t,o),c.emit("transitionEnd"))):(c.setTransition(t),c.setTranslate(m),n&&(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,n&&c.emit("transitionEnd"))}),c.$wrapperEl[0].addEventListener("transitionend",c.onTranslateToWrapperTransitionEnd),c.$wrapperEl[0].addEventListener("webkitTransitionEnd",c.onTranslateToWrapperTransitionEnd))),!0}};var w={setTransition:function(e,t){const n=this;n.params.cssMode||n.$wrapperEl.transition(e),n.emit("setTransition",e,t)},transitionStart:function(e=!0,t){const n=this,{activeIndex:r,params:o,previousIndex:c}=n;if(o.cssMode)return;o.autoHeight&&n.updateAutoHeight();let l=t;if(l||(l=r>c?"next":r<c?"prev":"reset"),n.emit("transitionStart"),e&&r!==c){if("reset"===l)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===l?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}},transitionEnd:function(e=!0,t){const n=this,{activeIndex:r,previousIndex:o,params:c}=n;if(n.animating=!1,c.cssMode)return;n.setTransition(0);let l=t;if(l||(l=r>o?"next":r<o?"prev":"reset"),n.emit("transitionEnd"),e&&r!==o){if("reset"===l)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===l?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}};var S={slideTo:function(e=0,t=this.params.speed,n=!0,r){const o=this;let c=e;c<0&&(c=0);const{params:l,snapGrid:d,slidesGrid:h,previousIndex:f,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)===(f||0)&&n&&o.emit("beforeSlideChangeStart");const T=-d[E];if(o.updateProgress(T),l.normalizeSlideIndex)for(let i=0;i<h.length;i+=1)-Math.floor(100*T)>=Math.floor(100*h[i])&&(c=i);if(o.initialized&&c!==m){if(!o.allowSlideNext&&T<o.translate&&T<o.minTranslate())return!1;if(!o.allowSlidePrev&&T>o.translate&&T>o.maxTranslate()&&(m||0)!==c)return!1}let A;if(A=c>m?"next":c<m?"prev":"reset",y&&-T===o.translate||!y&&T===o.translate)return o.updateActiveIndex(c),l.autoHeight&&o.updateAutoHeight(),o.updateSlidesClasses(),"slide"!==l.effect&&o.setTranslate(T),"reset"!==A&&(o.transitionStart(n,A),o.transitionEnd(n,A)),!1;if(l.cssMode){const e=o.isHorizontal();let n=-T;return y&&(n=v.scrollWidth-v.offsetWidth-n),0===t?v[e?"scrollLeft":"scrollTop"]=n:v.scrollTo?v.scrollTo({[e?"left":"top"]:n,behavior:"smooth"}):v[e?"scrollLeft":"scrollTop"]=n,!0}return 0===t?(o.setTransition(0),o.setTranslate(T),o.updateActiveIndex(c),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,A),o.transitionEnd(n,A)):(o.setTransition(t),o.setTranslate(T),o.updateActiveIndex(c),o.updateSlidesClasses(),o.emit("beforeTransitionStart",t,r),o.transitionStart(n,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(n,A))}),o.$wrapperEl[0].addEventListener("transitionend",o.onSlideToWrapperTransitionEnd),o.$wrapperEl[0].addEventListener("webkitTransitionEnd",o.onSlideToWrapperTransitionEnd))),!0},slideToLoop:function(e=0,t=this.params.speed,n=!0,r){const o=this;let c=e;return o.params.loop&&(c+=o.loopedSlides),o.slideTo(c,t,n,r)},slideNext:function(e=this.params.speed,t=!0,n){const r=this,{params:o,animating:c}=r,l=r.activeIndex<o.slidesPerGroupSkip?1:o.slidesPerGroup;if(o.loop){if(c)return!1;
2r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+l,e,t,n)},slidePrev:function(e=this.params.speed,t=!0,n){const r=this,{params:o,animating:c,snapGrid:l,slidesGrid:d,rtlTranslate:h}=r;if(o.loop){if(c)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function f(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const m=f(h?r.translate:-r.translate),y=l.map((e=>f(e)));d.map((e=>f(e))),l[y.indexOf(m)];let v,_=l[y.indexOf(m)-1];return void 0===_&&o.cssMode&&l.forEach((e=>{!_&&m>=e&&(_=e)})),void 0!==_&&(v=d.indexOf(_),v<0&&(v=r.activeIndex-1)),r.slideTo(v,e,t,n)},slideReset:function(e=this.params.speed,t=!0,n){return this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e=this.params.speed,t=!0,n,r=.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),h=o.rtlTranslate?o.translate:-o.translate;if(h>=o.snapGrid[d]){const e=o.snapGrid[d];h-e>(o.snapGrid[d+1]-e)*r&&(c+=o.params.slidesPerGroup)}else{const e=o.snapGrid[d-1];h-e<=(o.snapGrid[d]-e)*r&&(c-=o.params.slidesPerGroup)}return c=Math.max(c,0),c=Math.min(c,o.slidesGrid.length-1),o.slideTo(c,e,t,n)},slideToClickedSlide:function(){const e=this,{params:t,$wrapperEl:n}=e,r="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let o,c=e.clickedIndex;if(t.loop){if(e.animating)return;o=parseInt(f(e.clickedSlide).attr("data-swiper-slide-index"),10),t.centeredSlides?c<e.loopedSlides-r/2||c>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),c=n.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-r?(e.loopFix(),c=n.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 O={loopCreate:function(){const e=this,{params:t,$wrapperEl:n}=e;n.children(`.${t.slideClass}.${t.slideDuplicateClass}`).remove();let r=n.children(`.${t.slideClass}`);if(t.loopFillGroupWithBlank){const e=t.slidesPerGroup-r.length%t.slidesPerGroup;if(e!==t.slidesPerGroup){for(let i=0;i<e;i+=1){const e=f(c.createElement("div")).addClass(`${t.slideClass} ${t.slideBlankClass}`);n.append(e)}r=n.children(`.${t.slideClass}`)}}"auto"!==t.slidesPerView||t.loopedSlides||(t.loopedSlides=r.length),e.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),e.loopedSlides+=t.loopAdditionalSlides,e.loopedSlides>r.length&&(e.loopedSlides=r.length);const o=[],l=[];r.each(((t,n)=>{const c=f(n);t<e.loopedSlides&&l.push(n),t<r.length&&t>=r.length-e.loopedSlides&&o.push(n),c.attr("data-swiper-slide-index",t)}));for(let i=0;i<l.length;i+=1)n.append(f(l[i].cloneNode(!0)).addClass(t.slideDuplicateClass));for(let i=o.length-1;i>=0;i-=1)n.prepend(f(o[i].cloneNode(!0)).addClass(t.slideDuplicateClass))},loopFix:function(){const e=this;e.emit("beforeLoopFix");const{activeIndex:t,slides:n,loopedSlides:r,allowSlidePrev:o,allowSlideNext:c,snapGrid:l,rtlTranslate:d}=e;let h;e.allowSlidePrev=!0,e.allowSlideNext=!0;const f=-l[t]-e.getTranslate();if(t<r){h=n.length-3*r+t,h+=r;e.slideTo(h,0,!1,!0)&&0!==f&&e.setTranslate((d?-e.translate:e.translate)-f)}else if(t>=n.length-r){h=-n.length+t+r,h+=r;e.slideTo(h,0,!1,!0)&&0!==f&&e.setTranslate((d?-e.translate:e.translate)-f)}e.allowSlidePrev=o,e.allowSlideNext=c,e.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:e,params:t,slides:n}=this;e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(),n.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 n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.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:n,params:r}=t;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(let i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);
2r.loop&&t.loopCreate(),r.observer&&_.observer||t.update()},prependSlide:function(e){const t=this,{params:n,$wrapperEl:r,activeIndex:o}=t;n.loop&&t.loopDestroy();let c=o+1;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)e[i]&&r.prepend(e[i]);c=o+e.length}else r.prepend(e);n.loop&&t.loopCreate(),n.observer&&_.observer||t.update(),t.slideTo(c,0,!1)},addSlide:function(e,t){const n=this,{$wrapperEl:r,params:o,activeIndex:c}=n;let l=c;o.loop&&(l-=n.loopedSlides,n.loopDestroy(),n.slides=r.children(`.${o.slideClass}`));const d=n.slides.length;if(e<=0)return void n.prependSlide(t);if(e>=d)return void n.appendSlide(t);let h=l>e?l+1:l;const f=[];for(let i=d-1;i>=e;i-=1){const e=n.slides.eq(i);e.remove(),f.unshift(e)}if("object"==typeof t&&"length"in t){for(let i=0;i<t.length;i+=1)t[i]&&r.append(t[i]);h=l>e?l+t.length:l}else r.append(t);for(let i=0;i<f.length;i+=1)r.append(f[i]);o.loop&&n.loopCreate(),o.observer&&_.observer||n.update(),o.loop?n.slideTo(h+n.loopedSlides,0,!1):n.slideTo(h,0,!1)},removeSlide:function(e){const t=this,{params:n,$wrapperEl:r,activeIndex:o}=t;let c=o;n.loop&&(c-=t.loopedSlides,t.loopDestroy(),t.slides=r.children(`.${n.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);n.loop&&t.loopCreate(),n.observer&&_.observer||t.update(),n.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 P=function(){const e=d.navigator.platform,t=d.navigator.userAgent,n={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},r=d.screen.width,o=d.screen.height,c=t.match(/(Android);?[\s\/]+([\d.]+)?/);let l=t.match(/(iPad).*OS\s([\d_]+)/);const h=t.match(/(iPod)(.*OS\s([\d_]+))?/),f=!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,T=t.toLowerCase().indexOf("electron")>=0;let A="MacIntel"===e;return!l&&A&&_.touch&&(1024===r&&1366===o||834===r&&1194===o||834===r&&1112===o||768===r&&1024===o)&&(l=t.match(/(Version)\/([\d.]+)/),A=!1),n.ie=m,n.edge=y,n.firefox=v,c&&!E&&(n.os="android",n.osVersion=c[2],n.android=!0,n.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(l||f||h)&&(n.os="ios",n.ios=!0),f&&!h&&(n.osVersion=f[2].replace(/_/g,"."),n.iphone=!0),l&&(n.osVersion=l[2].replace(/_/g,"."),n.ipad=!0),h&&(n.osVersion=h[3]?h[3].replace(/_/g,"."):null,n.ipod=!0),n.ios&&n.osVersion&&t.indexOf("Version/")>=0&&"10"===n.osVersion.split(".")[0]&&(n.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),n.webView=!(!(f||l||h)||!t.match(/.*AppleWebKit(?!.*Safari)/i)&&!d.navigator.standalone)||d.matchMedia&&d.matchMedia("(display-mode: standalone)").matches,n.webview=n.webView,n.standalone=n.webView,n.desktop=!(n.ios||n.android)||T,n.desktop&&(n.electron=T,n.macos=A,n.windows=E,n.macos&&(n.os="macos"),n.windows&&(n.os="windows")),n.pixelRatio=d.devicePixelRatio||1,n}();function N(e){const t=this,data=t.touchEventsData,{params:n,touches:r}=t;if(t.animating&&n.preventInteractionOnTransition)return;let o=e;o.originalEvent&&(o=o.originalEvent);const l=f(o.target);if("wrapper"===n.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(n.noSwiping&&l.closest(n.noSwipingSelector?n.noSwipingSelector:`.${n.noSwipingClass}`)[0])return void(t.allowClick=!0);if(n.swipeHandler&&!l.closest(n.swipeHandler)[0])return;r.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,r.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;const h=r.currentX,m=r.currentY,y=n.edgeSwipeDetection||n.iOSEdgeSwipeDetection,_=n.edgeSwipeThreshold||n.iOSEdgeSwipeThreshold;if(!y||!(h<=_||h>=d.screen.width-_)){if(v.extend(data,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=h,r.startY=m,data.touchStartTime=v.now(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,n.threshold>0&&(data.allowThresholdMove=!1),"touchstart"!==o.type){let e=!0;l.is(data.formElements)&&(e=!1),c.activeElement&&f(c.activeElement).is(data.formElements)&&c.activeElement!==l[0]&&c.activeElement.blur();const r=e&&t.allowTouchMove&&n.touchStartPreventDefault;(n.touchStartForcePreventDefault||r)&&o.preventDefault()}t.emit("touchStart",o)}}function D(e){const t=this,data=t.touchEventsData,{params:n,touches:r,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]),h="touchmove"===l.type?d.pageX:l.pageX,m="touchmove"===l.type?d.pageY:l.pageY;if(l.preventedByNestedSwiper)return r.startX=h,void(r.startY=m);if(!t.allowTouchMove)return t.allowClick=!1,void(data.isTouched&&(v.extend(r,{startX:h,startY:m,currentX:h,currentY:m}),data.touchStartTime=v.now()));if(data.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(t.isVertical()){if(m<r.startY&&t.translate<=t.maxTranslate()||m>
vendor: 2,462 bytes, line 2
2r.startY&&t.translate>=t.minTranslate())return data.isTouched=!1,void(data.isMoved=!1)}else if(h<r.startX&&t.translate<=t.maxTranslate()||h>r.startX&&t.translate>=t.minTranslate())return;if(data.isTouchEvent&&c.activeElement&&l.target===c.activeElement&&f(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;r.currentX=h,r.currentY=m;const y=r.currentX-r.startX,_=r.currentY-r.startY;if(t.params.threshold&&Math.sqrt(y**2+_**2)<t.params.threshold)return;if(void 0===data.isScrolling){let e;t.isHorizontal()&&r.currentY===r.startY||t.isVertical()&&r.currentX===r.startX?data.isScrolling=!1:y*y+_*_>=25&&(e=180*Math.atan2(Math.abs(_),Math.abs(y))/Math.PI,data.isScrolling=t.isHorizontal()?e>n.touchAngle:90-e>n.touchAngle)}if(data.isScrolling&&t.emit("touchMoveOpposite",l),void 0===data.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(data.startMoving=!0)),data.isScrolling)return void(data.isTouched=!1);if(!data.startMoving)return;t.allowClick=!1,!n.cssMode&&l.cancelable&&l.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&l.stopPropagation(),data.isMoved||(n.loop&&t.loopFix(),data.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),data.allowMomentumBounce=!1,!n.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:_;r.diff=E,E*=n.touchRatio,o&&(E=-E),t.swipeDirection=E>0?"prev":"next",data.currentTranslate=E+data.startTranslate;let T=!0,A=n.resistanceRatio;if(n.touchReleaseOnEdges&&(A=0),E>0&&data.currentTranslate>t.minTranslate()?(T=!1,n.resistance&&(data.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+data.startTranslate+E)**A)):E<0&&data.currentTranslate<t.maxTranslate()&&(T=!1,n.resistance&&(data.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-data.startTranslate-E)**A)),T&&(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),n.threshold>0){if(!(Math.abs(E)>n.threshold||data.allowThresholdMove))return void(data.currentTranslate=data.startTranslate);
2if(!data.allowThresholdMove)return data.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,data.currentTranslate=data.startTranslate,void(r.diff=t.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}n.followFinger&&!n.cssMode&&((n.freeMode||n.watchSlidesProgress||n.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),n.freeMode&&(0===data.velocities.length&&data.velocities.push({position:r[t.isHorizontal()?"startX":"startY"],time:data.touchStartTime}),data.velocities.push({position:r[t.isHorizontal()?"currentX":"currentY"],time:v.now()})),t.updateProgress(data.currentTranslate),t.setTranslate(data.currentTranslate))}function R(e){const t=this,data=t.touchEventsData,{params:n,touches:r,rtlTranslate:o,$wrapperEl:c,slidesGrid:l,snapGrid:d}=t;let h=e;if(h.originalEvent&&(h=h.originalEvent),data.allowTouchCallbacks&&t.emit("touchEnd",h),data.allowTouchCallbacks=!1,!data.isTouched)return data.isMoved&&n.grabCursor&&t.setGrabCursor(!1),data.isMoved=!1,void(data.startMoving=!1);n.grabCursor&&data.isMoved&&data.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const f=v.now(),m=f-data.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(h),t.emit("tap click",h),m<300&&f-data.lastClickTime<300&&t.emit("doubleTap doubleClick",h)),data.lastClickTime=v.now(),v.nextTick((()=>{t.destroyed||(t.allowClick=!0)})),!data.isTouched||!data.isMoved||!t.swipeDirection||0===r.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=n.followFinger?o?t.translate:-t.translate:-data.currentTranslate,n.cssMode)return;if(n.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(n.freeModeMomentum){if(data.velocities.length>1){const e=data.velocities.pop(),r=data.velocities.pop(),o=e.position-r.position,time=e.time-r.time;t.velocity=o/time,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(time>150||v.now()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,data.velocities.length=0;let e=1e3*n.freeModeMomentumRatio;
2const r=t.velocity*e;let l=t.translate+r;o&&(l=-l);let h,f=!1;const m=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;let y;if(l<t.maxTranslate())n.freeModeMomentumBounce?(l+t.maxTranslate()<-m&&(l=t.maxTranslate()-m),h=t.maxTranslate(),f=!0,data.allowMomentumBounce=!0):l=t.maxTranslate(),n.loop&&n.centeredSlides&&(y=!0);else if(l>t.minTranslate())n.freeModeMomentumBounce?(l-t.minTranslate()>m&&(l=t.minTranslate()+m),h=t.minTranslate(),f=!0,data.allowMomentumBounce=!0):l=t.minTranslate(),n.loop&&n.centeredSlides&&(y=!0);else if(n.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),n.freeModeSticky){const r=Math.abs((o?-l:l)-t.translate),c=t.slidesSizesGrid[t.activeIndex];e=r<c?n.speed:r<2*c?1.5*n.speed:2.5*n.speed}}else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&f?(t.updateProgress(h),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(n.speed),setTimeout((()=>{t.setTranslate(h),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(n.freeModeSticky)return void t.slideToClosest();return void((!n.freeModeMomentum||m>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses()))}let _=0,E=t.slidesSizesGrid[0];for(let i=0;i<l.length;i+=i<n.slidesPerGroupSkip?1:n.slidesPerGroup){const e=i<n.slidesPerGroupSkip-1?1:n.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 T=(y-l[_])/E,A=_<n.slidesPerGroupSkip-1?1:n.slidesPerGroup;if(m>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(T>=n.longSwipesRatio?t.slideTo(_+A):t.slideTo(_)),"prev"===t.swipeDirection&&(T>1-n.longSwipesRatio?t.slideTo(_+A):t.slideTo(_))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(h.target===t.navigation.nextEl||h.target===t.navigation.prevEl)?h.target===t.navigation.nextEl?t.slideTo(_+A):t.slideTo(_):("next"===t.swipeDirection&&t.slideTo(_+A),"prev"===t.swipeDirection&&t.slideTo(_))}}function L(){const e=this,{params:t,el:n}=e;if(n&&0===n.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,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=r,e.params.watchOverflow&&c!==e.snapGrid&&e.checkOverflow()}function k(e){const t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function x(){const e=this,{wrapperEl:t,rtlTranslate:n}=e;let r;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=n?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();r=0===o?0:(e.translate-e.minTranslate())/o,r!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}let M=!1;function U(){}var F={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
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:T,translate:A,transition:w,slide:S,loop:O,grabCursor:I,manipulation:C,events:{attachEvents:function(){const e=this,{params:t,touchEvents:n,el:r,wrapperEl:o}=e;e.onTouchStart=N.bind(e),e.onTouchMove=D.bind(e),e.onTouchEnd=R.bind(e),t.cssMode&&(e.onScroll=x.bind(e)),e.onClick=k.bind(e);const l=!!t.nested;if(!_.touch&&_.pointerEvents)r.addEventListener(n.start,e.onTouchStart,!1),c.addEventListener(n.move,e.onTouchMove,l),c.addEventListener(n.end,e.onTouchEnd,!1);else{if(_.touch){const o=!("touchstart"!==n.start||!_.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(n.start,e.onTouchStart,o),r.addEventListener(n.move,e.onTouchMove,_.passiveListener?{passive:!1,capture:l}:l),r.addEventListener(n.end,e.onTouchEnd,o),n.cancel&&r.addEventListener(n.cancel,e.onTouchEnd,o),M||(c.addEventListener("touchstart",U),M=!0)}(t.simulateTouch&&!P.ios&&!P.android||t.simulateTouch&&!_.touch&&P.ios)&&(r.addEventListener("mousedown",e.onTouchStart,!1),c.addEventListener("mousemove",e.onTouchMove,l),c.addEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",e.onClick,!0),t.cssMode&&o.addEventListener("scroll",e.onScroll),t.updateOnWindowResize?e.on(P.ios||P.android?"resize orientationchange observerUpdate":"resize observerUpdate",L,!0):e.on("observerUpdate",L,!0)},detachEvents:function(){const e=this,{params:t,touchEvents:n,el:r,wrapperEl:o}=e,l=!!t.nested;if(!_.touch&&_.pointerEvents)r.removeEventListener(n.start,e.onTouchStart,!1),c.removeEventListener(n.move,e.onTouchMove,l),c.removeEventListener(n.end,e.onTouchEnd,!1);else{if(_.touch){const o=!("onTouchStart"!==n.start||!_.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(n.start,e.onTouchStart,o),r.removeEventListener(n.move,e.onTouchMove,l),r.removeEventListener(n.end,e.onTouchEnd,o),n.cancel&&r.removeEventListener(n.cancel,e.onTouchEnd,o)}(t.simulateTouch&&!P.ios&&!P.android||t.simulateTouch&&!_.touch&&P.ios)&&(r.removeEventListener("mousedown",e.onTouchStart,!1),c.removeEventListener("mousemove",e.onTouchMove,l),c.removeEventListener("mouseup",e.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",e.onClick,!0),t.cssMode&&o.removeEventListener("scroll",e.onScroll),e.off(P.ios||P.android?"resize orientationchange observerUpdate":"resize observerUpdate",L)}},breakpoints:{setBreakpoint:function(){const e=this,{activeIndex:t,initialized:n,loopedSlides:r=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 h=d in l?l[d]:void 0;h&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((param=>{const e=h[param];void 0!==e&&(h[param]="slidesPerView"!==param||"AUTO"!==e&&"auto"!==e?"slidesPerView"===param?parseFloat(e):parseInt(e,10):"auto")}));const f=h||e.originalParams,m=o.slidesPerColumn>1,y=f.slidesPerColumn>1;m&&!y?c.removeClass(`${o.containerModifierClass}multirow ${o.containerModifierClass}multirow-column`):!m&&y&&(c.addClass(`${o.containerModifierClass}multirow`),"column"===f.slidesPerColumnFill&&c.addClass(`${o.containerModifierClass}multirow-column`));const _=f.direction&&f.direction!==o.direction,E=o.loop&&(f.slidesPerView!==o.slidesPerView||_);_&&n&&e.changeDirection(),v.extend(e.params,f),v.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=d,E&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",f)}}
2,getBreakpoint:function(e){if(!e)return;let t=!1;const n=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}}));n.sort(((a,b)=>parseInt(a.value,10)-parseInt(b.value,10)));for(let i=0;i<n.length;i+=1){const{point:e,value:r}=n[i];r<=d.innerWidth&&(t=e)}return t||"max"}},checkOverflow:{checkOverflow:function(){const e=this,t=e.params,n=e.isLocked,r=e.slides.length>0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&r?e.isLocked=r<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,n!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),n&&n!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:{addClasses:function(){const{classNames:e,params:t,rtl:n,$el:r}=this,o=[];o.push("initialized"),o.push(t.direction),t.freeMode&&o.push("free-mode"),t.autoHeight&&o.push("autoheight"),n&&o.push("rtl"),t.slidesPerColumn>1&&(o.push("multirow"),"column"===t.slidesPerColumnFill&&o.push("multirow-column")),P.android&&o.push("android"),P.ios&&o.push("ios"),t.cssMode&&o.push("css-mode"),o.forEach((n=>{e.push(t.containerModifierClass+n)})),r.addClass(e.join(" "))},removeClasses:function(){const{$el:e,classNames:t}=this;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,n,r,o,c){let image;function l(){c&&c()}f(e).parent("picture")[0]||e.complete&&o?l():t?(image=new d.Image,image.onload=l,image.onerror=l,r&&(image.sizes=r),n&&(image.srcset=n),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 n=e.imagesToLoad[i];e.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,t)}}}},V={};class B extends E{constructor(...e){let t,n;1===e.length&&e[0].constructor&&e[0].constructor===Object?n=e[0]:[t,n]=e,n||(n={}),n=v.extend({},n),t&&!n.el&&(n.el=t),super(n),Object.keys(j).forEach((e=>{Object.keys(j[e]).forEach((t=>{B.prototype[t]||(B.prototype[t]=j[e][t])}))}));const r=this;void 0===r.modules&&(r.modules={}),Object.keys(r.modules).forEach((e=>{const t=r.modules[e];if(t.params){const e=Object.keys(t.params)[0],r=t.params[e];if("object"!=typeof r||null===r)return;if(!(e in n)||!("enabled"in r))return;!0===n[e]&&(n[e]={enabled:!0}),"object"!=typeof n[e]||"enabled"in n[e]||(n[e].enabled=!0),n[e]||(n[e]={enabled:!1})}}));const o=v.extend({},F);r.useModulesParams(o),r.params=v.extend({},o,V,n),r.originalParams=v.extend({},r.params),r.passedParams=v.extend({},n),r.$=f;const c=f(r.params.el);if(t=c[0],!t)return;if(c.length>1){const e=[];return c.each(((t,r)=>{const o=v.extend({},n,{el:r});e.push(new B(o))})),e}let l;return t.swiper=r,c.data("swiper",r),t&&t.shadowRoot&&t.shadowRoot.querySelector?(l=f(t.shadowRoot.querySelector(`.${r.params.wrapperClass}`)),l.children=e=>c.children(e)):l=c.children(`.${r.params.wrapperClass}`),v.extend(r,{$el:c,el:t,$wrapperEl:l,wrapperEl:l[0],classNames:[],slides:f(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===r.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:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const e=["touchstart","touchmove","touchend","touchcancel"];let t=["mousedown","mousemove","mouseup"];return _.pointerEvents&&(t=["pointerdown","pointermove","pointerup"]),r.touchEventsTouch={start:e[0],move:e[1],end:e[2],cancel:e[3]},r.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},_.touch||!r.params.simulateTouch?r.touchEventsTouch:r.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:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.useModules(),r.params.init&&r.init(),r}slidesPerViewDynamic(){const{params:e,slides:t,slidesGrid:n,size:r,activeIndex:o}=this;let c=1;if(e.centeredSlides){let e,n=t[o].swiperSlideSize;
2for(let i=o+1;i<t.length;i+=1)t[i]&&!e&&(n+=t[i].swiperSlideSize,c+=1,n>r&&(e=!0));for(let i=o-1;i>=0;i-=1)t[i]&&!e&&(n+=t[i].swiperSlideSize,c+=1,n>r&&(e=!0))}else for(let i=o+1;i<t.length;i+=1)n[i]-n[o]<r&&(c+=1);return c}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;function r(){const t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}let o;n.breakpoints&&e.setBreakpoint(),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.params.freeMode?(r(),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||r()),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t=!0){const n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(`${n.params.containerModifierClass}${r}`).addClass(`${n.params.containerModifierClass}${e}`),n.params.direction=e,n.slides.each(((t,n)=>{"vertical"===e?n.style.width="":n.style.height=""})),n.emit("changeDirection"),t&&n.update()),n}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 n=this,{params:r,$el:o,$wrapperEl:c,slides:l}=n;return void 0===n.params||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),o.removeAttr("style"),c.removeAttr("style"),l&&l.length&&l.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach((e=>{n.off(e)})),!1!==e&&(n.$el[0].swiper=null,n.$el.data("swiper",null),v.deleteProps(n)),n.destroyed=!0),null}static extendDefaults(e){v.extend(V,e)}static get extendedDefaults(){return V}static get defaults(){return F}static get Class(){return E}static get $(){return f}}var Y={name:"device",proto:{device:P},static:{device:P}},H={name:"support",proto:{support:_},static:{support:_}};const $={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 z={name:"browser",proto:{browser:$},static:{browser:$}},K={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 W={func:d.MutationObserver||d.WebkitMutationObserver,attach(e,t={}){const n=this,r=new(0,W.func)((e=>{if(1===e.length)return void n.emit("observerUpdate",e[0]);const t=function(){n.emit("observerUpdate",e[0])};d.requestAnimationFrame?d.requestAnimationFrame(t):d.setTimeout(t,0)}));r.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),n.observer.observers.push(r)},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})}}
2,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:W.init.bind(e),attach:W.attach.bind(e),destroy:W.destroy.bind(e),observers:[]}})},on:{init(){this.observer.init()},destroy(){this.observer.destroy()}}};const Q={update(e){const t=this,{slidesPerView:n,slidesPerGroup:r,centeredSlides:o}=t.params,{addSlidesBefore:c,addSlidesAfter:l}=t.params.virtual,{from:d,to:h,slides:f,slidesGrid:m,renderSlide:y,offset:_}=t.virtual;t.updateActiveIndex();const E=t.activeIndex||0;let T,A,w;T=t.rtlTranslate?"right":t.isHorizontal()?"left":"top",o?(A=Math.floor(n/2)+r+c,w=Math.floor(n/2)+r+l):(A=n+(r-1)+c,w=r+l);const S=Math.max((E||0)-w,0),O=Math.min((E||0)+A,f.length-1),I=(t.slidesGrid[S]||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:S,to:O,offset:I,slidesGrid:t.slidesGrid}),d===S&&h===O&&!e)return t.slidesGrid!==m&&I!==_&&t.slides.css(T,`${I}px`),void t.updateProgress();if(t.params.virtual.renderExternal)return t.params.virtual.renderExternal.call(t,{offset:I,from:S,to:O,slides:function(){const e=[];for(let i=S;i<=O;i+=1)e.push(f[i]);return e}()}),void C();const P=[],N=[];if(e)t.$wrapperEl.find(`.${t.params.slideClass}`).remove();else for(let i=d;i<=h;i+=1)(i<S||i>O)&&t.$wrapperEl.find(`.${t.params.slideClass}[data-swiper-slide-index="${i}"]`).remove();for(let i=0;i<f.length;i+=1)i>=S&&i<=O&&(void 0===h||e?N.push(i):(i>h&&N.push(i),i<d&&P.push(i)));N.forEach((e=>{t.$wrapperEl.append(y(f[e],e))})),P.sort(((a,b)=>b-a)).forEach((e=>{t.$wrapperEl.prepend(y(f[e],e))})),t.$wrapperEl.children(".swiper-slide").css(T,`${I}px`),C()},renderSlide(e,t){const n=this,r=n.params.virtual;if(r.cache&&n.virtual.cache[t])return n.virtual.cache[t];const o=r.renderSlide?f(r.renderSlide.call(n,e,t)):f(`<div class="${n.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`);return o.attr("data-swiper-slide-index")||o.attr("data-swiper-slide-index",t),r.cache&&(n.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,n=t.activeIndex;let r=n+1,o=1;if(Array.isArray(e)){for(let i=0;i<e.length;i+=1)e[i]&&t.virtual.slides.unshift(e[i]);r=n+e.length,o=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){const e=t.virtual.cache,n={};Object.keys(e).forEach((t=>{const r=e[t],c=r.attr("data-swiper-slide-index");c&&r.attr("data-swiper-slide-index",parseInt(c,10)+1),n[parseInt(t,10)+o]=r})),t.virtual.cache=n}t.virtual.update(!0),t.slideTo(r,0)},removeSlide(e){const t=this;if(null==e)return;let n=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]<n&&(n-=1),n=Math.max(n,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<n&&(n-=1),n=Math.max(n,0);t.virtual.update(!0),t.slideTo(n,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 Z={handle(e){const t=this,{rtlTranslate:n}=t;let r=e;r.originalEvent&&(r=r.originalEvent);const o=r.keyCode||r.charCode,l=t.params.keyboard.pageUpDown,h=l&&33===o,f=l&&34===o,m=37===o,y=39===o,v=38===o,_=40===o;if(!t.allowSlideNext&&(t.isHorizontal()&&y||t.isVertical()&&_||f))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&m||t.isVertical()&&v||h))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||c.activeElement&&c.activeElement.nodeName&&("input"===c.activeElement.nodeName.toLowerCase()||"textarea"===c.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(h||f||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 r=d.innerWidth,o=d.innerHeight,c=t.$el.offset();n&&(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]<=r&&t[1]>=0&&t[1]<=o&&(e=!0)}if(!e)return}t.isHorizontal()?((h||f||m||y)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),((f||y)&&!n||(h||m)&&n)&&t.slideNext(),((h||m)&&!n||(f||y)&&n)&&t.slidePrev()):((h||f||v||_)&&(r.preventDefault?r.preventDefault():r.returnValue=!1),(f||_)&&t.slideNext(),(h||v)&&t.slidePrev()),t.emit("keyPress",o)}},enable(){const e=this;e.keyboard.enabled||(f(c).on("keydown",e.keyboard.handle),e.keyboard.enabled=!0)},disable(){const e=this;e.keyboard.enabled&&(f(c).off("keydown",e.keyboard.handle),e.keyboard.enabled=!1)}};var J={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}},create(){const e=this;v.extend(e,{keyboard:{enabled:!1,enable:Z.enable.bind(e),disable:Z.disable.bind(e),handle:Z.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,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),e.shiftKey&&!r&&(r=o,o=0),(r||o)&&e.deltaMode&&(1===e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}},handleMouseEnter(){this.mouseEntered=!0},handleMouseLeave(){this.mouseEntered=!1},handle(e){let t=e;const n=this,r=n.params.mousewheel;n.params.cssMode&&t.preventDefault();let o=n.$el;if("container"!==n.params.mousewheel.eventsTarged&&(o=f(n.params.mousewheel.eventsTarged)),!n.mouseEntered&&!o[0].contains(t.target)&&!r.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);let c=0;const l=n.rtlTranslate?-1:1,data=ee.normalize(t);if(r.forceToAxis)if(n.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(r.invert&&(c=-c),n.params.freeMode){const e={time:v.now(),delta:Math.abs(c),direction:Math.sign(c)},{lastEventBeforeSnap:o}=n.mousewheel,l=o&&e.time<o.time+500&&e.delta<=o.delta&&e.direction===o.direction;if(!l){n.mousewheel.lastEventBeforeSnap=void 0,n.params.loop&&n.loopFix();let o=n.getTranslate()+c*r.sensitivity;const d=n.isBeginning,h=n.isEnd;if(o>=n.minTranslate()&&(o=n.minTranslate()),o<=n.maxTranslate()&&(o=n.maxTranslate()),n.setTransition(0),n.setTranslate(o),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!d&&n.isBeginning||!h&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky){clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=void 0;const t=n.mousewheel.recentWheelEvents;t.length>=15&&t.shift();const r=t.length?t[t.length-1]:void 0,o=t[0];if(t.push(e),r&&(e.delta>r.delta||e.direction!==r.direction))t.splice(0);else if(t.length>=15&&e.time-o.time<500&&o.delta-e.delta>=1&&e.delta<=6){const r=c>0?.8:.2;n.mousewheel.lastEventBeforeSnap=e,t.splice(0),n.mousewheel.timeout=v.nextTick((()=>{n.slideToClosest(n.params.speed,!0,void 0,r)}),0)}n.mousewheel.timeout||(n.mousewheel.timeout=v.nextTick((()=>{n.mousewheel.lastEventBeforeSnap=e,t.splice(0),n.slideToClosest(n.params.speed,!0,void 0,.5)}),500))}if(l||n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),o===n.minTranslate()||o===n.maxTranslate())return!0}}else{const t={time:v.now(),delta:Math.abs(c),direction:Math.sign(c),raw:e},r=n.mousewheel.recentWheelEvents;r.length>=2&&r.shift();const o=r.length?r[r.length-1]:void 0;if(r.push(t),o?(t.direction!==o.direction||t.delta>o.delta||t.time>o.time+150)&&n.mousewheel.animateSlider(t):n.mousewheel.animateSlider(t),n.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,n=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&n.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&n.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 n=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(n=f(e.params.mousewheel.eventsTarged)),n.on("mouseenter",e.mousewheel.handleMouseEnter),n.on("mouseleave",e.mousewheel.handleMouseLeave),n.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 n=e.$el;return"container"!==e.params.mousewheel.eventsTarged&&(n=f(e.params.mousewheel.eventsTarged)),n.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 ne={update(){const e=this,t=e.params.navigation;if(e.params.loop)return;const{$nextEl:n,$prevEl:r}=e.navigation;r&&r.length>0&&(e.isBeginning?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),n&&n.length>0&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[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 n,r;t.nextEl&&(n=f(t.nextEl),e.params.uniqueNavElements&&"string"==typeof t.nextEl&&n.length>1&&1===e.$el.find(t.nextEl).length&&(n=e.$el.find(t.nextEl))),t.prevEl&&(r=f(t.prevEl),e.params.uniqueNavElements&&"string"==typeof t.prevEl&&r.length>1&&1===e.$el.find(t.prevEl).length&&(r=e.$el.find(t.prevEl))),n&&n.length>0&&n.on("click",e.navigation.onNextClick),r&&r.length>0&&r.on("click",e.navigation.onPrevClick),v.extend(e.navigation,{$nextEl:n,nextEl:n&&n[0],$prevEl:r,prevEl:r&&r[0]})},destroy(){const e=this,{$nextEl:t,$prevEl:n}=e.navigation;t&&t.length&&(t.off("click",e.navigation.onNextClick),t.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}};var re={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:ne.init.bind(e),update:ne.update.bind(e),destroy:ne.destroy.bind(e),onNextClick:ne.onNextClick.bind(e),onPrevClick:ne.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:n,$prevEl:r}=t.navigation;if(t.params.navigation.hideOnClick&&!f(e.target).is(r)&&!f(e.target).is(n)){let e;n?e=n.hasClass(t.params.navigation.hiddenClass):r&&(e=r.hasClass(t.params.navigation.hiddenClass)),!0===e?t.emit("navigationShow",t):t.emit("navigationHide",t),n&&n.toggleClass(t.params.navigation.hiddenClass),r&&r.toggleClass(t.params.navigation.hiddenClass)}}}};const ie={update(){const e=this,t=e.rtl,n=e.params.pagination;if(!n.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,o=e.pagination.$el;let c;const l=e.params.loop?Math.ceil((r-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(c=Math.ceil((e.activeIndex-e.loopedSlides)/e.params.slidesPerGroup),c>r-1-2*e.loopedSlides&&(c-=r-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"===n.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const r=e.pagination.bullets;let l,d,h;if(n.dynamicBullets&&(e.pagination.bulletSize=r.eq(0)[e.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(e.isHorizontal()?"width":"height",e.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),n.dynamicMainBullets>1&&void 0!==e.previousIndex&&(e.pagination.dynamicBulletIndex+=c-e.previousIndex,e.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?e.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:e.pagination.dynamicBulletIndex<0&&(e.pagination.dynamicBulletIndex=0)),l=c-e.pagination.dynamicBulletIndex,d=l+(Math.min(r.length,n.dynamicMainBullets)-1),h=(d+l)/2),r.removeClass(`${n.bulletActiveClass} ${n.bulletActiveClass}-next ${n.bulletActiveClass}-next-next ${n.bulletActiveClass}-prev ${n.bulletActiveClass}-prev-prev ${n.bulletActiveClass}-main`),o.length>1)r.each(((e,t)=>{const r=f(t),o=r.index();o===c&&r.addClass(n.bulletActiveClass),n.dynamicBullets&&(o>=l&&o<=d&&r.addClass(`${n.bulletActiveClass}-main`),o===l&&r.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),o===d&&r.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`))}));else{const t=r.eq(c),o=t.index();if(t.addClass(n.bulletActiveClass),n.dynamicBullets){const t=r.eq(l),c=r.eq(d);for(let i=l;i<=d;i+=1)r.eq(i).addClass(`${n.bulletActiveClass}-main`);if(e.params.loop)if(o>=r.length-n.dynamicMainBullets){for(let i=n.dynamicMainBullets;i>=0;i-=1)r.eq(r.length-i).addClass(`${n.bulletActiveClass}-main`);r.eq(r.length-n.dynamicMainBullets-1).addClass(`${n.bulletActiveClass}-prev`)}else t.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),c.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`);else t.prev().addClass(`${n.bulletActiveClass}-prev`).prev().addClass(`${n.bulletActiveClass}-prev-prev`),c.next().addClass(`${n.bulletActiveClass}-next`).next().addClass(`${n.bulletActiveClass}-next-next`)}}if(n.dynamicBullets){const o=Math.min(r.length,n.dynamicMainBullets+4),c=(e.pagination.bulletSize*o-e.pagination.bulletSize)/2-h*e.pagination.bulletSize,l=t?"right":"left";r.css(e.isHorizontal()?l:"top",`${c}px`)}}if("fraction"===n.type&&(o.find(`.${n.currentClass}`).text(n.formatFractionCurrent(c+1)),o.find(`.${n.totalClass}`).text(n.formatFractionTotal(l))),"progressbar"===n.type){let t;t=n.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const r=(c+1)/l;let d=1,h=1;"horizontal"===t?d=r:h=r,o.find(`.${n.progressbarFillClass}
2`).transform(`translate3d(0,0,0) scaleX(${d}) scaleY(${h})`).transition(e.params.speed)}"custom"===n.type&&n.renderCustom?(o.html(n.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"](n.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 n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el;let o="";if("bullets"===t.type){const c=e.params.loop?Math.ceil((n-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}>`;r.html(o),e.pagination.bullets=r.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>`,r.html(o)),"progressbar"===t.type&&(o=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`,r.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 n=f(t.el);0!==n.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&n.length>1&&(n=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&n.addClass(t.clickableClass),n.addClass(t.modifierClass+t.type),"bullets"===t.type&&t.dynamicBullets&&(n.addClass(`${t.modifierClass}${t.type}-dynamic`),e.pagination.dynamicBulletIndex=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&n.addClass(t.progressbarOppositeClass),t.clickable&&n.on("click",`.${t.bulletClass}`,(function(t){t.preventDefault();let n=f(this).index()*e.params.slidesPerGroup;e.params.loop&&(n+=e.loopedSlides),e.slideTo(n)})),v.extend(e.pagination,{$el:n,el:n[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 n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.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&&!f(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:n,progress:progress}=e,{dragSize:r,trackSize:o,$dragEl:c,$el:l}=t,d=e.params.scrollbar;let h=r,f=(o-r)*progress;n?(f=-f,f>0?(h=r-f,f=0):-f+r>o&&(h=o+f)):f<0?(h=r+f,f=0):f+r>o&&(h=o-f),e.isHorizontal()?(c.transform(`translate3d(${f}px, 0, 0)`),c[0].style.width=`${h}px`):(c.transform(`translate3d(0px, ${f}px, 0)`),c[0].style.height=`${h}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:n,$el:r}=t;n[0].style.width="",n[0].style.height="";const o=e.isHorizontal()?r[0].offsetWidth:r[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()?n[0].style.width=`${d}px`:n[0].style.height=`${d}px`,r[0].style.display=c>=1?"none":"",e.params.scrollbar.hide&&(r[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:n,rtlTranslate:r}=t,{$el:o,dragSize:c,trackSize:l,dragStartPos:d}=n;let h;h=(n.getPointerPosition(e)-o.offset()[t.isHorizontal()?"left":"top"]-(null!==d?d:c/2))/(l-c),h=Math.max(Math.min(h,1),0),r&&(h=1-h);const f=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*h;t.updateProgress(f),t.setTranslate(f),t.updateActiveIndex(),t.updateSlidesClasses()},onDragStart(e){const t=this,n=t.params.scrollbar,{scrollbar:r,$wrapperEl:o}=t,{$el:c,$dragEl:l}=r;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===l[0]||e.target===l?r.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),o.transition(100),l.transition(100),r.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),c.transition(0),n.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:n,$wrapperEl:r}=t,{$el:o,$dragEl:c}=n;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),r.transition(0),o.transition(0),c.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd(e){const t=this,n=t.params.scrollbar,{scrollbar:r,$wrapperEl:o}=t,{$el:c}=r;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,t.params.cssMode&&(t.$wrapperEl.css("scroll-snap-type",""),o.transition("")),n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=v.nextTick((()=>{c.css("opacity",0),c.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:n,touchEventsDesktop:r,params:o}=e,l=t.$el[0],d=!(!_.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},h=!(!_.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};_.touch?(l.addEventListener(n.start,e.scrollbar.onDragStart,d),l.addEventListener(n.move,e.
2scrollbar.onDragMove,d),l.addEventListener(n.end,e.scrollbar.onDragEnd,h)):(l.addEventListener(r.start,e.scrollbar.onDragStart,d),c.addEventListener(r.move,e.scrollbar.onDragMove,d),c.addEventListener(r.end,e.scrollbar.onDragEnd,h))},disableDraggable(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,touchEventsTouch:n,touchEventsDesktop:r,params:o}=e,l=t.$el[0],d=!(!_.passiveListener||!o.passiveListeners)&&{passive:!1,capture:!1},h=!(!_.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1};_.touch?(l.removeEventListener(n.start,e.scrollbar.onDragStart,d),l.removeEventListener(n.move,e.scrollbar.onDragMove,d),l.removeEventListener(n.end,e.scrollbar.onDragEnd,h)):(l.removeEventListener(r.start,e.scrollbar.onDragStart,d),c.removeEventListener(r.move,e.scrollbar.onDragMove,d),c.removeEventListener(r.end,e.scrollbar.onDragEnd,h))},init(){const e=this;if(!e.params.scrollbar.el)return;const{scrollbar:t,$el:n}=e,r=e.params.scrollbar;let o=f(r.el);e.params.uniqueNavElements&&"string"==typeof r.el&&o.length>1&&1===n.find(r.el).length&&(o=n.find(r.el));let c=o.find(`.${e.params.scrollbar.dragClass}`);0===c.length&&(c=f(`<div class="${e.params.scrollbar.dragClass}"></div>`),o.append(c)),v.extend(t,{$el:o,el:o[0],$dragEl:c,dragEl:c[0]}),r.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,n=f(e),r=t?-1:1,p=n.attr("data-swiper-parallax")||"0";let o=n.attr("data-swiper-parallax-x"),c=n.attr("data-swiper-parallax-y");const l=n.attr("data-swiper-parallax-scale"),d=n.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*r+"%":o*progress*r+"px",c=c.indexOf("%")>=0?parseInt(c,10)*progress+"%":c*progress+"px",null!=d){const e=d-(d-1)*(1-Math.abs(progress));n[0].style.opacity=e}if(null==l)n.transform(`translate3d(${o}, ${c}, 0px)`);else{const e=l-(l-1)*(1-Math.abs(progress));n.transform(`translate3d(${o}, ${c}, 0px) scale(${e})`)}},setTranslate(){const e=this,{$el:t,slides:n,progress:progress,snapGrid:r}=e;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(((t,n)=>{e.parallax.setTransform(n,progress)})),n.each(((t,n)=>{let o=n.progress;e.params.slidesPerGroup>1&&"auto"!==e.params.slidesPerView&&(o+=Math.ceil(t/2)-progress*(r.length-1)),o=Math.min(Math.max(o,-1),1),f(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(((t,n)=>{e.parallax.setTransform(n,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,n)=>{const r=f(n);let o=parseInt(r.attr("data-swiper-parallax-duration"),10)||e;0===e&&(o=0),r.transition(o)}))}};var le={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 ue={getDistanceBetweenTouches(e){if(e.targetTouches.length<2)return 1;const t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,o=e.targetTouches[1].pageY;return Math.sqrt((r-t)**2+(o-n)**2)},onGestureStart(e){const t=this,n=t.params.zoom,r=t.zoom,{gesture:o}=r;if(r.fakeGestureTouched=!1,r.fakeGestureMoved=!1,!_.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targetTouches.length<2)return;r.fakeGestureTouched=!0,o.scaleStart=ue.getDistanceBetweenTouches(e)}o.$slideEl&&o.$slideEl.length||(o.$slideEl=f(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(`.${n.containerClass}`),o.maxRatio=o.$imageWrapEl.attr("data-swiper-zoom")||n.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,n=this.zoom,{gesture:r}=n;if(!_.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;n.fakeGestureMoved=!0,r.scaleMove=ue.getDistanceBetweenTouches(e)}r.$imageEl&&0!==r.$imageEl.length&&(n.scale=_.gestures?e.scale*n.currentScale:r.scaleMove/r.scaleStart*n.currentScale,n.scale>r.maxRatio&&(n.scale=r.maxRatio-1+(n.scale-r.maxRatio+1)**.5),n.scale<t.minRatio&&(n.scale=t.minRatio+1-(t.minRatio-n.scale+1)**.5),r.$imageEl.transform(`translate3d(0,
20,0) scale(${n.scale})`))},onGestureEnd(e){const t=this,n=t.params.zoom,r=t.zoom,{gesture:o}=r;if(!_.gestures){if(!r.fakeGestureTouched||!r.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!P.android)return;r.fakeGestureTouched=!1,r.fakeGestureMoved=!1}o.$imageEl&&0!==o.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,o.maxRatio),n.minRatio),o.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`),r.currentScale=r.scale,r.isScaling=!1,1===r.scale&&(o.$slideEl=void 0))},onTouchStart(e){const t=this.zoom,{gesture:n,image:image}=t;n.$imageEl&&0!==n.$imageEl.length&&(image.isTouched||(P.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,n=t.zoom,{gesture:r,image:image,velocity:o}=n;if(!r.$imageEl||0===r.$imageEl.length)return;if(t.allowClick=!1,!image.isTouched||!r.$slideEl)return;image.isMoved||(image.width=r.$imageEl[0].offsetWidth,image.height=r.$imageEl[0].offsetHeight,image.startX=v.getTranslate(r.$imageWrapEl[0],"x")||0,image.startY=v.getTranslate(r.$imageWrapEl[0],"y")||0,r.slideWidth=r.$slideEl[0].offsetWidth,r.slideHeight=r.$slideEl[0].offsetHeight,r.$imageWrapEl.transition(0),t.rtl&&(image.startX=-image.startX,image.startY=-image.startY));const c=image.width*n.scale,l=image.height*n.scale;if(!(c<r.slideWidth&&l<r.slideHeight)){if(image.minX=Math.min(r.slideWidth/2-c/2,0),image.maxX=-image.minX,image.minY=Math.min(r.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&&!n.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(),r.$imageWrapEl.transform(`translate3d(${image.currentX}px, ${image.currentY}px,0)`)}},onTouchEnd(){const e=this.zoom,{gesture:t,image:image,velocity:n}=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 r=300,o=300;const c=n.x*r,l=image.currentX+c,d=n.y*o,h=image.currentY+d;0!==n.x&&(r=Math.abs((l-image.currentX)/n.x)),0!==n.y&&(o=Math.abs((h-image.currentY)/n.y));const f=Math.max(r,o);image.currentX=l,image.currentY=h;const 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(f).transform(`translate3d(${image.currentX}px, ${image.currentY}px,0)`)},onTransitionEnd(){const e=this,t=e.zoom,{gesture:n}=t;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl&&n.$imageEl.transform("translate3d(0,
20,0) scale(1)"),n.$imageWrapEl&&n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle(e){const t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in(e){const t=this,n=t.zoom,r=t.params.zoom,{gesture:o,image:image}=n;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(`.${r.containerClass}`)),!o.$imageEl||0===o.$imageEl.length)return;let c,l,d,h,f,m,y,v,_,E,T,A,w,S,O,I,C,P;o.$slideEl.addClass(`${r.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),n.scale=o.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,n.currentScale=o.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,e?(C=o.$slideEl[0].offsetWidth,P=o.$slideEl[0].offsetHeight,d=o.$slideEl.offset().left,h=o.$slideEl.offset().top,f=d+C/2-c,m=h+P/2-l,_=o.$imageEl[0].offsetWidth,E=o.$imageEl[0].offsetHeight,T=_*n.scale,A=E*n.scale,w=Math.min(C/2-T/2,0),S=Math.min(P/2-A/2,0),O=-w,I=-S,y=f*n.scale,v=m*n.scale,y<w&&(y=w),y>O&&(y=O),v<S&&(v=S),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(${n.scale})`)},out(){const e=this,t=e.zoom,n=e.params.zoom,{gesture:r}=t;r.$slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?r.$slideEl=e.$wrapperEl.children(`.${e.params.slideActiveClass}`):r.$slideEl=e.slides.eq(e.activeIndex),r.$imageEl=r.$slideEl.find("img, svg, canvas, picture, .swiper-zoom-target"),r.$imageWrapEl=r.$imageEl.parent(`.${n.containerClass}`)),r.$imageEl&&0!==r.$imageEl.length&&(t.scale=1,t.currentScale=1,r.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),r.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),r.$slideEl.removeClass(`${n.zoomedSlideClass}`),r.$slideEl=void 0)},enable(){const e=this,t=e.zoom;if(t.enabled)return;t.enabled=!0;const n=!("touchstart"!==e.touchEvents.start||!_.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},r=!_.passiveListener||{passive:!1,capture:!0},o=`.${e.params.slideClass}`;_.gestures?(e.$wrapperEl.on("gesturestart",o,t.onGestureStart,n),e.$wrapperEl.on("gesturechange",o,t.onGestureChange,n),e.$wrapperEl.on("gestureend",o,t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,o,t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,o,t.onGestureChange,r),e.$wrapperEl.on(e.touchEvents.end,o,t.onGestureEnd,n),e.touchEvents.cancel&&e.$wrapperEl.on(e.touchEvents.cancel,o,t.onGestureEnd,n)),e.$wrapperEl.on(e.touchEvents.move,`.${e.params.zoom.containerClass}`,t.onTouchMove,r)},disable(){const e=this,t=e.zoom;if(!t.enabled)return;e.zoom.enabled=!1;const n=!("touchstart"!==e.touchEvents.start||!_.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1},r=!_.passiveListener||{passive:!1,capture:!0},o=`.${e.params.slideClass}`;_.gestures?(e.$wrapperEl.off("gesturestart",o,t.onGestureStart,n),e.$wrapperEl.off("gesturechange",o,t.onGestureChange,n),e.$wrapperEl.off("gestureend",o,t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,o,t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,o,t.onGestureChange,r),e.$wrapperEl.off(e.touchEvents.end,o,t.onGestureEnd,n),e.touchEvents.cancel&&e.$wrapperEl.off(e.touchEvents.cancel,o,t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,`.${e.params.zoom.containerClass}`,t.onTouchMove,r)}};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((n=>{t[n]=ue[n].bind(e)})),v.extend(e,{zoom:t});let n=1;Object.defineProperty(e.zoom,"scale",{get:()=>n,set(t){if(n!==t){const n=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,r=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,n,r)}n=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 n=this,r=n.params.lazy;if(void 0===e)return;if(0===n.slides.length)return;const o=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children(`.${n.params.slideClass}[data-swiper-slide-index="${e}"]`):n.slides.eq(e);let c=o.find(`.${r.elementClass}:not(.${r.loadedClass}):not(.${r.loadingClass})`);!o.hasClass(r.elementClass)||o.hasClass(r.loadedClass)||o.hasClass(r.loadingClass)||(c=c.add(o[0])),0!==c.length&&c.each(((e,c)=>{const l=f(c);l.addClass(r.loadingClass);const d=l.attr("data-background"),h=l.attr("data-src"),m=l.attr("data-srcset"),y=l.attr("data-sizes"),v=l.parent("picture");n.loadImage(l[0],h||d,m,y,!1,(()=>
2{if(null!=n&&n&&(!n||n.params)&&!n.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 n=f(t);n.attr("data-srcset")&&(n.attr("srcset",n.attr("data-srcset")),n.removeAttr("data-srcset"))})),h&&(l.attr("src",h),l.removeAttr("data-src"))),l.addClass(r.loadedClass).removeClass(r.loadingClass),o.find(`.${r.preloaderClass}`).remove(),n.params.loop&&t){const e=o.attr("data-swiper-slide-index");if(o.hasClass(n.params.slideDuplicateClass)){const t=n.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${n.params.slideDuplicateClass})`);n.lazy.loadInSlide(t.index(),!1)}else{const t=n.$wrapperEl.children(`.${n.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`);n.lazy.loadInSlide(t.index(),!1)}}n.emit("lazyImageReady",o[0],l[0]),n.params.autoHeight&&n.updateAutoHeight()}})),n.emit("lazyImageLoad",o[0],l[0])}))},load(){const e=this,{$wrapperEl:t,params:n,slides:r,activeIndex:o}=e,c=e.virtual&&n.virtual.enabled,l=n.lazy;let d=n.slidesPerView;function h(e){if(c){if(t.children(`.${n.slideClass}[data-swiper-slide-index="${e}"]`).length)return!0}else if(r[e])return!0;return!1}function m(e){return c?f(e).attr("data-swiper-slide-index"):f(e).index()}if("auto"===d&&(d=0),e.lazy.initialImageLoaded||(e.lazy.initialImageLoaded=!0),e.params.watchSlidesVisibility)t.children(`.${n.slideVisibleClass}`).each(((t,n)=>{const r=c?f(n).attr("data-swiper-slide-index"):f(n).index();e.lazy.loadInSlide(r)}));else if(d>1)for(let i=o;i<o+d;i+=1)h(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,n=d,c=Math.min(o+n+Math.max(t,n),r.length),f=Math.max(o-Math.max(n,t),0);for(let i=o+d;i<c;i+=1)h(i)&&e.lazy.loadInSlide(i);for(let i=f;i<o;i+=1)h(i)&&e.lazy.loadInSlide(i)}else{const r=t.children(`.${n.slideNextClass}`);r.length>0&&e.lazy.loadInSlide(m(r));const o=t.children(`.${n.slidePrevClass}`);o.length>0&&e.lazy.loadInSlide(m(o))}}};var he={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 fe={LinearSpline:function(e,t){const n=function(){let e,t,n;return(r,o)=>{for(t=-1,e=r.length;e-t>1;)n=e+t>>1,r[n]<=o?t=n:e=n;return e}}();let r,o;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(o=n(this.x,e),r=o-1,(e-this.x[r])*(this.y[o]-this.y[r])/(this.x[o]-this.x[r])+this.y[r]):0},this},getInterpolateFunction(e){const t=this;t.controller.spline||(t.controller.spline=t.params.loop?new fe.LinearSpline(t.slidesGrid,e.slidesGrid):new fe.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate(e,t){const n=this,r=n.controller.control;let o,c;function l(e){const t=n.rtlTranslate?-n.translate:n.translate;"slide"===n.params.controller.by&&(n.controller.getInterpolateFunction(e),c=-n.controller.spline.interpolate(-t)),c&&"container"!==n.params.controller.by||(o=(e.maxTranslate()-e.minTranslate())/(n.maxTranslate()-n.minTranslate()),c=(t-n.minTranslate())*o+e.minTranslate()),n.params.controller.inverse&&(c=e.maxTranslate()-c),e.updateProgress(c),e.setTranslate(c,n),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(r))for(let i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof B&&l(r[i]);else r instanceof B&&t!==r&&l(r)},setTransition(e,t){const n=this,r=n.controller.control;let i;function o(t){t.setTransition(e,n),0!==e&&(t.transitionStart(),t.params.autoHeight&&v.nextTick((()=>{t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((()=>{r&&(t.params.loop&&"slide"===n.params.controller.by&&t.loopFix(),t.transitionEnd())})))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==t&&r[i]instanceof B&&o(r[i]);else r instanceof B&&t!==r&&o(r)}};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:fe.getInterpolateFunction.bind(e),setTranslate:fe.setTranslate.bind(e),setTransition:fe.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 ge={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,n=t.params.a11y;if(13!==e.keyCode)return;const r=f(e.target);t.navigation&&t.navigation.$nextEl&&r.is(t.navigation.$nextEl)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?t.a11y.notify(n.lastSlideMessage):t.a11y.notify(n.nextSlideMessage)),t.navigation&&t.navigation.$prevEl&&r.is(t.navigation.$prevEl)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?t.a11y.notify(n.firstSlideMessage):t.a11y.notify(n.prevSlideMessage)),t.pagination&&r.is(`.${t.params.pagination.bulletClass}`)&&r[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:n}=e.navigation;n&&n.length>0&&(e.isBeginning?(e.a11y.disableEl(n),e.a11y.makeElNotFocusable(n)):(e.a11y.enableEl(n),e.a11y.makeElFocusable(n))),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(((n,r)=>{const o=f(r);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 n,r;e.navigation&&e.navigation.$nextEl&&(n=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(r=e.navigation.$prevEl),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,t.nextSlideMessage),n.on("keydown",e.a11y.onEnterKey)),r&&(e.a11y.makeElFocusable(r),e.a11y.addElRole(r,"button"),e.a11y.addElLabel(r,t.prevSlideMessage),r.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,n;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&&(n=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),n&&n.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 ye={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:f(`<span class="${e.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`)}}),Object.keys(ge).forEach((t=>{e.a11y[t]=ge[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()}}};
2const ve={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=ve.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=ve.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 n=this;if(!n.history.initialized||!n.params.history.enabled)return;const r=n.slides.eq(t);let o=ve.slugify(r.attr("data-history"));d.location.pathname.includes(e)||(o=`${e}/${o}`);const c=d.history.state;c&&c.value===o||(n.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,n){const r=this;if(t)for(let i=0,o=r.slides.length;i<o;i+=1){const o=r.slides.eq(i);if(ve.slugify(o.attr("data-history"))===t&&!o.hasClass(r.params.slideDuplicateClass)){const t=o.index();r.slideTo(t,e,n)}}else r.slideTo(0,e,n)}};var _e={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create(){const e=this;v.extend(e,{history:{init:ve.init.bind(e),setHistory:ve.setHistory.bind(e),setHistoryPopState:ve.setHistoryPopState.bind(e),scrollToSlide:ve.scrollToSlide.bind(e),destroy:ve.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 n=e.$wrapperEl.children(`.${e.params.slideClass}[data-hash="${t}"]`).index();if(void 0===n)return;e.slideTo(n)}},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),n=t.attr("data-hash")||t.attr("data-history");c.location.hash=n||"",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 n=0;for(let i=0,r=e.slides.length;i<r;i+=1){const r=e.slides.eq(i);if((r.attr("data-hash")||r.attr("data-history"))===t&&!r.hasClass(e.params.slideDuplicateClass)){const t=r.index();e.slideTo(t,n,e.params.runCallbacksOnInit,!0)}}}e.params.hashNavigation.watchState&&f(d).on("hashchange",e.hashNavigation.onHashCange)},destroy(){const e=this;e.params.hashNavigation.watchState&&f(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 Te={run(){const e=this,t=e.slides.eq(e.activeIndex);let n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=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()}),n)},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:Te.run.bind(e),start:Te.start.bind(e),stop:Te.stop.bind(e),pause:Te.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 n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.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 we={setTranslate(){const e=this,{slides:t}=e;for(let i=0;i<t.length;i+=1){const t=e.slides.eq(i);let n=-t[0].swiperSlideOffset;e.params.virtualTranslate||(n-=e.translate);let r=0;e.isHorizontal()||(r=n,n=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(${n}px, ${r}px, 0px)`)}},setTransition(e){const t=this,{slides:n,$wrapperEl:r}=t;if(n.transition(e),t.params.virtualTranslate&&0!==e){let e=!1;n.transitionEnd((()=>{if(e)return;if(!t||t.destroyed)return;e=!0,t.animating=!1;const n=["webkitTransitionEnd","transitionend"];for(let i=0;i<n.length;i+=1)r.trigger(n[i])}))}}};var Se={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create(){const e=this;v.extend(e,{fadeEffect:{setTranslate:we.setTranslate.bind(e),setTransition:we.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 Oe={setTranslate(){const e=this,{$el:t,$wrapperEl:n,slides:r,width:o,height:c,rtlTranslate:l,size:d}=e,h=e.params.cubeEffect,m=e.isHorizontal(),y=e.virtual&&e.params.virtual.enabled;let v,_=0;h.shadow&&(m?(v=n.find(".swiper-cube-shadow"),0===v.length&&(v=f('<div class="swiper-cube-shadow"></div>'),n.append(v)),v.css({height:`${o}px`})):(v=t.find(".swiper-cube-shadow"),0===v.length&&(v=f('<div class="swiper-cube-shadow"></div>'),t.append(v))));for(let i=0;i<r.length;i+=1){const e=r.eq(i);let t=i;y&&(t=parseInt(e.attr("data-swiper-slide-index"),10));let n=90*t,o=Math.floor(n/360);l&&(n=-n,o=Math.floor(-n/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 T=`rotateX(${m?0:-n}deg) rotateY(${m?n: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(T),h.slideShadows){let t=m?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),n=m?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=f(`<div class="swiper-slide-shadow-${m?"left":"top"}"></div>`),e.append(t)),0===n.length&&(n=f(`<div class="swiper-slide-shadow-${m?"right":"bottom"}"></div>`),e.append(n)),t.length&&(t[0].style.opacity=Math.max(-progress,0)),n.length&&(n[0].style.opacity=Math.max(progress,0))}}if(n.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`}),h.shadow)if(m)v.transform(`translate3d(0px, ${o/2+h.shadowOffset}px, ${-o/2}px) rotateX(90deg) rotateZ(0deg) scale(${h.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),n=h.shadowScale,r=h.shadowScale/t,o=h.shadowOffset;v.transform(`scale3d(${n}, 1, ${r}) translate3d(0px, ${c/2+o}px, ${-c/2/r}px) rotateX(-90deg)`)}const E=$.isSafari||$.isWebView?-d/2:0;n.transform(`translate3d(0px,0,${E}px) rotateX(${e.isHorizontal()?0:_}deg) rotateY(${e.isHorizontal()?-_:0}deg)`)},setTransition(e){const t=this,{$el:n,slides:r}=t;r.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()&&n.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:Oe.setTranslate.bind(e),setTransition:Oe.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:n}=e;for(let i=0;i<t.length;i+=1){const r=t.eq(i);let progress=r[0].progress;e.params.flipEffect.limitRotation&&(progress=Math.max(Math.min(r[0].progress,1),-1));let o=-180*progress,c=0,l=-r[0].swiperSlideOffset,d=0;if(e.isHorizontal()?n&&(o=-o):(d=l,l=0,c=-o,o=0),r[0].style.zIndex=-Math.abs(Math.round(progress))+t.length,e.params.flipEffect.slideShadows){let t=e.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),n=e.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===t.length&&(t=f(`<div class="swiper-slide-shadow-${e.isHorizontal()?"left":"top"}"></div>`),r.append(t)),0===n.length&&(n=f(`<div class="swiper-slide-shadow-${e.isHorizontal()?"right":"bottom"}"></div>`),r.append(n)),t.length&&(t[0].style.opacity=Math.max(-progress,0)),n.length&&(n[0].style.opacity=Math.max(progress,0))}r.transform(`translate3d(${l}px, ${d}px, 0px) rotateX(${c}deg) rotateY(${o}deg)`)}},setTransition(e){const t=this,{slides:n,activeIndex:r,$wrapperEl:o}=t;if(n.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;n.eq(r).transitionEnd((function(){if(e)return;if(!t||t.destroyed)return;e=!0,t.animating=!1;const n=["webkitTransitionEnd","transitionend"];for(let i=0;i<n.length;i+=1)o.trigger(n[i])}))}}};var Pe={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 Ne={setTranslate(){const e=this,{width:t,height:n,slides:r,$wrapperEl:o,slidesSizesGrid:c}=e,l=e.params.coverflowEffect,d=e.isHorizontal(),h=e.translate,m=d?t/2-h:n/2-h,y=d?l.rotate:-l.rotate,v=l.depth;for(let i=0,e=r.length;i<e;i+=1){const e=r.eq(i),t=c[i],n=(m-e[0].swiperSlideOffset-t/2)/t*l.modifier;let o=d?y*n:0,h=d?0:y*n,_=-v*Math.abs(n),E=l.stretch;"string"==typeof E&&-1!==E.indexOf("%")&&(E=parseFloat(l.stretch)/100*t);let T=d?0:E*n,A=d?E*n:0,w=1-(1-l.scale)*Math.abs(n);Math.abs(A)<.001&&(A=0),Math.abs(T)<.001&&(T=0),Math.abs(_)<.001&&(_=0),Math.abs(o)<.001&&(o=0),Math.abs(h)<.001&&(h=0),Math.abs(w)<.001&&(w=0);const S=`translate3d(${A}px,${T}px,${_}px)  rotateX(${h}deg) rotateY(${o}deg) scale(${w})`;if(e.transform(S),e[0].style.zIndex=1-Math.abs(Math.round(n)),l.slideShadows){let t=d?e.find(".swiper-slide-shadow-left"):e.find(".swiper-slide-shadow-top"),r=d?e.find(".swiper-slide-shadow-right"):e.find(".swiper-slide-shadow-bottom");0===t.length&&(t=f(`<div class="swiper-slide-shadow-${d?"left":"top"}"></div>`),e.append(t)),0===r.length&&(r=f(`<div class="swiper-slide-shadow-${d?"right":"bottom"}"></div>`),e.append(r)),t.length&&(t[0].style.opacity=n>0?n:0),r.length&&(r[0].style.opacity=-n>0?-n: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 De={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:Ne.setTranslate.bind(e),setTransition:Ne.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 Re={init(){const e=this,{thumbs:t}=e.params,n=e.constructor;t.swiper instanceof n?(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 n(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 n=t.clickedIndex,r=t.clickedSlide;if(r&&f(r).hasClass(e.params.thumbs.slideThumbActiveClass))return;if(null==n)return;let o;if(o=t.params.loop?parseInt(f(t.clickedSlide).attr("data-swiper-slide-index"),10):n,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 n=e.slides.eq(t).prevAll(`[data-swiper-slide-index="${o}"]`).eq(0).index(),r=e.slides.eq(t).nextAll(`[data-swiper-slide-index="${o}"]`).eq(0).index();o=void 0===n?r:void 0===r?n:r-t<t-n?r:n}e.slideTo(o)},update(e){const t=this,n=t.thumbs.swiper;if(!n)return;const r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView,o=t.params.thumbs.autoScrollOffset,c=o&&!n.params.loop;if(t.realIndex!==n.realIndex||c){let l,d,h=n.activeIndex;if(n.params.loop){n.slides.eq(h).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,h=n.activeIndex);const e=n.slides.eq(h).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(),r=n.slides.eq(h).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index();l=void 0===e?r:void 0===r?e:r-h===h-e?h:r-h<h-e?r: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),n.visibleSlidesIndexes&&n.visibleSlidesIndexes.indexOf(l)<0&&(n.params.centeredSlides?l=l>h?l-Math.floor(r/2)+1:l+Math.floor(r/2)-1:l>h&&(l=l-r+1),n.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),n.slides.removeClass(d),n.params.loop||n.params.virtual&&n.params.virtual.enabled)for(let i=0;i<l;i+=1)n.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+i}"]`).addClass(d);else for(let i=0;i<l;i+=1)n.slides.eq(t.realIndex+i).addClass(d)}};const Le=[Y,H,z,K,G,X,J,te,re,oe,se,le,de,he,me,ye,_e,Ee,Ae,Se,Ie,Pe,De,{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:Re.init.bind(e),update:Re.update.bind(e),onThumbClick:Re.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()}}}];
2void 0===B.use&&(B.use=B.Class.use,B.installModule=B.Class.installModule),B.use(Le);t.default=B},99:function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.PiniaVuePlugin=t.MutationType=void 0,t.acceptHMRUpdate=function(e,t){return function(){};return function(n){var r=t.data.pinia||e._pinia;if(r)for(var o in t.data.pinia=r,n){var c=n[o];if(ie(c)&&r._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=r._s.get(l);if(!d)return void console.log("[Pinia]: skipping hmr because store doesn't exist yet");c(r,d)}}}},t.createPinia=function(){var e=(0,h.effectScope)(!0),t=e.run((function(){return(0,h.ref)({})})),n=[],r=[],o=(0,h.markRaw)({install:function(e){m(o),h.isVue2||(o._a=e,e.provide(y,o),e.config.globalProperties.$pinia=o,"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&_&&J(e,o),r.forEach((function(e){return n.push(e)})),r=[])},use:function(e){return this._a||h.isVue2?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&_&&"undefined"!=typeof Proxy&&o.use(re);return o},t.defineStore=function(e,t,n){var r,o,c="function"==typeof t;"string"==typeof e?(r=e,o=c?n:t):(o=e,r=e.id);function d(e,n){var d=(0,h.hasInjectionContext)();return(e=e||(d?(0,h.inject)(y,null):null))&&m(e),(e=l)._s.has(r)||(c?me(r,t,o,e):function(e,t,n,r){var o,c=t.state,l=t.actions,d=t.getters,f=n.state.value[e];function y(){f||(h.isVue2?(0,h.set)(n.state.value,e,c?c():{}):n.state.value[e]=c?c():{});var t=(0,h.toRefs)(n.state.value[e]);return fe(t,l,Object.keys(d||{}).reduce((function(t,r){return t[r]=(0,h.markRaw)((0,h.computed)((function(){m(n);var t=n._s.get(e);if(!h.isVue2||t._r)return d[r].call(t,t)}))),t}),{}))}o=me(e,y,t,n,r,!0)}(r,o,e)),e._s.get(r)}return d.$id=r,d},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((function(t,n){return t[n]=function(){var t;return(t=e(this.$pinia))[n].apply(t,arguments)},t}),{}):Object.keys(t).reduce((function(n,r){return n[r]=function(){var n;return(n=e(this.$pinia))[t[r]].apply(n,arguments)},n}),{})},t.mapGetters=void 0,t.mapState=ye,t.mapStores=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];0;return t.reduce((function(e,t){return e[t.$id+ge]=function(){return t(this.$pinia)},e}),{})},t.mapWritableState=function(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]={get:function(){return e(this.$pinia)[n]},set:function(t){return e(this.$pinia)[n]=t}},t}),{}):Object.keys(t).reduce((function(n,r){return n[r]={get:function(){return e(this.$pinia)[t[r]]},set:function(n){return e(this.$pinia)[t[r]]=n}},n}),{})},t.setActivePinia=void 0,t.setMapStoreSuffix=function(e){ge=e},t.shouldHydrate=he,t.skipHydrate=function(e){return Object.defineProperty(e,pe,{})},t.storeToRefs=function(e){if(h.isVue2)return(0,h.toRefs)(e);var t=(0,h.toRaw)(e),n={},r=function(r){var o=t[r];o.effect?n[r]=(0,h.computed)({get:function(){return e[r]},set:function(t){e[r]=t}}):((0,h.isRef)(o)||(0,h.isReactive)(o))&&(n[r]=(0,h.toRef)(e,r))};for(var o in t)r(o);return n},n(22);var o=r(n(23)),c=r(n(53));n(12),n(44),n(13),n(8),n(45),n(29),n(24),n(36),n(132),n(16),n(181),n(10),n(5),n(177),n(475),n(477),n(17),n(30),n(115),n(39),n(26),n(32),n(75),n(151),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(9),n(33),n(616),n(617),n(89);var l,d,h=n(478),f=n(910),m=t.setActivePinia=function(e){return l=e},y=(t.getActivePinia=function(){return(0,h.hasInjectionContext)()&&(0,h.inject)(y)||l},Symbol());function v(e){return e&&"object"===(0,c.default)(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"}(d||(t.MutationType=d={}));var _="undefined"!=typeof window,E=function(){return"object"===("undefined"==typeof window?"undefined":(0,c.default)(window))&&window.window===window?window:"object"===("undefined"==typeof self?"undefined":(0,c.default)(self))&&self.self===self?self:"object"===(void 0===e?"undefined":(0,c.default)(e))&&e.global===e?e:"object"===("undefined"==typeof globalThis?"undefined":(0,c.default)(globalThis))?globalThis:{HTMLElement:null}}();function T(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){C(r.response,t,n
2)},r.onerror=function(){console.error("could not download file")},r.send()}function A(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function w(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var S,O="object"===("undefined"==typeof navigator?"undefined":(0,c.default)(navigator))?navigator:{userAgent:""},I=function(){return/Macintosh/.test(O.userAgent)&&/AppleWebKit/.test(O.userAgent)&&!/Safari/.test(O.userAgent)}(),C=_?"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype&&!I?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"download",n=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?A(a.href)?T(e,t,n):(a.target="_blank",w(a)):w(a)):(a.href=URL.createObjectURL(e),setTimeout((function(){URL.revokeObjectURL(a.href)}),4e4),setTimeout((function(){w(a)}),0))}:"msSaveOrOpenBlob"in O?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"download",n=arguments.length>2?arguments[2]:void 0;if("string"==typeof e)if(A(e))T(e,t,n);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){w(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,n),t)}:function(e,t,n,r){(r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading...");if("string"==typeof e)return T(e,t,n);var o="application/octet-stream"===e.type,c=/constructor/i.test(String(E.HTMLElement))||"safari"in E,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&c||I)&&"undefined"!=typeof FileReader){var d=new FileReader;d.onloadend=function(){var e=d.result;if("string"!=typeof e)throw r=null,new Error("Wrong reader.result type");e=l?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=e:location.assign(e),r=null},d.readAsDataURL(e)}else{var h=URL.createObjectURL(e);r?r.location.assign(h):location.href=h,r=null,setTimeout((function(){URL.revokeObjectURL(h)}),4e4)}}:function(){};function P(e,t){var n="🍍 "+e;"function"==typeof __VUE_DEVTOOLS_TOAST__?__VUE_DEVTOOLS_TOAST__(n,t):"error"===t?console.error(n):"warn"===t?console.warn(n):console.log(n)}function N(e){return"_a"in e&&"install"in e}function D(){if(!("clipboard"in navigator))return P("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"))&&(P('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)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!D()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,navigator.clipboard.writeText(JSON.stringify(t.state.value));case 5:P("Global state copied to clipboard."),e.next=14;break;case 8:if(e.prev=8,e.t0=e.catch(2),!R(e.t0)){e.next=12;break}return e.abrupt("return");case 12:P("Failed to serialize the state. Check the console for more details.","error"),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[2,8]])})))).apply(this,arguments)}function k(e){return x.apply(this,arguments)}function x(){return(x=(0,o.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!D()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.t0=j,e.t1=t,e.t2=JSON,e.next=8,navigator.clipboard.readText();case 8:e.t3=e.sent,e.t4=e.t2.parse.call(e.t2,e.t3),(0,e.t0)(e.t1,e.t4),P("Global state pasted from clipboard."),e.next=20;break;case 14:if(e.prev=14,e.t5=e.catch(2),!R(e.t5)){e.next=18;break}return e.abrupt("return");case 18:P("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e.t5);case 20:case"end":return e.stop()}}),e,null,[[2,14]])})))).apply(this,arguments)}function M(){return(M=(0,o.default)(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{C(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){P("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function U(e){return F.apply(this,arguments)}function F(){return(F=(0,o.default)(regeneratorRuntime.mark((function e(t){var n,r,text,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,S||((S=document.createElement("input")).type="file",S.accept=".json"),n=function(){return new Promise((function(e,t){S.onchange=(0,o.default)(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=S.files){t.next=3;break}return t.abrupt("return",e(null));case 3:if(r=n.item(0)){t.next=6;break}return t.abrupt("return",e(null));case 6:return t.t0=e,t.next=9,r.text();case 9:return t.t1=t.sent,t.t2=r,t.t3={text:t.t1,file:t.t2},t.abrupt("return",(0,t.t0)(t.t3));case 13:case"end":return t.stop()}}),t)}))),S.oncancel=function(){return e(null)},S.onerror=t,S.click()}))},e.next=4,n();case 4:if(r=e.sent){e.next=7;break}return e.abrupt("return");case 7:text=r.text,c=r.file,j(t,JSON.parse(text)),P('Global state imported from "'.concat(c.name,'".')),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),P("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e.t0);case 16:case"end":return e.stop()}}),e,null,[[0,12]])})))).apply(this,arguments)}function j(e,t){for(var n in t){var r=e.state.value[n];r?Object.assign(r,t[n]):e.state.value[n]=t[n]}}function V(e){return{_custom:{display:e}}}var B="🍍 Pinia (root)",Y="_root";function H(e){return N(e)?{id:Y,label:B}:{id:e.$id,label:e.$id}}function $(e){return e?Array.isArray(e)?e.reduce((function(data,e){return 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:{}}):{operation:V(e.type),key:V(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function z(e){switch(e){case d.direct:return"mutation";case d.patchFunction:case d.patchObject:return"$patch";default:return"unknown"}}var K=!0,W=[],G="pinia:mutations",Q="pinia",X=Object.assign,Z=function(e){return"🍍 "+e};function J(e,t){(0,f.setupDevtoolsPlugin)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:W,app:e},(function(n){var r,c;"function"!=typeof n.now&&P("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."),n.addTimelineLayer({id:G,label:"Pinia 🍍",color:15064968}),n.addInspector({id:Q,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:function(){!function(e){L.apply(this,arguments)}(t)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:(c=(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k(t);case 2:n.sendInspectorTree(Q),n.sendInspectorState(Q);case 4:case"end":return e.stop()}}),e)}))),function(){return c.apply(this,arguments)}),tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:function(){!function(e){M.apply(this,arguments)}(t)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:(r=(0,o.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,U(t);case 2:n.sendInspectorTree(Q),n.sendInspectorState(Q);case 4:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)}),tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:function(e){var n=t._s.get(e);n?"function"!=typeof n.$reset?P('Cannot reset "'.concat(e,'" store because it doesn\'t have a "$reset" method implemented.'),"warn"):(n.$reset(),P('Store "'.concat(e,'" reset.'))):P('Cannot reset "'.concat(e,"\" store because it wasn't found."),"warn")}}]}),n.on.inspectComponent((function(e,t){var n=e.componentInstance&&e.componentInstance.proxy;if(n&&n._pStores){var r=e.componentInstance.proxy._pStores;Object.values(r).forEach((function(t){e.instanceData.state.push({type:Z(t.$id),key:"state",editable:!0,value:t._isOptionsAPI?{_custom:{value:(0,h.toRaw)(t.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:function(){return t.$reset()}}]}}:Object.keys(t.$state).reduce((function(e,n){return e[n]=t.$state[n],e}),{})}),t._getters&&t._getters.length&&e.instanceData.state.push({type:Z(t.$id),key:"getters",editable:!1,value:t._getters.reduce((function(e,n){try{e[n]=t[n]}catch(t){e[n]=t}return e}),{})})}))}})),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===Q){var r=[t];
2r=r.concat(Array.from(t._s.values())),n.rootNodes=(n.filter?r.filter((function(e){return"$id"in e?e.$id.toLowerCase().includes(n.filter.toLowerCase()):B.toLowerCase().includes(n.filter.toLowerCase())})):r).map(H)}})),globalThis.$pinia=t,n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===Q){var r=n.nodeId===Y?t:t._s.get(n.nodeId);if(!r)return;r&&(n.nodeId!==Y&&(globalThis.$store=(0,h.toRaw)(r)),n.state=function(e){if(N(e)){var t=Array.from(e._s.keys()),n=e._s,r={state:t.map((function(t){return{editable:!0,key:t,value:e.state.value[t]}})),getters:t.filter((function(e){return n.get(e)._getters})).map((function(e){var t=n.get(e);return{editable:!1,key:e,value:t._getters.reduce((function(e,n){return e[n]=t[n],e}),{})}}))};return r}var o={state:Object.keys(e.$state).map((function(t){return{editable:!0,key:t,value:e.$state[t]}}))};return e._getters&&e._getters.length&&(o.getters=e._getters.map((function(t){return{editable:!1,key:t,value:e[t]}}))),e._customProperties.size&&(o.customProperties=Array.from(e._customProperties).map((function(t){return{editable:!0,key:t,value:e[t]}}))),o}(r))}})),n.on.editInspectorState((function(n,r){if(n.app===e&&n.inspectorId===Q){var o=n.nodeId===Y?t:t._s.get(n.nodeId);if(!o)return P('store "'.concat(n.nodeId,'" not found'),"error");var path=n.path;N(o)?path.unshift("state"):1===path.length&&o._customProperties.has(path[0])&&!(path[0]in o.$state)||path.unshift("$state"),K=!1,n.set(o,path,n.state.value),K=!0}})),n.on.editComponentState((function(e){if(e.type.startsWith("🍍")){var n=e.type.replace(/^🍍\s*/,""),r=t._s.get(n);if(!r)return P('store "'.concat(n,'" not found'),"error");var path=e.path;if("state"!==path[0])return P('Invalid path for store "'.concat(n,'":\n').concat(path,"\nOnly state can be modified."));path[0]="$state",K=!1,e.set(r,path,e.state.value),K=!0}}))}))}var ee,te=0;function ne(e,t,n){var r=t.reduce((function(t,n){return t[n]=(0,h.toRaw)(e)[n],t}),{}),o=function(t){e[t]=function(){var o=te,c=n?new Proxy(e,{get:function(){return ee=o,Reflect.get.apply(Reflect,arguments)},set:function(){return ee=o,Reflect.set.apply(Reflect,arguments)}}):e;ee=o;var l=r[t].apply(c,arguments);return ee=void 0,l}};for(var c in r)o(c)}function re(e){var t=e.app,n=e.store,r=e.options;if(!n.$id.startsWith("__hot:")){if(n._isOptionsAPI=!!r.state,!n._p._testing){ne(n,Object.keys(r.actions),n._isOptionsAPI);var o=n._hotUpdate;(0,h.toRaw)(n)._hotUpdate=function(e){o.apply(this,arguments),ne(n,Object.keys(e._hmrPayload.actions),!!n._isOptionsAPI)}}!function(e,t){W.includes(Z(t.$id))||W.push(Z(t.$id)),(0,f.setupDevtoolsPlugin)({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:W,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},(function(e){var n="function"==typeof e.now?e.now.bind(e):Date.now;t.$onAction((function(r){var o=r.after,c=r.onError,l=r.name,d=r.args,h=te++;e.addTimelineEvent({layerId:G,event:{time:n(),title:"🛫 "+l,subtitle:"start",data:{store:V(t.$id),action:V(l),args:d},groupId:h}}),o((function(r){ee=void 0,e.addTimelineEvent({layerId:G,event:{time:n(),title:"🛬 "+l,subtitle:"end",data:{store:V(t.$id),action:V(l),args:d,result:r},groupId:h}})})),c((function(r){ee=void 0,e.addTimelineEvent({layerId:G,event:{time:n(),logType:"error",title:"💥 "+l,subtitle:"end",data:{store:V(t.$id),action:V(l),args:d,error:r},groupId:h}})}))}),!0),t._customProperties.forEach((function(r){(0,h.watch)((function(){return(0,h.unref)(t[r])}),(function(t,o){e.notifyComponentUpdate(),e.sendInspectorState(Q),K&&e.addTimelineEvent({layerId:G,event:{time:n(),title:"Change",subtitle:r,data:{newValue:t,oldValue:o},groupId:ee}})}),{deep:!0})})),t.$subscribe((function(r,o){var c=r.events,l=r.type;if(e.notifyComponentUpdate(),e.sendInspectorState(Q),K){var h={time:n(),title:z(l),data:X({store:V(t.$id)},$(c)),groupId:ee};l===d.patchFunction?h.subtitle="⤵️":l===d.patchObject?h.subtitle="🧩":c&&!Array.isArray(c)&&(h.subtitle=c.type),c&&(h.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),e.addTimelineEvent({layerId:G,event:h})}}),{detached:!0,flush:"sync"});var r=t._hotUpdate;t._hotUpdate=(0,h.markRaw)((function(o){r(o),e.addTimelineEvent({layerId:G,event:{time:n(),title:"🔥 "+t.$id,subtitle:"HMR update",data:{store:V(t.$id),info:V("HMR update")}}}),e.notifyComponentUpdate(),e.sendInspectorTree(Q),e.sendInspectorState(Q)}));var o=t.$dispose;t.$dispose=function(){o(),e.notifyComponentUpdate(),e.sendInspectorTree(Q),e.sendInspectorState(Q),e.getSettings().logStoreChanges&&P('Disposed "'.concat(t.$id,'" store 🗑'))},e.notifyComponentUpdate(),e.sendInspectorTree(Q),e.sendInspectorState(Q),e.getSettings().logStoreChanges&&P('"'.concat(t.$id,'" store installed 🆕'))}))}(t,n)}}var ie=function(e){return"function"==typeof e&&"string"==typeof e.$
2id};var oe=function(){};function ae(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:oe;e.push(t);var o=function(){var n=e.indexOf(t);n>-1&&(e.splice(n,1),r())};return!n&&(0,h.getCurrentScope)()&&(0,h.onScopeDispose)(o),o}function se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.slice().forEach((function(e){e.apply(void 0,n)}))}var ce=function(e){return e()},le=Symbol(),ue=Symbol();function de(e,t){for(var n in e instanceof Map&&t instanceof Map?t.forEach((function(t,n){return e.set(n,t)})):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e),t)if(t.hasOwnProperty(n)){var r=t[n],o=e[n];v(o)&&v(r)&&e.hasOwnProperty(n)&&!(0,h.isRef)(r)&&!(0,h.isReactive)(r)?e[n]=de(o,r):e[n]=r}return e}var pe=Symbol();function he(e){return!v(e)||!e.hasOwnProperty(pe)}var fe=Object.assign;function me(e,t){var n,r=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,l=fe({actions:{}},r);var f,y,v={deep:!0};var E,T=[],A=[],w=o.state.value[e];c||w||(h.isVue2?(0,h.set)(o.state.value,e,{}):o.state.value[e]={});var S,O=(0,h.ref)({});function I(t){var n;f=y=!1,"function"==typeof t?(t(o.state.value[e]),n={type:d.patchFunction,storeId:e,events:E}):(de(o.state.value[e],t),n={type:d.patchObject,payload:t,storeId:e,events:E});var r=S=Symbol();(0,h.nextTick)().then((function(){S===r&&(f=!0)})),y=!0,se(T,n,o.state.value[e])}var C=c?function(){var e=r.state,t=e?e():{};this.$patch((function(e){fe(e,t)}))}:oe;var P=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(le in t)return t[ue]=n,t;var r=function(){m(o);var n,c=Array.from(arguments),l=[],d=[];se(A,{args:c,name:r[ue],store:R,after:function(e){l.push(e)},onError:function(e){d.push(e)}});try{n=t.apply(this&&this.$id===e?this:R,c)}catch(e){throw se(d,e),e}return n instanceof Promise?n.then((function(e){return se(l,e),e})).catch((function(e){return se(d,e),Promise.reject(e)})):(se(l,n),n)};return r[le]=!0,r[ue]=n,r},N=(0,h.markRaw)({actions:{},getters:{},state:[],hotState:O}),D={_p:o,$id:e,$onAction:ae.bind(null,A),$patch:I,$reset:C,$subscribe:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=ae(T,t,r.detached,(function(){return l()})),l=n.run((function(){return(0,h.watch)((function(){return o.state.value[e]}),(function(n){("sync"===r.flush?y:f)&&t({storeId:e,type:d.direct,events:E},n)}),fe({},v,r))}));return c}
2,$dispose:function(){n.stop(),T=[],A=[],o._s.delete(e)}};h.isVue2&&(D._r=!1);var R=(0,h.reactive)("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&_?fe({_hmrPayload:N,_customProperties:(0,h.markRaw)(new Set)},D):D);o._s.set(e,R);var L,k=(o._a&&o._a.runWithContext||ce)((function(){return o._e.run((function(){return(n=(0,h.effectScope)()).run((function(){return t({action:P})}))}))}));for(var x in k){var M=k[x];if((0,h.isRef)(M)&&(L=M,!(0,h.isRef)(L)||!L.effect)||(0,h.isReactive)(M))c||(w&&he(M)&&((0,h.isRef)(M)?M.value=w[x]:de(M,w[x])),h.isVue2?(0,h.set)(o.state.value[e],x,M):o.state.value[e][x]=M);else if("function"==typeof M){var U=P(M,x);h.isVue2?(0,h.set)(k,x,U):k[x]=U,l.actions[x]=M}else{}}if(h.isVue2?Object.keys(k).forEach((function(e){(0,h.set)(R,e,k[e])})):(fe(R,k),fe((0,h.toRaw)(R),k)),Object.defineProperty(R,"$state",{get:function(){return o.state.value[e]},set:function(e){I((function(t){fe(t,e)}))}}),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&_){var F={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach((function(p){Object.defineProperty(R,p,fe({value:R[p]},F))}))}return h.isVue2&&(R._r=!0),o._p.forEach((function(e){if("undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&_){var t=n.run((function(){return e({store:R,app:o._a,pinia:o,options:l})}));Object.keys(t||{}).forEach((function(e){return R._customProperties.add(e)})),fe(R,t)}else fe(R,n.run((function(){return e({store:R,app:o._a,pinia:o,options:l})})))})),w&&c&&r.hydrate&&r.hydrate(R.$state,w),f=!0,y=!0,R}var ge="Store";function ye(e,t){return Array.isArray(t)?t.reduce((function(t,n){return t[n]=function(){return e(this.$pinia)[n]},t}),{}):Object.keys(t).reduce((function(n,r){return n[r]=function(){var n=e(this.$pinia),o=t[r];return"function"==typeof o?o.call(this,n):n[o]},n}),{})}t.mapGetters=ye;t.PiniaVuePlugin=function(e){e.mixin({beforeCreate:function(){var e=this.$options;if(e.pinia){var t=e.pinia;if(!this._provided){var n={};Object.defineProperty(this,"_provided",{get:function(){return n},set:function(e){return Object.assign(n,e)}})}this._provided[y]=t,this.$pinia||(this.$pinia=t),t._a=this,_&&m(t),"undefined"!=typeof __VUE_PROD_DEVTOOLS__&&__VUE_PROD_DEVTOOLS__&&_&&J(t._a,t)}else!this.$pinia&&e.parent&&e.parent.$pinia&&(this.$pinia=e.parent.$pinia)},destroyed:function(){delete this._pStores}})}}).call(this,n(47))}}]);

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.