@tinkerlandai/indiana-sdk 0.2.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{b as C,c as F,d as T,e as _,f as P}from"./chunk-ULRVTA45.js";import{a,b as h}from"./chunk-EZFAY4ZL.js";import{Dj as v,Lh as s,Pa as O,Qa as S,Ra as N,sj as g}from"./chunk-YOH6DIUN.js";function A(r){let{customerToken:d,...n}=r;return n}var D=r=>!(r instanceof a)||r.status===void 0||r.status>=500||[401,425].includes(r.status);function R(r){if(!/^gg_fr_[A-Za-z0-9_-]{43}$/.test(r.runToken))throw new a("INVALID_TOKEN","Run credential required");let d=h({...r,timeoutMs:r.timeoutMs??35e3});d.identify(r.runToken);let n,i=null,m=0,t=null,e=null,p=new Set;async function c(u,f){let I=m,l=v.parse(await d.request("funnels",g.parse(u)));if(I!==m)throw new a("IDENTITY_CHANGED","Run identity changed during the request");if(l.runToken&&l.runToken!==r.runToken)throw new a("INVALID_RESPONSE","Run credential changed");if(i&&(l.run.id!==i.id||l.run.source.type!==i.source.type||l.run.source.id!==i.source.id||l.run.source.versionId!==i.source.versionId||l.run.locale!==i.locale||!C(l.run.parameters,i.parameters)))throw new a("INVALID_RESPONSE","Run version changed");let E=f?.(l)??!1;if(!i||l.run.revision>=i.revision)i=l.run;else if(!E)return l;if(i)for(let q of p)try{q(structuredClone(i))}catch{}return l}async function y(){if(!t)throw new a("INVALID_REQUEST","No command is pending");let u=t,f=m,I={...t,...n?{customerToken:n}:{}};try{return await c(I,l=>f===m&&t===u&&l.run.pendingRequest?.requestId!==u.requestId?(t=null,!0):!1)}catch(l){throw f===m&&t===u&&!D(l)&&(t=null),l}}function w(u){let f=g.parse(u);if(f.operation==="start"||f.operation==="get")throw new a("INVALID_REQUEST","Mutation required");if(f.operation==="close"&&t?.operation!=="close"&&(t=null),t){if(JSON.stringify(A(t))!==JSON.stringify(A(f)))throw new a("COMMAND_PENDING","Retry the original command before sending another");if(e)return e}else t=f;let I=y();return e=I,I.then(()=>{e===I&&(e=null)},()=>{e===I&&(e=null)}),I}return{get view(){return i?structuredClone(i):null},get pendingCommand(){return t?structuredClone(A(t)):null},get webViewUrl(){return d.webViewUrl()},async get(u,f){return c({operation:"get",...u?{data:u}:{},...f?{purchase:f}:{},...n?{customerToken:n}:{}})},resume(u=i?.pendingRequest?.requestId){return u?t?.requestId===u?w(t):w({operation:"resume",requestId:u}):Promise.reject(new a("INVALID_REQUEST","No interrupted command is available"))},submit(u){return w(u)},retry(){return e||(t?w(t):Promise.reject(new a("INVALID_REQUEST","No command is pending")))},identify(u){if(!/^gg_ct_[A-Za-z0-9_-]{43}$/.test(u))throw new a("INVALID_TOKEN","Customer credential required");m++,n=u,d.identify(r.runToken)},subscribe(u){return p.add(u),()=>p.delete(u)},reset(){m++,n=void 0,i=null,t=null,e=null,d.reset(),p.clear()}}}function V(r){if(!/^gg_ct_[A-Za-z0-9_-]{32,128}$/.test(r.customerToken))throw new a("INVALID_TOKEN","A customer credential is required");if(!r.scope)throw new a("INVALID_REQUEST","An explicit App and environment scope is required");let d=P({...r,scope:r.scope,apiKey:r.customerToken});return{async start(n){let i=await d.start(n),m=R({...r,runToken:i.runToken});return m.identify(r.customerToken),{...i,controller:m}}}}function o(r){if(r!==null&&typeof r=="object"&&"customerId"in r)throw new a("INVALID_REQUEST","Customer requests use the verified session identity")}function H(r){let d=h(r),n=d.request,i=new Set,m=t=>{for(let e of i)try{e(t)}catch{}};return{async setupPayment(t){o(t);let e=s.setupPayment;return e.response.parse(await n(e.path,e.request.parse(t)))},async readPaymentSetup(t){o(t);let e=s.readPaymentSetup;return e.response.parse(await n(e.path,e.request.parse(t)))},async previewUpdate(t){o(t);let e=s.previewUpdate;return e.response.parse(await n(e.path,e.request.parse(t)))},async update(t){o(t);let e=s.update;return e.response.parse(await n(e.path,e.request.parse(t)))},async readSubscriptionUpdate(t){o(t);let e=s.readSubscriptionUpdate;return e.response.parse(await n(e.path,e.request.parse(t)))},async restoreNativePurchase(t){o(t);let e=s.restoreNativePurchase;return e.response.parse(await n(e.path,e.request.parse(t)))},async previewAttach(t){o(t);let e=s.previewAttach;return e.response.parse(await n(e.path,e.request.parse(t)))},async attach(t){o(t);let e=s.attach;return e.response.parse(await n(e.path,e.request.parse(t)))},async readSubscriptionOperation(t){o(t);let e=s.readSubscriptionOperation;return e.response.parse(await n(e.path,e.request.parse(t)))},async checkEntitlement(t){o(t);let e=s.checkEntitlement;return e.response.parse(await n(e.path,e.request.parse(t)))},async resolvePaywall(t){o(t);let e=s.resolvePaywall;return e.response.parse(await n(e.path,e.request.parse(t)))},async resolveOffering(t){o(t);let e=s.resolveOffering;return e.response.parse(await n(e.path,e.request.parse(t)))},async readHoldings(t={}){let e=s.readHoldings;return e.response.parse(await n(e.path,e.request.omit({customerId:!0}).parse(t)))},async readLedger(t){let e=s.readLedger;return e.response.parse(await n(e.path,e.request.parse({query:t})))},async readBillingInvoice(t){o(t);let e=s.readBillingInvoice;return e.response.parse(await n(e.path,e.request.parse(t)))},async readCreditStatement(t){o(t);let e=s.readCreditStatement;return e.response.parse(await n(e.path,e.request.parse(t)))},async quoteBalance(t){o(t);let e=s.quoteBalance;return e.response.parse(await n(e.path,e.request.parse({command:t})))},async readBillingControls(t={}){o(t);let e=s.readBillingControls;return e.response.parse(await n(e.path,e.request.parse(t)))},async prepareBillingAuthorization(t){o(t);let e=s.prepareBillingAuthorization;return e.response.parse(await n(e.path,e.request.parse(t)))},async confirmBillingAuthorization(t){o(t);let e=s.confirmBillingAuthorization;return e.response.parse(await n(e.path,e.request.parse(t)))},async setBillingCoupons(t){o(t);let e=s.setBillingCoupons,p=e.request.safeParse(t);if(!p.success)throw new a("INVALID_REQUEST","Invalid billing coupon list");let c=e.response.safeParse(await n(e.path,p.data));if(!c.success)throw new a("INVALID_RESPONSE","Invalid billing coupon receipt");return c.data},async revokeBillingAuthorization(t){o(t);let e=s.revokeBillingAuthorization;return e.response.parse(await n(e.path,e.request.parse(t)))},async listBillingInvoices(t={after:null,limit:25}){o(t);let e=s.listBillingInvoices;return e.response.parse(await n(e.path,e.request.parse(t)))},async confirmBillingAdjustment(t){o(t);let e=s.confirmBillingAdjustment;return e.response.parse(await n(e.path,e.request.parse(t)))},subscribeIdentity(t){return i.add(t),()=>{i.delete(t)}},identify(t){if(!/^gg_ct_[A-Za-z0-9_-]{43}$/.test(t))throw new a("INVALID_TOKEN","Browser SDK requires a customer session");d.identify(t),m(!0)},reset(){d.reset(),m(!1)},async redeemReward(t){o(t);let e=s.redeemReward,p=e.request.safeParse({...t,requestId:t.requestId??crypto.randomUUID()});if(!p.success)throw new a("INVALID_REQUEST","Invalid reward redemption");let c=e.response.safeParse(await n(e.path,p.data));if(!c.success)throw new a("INVALID_RESPONSE","Invalid reward receipt");return c.data.redemption},async claimRewardProduct(t){o(t);let e=s.claimRewardProduct,p=e.request.safeParse(t);if(!p.success)throw new a("INVALID_REQUEST","Invalid reward product claim");let c=e.response.safeParse(await n(e.path,p.data));if(!c.success)throw new a("INVALID_RESPONSE","Invalid reward product checkout");return c.data.checkout},async createReferralCode(t){o(t);let e=s.createReferralCode,p=e.request.safeParse({...t,requestId:t.requestId??crypto.randomUUID()});if(!p.success)throw new a("INVALID_REQUEST","Invalid referral program");let c=e.response.safeParse(await n(e.path,p.data));if(!c.success)throw new a("INVALID_RESPONSE","Invalid referral code");return c.data.referralCode},async redeemCoupon(t,e=crypto.randomUUID()){let p=s.redeemCoupon,c=p.request.safeParse({code:t,requestId:e});if(!c.success)throw new a("INVALID_REQUEST","Invalid coupon code");let y=p.response.safeParse(await n(p.path,c.data));if(!y.success)throw new a("INVALID_RESPONSE","Invalid Coupon receipt");let w=y.data;return{offer:w.offer,reason:w.reason}},async listOffers(){let t=s.listOffers.response.safeParse(await n("offers",{},"GET"));if(!t.success)throw new a("INVALID_RESPONSE","Invalid offers response");return t.data.offers}}}async function Z(...r){return(await import("./paywall-HCADUT22.js")).showPaywall(...r)}async function $(...r){return(await import("./funnel-runtime-host-OJJSHKUD.js")).showFunnelRun(...r)}export{a as IndianaError,T as createFeatureClient,V as createFunnelClient,R as createFunnelRunController,H as createIndiana,F as createPaywallSession,_ as evaluateFunnelNode,S as formatCouponDiscount,O as formatCouponMoney,N as formatCouponTerms,$ as showFunnelRun,Z as showPaywall};
1
+ import{a as k,c as j,d as Z,e as $,f as Q}from"./chunk-G5ZGWOLJ.js";import{a as r,b}from"./chunk-CRJJ4EA2.js";import{Ka as H,La as K,Ma as Y,ok as V,qi as o,zk as B}from"./chunk-D37O6FAW.js";import"./chunk-MJG7X7LM.js";var M=s=>new TextEncoder().encode(JSON.stringify(s)).length;function z(s,y,n){let a=0,p=[],u=null,d,t=new Set;function e(){if(!y())throw new r("NOT_IDENTIFIED","Call identify before using Features or events")}function m(){d||!p.length||(d=setTimeout(()=>{d=void 0,F().catch(()=>{}).finally(m)},5e3),typeof d=="object"&&"unref"in d&&d.unref())}function f(i,v={}){e(),E();let g=o.trackEvents.request.parse({events:[{eventUuid:crypto.randomUUID(),timestamp:new Date().toISOString(),name:i,properties:v}]}).events[0];if(M({events:[g]})>6e4)throw new r("INVALID_REQUEST","Event exceeds the delivery size limit");if(p.length>=500)throw new r("EVENT_QUEUE_FULL","Flush pending events before tracking more");p.push(structuredClone(g)),m()}async function F(i=!1){if(e(),u)return u;let v=a,g=(async()=>{let P={inserted:0,duplicates:0,rejected:0},N=p.length;for(;N&&v===a;){let R=[];for(let T of p.slice(0,Math.min(N,100))){if(R.length&&M({events:[...R,T]})>6e4)break;R.push(T)}let A=o.trackEvents,C=A.response.parse(await s(A.path,A.request.parse({events:R}),A.method,{keepalive:i}));if(v!==a)throw new r("IDENTITY_CHANGED","Event identity changed during delivery");if(C.inserted+C.duplicates+C.rejected!==R.length)throw new r("INVALID_RESPONSE","Incomplete event acknowledgement");p.splice(0,R.length),N-=R.length,P.inserted+=C.inserted,P.duplicates+=C.duplicates,P.rejected+=C.rejected}return P})();u=g;try{return await g}finally{u===g&&(u=null)}}async function c(i={}){e();let v=a,g=!1,P=async()=>{if(g||v!==a)throw new r("IDENTITY_CHANGED","Feature identity changed");let h=o.getFeatures,I=h.response.parse(await s(h.path,h.request.parse({}),h.method));if(v!==a)throw new r("IDENTITY_CHANGED","Feature identity changed");if(n&&(I.scope.projectId!==n.projectId||I.scope.environment!==n.environment))throw new r("INVALID_RESPONSE","Feature response scope changed");return I},N=await P(),R=!0,A,C=h=>{try{i.onError?.(h)}catch{}},T=(h,I)=>{try{f(h,I)}catch(O){C(O)}},S=k({scope:N.scope,attributes:i.attributes,onError:i.onError,load:async()=>R?(R=!1,N.payload):(await P()).payload,evaluateRemote:async h=>{if(v!==a)throw new r("IDENTITY_CHANGED","Feature identity changed");let I=o.evaluateFeatures,O=I.response.parse(await s(I.path,I.request.parse(h),I.method));if(O.scope.projectId!==N.scope.projectId||O.scope.environment!==N.scope.environment)throw new r("INVALID_RESPONSE","Remote Feature response scope changed");return{generation:O.generation,evaluatedAt:O.evaluatedAt,expiresAt:O.expiresAt,features:O.features}},onExperimentViewed:(h,I)=>T("Experiment Viewed",{experimentId:h.key,variationId:I.key}),onFeatureUsage:(h,I)=>T("Feature Evaluated",{feature:h,value:I.value,source:I.source,ruleId:I.ruleId,...I.experimentResult?{variationId:I.experimentResult.key}:{}})}),G=S.refresh;function D(){clearTimeout(A),!(g||v!==a||!S.expiresAt)&&(A=setTimeout(()=>{_().catch(C)},Math.min(2147483647,Math.max(1e3,Date.parse(S.expiresAt)-Date.now()))),typeof A=="object"&&"unref"in A&&A.unref())}async function _(){try{return await G()}finally{D()}}let L=()=>{g||_().catch(C)},J=S.subscribe(D);function q(){g||(g=!0,clearTimeout(A),typeof window<"u"&&window.removeEventListener("focus",L),J(),S.reset(),t.delete(q))}t.add(q);try{await S.init()}catch(h){throw q(),h}return D(),typeof window<"u"&&window.addEventListener("focus",L),Object.assign(S,{refresh:_,destroy:q})}let w;function E(){if(w||typeof document>"u")return;let i=()=>{document.visibilityState==="hidden"&&y()&&p.length&&F(!0).catch(()=>{})};document.addEventListener("visibilitychange",i),w=()=>document.removeEventListener("visibilitychange",i)}return{features:c,track(i,v){return E(),f(i,v)},flush:F,reset(){a++,clearTimeout(d),d=void 0,p=[],u=null;for(let i of t)i();w?.(),w=void 0}}}function x(s){let{customerToken:y,...n}=s;return n}var W=s=>!(s instanceof r)||s.status===void 0||s.status>=500||[401,425].includes(s.status);function U(s){if(!/^gg_fr_[A-Za-z0-9_-]{43}$/.test(s.runToken))throw new r("INVALID_TOKEN","Run credential required");let y=b({...s,timeoutMs:s.timeoutMs??35e3});y.identify(s.runToken);let n,a=null,p=0,u=null,d=null,t=new Set;async function e(c,w){let E=p,i=B.parse(await y.request("funnels",V.parse(c)));if(E!==p)throw new r("IDENTITY_CHANGED","Run identity changed during the request");if(i.runToken&&i.runToken!==s.runToken)throw new r("INVALID_RESPONSE","Run credential changed");if(a&&(i.run.id!==a.id||i.run.source.type!==a.source.type||i.run.source.id!==a.source.id||i.run.source.versionId!==a.source.versionId||i.run.locale!==a.locale||!j(i.run.parameters,a.parameters)))throw new r("INVALID_RESPONSE","Run version changed");let v=w?.(i)??!1;if(!a||i.run.revision>=a.revision)a=i.run;else if(!v)return i;if(a)for(let g of t)try{g(structuredClone(a))}catch{}return i}async function m(){if(!u)throw new r("INVALID_REQUEST","No command is pending");let c=u,w=p,E={...u,...n?{customerToken:n}:{}};try{return await e(E,i=>w===p&&u===c&&i.run.pendingRequest?.requestId!==c.requestId?(u=null,!0):!1)}catch(i){throw w===p&&u===c&&!W(i)&&(u=null),i}}function f(c){let w=V.parse(c);if(w.operation==="start"||w.operation==="get")throw new r("INVALID_REQUEST","Mutation required");if(w.operation==="close"&&u?.operation!=="close"&&(u=null),u){if(JSON.stringify(x(u))!==JSON.stringify(x(w)))throw new r("COMMAND_PENDING","Retry the original command before sending another");if(d)return d}else u=w;let E=m();return d=E,E.then(()=>{d===E&&(d=null)},()=>{d===E&&(d=null)}),E}return{get view(){return a?structuredClone(a):null},get pendingCommand(){return u?structuredClone(x(u)):null},get webViewUrl(){return y.webViewUrl()},screenUrl(c){return y.screenUrl(c)},async get(c,w){return e({operation:"get",...c?{data:c}:{},...w?{purchase:w}:{},...n?{customerToken:n}:{}})},resume(c=a?.pendingRequest?.requestId){return c?u?.requestId===c?f(u):f({operation:"resume",requestId:c}):Promise.reject(new r("INVALID_REQUEST","No interrupted command is available"))},submit(c){return f(c)},retry(){return d||(u?f(u):Promise.reject(new r("INVALID_REQUEST","No command is pending")))},identify(c){if(!/^gg_ct_[A-Za-z0-9_-]{43}$/.test(c))throw new r("INVALID_TOKEN","Customer credential required");p++,n=c,y.identify(s.runToken)},subscribe(c){return t.add(c),()=>t.delete(c)},reset(){p++,n=void 0,a=null,u=null,d=null,y.reset(),t.clear()}}}function X(s){if(!/^gg_ct_[A-Za-z0-9_-]{32,128}$/.test(s.customerToken))throw new r("INVALID_TOKEN","A customer credential is required");if(!s.scope)throw new r("INVALID_REQUEST","An explicit App and environment scope is required");let y=Q({...s,scope:s.scope,apiKey:s.customerToken});return{async start(n){let a=await y.start(n),p=U({...s,runToken:a.runToken});return p.identify(s.customerToken),{...a,controller:p}}}}function l(s){if(s!==null&&typeof s=="object"&&"customerId"in s)throw new r("INVALID_REQUEST","Customer requests use the verified session identity")}function we(s){let y=b(s),n=y.request,a=!1,p=z(n,()=>a,s.scope),u=new Set,d=t=>{for(let e of u)try{e(t)}catch{}};return{async features(t={}){return p.features(t)},track(t,e){return p.track(t,e)},flush(){return p.flush()},async setupPayment(t){l(t);let e=o.setupPayment;return e.response.parse(await n(e.path,e.request.parse(t)))},async readPaymentSetup(t){l(t);let e=o.readPaymentSetup;return e.response.parse(await n(e.path,e.request.parse(t)))},async previewUpdate(t){l(t);let e=o.previewUpdate;return e.response.parse(await n(e.path,e.request.parse(t)))},async update(t){l(t);let e=o.update;return e.response.parse(await n(e.path,e.request.parse(t)))},async readSubscriptionUpdate(t){l(t);let e=o.readSubscriptionUpdate;return e.response.parse(await n(e.path,e.request.parse(t)))},async restoreNativePurchase(t){l(t);let e=o.restoreNativePurchase;return e.response.parse(await n(e.path,e.request.parse(t)))},async previewAttach(t){l(t);let e=o.previewAttach;return e.response.parse(await n(e.path,e.request.parse(t)))},async attach(t){l(t);let e=o.attach;return e.response.parse(await n(e.path,e.request.parse(t)))},async readSubscriptionOperation(t){l(t);let e=o.readSubscriptionOperation;return e.response.parse(await n(e.path,e.request.parse(t)))},async checkEntitlement(t){l(t);let e=o.checkEntitlement;return e.response.parse(await n(e.path,e.request.parse(t)))},async resolvePaywall(t){l(t);let e=o.resolvePaywall;return e.response.parse(await n(e.path,e.request.parse(t)))},async resolveOffering(t){l(t);let e=o.resolveOffering;return e.response.parse(await n(e.path,e.request.parse(t)))},async readHoldings(t={}){let e=o.readHoldings;return e.response.parse(await n(e.path,e.request.omit({customerId:!0}).parse(t)))},async readLedger(t){let e=o.readLedger;return e.response.parse(await n(e.path,e.request.parse({query:t})))},async readBillingInvoice(t){l(t);let e=o.readBillingInvoice;return e.response.parse(await n(e.path,e.request.parse(t)))},async readCreditStatement(t){l(t);let e=o.readCreditStatement;return e.response.parse(await n(e.path,e.request.parse(t)))},async quoteBalance(t){l(t);let e=o.quoteBalance;return e.response.parse(await n(e.path,e.request.parse({command:t})))},async readBillingControls(t={}){l(t);let e=o.readBillingControls;return e.response.parse(await n(e.path,e.request.parse(t)))},async prepareBillingAuthorization(t){l(t);let e=o.prepareBillingAuthorization;return e.response.parse(await n(e.path,e.request.parse(t)))},async confirmBillingAuthorization(t){l(t);let e=o.confirmBillingAuthorization;return e.response.parse(await n(e.path,e.request.parse(t)))},async setBillingCoupons(t){l(t);let e=o.setBillingCoupons,m=e.request.safeParse(t);if(!m.success)throw new r("INVALID_REQUEST","Invalid billing coupon list");let f=e.response.safeParse(await n(e.path,m.data));if(!f.success)throw new r("INVALID_RESPONSE","Invalid billing coupon receipt");return f.data},async revokeBillingAuthorization(t){l(t);let e=o.revokeBillingAuthorization;return e.response.parse(await n(e.path,e.request.parse(t)))},async listBillingInvoices(t={after:null,limit:25}){l(t);let e=o.listBillingInvoices;return e.response.parse(await n(e.path,e.request.parse(t)))},async confirmBillingAdjustment(t){l(t);let e=o.confirmBillingAdjustment;return e.response.parse(await n(e.path,e.request.parse(t)))},subscribeIdentity(t){return u.add(t),()=>{u.delete(t)}},identify(t){if(!/^gg_ct_[A-Za-z0-9_-]{43}$/.test(t))throw new r("INVALID_TOKEN","Browser SDK requires a customer session");p.reset(),y.identify(t),a=!0,d(!0)},reset(){a=!1,p.reset(),y.reset(),d(!1)},async redeemReward(t){l(t);let e=o.redeemReward,m=e.request.safeParse({...t,requestId:t.requestId??crypto.randomUUID()});if(!m.success)throw new r("INVALID_REQUEST","Invalid reward redemption");let f=e.response.safeParse(await n(e.path,m.data));if(!f.success)throw new r("INVALID_RESPONSE","Invalid reward receipt");return f.data.redemption},async claimRewardProduct(t){l(t);let e=o.claimRewardProduct,m=e.request.safeParse(t);if(!m.success)throw new r("INVALID_REQUEST","Invalid reward product claim");let f=e.response.safeParse(await n(e.path,m.data));if(!f.success)throw new r("INVALID_RESPONSE","Invalid reward product checkout");return f.data.checkout},async createReferralCode(t){l(t);let e=o.createReferralCode,m=e.request.safeParse({...t,requestId:t.requestId??crypto.randomUUID()});if(!m.success)throw new r("INVALID_REQUEST","Invalid referral program");let f=e.response.safeParse(await n(e.path,m.data));if(!f.success)throw new r("INVALID_RESPONSE","Invalid referral code");return f.data.referralCode},async redeemCoupon(t,e=crypto.randomUUID()){let m=o.redeemCoupon,f=m.request.safeParse({code:t,requestId:e});if(!f.success)throw new r("INVALID_REQUEST","Invalid coupon code");let F=m.response.safeParse(await n(m.path,f.data));if(!F.success)throw new r("INVALID_RESPONSE","Invalid Coupon receipt");let c=F.data;return{offer:c.offer,reason:c.reason}},async listOffers(){let t=o.listOffers.response.safeParse(await n("offers",{},"GET"));if(!t.success)throw new r("INVALID_RESPONSE","Invalid offers response");return t.data.offers}}}async function Ie(...s){return(await import("./paywall-Y3FIG43H.js")).showPaywall(...s)}async function ye(...s){return(await import("./funnel-runtime-host-X7AGEGHN.js")).showFunnelRun(...s)}export{r as IndianaError,k as createFeatureClient,X as createFunnelClient,U as createFunnelRunController,we as createIndiana,Z as createPaywallSession,$ as evaluateFunnelNode,K as formatCouponDiscount,H as formatCouponMoney,Y as formatCouponTerms,ye as showFunnelRun,Ie as showPaywall};