@tinkerlandai/longplay-sdk 0.10.57 → 0.10.59

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.
Files changed (103) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -0
  3. package/README.zh-CN.md +1 -0
  4. package/dist/check-response-K56UEZ6E.js +1 -0
  5. package/dist/{chunk-ANJPFGFN.js → chunk-2RFI2DEV.js} +1 -1
  6. package/dist/{chunk-EACC667P.js → chunk-32AEJKJW.js} +1 -1
  7. package/dist/{chunk-554BTJ3I.js → chunk-45PGU2HW.js} +1 -1
  8. package/dist/{chunk-M4P6TGBU.js → chunk-4OODZM64.js} +1 -1
  9. package/dist/{chunk-CJUODAOF.js → chunk-4SI4SQ3C.js} +1 -1
  10. package/dist/{chunk-OV46DXRX.js → chunk-5LNX7MHO.js} +1 -1
  11. package/dist/chunk-5MRSFLQA.js +1 -0
  12. package/dist/{chunk-6K6N5XLO.js → chunk-6426YKPK.js} +1 -1
  13. package/dist/{chunk-2NIMTHN7.js → chunk-66W37FEV.js} +1 -1
  14. package/dist/{chunk-2OBAMFGZ.js → chunk-725CAWOK.js} +1 -1
  15. package/dist/{chunk-PVMGYRGE.js → chunk-77O2O552.js} +1 -1
  16. package/dist/{chunk-IN32NWRI.js → chunk-7STWC4L4.js} +1 -1
  17. package/dist/{chunk-6HKQILBV.js → chunk-BJW4AXFL.js} +1 -1
  18. package/dist/{chunk-XHZH3E4G.js → chunk-C3HZCZVJ.js} +1 -1
  19. package/dist/{chunk-J4RM5GQP.js → chunk-DBYRJ4QV.js} +1 -1
  20. package/dist/{chunk-GGZG56GR.js → chunk-EB7MIZ4T.js} +1 -1
  21. package/dist/{chunk-YMRWDMIL.js → chunk-EE6QNOCL.js} +1 -1
  22. package/dist/{chunk-BX2MSRA4.js → chunk-EKUDMQXT.js} +1 -1
  23. package/dist/{chunk-FQJWNS4U.js → chunk-FBNEQ2K5.js} +1 -1
  24. package/dist/{chunk-NNJVMJUG.js → chunk-FQMZY5VP.js} +1 -1
  25. package/dist/{chunk-L64BS65O.js → chunk-HUYKZH3H.js} +1 -1
  26. package/dist/{chunk-OQ2E3JLZ.js → chunk-IMFPRZUY.js} +1 -1
  27. package/dist/chunk-J3RW4GMO.js +1 -0
  28. package/dist/{chunk-LENTXDGK.js → chunk-J5K4PNII.js} +1 -1
  29. package/dist/chunk-J7VGTAJ7.js +1 -0
  30. package/dist/{chunk-JJIP6BZL.js → chunk-JBSJ3JU2.js} +1 -1
  31. package/dist/{chunk-LOBZ45T3.js → chunk-JEDRJAJ5.js} +1 -1
  32. package/dist/{chunk-RJT764B2.js → chunk-KTWKDR5L.js} +1 -1
  33. package/dist/{chunk-725DCRIN.js → chunk-LUDTXNMH.js} +1 -1
  34. package/dist/{chunk-YA2XHXUS.js → chunk-MB2U2GWJ.js} +1 -1
  35. package/dist/{chunk-UJVNIA5Q.js → chunk-MZ6NEOOQ.js} +1 -1
  36. package/dist/{chunk-JXWZS4UM.js → chunk-NAFHQVSX.js} +1 -1
  37. package/dist/{chunk-ADTZEBQF.js → chunk-NDNHTG5B.js} +1 -1
  38. package/dist/{chunk-3LDOPWRV.js → chunk-O2V4MTM6.js} +1 -1
  39. package/dist/{chunk-R4BYUK7S.js → chunk-PGLBFTRK.js} +1 -1
  40. package/dist/{chunk-36VNAOG6.js → chunk-PJHTN5NJ.js} +1 -1
  41. package/dist/chunk-PTNMDAND.js +1 -0
  42. package/dist/{chunk-C4NXQMSO.js → chunk-R4CYPCBI.js} +1 -1
  43. package/dist/{chunk-OZK47BUU.js → chunk-RIEWU4MN.js} +1 -1
  44. package/dist/{chunk-NL7AXMUA.js → chunk-S5RM3VO6.js} +1 -1
  45. package/dist/{chunk-WE55LJEN.js → chunk-TK3WOD2O.js} +1 -1
  46. package/dist/chunk-U2NEVISJ.js +1 -0
  47. package/dist/{chunk-CAE4KIZN.js → chunk-VNYUL3PV.js} +1 -1
  48. package/dist/{chunk-HMJTABQ5.js → chunk-VPT5MFDG.js} +2 -2
  49. package/dist/{chunk-QGKROSRD.js → chunk-VXDVMAS6.js} +1 -1
  50. package/dist/{chunk-LOKH33KR.js → chunk-WUPNZGE2.js} +1 -1
  51. package/dist/{chunk-BKBWGPNR.js → chunk-XCFAKO23.js} +1 -1
  52. package/dist/chunk-XY2X6YJF.js +1 -0
  53. package/dist/{chunk-DHFJN4JM.js → chunk-YB3PQ75M.js} +2 -2
  54. package/dist/{chunk-73UFNVEP.js → chunk-ZCJEXNJD.js} +1 -1
  55. package/dist/{chunk-RRZZUIFM.js → chunk-ZRGL2CAP.js} +1 -1
  56. package/dist/content-5OMLKBPP.js +1 -0
  57. package/dist/funnel-host-purchase-53LYWG4V.js +1 -0
  58. package/dist/funnel-host-recovery-paywall-FC3XQU2U.js +1 -0
  59. package/dist/funnel-paywall-copies-U3JIYQJ5.js +1 -0
  60. package/dist/funnel-paywall-prerender-YCATKDAY.js +1 -0
  61. package/dist/funnel-route-prediction-XYWNKGQZ.js +1 -0
  62. package/dist/funnel-route-source-4ZVBFNYV.js +1 -0
  63. package/dist/funnel-runtime-host-LQ6X5B6R.js +1 -0
  64. package/dist/index.d.ts +795 -1
  65. package/dist/index.js +1 -1
  66. package/dist/merchant-bridge-contracts-IZ7ARRRO.js +1 -0
  67. package/dist/openrouter.js +1 -1
  68. package/dist/operation-contracts-6RQ33K66.js +1 -0
  69. package/dist/page.js +1 -1
  70. package/dist/paywall-KQIBPACY.js +1 -0
  71. package/dist/paywall-content-NQXU3O4D.js +1 -0
  72. package/dist/paywall-session-W42F6DIF.js +1 -0
  73. package/dist/popup.js +1 -1
  74. package/dist/react-native.js +1 -1
  75. package/dist/screen-renderer-2ZDV2WYD.js +1 -0
  76. package/dist/server.js +1 -1
  77. package/dist/{visual-dom-MH3JDJHJ.js → visual-dom-5LUN4AHO.js} +1 -1
  78. package/dist/visual.js +1 -1
  79. package/package.json +1 -1
  80. package/dist/check-response-MJHH5FWT.js +0 -1
  81. package/dist/chunk-5HYA7TBE.js +0 -1
  82. package/dist/chunk-5UVYLTM7.js +0 -1
  83. package/dist/chunk-AJVVXHP7.js +0 -1
  84. package/dist/chunk-NMBKBC7X.js +0 -1
  85. package/dist/chunk-UWMXBSYO.js +0 -1
  86. package/dist/content-3MNGXC7L.js +0 -1
  87. package/dist/funnel-host-purchase-H6BMFIXK.js +0 -1
  88. package/dist/funnel-host-recovery-paywall-UQC5FAL4.js +0 -1
  89. package/dist/funnel-paywall-prerender-XBEUY6CG.js +0 -1
  90. package/dist/funnel-route-prediction-ICGW4DPX.js +0 -1
  91. package/dist/funnel-route-source-64LTJZXN.js +0 -1
  92. package/dist/funnel-runtime-host-HEBLLPFC.js +0 -1
  93. package/dist/merchant-bridge-contracts-DEDEIYNU.js +0 -1
  94. package/dist/operation-contracts-RHJJI5NO.js +0 -1
  95. package/dist/paywall-HZVO7BDI.js +0 -1
  96. package/dist/paywall-content-KBHI22JD.js +0 -1
  97. package/dist/paywall-session-TS7G7OEM.js +0 -1
  98. package/dist/screen-renderer-XBWES3XN.js +0 -1
  99. /package/dist/{chunk-DLRCJF6U.js → chunk-CILM5XMH.js} +0 -0
  100. /package/dist/{chunk-VJIONC4S.js → chunk-OJM6ORHE.js} +0 -0
  101. /package/dist/{chunk-5YBTU4KS.js → chunk-PZTWDJHN.js} +0 -0
  102. /package/dist/{chunk-HMJTABQ5.js.LEGAL.txt → chunk-VPT5MFDG.js.LEGAL.txt} +0 -0
  103. /package/dist/{chunk-DHFJN4JM.js.LEGAL.txt → chunk-YB3PQ75M.js.LEGAL.txt} +0 -0
@@ -1 +0,0 @@
1
- import{b as xe}from"./chunk-PVMGYRGE.js";import{a as K}from"./chunk-36VNAOG6.js";import{D as J,F as Ge,c as Ne,e as M,j as je,u as De,v as Ve,x as He,z as Le}from"./chunk-6K6N5XLO.js";import{a as qe,b as Ae,c as Fe}from"./chunk-CAE4KIZN.js";import{K as G}from"./chunk-BX2MSRA4.js";import{a as ie}from"./chunk-ADTZEBQF.js";import{i as se}from"./chunk-OV46DXRX.js";import{A as oe,B as ae,C as Y,E as ke}from"./chunk-GGZG56GR.js";import{x as we}from"./chunk-NL7AXMUA.js";import{b as Ue}from"./chunk-5HYA7TBE.js";import{a as l}from"./chunk-WE55LJEN.js";import{h as re}from"./chunk-OZK47BUU.js";import{b as Te}from"./chunk-NMBKBC7X.js";import{b as r}from"./chunk-5YBTU4KS.js";import{a as ye}from"./chunk-DSPLGTQI.js";var P=G.options,nt=r.discriminatedUnion("operation",[P[1].omit({customerToken:!0}),P[2].omit({customerToken:!0}),P[3].omit({customerToken:!0}),P[4].omit({customerToken:!0}),P[5].omit({customerToken:!0}),P[6].omit({customerToken:!0}),P[7].omit({customerToken:!0}),P[8].omit({customerToken:!0}),je.omit({customerToken:!0})]),ge=r.strictObject({receiptId:r.uuid(),operationId:r.uuid()}),pt=r.discriminatedUnion("operation",[r.strictObject({operation:r.literal("find_purchase")}),r.strictObject({operation:r.literal("recover_start"),intent:r.enum(["lookup","resume","start"]),start:r.strictObject({requestId:P[0].shape.requestId,funnelId:P[0].shape.funnelId,locale:P[0].shape.locale,parameters:P[0].shape.parameters})}),r.strictObject({operation:r.literal("recover_run"),runId:r.uuid(),funnelId:r.uuid()}),r.strictObject({operation:r.literal("recover_purchase"),runId:r.uuid(),funnelId:r.uuid(),purchase:ge,includePaywallVersion:r.literal(!0).optional()}),r.strictObject({operation:r.literal("terminate_checkout"),runId:r.uuid(),funnelId:r.uuid(),purchase:ge}),r.strictObject({operation:r.literal("settle_command"),runId:r.uuid(),funnelId:r.uuid(),requestId:r.uuid(),command:r.discriminatedUnion("operation",[P[3].omit({customerToken:!0}),P[4].omit({customerToken:!0}),P[5].omit({customerToken:!0}),P[6].omit({customerToken:!0}),P[7].omit({customerToken:!0})]).optional()}).refine(a=>!a.command||a.requestId===a.command.requestId),r.strictObject({operation:r.literal("run_command"),runId:r.uuid(),funnelId:r.uuid(),command:nt})]),ue=r.strictObject({runId:r.uuid(),funnelId:r.uuid(),versionId:r.uuid(),startRequestId:r.uuid(),runExpiresAt:r.iso.datetime({offset:!0}),status:M.shape.run.shape.status}),V={scope:re,customerId:r.uuid()},Me=r.discriminatedUnion("outcome",[r.strictObject({...V,outcome:r.literal("unknown"),target:r.null(),view:r.null(),access:r.null()}),r.strictObject({...V,outcome:r.literal("resolved"),target:ue,view:M.shape.run.nullable(),access:r.discriminatedUnion("type",[r.strictObject({type:r.literal("customer")}),r.strictObject({type:r.literal("operation_only"),cause:r.enum(["run_terminal","run_expired","run_revoked","issuer_unavailable"])})])})]).superRefine((a,p)=>{a.outcome==="resolved"&&(a.access.type==="customer"!=(a.view!==null)||a.view&&(a.view.id!==a.target.runId||a.view.source.id!==a.target.funnelId||a.view.source.versionId!==a.target.versionId||a.view.status!==a.target.status||a.view.runExpiresAt!==a.target.runExpiresAt||a.view.credentialExpiresAt!==null))&&p.addIssue({code:"custom",message:"Recovery view and original Run binding differ"})}),ze=r.strictObject({...V,target:ue,view:M.shape.run.nullable(),settlement:r.strictObject({requestId:r.uuid(),state:r.enum(["pending","unknown","settled"]),acceptance:r.enum(["accepted","not_accepted","unknown"]),receiptPhase:r.enum(["accepted","processing","done"]).nullable(),basis:r.enum(["receipt","run_terminal","position_advanced","none"]),receiptId:r.uuid().nullable(),operationId:r.uuid().nullable()}),purchase:M.shape.purchase.unwrap().nullable()}).superRefine((a,p)=>{let f=a.settlement;(f.acceptance==="accepted"!=(f.receiptPhase!==null)||f.acceptance==="accepted"&&f.basis!=="receipt"||f.acceptance==="unknown"&&(f.state!=="unknown"||f.basis!=="none")||f.acceptance!=="accepted"&&(f.operationId!==null||f.receiptId!==null)||f.acceptance==="not_accepted"&&(f.state!=="settled"||!["run_terminal","position_advanced"].includes(f.basis))||a.purchase&&(a.purchase.receiptId!==f.receiptId||a.purchase.operation&&a.purchase.operation.operationId!==f.operationId||a.purchase.quote&&a.purchase.quote.operationId!==f.operationId)||a.view&&(a.view.id!==a.target.runId||a.view.source.id!==a.target.funnelId||a.view.source.versionId!==a.target.versionId||a.view.status!==a.target.status||a.view.runExpiresAt!==a.target.runExpiresAt||a.view.credentialExpiresAt!==null))&&p.addIssue({code:"custom",message:"Original command settlement binding differs"})}),Qe=r.strictObject({...V,target:ue,purchase:M.shape.purchase.unwrap(),paywallVersionId:r.uuid().optional()}).superRefine((a,p)=>{(!a.purchase.operation||typeof a.purchase.canReselect!="boolean"||a.purchase.quote&&a.purchase.quote.operationId!==a.purchase.operation.operationId)&&p.addIssue({code:"custom",message:"Original purchase proof is incomplete"})}),Be=r.discriminatedUnion("outcome",[r.strictObject({...V,outcome:r.literal("none")}),r.strictObject({...V,outcome:r.literal("blocked")}),r.strictObject({...V,outcome:r.literal("found"),target:ue,start:r.strictObject({locale:P[0].shape.locale,parameters:P[0].shape.parameters}),purchase:ge})]);var rt=G.options[0].refine(a=>!a.customer&&!a.customerData),ot=r.strictObject({receiptId:r.uuid(),operationId:r.uuid(),terminal:r.enum(["complete","native"]).nullable()}),Ye=r.strictObject({schemaVersion:r.literal(1),baseUrl:r.url(),scope:re,customerId:r.uuid(),sessionId:r.uuid(),start:rt,allowed:r.array(r.enum(["merchant","record_only","indiana","native"])),run:r.strictObject({id:r.uuid(),versionId:r.uuid(),status:Ne.shape.status,revision:r.number().int().nonnegative(),runExpiresAt:r.iso.datetime({offset:!0}).optional()}).optional(),purchases:r.array(ot).max(100),operationCommand:r.strictObject({operationId:r.uuid(),intent:r.literal("confirm")}).optional(),journal:r.strictObject({revision:r.number().int().nonnegative(),entry:De.nullable()})});function Je(a){return He({...a,namespace:"purchases",identity:[a.scope.projectId,a.scope.environment,a.customerId]})}function Ke(a){let p=new URL(a.baseUrl??Te).href,f=()=>new l("PURCHASE_STORAGE_INVALID","Purchase recovery storage is unavailable or invalid; native fallback is not authorized");async function S(){a.assertCurrent();try{let C=await a.storage.read();if(a.assertCurrent(),!Number.isSafeInteger(C.revision)||C.revision<0)throw f();let u=C.entry===null?null:Ye.parse(C.entry);if(u&&(u.baseUrl!==p||u.customerId!==a.customerId||u.scope.projectId!==a.scope.projectId||u.scope.environment!==a.scope.environment))throw new l("SCOPE_MISMATCH","Purchase recovery belongs to another Customer or environment");if(u?.journal.entry&&(u.journal.entry.scope.projectId!==u.scope.projectId||u.journal.entry.scope.environment!==u.scope.environment||u.journal.entry.funnelId!==u.start.funnelId||u.journal.entry.runId!==u.run?.id||u.journal.entry.versionId!==u.run?.versionId)||u?.operationCommand&&!u.purchases.some(_=>_.operationId===u.operationCommand?.operationId))throw f();return{revision:C.revision,entry:u}}catch(C){throw C instanceof l?C:f()}}async function $(C){for(let u=0;u<8;u++){let _=await S(),F=C(structuredClone(_.entry));if(JSON.stringify(F)===JSON.stringify(_.entry))return F;F&&Ye.parse(F),a.assertCurrent();let E;try{E=await a.storage.write(_.revision,F)}catch{throw f()}if(a.assertCurrent(),E!==null){if(!Number.isSafeInteger(E)||E<=_.revision)throw f();return F}}throw new l("PURCHASE_STORAGE_CONFLICT","Another consumer changed this purchase; recover the original attempt")}return{read:S,update:$,baseUrl:p}}var at=5*6e4;function it(a,p){let f=a.purchases.find(S=>S.type==="checkout");if(!a.actions.includes("continue_checkout")||f?.type!=="checkout"||p!==void 0&&f.operationId!==p)throw new l("PURCHASE_PENDING","No single resumable Checkout is confirmed");return f.checkoutUrl}function Vt(a){let p={...a,scope:{...a.scope},executionPolicy:structuredClone(a.executionPolicy)},f=p.session.snapshot();if(!f)throw new l("CUSTOMER_SESSION_REQUIRED","Purchase recovery requires a verified Customer session");let{customerId:S,sessionId:$}=f,C=!1,u=null,_,F=null,E=!1,j,W,X,b={mode:"idle",status:"idle",actions:["start"],purchases:[]},y=new Map,Pe=new Map,T=new Map,ce=new AbortController,Z=new Set,z=Ue(p),ee=xe(z.request);function Q(e){return{code:e instanceof l?e.code:"PURCHASE_RECOVERY_BLOCKED",message:e instanceof Error?e.message:"The original purchase requires server confirmation",...e instanceof l&&e.status!==void 0?{status:e.status}:{}}}function g(){if(C||p.session.snapshot()?.customerId!==S)throw new l("IDENTITY_CHANGED","The original purchase Customer changed")}let h=Ke({...p,customerId:S,assertCurrent:g,storage:p.storage??Je({baseUrl:p.baseUrl,scope:p.scope,customerId:S})}),$e=p.session.subscribeIdentity(ve);function ve(){C||(C=!0,clearTimeout(X),ce.abort(new l("IDENTITY_CHANGED","Purchase consumer was destroyed")),$e(),u?.reset(),u=null,F=null,z.dispose(),Z.clear(),y.clear(),T.clear())}function v(e){g();let t=JSON.stringify(e)!==JSON.stringify(b);b=e,clearTimeout(X),(e.mode==="operation"||e.mode==="run"&&!e.actions.includes("close"))&&["waiting_result","fulfillment","recording"].includes(e.status)&&(X=setTimeout(()=>{L().catch(()=>{})},5e3)),t&&ye(p.onRecovery,structuredClone(e));for(let n of t?Z:[]){if(C)break;ye(n,structuredClone(e))}return structuredClone(e)}function w(e){if(g(),!e||e.start.requestId!==_)throw new l("PURCHASE_STORAGE_CONFLICT","This purchase was superseded; the old consumer cannot dispatch")}function k(e){let t=[...e.purchases],n=e.journal.entry?.purchase;return n&&!t.some(o=>o.operationId===n.operationId)&&t.push({receiptId:n.receiptId,operationId:n.operationId,terminal:null}),t}function U(e){let t=k(e),n=E&&t.length>0&&t.every(o=>o.terminal==="native"&&x(y.get(o.operationId))==="native")&&t.some(o=>{let i=y.get(o.operationId);return!!i&&Y(i)&&T.get(o.operationId)===!0});return e.run&&(n||!["running","waiting"].includes(e.run.status))&&!e.journal.entry?.command&&!e.journal.entry?.closeCommand&&!e.operationCommand&&t.every(o=>o.terminal!==null)}function A(e,t){let n=e.journal.entry?.command??e.journal.entry?.closeCommand,o=k(e).map(I=>{let q=y.get(I.operationId);return I.terminal&&!q?{type:I.terminal,operationId:I.operationId}:ie({quote:q?.quote??null,operation:q??null,requestId:n?.requestId??null,pending:!1,destroyed:!1,canReselect:T.get(I.operationId)===!0})}),i=o.filter(I=>!["complete","native"].includes(I.type)),s=i[0],c=i.length===1&&s?.operationId?y.get(s.operationId):void 0;if(c&&(s?.type==="checkout"||s?.type==="cancel"))try{J({allowed:e.allowed.filter(I=>p.executionPolicy.allowed.includes(I))},c.quote)}catch(I){return{mode:t,status:"blocked",actions:["refresh",...t==="run"&&e.run&&["running","waiting"].includes(e.run.status)?["close"]:[]],purchases:o,error:Q(I)}}let m;if(t==="operation"&&!n&&s?.type==="cancel"&&c?.quote&&!c.problem&&!c.confirmedAt)try{J({allowed:e.allowed.filter(I=>p.executionPolicy.allowed.includes(I))},c.quote),Date.parse(c.quote.expiresAt)>Date.now()&&(m={operationId:c.operationId,quote:c.quote})}catch{}let d=o.length>0&&i.length===0,R=U(e)||t==="operation"&&d&&!n&&!e.operationCommand?"complete":s?.type==="checkout"?"checkout":s?.type==="fulfillment"?"fulfillment":s?.type==="recording"?"recording":n||e.operationCommand||s&&s.type!=="cancel"||t==="operation"&&!m?"waiting_result":"ready";return{mode:t,status:R,purchases:o,...m?{confirmation:structuredClone(m)}:{},actions:["refresh",...U(e)?["start"]:[],...t==="run"&&e.run&&["running","waiting"].includes(e.run.status)?["close"]:[],...e.operationCommand?["retry"]:m?["confirm"]:[],...i.length===1&&s?.type==="checkout"?["continue_checkout"]:[]]}}function x(e){let t=ie({quote:e?.quote??null,operation:e??null,requestId:null,pending:!1,destroyed:!1,canReselect:e&&T.get(e.operationId)===!0});return t.type==="complete"||t.type==="native"?t.type:null}function le(e){if(!e.operation)return;let t=oe.parse({...e.operation,...e.operation.quote?{}:e.quote?{quote:e.quote}:{}});if(t.merchantExecution&&t.merchantExecution.customerId!==S)throw new l("SCOPE_MISMATCH","Purchase execution belongs to another Customer");let n=se(y.get(t.operationId)??null,t);y.set(t.operationId,n),n===t&&T.set(t.operationId,e.canReselect===!0)}async function We(e){g();for(let n of[e.purchase,e.run.paywall])n&&le(n);let t=await h.update(n=>{if(w(n),n.run&&(n.run.id!==e.run.id||n.run.versionId!==e.run.source.versionId))throw new l("SCOPE_MISMATCH","The original purchase Run changed");let o=k(n);for(let i of[e.purchase,e.run.paywall]){let s=i?.operation?.operationId??i?.quote?.operationId;if(!i||!s)continue;let c=o.find(d=>d.operationId===s);if(c&&c.receiptId!==i.receiptId)throw new l("INVALID_RESPONSE","The original purchase Receipt changed");let m=x(y.get(s));c?c.terminal??=m:o.push({receiptId:i.receiptId,operationId:s,terminal:m})}return{...n,purchases:o,run:n.run&&(n.run.revision>e.run.revision||!["running","waiting"].includes(n.run.status)&&["running","waiting"].includes(e.run.status))?n.run:{id:e.run.id,versionId:e.run.source.versionId,status:e.run.status,revision:e.run.revision,runExpiresAt:e.run.runExpiresAt}}});w(t),t.run&&!["running","waiting"].includes(t.run.status)&&k(t).some(n=>!n.terminal)&&(t=await H(t,!t.journal.entry?.command&&!t.journal.entry?.closeCommand,new Set([e.purchase?.operation?.operationId,e.run.paywall?.operation?.operationId].filter(n=>!!n)))),w(t),v(A(t,"run"))}function Xe(){return{async read(){let{entry:e}=await h.read();return w(e),structuredClone(e.journal)},async write(e,t){let n=null;return await h.update(o=>{if(w(o),o.operationCommand&&t?.command&&t.command.operation!=="close")throw new l("PURCHASE_PENDING","Recover the original Operation command before dispatching a Run mutation");return n=null,o.journal.revision!==e?o:(n=e+1,{...o,journal:{revision:n,entry:t}})}),n}}}async function H(e,t=!1,n=new Set){w(e);let o=k(e);for(let s of o){if(s.terminal)continue;let c=n.has(s.operationId)?y.get(s.operationId):void 0;if(c??=await D(e,s),g(),c.operationId!==s.operationId)throw new l("INVALID_RESPONSE","Original Operation changed");if(c.merchantExecution&&c.merchantExecution.customerId!==S)throw new l("SCOPE_MISMATCH","Purchase execution belongs to another Customer");if(t&&!e.operationCommand&&ie({quote:c.quote??null,operation:c,requestId:null,pending:!1,destroyed:!1}).type==="cancel"){let m=Y(c)?await ee.update({operationId:s.operationId,intent:"cancel"}):await ee.attach({operationId:s.operationId,intent:"cancel"});if(c=oe.parse(m.operation),g(),c.operationId!==s.operationId)throw new l("INVALID_RESPONSE","Original cancellation Operation changed");c=await D(e,s)}y.set(s.operationId,se(y.get(s.operationId)??null,c))}let i=await h.update(s=>{w(s);let c=s.operationCommand&&y.get(s.operationCommand.operationId);return{...s,...c&&(c.confirmedAt||c.merchantExecution||!ke(c))?{operationCommand:void 0}:{},purchases:k(s).map(m=>({...m,terminal:m.terminal??x(y.get(m.operationId))}))}});return w(i),i}async function B(e){g();let t=await z.request("funnels",e);return g(),t}async function Ze(e){try{return await B(e)}catch(t){if(e.operation!=="recover_start"||e.intent!=="start"||!(t instanceof l)||t.status!==400||t.code!=="INVALID_REQUEST")throw t;return B({...e,intent:"resume"})}}async function et(){let e=K(Be,await B({operation:"find_purchase"}));if(e.customerId!==S||e.scope.projectId!==p.scope.projectId||e.scope.environment!==p.scope.environment)throw new l("SCOPE_MISMATCH","Recovery Customer or environment changed");if(e.outcome!=="found")return e.outcome;let{target:t,purchase:n}=e;return await h.update(o=>o&&!U(o)?o:{schemaVersion:1,baseUrl:h.baseUrl,scope:p.scope,customerId:S,sessionId:$,start:{operation:"start",requestId:t.startRequestId,funnelId:t.funnelId,...e.start},allowed:[...p.executionPolicy.allowed],run:{id:t.runId,versionId:t.versionId,status:t.status,revision:0,runExpiresAt:t.runExpiresAt},purchases:[{...n,terminal:null}],journal:{revision:0,entry:null}}),"found"}let te;function de(e){let t=te;if(t&&(!t.outcome||e&&t.outcome==="none"&&Date.now()-t.at<at))return t.job;let n={at:Date.now(),job:et().then(o=>(n.outcome=o,n.at=Date.now(),o),o=>{throw te===n&&(te=void 0),o})};return te=n,n.job}async function D(e,t,n="recover_purchase",o=!1){let i=K(Qe,await B({operation:n,runId:e.run.id,funnelId:e.start.funnelId,purchase:{receiptId:t.receiptId,operationId:t.operationId},...o?{includePaywallVersion:!0}:{}}));if(pe(e,i),i.purchase.receiptId!==t.receiptId||i.purchase.operation?.operationId!==t.operationId)throw new l("INVALID_RESPONSE","Original purchase reference changed");return le(i.purchase),o&&i.paywallVersionId&&Pe.set(t.operationId,i.paywallVersionId),y.get(t.operationId)}async function Se(e){for(let t of[e.journal.entry?.command,e.journal.entry?.closeCommand]){if(!t)continue;let n=K(ze,await B({operation:"settle_command",runId:e.run.id,funnelId:e.start.funnelId,requestId:t.requestId,...t.operation==="resume"?{}:{command:t}}));if(pe(e,n),n.settlement.requestId!==t.requestId)throw new l("INVALID_RESPONSE","Original command settlement changed");n.purchase&&le(n.purchase);let o=await h.update(i=>{w(i);let s=k(i),{receiptId:c,operationId:m}=n.settlement;if(c&&m){let R=s.find(I=>I.operationId===m);if(R&&R.receiptId!==c)throw new l("INVALID_RESPONSE","Original Receipt changed");R||s.push({receiptId:c,operationId:m,terminal:x(y.get(m))})}let d=n.settlement.state==="settled"?Ve(i.journal.entry,t.requestId):i.journal.entry;return{...i,purchases:s,journal:d===i.journal.entry?i.journal:{revision:i.journal.revision+1,entry:d}}});w(o),e=o}return e}function pe(e,t){if(t.customerId!==S||t.scope.projectId!==p.scope.projectId||t.scope.environment!==p.scope.environment||t.target.funnelId!==e.start.funnelId||t.target.startRequestId!==e.start.requestId||e.run&&(t.target.runId!==e.run.id||t.target.versionId!==e.run.versionId))throw new l("SCOPE_MISMATCH","The original recovery binding changed")}async function me(e,t){if(w(e),e.run&&(e=await Se(e)),!k(e).length&&U(e))return v(A(e,"operation"));if(!k(e).length)return v({mode:"blocked",status:"blocked",actions:["refresh"],purchases:[],error:Q(t)});E=!0;let n=k(e);if(e.run&&["running","waiting"].includes(e.run.status)&&n.every(i=>i.terminal==="native"))for(let i of n)x(y.get(i.operationId))!=="native"&&await D(e,i);let o=await H(e);return v(A(o,"operation"))}async function ne(e,t=!1,n=!0){if(_=e.start.requestId,F=structuredClone({requestId:e.start.requestId,funnelId:e.start.funnelId,locale:e.start.locale,parameters:e.start.parameters}),!u){let o=e.run?{operation:"recover_run",runId:e.run.id,funnelId:e.start.funnelId}:{operation:"recover_start",intent:t?"start":"lookup",start:{requestId:e.start.requestId,funnelId:e.start.funnelId,locale:e.start.locale,parameters:e.start.parameters}},i;try{i=await Ze(o)}catch(d){if(!e.run&&d instanceof l&&(d.status===void 0||d.status>=500))return v({mode:"blocked",status:"blocked",actions:["refresh","retry"],purchases:b.purchases,error:Q(d)});throw d}let s=K(Me,i);if(s.customerId!==S||s.scope.projectId!==p.scope.projectId||s.scope.environment!==p.scope.environment)throw new l("SCOPE_MISMATCH","Recovery Customer or environment changed");if(s.outcome==="unknown")return v({mode:"blocked",status:"blocked",actions:["refresh","retry"],purchases:b.purchases,error:{code:"RESULT_UNKNOWN",message:"The original Start outcome remains unknown; retry only its original input"}});pe(e,s);let c=await h.update(d=>(w(d),{...d,run:{id:s.target.runId,versionId:s.target.versionId,status:s.target.status,revision:s.view?.revision??d.run?.revision??0,runExpiresAt:s.target.runExpiresAt}}));if(w(c),e=c,s.access.type==="operation_only")return me(e,new l("RUN_RECONCILIATION_REQUIRED","Only the original command and Operation can be recovered"));e=await Se(e);let m=s.view;if(m.locale!==e.start.locale||!Le(m.parameters,e.start.parameters))throw new l("INVALID_RESPONSE","The original Start input changed");u=Ge({...p,customerRun:{runId:s.target.runId,customerId:S,startRequestId:e.start.requestId},funnelId:e.start.funnelId,funnelExecutionPolicy:{allowed:e.allowed.filter(d=>p.executionPolicy.allowed.includes(d))},funnelCommandStorage:Xe(),onAcceptedResponse:We},{scope:s.scope,run:m})}try{await u.get(),u.view?.pendingRequest?.requestId===e.start.requestId&&!u.pendingCommands?.length&&await u.resume(u.view.pendingRequest.requestId);for(let i of u.pendingCommands??[])i.operation!=="close"&&await u.settle?.(i.requestId);u.pendingCommands?.length&&await u.retry(),g();let o=(await h.read()).entry;return w(o),v(A(o,"run"))}catch(o){if(g(),n&&o instanceof l&&(o.status===401||o.status===409&&o.reason==="STATE_CHANGED")){u.reset(),u=null;let i=(await h.read()).entry;return w(i),ne(i,!1,!1)}throw o}}function N(e,t="read",n){if(g(),j)return t==="read"||t===W?j:j.then(()=>N(e,t,n),()=>N(e,t,n));clearTimeout(X);let o=e().catch(i=>{throw!C&&!n?.(i)&&v({mode:"blocked",status:"blocked",actions:["refresh"],purchases:b.purchases,error:Q(i)}),i});return j=o,W=t,o.then(()=>{j===o&&(j=void 0,W=void 0)},()=>{j===o&&(j=void 0,W=void 0)}),o}function L(){return N(async()=>{let{entry:e}=await h.read();if(!e||U(e)){if(await de(!1)==="blocked")return Ce();({entry:e}=await h.read())}return e?(_&&e.start.requestId!==_&&(u?.reset(),u=null,y.clear(),T.clear(),E=!1),E&&_===e.start.requestId?me(e,b.error):ne(e)):v({mode:"idle",status:"idle",actions:["start"],purchases:[]})})}function Ce(){return v({mode:"blocked",status:"blocked",actions:["refresh"],purchases:[],error:Q(new l("PURCHASE_PENDING","Check the outstanding purchases before starting another"))})}async function Re(){let e=await L();return e.mode==="operation"&&!e.actions.includes("confirm")&&!e.actions.includes("retry")?e:N(async()=>{let t=(await h.read()).entry;if(w(t),!E){if(!u?.view?.paywall?.quote)throw new l("PURCHASE_PENDING","Read the original quote before confirming");let d=u.view.paywall.operation;if(d?.confirmedAt||d?.merchantExecution||d&&!(Y(d)?["prepared","quoted"].includes(d.status):d.status==="pending"))return v(A(t,"run"));if(u.pendingCommands?.length)await u.retry();else{let I=u.view;await u.submit({operation:"submit",requestId:crypto.randomUUID(),nodeId:I.nodeId,visit:I.visit,revision:I.revision,input:{type:"paywall_confirm",operationId:I.paywall.quote.operationId,...I.paywall.quote.merchantTerms?{merchantConfirmation:we(I.paywall.quote.merchantTerms)}:{}}})}let R=(await h.read()).entry;return w(R),v(A(R,"run"))}let n=t.operationCommand?.operationId??b.confirmation?.operationId,o=n&&y.get(n);if(!n||!o||t.journal.entry?.command||t.journal.entry?.closeCommand)throw new l("PURCHASE_PENDING","The original Run command must be settled before Operation confirmation");J({allowed:t.allowed.filter(d=>p.executionPolicy.allowed.includes(d))},o.quote),await h.update(d=>{if(w(d),d.journal.entry?.command||d.journal.entry?.closeCommand||d.operationCommand&&d.operationCommand.operationId!==n)throw new l("PURCHASE_PENDING","Another original command is pending");return{...d,operationCommand:{operationId:n,intent:"confirm"}}});let i={operationId:n,intent:"confirm",...o.quote?.merchantTerms?{merchantConfirmation:we(o.quote.merchantTerms)}:{}},s=Y(o)?await ee.update(i):await ee.attach(i),c=oe.parse(s.operation);if(g(),s.operation.operationId!==n)throw new l("INVALID_RESPONSE","Original confirmation Operation changed");y.set(n,se(o,c));let m=(await h.read()).entry;return w(m),v(A(await H(m,!1,new Set([n])),"operation"))},"confirm")}function tt(e){let t=e?.quote;return t&&ae(t)&&t.timing==="immediate"&&t.execution.provider==="merchant"&&(e.confirmedAt||e.merchantExecution)?t:null}function Ee(){if(b.mode!=="operation"||b.status==="blocked")return null;let e=b.purchases.filter(({type:n})=>n!=="complete"&&n!=="native"),t=e.length===1&&e[0]?.operationId;return t?tt(y.get(t)):null}async function be(){g();let{entry:e}=await h.read();return e?U(e)?"finished":"pending":"none"}return{get controller(){return u},get recovery(){return structuredClone(b)},get attempt(){return g(),structuredClone(F)},get identitySignal(){return ce.signal},get customerId(){return S},retained:be,async findPurchase(){let e=await be();if(e==="pending")return e;let t=await de(!0);return g(),t==="none"?e:t},async readPaywall(e){g();let t=qe(e),[n,{readPaywallContent:o},{validateResourceCheck:i}]=await Promise.all([Ae(z.request,"resolvePaywall"),import("./paywall-content-KBHI22JD.js"),import("./check-response-MJHH5FWT.js")]);g();let s=n.request.parse({selector:t.paywallVersionId?{type:"version",versionId:t.paywallVersionId}:{type:"paywall",paywallId:t.paywallId},commerce:t.commerce,locale:t.locale}),c=await Fe(z.request,n,s);i(s,c.paywall.check,c.scope);let m=await o(p,c.paywall);if(g(),t.paywallVersionId?m.id!==t.paywallVersionId:m.paywallId!==t.paywallId)throw new l("INVALID_RESPONSE","The requested Paywall changed");return m},get canRestoreUpgradePaywall(){return Ee()!==null},recoverUpgradePaywall(){let e=Ee();return e?this.recoverPurchasePaywall(void 0,e.operationId):Promise.resolve(null)},async recoverPurchasePaywall(e,t){if(b.mode!=="operation"||b.status==="blocked")return null;let{entry:n}=await h.read();if(!n?.run)return null;w(n);let o=k(n),i=o.filter(O=>!O.terminal),s=o.filter(O=>O.terminal==="complete"),c=i.length===1?i[0]:i.length?void 0:s.find(O=>e&&e.runId===n.run?.id&&O.receiptId===e.receiptId)??(s.length===1?s[0]:void 0);if(!c||t&&c.operationId!==t)return null;let m=e?.runId===n.run.id&&e.receiptId===c.receiptId?e.view:void 0,d;try{d=await D(n,c,"recover_purchase",!0)}catch(O){if(!(O instanceof l&&O.status===400&&O.code==="INVALID_REQUEST"))throw O;if(!m)return null;d=await D(n,c)}let R=d.quote;if(!R||ae(R)&&(R.timing!=="immediate"||R.execution.provider!=="merchant")||!(d.confirmedAt||d.merchantExecution||d.checkoutUrl||x(d)==="complete"))return null;x(d)!=="complete"&&J({allowed:n.allowed.filter(O=>p.executionPolicy.allowed.includes(O))},R);let I=Pe.get(c.operationId),q=n.start.parameters?.commerce,Oe=n.start.locale??"en",fe=m;if(I){if(typeof q!="object"||!q||!("provider"in q)||typeof q.provider!="string"||!("currency"in q)||typeof q.currency!="string")return null;fe=await this.readPaywall({paywallVersionId:I,locale:Oe,commerce:{provider:q.provider,currency:q.currency,...ae(R)?{intent:"subscription_change"}:{}}})}if(!fe)return null;g();let _e=fe,he=!1,Ie=async()=>{throw new l("PURCHASE_PENDING","Only the original purchase can be recovered")};return{signal:ce.signal,view:_e,quote:R,locale:Oe,get operation(){return d},get canReselect(){return T.get(c.operationId)===!0},async refresh(){return _e},preview:Ie,confirm:Ie,cancel:Ie,async read(){if(he)throw new DOMException("Purchase view closed","AbortError");d=await D(n,c);let O=await H(n,!1,new Set([c.operationId]));return he||v(A(O,"operation")),structuredClone(d)},destroy(){he=!0}}},start(e){let t=G.parse({...structuredClone(e),operation:"start",requestId:e.requestId??crypto.randomUUID()});if(t.operation!=="start"||t.customer||t.customerData)throw new l("INVALID_REQUEST","A Customer-owned Funnel start is required");return N(async()=>{let n=(await h.read()).entry;if((!n||U(n))&&await de(!0)==="blocked")return Ce();let o=await h.update(i=>{if(i&&!U(i)){if(i.start.funnelId!==t.funnelId)throw new l("PURCHASE_PENDING","Recover the original Funnel before starting another purchase");return i}return{schemaVersion:1,baseUrl:h.baseUrl,scope:p.scope,customerId:S,sessionId:$,start:t,allowed:[...p.executionPolicy.allowed],purchases:[],journal:{revision:0,entry:null}}});if(!o)throw new l("PURCHASE_STORAGE_INVALID","Original start was not retained");return _!==o.start.requestId&&(u?.reset(),u=null,y.clear(),T.clear(),E=!1),E?me(o,b.error):ne(o,!0)},`start:${t.funnelId}`)},refresh:L,confirm:Re,retry:()=>E?Re():N(async()=>{let{entry:e}=await h.read();return e?ne(e,!0):v({mode:"idle",status:"idle",actions:["start"],purchases:[]})},"retry"),async close(){return u?.view?N(async()=>{if(!u?.view)throw new l("PURCHASE_PENDING","Recover the original Run before closing");if(u.pendingCommands?.find(n=>n.operation==="close"))await u.retry();else if(["running","waiting"].includes(u.view.status)){let n=u.view;await u.submit({operation:"close",requestId:crypto.randomUUID(),nodeId:n.nodeId,visit:n.visit,revision:n.revision})}let t=(await h.read()).entry;return w(t),v(A(t,"run"))},"close"):L()},async continueCheckout(e,t){let n=t?await N(async()=>{let{entry:o}=await h.read();if(w(o),!o.run||!k(o).some(s=>s.operationId===t&&!s.terminal))throw new l("PURCHASE_PENDING","The original Checkout changed");let i=await H(o);return v(A(i,E?"operation":"run"))},`continue:${t}`,o=>o instanceof l&&o.code==="PURCHASE_PENDING"):await L();g(),await e(it(n,t))},async terminateCheckout(e){let t=await L();if(!t.purchases.find(o=>o.type==="checkout"&&o.operationId===e)||!t.actions.includes("continue_checkout"))throw new l("PURCHASE_PENDING","The original Checkout has changed");return N(async()=>{let{entry:o}=await h.read();w(o);let i=k(o).find(c=>c.operationId===e&&!c.terminal);if(!i||!o.run)throw new l("PURCHASE_PENDING","The original Checkout has changed");await D(o,i,"terminate_checkout");let s=await H(o,!1,new Set([e]));return v(A(s,E?"operation":"run"))},`terminate:${e}`,o=>o instanceof l&&["CAPABILITY_UNAVAILABLE","NOT_CONFIGURED"].includes(o.code))},subscribe(e){return Z.add(e),()=>{Z.delete(e)}},destroy:ve}}export{Je as a,it as b,Vt as c};
@@ -1 +0,0 @@
1
- import{i as ie}from"./chunk-FQJWNS4U.js";import{a as Z,c as ee,e as te,f as ne,i as N,k as re,l as oe,m as se}from"./chunk-LENTXDGK.js";import{b as X}from"./chunk-YMRWDMIL.js";import{r as V}from"./chunk-EACC667P.js";import"./chunk-BX2MSRA4.js";import"./chunk-J4RM5GQP.js";import"./chunk-M4P6TGBU.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-5HYA7TBE.js";import"./chunk-L64BS65O.js";import{o as Y,p as K}from"./chunk-QGKROSRD.js";import{A as G}from"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import{c as $,d as R}from"./chunk-NNJVMJUG.js";import{a as p}from"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-NMBKBC7X.js";import{b as u}from"./chunk-5YBTU4KS.js";import{a as h}from"./chunk-DSPLGTQI.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";var z=new WeakMap;function ce(s){let t={string:u.string(),number:u.number().finite(),boolean:u.boolean(),strings:u.array(u.string()),json:R}[s.type];return s.nullable?t.nullable():t}function ae(s,t){let f=u.record(u.string(),R).parse(s);if(Object.keys(f).length>40)throw new p("INVALID_REQUEST","Too many content inputs");for(let[m,r]of Object.entries(f))Y.parse({[m]:r});if(Object.keys(f).some(m=>!Object.hasOwn(t.inputs,m)))throw new p("INVALID_REQUEST","Undeclared content input");for(let[m,r]of Object.entries(t.inputs))if(Object.hasOwn(f,m))ce(r).parse(f[m]);else if(r.required)throw new p("INVALID_REQUEST",`Missing content input ${m}`);return f}async function Ae(s,t){return le(s,t,!1)}async function Se(s,t){return le(s,t,!0)}async function le(s,t,f){t.signal?.throwIfAborted();let m=X.parse(t.content),r=m.document;if(t.closeControl==="content"&&!r.screen.actions.some(e=>e.type==="event"&&e.close))throw new p("INVALID_REQUEST","An authored Close control requires a declared Close action");if(z.has(s))throw new p("CONFLICT","Content is already mounted in this container");let y=ae(t.inputs??{},r.contract),T=new Set(u.array(u.string()).max(40).parse(t.mutableInputs??[]));if(T.size!==(t.mutableInputs?.length??0)||[...T].some(e=>!Object.hasOwn(r.contract.inputs,e)))throw new p("INVALID_REQUEST","Mutable content inputs must name unique declared inputs");for(let e of Object.keys(r.contract.outputs))if(typeof t.actions[e]!="function")throw new p("INVALID_REQUEST",`Missing host handler for ${e}`);let M=K.parse(t.bindings??[]),d=s.ownerDocument,ue=s.clientHeight||d.defaultView?.innerHeight||800,P,w,a,_,x=r.kind==="popup",n=x?d.createElement("dialog"):null,c=d.createElement("div");if(c.dataset.indianaContent=r.kind,c.setAttribute("aria-label",r.name),c.style.cssText="width:100%;min-width:0",n){n.setAttribute("aria-label",r.name);let e=r.screen.presentation;n.style.cssText="box-sizing:border-box;padding:0;border:0;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto",e.type==="modal"||e.type==="sheet"?(n.style.width=`${$[e.size]}px`,e.type==="sheet"&&(n.style.margin="auto auto 0")):n.style.width="100vw",a=ee(n,r.screen,()=>{w?.resizeViewport(d.defaultView?.innerHeight||800,d.defaultView?.innerWidth||1024)}),n.append(c),s.append(n)}else s.append(c);let i=!1,A=!1,E=!1,S=!1,de=n?oe(n):se(c,s),D=re(s,t,r.kind,()=>{k()&&(b(),h(t.onDismiss))}),q,H,L=new Promise((e,o)=>{q=e,H=o});L.catch(()=>{});let g=null,I=structuredClone(r.screen),W=G(I,[t.locale,...d.defaultView?.navigator.languages??[]]),j=t.capabilities;I.actions=I.actions.map(e=>e.type==="event"?{...e,close:!1}:e);function b(){i||(i=!0,t.signal?.removeEventListener("abort",b),D.finish("dismissed"),H(new Error("Content preparation cancelled")),a?.destroy(),_?.(),w?.destroy(),n?.close(),n?.remove(),c.remove(),z.delete(s),n&&P?.())}let v=()=>{!E||!k()||(b(),h(t.onDismiss))};function k(){try{return t.canDismiss?.()!==!1}catch(e){return h(t.onError,e),!1}}if(n&&t.closeControl!=="content"){let e=d.createElement("button");e.type="button",e.textContent="×",e.setAttribute("aria-label",t.locale?.startsWith("zh")?"关闭":"Close"),ne(e,r.screen.theme),e.addEventListener("click",v),n.prepend(e)}n&&a?.responsive&&(_=Z(n,v,k,t.locale?.startsWith("zh")?"关闭":"Close"),n.addEventListener("click",e=>{if(e.target!==n)return;let o=n.getBoundingClientRect();(e.clientX<o.left||e.clientX>o.right||e.clientY<o.top||e.clientY>o.bottom)&&v()})),n?.addEventListener("cancel",e=>{e.preventDefault(),v()}),n?.addEventListener("keydown",e=>{e.key==="Escape"&&(e.preventDefault(),v())});async function F(){if(i||!E||A||!g)return;let e=g;A=!0,c.setAttribute("aria-busy","true");try{await t.actions[e.actionId](structuredClone(e)),g=null}catch(o){i||h(t.onError,o)}finally{A=!1,i||c.removeAttribute("aria-busy")}}function J(){if(i)throw new p("CONFLICT","Content host has been destroyed");E||!S||(P??=N(d),D.present(e=>{de(),n&&(a?.latch(),n.showModal(),a?.responsive&&n.focus({preventScroll:!0}),!e&&t.loading!=="host"&&te(n,a?.type??r.screen.presentation.type,a?.responsive)),E=!0}))}function U(e){D.finish("error",e),H(e instanceof Error?e:new Error(String(e))),b()}let Q={destroy:b,show:J,get pendingAction(){return g?structuredClone(g):null},retryAction:F,updateInputs(e){if(i)throw new p("CONFLICT","Content host has been destroyed");let o=u.record(u.string(),R).parse(e),C=ae({...y,...o},r.contract);for(let l of Object.keys(o))if(!T.has(l)&&(!Object.hasOwn(y,l)||V(y[l])!==V(C[l])))throw new p("PRECONDITION_FAILED","This content input is frozen; prepare a new presentation");V(y)!==V(C)&&(w?.update(I,W,{capabilities:j,serverInput:{bindings:M,answers:{},values:C}}),y=C)},updateCapabilities(e){if(i)return;let o=structuredClone(e);w?.updateCapabilities(o),j=o}};z.set(s,Q),t.signal?.addEventListener("abort",b,{once:!0});try{if(t.signal?.throwIfAborted(),f||(P=N(d),D.start(x,t.locale??r.screen.strings.defaultLocale),i&&await L),w=ie(c,{mode:"live",rendererUrl:t.rendererUrl,title:r.name,viewportHeight:r.kind==="page"?ue:a?.responsive?d.defaultView?.innerHeight||800:void 0,...a?.responsive?{viewportWidth:d.defaultView?.innerWidth||1024,hostPresentation:()=>a.type}:{},onResize:e=>{i||a?.responsive&&(c.style.height=`${e}px`,c.style.overflow="clip",a.setContentHeight(e))},onRendered:e=>{if(!i&&(e&&n?.setAttribute("aria-label",e),!S))try{S=!0,f||J(),q()}catch(o){U(o),h(t.onError,o)}},onError:e=>{if(i)return;let o=new Error(e);S||U(o),h(t.onError,o)},onEscape:x?v:void 0,onAction:(e,o,C)=>{if(i||!E||A||g)return;let l=r.screen.actions.find(O=>O.id===e),B=r.contract.outputs[e];if(!(l?.type!=="event"||!B)&&!(l.close&&!k()))try{let O=ce(B).parse(Object.hasOwn(l.properties,"value")?l.properties.value:l.properties);g=structuredClone({requestId:crypto.randomUUID(),contentVersionId:m.id,actionId:e,event:l.event,value:O,selection:o??{},answers:C??{},requestedClose:l.close}),F()}catch(O){h(t.onError,O)}}}),w.update(I,W,{capabilities:j,serverInput:{bindings:M,answers:{},values:y}}),await Promise.race([w.ready,L]),f&&await L,i)throw new Error("Content preparation cancelled");return Q}catch(e){throw U(e),e}}export{Ae as mountContent,Se as prepareContent};
@@ -1 +0,0 @@
1
- import{b as ne}from"./chunk-3LDOPWRV.js";import{b as j}from"./chunk-5UVYLTM7.js";import"./chunk-C4NXQMSO.js";import"./chunk-JJIP6BZL.js";import"./chunk-R4BYUK7S.js";import{a as re}from"./chunk-UJVNIA5Q.js";import{a as z}from"./chunk-OQ2E3JLZ.js";import{b as te}from"./chunk-UWMXBSYO.js";import"./chunk-554BTJ3I.js";import"./chunk-AEQUKR4O.js";import"./chunk-W32FI2A2.js";import{j as O,k as V}from"./chunk-LENTXDGK.js";import"./chunk-PVMGYRGE.js";import"./chunk-36VNAOG6.js";import"./chunk-6K6N5XLO.js";import"./chunk-73UFNVEP.js";import"./chunk-CAE4KIZN.js";import"./chunk-725DCRIN.js";import"./chunk-6HKQILBV.js";import"./chunk-EACC667P.js";import"./chunk-BX2MSRA4.js";import"./chunk-LOBZ45T3.js";import"./chunk-J4RM5GQP.js";import"./chunk-ADTZEBQF.js";import"./chunk-OV46DXRX.js";import"./chunk-M4P6TGBU.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-5HYA7TBE.js";import"./chunk-L64BS65O.js";import"./chunk-QGKROSRD.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import{a as C}from"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-SLUA7ABW.js";import"./chunk-YA2XHXUS.js";import"./chunk-3VUPVXAV.js";import"./chunk-NMBKBC7X.js";import"./chunk-5YBTU4KS.js";import{a as h}from"./chunk-DSPLGTQI.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";var k=new WeakMap,_=new WeakMap,B=new WeakSet;function he(D,e){let P=e.hostPaywallTarget?void 0:e.prepared,J=()=>{e.prepared&&!B.has(e.prepared)&&j(e.prepared)?.release()},K=k.get(e.client);if(K)return J(),K;let Q=n=>({...n,requestId:n.requestId??crypto.randomUUID()}),R=e.allowNewPurchase!==!1&&e.start instanceof Promise?e.start:void 0,m=e.allowNewPurchase===!1||!e.start||e.start instanceof Promise?void 0:Q(e.start);m&&P?.state==="ready"&&P.matches(m)&&P.open();let f=P&&(m&&(P.state==="preparing"||["shown","closed"].includes(P.state)&&P.matches(m))||R&&["preparing","ready"].includes(P.state))?P:void 0;f?B.add(f):J();let y=f&&j(f);y?.claim();let S=Promise.resolve().then(async()=>{let n=!1,c,p=!1,U,g=0,E,q,X=!1,F=()=>{},Y=()=>{},H,L=!1,M=!1,I,Z=!1,a=e.signal?AbortSignal.any([e.signal,e.client.identitySignal]):e.client.identitySignal,v=()=>{k.get(e.client)===S&&k.delete(e.client),a.removeEventListener("abort",A),F(),Y(),f&&B.delete(f),y?.release()};function $(){if(I)return I;let t=new Promise(o=>I=o);return _.set(e.client,t),t.then(()=>{_.get(e.client)===t&&_.delete(e.client)}),k.get(e.client)===S&&k.delete(e.client),I}let l=V(D,e,"funnel",()=>b(),z);function A(){b()}function b(t=!1){if(!n){if(n=!0,l.finish("dismissed"),c){c.destroy();return}if(t&&H){let o=$();Z=!0,H.then(async i=>{i.mode==="run"&&i.status!=="blocked"&&e.client.controller&&e.client.attempt?.requestId===m?.requestId&&await e.client.close()}).catch(()=>{}).finally(()=>{o(),h(e.onDismiss,null)}),v();return}v(),h(e.onDismiss,null)}}let N={destroy:()=>b(),refresh:()=>E??(p?G():c?.refresh())??Promise.resolve(),get recovery(){return c?.recovery??{type:"recover",operationId:null,requestId:null}},prepareFallback:()=>c?.prepareFallback()??Promise.resolve({type:"recover",operationId:null,requestId:null}),review:(...t)=>c?.review(...t)??Promise.resolve(),exitReview:(...t)=>c?.exitReview(...t)??Promise.resolve(),get unappliedDrafts(){return c?.unappliedDrafts??new Map}};a.addEventListener("abort",A,{once:!0}),y&&(Y=y.onClose(()=>{L?n||$():b(!0)}));try{a.throwIfAborted();let t=e.client.controller?.view?.paywall?.resolution,o=t&&"document"in t?t.document:e.loadingDocument;l.start(!0,m?.locale??e.client.attempt?.locale??o?.screen.strings.defaultLocale,o??null);let i=R?l.wait(R.then(r=>r?Q(r):null,()=>null),O):Promise.resolve(m??null);i.catch(()=>{}),f?.state==="shown"?(M=!0,l.present(()=>{})):f&&["preparing","ready"].includes(f.state)&&Promise.all([f.ready,i.catch(()=>null)]).then(([r,s])=>{if(r){if(n||!l.active||!s||!f.matches(s)||!y?.revealable)return y?.release();l.present(()=>{f.open()==="shown"?M=!0:y.release()})}});let d=_.get(e.client);if(d&&await l.wait(d),n)return null;if(a.throwIfAborted(),R){let r=await i;if(n)return null;if(a.throwIfAborted(),!r)return l.finish("skipped"),v(),null;m=r}H=m?e.client.start(m):e.client.refresh();let u=await l.wait(H,O);return n?null:(a.throwIfAborted(),await ee(u,l))}catch(t){if(Z||I?.(),n)return null;throw l.finish("error",t),v(),h(e.onError,t),t}function x(t=!1){g++;let o=c;c=void 0,F(),F=()=>{};let i=t?o?.retainPurchaseDialog?.():void 0;return o?.destroy(),a.addEventListener("abort",A,{once:!0}),i}function T(t){p=!0;let o=e.client.attempt?.locale??m?.locale,i=o?.startsWith("zh"),d=t?i?"正在查询原订单…":"Checking your purchase…":i?"暂时无法确认原订单,请重试。":"Could not check your original purchase. Try again.",u=t?void 0:()=>{G()};c?.setPurchaseRecovery?.(d,u)||(c&&x(),l.active||(l=V(D,e,"funnel",()=>b(),z),l.start(!0,o,e.loadingDocument??null)),l.setPurchaseRecovery(d,u))}function G(){if(E)return E;if(n||a.aborted)return Promise.resolve();U??=c?.recoveryPaywall,a.addEventListener("abort",A,{once:!0}),T(!0);let t=Promise.resolve().then(async()=>{try{let i=await l.wait(e.client.refresh(),O);!n&&!a.aborted&&await ee(i,l)}catch(i){!n&&!a.aborted&&(h(e.onError,i),T(!1))}});E=t;let o=()=>{E===t&&(E=void 0)};return t.then(o,o),t}async function ee(t,o){let i=e.client.controller;if(t.mode==="run"&&t.status!=="blocked"&&i)return p&&c&&x(),p=!1,U=void 0,ae(i,o?.active?o:void 0);if(t.mode==="operation"&&t.purchases.length){T(!0);let d=await l.wait(e.client.recoverPurchasePaywall(U).then(u=>((n||a.aborted)&&u?.destroy(),u)),O).catch(u=>(!n&&!a.aborted&&h(e.onError,u),null));if(n||a.aborted)return null;if(d){if(n||a.aborted)return d.destroy(),null;let u=x(!0)??y?.retainPurchaseDialog?.()??l.retainPurchaseDialog();y?.release();let r=await re(D,{signal:a,loading:"host",start:async()=>d,checkoutNavigation:"after_confirmation",allowNewPurchase:!1,resumeCheckout:w=>e.client.continueCheckout(W,w),onError:e.onError,onDismiss:()=>{n||b()}},{retainedDialog:u,present(w){l.active?l.present(w):w(!!u)},async dismiss(){b()}});if(!r.host||n||a.aborted)return r.host?.destroy(),u?.release(),v(),null;let s=r.host;return p=!1,c={destroy(){s.destroy(),v(),h(e.onDismiss,null)},refresh:async()=>{await s.refresh()},get recovery(){return s.recovery},prepareFallback:()=>s.prepareFallback(),review:async()=>{},exitReview:async()=>{},unappliedDrafts:new Map},N}}return t.purchases.length||p?(T(!1),N):(l.finish("skipped"),v(),(M||L)&&(n=!0,h(e.onDismiss,null)),null)}function W(t){if(a.throwIfAborted(),n)throw new DOMException("Presentation dismissed","AbortError");return e.onCheckoutUrl?e.onCheckoutUrl(t):D.ownerDocument.defaultView?.location.assign(t)}async function ae(t,o){a.removeEventListener("abort",A),L=!0;function i(){!n&&!a.aborted&&!p&&!X&&q&&e.client.recovery.status==="complete"&&(X=!0,h(e.onComplete,structuredClone(q)))}F(),F=e.client.subscribe(i);let d=++g,u=await ne(D,{...e,prepared:f,client:t,signal:a,checkoutNavigation:"after_confirmation",resumeCheckout:r=>e.client.continueCheckout(W,r),terminateCheckout:e.allowNewPurchase===!1?void 0:r=>e.client.terminateCheckout(r),async onCheckoutUrl(r){if(a.throwIfAborted(),n)throw new DOMException("Presentation dismissed","AbortError");let s=e.client.recovery;if((!s.actions.includes("continue_checkout")||!s.purchases.some(w=>w.type==="checkout"&&w.checkoutUrl===r))&&(s=await e.client.refresh(),a.throwIfAborted(),n))throw new DOMException("Presentation dismissed","AbortError");if(te(s)!==r)throw new C("PURCHASE_PENDING","Checkout differs from the original recovery proof");return W(r)},async resolveOfferId(r){if(a.throwIfAborted(),n)throw new DOMException("Presentation dismissed","AbortError");let s=e.client.attempt;if(!s)throw new C("PURCHASE_PENDING","Read the original Start before selecting an offer");let w=await e.resolveOfferId?.(r,s);if(a.throwIfAborted(),n)throw new DOMException("Presentation dismissed","AbortError");if(e.client.attempt?.requestId!==s.requestId)throw new C("PURCHASE_STORAGE_CONFLICT","The original purchase changed while selecting an offer");return w},async resolveSubscriptionChange(r){a.throwIfAborted();let s=e.client.attempt;if(n||!s)throw new C("PURCHASE_PENDING","Read the original Start before selecting a membership");let w=await e.resolveSubscriptionChange?.(r);if(a.throwIfAborted(),n||e.client.attempt?.requestId!==s.requestId)throw new C("PURCHASE_STORAGE_CONFLICT","The original purchase changed while selecting a membership");return w},onPresentationState(r){d===g&&h(e.onPresentationState,r)},onComplete(r){d===g&&(q=r,i())},onError(r){d===g&&(h(e.onError,r),r instanceof C&&(r.status===401||r.status===409&&r.reason==="STATE_CHANGED"&&r.recovery==="recover_operation")&&!a.aborted&&G().catch(s=>h(e.onError,s)))},onDismiss(r){d===g&&(n=!0,v(),I?.(),h(e.onDismiss,r))}},o);return d!==g||n||a.aborted?(u.destroy(),n||a.aborted?null:N):(c=u,N)}});return k.set(e.client,S),S}export{he as showFunnelPurchase};
@@ -1 +0,0 @@
1
- import{a as A}from"./chunk-C4NXQMSO.js";import{a as E}from"./chunk-UJVNIA5Q.js";import"./chunk-OQ2E3JLZ.js";import"./chunk-AEQUKR4O.js";import"./chunk-W32FI2A2.js";import{g as S}from"./chunk-LENTXDGK.js";import"./chunk-BX2MSRA4.js";import"./chunk-J4RM5GQP.js";import"./chunk-ADTZEBQF.js";import"./chunk-OV46DXRX.js";import{b as C}from"./chunk-M4P6TGBU.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-5HYA7TBE.js";import"./chunk-L64BS65O.js";import{t as k}from"./chunk-QGKROSRD.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import{a as i}from"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-NMBKBC7X.js";import"./chunk-5YBTU4KS.js";import"./chunk-DSPLGTQI.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";async function V(d,e){if(!d.closest("dialog")?.open)return null;let r=AbortSignal.any([e.signal,e.client.identitySignal]);r.throwIfAborted();let a=e.operationId?await e.client.recoverPurchasePaywall(void 0,e.operationId):await e.client.recoverPurchasePaywall();if(!a)return null;let w=a.view;if(!w||w.document.presentation.type!=="modal"||r.aborted)return a.destroy(),null;let l=e.upgradeReplacement,c=a,f=c,h,R=l?new Proxy(a,{get(o,t){let s=f[t];return typeof s=="function"?s.bind(f):s}}):a;async function U(o,t){if(r.throwIfAborted(),!l||c.operation?.operationId!==o||!c.canReselect)throw new i("PURCHASE_PENDING","The original upgrade has not been closed");if(!h){let n=await l.start();if(!n)throw new i("PRODUCT_UNAVAILABLE","The selected upgrade is unavailable");if(n.funnelId!==e.client.attempt?.funnelId)throw new i("SCOPE_MISMATCH","The new upgrade belongs to another Funnel");h={...n,requestId:n.requestId??crypto.randomUUID()}}r.throwIfAborted();let s=await e.client.start(h),g=e.client.controller;if(s.mode!=="run"||s.status!=="ready"||!g?.view?.paywall)throw new i("PURCHASE_PENDING","The current Paywall could not be opened for the replacement");let p=await A(g);try{r.throwIfAborted();let n=p.view,b=n?.document.buttons[t.actionId],I=n&&b?.type==="checkout"?C(b.product,t.selection,n.capabilities):null;if(!n||I!==t.productVersionId)throw new i("PRODUCT_UNAVAILABLE","The selected upgrade is no longer available");let v=k(n.document.screen,I,t.selection,n.capabilities);if(Object.keys(v).length!==Object.keys(t.featureQuantities).length||Object.entries(v).some(([T,D])=>t.featureQuantities[T]!==D))throw new i("PRODUCT_UNAVAILABLE","The selected upgrade quantities have changed");return f=p,c.destroy(),n}catch(n){throw p.destroy(),n}}let m=S(d);if(!m)return a.destroy(),null;let u,O=new Promise(o=>{u=o}),y=!1,P=()=>u(!1);r.addEventListener("abort",P,{once:!0});try{let{host:o}=await E(d,{signal:r,start:async()=>R,loading:"host",checkoutNavigation:"after_confirmation",allowNewPurchase:!1,...l&&{beforeCheckoutReplacement:l.beforeCheckoutReplacement,resolveOfferId:l.resolveOfferId,resolveSubscriptionChange:l.resolveSubscriptionChange,terminateCheckout:t=>e.client.terminateCheckout(t),prepareUpgradeReplacement:U},resumeCheckout:t=>e.client.continueCheckout(e.onCheckoutUrl,t),onComplete:e.onComplete,onError(t){y?e.onError?.(t):u(!1)}},{retainedDialog:m,present(t){t(!0),y=!0,u(!0)},async dismiss(){e.onDismiss()}});return!o||!await O||r.aborted?(o?.destroy(),null):{document:w.document,destroy:()=>o.destroy()}}finally{r.removeEventListener("abort",P)}}export{V as mountFunnelRecoveryPaywall};
@@ -1 +0,0 @@
1
- import{a,b,c}from"./chunk-5UVYLTM7.js";import"./chunk-JJIP6BZL.js";import"./chunk-R4BYUK7S.js";import"./chunk-LOBZ45T3.js";import"./chunk-J4RM5GQP.js";import"./chunk-OV46DXRX.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-L64BS65O.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-5YBTU4KS.js";import"./chunk-DSPLGTQI.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{a as PRERENDER_MAX_AGE_MS,b as preparedInternals,c as prerenderFunnelPurchase};
@@ -1 +0,0 @@
1
- import{a,b,c}from"./chunk-JJIP6BZL.js";import"./chunk-R4BYUK7S.js";import"./chunk-LOBZ45T3.js";import"./chunk-J4RM5GQP.js";import"./chunk-VILB5M4X.js";import"./chunk-NNJVMJUG.js";import"./chunk-5YBTU4KS.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{a as predictFunnelStart,c as predictedPaywallLoadingDocument,b as predictionRefusal};
@@ -1 +0,0 @@
1
- import{a as e,b as o,c as n}from"./chunk-R4BYUK7S.js";import"./chunk-LOBZ45T3.js";import"./chunk-J4RM5GQP.js";import"./chunk-VILB5M4X.js";import"./chunk-NNJVMJUG.js";import"./chunk-5YBTU4KS.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{e as FUNNEL_ROUTE_LIMITS,o as funnelRouteSchema,n as projectFunnelRoute};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-3LDOPWRV.js";import"./chunk-5UVYLTM7.js";import"./chunk-C4NXQMSO.js";import"./chunk-JJIP6BZL.js";import"./chunk-R4BYUK7S.js";import"./chunk-OQ2E3JLZ.js";import"./chunk-554BTJ3I.js";import"./chunk-AEQUKR4O.js";import"./chunk-W32FI2A2.js";import"./chunk-LENTXDGK.js";import"./chunk-73UFNVEP.js";import"./chunk-BX2MSRA4.js";import"./chunk-LOBZ45T3.js";import"./chunk-J4RM5GQP.js";import"./chunk-ADTZEBQF.js";import"./chunk-OV46DXRX.js";import"./chunk-M4P6TGBU.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-5HYA7TBE.js";import"./chunk-L64BS65O.js";import"./chunk-QGKROSRD.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-SLUA7ABW.js";import"./chunk-YA2XHXUS.js";import"./chunk-NMBKBC7X.js";import"./chunk-5YBTU4KS.js";import"./chunk-DSPLGTQI.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{a as showFunnelRun,b as showObservedFunnelRun};
@@ -1 +0,0 @@
1
- import{P as r,Q as m,j as e}from"./chunk-NL7AXMUA.js";import"./chunk-L64BS65O.js";import"./chunk-BKBWGPNR.js";import"./chunk-OZK47BUU.js";import"./chunk-5YBTU4KS.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{m as merchantBridgeCommerceSchema,r as merchantBridgeOperationSchema,e as merchantOperationLookupSchema};
@@ -1 +0,0 @@
1
- import{e as o}from"./chunk-JXWZS4UM.js";import"./chunk-YMRWDMIL.js";import"./chunk-CJUODAOF.js";import"./chunk-6HKQILBV.js";import"./chunk-EACC667P.js";import"./chunk-BX2MSRA4.js";import"./chunk-J4RM5GQP.js";import"./chunk-M4P6TGBU.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-ANJPFGFN.js";import"./chunk-L64BS65O.js";import"./chunk-QGKROSRD.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import"./chunk-OZK47BUU.js";import"./chunk-5YBTU4KS.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{o as apiOperations};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-UJVNIA5Q.js";import"./chunk-OQ2E3JLZ.js";import"./chunk-W32FI2A2.js";import"./chunk-LENTXDGK.js";import"./chunk-ADTZEBQF.js";import"./chunk-OV46DXRX.js";import"./chunk-M4P6TGBU.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-5HYA7TBE.js";import"./chunk-L64BS65O.js";import"./chunk-QGKROSRD.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-NMBKBC7X.js";import"./chunk-5YBTU4KS.js";import"./chunk-DSPLGTQI.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{a as showPaywall};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-725DCRIN.js";import"./chunk-6HKQILBV.js";import"./chunk-EACC667P.js";import"./chunk-BX2MSRA4.js";import"./chunk-J4RM5GQP.js";import"./chunk-M4P6TGBU.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-5HYA7TBE.js";import"./chunk-L64BS65O.js";import"./chunk-QGKROSRD.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-3VUPVXAV.js";import"./chunk-NMBKBC7X.js";import"./chunk-5YBTU4KS.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{a as readPaywallContent};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-2NIMTHN7.js";import"./chunk-JXWZS4UM.js";import"./chunk-YMRWDMIL.js";import"./chunk-CAE4KIZN.js";import"./chunk-CJUODAOF.js";import"./chunk-XHZH3E4G.js";import"./chunk-725DCRIN.js";import"./chunk-6HKQILBV.js";import"./chunk-EACC667P.js";import"./chunk-BX2MSRA4.js";import"./chunk-J4RM5GQP.js";import"./chunk-ADTZEBQF.js";import"./chunk-OV46DXRX.js";import"./chunk-M4P6TGBU.js";import"./chunk-GGZG56GR.js";import"./chunk-NL7AXMUA.js";import"./chunk-VILB5M4X.js";import"./chunk-ANJPFGFN.js";import"./chunk-5HYA7TBE.js";import"./chunk-L64BS65O.js";import"./chunk-QGKROSRD.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-3VUPVXAV.js";import"./chunk-NMBKBC7X.js";import"./chunk-5YBTU4KS.js";import"./chunk-DSPLGTQI.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{a as createPaywallSession};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e,f,g,h,i}from"./chunk-FQJWNS4U.js";import"./chunk-LENTXDGK.js";import"./chunk-QGKROSRD.js";import"./chunk-RRZZUIFM.js";import"./chunk-RJT764B2.js";import"./chunk-BKBWGPNR.js";import"./chunk-NNJVMJUG.js";import"./chunk-WE55LJEN.js";import"./chunk-OZK47BUU.js";import"./chunk-5YBTU4KS.js";import"./chunk-DSPLGTQI.js";import"./chunk-HMJTABQ5.js";import"./chunk-DLRCJF6U.js";import"./chunk-WOT6VMZA.js";export{f as formatCustomerDecimal,b as hostedRendererScript,a as hostedRendererShell,d as inspectCustomHtml,i as mountScreenPreview,h as preparePopup,e as prepareScreen,c as sanitizeCustomHtml,g as showPopup};
File without changes
File without changes
File without changes