vendor: 3,102 bytes, line 1
1function p(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(e){return typeof e}:p=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(o)}var y="dahlia",g=function(e){return e===3?"v3":e},E="https://js.stripe.com",L="".concat(E,"/").concat(y,"/stripe.js"),T=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,P=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var j=function(e){return T.test(e)||P.test(e)},_=function(){for(var e=document.querySelectorAll('script[src^="'.concat(E,'"]')),r=0;r<e.length;r++){var n=e[r];if(j(n.src))return n}return null},S=function(e){var r="",n=document.createElement("script");n.src="".concat(L).concat(r);var t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return t.appendChild(n),n},R=function(e,r){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"9.2.0",startTime:r})},a=null,c=null,l=null,I=function(e){return function(r){e(new Error("Failed to load Stripe.js",{cause:r}))}},U=function(e,r){return function(){window.Stripe?e(window.Stripe):r(new Error("Stripe.js not available"))}},x=function(e){return a!==null?a:(a=new Promise(function(r,n){if(typeof window>"u"||typeof document>"u"){r(null);return}if(window.Stripe){r(window.Stripe);return}try{var t=_();if(!(t&&e)){if(!t)t=S(e);else if(t&&l!==null&&c!==null){var i;t.removeEventListener("load",l),t.removeEventListener("error",c),(i=t.parentNode)===null||i===void 0||i.removeChild(t),t=S(e)}}l=U(r,n),c=I(n),t.addEventListener("load",l),t.addEventListener("error",c)}catch(u){n(u);return}}),a.catch(function(r){return a=null,Promise.reject(r)}))},W=function(e,r,n){if(e===null)return null;var t=r[0];if(typeof t!="string")throw new Error("Expected publishable key to be of type string, got type ".concat(p(t)," instead."));var i=t.match(/^pk_test/),u=g(e.version),v=y;i&&u!==v&&console.warn("Stripe.js@".concat(u," was loaded on the page, but @stripe/stripe-js@").concat("9.2.0"," expected Stripe.js@").concat(v,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var m=e.apply(void 0,r);return R(m,n),m},s,h=!1,w=function(){return s||(s=x(null).catch(function(e){return s=null,Promise.reject(e)}),s)};Promise.resolve().then(function(){return w()}).catch(function(o){h||console.warn(o)});var q=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];h=!0;var t=Date.now();return w().then(function(i){return W(i,r,t)})};const f="pk_live_51TcY3E2dWvUAJnfoWaqcibmLTFdfPUTMcvzIqd8MdBpHp6ZinYBPyTUMI924lZNEaDWIY7XDceN9PUwCeEirqTfq007uCS0Q6L";function b(){if(f?.startsWith("pk_test_"))return"sandbox";if(f?.startsWith("pk_live_"))return"live";throw new Error("Stripe payments are not configured for this build. Complete Stripe go-live in your Lovable project to enable production checkout.")}let d=null;function C(){return d||(b(),d=q(f)),d}function k(){return b()}export{k as a,C as g};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.