text: !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("spbQRCode",[],n):"object"==typeof exports?exports.spbQRCode=n():e.spbQRCode=n()}("undefined"!=typeof self?self:this,(function(){return function(e){var n={};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}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return 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,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=2)}([function(e,n,t){e.exports=t(1)},function(e,n,t){"undefined"!=typeof self&&self,e.exports=function(e){var n={};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}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return 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,n){return{}.hasOwnProperty.call(e,n)},t.p="",t(t.s=0)}([function(e,n,t){"use strict";t.r(n),t.d(n,"ElementNode",(function(){return i})),t.d(n,"FragmentNode",(function(){return a})),t.d(n,"TextNode",(function(){return c})),t.d(n,"ComponentNode",(function(){return u})),t.d(n,"node",(function(){return p})),t.d(n,"Fragment",(function(){return h})),t.d(n,"text",(function(){return y})),t.d(n,"dom",(function(){return F})),t.d(n,"react",(function(){return T})),t.d(n,"html",(function(){return j})),t.d(n,"preact",(function(){return L})),t.d(n,"regex",(function(){return O})),t.d(n,"NODE_TYPE",(function(){return r})),t.d(n,"Style",(function(){return A})),t.d(n,"Regex",(function(){return N})),t.d(n,"RegexText",(function(){return I})),t.d(n,"RegexWord",(function(){return R})),t.d(n,"RegexCharacters",(function(){return q})),t.d(n,"RegexGroup",(function(){return B})),t.d(n,"RegexUnion",(function(){return W}));var r={ELEMENT:"element",TEXT:"text",COMPONENT:"component",FRAGMENT:"fragment"};function o(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}var i=function(){function e(e,n,t){this.type=r.ELEMENT,this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=n||{},this.children=t;var o=this.props.onRender;"function"==typeof o&&(this.onRender=o,delete n.onRender)}var n=e.prototype;return n.render=function(e){var n=e(this);return this.onRender&&this.onRender(n),n},n.renderChildren=function(e){return o(this.children,e)},e}(),a=function(){function e(e){this.type=r.FRAGMENT,this.children=void 0,this.children=e}return e.prototype.render=function(e){return o(this.children,e)},e}(),c=function(){function e(e){this.type=r.TEXT,this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),u=function(){function e(e,n,t){this.type=r.COMPONENT,this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=n||{},this.children=t,this.props.children=t}var n=e.prototype;return n.renderComponent=function(e){var n=function(e){var n=s(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new a(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return o(this.children,e)},e}();function s(e){for(var n=[],t=0;t<e.length;t++){var o=e[t];if(o)if("string"==typeof o||"number"==typeof o)n.push(new c(o.toString()));else{if("boolean"==typeof o)continue;if(Array.isArray(o))for(var i=0,a=s(o);i<a.length;i++)n.push(a[i]);else{if(!o||o.type!==r.ELEMENT&&o.type!==r.TEXT&&o.type!==r.COMPONENT)throw new TypeError("Unrecognized node type: "+typeof o);n.push(o)}}}return n}var l,f,d,p=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];if(r=s(r),"string"==typeof e)return new i(e,n,r);if("function"==typeof e)return new u(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},h=function(e,n){return n};function y(){return function e(n){if(n.type===r.COMPONENT)return[].concat(n.renderComponent(e)).join("");if(n.type===r.ELEMENT)throw new Error("Text renderer does not support basic elements");if(n.type===r.TEXT)return n.text;throw new TypeError("Unhandleable node: "+n.type)}}function v(e){return null!=e}var m=((l={}).svg="http://www.w3.org/2000/svg",l),_=((f={})["xlink:href"]="http://www.w3.org/1999/xlink",f);function w(e,n){return e.createTextNode(n.text)}function g(e,n){for(var t=n.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)e.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var c=_[i];c?e.setAttributeNS(c,i,a.toString()):e.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||t.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var b=((d={}).iframe=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||t.type!==r.ELEMENT||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var n=e.contentWindow;if(!n)throw new Error("Expected frame to have contentWindow");for(var r=n.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(F({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},d.script=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||t.type!==r.TEXT)throw new Error("Expected only single text node as child of script element");e.text=t.text},d.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},d);function x(e,n,t,r){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var t=0,r=e.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,t))}else(b[n.name]||b.default)(e,n,r)}function F(e){void 0===e&&(e={});var n=e.doc,t=void 0===n?document:n;return function e(n){if(n.type===r.COMPONENT)return n.renderComponent(e);if(n.type===r.TEXT)return w(t,n);if(n.type===r.ELEMENT){var o=m[n.name.toLowerCase()];if(o)return function e(n,o){if(n.type===r.COMPONENT)return n.renderComponent((function(n){return e(n,o)}));if(n.type===r.TEXT)return w(t,n);if(n.type===r.ELEMENT){var i=function(e,n,t){return e.createElementNS(t,n.name)}(t,n,o);return g(i,n),x(i,n,t,(function(n){return e(n,o)})),i}throw new TypeError("Unhandleable node")}(n,o);var i=function(e,n){return n.props.el?n.props.el:e.createElement(n.name)}(t,n);return g(i,n),x(i,n,t,e),i}throw new TypeError("Unhandleable node")}}function C(){return(C=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function E(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}var k=["innerHTML","class"];function T(e){var n=(void 0===e?{}:e).React;if(!n)throw new Error("Must pass React library to react renderer");return function e(t){if(t.type===r.COMPONENT)return n.createElement.apply(n,[function(){return t.renderComponent(e)||null},t.props].concat(t.renderChildren(e)));if(t.type===r.ELEMENT)return n.createElement.apply(n,[t.name,(o=t.props,i=o.innerHTML,C({dangerouslySetInnerHTML:i?{__html:i}:null,className:o.class},E(o,k)))].concat(t.renderChildren(e)));var o,i;if(t.type===r.TEXT)return t.text;throw new TypeError("Unhandleable node")}}var M={br:!0};function S(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}function j(){return function e(n){if(n.type===r.COMPONENT)return[].concat(n.renderComponent(e)).join("");if(n.type===r.ELEMENT){var t=(i=n.props,(a=Object.keys(i).filter((function(e){var n=i[e];return"innerHTML"!==e&&("string"==typeof n||"number"==typeof n||!0===n)}))).length?" "+a.map((function(e){var n=i[e];if(!0===n)return""+S(e);if("string"!=typeof n&&"number"!=typeof n)throw new TypeError("Unexpected prop type: "+typeof n);return""===n?S(e):S(e)+'="'+S(n.toString())+'"'})).join(" "):"");if(M[n.name])return"<"+n.name+t+" />";var o="string"==typeof n.props.innerHTML?n.props.innerHTML:n.renderChildren(e).join("");return"<"+n.name+t+">"+o+"</"+n.name+">"}var i,a;if(n.type===r.TEXT)return S(n.text);throw new TypeError("Unhandleable node: "+n.type)}}var D=["innerHTML"];function L(e){var n=(void 0===e?{}:e).Preact;if(!n)throw new Error("Must pass Preact library to react renderer");return function e(t){if(t.type===r.COMPONENT)return n.h.apply(n,[function(){return t.renderComponent(e)||null},t.props].concat(t.renderChildren(e)));if(t.type===r.ELEMENT)return n.h.apply(n,[t.name,(o=t.props,i=o.innerHTML,C({dangerouslySetInnerHTML:i?{__html:i}:null},E(o,D)))].concat(t.renderChildren(e)));var o,i;if(t.type===r.TEXT)return t.text;throw new TypeError("Unhandleable node")}}function O(){var e=y();return function(n){return new RegExp(e(n))}}function A(e){var n=e.css,t=e.nonce,r=e.children;return p(h,null,p("style",{innerHTML:"string"==typeof n?n:n._getCss(),nonce:t}),r)}O.node=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];var i=p.apply(void 0,[e,n].concat(r));return e.renderer?i.render(e.renderer()):i};var P=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")},H=function(e,n){return(n=function(e,n){if(!n)throw new Error("Must pass children to "+e);return n}(e,n)).map((function(e){return e.type===r.TEXT?new c(P(e.text)):e}))};function N(e,n){var t=e.exact,r=void 0===t||t;return n=H("RegexGroup",n),r?["^"].concat(n,["$"]):n}function I(e,n){return H("RegexText",n)}function R(e,n){return function(e,n){if(n&&n.length)throw new Error("Must not pass children to RegexWord")}(0,n),"\\w+"}function q(e,n){return["["].concat(H("RegexText",n),["]"])}function B(e,n){var t=e.repeat,r=e.repeatMin,o=e.repeatMax,i=e.name,a=e.optional,u=void 0!==a&&a,s=e.capture,l=void 0===s||s,f=e.union,d=void 0!==f&&f;if(n=H("RegexGroup",n),v(t)&&(v(r)||v(o)))throw new Error("repeat can not be used with repeatMin or repeatMax");if(i&&!l)throw new Error("Named groups must be captured");if(d){for(var p=[],h=0,y=n;h<y.length;h++)p.push(y[h]),p.push(new c("|"));p.pop(),n=p}var m=[];return m.push(l?"(":"(?:"),i&&m.push("?<"+P(i)+">"),m.push.apply(m,n),m.push(")"),v(t)&&("number"==typeof t?m.push("{"+t+"}"):!0===t&&m.push("+")),(v(r)||v(o))&&m.push("{"+(r||"")+","+(o||"")+"}"),u&&m.push("?"),m}function W(e,n){for(var t=[],r=0,o=n=H("RegexGroup",n);r<o.length;r++)t.push(o[r]),t.push("|");return t.pop(),t}N.renderer=O}])},function(e,n,t){"use strict";function r(){return(r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}t.r(n),t.d(n,"renderQRCode",(function(){return Ot}));var o,i,a,c,u,s,l={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,n){for(var t in n)e[t]=n[t];return e}function h(e){var n=e.parentNode;n&&n.removeChild(e)}function y(e,n,t){var r,i,a,c={};for(a in n)"key"==a?r=n[a]:"ref"==a?i=n[a]:c[a]=n[a];if(arguments.length>2&&(c.children=arguments.length>3?o.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===c[a]&&(c[a]=e.defaultProps[a]);return v(e,c,r,i,null)}function v(e,n,t,r,o){var c={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++a:o};return null==o&&null!=i.vnode&&i.vnode(c),c}function m(e){return e.children}function _(e,n){this.props=e,this.context=n}function w(e,n){if(null==n)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?w(e):null}function g(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return g(e)}}function b(e){(!e.__d&&(e.__d=!0)&&c.push(e)&&!x.__r++||s!==i.debounceRendering)&&((s=i.debounceRendering)||u)(x)}function x(){for(var e;x.__r=c.length;)e=c.sort((function(e,n){return e.__v.__b-n.__v.__b})),c=[],e.some((function(e){var n,t,r,o,i,a;e.__d&&(i=(o=(n=e).__v).__e,(a=n.__P)&&(t=[],(r=p({},o)).__v=o.__v+1,j(a,o,r,n.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?w(o):i,o.__h),D(t,o),o.__e!=i&&g(o)))}))}function F(e,n,t,r,o,i,a,c,u,s){var d,p,h,y,_,g,b,x=r&&r.__k||f,F=x.length;for(t.__k=[],d=0;d<n.length;d++)if(null!=(y=t.__k[d]=null==(y=n[d])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(m,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,null,y.__v):y)){if(y.__=t,y.__b=t.__b+1,null===(h=x[d])||h&&y.key==h.key&&y.type===h.type)x[d]=void 0;else for(p=0;p<F;p++){if((h=x[p])&&y.key==h.key&&y.type===h.type){x[p]=void 0;break}h=null}j(e,y,h=h||l,o,i,a,c,u,s),_=y.__e,(p=y.ref)&&h.ref!=p&&(b||(b=[]),h.ref&&b.push(h.ref,null,y),b.push(p,y.__c||_,y)),null!=_?(null==g&&(g=_),"function"==typeof y.type&&y.__k===h.__k?y.__d=u=C(y,u,e):u=E(e,y,h,x,_,u),"function"==typeof t.type&&(t.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=w(h))}for(t.__e=g,d=F;d--;)null!=x[d]&&("function"==typeof t.type&&null!=x[d].__e&&x[d].__e==t.__d&&(t.__d=w(r,d+1)),A(x[d],x[d]));if(b)for(d=0;d<b.length;d++)O(b[d],b[++d],b[++d])}function C(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?C(r,n,t):E(t,r,r,o,r.__e,n));return n}function E(e,n,t,r,o,i){var a,c,u;if(void 0!==n.__d)a=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(c=i,u=0;(c=c.nextSibling)&&u<r.length;u+=2)if(c==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function k(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||d.test(n)?t:t+"px"}function T(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||k(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||k(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?S:M,i):e.removeEventListener(n,i?S:M,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function M(e){this.l[e.type+!1](i.event?i.event(e):e)}function S(e){this.l[e.type+!0](i.event?i.event(e):e)}function j(e,n,t,r,o,a,c,u,s){var l,f,d,h,y,v,w,g,b,x,C,E=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(s=t.__h,u=n.__e=t.__e,n.__h=null,a=[u]),(l=i.__b)&&l(n);try{e:if("function"==typeof E){if(g=n.props,b=(l=E.contextType)&&r[l.__c],x=l?b?b.props.value:l.__:r,t.__c?w=(f=n.__c=t.__c).__=f.__E:("prototype"in E&&E.prototype.render?n.__c=f=new E(g,x):(n.__c=f=new _(g,x),f.constructor=E,f.render=P),b&&b.sub(f),f.props=g,f.state||(f.state={}),f.context=x,f.__n=r,d=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,E.getDerivedStateFromProps(g,f.__s))),h=f.props,y=f.state,d)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(g,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(g,f.__s,x)||n.__v===t.__v){f.props=g,f.state=f.__s,n.__v!==t.__v&&(f.__d=!1),f.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),f.__h.length&&c.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(g,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,y,v)}))}f.context=x,f.props=g,f.state=f.__s,(l=i.__r)&&l(n),f.__d=!1,f.__v=n,f.__P=e,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(r=p(p({},r),f.getChildContext())),d||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,y)),C=null!=l&&l.type===m&&null==l.key?l.props.children:l,F(e,Array.isArray(C)?C:[C],n,t,r,o,a,c,u,s),f.base=n.__e,n.__h=null,f.__h.length&&c.push(f),w&&(f.__E=f.__=null),f.__e=!1}else null==a&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=L(t.__e,n,t,r,o,a,c,s);(l=i.diffed)&&l(n)}catch(e){n.__v=null,(s||null!=a)&&(n.__e=u,n.__h=!!s,a[a.indexOf(u)]=null),i.__e(e,n,t)}}function D(e,n){i.__c&&i.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){i.__e(e,n.__v)}}))}function L(e,n,t,r,i,a,c,u){var s,f,d,p=t.props,y=n.props,v=n.type,m=0;if("svg"===v&&(i=!0),null!=a)for(;m<a.length;m++)if((s=a[m])&&"setAttribute"in s==!!v&&(v?s.localName===v:3===s.nodeType)){e=s,a[m]=null;break}if(null==e){if(null===v)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),a=null,u=!1}if(null===v)p===y||u&&e.data===y||(e.data=y);else{if(a=a&&o.call(e.childNodes),f=(p=t.props||l).dangerouslySetInnerHTML,d=y.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||T(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||T(e,i,n[i],t[i],r)}(e,y,p,i,u),d)n.__k=[];else if(m=n.props.children,F(e,Array.isArray(m)?m:[m],n,t,r,i&&"foreignObject"!==v,a,c,a?a[0]:t.__k&&w(t,0),u),null!=a)for(m=a.length;m--;)null!=a[m]&&h(a[m]);u||("value"in y&&void 0!==(m=y.value)&&(m!==p.value||m!==e.value||"progress"===v&&!m)&&T(e,"value",m,p.value,!1),"checked"in y&&void 0!==(m=y.checked)&&m!==e.checked&&T(e,"checked",m,p.checked,!1))}return e}function O(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){i.__e(e,t)}}function A(e,n,t){var r,o;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||O(r,null,n)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&A(r[o],n,"function"!=typeof e.type);t||null==e.__e||h(e.__e),e.__e=e.__d=void 0}function P(e,n,t){return this.constructor(e,t)}o=f.slice,i={__e:function(e,n){for(var t,r,o;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),o=t.__d),o)return t.__E=t}catch(n){e=n}throw e}},a=0,_.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},t),this.props)),e&&p(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),b(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},_.prototype.render=m,c=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,x.__r=0;var H,N,I,R=0,q=[],B=i.__b,W=i.__r,z=i.diffed,V=i.__c,U=i.unmount;function Z(e,n){i.__h&&i.__h(N,e,R||n),R=0;var t=N.__H||(N.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function $(e){return R=1,function(e,n,t){var r=Z(H++,2);return r.t=e,r.__c||(r.__=[Q(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=N),r.__}(Q,e)}function G(){var e;for(q.sort((function(e,n){return e.__v.__b-n.__v.__b}));e=q.pop();)if(e.__P)try{e.__H.__h.forEach(Y),e.__H.__h.forEach(J),e.__H.__h=[]}catch(n){e.__H.__h=[],i.__e(n,e.__v)}}i.__b=function(e){N=null,B&&B(e)},i.__r=function(e){W&&W(e),H=0;var n=(N=e.__c).__H;n&&(n.__h.forEach(Y),n.__h.forEach(J),n.__h=[])},i.diffed=function(e){z&&z(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==q.push(n)&&I===i.requestAnimationFrame||((I=i.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),X&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);X&&(n=requestAnimationFrame(t))})(G)),N=null},i.__c=function(e,n){n.some((function(e){try{e.__h.forEach(Y),e.__h=e.__h.filter((function(e){return!e.__||J(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],i.__e(t,e.__v)}})),V&&V(e,n)},i.unmount=function(e){U&&U(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{Y(e)}catch(e){n=e}})),n&&i.__e(n,t.__v))};var X="function"==typeof requestAnimationFrame;function Y(e){var n=N,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),N=n}function J(e){var n=N;e.__c=e.__(),N=n}function Q(e,n){return"function"==typeof n?n(e):n}function K(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var n={}.toString;if(n){var t=n.call(e);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}var ee,ne=[],te=[],re=0;function oe(){if(!re&&ee){var e=ee;ee=null,e.resolve()}}function ie(){re+=1}function ae(){re-=1,oe()}var ce=function(){function e(e){var n=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var t,r,o=!1,i=!1,a=!1;ie();try{e((function(e){a?n.resolve(e):(o=!0,t=e)}),(function(e){a?n.reject(e):(i=!0,r=e)}))}catch(e){return ae(),void this.reject(e)}ae(),a=!0,o?this.resolve(t):i&&this.reject(r)}}var n=e.prototype;return n.resolve=function(e){if(this.resolved||this.rejected)return this;if(K(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},n.reject=function(e){var n=this;if(this.resolved||this.rejected)return this;if(K(e))throw new Error("Can not reject promise with another promise");if(!e){var t=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout((function(){n.errorHandled||function(e,n){if(-1===ne.indexOf(e)){ne.push(e),setTimeout((function(){throw e}),1);for(var t=0;t<te.length;t++)te[t](e,n)}}(e,n)}),1),this.dispatch(),this},n.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},n.dispatch=function(){var n=this.resolved,t=this.rejected,r=this.handlers;if(!this.dispatching&&(n||t)){this.dispatching=!0,ie();for(var o=function(e,n){return e.then((function(e){n.resolve(e)}),(function(e){n.reject(e)}))},i=0;i<r.length;i++){var a=r[i],c=a.onSuccess,u=a.onError,s=a.promise,l=void 0;if(n)try{l=c?c(this.value):this.value}catch(e){s.reject(e);continue}else if(t){if(!u){s.reject(this.error);continue}try{l=u(this.error)}catch(e){s.reject(e);continue}}if(l instanceof e&&(l.resolved||l.rejected)){var f=l;f.resolved?s.resolve(f.value):s.reject(f.error),f.errorHandled=!0}else K(l)?l instanceof e&&(l.resolved||l.rejected)?l.resolved?s.resolve(l.value):s.reject(l.error):o(l,s):s.resolve(l)}r.length=0,this.dispatching=!1,ae()}},n.then=function(n,t){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var r=new e;return this.handlers.push({promise:r,onSuccess:n,onError:t}),this.errorHandled=!0,this.dispatch(),r},n.catch=function(e){return this.then(void 0,e)},n.finally=function(n){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return e.try(n).then((function(){return t}))}),(function(t){return e.try(n).then((function(){throw t}))}))},n.timeout=function(e,n){var t=this;if(this.resolved||this.rejected)return this;var r=setTimeout((function(){t.resolved||t.rejected||t.reject(n||new Error("Promise timed out after "+e+"ms"))}),e);return this.then((function(e){return clearTimeout(r),e}))},n.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},n.lazy=function(){return this.errorHandled=!0,this},e.resolve=function(n){return n instanceof e?n:K(n)?new e((function(e,t){return n.then(e,t)})):(new e).resolve(n)},e.reject=function(n){return(new e).reject(n)},e.asyncReject=function(n){return(new e).asyncReject(n)},e.all=function(n){var t=new e,r=n.length,o=[].slice();if(!r)return t.resolve(o),t;for(var i=function(e,n,i){return n.then((function(n){o[e]=n,0==(r-=1)&&t.resolve(o)}),(function(e){i.reject(e)}))},a=0;a<n.length;a++){var c=n[a];if(c instanceof e){if(c.resolved){o[a]=c.value,r-=1;continue}}else if(!K(c)){o[a]=c,r-=1;continue}i(a,e.resolve(c),t)}return 0===r&&t.resolve(o),t},e.hash=function(n){var t={},r=[],o=function(e){if(n.hasOwnProperty(e)){var o=n[e];K(o)?r.push(o.then((function(n){t[e]=n}))):t[e]=o}};for(var i in n)o(i);return e.all(r).then((function(){return t}))},e.map=function(n,t){return e.all(n.map(t))},e.onPossiblyUnhandledException=function(e){return function(e){return te.push(e),{cancel:function(){te.splice(te.indexOf(e),1)}}}(e)},e.try=function(n,t,r){if(n&&"function"!=typeof n&&!n.call)throw new Error("Promise.try expected a function");var o;ie();try{o=n.apply(t,r||[])}catch(n){return ae(),e.reject(n)}return ae(),e.resolve(o)},e.delay=function(n){return new e((function(e){setTimeout(e,n)}))},e.isPromise=function(n){return!!(n&&n instanceof e)||K(n)},e.flush=function(){return n=ee=ee||new e,oe(),n;var n},e}();function ue(){return window.navigator.mockUserAgent||window.navigator.userAgent}function se(e,n){return(se=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function le(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,se(e,n)}var fe="Call was rejected by callee.\r\n";function de(e){return void 0===e&&(e=window),e.location.protocol}function pe(e){if(void 0===e&&(e=window),e.mockDomain){var n=e.mockDomain.split("//")[0];if(n)return n}return de(e)}function he(e){return void 0===e&&(e=window),"about:"===pe(e)}function ye(e){try{return!0}catch(e){}return!1}function ve(e){void 0===e&&(e=window);var n=e.location;if(!n)throw new Error("Can not read window location");var t=de(e);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var r=function(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}(e);return r&&ye()?ve(r):"about://"}var o=n.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function me(e){void 0===e&&(e=window);var n=ve(e);return n&&e.mockDomain&&0===e.mockDomain.indexOf("mock:")?e.mockDomain:n}function _e(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var n=Object.getOwnPropertyDescriptor(e,"location");if(n&&!1===n.enumerable)return!1}catch(e){}try{if(he(e)&&ye())return!0}catch(e){}try{if(function(e){return void 0===e&&(e=window),"mock:"===pe(e)}(e)&&ye())return!0}catch(e){}try{if(ve(e)===ve(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(he(e)&&ye())return!0;if(me(window)===me(e))return!0}catch(e){}return!1}function we(e){if(!_e(e))throw new Error("Expected window to be same domain");return e}var ge=[],be=[];function xe(e,n){void 0===n&&(n=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==fe}if(n&&_e(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var t=function(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}(ge,e);if(-1!==t){var r=be[t];if(r&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var n=e.ownerDocument;if(n&&n.documentElement&&!n.documentElement.contains(e)){for(var t=e;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!n.documentElement.contains(t.host))return!0}return!1}(r))return!0}return!1}function Fe(e){try{if(e===window)return!0}catch(e){if(e&&e.message===fe)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===fe)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===fe)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===fe)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===fe)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===fe)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}try{if("postMessage"in e&&"self"in e&&"location"in e)return!0}catch(e){}return!1}function Ce(e,n){for(var t=0;t<e.length;t++)try{if(e[t]===n)return t}catch(e){}return-1}var Ee,ke=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,n={};return Object.freeze(n),e.set(n,"__testvalue__"),"__testvalue__"===e.get(n)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var n=e.prototype;return n._cleanupClosedWindows=function(){for(var e=this.weakmap,n=this.keys,t=0;t<n.length;t++){var r=n[t];if(Fe(r)&&xe(r)){if(e)try{e.delete(r)}catch(e){}n.splice(t,1),this.values.splice(t,1),t-=1}}},n.isSafeToReadWrite=function(e){return!Fe(e)},n.set=function(e,n){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(e,n)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=this.name,o=e[r];return void(o&&o[0]===e?o[1]=n:Object.defineProperty(e,r,{value:[e,n],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,c=Ce(i,e);-1===c?(i.push(e),a.push(n)):a[c]=n},n.get=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return n.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return t&&t[0]===e?t[1]:void 0}catch(e){}this._cleanupClosedWindows();var r=Ce(this.keys,e);if(-1!==r)return this.values[r]},n.delete=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{n.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];t&&t[0]===e&&(t[0]=t[1]=void 0)}catch(e){}this._cleanupClosedWindows();var r=this.keys,o=Ce(r,e);-1!==o&&(r.splice(o,1),this.values.splice(o,1))},n.has=function(e){if(!e)throw new Error("WeakMap expected key");var n=this.weakmap;if(n)try{if(n.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var t=e[this.name];return!(!t||t[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==Ce(this.keys,e)},n.getOrSet=function(e,n){if(this.has(e))return this.get(e);var t=n();return this.set(e,t),t},e}();function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Me(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Se(e,n,t){return(Se=Me()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return t&&se(o,t.prototype),o}).apply(null,arguments)}function je(e){var n="function"==typeof Map?new Map:void 0;return(je=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return Se(e,arguments,Te(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),se(t,e)})(e)}function De(e){return e.name||e.__name__||e.displayName||"anonymous"}function Le(e,n){try{delete e.name,e.name=n}catch(e){}return e.__name__=e.displayName=n,e}function Oe(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,n){return String.fromCharCode(parseInt(n,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(e,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function Ae(){var e="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return e.charAt(Math.floor(Math.random()*e.length))}))+"_"+Oe((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function Pe(e){try{return JSON.stringify([].slice.call(e),(function(e,n){return"function"==typeof n?"memoize["+function(e){if(Ee=Ee||new ke,null==e||"object"!=typeof e&&"function"!=typeof e)throw new Error("Invalid object");var n=Ee.get(e);return n||(n=typeof e+":"+Ae(),Ee.set(e,n)),n}(n)+"]":n}))}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}function He(){return{}}var Ne=0,Ie=0;function Re(e,n){void 0===n&&(n={});var t,r,o=n.thisNamespace,i=void 0!==o&&o,a=n.time,c=Ne;Ne+=1;var u=function(){for(var n=arguments.length,o=new Array(n),u=0;u<n;u++)o[u]=arguments[u];var s;c<Ie&&(t=null,r=null,c=Ne,Ne+=1),s=i?(r=r||new ke).getOrSet(this,He):t=t||{};var l=Pe(o),f=s[l];if(f&&a&&Date.now()-f.time<a&&(delete s[l],f=null),f)return f.value;var d=Date.now(),p=e.apply(this,arguments);return s[l]={time:d,value:p},p};return u.reset=function(){t=null,r=null},Le(u,(n.name||De(e))+"::memoized")}function qe(e,n,t){void 0===t&&(t=[]);var r=e.__inline_memoize_cache__=e.__inline_memoize_cache__||{},o=Pe(t);return r.hasOwnProperty(o)?r[o]:r[o]=n.apply(void 0,t)}function Be(){}function We(e,n){if(void 0===n&&(n=1),n>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var t=e&&e.stack,r=e&&e.message;if(t&&r)return-1!==t.indexOf(r)?t:r+"\n"+t;if(t)return t;if(r)return r}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+We(e,n+1)}}function ze(e){return"data:image/svg+xml;base64,"+Oe(e)}function Ve(e,n){void 0===n&&(n=Boolean);var t={};for(var r in e)e.hasOwnProperty(r)&&n(e[r],r)&&(t[r]=e[r]);return t}function Ue(e){return[].slice.call(e)}Re.clear=function(){Ie=Ne},Re((function(e){if(Object.values)return Object.values(e);var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push(e[t]);return n}));var Ze=function(e){function n(n){var t;return(t=e.call(this,n)||this).name=t.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t),t.constructor):t.stack=new Error(n).stack,t}return le(n,e),n}(je(Error));function $e(){return Boolean(document.body)&&"complete"===document.readyState}function Ge(){return Boolean(document.body)&&"interactive"===document.readyState}var Xe=Re((function(){return new ce((function(e){if($e()||Ge())return e();var n=setInterval((function(){if($e()||Ge())return clearInterval(n),e()}),10)}))}));function Ye(){return qe(Ye,(function(){var e=window.performance;if(e&&e.now&&e.timing&&e.timing.connectEnd&&e.timing.navigationStart&&Math.abs(e.now()-Date.now())>1e3&&e.now()-(e.timing.connectEnd-e.timing.navigationStart)>0)return e}))}function Je(){return"undefined"!=typeof window&&void 0!==window.location}var Qe=function(e){function n(){return e.apply(this,arguments)||this}return le(n,e),n}(Ze),Ke="undefined"!=typeof document?document.currentScript:null,en=Re((function(){if(Ke)return Ke;if(Ke=function(){try{var e=function(){try{throw new Error("_")}catch(e){return e.stack||""}}(),n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e),t=n&&n[1];if(!t)return;for(var r=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();r<o.length;r++){var i=o[r];if(i.src&&i.src===t)return i}}catch(e){}}())return Ke;throw new Error("Can not determine current script")})),nn=Ae();Re((function(){var e;try{e=en()}catch(e){return nn}var n=e.getAttribute("data-uid");if(n&&"string"==typeof n)return n;if((n=e.getAttribute("data-uid-auto"))&&"string"==typeof n)return n;if(e.src){var t=function(e){for(var n="",t=0;t<e.length;t++){var r=e[t].charCodeAt(0)*t;e[t+1]&&(r+=e[t+1].charCodeAt(0)*(t-1)),n+=String.fromCharCode(97+Math.abs(r)%26)}return n}(JSON.stringify({src:e.src,dataset:e.dataset}));n="uid_"+t.slice(t.length-30)}else n=Ae();return e.setAttribute("data-uid-auto",n),n}));var tn=[];function rn(e){var n=e.url,t=e.method,r=void 0===t?"get":t,o=e.headers,i=void 0===o?{}:o,a=e.json,c=e.data,u=e.body,s=e.win,l=void 0===s?window:s,f=e.timeout,d=void 0===f?0:f;return new ce((function(e,t){if(a&&c||a&&u||c&&a)throw new Error("Only options.json or options.data or options.body should be passed");for(var o={},s=0,f=Object.keys(i);s<f.length;s++){var p=f[s];o[p.toLowerCase()]=i[p]}a?o["content-type"]=o["content-type"]||"application/json":(c||u)&&(o["content-type"]=o["content-type"]||"application/x-www-form-urlencoded; charset=utf-8"),o.accept=o.accept||"application/json";for(var h=0;h<tn.length;h++)for(var y=(0,tn[h])(),v=0,m=Object.keys(y);v<m.length;v++){var _=m[v];o[_.toLowerCase()]=y[_]}var w=new l.XMLHttpRequest;for(var g in w.addEventListener("load",(function(){var o=function(e){void 0===e&&(e="");for(var n={},t=0,r=e.trim().split("\n");t<r.length;t++){var o=r[t].split(":"),i=o[0],a=o.slice(1);n[i.toLowerCase()]=a.join(":").trim()}return n}(this.getAllResponseHeaders());if(!this.status)return t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: no response status code."));var i=o["content-type"],a=i&&(0===i.indexOf("application/json")||0===i.indexOf("text/json")),c=this.responseText;try{c=JSON.parse(c)}catch(e){if(a)return t(new Error("Invalid json: "+this.responseText+"."))}return e({status:this.status,headers:o,body:c})}),!1),w.addEventListener("error",(function(e){t(new Error("Request to "+r.toLowerCase()+" "+n+" failed: "+e.toString()+"."))}),!1),w.open(r,n,!0),o)o.hasOwnProperty(g)&&w.setRequestHeader(g,o[g]);a?u=JSON.stringify(a):c&&(u=Object.keys(c).map((function(e){return encodeURIComponent(e)+"="+(c?encodeURIComponent(c[e]):"")})).join("&")),w.timeout=d,w.ontimeout=function(){t(new Error("Request to "+r.toLowerCase()+" "+n+" has timed out"))},w.send(u)}))}var on,an,cn=["warn","error"],un=["error","warn","info","debug"],sn=function(e){var n=e.win,t=void 0===n?window:n,r=e.url,o=e.data,i=e.useBlob,a=void 0===i||i;try{var c=JSON.stringify(o);if(!t.navigator.sendBeacon)throw new Error("No sendBeacon available");if(a){var u=new Blob([c],{type:"application/json"});return t.navigator.sendBeacon(r,u)}return t.navigator.sendBeacon(r,c)}catch(e){return!1}},ln=function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};function fn(e){void 0===e&&(e=window);var n=_e(e)?we(e):window;return function(e){var t=e.url,r=e.method,o=e.headers,i=e.json,a=e.enableSendBeacon,c=void 0!==a&&a;return ce.try((function(){var e=!1;return function(e){var n=e.headers,t=e.enableSendBeacon,r=n&&Object.keys(n).length;return!!(window&&window.navigator.sendBeacon&&!r&&t&&window.Blob)}({headers:o,enableSendBeacon:c})&&(e=function(e){return"https://api2.amplitude.com/2/httpapi"===e}(t)?sn({win:n,url:t,data:i,useBlob:!1}):sn({win:n,url:t,data:i,useBlob:!0})),e||rn({win:n,url:t,method:r,headers:o,json:i})})).then(Be)}}(on={}).paypal="paypal",on.paylater="paypal",on.credit="paypal";var dn=((an={}).test="a23fb4dfae56daf7c3212303b53a8527",an.local="a23fb4dfae56daf7c3212303b53a8527",an.stage="a23fb4dfae56daf7c3212303b53a8527",an.sandbox="a23fb4dfae56daf7c3212303b53a8527",an.production="ce423f79daba95faeb0694186170605c",an);function pn(){return qe(pn,(function(){return function(e){var n=e.url,t=e.prefix,o=e.logLevel,i=void 0===o?"warn":o,a=e.transport,c=void 0===a?fn():a,u=e.amplitudeApiKey,s=e.flushInterval,l=void 0===s?6e4:s,f=e.enableSendBeacon,d=void 0!==f&&f,p=[],h=[],y=[],v=[],m=[],_=[];function w(e,n,t){if(Je()&&window.console&&window.console.log&&!(un.indexOf(e)>un.indexOf(i))){var r=[n];r.push(t),(t.error||t.warning)&&r.push("\n\n",t.error||t.warning);try{window.console[e]&&window.console[e].apply?window.console[e].apply(window.console,r):window.console.log&&window.console.log.apply&&window.console.log.apply(window.console,r)}catch(e){}}}function g(){return ce.try((function(){if(Je()&&"file:"!==window.location.protocol&&(p.length||h.length)){for(var e={},t=0;t<v.length;t++)ln(e,(0,v[t])(e));for(var o,i={},a=0;a<_.length;a++)ln(i,(0,_[a])(i));return n&&(o=c({method:"POST",url:n,headers:i,json:{events:p,meta:e,tracking:h},enableSendBeacon:d}).catch(Be)),u&&c({method:"POST",url:"https://api2.amplitude.com/2/httpapi",headers:{},json:{api_key:u,events:h.map((function(e){return r({event_type:e.transition_name||"event",event_properties:e},e)}))},enableSendBeacon:d}).catch(Be),p=[],h=[],ce.resolve(o).then(Be)}}))}var b,x,F,C,E=(void 0===x&&(x=50),Le((function(){C&&clearTimeout(C);var e=F=F||new ce;return C=setTimeout((function(){F=null,C=null,ce.try(b).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}))}),x),e}),De(b=g)+"::promiseDebounced"));function k(e,n,o){if(void 0===o&&(o={}),!Je())return M;t&&(n=t+"_"+n);for(var i=r({},Ve(o),{timestamp:Date.now().toString()}),a=0;a<y.length;a++)ln(i,(0,y[a])(i));return function(e,n,t){p.push({level:e,event:n,payload:t}),-1!==cn.indexOf(e)&&E()}(e,n,i),w(e,n,i),M}function T(e,n){return e.push(n),M}Je()&&function(e,n){!function t(){setTimeout((function(){e(),t()}),n)}()}(E,l),"object"==typeof window&&(window.addEventListener("beforeunload",(function(){g()})),window.addEventListener("unload",(function(){g()})),window.addEventListener("pagehide",(function(){g()})));var M={debug:function(e,n){return k("debug",e,n)},info:function(e,n){return k("info",e,n)},warn:function(e,n){return k("warn",e,n)},error:function(e,n){return k("error",e,n)},track:function(e){if(void 0===e&&(e={}),!Je())return M;for(var n=Ve(e),t=0;t<m.length;t++)ln(n,(0,m[t])(n));return w("debug","track",n),h.push(n),M},flush:E,immediateFlush:g,addPayloadBuilder:function(e){return T(y,e)},addMetaBuilder:function(e){return T(v,e)},addTrackingBuilder:function(e){return T(m,e)},addHeaderBuilder:function(e){return T(_,e)},setTransport:function(e){return c=e,M},configure:function(e){return e.url&&(n=e.url),e.prefix&&(t=e.prefix),e.logLevel&&(i=e.logLevel),e.transport&&(c=e.transport),e.amplitudeApiKey&&(u=e.amplitudeApiKey),e.flushInterval&&(l=e.flushInterval),e.enableSendBeacon&&(d=e.enableSendBeacon),M}};return M}({url:"/xoplatform/logger/api/logger",enableSendBeacon:!0})}))}function hn(){var e=document.body;if(!e)throw new Error("Document body not found");return e}function yn(e){return new ce((function(n,t){var r=document.body||document.head;if(!r)return t(new Error("Can not find container for script: "+e));var o=document.createElement("script");o.setAttribute("src",e),o.addEventListener("load",(function(){return n(o)})),o.addEventListener("error",(function(e){return t(e)})),r.appendChild(o)}))}function vn(e,n){for(var t=[],r=0;r<e.length;r++){var o=e[r].render(n);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}var mn=function(){function e(e,n,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=e,this.props=n||{},this.children=t;var r=this.props.onRender;"function"==typeof r&&(this.onRender=r,delete n.onRender)}var n=e.prototype;return n.render=function(e){var n=e(this);return this.onRender&&this.onRender(n),n},n.renderChildren=function(e){return vn(this.children,e)},e}(),_n=function(){function e(e){this.type="fragment",this.children=void 0,this.children=e}return e.prototype.render=function(e){return vn(this.children,e)},e}(),wn=function(){function e(e){this.type="text",this.text=void 0,this.text=e}return e.prototype.render=function(e){return e(this)},e}(),gn=function(){function e(e,n,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=e,this.props=n||{},this.children=t,this.props.children=t}var n=e.prototype;return n.renderComponent=function(e){var n=function(e){var n=bn(Array.isArray(e)?e:[e]);return 1===n.length?n[0]:n.length>1?new _n(n):void 0}(this.component(this.props,this.children));if(n)return n.render(e)},n.render=function(e){return e(this)},n.renderChildren=function(e){return vn(this.children,e)},e}();function bn(e){for(var n=[],t=0;t<e.length;t++){var r=e[t];if(r)if("string"==typeof r||"number"==typeof r)n.push(new wn(r.toString()));else{if("boolean"==typeof r)continue;if(Array.isArray(r))for(var o=0,i=bn(r);o<i.length;o++)n.push(i[o]);else{if(!r||"element"!==r.type&&"text"!==r.type&&"component"!==r.type)throw new TypeError("Unrecognized node type: "+typeof r);n.push(r)}}}return n}var xn,Fn,Cn,En=function(e,n){for(var t=arguments.length,r=new Array(t>2?t-2:0),o=2;o<t;o++)r[o-2]=arguments[o];if(r=bn(r),"string"==typeof e)return new mn(e,n,r);if("function"==typeof e)return new gn(e,n,r);throw new TypeError("Expected jsx element to be a string or a function")},kn=((xn={}).svg="http://www.w3.org/2000/svg",xn),Tn=((Fn={})["xlink:href"]="http://www.w3.org/1999/xlink",Fn);function Mn(e,n){return e.createTextNode(n.text)}function Sn(e,n){for(var t=n.props,r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)e.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var c=Tn[i];c?e.setAttributeNS(c,i,a.toString()):e.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&e.setAttribute(i,"")}"iframe"!==e.tagName.toLowerCase()||t.id||e.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var jn=((Cn={}).iframe=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");e.addEventListener("load",(function(){var n=e.contentWindow;if(!n)throw new Error("Expected frame to have contentWindow");for(var r=n.document,o=r.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(Ln({doc:r}));i.children.length;)o.appendChild(i.children[0])}))},Cn.script=function(e,n){var t=n.children[0];if(1!==n.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");e.text=t.text},Cn.default=function(e,n,t){for(var r=0,o=n.renderChildren(t);r<o.length;r++)e.appendChild(o[r])},Cn);function Dn(e,n,t,r){if(n.props.hasOwnProperty("innerHTML")){if(n.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=n.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===n.name?e.text=o:(e.innerHTML=o,function(e,n){void 0===n&&(n=window.document);for(var t=0,r=e.querySelectorAll("script");t<r.length;t++){var o=r[t],i=o.parentNode;if(i){var a=n.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(e,t))}else(jn[n.name]||jn.default)(e,n,r)}function Ln(e){void 0===e&&(e={});var n=e.doc,t=void 0===n?document:n;return function e(n){if("component"===n.type)return n.renderComponent(e);if("text"===n.type)return Mn(t,n);if("element"===n.type){var r=kn[n.name.toLowerCase()];if(r)return function e(n,r){if("component"===n.type)return n.renderComponent((function(n){return e(n,r)}));if("text"===n.type)return Mn(t,n);if("element"===n.type){var o=function(e,n,t){return e.createElementNS(t,n.name)}(t,n,r);return Sn(o,n),Dn(o,n,t,(function(n){return e(n,r)})),o}throw new TypeError("Unhandleable node")}(n,r);var o=function(e,n){return n.props.el?n.props.el:e.createElement(n.name)}(t,n);return Sn(o,n),Dn(o,n,t,e),o}throw new TypeError("Unhandleable node")}}function On(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}var An,Pn={br:!0};function Hn(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&#x2F;")}function Nn(e){return En("div",{class:"preloader spinner"},En("style",{nonce:e.nonce,innerHTML:"\n\n    body {\n        width: 100%;\n        height: 100%;\n        overflow: hidden;\n        position: fixed;\n        top: 0;\n        left: 0;\n        margin: 0;\n    }\n\n    .spinner {\n        height: 100%;\n        width: 100%;\n        position: absolute;\n        z-index: 10\n    }\n\n    .spinner .spinWrap {\n        width: 200px;\n        height: 100px;\n        position: absolute;\n        top: 50%;\n        left: 50%;\n        margin-left: -100px;\n        margin-top: -50px\n    }\n\n    .spinner .loader,\n    .spinner .spinnerImage {\n        height: 100px;\n        width: 100px;\n        position: absolute;\n        top: 0;\n        left: 50%;\n        opacity: 1;\n        filter: alpha(opacity=100)\n    }\n\n    .spinner .spinnerImage {\n        margin: 28px 0 0 -25px;\n        background: url(https://www.paypalobjects.com/images/checkout/hermes/icon_ot_spin_lock_skinny.png) no-repeat\n    }\n\n    .spinner .loader {\n        margin: 0 0 0 -55px;\n        background-color: transparent;\n        animation: rotation .7s infinite linear;\n        border-left: 5px solid #cbcbca;\n        border-right: 5px solid #cbcbca;\n        border-bottom: 5px solid #cbcbca;\n        border-top: 5px solid #2380be;\n        border-radius: 100%\n    }\n\n    @keyframes rotation {\n        from {\n            transform: rotate(0deg)\n        }\n        to {\n            transform: rotate(359deg)\n        }\n    }\n"}),En("div",{class:"spinWrap"},En("p",{class:"spinnerImage"}),En("p",{class:"loader"})))}function In(e,n){var t=e.nonce;return En("html",null,En("head",null,En("title",null,"PayPal"),En("meta",{name:"viewport",content:"width=device-width, initial-scale=1"})),En("body",null,En(Nn,{nonce:t}),n))}function Rn(e){var n=e.name,t=e.variables,o=e.headers,i=e.returnErrorObject,a=void 0!==i&&i;return rn({url:"/graphql?"+n,method:"POST",json:{query:e.query,variables:void 0===t?{}:t},headers:r({"x-app-name":"smart-payment-buttons"},void 0===o?{}:o)}).then((function(e){var t=e.status,r=e.body,o=r.errors||[];if(o.length){var i=o[0].message||JSON.stringify(o[0]);if(pn().warn("graphql_"+n+"_error",{err:i}),a)throw o[0];throw new Error(i)}if(200!==t)throw pn().warn("graphql_"+n+"_status_"+t+"_error"),new Error("/graphql returned status "+t+"\n\n"+JSON.stringify(r));return r.data}))}Re((function(e){var n;return Rn({name:"GetCheckoutDetails",query:"\n            query GetCheckoutDetails($orderID: String!) {\n                checkoutSession(token: $orderID) {\n                    cart {\n                        billingType\n                        intent\n                        paymentId\n                        billingToken\n                        amounts {\n                            total {\n                                currencyValue\n                                currencyCode\n                                currencyFormatSymbolISOCurrency\n                            }\n                        }\n                        supplementary {\n                            initiationIntent\n                        }\n                        category\n                    }\n                    flags {\n                        isChangeShippingAddressAllowed\n                    }\n                    payees {\n                        merchantId\n                        email {\n                            stringValue\n                        }\n                    }\n                }\n            }\n        ",variables:{orderID:e},headers:(n={},n["paypal-client-context"]=e,n)})})),Re((function(e){return ce.try((function(){if(!window.firebase||!window.firebase.auth||!window.firebase.database)return yn("https://www.paypalobjects.com/checkout/js/lib/firebase-app.js").then((function(){return ce.all([yn("https://www.paypalobjects.com/checkout/js/lib/firebase-auth.js"),yn("https://www.paypalobjects.com/checkout/js/lib/firebase-database.js")])}))})).then((function(){var n=window.firebase;if(!n)throw new Error("Firebase failed to load");return n.initializeApp(e),n}))}));var qn=((An={}).local="https://www.stage2d0107.stage.paypal.com/FDRegression/fb.js",An.stage="https://www.stage2d0107.stage.paypal.com/FDRegression/fb.js",An.sandbox="https://c.paypal.com/da/r/fb.js",An.production="https://c.paypal.com/da/r/fb.js",An.test="https://c.paypal.com/da/r/fb.js",An);Re((function(e){var n=e.env,t=e.clientMetadataID,r=e.cspNonce,o=e.timeout,i=void 0===o?1e3:o;return new ce((function(e){var o={f:t,s:"SMART_PAYMENT_BUTTONS",cb1:"fnCallback"};"sandbox"===n&&(o.sandbox=!0);var a=document.createElement("script");a.setAttribute("nonce",r||""),a.setAttribute("type","application/json"),a.setAttribute("id","fconfig"),a.setAttribute("fncls","fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99"),a.textContent=JSON.stringify(o);var c=document.createElement("script");c.setAttribute("nonce",r||""),c.setAttribute("src",qn[n]),c.addEventListener("error",(function(){return e()})),window.fnCallback=e,setTimeout(e,i);var u=hn();u.appendChild(a),u.appendChild(c)}))})),Re((function(e){var n,t=e.amount,r=e.vetted,o=e.allowBillingPayments;return Rn({name:"GetSmartWallet",query:"\n            query GetSmartWallet(\n                $clientID: String!\n                $merchantID: [String!]\n                $currency: String\n                $amount: String\n                $userIDToken: String\n                $vetted: Boolean\n                $paymentMethodToken: String\n                $branded: Boolean,\n                $allowBillingPayments: Boolean\n            ) {\n                smartWallet(\n                    clientId: $clientID\n                    merchantId: $merchantID\n                    currency: $currency\n                    amount: $amount\n                    userIdToken: $userIDToken\n                    vetted: $vetted\n                    paymentMethodNonce: $paymentMethodToken\n                    branded: $branded,\n                    allowBillingPayments: $allowBillingPayments\n                ) {\n                    paypal {\n                        instruments {\n                            type\n                            label\n                            logoUrl\n                            instrumentID\n                            tokenID\n                            vendor\n                            oneClick\n                            accessToken\n                        }\n                    }\n                    credit {\n                        instruments {\n                            type\n                            label\n                            logoUrl\n                            instrumentID\n                            tokenID\n                            vendor\n                            oneClick\n                            accessToken\n                        }\n                    }\n                    card {\n                        instruments {\n                            type\n                            label\n                            logoUrl\n                            instrumentID\n                            tokenID\n                            vendor\n                            oneClick\n                        }\n                    }\n                }\n            }\n        ",variables:{clientID:e.clientID,merchantID:e.merchantID,currency:e.currency,amount:void 0===t?"0.00":t,userIDToken:e.userIDToken,vetted:void 0===r||r,paymentMethodToken:e.paymentMethodToken,branded:e.branded,allowBillingPayments:void 0===o||o},headers:(n={},n["paypal-client-metadata-id"]=e.clientMetadataID,n)}).then((function(e){return e.smartWallet}))}));var Bn,Wn,zn,Vn,Un,Zn,$n,Gn,Xn,Yn,Jn,Qn,Kn,et,nt=t(0),tt=["svg"],rt=["render","name","logoColor"];function ot(e){var n=e.svg,t=On(e,tt);if(!n)throw new TypeError("Expected svg prop");if("string"!=typeof(n=n.render((function e(n){if("component"===n.type)return[].concat(n.renderComponent(e)).join("");if("element"===n.type){var t=(o=n.props,(i=Object.keys(o).filter((function(e){var n=o[e];return"innerHTML"!==e&&("string"==typeof n||"number"==typeof n||!0===n)}))).length?" "+i.map((function(e){var n=o[e];if(!0===n)return""+Hn(e);if("string"!=typeof n&&"number"!=typeof n)throw new TypeError("Unexpected prop type: "+typeof n);return""===n?Hn(e):Hn(e)+'="'+Hn(n.toString())+'"'})).join(" "):"");if(Pn[n.name])return"<"+n.name+t+" />";var r="string"==typeof n.props.innerHTML?n.props.innerHTML:n.renderChildren(e).join("");return"<"+n.name+t+">"+r+"</"+n.name+">"}var o,i;if("text"===n.type)return Hn(n.text);throw new TypeError("Unhandleable node: "+n.type)}))))throw new TypeError("Expected svg prop to be a string or jsx node");var o=r({src:ze(n)},t);return En("img",o)}function it(e){var n=e.render,t=e.name,o=e.logoColor,i=On(e,rt);return En(ot,r({},i,{svg:n(),alt:"",class:"paypal-logo paypal-logo-"+t+" "+(o?"paypal-logo-color-"+o:"")}))}(Bn={}).default={primary:"#ffffff",secondary:"#ffffff"},Bn.white={primary:"#ffffff",secondary:"#ffffff"},Bn.black={primary:"#000000",secondary:"#000000"},(Wn={}).default={primary:"#005498",secondary:"#FFD800"},Wn.white={primary:"#ffffff",secondary:"#ffffff"},Wn.black={primary:"#005498",secondary:"#FFD800"},(zn={}).default={primary:"#333030"},zn.white={primary:"#ffffff"},zn.black={primary:"#333030"},(Vn={}).default={primary:"#333030"},Vn.white={primary:"#ffffff"},Vn.black={primary:"#333030"},(Un={}).default={primary:"#003087"},Un.blue={primary:"#003087"},Un.white={primary:"#ffffff"},Un.black={primary:"#333030"},(Zn={}).default={primary:"#c8036f",secondary:"#71706f"},Zn.white={primary:"#ffffff",secondary:"#ffffff"},Zn.black={primary:"#71706F",secondary:"#C8036F"},($n={}).default={primary:"#ED1C24",secondary:"#ffffff",tertiary:"#003a7d",quaternary:"#FFFFFF"},$n.white={primary:"#FFFFFF",secondary:"#000000",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},$n.black={primary:"#ED1C24",secondary:"#FFFFFF",tertiary:"#003a7d",quaternary:"#FFFFFF"},(Gn={}).default={primary:"#000000",secondary:"#cd0067",tertiary:"#ffffff"},Gn.white={primary:"#ffffff",secondary:"#ffffff",tertiary:"#ffffff"},Gn.black={primary:"#000000",secondary:"#FFFFFF",tertiary:"#CD0067"},(Xn={}).default={primary:"#00C0EE",secondary:"#1a4b67"},Xn.white={primary:"#ffffff",secondary:"#ffffff"},Xn.black={primary:"#1A4B67",secondary:"#00C0EE"},(Yn={}).default={primary:"#d03238",secondary:"#b3b1b1"},Yn.white={primary:"#ffffff",secondary:"#ffffff"},Yn.black={primary:"#d03238",secondary:"#b3b1b1"},(Jn={}).default={primary:"#003087",secondary:"#009cde"},Jn.blue={primary:"#003087",secondary:"#009cde"},Jn.white={primary:"#ffffff",secondary:"#ffffff"},Jn.black={primary:"#333030",secondary:"#636363"},Jn.monochrome={primary:"#000000",secondary:"#000000"},(Qn={}).default={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},Qn.blue={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},Qn.white={primary:"#ffffff",primaryOpacity:"0.7",secondary:"#ffffff",secondaryOpacity:"0.7",tertiary:"#ffffff"},Qn.black={primary:"#808080",secondary:"#000000",tertiary:"#1a1a1a"},(Kn={}).default={main:"#005DA0",card:"#AEB1BC"},Kn.white={main:"#FFFFFF",card:"#FFFFFF"},Kn.black={main:"#333030",card:"#333030"},(et={}).default={primary:"#FFFFFF",secondary:"#EB6F93"},et.white={primary:"#FFFFFF",secondary:"#2C2E2F"},et.black={primary:"#FFFFFF",secondary:"#EB6F93"};var at,ct,ut,st,lt,ft,dt,pt,ht,yt,vt,mt,_t=["logoColor"],wt=((at={}).default={primary:"#3D93CE"},at.blue={primary:"#3D93CE"},at.white={primary:"#ffffff"},at.black={primary:"#333030"},at);function gt(e){var n=e.resetFunc;return y("div",{id:"error-view"},y("div",{className:"error-message"},e.message||"An issue has occurred"),y("button",{className:"reset-button",type:"button",onClick:n},"Try scanning again"))}function bt(e){return y("img",{id:"qr-code",src:"data:image/svg+xml;base64,"+btoa(e.svgString),alt:"QR Code"})}function xt(){return(e={logoColor:"default"},n=e.logoColor,t=void 0===n?"default":n,o=On(e,_t),i=function(e,n,t){var r;if(t&&(r=n[t]),r||(r=n.default),!r)throw new Error("No "+(t||"default")+" logo available for sofort");return r}(0,wt,t).primary,En(it,r({},o,{name:"venmo",logoColor:t,render:function(){return En("svg",{width:"101",height:"32",viewBox:"0 0 101 32",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin meet"},En("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},En("g",{id:"Blue",fill:i},En("g",{id:"Logo",transform:"translate(0.000000, 6.000000)"},En("path",{d:"M16.6660484,0.18 C17.3466626,1.3390991 17.6535069,2.53297297 17.6535069,4.04108108 C17.6535069,8.85117117 13.671346,15.0998198 10.439346,19.4875676 L3.05725952,19.4875676 L0.0966314879,1.23315315 L6.56045675,0.60036036 L8.12578201,13.5895495 C9.58835986,11.1326126 11.3932543,7.27153153 11.3932543,4.6390991 C11.3932543,3.1981982 11.1538599,2.21675676 10.7797405,1.40864865 L16.6660484,0.18 Z M24.9071592,11.6938739 C24.9071592,13.8367568 26.062718,14.6774775 27.5946678,14.6774775 C29.2629152,14.6774775 30.860218,14.2571171 32.9363097,13.1691892 L32.154346,18.6445045 C30.6915934,19.3814414 28.4119291,19.8731532 26.1991903,19.8731532 C20.5863512,19.8731532 18.5775346,16.3632432 18.5775346,11.9753153 C18.5775346,6.28810811 21.8451817,0.249369369 28.5819516,0.249369369 C32.2909931,0.249369369 34.3649879,2.39207207 34.3649879,5.37567568 C34.3653374,10.1855856 28.3783789,11.6590991 24.9071592,11.6938739 Z M25.0434567,8.2181982 C26.2329152,8.2181982 29.2274429,7.65711712 29.2274429,5.90216216 C29.2274429,5.05945946 28.6495761,4.6390991 27.9686125,4.6390991 C26.7772318,4.6390991 25.2138287,6.11225225 25.0434567,8.2181982 Z M53.0187093,4.4636036 C53.0187093,5.16558559 52.9154377,6.18378378 52.8126903,6.84918919 L50.8730709,19.4873874 L44.5790934,19.4873874 L46.3483408,7.90216216 C46.381891,7.58792793 46.4849879,6.95531532 46.4849879,6.60432432 C46.4849879,5.76162162 45.9743962,5.55135135 45.3605329,5.55135135 C44.5451938,5.55135135 43.7279325,5.93711712 43.1836159,6.21873874 L41.1768962,19.4875676 L34.8474464,19.4875676 L37.7390519,0.565945946 L43.2171661,0.565945946 L43.2865381,2.07621622 C44.5789187,1.19873874 46.2807163,0.24972973 48.6952803,0.24972973 C51.8942543,0.249369369 53.0187093,1.93495495 53.0187093,4.4636036 Z M71.7037093,2.32072072 C73.5063322,0.988108108 75.2084792,0.249369369 77.5554187,0.249369369 C80.7872439,0.249369369 81.9113495,1.93495495 81.9113495,4.4636036 C81.9113495,5.16558559 81.8084273,6.18378378 81.7056799,6.84918919 L79.7683322,19.4873874 L73.4726073,19.4873874 L75.2755796,7.6572973 C75.3087803,7.34108108 75.3785017,6.95531532 75.3785017,6.71063063 C75.3785017,5.7618018 74.8677353,5.55135135 74.2540467,5.55135135 C73.4722578,5.55135135 72.6908183,5.90234234 72.1106799,6.21873874 L70.1043097,19.4875676 L63.8101574,19.4875676 L65.6131298,7.65747748 C65.6463304,7.34126126 65.713955,6.9554955 65.713955,6.71081081 C65.713955,5.76198198 65.2030138,5.55153153 64.5914221,5.55153153 C63.7743356,5.55153153 62.9588218,5.9372973 62.4145052,6.21891892 L60.4062128,19.4877477 L54.0788599,19.4877477 L56.9701159,0.566126126 L62.3813045,0.566126126 L62.551327,2.14576577 C63.8101574,1.1990991 65.5105571,0.25009009 67.7900467,0.25009009 C69.7637405,0.249369369 71.0559464,1.12702703 71.7037093,2.32072072 Z M83.55059,11.7998198 C83.55059,5.83279279 86.6120433,0.249369369 93.6558322,0.249369369 C98.9633997,0.249369369 100.903543,3.47981982 100.903543,7.93873874 C100.903543,13.8365766 97.8751159,19.9443243 90.6614792,19.9443243 C85.3196626,19.9443243 83.55059,16.3281081 83.55059,11.7998198 Z M94.4374464,7.83279279 C94.4374464,6.28810811 94.0628028,5.23495495 92.9409689,5.23495495 C90.4570329,5.23495495 89.9469654,9.76306306 89.9469654,12.0794595 C89.9469654,13.8367568 90.4238322,14.9243243 91.5453166,14.9243243 C93.8931298,14.9243243 94.4374464,10.149009 94.4374464,7.83279279 Z"})))))}}))).render(Object(nt.preact)({Preact:{h:y}}));var e,n,t,o,i}function Ft(e){var n=e.stylingClass;return y("svg",{className:void 0===n?"instruction-icon":n,width:"68",height:"47",viewBox:"0 0 68 47",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("rect",{x:"11.5",y:"6.90039",width:"20.7",height:"29.9",fill:"white"}),y("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M30.82 2.2998H12.88C10.8475 2.2998 9.19995 3.98283 9.19995 6.05894V42.2407C9.19995 44.3168 10.8475 45.9998 12.88 45.9998H30.82C32.8524 45.9998 34.5 44.3168 34.5 42.2407V6.05894C34.5 3.98283 32.8524 2.2998 30.82 2.2998ZM21.8499 42.6635C20.8337 42.6635 20.0099 41.822 20.0099 40.784C20.0099 39.7459 20.8337 38.9044 21.8499 38.9044C22.8661 38.9044 23.6899 39.7459 23.6899 40.784C23.6899 41.822 22.8661 42.6635 21.8499 42.6635ZM11.9599 36.414H31.7399V7.32767H11.9599V36.414Z",fill:"#888C94"}),y("path",{d:"M25.7367 12.4121C26.107 13.0217 26.274 13.6495 26.274 14.4425C26.274 16.9719 24.1071 20.2578 22.3483 22.5651H18.3314L16.7205 12.966L20.2378 12.6333L21.0894 19.4636C21.8853 18.1716 22.8674 16.1412 22.8674 14.757C22.8674 13.9992 22.7371 13.4832 22.5335 13.0582L25.7367 12.4121Z",fill:"#008CFF"}),y("circle",{cx:"14.5",cy:"33.5",r:"1.25",fill:"white",stroke:"#0074DE","stroke-width":"0.5"}),y("circle",{cx:"18.5",cy:"33.5",r:"1.25",fill:"white",stroke:"#0074DE","stroke-width":"0.5"}),y("rect",{x:"21",y:"32",width:"9",height:"3",rx:"1.5",fill:"#0074DE"}),y("circle",{cx:"49",cy:"26",r:"18",fill:"white",stroke:"#2F3033","stroke-width":"2"}),y("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M56.7188 16.5H51.9688C50.985 16.5 50.1875 17.2975 50.1875 18.2812V23.0312C50.1875 24.015 50.985 24.8125 51.9688 24.8125H56.7188C57.7025 24.8125 58.5 24.015 58.5 23.0312V18.2812C58.5 17.2975 57.7025 16.5 56.7188 16.5ZM51.375 18.2812C51.375 17.9533 51.6408 17.6875 51.9688 17.6875H56.7188C57.0467 17.6875 57.3125 17.9533 57.3125 18.2812V23.0312C57.3125 23.3592 57.0467 23.625 56.7188 23.625H51.9688C51.6408 23.625 51.375 23.3592 51.375 23.0312V18.2812ZM41.875 19.5083C41.875 19.1585 42.1585 18.875 42.5083 18.875H44.8042C45.154 18.875 45.4375 19.1585 45.4375 19.5083V21.8042C45.4375 22.154 45.154 22.4375 44.8042 22.4375H42.5083C42.1585 22.4375 41.875 22.154 41.875 21.8042V19.5083ZM52.5625 19.5083C52.5625 19.1585 52.846 18.875 53.1958 18.875H55.4917C55.8415 18.875 56.125 19.1585 56.125 19.5083V21.8042C56.125 22.154 55.8415 22.4375 55.4917 22.4375H53.1958C52.846 22.4375 52.5625 22.154 52.5625 21.8042V19.5083ZM50.8208 27.1875C50.471 27.1875 50.1875 27.471 50.1875 27.8208V28.9292C50.1875 29.279 50.471 29.5625 50.8208 29.5625H51.9292C52.279 29.5625 52.5625 29.279 52.5625 28.9292V27.8208C52.5625 27.471 52.279 27.1875 51.9292 27.1875H50.8208ZM50.1875 33.7583C50.1875 33.4085 50.471 33.125 50.8208 33.125H51.9292C52.279 33.125 52.5625 33.4085 52.5625 33.7583V34.8667C52.5625 35.2165 52.279 35.5 51.9292 35.5H50.8208C50.471 35.5 50.1875 35.2165 50.1875 34.8667V33.7583ZM56.7583 27.1875C56.4085 27.1875 56.125 27.471 56.125 27.8208V28.9292C56.125 29.279 56.4085 29.5625 56.7583 29.5625H57.8667C58.2165 29.5625 58.5 29.279 58.5 28.9292V27.8208C58.5 27.471 58.2165 27.1875 57.8667 27.1875H56.7583ZM56.125 33.7583C56.125 33.4085 56.4085 33.125 56.7583 33.125H57.8667C58.2165 33.125 58.5 33.4085 58.5 33.7583V34.8667C58.5 35.2165 58.2165 35.5 57.8667 35.5H56.7583C56.4085 35.5 56.125 35.2165 56.125 34.8667V33.7583ZM53.7895 30.1562C53.4398 30.1562 53.1562 30.4398 53.1562 30.7895V31.898C53.1562 32.2477 53.4398 32.5312 53.7895 32.5312H54.898C55.2477 32.5312 55.5312 32.2477 55.5312 31.898V30.7895C55.5312 30.4398 55.2477 30.1562 54.898 30.1562H53.7895ZM41.875 30.1958C41.875 29.846 42.1585 29.5625 42.5083 29.5625H44.8042C45.154 29.5625 45.4375 29.846 45.4375 30.1958V32.4917C45.4375 32.8415 45.154 33.125 44.8042 33.125H42.5083C42.1585 33.125 41.875 32.8415 41.875 32.4917V30.1958ZM41.2812 27.1875H46.0312C47.015 27.1875 47.8125 27.985 47.8125 28.9688V33.7188C47.8125 34.7025 47.015 35.5 46.0312 35.5H41.2812C40.2975 35.5 39.5 34.7025 39.5 33.7188V28.9688C39.5 27.985 40.2975 27.1875 41.2812 27.1875ZM41.2812 28.375C40.9533 28.375 40.6875 28.6408 40.6875 28.9688V33.7188C40.6875 34.0467 40.9533 34.3125 41.2812 34.3125H46.0312C46.3592 34.3125 46.625 34.0467 46.625 33.7188V28.9688C46.625 28.6408 46.3592 28.375 46.0312 28.375H41.2812ZM41.2812 16.5H46.0312C47.015 16.5 47.8125 17.2975 47.8125 18.2812V23.0312C47.8125 24.015 47.015 24.8125 46.0312 24.8125H41.2812C40.2975 24.8125 39.5 24.015 39.5 23.0312V18.2812C39.5 17.2975 40.2975 16.5 41.2812 16.5ZM41.2812 17.6875C40.9533 17.6875 40.6875 17.9533 40.6875 18.2812V23.0312C40.6875 23.3592 40.9533 23.625 41.2812 23.625H46.0312C46.3592 23.625 46.625 23.3592 46.625 23.0312V18.2812C46.625 17.9533 46.3592 17.6875 46.0312 17.6875H41.2812Z",fill:"#008CFF"}),y("path",{d:"M36 13.0004L15 33",stroke:"#2F3033"}),y("path",{d:"M43.4999 43.4991L14.4999 32.9995",stroke:"#2F3033"}))}function Ct(){return y("svg",{id:"venmo-mark",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},y("path",{d:"M42.3 2L28.5 4.8c.8 1.9 1.4 4.1 1.4 7.4 0 6-4.2 14.8-7.7 20.4L18.5 3 3.3 4.5l7 41.5h17.4c7.7-10 17-24.3 17-35.2 0-3.4-.8-6.1-2.4-8.8z",fill:"#fff"}))}function Et(){return y("svg",{id:"success-mark",width:"59",height:"59",viewBox:"0 0 59 59",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("rect",{x:"1",y:"1",width:"57",height:"57",rx:"28.5",fill:"#148572",stroke:"#888C94"}),y("g",{"clip-path":"url(#clip0)"},y("path",{d:"M24.0068 40.8397C22.921 39.7538 22.921 37.9933 24.0068 36.9075L39.2933 21.621C40.3791 20.5352 42.1396 20.5352 43.2255 21.621C44.3113 22.7069 44.3113 24.4674 43.2255 25.5532L27.939 40.8397C26.8532 41.9255 25.0927 41.9255 24.0068 40.8397Z",fill:"white"}),y("path",{d:"M27.9763 40.8397C26.8905 41.9255 25.13 41.9255 24.0441 40.8397L17.1628 33.9583C16.0769 32.8725 16.0769 31.112 17.1628 30.0261C18.2486 28.9403 20.0091 28.9403 21.095 30.0261L27.9763 36.9075C29.0622 37.9933 29.0622 39.7538 27.9763 40.8397Z",fill:"white"})),y("defs",null,y("clipPath",{id:"clip0"},y("rect",{width:"27.8049",height:"27.8049",fill:"white",transform:"translate(16.2927 16.293)"}))))}(ct={}).default={primary:"#ffffff"},ct.blue={primary:"#003087"},ct.white={primary:"#ffffff"},ct.black={primary:"#333030"},(ut={}).default={primary:"#1AAD19",secondary:"#4D4D4D"},ut.white={primary:"#FFFFFF",secondary:"#FFFFFF"},ut.black={primary:"#333030",secondary:"#333030"},(st={}).default={primary:"#00A599"},st.white={primary:"#FFFFFF"},st.black={primary:"#00A599"},(lt={}).default={primary:"#A6d71c",secondary:"#3C932A",tertiary:"#6CC62E",quaternary:"#278D30"},lt.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#FFFFFF"},lt.black={primary:"#333030",secondary:"#333030",tertiary:"#ffffff",quaternary:"#333030"},(ft={}).default={primary:"#FFFFFF",secondary:"#CACCC8",tertiary:"#2D59A1",quaternary:"#1F3364",quinary:"#4E4E4E",senary:"#1B4482"},ft.white={primary:"#FFFFFF",secondary:"#CACCC8",tertiary:"#2D59A1",quaternary:"#1F3364",quinary:"#4E4E4E",senary:"#1B4482"},ft.black={primary:"#000000",secondary:"#000000",tertiary:"#FFFFFF",quaternary:"#FFFFFF",quinary:"#000000",senary:"#000000"},(dt={}).default={primary:"#4D4D4F",secondary:"#000000",tertiary:"#FF0000",quaternary:"#E83E49",quinary:"#FF00FF",senary:"#FFFFFF"},dt.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#000000",quinary:"#000000",senary:"#000000"},dt.black={primary:"#4D4D4F",secondary:"#000000",tertiary:"#FF0000",quaternary:"#E83E49",quinary:"#FF00FF",senary:"#FFFFFF"},(pt={}).default={primary:"#020202",secondary:"#64CC07"},pt.white={primary:"#FFFFFF",secondary:"#FFFFFF"},pt.black={primary:"#000000",secondary:"#000000"},(ht={}).default={primary:"#EC1D24",secondary:"#EDA42D",tertiary:"#FEFEFE"},ht.white={primary:"#EC1D24",secondary:"#EDA42D",tertiary:"#FEFEFE"},ht.black={primary:"#EC1D24",secondary:"#EDA42D",tertiary:"#FEFEFE"},(yt={}).default={primary:"#1A1919",secondary:"#FFFFFE"},yt.white={primary:"#1A1919",secondary:"#FFFFFE"},yt.black={primary:"#1A1919",secondary:"#FFFFFE"},(vt={}).default={primary:"#004A91",secondary:"#ED1921"},vt.white={primary:"#004A91",secondary:"#ED1921"},vt.black={primary:"#004A91",secondary:"#ED1921"},(mt={}).default={primary:"#2D3277",secondary:"#FFFFFF",tertiary:"#009EE3",quaternary:"#009EE3"},mt.white={primary:"#FFFFFF",secondary:"#000000",tertiary:"#FFFFFF",quaternary:"#000000"},mt.black={primary:"#2D3277",secondary:"#FFFFFF",tertiary:"#009EE3",quaternary:"#009EE3"};var kt=new Map([["qr_default","qr_scanned"],["qr_error","qr_default"],["qr_authorized","qr_error"],["qr_scanned","qr_authorized"]]);function Tt(){var e=window.xprops,n=e.env,t=e.sessionID,r=e.buttonSessionID,o=e.sdkCorrelationID,i=e.clientID,a=e.fundingSource,c=void 0===a?"venmo":a,u=e.locale,s=e.orderID,l=(0,e.getParent)(),f=function(){if(!window.paypal)throw new Error("paypal not found");return window.paypal}().version,d=u.country,p=pn();return p.configure({transport:l&&fn(l)}),function(e){var n=e.env,t=e.sessionID,r=e.clientID,o=e.sdkCorrelationID,i=e.buyerCountry,a=e.locale,c=e.sdkVersion,u=e.fundingSource,s=pn();s.addPayloadBuilder((function(){return{referer:window.location.host,sdkCorrelationID:o,sessionID:t,clientID:r,env:n}})),s.addTrackingBuilder((function(){var e,n,s=a.lang,l=a.country;return(e={}).feed_name="payments_sdk",e.serverside_data_source="checkout",e.client_id=r,e.page_session_id=t,e.referer_url=window.location.host,e.buyer_cntry=i,e.locale=s+"_"+l,e.integration_identifier=r,e.sdk_environment=(void 0===n&&(n=ue()),/iPhone|iPod|iPad/.test(n)?"iOS":function(e){return void 0===e&&(e=ue()),/Android/.test(e)}()?"android":null),e.sdk_name="payments_sdk",e.sdk_version=c,e.user_agent=window.navigator&&window.navigator.userAgent,e.context_correlation_id=o,e.t=Date.now().toString(),e.selected_payment_method=u,e})),ce.onPossiblyUnhandledException((function(e){var n;s.track(((n={}).ext_error_code="payments_sdk_error",n.ext_error_desc=function(e){var n="<unknown error: "+{}.toString.call(e)+">";return e?e instanceof Error?e.message||n:"string"==typeof e.message&&e.message||n:n}(e),n)),s.error("unhandled_error",{err:We(e)}),s.flush().catch(Be)}))}({env:n,sessionID:t,clientID:i,sdkCorrelationID:o,locale:u,sdkVersion:f,buyerCountry:d,fundingSource:c}),function(e){var n=e.env;pn().configure({amplitudeApiKey:dn[n]})}({env:n}),p.addPayloadBuilder((function(){var e;return(e={buttonSessionID:r}).user_id=r,e})),p.addTrackingBuilder((function(){var e;return(e={}).state_name="smart_button",e.context_type="EC-Token",e.context_id=s,e.button_session_id=r,e.button_version="5.0.77",e.user_id=r,e})),function(){if(window.document.documentMode)try{var e=window.status;return window.status="testIntranetMode","testIntranetMode"===window.status&&(window.status=e,!0)}catch(e){return!1}return!1}()&&p.warn("button_child_intranet_mode"),ce.hash({pageRenderTime:Xe().then((function(){var e=Ye();if(e){var n=e.timing;return n.connectEnd&&n.domInteractive?n.domInteractive-n.connectEnd:void 0}}))}).then((function(e){var n,t=e.pageRenderTime;p.track(((n={}).transition_name="qr_load",n.merchant_selected_funding_source=c,n.page_load_time=t?t.toString():"",n)),p.flush()})),p}var Mt,St=y("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("rect",{x:"0.25",y:"0.25",width:"39.5",height:"39.5",rx:"19.75",stroke:"#888C94","stroke-width":"0.5"})),jt=y("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},y("circle",{cx:"20",cy:"20",r:"12",fill:"#148572"}),y("rect",{x:"0.25",y:"0.25",width:"39.5",height:"39.5",rx:"19.75",stroke:"#148572","stroke-width":"0.5"}));function Dt(e){var n=e.survey,t=e.onCloseClick,r=function(e){e.target.blur(),n.setReason(e.target.value)},o=[{text:"Having trouble scanning the QR code",reason:"having_trouble_scanning_the_qr_code"},{text:"Don’t have the Venmo app on my mobile device",reason:"dont_have_the_venmo_app_on_my_mobile_device"},{text:"I prefer to pay another way",reason:"prefer_to_pay_another_way"},{text:"I prefer not to say",reason:"prefer_not_to_say"}].map((function(e){return y("div",{class:"answer"},y("input",{type:"radio",id:e.reason,value:e.reason,checked:e.reason===n.reason,onChange:r}),y("label",{for:e.reason},e.reason===n.reason?jt:St,e.text))}));return y("div",{id:"survey"},y("h1",null,"We’re sorry to see you leave!"),y("p",{class:"message"},"Please let us know why. Your feedback is important to us."),y("div",{class:"answers"},o),y("button",{type:"button",class:"continue-button",onClick:n.disable},"Continue payment"),y("button",{type:"button",class:"leave-button",onClick:t},"Leave"))}function Lt(e){var n,t,o,a,c,u,s=e.svgString,l=(a=$(window.xprops),c=a[0],u=a[1],n=function(){return c.onProps((function(e){u(r({},e))}))},t=[],o=Z(H++,3),!i.__s&&function(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}(o.__H,t)&&(o.__=n,o.__H=t,N.__H.__h.push(o)),r({},c,{setState:function(e){u(r({},c,{state:e}))}})),f=l.state,d=l.errorText,p=l.setState,h=l.close,v=l.onCancel,_=function(){var e=$({isEnabled:!1,reason:"prefer_not_to_say"}),n=e[0],t=e[1];return r({},n,{enable:function(){return t(r({},n,{isEnabled:!0}))},disable:function(){return t(r({},n,{isEnabled:!1}))},setReason:function(e){return t(r({},n,{reason:e}))}})}(),w=function(e){window.xprops.hide();var n=function(e){var n,t=e.closeOnUnload,o=we(function(e,n){var t=(n=n||{}).closeOnUnload,o=void 0===t?1:t,i=n.name,a=void 0===i?"":i,c=n.width,u=n.height,s=0,l=0;c&&(window.outerWidth?l=Math.round((window.outerWidth-c)/2)+window.screenX:window.screen.width&&(l=Math.round((window.screen.width-c)/2))),u&&(window.outerHeight?s=Math.round((window.outerHeight-u)/2)+window.screenY:window.screen.height&&(s=Math.round((window.screen.height-u)/2))),delete n.closeOnUnload,delete n.name,c&&u&&(n=r({top:s,left:l,width:c,height:u,status:1,toolbar:0,menubar:0,resizable:1,scrollbars:1},n));var f,d,p=Object.keys(n).map((function(e){if(null!=n[e])return e+"="+("string"==typeof(t=n[e])?t:t&&t.toString&&"function"==typeof t.toString?t.toString():{}.toString.call(t));var t})).filter(Boolean).join(",");try{f=window.open("",a,p)}catch(d){throw new Qe("Can not open popup window - "+(d.stack||d.message))}if(xe(f))throw new Qe("Can not open popup window - blocked");return o&&window.addEventListener("unload",(function(){return f.close()})),f}(0,{width:e.width,height:e.height,closeOnUnload:void 0===t?1:t})),i=o.document;return function(e,n){var t=n.tagName.toLowerCase();if("html"!==t)throw new Error("Expected element to be html, got "+t);for(var r=e.document.documentElement,o=0,i=Ue(r.children);o<i.length;o++)r.removeChild(i[o]);for(var a=0,c=Ue(n.children);a<c.length;a++)r.appendChild(c[a])}(o,En(In,{nonce:(n="",document.body&&(n=document.body.getAttribute("data-nonce")||""),n)}).render(Ln({doc:i}))),o}({width:500,height:590,closeOnUnload:0});window.xprops.onEscapePath(n,e).then((function(){h()}))},g=function(){if("qr_default"!==f)v();else if(_.isEnabled){var e;Mt.info("VenmoDesktopPay_qrcode_survey").track((e={},e.state_name="smart_button",e.context_type="EC-Token",e.context_id=window.xprops.orderID,e.transition_name="desktop_exit_survey_selection_submitted",e.desktop_exit_survey_reason=_.reason,e)).flush(),v()}return v()},b=y(gt,{message:d,resetFunc:function(){return p("qr_default")}}),x=y("div",{id:"front-view",className:"card"},y("p",{id:"fee-disclaimer"},"No fees no matter how you pay"),y("div",{id:"instructions"},y(Ft,{stylingClass:"instruction-icon"}),y("span",null,"To pay, scan the QR code with your Venmo app")),y(bt,{svgString:s}),y(xt,null)),F=y(Dt,{survey:_,onCloseClick:g}),C=_.isEnabled&&"qr_default"===f?F:x,E=!_.isEnabled&&y("p",{className:"escape-path"},"Don't have the app? Pay with ",y("span",{className:"escape-path__link",onClick:function(){return w("paypal")}},"PayPal")," or ",y("span",{className:"escape-path__link",onClick:function(){return w("card")}},"Credit/Debit card"));return y(m,null,y("style",{nonce:window.xprops.cspNonce}," ",'\n    * {\n        box-sizing: border-box;\n        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n        text-transform: none;        \n    }\n    html, body {\n        display: flex;\n        position: fixed;\n        width: 100%;\n        height: 100%;\n        top: 0;\n        left: 0;\n        align-items: center;\n        justify-content: center;\n    }\n    body {\n        flex-direction: column;\n    }\n    #error-view {\n        width: 100%;\n        height: 100%;\n        padding: 1.5em;\n        justify-content: center;\n    }\n    #error-view .error-message,\n    #error-view .reset-button {\n        color: #FFFFFF;\n        text-align: center;        \n        line-height: 16px;\n    }\n    #error-view .error-message {\n        margin-bottom: 2em;\n        word-break: break-word;\n    }\n    #error-view .reset-button {\n        cursor: pointer;\n        border: 0; \n        border-radius: 24px;\n        padding: 12px;\n        background: #3D93CE;\n        line-height: 24px;\n        font-weight: 700;\n        width: 300px;\n    }\n    .card, \n    #error-view {\n        display: inline-flex;\n        align-items: center;\n        flex-direction: column;\n    }\n    .card {\n        border-radius: 8px;\n        min-width: 280px;\n        min-height: 320px;\n        backface-visibility: hidden;\n        -webkit-backface-visibility: hidden;\n        transition: transform 1s;\n        transform-style: preserve-3d;\n    }\n    .card * {\n        box-sizing: content-box;\n    }\n    #view-boxes {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        height: 100%;\n        width: 100%;\n    }\n    #view-boxes.qr_scanned #front-view,\n    #view-boxes.qr_authorized #front-view {\n        transform: rotateY(180deg);\n        position: absolute;\n    }\n    #view-boxes #back-view {width: 320px;}\n    #view-boxes.qr_scanned #back-view,\n    #view-boxes.qr_authorized #back-view {\n        transform: rotateY(0deg);\n        position: relative;\n    }\n    #view-boxes #back-view #success-mark,\n    #view-boxes #back-view .success-message {\n        opacity: 0;\n    }\n    #view-boxes.qr_authorized #back-view #success-mark,\n    #view-boxes.qr_authorized #back-view .success-message {\n        opacity: 1;\n    }\n    #view-boxes.qr_authorized #back-view #success-mark {\n        transform: rotate(720deg);\n    }\n    #view-boxes.qr_authorized #back-view .auth-message {\n        opacity: 0;\n    }\n    #front-view {\n        background-color: white;\n        border: 1px solid #888C94;\n        z-index: 2;\n        transform: rotateY(0deg);\n        justify-content: flex-end;\n        width: 462px;\n    }\n    #front-view > svg,\n    #front-view > img {\n        padding: 16px 16px 0px;\n    }\n    #front-view > img + img { \n        padding-top: 12px;\n        padding-bottom: 32px; \n    }\n    #qr-code {\n        min-width: 160px;\n        min-height: 160px;\n        width: calc(100% - 32px);\n        max-width: 325px;\n    }\n    #instructions {\n        background-color: #FFFF;\n        border-top-left-radius: 8px;\n        border-top-right-radius: 8px;\n        box-sizing: border-box;\n        margin-top: 16px;\n        display: flex;\n        align-items: center;\n        font-size: 14px;\n        line-height: 16px;\n        max-width: 250px;\n        width: 100%;\n    }\n    .instruction-icon {\n        min-width: 68px;\n        min-height: 46px;\n        margin-right: 16px;\n    }\n    #fee-disclaimer{\n        margin: 0;\n        padding-top: 32px;\n        padding-left: 16px;\n        padding-right: 16px;\n        font-size: 20px;\n        color: #2F3033;\n    }\n    #back-view {\n        position: absolute;\n        transform: rotateY(-180deg);\n        background-color: #3D93CE;\n        justify-content: center;\n        font-size: 18px;\n        line-height: 16px;\n        text-align: center;\n        color: #FFFFFF;\n    }    \n    #back-view .auth-message,\n    #back-view .success-message {\n        position: absolute;\n        bottom: -30px;\n        white-space: nowrap;\n        transition: opacity 500ms;\n    }\n    #back-view .mark {\n        position: relative ;\n    }\n    #venmo-mark{\n        width: 50%;\n    }\n    #success-mark {\n        position: absolute;\n        left: 50%;\n        bottom: -10%;\n        transition: transform 500ms, opacity 500ms;\n        transition-delay: 350ms;\n    }\n    #close {\n        position: absolute;\n        right: 16px;\n        top: 16px;\n        width: 16px;\n        height: 16px;\n        opacity: 0.6;\n        z-index: 10;\n    }\n    #close:hover {\n        opacity: 1;\n    }\n    #close:before, #close:after {\n        position: absolute;\n        left: 8px;\n        content: \' \';\n        height: 20px;\n        width: 2px;\n        background-color: #FFF;\n    }\n    #close:before {\n        transform: rotate(45deg);\n    }\n    #close:after {\n        transform: rotate(-45deg);\n    }\n    #survey {\n        background: #FFFFFF;\n        height: 542px;\n        width: 500px;\n        border-radius: 8px;\n    }\n    #survey h1 {\n        width: 423px;\n        font-weight: 500;\n        font-size: 24px;\n        line-height: 32px;\n        text-align: center;\n        margin: auto;\n        margin-top: 30px;\n    }\n    #survey button {\n        display: block;\n        margin: auto;\n        border: none;\n        font-family: sans-serif;\n        cursor: pointer;\n        font-weight: bold;\n    }\n    #survey button.continue-button {\n        margin-top: 40px;\n        min-height: 48px;\n        width:  335px;\n        background: #0074DE;\n        height: 24px;\n        font-size: 18px;\n        line-height: 24px;\n        text-align: center;\n        color: #FFFFFF;\n        border-radius: 24px;\n        display: block;\n    }\n    #survey button.leave-button {\n        margin-top: 10px;\n        height: 48px;\n        width:  335px;\n        color: #0074DE;\n        background: none;\n        font-size: 18px;\n        line-height: 24px;\n        text-align: center;\n        display: block;\n    }\n    #survey .message {\n        width: 333px;\n        font-family: sans-serif;\n        font-size: 16px;\n        line-height: 20px;\n        text-align: center;\n        margin: auto;\n        margin-top: 8px;\n    }\n    \n    #survey .answers {\n        width: 400px;\n        font-size: 16px;\n        line-height: 20px;\n        margin: auto;\n        cursor: pointer;\n    }\n    #survey .answers .answer {\n        margin-top: 28px;\n        display: flex;\n        align-items: center;\n    }\n    #survey label {\n        font-family: sans-serif;\n        font-size: 16px;\n        cursor: pointer;\n        display: flex;\n        align-items: center;\n    }\n    #survey .answers svg{\n        margin-right: 8px;\n        min-width: 40px;\n    }\n    #survey .answers input{\n        display: none;\n    }\n    #survey .answers input:focus::after {\n        content: "";\n        min-width: 44px;\n        height: 44px;\n        position: absolute;\n        top: -2px;\n        left: -2px;\n        border: solid 1px black;\n        border-radius: 50%;\n    }\n    .escape-path {    \n        background-color: white;\n        color: #2F3033;\n        width: 100%;\n        text-align: center;\n        padding: 1rem;\n        margin: 0;\n        border-bottom-left-radius: 16px;\n        border-bottom-right-radius: 16px;\n    }\n    .escape-path__link {\n        font-weight: 600;\n        color: #008CFF;\n    }\n    .escape-path__link:hover {\n        cursor: pointer;\n    }\n    '," "),y("a",{href:"#",id:"close","aria-label":"close",role:"button",onClick:g}),y("div",{id:"view-boxes",className:f},"qr_error"===f?b:C,y("div",{className:"card",id:"back-view"},y("span",{className:"mark"},y(Ct,null),y(Et,null)),y("div",{className:"auth-message"},"Go to your Venmo app and authorize"),y("div",{className:"success-message"},"Venmo account authorized")),window.xprops.debug&&y("button",{type:"button",style:{position:"absolute",bottom:"8px",padding:"4px",right:"8px"},onClick:function(){return p(kt.get(f))}},"Next State")),E)}function Ot(e){var n,t,r,a,c=e.svgString;Mt=Tt(),n=y(Lt,{svgString:c}),t=hn(),i.__&&i.__(n,t),r=!1?null:t.__k,a=[],j(t,n=t.__k=y(m,null,[n]),r||l,l,void 0!==t.ownerSVGElement,r?null:t.firstChild?o.call(t.childNodes):null,a,r?r.__e:t.firstChild,!1),D(a,n)}}])}));