@tinkerlandai/longplay-sdk 0.10.58 → 0.10.60
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/CHANGELOG.md +8 -0
- package/README.md +2 -1
- package/README.zh-CN.md +2 -1
- package/dist/{ai-usage-DBcYB8ix.d.ts → ai-usage-DM3jAubK.d.ts} +1 -1
- package/dist/{api-1Tplv-7M.d.ts → api-KIp0I50M.d.ts} +21 -21
- package/dist/check-response-K56UEZ6E.js +1 -0
- package/dist/{chunk-ZG3EYP5L.js → chunk-2KM537QH.js} +1 -1
- package/dist/{chunk-GCTD4RXV.js → chunk-2RFI2DEV.js} +1 -1
- package/dist/{chunk-KXA4JHFW.js → chunk-32AEJKJW.js} +1 -1
- package/dist/{chunk-XQAGF6SQ.js → chunk-45PGU2HW.js} +1 -1
- package/dist/{chunk-P2JQEGYV.js → chunk-4OODZM64.js} +1 -1
- package/dist/{chunk-YJ2IOBHW.js → chunk-4SI4SQ3C.js} +1 -1
- package/dist/{chunk-4VZCPOVE.js → chunk-5LNX7MHO.js} +1 -1
- package/dist/chunk-5MRSFLQA.js +1 -0
- package/dist/{chunk-AIRW6CZ7.js → chunk-5QVMWM2X.js} +1 -1
- package/dist/chunk-6TETQL5Z.js +1 -0
- package/dist/{chunk-LDNDI6G3.js → chunk-77O2O552.js} +1 -1
- package/dist/{chunk-4UOJT46E.js → chunk-7GIP3RNR.js} +1 -1
- package/dist/{chunk-RXEYS3X5.js → chunk-7STWC4L4.js} +1 -1
- package/dist/{chunk-EHYW66EH.js → chunk-BJW4AXFL.js} +1 -1
- package/dist/{chunk-227Z7LU4.js → chunk-C3HZCZVJ.js} +1 -1
- package/dist/{chunk-YIHMOK6T.js → chunk-DBYRJ4QV.js} +1 -1
- package/dist/{chunk-NQZ23AGQ.js → chunk-EB7MIZ4T.js} +1 -1
- package/dist/{chunk-G2JC7G3R.js → chunk-EE6QNOCL.js} +1 -1
- package/dist/{chunk-PZTFSADV.js → chunk-EKUDMQXT.js} +1 -1
- package/dist/{chunk-T7AK4QLG.js → chunk-FQMZY5VP.js} +1 -1
- package/dist/{chunk-6VWVBQFR.js → chunk-HUYKZH3H.js} +1 -1
- package/dist/{chunk-EP2L4VTS.js → chunk-IM5OXTEH.js} +1 -1
- package/dist/{chunk-4BHGHPI5.js → chunk-J4JJZN24.js} +1 -1
- package/dist/{chunk-GIX2F53I.js → chunk-JBSJ3JU2.js} +1 -1
- package/dist/{chunk-6HNCADWS.js → chunk-JEDRJAJ5.js} +1 -1
- package/dist/chunk-KBST6VBH.js +1 -0
- package/dist/{chunk-2PY7INHO.js → chunk-KTWKDR5L.js} +1 -1
- package/dist/{chunk-46MFVWRW.js → chunk-MB2U2GWJ.js} +1 -1
- package/dist/{chunk-NFZUVZJP.js → chunk-NAFHQVSX.js} +1 -1
- package/dist/{chunk-NPKNI2UD.js → chunk-NDNHTG5B.js} +1 -1
- package/dist/{chunk-XQJW2RXY.js → chunk-PGLBFTRK.js} +1 -1
- package/dist/{chunk-D26ZQC46.js → chunk-PJHTN5NJ.js} +1 -1
- package/dist/chunk-QJPH7AFI.js +1 -0
- package/dist/chunk-QXDLOPZK.js +1 -0
- package/dist/{chunk-PYTI77BV.js → chunk-R4CYPCBI.js} +1 -1
- package/dist/{chunk-LB2ZRTRA.js → chunk-RIEWU4MN.js} +1 -1
- package/dist/{chunk-GLVCBJL5.js → chunk-RUGB7NAN.js} +1 -1
- package/dist/chunk-S24PK62Y.js +1 -0
- package/dist/chunk-S3QZOIUO.js +1 -0
- package/dist/{chunk-IJQFSZQG.js → chunk-S55446VK.js} +1 -1
- package/dist/{chunk-QA3LXFSK.js → chunk-S5RM3VO6.js} +1 -1
- package/dist/chunk-TBXHEGSY.js +1 -0
- package/dist/{chunk-Y2DUFDPV.js → chunk-TK3WOD2O.js} +1 -1
- package/dist/{chunk-WILVPHE6.js → chunk-UM5R4RNN.js} +2 -2
- package/dist/{chunk-RSKDG2VD.js → chunk-VNYUL3PV.js} +1 -1
- package/dist/{chunk-LTWU7HH5.js → chunk-VXDVMAS6.js} +1 -1
- package/dist/{chunk-XBF44N3Z.js → chunk-XCFAKO23.js} +1 -1
- package/dist/{chunk-RB2SBQMM.js → chunk-XZLGDFZ4.js} +1 -1
- package/dist/{chunk-XH2JMWC6.js → chunk-ZCJEXNJD.js} +1 -1
- package/dist/{chunk-NTYIQ5YC.js → chunk-ZRGL2CAP.js} +1 -1
- package/dist/{configuration-sync-DeWWW5za.d.ts → configuration-sync-Dad8B5Pv.d.ts} +3 -3
- package/dist/content-IFXC4OBS.js +1 -0
- package/dist/funnel-host-purchase-NS7FJH2F.js +1 -0
- package/dist/funnel-host-recovery-paywall-R4QGRGIJ.js +1 -0
- package/dist/{funnel-local-client-Fxsyl7rh.d.ts → funnel-local-client-Cb9jJGpo.d.ts} +53 -53
- package/dist/funnel-paywall-copies-U3JIYQJ5.js +1 -0
- package/dist/funnel-paywall-prerender-5NVQIQIV.js +1 -0
- package/dist/{funnel-process-client-D9saqPse.d.ts → funnel-process-client-DE650LzB.d.ts} +28 -28
- package/dist/funnel-route-prediction-XYWNKGQZ.js +1 -0
- package/dist/funnel-route-source-4ZVBFNYV.js +1 -0
- package/dist/funnel-runtime-host-6VL6UAF5.js +1 -0
- package/dist/index.d.ts +805 -13
- package/dist/index.js +1 -1
- package/dist/merchant-bridge-contracts-IZ7ARRRO.js +1 -0
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +3 -3
- package/dist/openrouter.js +1 -1
- package/dist/operation-contracts-6RQ33K66.js +1 -0
- package/dist/page.d.ts +2 -2
- package/dist/page.js +1 -1
- package/dist/paywall-47DXK7WR.js +1 -0
- package/dist/paywall-content-MNMF4QKA.js +1 -0
- package/dist/paywall-session-APGD7FZ5.js +1 -0
- package/dist/popup.d.ts +23 -3
- package/dist/popup.js +1 -1
- package/dist/{presentation-loading-CjljfuJq.d.ts → presentation-loading-B8W6a9WB.d.ts} +10 -46
- package/dist/react-native.d.ts +7 -7
- package/dist/react-native.js +1 -1
- package/dist/screen-renderer-3YO6EUWD.js +1 -0
- package/dist/server.d.ts +10 -10
- package/dist/server.js +1 -1
- package/dist/visual.js +1 -1
- package/package.json +1 -1
- package/dist/check-response-EYOK5EU5.js +0 -1
- package/dist/chunk-6PVQF4FJ.js +0 -1
- package/dist/chunk-6UQ7BKSR.js +0 -1
- package/dist/chunk-F4E42S54.js +0 -1
- package/dist/chunk-HIH6IEV7.js +0 -1
- package/dist/chunk-QY5TS3OY.js +0 -1
- package/dist/chunk-UB5SVEM6.js +0 -1
- package/dist/chunk-XFOU4DZG.js +0 -1
- package/dist/content-2SRJS3E3.js +0 -1
- package/dist/funnel-host-purchase-PBCM5VL5.js +0 -1
- package/dist/funnel-host-recovery-paywall-7Z4VOQCV.js +0 -1
- package/dist/funnel-paywall-prerender-4J5EFPFQ.js +0 -1
- package/dist/funnel-route-prediction-4CW6WOJY.js +0 -1
- package/dist/funnel-route-source-UM5O7FJS.js +0 -1
- package/dist/funnel-runtime-host-F6B7XCVB.js +0 -1
- package/dist/merchant-bridge-contracts-YVMAYBE2.js +0 -1
- package/dist/operation-contracts-WX2HYHD5.js +0 -1
- package/dist/paywall-PWWDHKVH.js +0 -1
- package/dist/paywall-content-DSZJWOTF.js +0 -1
- package/dist/paywall-session-OOXP3SRE.js +0 -1
- package/dist/screen-renderer-WZFPWLB5.js +0 -1
- package/dist/{chunk-COMZFFUA.js → chunk-PZTWDJHN.js} +0 -0
- package/dist/{chunk-WILVPHE6.js.LEGAL.txt → chunk-UM5R4RNN.js.LEGAL.txt} +0 -0
- package/dist/{funnel-node-evaluation-CRRTh1je.d.ts → funnel-node-evaluation-COIh1hKs.d.ts} +3 -3
- package/dist/{screen-D2bUmJ4M.d.ts → screen-Pv_pViF6.d.ts} +21 -21
package/dist/chunk-HIH6IEV7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as Bn}from"./chunk-QY5TS3OY.js";import{a as wn}from"./chunk-PYTI77BV.js";import{a as _n,b as Un,c as fn,d as mn,e as $e,f as Vn,h as $n,i as Mn,j as xn,k as zn}from"./chunk-6UQ7BKSR.js";import{a as Jn}from"./chunk-XQAGF6SQ.js";import{a as Sn}from"./chunk-W32FI2A2.js";import{c as On,e as qn,f as Ln,i as Hn,j as He,k as nn,l as Nn,m as tn}from"./chunk-EP2L4VTS.js";import{b as An}from"./chunk-XH2JMWC6.js";import{a as pn,d as Dn}from"./chunk-NPKNI2UD.js";import{C as Tn}from"./chunk-NTYIQ5YC.js";import{a as ne}from"./chunk-Y2DUFDPV.js";import{a as Ie}from"./chunk-DSPLGTQI.js";function Gn(i){let E=new Set,U=new Set,n=null;async function p(a,f){let L=!1;for(;!i.stopped&&i.key===a&&i.client.pendingCommand?.requestId===f;){if(!i.client.settle)throw new ne("COMMAND_PENDING","The original display acknowledgement is still pending");await i.client.settle(f),L=!0,i.client.pendingCommand?.requestId===f&&await new Promise(H=>setTimeout(H,1500))}i.stopped||i.key!==a||(L&&await i.client.get(),!(i.stopped||i.key!==a)&&E.add(a))}function k(a,f){n=f;let L=()=>{n===f&&(n=null),U.delete(a)};return f.then(L,H=>{L(),i.busy||i.fail(H)}),f}function V(a){if(i.reviewing||E.has(a)||U.has(a)||i.stopped)return;U.add(a);let f=async()=>{if(i.reviewing||i.stopped||i.key!==a||E.has(a)){U.delete(a);return}if(i.busy||i.client.pendingCommand){setTimeout(()=>{f()},250);return}let L=(async()=>{if(i.staleRead){if(await i.staleRead,i.stopped||i.key!==a)return;if(i.client.pendingCommand){setTimeout(()=>{f()},250);return}}let H=i.client.view,oe=i.expected(),u=oe.requestId;try{await i.client.submit({operation:"shown",...oe})}catch(P){if(!(P instanceof ne)||P.code!=="CONFLICT"||P.status!==409||i.client.pendingCommand)throw P;await i.client.get();let s=i.client.view;if(i.stopped||i.reviewing||i.key!==a||!s||!H||s.id!==H.id||s.source.versionId!==H.source.versionId||s.nodeId!==oe.nodeId||s.visit!==oe.visit||s.revision<=oe.revision||s.stopped||!s.screen&&(!s.paywall||s.paywall.receiptId!==H.paywall?.receiptId)||!["running","waiting"].includes(s.status)||i.client.pendingCommand)throw P;let r=i.expected();u=r.requestId,await i.client.submit({operation:"shown",...r})}await p(a,u)})();k(a,L)};f()}function D(){if(n)return n;let a=i.client.pendingCommand;if(a?.operation!=="shown")return null;let f=i.key;return U.add(f),k(f,(async()=>{await i.client.retry(),await p(f,a.requestId)})())}return{report:V,settled:D,get inFlight(){return n}}}function Qn(i){let E={},U=new Map;async function n(p){let k=i.client.view,V=k?.screen,D=V?.customerData.nodes[p.nodeId];if(i.stopped||i.busy||!k||!V||!D)return;if(!["refresh","next","previous","filter","sources_next","sources_previous"].includes(p.action)){let P=i.document,s=P?Tn(P,p.nodeId):null,r=s?.type==="customer_data"?s.data.outputs?.[p.action]:void 0;r&&V.outputs.includes(r)?await i.perform(()=>i.client.submit({operation:"submit",...i.expected(),input:{type:"screen",output:r,answers:i.answers,selection:p.value?{[p.nodeId]:p.value}:{}}})):await i.onIntent?.(p,k);return}let f=p.action.startsWith("sources_")?D.resources.find(P=>P.key===p.value):null;if(p.action.startsWith("sources_")&&!f)throw new ne("INVALID_REQUEST","Choose a current resource");let L=`${k.visit}:${p.nodeId}:${f?.key??""}`,H=U.get(L)??[null],u=E[p.nodeId]??{page:1,after:null,filter:"all",...f?{resourceKey:f.key}:{}};if(p.action==="filter"){let P=p.value;if(!P||!(D.source==="offer_history"?["all","issued","reserved","redeemed","expired","revoked"]:["all","purchase","refund","source","usage","debt","settlement"]).includes(P))throw new ne("INVALID_REQUEST","Unknown data filter");u={page:1,after:null,filter:P},H.splice(0,H.length,null)}else if(p.action==="next"||p.action==="sources_next"){let P=f?.sources.at(-1),s=f?P?{kind:"ledger",cursor:{at:P.detail[0],id:P.id,type:"source"}}:null:V.dataCursors[p.nodeId];if(!s||!f&&!D.hasNext)return;H[u.page]=s,u={...u,page:u.page+1,after:s}}else if(p.action==="previous"||p.action==="sources_previous"){if(u.page<=1)return;u={...u,page:u.page-1,after:H[u.page-2]??null}}U.set(L,H),E={...E,[p.nodeId]:u},await i.perform(()=>i.client.get({nodeId:k.nodeId,visit:k.visit,revision:k.revision,components:E}))}return{get queries(){return E},intent:n,reset(){E={},U.clear()}}}function Wn(i){let{doc:E,holder:U,reviewHolder:n,mountScreenPreview:p}=i,k=!1,V,D=0,a=null,f="",L,H=new Map,oe=s=>s?`${s.id}:${s.nodeId}:${s.visit}:${s.revision}:${s.paywall?.quote?.operationId??""}`:"";async function u(s){if(i.stopped||!i.client.review||k&&s===V&&L?.active)return;let r=!k||s!==V;k||(f=oe(i.client.view),H.set(f,structuredClone(i.answers))),k=!0,V=s,U.hidden=!0,i.suspend(!0),n.hidden=!1;let S=++D;r&&(L?.finish("dismissed"),a?.destroy(),a=null,n.replaceChildren(),L=nn(n,i.loadingOptions,"funnel",()=>{P()}));let A=r?L:void 0;try{if(A?.start(!1,i.client.view?.locale),S!==D||i.stopped)return;let de=i.client.review(s),N=await(A?.wait(de,He)??de);if(i.stopped||S!==D||!k)return;if(!N.review)throw new ne("INVALID_RESPONSE","Historical projection is missing");a?.destroy(),a=null,A||n.replaceChildren();let Q=E.createElement("div"),W=A?tn(Q,n):()=>{};n.append(Q);let O=N.run.locale.startsWith("zh"),g=i.chrome;Q.style.cssText=g.history;let j=E.createElement("p");j.textContent=O?"只读回看":"Read-only history",j.style.cssText=g.historyTitle,Q.append(j);let F=E.createElement("p");F.style.cssText=g.historyNote,F.textContent=N.review.pages.length?O?"选择一页查看当时的内容,回看不会改动任何信息。":"Choose a page to see it as it was. Nothing here can be changed.":O?"还没有可回看的页面。":"There are no earlier pages yet.",Q.append(F);let Te=N.review.page?.receiptId,ve=E.createElement("div");ve.style.cssText=g.historyPages;for(let[K,R]of N.review.pages.entries()){let v=E.createElement("button");v.type="button",v.textContent=O?`第 ${K+1} 页`:`Page ${K+1}`;let he=Te!==void 0&&R.receiptId===Te;v.style.cssText=he?g.primary:g.secondary,he&&v.setAttribute("aria-current","page"),$e(v,()=>i.chrome.focus),v.onclick=()=>{u(R.receiptId)},ve.append(v)}if(ve.childElementCount&&Q.append(ve),N.review.page){let K=N.review.page,R=E.createElement("div");R.inert=!0,R.style.cssText=g.historyPage,Q.append(R),a=p(R,{mode:"live",rendererUrl:i.client.webViewUrl,title:K.document.name,onAction:()=>{},onAnswers:()=>{},onCustomerDataIntent:()=>{},onRendered:()=>{S===D&&!i.stopped&&A?.present(W)},onError:he=>{if(S!==D||i.stopped)return;let Ce=new Error(he);A?.finish("error",Ce),a?.destroy(),a=null,Q.remove(),i.fail(Ce)},onEscape:()=>{P()}});let v=a;if(v.update(K.document,N.run.locale,{serverInput:{bindings:K.inputs,answers:K.answers,values:K.values}}),await v.ready,i.stopped||S!==D||!k)return}let me=O?{issued:"已领取",reserved:"已预留",redeemed:"已使用",expired:"已过期",revoked:"已撤销",unknown:"状态待确认"}:{issued:"Issued",reserved:"Reserved",redeemed:"Used",expired:"Expired",revoked:"Revoked",unknown:"Status unconfirmed"},z=E.createElement("div");z.style.cssText=g.historyRecords;for(let K of[...N.review.coupons.map((R,v)=>`${O?"优惠券":"Coupon"} ${v+1}: ${me[R.status]}`),...N.review.purchases.map((R,v)=>`${O?"购买":"Purchase"} ${v+1}: ${zn(R.status,O)}`)]){let R=E.createElement("p");R.textContent=K,R.style.margin="0",z.append(R)}z.childElementCount&&Q.append(z),N.review.page||A?.present(W),i.client.view&&await i.enqueue(i.client.view)}catch(de){if(S!==D||i.stopped)return;A?.finish("error",de),a?.destroy(),a=null,n.replaceChildren(),i.fail(de)}}async function P(){if(!k||i.stopped||!i.client.review)return;let s=++D;L?.finish("dismissed");try{if(await i.client.review(),i.stopped||s!==D)return;k=!1,D++,L?.finish("dismissed"),a?.destroy(),a=null,n.replaceChildren(),n.hidden=!0,U.hidden=!1;let r=i.client.view;oe(r)!==f?(H.set(f,structuredClone(i.answers)),i.resetScreen()):(H.delete(f),i.suspend(!1)),r&&await i.enqueue(r)}catch(r){if(s!==D||i.stopped)return;a?.destroy(),a=null,n.replaceChildren(),i.fail(r)}}return{get active(){return k},get receipt(){return V},open:u,exit:P,get drafts(){return new Map([...H].map(([s,r])=>[s,structuredClone(r)]))},stop(){k=!1,D++,L?.finish("dismissed"),a?.destroy(),a=null,n.replaceChildren(),n.hidden=!0,U.hidden=!1}}}var yn=5e3;async function et(i,E,U){let n=E,p=n.prepared&&Bn(n.prepared),k=()=>{};function V(){n.prepared&&n.prepared.state!=="adopted"&&p?.release()}let D=()=>n.prepared?.state==="shown"&&!!p?.modal,a=n.client.identitySignal,f;try{f=await Promise.all([import("./screen-renderer-WZFPWLB5.js"),import("./paywall-PWWDHKVH.js")]),n.signal?.throwIfAborted(),a?.throwIfAborted()}catch(e){throw V(),e}let[{mountScreenPreview:L},{showPaywall:H}]=f,oe=(typeof INDIANA_NATIVE_SHELL_BUILD>"u"||!INDIANA_NATIVE_SHELL_BUILD)&&n.appManifestRelease?Jn({client:n.client,appManifestRelease:n.appManifestRelease,onError:n.onError}):void 0;oe?.start();let u=i.ownerDocument,P=Hn(u),s=!1,r=u.createElement("section"),S=u.createElement("div"),A=u.createElement("div"),de=u.createElement("div"),N=u.createElement("button");de.hidden=!0,N.type="button";let Q=u.createElement("p"),W=u.createElement("p"),O=u.createElement("button"),g=u.createElement("button"),j=u.createElement("button"),F=u.createElement("dialog"),Te,ve=!1;r.dataset.indianaFunnel="",r.dataset.longplayCloseOwner="sdk",r.setAttribute("aria-busy","false"),Q.setAttribute("role","status"),W.setAttribute("role","alert"),W.hidden=!0,O.type=g.type=j.type="button",A.append(O,N,Q,W,j,g),r.append(S,de,A),i.append(r);let me=Un,z=fn(me),K="",R=(u.documentElement.lang||"").startsWith("zh"),v,he="",Ce;for(let e of[O,N,j,g])$e(e,()=>z.focus);function gn(){let e=R?"关闭":"Close";g.parentElement===F?(g.textContent="×",g.setAttribute("aria-label",e),Ln(g,me)):(g.textContent=e,g.removeAttribute("aria-label"),g.style.cssText=z.link+";margin-inline-start:auto")}function Me(e){let t=e?.screen?.content.document.theme??me,o=JSON.stringify([t.primary,t.background,t.text,t.radius,t.font,g.parentElement===F]);if(o===K)return;K=o,me=t;let h=g.parentElement===F;z=fn(me,h),r.style.cssText=z.root+";min-width:0"+(h?";display:flex;flex-direction:column;min-height:100%":""),A.style.cssText=z.bar+(h?";margin-top:auto":""),A.hidden&&(A.style.display="none"),O.style.cssText=N.style.cssText=z.secondary,j.style.cssText=z.primary,Q.style.cssText=z.status,W.style.cssText=z.alert,gn(),mn(O)}function be(){A.hidden=O.hidden&&N.hidden&&j.hidden&&W.hidden&&!Q.textContent&&(g.hidden||g.parentElement!==A),A.style.display=A.hidden?"none":"flex",v?.responsive&&Ce!==void 0&&v.setContentHeight(Ce+A.getBoundingClientRect().height)}Me();let ae=null,I=null,le=null,we="",ee="",Pe=!1,xe="",rn="",ze="",l=!1,X=0,Be=!1,vn="",on=null,sn=Promise.resolve(),hn=!n.client.view,Ne,T=U,Je=n.hostPaywallTarget,Ae,_e,Ge="",Qe,te=!1,Re=null,ue=!1,We=()=>n.client.pendingCommand?.operation==="close",ie=null,$=null,an=Sn({document:u,run:async()=>{(!I?.observing||n.client.pendingCommand)&&await dn()},delay:()=>{if(!re.pending&&!(l||!le||!["running","waiting"].includes(le.status)&&!n.client.pendingCommand)&&!(I?.observing&&!n.client.pendingCommand))return le.pendingRequest||n.client.pendingCommand?1500:yn},hiddenDelay:()=>!l&&!re.pending&&n.client.pendingCommand?15e3:void 0}),M=null;function ln(){return $&&n.client.hasDurableJournal===!0&&M?.acknowledged===!0&&M.operationId===$.operationId&&n.client.view?.id===M.runId&&n.client.view?.status==="closed"&&n.client.view.revision===M.revision+1&&!(n.client.pendingCommands?.length??(n.client.pendingCommand?1:0))&&!n.client.pendingPurchase?$:null}function In(e){let t=e.run.paywall;if(M&&e.settlement?.requestId===M.requestId&&e.settlement.state==="settled"&&e.settlement.operationId===null&&e.run.id===M.runId&&e.run.status==="closed"&&!e.run.pendingRequest&&e.run.revision===M.revision+1&&e.run.nodeId===M.nodeId&&e.run.visit===M.visit&&t?.receiptId===M.receiptId&&t.selectionGeneration===M.selectionGeneration&&(t.quote?.operationId??null)===M.operationId&&(t.operation?.operationId??t.quote?.operationId??null)===M.operationId){let o=M.operationId===null&&t.selectionGeneration===0&&!t.quote&&!t.operation&&!t.purchaseRequestId,h=pn({quote:t.quote,operation:t.operation,requestId:t.purchaseRequestId,pending:!1,destroyed:!1,canReselect:t.canReselect});(o||t.canReselect===!0&&h.type==="native")&&(M.acknowledged=!0)}}let Ee=null,Ue=new Set,ce={},De=!1,Y=(e,t=null)=>{l||(e instanceof ne&&e.status===409&&e.reason==="STATE_CHANGED"&&e.recovery==="recover_operation"&&an.destroy(),Ee=t,De=!1,W.textContent=Vn(e,R),W.hidden=!1,j.hidden=n.client.pendingCommand===null,be(),Ie(n.onError,e))},re=An({client:n.client,document:u,conceal(){l||(pe(),T?.finish("dismissed"),r.hidden=!0,s||(s=!0,P()))},async receive(e){l||await se(n.client.view??e.run)},failed(e){if(!l){if(!re.pending){ue=!1;let t=n.client.view;t&&se(t).then(()=>Y(e),Y);return}Ze(),r.parentElement!==i&&i.append(r),r.hidden=!1,O.hidden=N.hidden=g.hidden=!0,Q.textContent="",Me(),Y(e,n.client.pendingCommand?.requestId??null)}}}),Cn=()=>{l||(Ee=null,W.textContent=Mn(R),W.hidden=!1,j.hidden=!0,be())};function ke(){let e=n.client.view;if(!e)throw new ne("INVALID_REQUEST","No current Run is available");return{requestId:crypto.randomUUID(),nodeId:e.nodeId,visit:e.visit,revision:e.revision}}let w=Wn({client:n.client,doc:u,holder:S,reviewHolder:de,mountScreenPreview:L,loadingOptions:n,get chrome(){return z},get stopped(){return l},get answers(){return ce},suspend(e){I?.setSuspended(e)},resetScreen(){we="",ee="",xe=""},enqueue:se,fail:Y}),Ve=Gn({client:n.client,expected:ke,fail:Y,get stopped(){return l},get reviewing(){return w.active},get key(){return we},get busy(){return X},get staleRead(){return on}}),je=Qn({client:n.client,expected:ke,perform:Oe,onIntent:n.onCustomerDataIntent,get stopped(){return l},get busy(){return X},get document(){return ae?.document},get answers(){return ce}}),Xe=e=>`${e.id}:${e.nodeId}:${e.visit}`,Se=e=>e&&(e.screen||e.paywall)?Xe(e):"";function ye(){let e=n.client.view;O.disabled=!w.active&&(X>0||!!n.client.pendingCommand||!e?.canBack||e.stopped||!["running","waiting"].includes(e.status)||!Se(e)||ee!==Se(e)),O.hidden=!w.active&&!e?.canBack,mn(O);let t=!!I&&!w.active;g.hidden=t&&!T?.active||ve&&!w.active,N.hidden=!n.client.review||!w.active&&!e?.canBack;let o=e?.locale.startsWith("zh");Q.textContent=t?"":X>0||e?.pendingRequest?o?"正在处理":"Processing":e?.instruction?.type==="wait"?o?"等待中":"Waiting":"",be()}async function bn(e){if(!e)return;let t=n.client.view;await e;let o=n.client.view;if(!t||!o||o.id!==t.id||o.nodeId!==t.nodeId||o.visit!==t.visit||o.stopped||!["running","waiting"].includes(o.status))throw new ne("PRECONDITION_FAILED","The screen changed while its display was acknowledged")}async function Oe(e,t=!1,o){if(!((X||ue||ie||$)&&!t||l||w.active&&!t)){X++,r.setAttribute("aria-busy","true"),W.hidden=!0,Ee=null,De=!1,ye();try{if(t||await bn(Ve.inFlight),l)return;let h=await e();l||await se(n.client.view??h.run)}catch(h){o?.(h)&&n.client.pendingCommand===null?Cn():re.pending||Y(h,n.client.pendingCommand?.requestId??null)}finally{X=Math.max(0,X-1),r.setAttribute("aria-busy",String(X>0)),l||(j.hidden=n.client.pendingCommand===null,ye())}}}function qe(){an.schedule()}async function dn(){if(!(l||Be||X)&&!re.pending){if(w.active){await w.open(w.receipt);return}Be=!0;try{let e=n.client.pendingCommand;e&&n.client.settle&&await n.client.settle(e.requestId);let t=n.client.view,o=je.queries,h=await n.client.get(t?.screen&&Object.keys(o).length?{nodeId:t.nodeId,visit:t.visit,revision:t.revision,components:o}:void 0);De&&!l&&(De=!1,W.hidden=!0,be()),!l&&o===je.queries&&await se(n.client.view??h.run)}catch(e){Y(e),De=!l}finally{Be=!1}}}function Ye(e,t,o){if(T?.active){let Z=T;return Z.setDismissHandler(()=>Pn(Z)),Z}let h=nn(i,n,"funnel",()=>Pn(h),_n);return T=h,h.start(e,t,o),h}function Pn(e){l||te||(te=!0,e.finish("dismissed"),pe(),r.hidden=!0,n.client.view?ge().finally(B):B())}function un(){clearTimeout(Qe?.timeout),Qe=void 0}function pe(e){ve=!1,un(),Ae?.abort(),Ae=void 0,ae?.destroy(),ae=null,I?.destroy(),I=null,Ne=void 0,_e?.(),_e=void 0,F.open&&F.close();for(let t of Array.from(S.children))(!e||!t.contains(e))&&t.remove();S.style.cssText="",Ce=void 0,we="",ee="",Pe=!1,xe="",ze=""}function Rn(){let e=u.defaultView;v?.responsive&&e&&ae?.resizeViewport?.(e.innerHeight,e.innerWidth)}function Ze(){v?.destroy(),v=void 0,he=""}function Ke(e){let t=e.screen?.presentation;if(!t||t.type==="inline"){F.open&&F.close(),Ze(),g.parentElement!==A&&A.append(g),r.parentElement!==i&&i.append(r);for(let Z of["flex","display","flex-direction","justify-content"])S.style.removeProperty(Z);Me(e),be();return}r.parentElement!==F&&(F.append(g,r),i.append(F)),S.style.flex="1 0 auto",S.style.display="flex",S.style.flexDirection="column",S.style.justifyContent="center",Me(e);let o=e.screen.content.document,h=JSON.stringify([t,K]);if(h!==he){Ze(),he=h;let Z={sm:420,md:640,lg:900},fe="size"in t&&!t.backdrop?",0 0 0 100vmax #16142566":"";F.style.cssText=`box-sizing:border-box;padding:0;border:0;overflow:auto;background:${me.background};color:${me.text};`+(t.type==="fullscreen"?"width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;border-radius:0":`width:${Z[t.size]}px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-shadow:0 24px 80px #0003${fe};`+(t.type==="sheet"?"margin:auto auto 0;border-radius:14px 14px 0 0":"border-radius:14px")),v=On(F,{presentation:t,theme:o.theme,pages:o.pages},Rn),v.latch()}be(),F.setAttribute("aria-label",(Te?.screen===e.screen?.content.document.name?Te?.label:void 0)??ae?.document?.name??e.screen?.content.document.name??"Funnel")}async function jn(e){if(l||te)return;if(re.observe(),re.pending){le=e;return}if(ue&&(We()||["running","waiting"].includes(e.status))||(le=e,Ee&&n.client.pendingCommand?.requestId!==Ee&&(W.hidden=!0,Ee=null),R=e.locale.startsWith("zh"),N.textContent=R?"回看":"History",O.textContent=w.active?R?"返回当前":"Return to current":R?"返回":"Back",gn(),j.textContent=R?"重试":"Retry",j.hidden=n.client.pendingCommand===null,ye(),vn!==`${e.revision}:${e.visit}:${e.status}:${e.stopped}`&&(vn=`${e.revision}:${e.visit}:${e.status}:${e.stopped}`,Ie(n.onState,structuredClone(e))),l||te))return;if((!e.pendingRequest||ue&&e.status==="closed")&&["closed","ineligible","failed"].includes(e.status)){B();return}if(e.stopped&&D()){B();return}if(e.stopped||n.client.configurationReady===!1){w.stop(),V(),pe(),T?.finish("skipped"),r.hidden=!0,qe();return}if(r.hidden=!1,w.active){qe();return}if(e.status==="completed"&&I?.subscriptionUpgradeActive){qe();return}let t=Se(e),o=n.client.view;if(o&&o.revision>e.revision&&Se(o)!==t)return;let h=!e.instruction&&!e.pendingRequest&&e.nodeType==="screen"&&["running","waiting"].includes(e.status);t!==we&&(we&&T?.finish("dismissed"),pe(),we=t,ce={...e.answers},je.reset());let Z=Xe(e);if(Ge===Z){r.hidden=!0;return}if(h&&!t){r.hidden=!0;let C=n.prepared?.state==="shown"?null:Ye(!0,e.locale);!l&&!te&&Qe?.key!==Z&&(un(),Qe={key:Z,timeout:setTimeout(()=>{let d=n.client.view;if(l||!C?.active&&n.prepared?.state!=="shown"||!d||Xe(d)!==Z)return;Ge=Z;let q=new Error("Funnel screen preparation timed out");C?.finish("error",q),V(),pe(),Y(q)},He)}),qe();return}un();let _=C=>{let d=n.client.view;return!l&&!te&&!Re&&!C.aborted&&n.client.configurationReady!==!1&&!!d&&!d.stopped&&!["closed","ineligible","failed"].includes(d.status)&&(Se(d)===t||d.status==="completed"&&I?.subscriptionUpgradeActive===!0)},fe=(C,d)=>{_(d)&&(Ge=t,T?.finish("error",C),pe(),r.hidden=!0,Y(C))};if(t||((e.instruction&&e.instruction.type!=="evaluate_segment"||!["running","waiting"].includes(e.status))&&V(),Ke(e),e.instruction?.type!=="event"&&e.instruction?.type!=="open_url"&&T?.finish("skipped")),e.screen){Je=void 0,V();let C=e.screen.content;if(!ae){let J=e.screen.presentation.type!=="inline",b=Ye(J,e.locale);if(l||te)return;let x=(Ae=new AbortController).signal;Ke(e),_e=J?Nn(F):tn(r,i),ae=L(S,{mode:"live",closeActions:Array.from(new Set([...n.closeActions??[],...C.document.actions.filter(y=>y.type==="event"&&y.close).map(y=>y.id)])),onAuthoredClose(y){_(x)&&(ve=y,ye())},rendererUrl:n.client.webViewUrl,title:C.document.name,...J?{hostPresentation:()=>v?.type??e.screen.presentation.type}:{},onResize:y=>{Ce=y,v?.responsive&&v.setContentHeight(y+A.getBoundingClientRect().height)},onAction(y,c={},Fe={}){if(w.active||!_(x)||ee!==t)return;ce={...ce,...Fe};let cn=e.screen?.inputs??[],Fn=Object.fromEntries(cn.filter(({variable:Le})=>Object.hasOwn(ce,Le)).map(({variable:Le})=>[Le,ce[Le]]));if(xn(cn,Fn).length){Cn();return}Oe(()=>n.client.submit({operation:"submit",...ke(),input:{type:"screen",output:y,answers:Fn,selection:c}}),!1,Le=>$n(Le,cn))},onAnswers:y=>{w.active||!_(x)||ee!==t||(ce={...ce,...y})},onCustomerDataIntent:y=>{w.active||!_(x)||ee!==t||je.intent(y).catch(Y)},onEscape:()=>{!_(x)||ee!==t||w.active||ie||$||ge()},onError:y=>{let c=new Error(y);ee===t?Y(c):fe(c,x)},onRendered:y=>{if(!(!_(x)||ee===t))try{b.present(c=>{_e?.(),_e=void 0,y&&(Te={screen:C.document.name,label:y},F.setAttribute("aria-label",y)),J&&(F.showModal(),s=!1,v?.responsive&&F.focus({preventScroll:!0}),!c&&n.loading!=="host"&&qn(F,v?.type??e.screen.presentation.type,v?.responsive)),ee=t,Pe=J,ye()}),_(x)&&Ve.report(t)}catch(c){fe(c,x)}}}),Rn()}let d={capabilities:e.screen.capabilities,customerData:e.screen.customerData,parameters:e.parameters,serverInput:{bindings:e.screen.inputs,answers:ce,values:e.screen.values}},q=JSON.stringify([C,e.locale,d.parameters,e.screen.inputs,e.screen.values]);if(q!==xe)ae.update(C.document,e.locale,d),xe=q,rn=JSON.stringify(d.capabilities),ze=JSON.stringify(d.customerData);else{let J=JSON.stringify(d.capabilities);J!==rn&&(ae.updateCapabilities(d.capabilities),rn=J),JSON.stringify(d.customerData)!==ze&&(ae.updateCustomerData(d.customerData),ze=JSON.stringify(d.customerData))}let G=ae;if(G)try{await(T?.wait(G.ready)??G.ready)}catch(J){Ae&&fe(J,Ae.signal)}}else if(e.paywall&&!I){let C=e.paywall.resolution,d="document"in C?C.document:null,q=p,G=n.mountPaywallControls,J=null,b=(Ae=new AbortController).signal,x={loading:"host",signal:b,...G&&{mountControls:c=>G(c,e)},canInteract:()=>_(b)&&!w.active&&!ie&&!$,beforeAction:async()=>{X++;try{await bn(Ve.settled()),W.hidden=!0,Ee=null,De=!1,be()}finally{X=Math.max(0,X-1)}},start:()=>wn(n.client),onObservationChange:qe,onPurchase:n.onPurchase,onCheckoutUrl:n.onCheckoutUrl,resumeCheckout:n.resumeCheckout,allowNewPurchase:n.allowNewPurchase,checkoutNavigation:n.checkoutNavigation,terminateCheckout:n.terminateCheckout,beforeCheckoutReplacement:n.beforeCheckoutReplacement,purchaseConfirmation:n.purchaseConfirmation,confirmOnHostedCheckout:n.confirmOnHostedCheckout,resolveOfferId:n.resolveOfferId,resolveSubscriptionChange:n.resolveSubscriptionChange,claimCoupon:n.claimCoupon,onEvent:n.onEvent,onOpenUrl:c=>n.onOpenUrl?n.onOpenUrl({receiptId:e.paywall.receiptId,url:c,openIn:"same_window"}):u.defaultView?.location.assign(c),onAction:async c=>{if(w.active)return;let Fe=await n.client.submit({operation:"submit",requestId:crypto.randomUUID(),nodeId:e.nodeId,visit:e.visit,revision:n.client.view?.revision??e.revision,input:{type:"screen",output:c,answers:{}}});await se(n.client.view??Fe.run)},onError:c=>{ee===t?Y(c):fe(c,b)}},y={quoteError:c=>Ie(n.onError,c),loadingLayout:()=>_(b)?J?.getLoadingLayout?.():void 0,present(c){_(b)&&(J?.present(Fe=>{c(Fe),ee=t,Pe=y.retainedDialog?.dialog.open??!!S.querySelector("dialog[open]"),Pe&&(s=!1),ye()}),_(b)&&Ve.report(t))},async closeAction(c){l||w.active||await re.submit({operation:"submit",requestId:crypto.randomUUID(),nodeId:e.nodeId,visit:e.visit,revision:n.client.view?.revision??e.revision,input:{type:"screen",output:c,answers:{}}})},async dismiss(){if(l||b.aborted||w.active||ie||$||!ue&&!_(b))return;ue=!0;let c=n.client.view;if(c?.status==="completed"&&I?.subscriptionUpgradeActive){Ue.add(`complete:${c.id}`),Ie(n.onComplete,structuredClone(c)),B();return}if((n.resumeCheckout||n.terminateCheckout)&&Kn()){le=n.client.view,B();return}await ge()}};if(q&&G)V();else if(q){let c=await q.adopt(e,{options:x,handoff:y,start:()=>wn(n.client)});c&&_(b)&&!l?(Ke(e),I=c,Ne={runId:e.id,receiptId:e.paywall.receiptId},T?.active&&T.present(()=>{}),ee=t,Pe=q.modal,Pe&&(s=!1),ye(),Ve.report(t),w.active&&I.setSuspended(!0)):(c?.destroy(),V())}if(l||te)return;if(!I){if(J=Ye(!0,e.locale,d),l||te)return;(typeof INDIANA_NATIVE_SHELL_BUILD>"u"||!INDIANA_NATIVE_SHELL_BUILD)&&n.loading==="host"&&Je?.ownerDocument===u&&(y.hostPaywallTarget=Je),Je=void 0,Ke(e);let c=await H(S,x,y).catch(Fe=>(fe(Fe,b),null));!_(b)&&!(ue&&!l&&!b.aborted)?c?.host?.destroy():c&&(I=c.host,I&&(Ne={runId:e.id,receiptId:e.paywall.receiptId}),I?.setSuspended(w.active))}}if(l||te)return;ye();let m=e.instruction;if(m&&(m.type==="open_url"||m.type==="event")&&!Ue.has(m.receiptId)){let C=u.createElement("button");C.type="button",C.style.cssText=z.primary,$e(C,()=>z.focus),S.style.cssText=z.stage,C.textContent=m.type==="open_url"?`${R?"前往":"Continue to"} ${new URL(m.url).host}`:R?"继续":"Continue",C.onclick=()=>{let d=ke(),q=m.type==="open_url"&&!n.onOpenUrl&&m.openIn==="new_window"?Xn(m.url):null;Oe(async()=>{let G="success";if(m.type==="open_url")if(n.onOpenUrl)try{G=await n.onOpenUrl({receiptId:m.receiptId,url:m.url,openIn:m.openIn})===!1?"failed":"opened"}catch(b){Ie(n.onError,b),G="failed"}else G=m.openIn==="new_window"&&!q?"failed":"opened";if(m.type==="event"){if(!n.onEvent)throw new ne("EVENT_HANDLER_REQUIRED","Provide the event handler");await n.onEvent(m.event)}if(l||n.client.view?.nodeId!==d.nodeId||n.client.view.visit!==d.visit)throw new ne("PRECONDITION_FAILED","The client action visit changed");let J=await n.client.submit({operation:"submit",...d,input:{type:"client_action",receiptId:m.receiptId,outcome:G}});return Ue.add(m.receiptId),m.type==="open_url"&&!n.onOpenUrl&&m.openIn==="same_window"&&u.defaultView?.location.assign(m.url),J})},T?.active?T.present(()=>S.replaceChildren(C)):S.replaceChildren(C)}!e.pendingRequest&&e.status==="completed"&&!Ue.has(`complete:${e.id}`)&&(Ue.add(`complete:${e.id}`),Ie(n.onComplete,structuredClone(e))),qe()}function Xn(e){let t=u.defaultView?.open(e,"_blank")??null;return t&&(t.opener=null),t}function se(e){return ye(),sn=sn.catch(()=>{}).then(async()=>{try{await jn(e)}catch(t){throw T?.active&&(Ge=Xe(e),T.finish("error",t),pe(),r.hidden=!0),t}}),sn}let Yn=n.client.subscribe(e=>{if(!hn){if(e.stopped&&(Pe||D())&&!ue){le=e,B();return}!ue&&(e.stopped||n.client.configurationReady===!1||we&&ee!==we&&(Se(e)!==we||["closed","ineligible","failed"].includes(e.status)))&&(pe(),T?.finish("dismissed"),r.hidden=!0),se(e).catch(Y)}}),Zn=n.client.subscribeError?.(e=>{re.pending||Y(e)});function Kn(){let e=n.client.view,t=e?.paywall;return!!t?.operation&&!!e&&["running","waiting"].includes(e.status)&&Dn(pn({quote:t.quote,operation:t.operation,requestId:t.purchaseRequestId,pending:!1,destroyed:!1,canReselect:t.canReselect}))}function ge(e){if(Re)return Re;if(l||!e&&(ie||$))return Promise.resolve();let t=!e&&We();return!t&&n.client.view&&!["running","waiting"].includes(n.client.view.status)?(le=n.client.view,B(),Promise.resolve()):(Re=Oe(async()=>{let o=t?await n.client.retry():await(e?n.client.submit.bind(n.client):re.submit)({operation:"close",...e??ke()});return e&&In(o),o},!0).then(()=>{let o=n.client.view;o?.status==="closed"&&!We()&&(le=o,B())}).finally(()=>{Re=null}),Re)}function B(){En()}function En(e){oe?.destroy(),!l&&(l=!0,re.destroy(),k(),V(),n.signal?.removeEventListener("abort",B),a?.removeEventListener("abort",B),T?.finish("dismissed"),an.destroy(),Yn(),Zn?.(),pe(e),Ze(),w.stop(),F.remove(),!e||!r.contains(e)?r.remove():(A.remove(),de.remove()),!e&&!s&&P(),Ie(n.onDismiss,le?structuredClone(le):null))}O.onclick=()=>{if(!O.disabled){if(w.active){w.exit();return}Oe(()=>n.client.submit({operation:"back",...ke()}))}},N.onclick=()=>{w.open()},g.onclick=()=>{T?.active?T.dismiss():ie||ge()},j.onclick=()=>{re.pending?re.retry().catch(()=>{}):We()?ge():Oe(()=>n.client.retry())},F.addEventListener("cancel",e=>{e.preventDefault(),T?.active?T.dismiss():ie||ge()}),n.signal?.addEventListener("abort",B,{once:!0}),a?.addEventListener("abort",B,{once:!0});let en=!1;p&&(k=p.onClose(()=>{l||te||(te=!0,T?.finish("dismissed"),pe(),r.hidden=!0,n.client.view?ge().finally(B):en=!0)}));let kn={destroy:B,refresh:dn,get recoveryPaywall(){if(I&&Ne)return{...Ne,view:I.currentResolution}},setPurchaseRecovery(e,t){return I?.setPurchaseRecovery(e,t),I!==null},retainPurchaseDialog(){let e=I?.retainPurchaseDialog();if(e)return I=null,En(e.dialog),{dialog:e.dialog,release(){e.release(),r.remove(),s||P()}}},get recovery(){let e=ln();if(e)return e;if(!l&&!X&&!ue&&!ie&&I){let t=I.recovery;if(t.type!=="native")return t}return{type:"recover",operationId:n.client.pendingPurchase?.operationId??n.client.view?.paywall?.quote?.operationId??$?.operationId??null,requestId:n.client.pendingCommand?.requestId??null}},prepareFallback(){if(ie)return ie;let e=ln();if(e)return Promise.resolve(e);let t=n.client.pendingPurchase?.operationId??n.client.view?.paywall?.quote?.operationId??$?.operationId??null,o=()=>({type:"recover",operationId:t,requestId:n.client.pendingCommand?.requestId??null});if(n.client.hasDurableJournal!==!0){let m=I?.recovery;return Promise.resolve(m&&m.type!=="native"&&m.type!=="cancel"?m:o())}let h=(n.client.pendingCommands??(n.client.pendingCommand?[n.client.pendingCommand]:[])).some(m=>m.operation==="close");if(l&&!(h||$&&n.client.view?.status==="closed")||X||Be||Re||w.active||!I&&!$&&!h)return Promise.resolve(o());let Z=I,_=(async()=>{try{if(!$&&h){let d=await n.client.retry();return await se(n.client.view??d.run),o()}if(!$){let d=await Z.prepareFallback();if(d.type!=="native")return d;if(n.client.hasDurableJournal!==!0)return o();$=d}let m=n.client.pendingCommands??(n.client.pendingCommand?[n.client.pendingCommand]:[]);if(m.length){let d=m.find(G=>G.operation==="close");if(!d||!M||d.requestId!==M.requestId)return o();let q=await n.client.retry();In(q),await se(n.client.view??q.run)}else{let d=n.client.view,q=d?.paywall;if(!d||!q||q.selectionGeneration===void 0||(q.quote?.operationId??null)!==$.operationId||$.operationId!==null&&q.canReselect!==!0)return o();let G=q.selectionGeneration,J=await n.client.get();await se(n.client.view??J.run);let b=n.client.view,x=b?.paywall;if(!b||!x||!["running","waiting"].includes(b.status)||b.stopped||b.id!==d.id||b.nodeId!==d.nodeId||b.visit!==d.visit||x.receiptId!==q.receiptId||x.selectionGeneration!==G||(x.quote?.operationId??null)!==$.operationId||$.operationId!==null&&x.canReselect!==!0||n.client.pendingPurchase||(n.client.pendingCommands?.length??(n.client.pendingCommand?1:0)))return o();let y=ke();M={runId:b.id,operationId:$.operationId,revision:y.revision,requestId:y.requestId,nodeId:b.nodeId,visit:b.visit,receiptId:x.receiptId,selectionGeneration:G,acknowledged:!1},await ge(y)}let C=ln();return C?(B(),C):o()}catch(m){return Y(m),o()}})();ie=_;let fe=()=>{ie===_&&(ie=null)};return _.then(fe,fe),_},review:w.open,exitReview:w.exit,get unappliedDrafts(){return w.drafts}};try{let e=n.client.view;if(e)((n.client.viewAgeMs??yn)>=yn||e.instruction?.type==="evaluate_segment")&&(on=dn().finally(()=>{on=null})),await se(e);else{if(r.hidden=!0,l)throw new DOMException("Presentation cancelled","AbortError");let t=en||n.prepared?.state==="shown"?null:Ye(n.client.view?.screen?.presentation.type!=="inline",n.client.view?.locale);if(l||te&&!en)throw new DOMException("Presentation cancelled","AbortError");let o=n.client.get(),h=await(t?t.wait(o,He):nt(o,He));if(hn=!1,en)return l||await ge().finally(B),kn;await se(n.client.view??h.run)}}catch(e){throw T?.finish("error",e),B(),e}return kn}function nt(i,E){let U;return Promise.race([i,new Promise((n,p)=>{U=setTimeout(()=>p(new Error("Presentation data timed out")),E)})]).finally(()=>clearTimeout(U))}function St(i,E,U){return et(i,E,U)}export{et as a,St as b};
|
package/dist/chunk-QY5TS3OY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as we,b as me}from"./chunk-GIX2F53I.js";import{d as ye,e as Q}from"./chunk-4VZCPOVE.js";import{a as pe}from"./chunk-Y2DUFDPV.js";import{a as P}from"./chunk-DSPLGTQI.js";var Ae=5*6e4,Ee=15e3,he=new WeakMap;function He(i){return he.get(i)}var C=i=>Array.isArray(i)?i.map(C):i&&typeof i=="object"?Object.fromEntries(Object.keys(i).sort().map(n=>[n,C(i[n])])):i,k=(i,n)=>JSON.stringify(C(i))===JSON.stringify(C(n)),ge=i=>JSON.stringify(C([i.funnelId,i.locale??null,i.parameters??{}])),Re=["onObservationChange","onPurchase","onCheckoutUrl","resumeCheckout","allowNewPurchase","checkoutNavigation","terminateCheckout","beforeCheckoutReplacement","purchaseConfirmation","confirmOnHostedCheckout","resolveOfferId","resolveSubscriptionChange","onOpenUrl","onEvent","onAction","onComplete","onError"];function Oe(i,n){let Y=e=>structuredClone({funnelId:e.funnelId,locale:e.locale,parameters:e.parameters}),w,Z="",ee=n.start instanceof Promise?void 0:Y(n.start),L=e=>e?.parameters?.commerce,ne=Promise.resolve(n.start).then(e=>e?Y(e):void 0),N=n.maxAgeMs??Ae,ae=new AbortController,p=AbortSignal.any([ae.signal,n.client.identitySignal,...n.signal?[n.signal]:[]]),M=()=>l("released","aborted"),t="preparing",re,_,q=()=>{},V=0,g=null,m=null,h=null,u=null,b,x,te=new Map,f=null,D=new Set,S=new Map,T,oe=new Promise(e=>T=e),j,be=new Promise(e=>j=e);function H(e,a){t!==e&&(t=e,re=a,P(n.onState,e))}function ve(){p.removeEventListener("abort",M),O(),m?.destroy(),m=null,g?.remove(),g=null,h=null}function l(e,a){["adopted","unavailable","released","closed"].includes(t)||(H(e,a),ve(),T(!1),j(null))}let J=e=>`error:${e?.code??e?.name??"unknown"}`,U=i.ownerDocument.defaultView,A=!0,le=null,I=!1,Pe=e=>e.storageArea===U?.localStorage&&(e.key===null||e.key.startsWith("indiana.funnel.purchases.")),ie=e=>{Pe(e)&&F()},Se=n.client.subscribe(()=>F());function O(){A&&(A=!1,U?.removeEventListener("storage",ie),Se(),q())}let G=()=>A&&(t==="ready"||t==="preparing");function W(e){(t==="ready"||t==="preparing")&&l("unavailable",e)}function F(){if(t==="ready"&&Date.now()-V>=N)return O();I=!0,le??=(async()=>{for(;I&&w&&G();){I=!1;try{await n.client.retained()==="pending"&&W("purchase_pending")}catch(e){p.aborted?l("released","aborted"):W(J(e))}}})().finally(()=>{le=null,I&&w&&G()&&F()})}U?.addEventListener("storage",ie),p.addEventListener("abort",M,{once:!0});let se=n.client.findPurchase();se.catch(()=>{});let E;function K(e){let a=JSON.stringify(C(e)),o=te.get(a);return o||(o=n.client.readPaywall({paywallVersionId:E?.paywallVersionId??n.paywallVersionId??u?.id,...E?.paywallVersionId||n.paywallVersionId||u?{}:{paywallId:E?.paywallId??n.paywallId},...e}),te.set(a,o)),o}function B(e,a){let o=Object.values(e.capabilities.plans),c=Object.values(e.document.buttons).some(r=>r.type==="checkout");return c&&o.length===0?!1:a.intent==="subscription_change"&&c?o.some(r=>r.available):o.every(r=>r.available)}function ce(e,a){if(u&&!Q(e,u))return l("unavailable","paywall_changed"),!1;u=e,x=a;for(let o of S.keys())P(o,structuredClone(e));return!0}async function R(){let e=await be;if(!e)throw new pe("PURCHASE_PENDING","The purchase did not start; open it again");return e}let Ie={get view(){return f?f.view:u},get signal(){return f?.signal??n.client.identitySignal},get quote(){return f?.quote??null},get operation(){return f?.operation??null},webViewUrl:"bundled",get canReselect(){return f?.canReselect},get recovery(){return f?.recovery},get pendingCancellation(){return f?.pendingCancellation},subscribe(e){return S.set(e,f?.subscribe?.(e)??(()=>{})),()=>{S.get(e)?.(),S.delete(e)}},refresh:async()=>f?f.refresh():structuredClone(u),preview:async e=>(await R()).preview(e),confirm:async()=>(await R()).confirm(),cancel:async()=>(await R()).cancel(),read:async()=>(await R()).read(),destroy(){f?.destroy()}},s={options:{},handoff:{}},de={loading:"host",focusAtReveal:!0,signal:n.client.identitySignal,start:async()=>Ie,canInteract:()=>s.options.canInteract?s.options.canInteract():!["unavailable","released","closed"].includes(t),async beforeAction(){let e=t!=="adopted",a=u?.capabilities,o=await R();if(e&&!k(o.view?.capabilities,a))throw new ye;await s.options.beforeAction?.()}};for(let e of Re)Object.defineProperty(de,e,{enumerable:!0,get:()=>s.options[e]});function X(){t!=="preparing"||!h||!m||!w||!k(x?.commerce,L(w))||x?.locale!==w.locale||(H("ready"),T(!0))}let ue={loadingLayout:()=>s.handoff.loadingLayout?.(),present(e){if(s.handoff.present)return s.handoff.present(e);t==="preparing"&&(h=e,V=Date.now(),X())},async dismiss(){if(s.handoff.dismiss)return s.handoff.dismiss();l("closed");for(let e of[...D])P(e)},async closeAction(e){if(s.handoff.closeAction)return s.handoff.closeAction(e);s.options.onAction?await s.options.onAction(e):await ue.dismiss()},quoteError(e){s.handoff.quoteError?s.handoff.quoteError(e):P(s.options.onError,e)}};async function Ce(){if(n.paywallVersionId||n.paywallId)return{paywallVersionId:n.paywallVersionId,paywallId:n.paywallId};let e=n.configuration;if(!e)return l("unavailable","paywall_missing"),null;let a=await Promise.resolve(n.start).catch(()=>null);if(!a||t!=="preparing")return null;let o=()=>we(e,{funnelId:a.funnelId,customerId:n.client.customerId,parameters:a.parameters??{}});if(_=await o(),t!=="preparing")return null;let c=_;if(c.type!=="paywall")return l("unavailable",me(c)??"route"),null;let r=!1;return q=e.subscribe(()=>{r||!G()||(r=!0,o().then(d=>{!(d.type==="unavailable"&&!["funnel_stopped","route_unavailable"].includes(d.reason))&&(d.type!=="paywall"||d.paywallVersionId!==c.paywallVersionId)&&W("route_changed")}).finally(()=>r=!1))}),A||q(),{paywallVersionId:c.paywallVersionId}}(async()=>{try{let[{showPaywall:e},a]=await Promise.all([import("./paywall-PWWDHKVH.js"),Ce()]);if(p.throwIfAborted(),t!=="preparing"||!a)return;let o=n.commerce??L(ee),c=n.locale??ee?.locale;if(!o)return l("unavailable","commerce_missing");if(!c)return l("unavailable","locale_missing");E=a;let r={commerce:o,locale:c},d=await K(r);if(p.throwIfAborted(),t!=="preparing"||(!B(d,r.commerce)&&n.start instanceof Promise&&!b&&await ne,b&&!k(r,b)&&(r=b,d=await K(r)),p.throwIfAborted(),t!=="preparing"))return;if(!B(d,r.commerce))return l("unavailable","plan_unavailable");if(!ce(d,r))return;g=i.ownerDocument.createElement("div"),i.append(g);let v=setTimeout(()=>t==="preparing"&&l("unavailable","timeout"),Ee);oe.then(()=>clearTimeout(v));let y=await e(g,de,ue);if(!y.host||p.aborted||t!=="preparing"){y.host?.destroy(),l(p.aborted?"released":"unavailable","error");return}m=y.host,X()}catch(e){l(p.aborted?"released":"unavailable",J(e))}})(),ne.then(async e=>{if(!e)return l("unavailable","gated");let a=e,o=L(a),c=n.commerce??o;if(!k(o&&{...o,intent:void 0},c&&{...c,intent:void 0})||n.locale!==void 0&&a.locale!==n.locale)return l("unavailable","start_mismatch");if(!o)return l("unavailable","commerce_missing");b={commerce:o,locale:a.locale};try{let r=await se,d=r==="pending"?"purchase_pending":r==="found"?"original_purchase":r==="blocked"?"purchase_blocked":void 0;if(d)return l("unavailable",d);if(t!=="preparing")return;if(A&&(I=!1,await n.client.retained()==="pending"))return l("unavailable","purchase_pending");if(E||n.paywallId||n.paywallVersionId||u){let v=await K(b);if(p.throwIfAborted(),t!=="preparing")return;if(u){if(!B(v,b.commerce))return l("unavailable","plan_unavailable");if(!ce(v,b))return}}}catch(r){return l(p.aborted?"released":"unavailable",J(r))}t==="preparing"&&(w=a,Z=ge(a),X(),I&&F())},()=>l("unavailable","gated"));let fe={get state(){return t},get reason(){return re},ready:oe,get start(){return w},get prediction(){return _?structuredClone(_):void 0},matches:e=>!!w&&ge(e)===Z,open(){if(t==="preparing")return"pending";if(t!=="ready"||!h)return!1;if(Date.now()-V>=N)return l("unavailable","expired"),!1;let e=h;return h=null,O(),H("shown"),e(),"shown"},destroy(){ae.abort()}};return he.set(fe,{onClose(e){return t==="closed"?(P(e),()=>{}):(D.add(e),()=>{D.delete(e)})},claim(){O()},async adopt(e,a){let o=e.paywall?.resolution,c=e.paywall&&!e.paywall.quote&&!e.paywall.operation&&!e.paywall.purchaseRequestId&&!(e.paywall.selectionGeneration??0);if(t!=="shown"||!m||!u||!o||!c||e.source.id!==w?.funnelId||e.locale!==w?.locale||!k(e.parameters??{},w?.parameters??{})||!["running","waiting"].includes(e.status)||!Q(o,u))return null;let r;try{r=await a.start()}catch{return null}if(t!=="shown"||!m)return r.destroy(),null;f=r,s.options=a.options,s.handoff=a.handoff;for(let[y]of S)S.set(y,r.subscribe?.(y)??(()=>{})),r.view&&P(y,structuredClone(r.view));p.removeEventListener("abort",M),H("adopted"),j(r),D.clear();let d=m,v=g;return m=null,g=null,h=null,new Proxy(d,{get(y,$){return $==="destroy"?()=>{y.destroy(),v?.remove()}:$==="retainPurchaseDialog"?()=>{let z=y.retainPurchaseDialog();if(z)return{dialog:z.dialog,release(){z.release(),v?.remove()}}}:Reflect.get(y,$,y)}})},retainPurchaseDialog(){if(t!=="shown")return;let e=m?.retainPurchaseDialog();if(!e)return;let a=g;return m=null,g=null,l("released"),{dialog:e.dialog,release(){e.release(),a?.remove()}}},get modal(){return u?.document.presentation.type!=="inline"},get revealable(){return t==="ready"&&!!h&&Date.now()-V<N},release(){l("released")}}),fe}export{Ae as a,He as b,Oe as c};
|
package/dist/chunk-UB5SVEM6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as $A}from"./chunk-6VWVBQFR.js";import{a as P}from"./chunk-Y2DUFDPV.js";import{a as BA,c as jA,d as xA,e as MA,f as UA,h as sA}from"./chunk-LB2ZRTRA.js";import{a as zA,b as FA}from"./chunk-XFOU4DZG.js";function I(A){return typeof A=="string"?A:String(A)}var Se=/[\ud800-\udbff](?![\udc00-\udfff])|(^|[^\ud800-\udbff])[\udc00-\udfff]/g;function Ie(A){return A.replace(Se,"$1�")}function mA(A,e){if(typeof A!="object"||A==null){let t="";throw t+="The provided value is not an object",new TypeError(t)}return A}function ZA(A){if(A!=null&&(typeof A=="object"||typeof A=="function")){let e=A[Symbol.iterator];if(e==null)return;if(typeof e!="function")throw new TypeError("The provided value is not iterable");let t=e.call(A);if(!t||typeof t!="object")throw new TypeError("Result of the Symbol.iterator method is not an object");return t}}function QA(A){let e;if(Array.isArray(A)){let t=A.map(I);if(t.length===2)return t}else if((e=ZA(A))!=null){let t=mA(e.next()),n=mA(e.next());if(!t.done&&!n.done)return[I(t.value),I(n.value)]}throw new TypeError("Each query pair must be an iterable [name, value] tuple")}var GA="0123456789ABCDEF",Ce=/(?:%[0-9A-Fa-f]{2})+/g;function M(A){return`%${GA[A>>4&15]}${GA[15&A]}`}function Ae(A,e,t=!1){return A>=55296&&A<=57343&&(A=65533),A<=127?t&&A===32?"+":e(A)?M(A):String.fromCharCode(A):A<=2047?M(192|A>>6)+M(128|63&A):A<=65535?M(224|A>>12)+M(128|A>>6&63)+M(128|63&A):M(240|A>>18)+M(128|A>>12&63)+M(128|A>>6&63)+M(128|63&A)}function yA(A){return A>=48&&A<=57?A-48:A>=65&&A<=70?A-65+10:A>=97&&A<=102?A-97+10:-1}function PA(A,e=!1){let t=0;for(;t<A.length;t++){let n=A.charCodeAt(t);if(n===37||e&&n===43)break}return t===A.length?A:(e?A.replace(/\+/g," "):A).replace(Ce,n=>{try{return decodeURIComponent(n)}catch{return"�".repeat(n.length/3)}})}function AA(A){return A<=31||A>126}function be(A){switch(A){case 32:case 34:case 60:case 62:case 96:return!0;default:return AA(A)}}function TA(A){switch(A){case 32:case 34:case 35:case 60:case 62:return!0;default:return AA(A)}}function Ee(A){return TA(A)||A===39}function DA(A){switch(A){case 63:case 94:case 96:case 123:case 125:return!0;default:return TA(A)}}function cA(A){switch(A){case 47:case 58:case 59:case 61:case 64:case 91:case 92:case 93:case 124:return!0;default:return DA(A)}}function KA(A){switch(A){case 33:case 39:case 40:case 41:case 126:return!0;default:return(function(t){switch(t){case 36:case 37:case 38:case 43:case 44:return!0;default:return cA(t)}})(A)}}function ee(A,e){return Ae(A=A||0,e)}function U(A,e,t=!1){let n=0;for(;n<A.length;n++){let u=A.charCodeAt(n);if(u>=128||t&&u===32||e(u))break}if(n===A.length)return A;let r=A.slice(0,n);for(;n<A.length;n++){let u=A.charCodeAt(n),l=u;if(u>=55296&&u<=56319&&n+1<A.length){let a=A.charCodeAt(n+1);a>=56320&&a<=57343&&(l=(u-55296<<10)+a-56320+65536,n++)}r+=Ae(l,e,t)}return r}function vA(A){let e=[],t=0,n=0;for(;n<=A.length;){if(n=A.indexOf("&",t),n<0&&(n=A.length),n!==t){let r=A.slice(t,n),u=r.indexOf("=");u<0&&(u=r.length),e.push([PA(r.slice(0,u),!0),PA(r.slice(u+1),!0)])}if(t=n+1,n===A.length)break}return e}function SA(A){let e="";for(let t=0;t<A.length;t++){let n=U(A[t][0],KA,!0),r=U(A[t][1],KA,!0);e+=t!==0?`&${n}=${r}`:`${n}=${r}`}return e}var Te=[2191,2191,3164,3164,3292,3292,6863,6877,6880,6891,8385,8385,11158,11158,42958,42959,42962,42962,42964,42964,42993,42993,64451,64466,64912,64913,64968,64974,67904,67929,69317,69319,69328,69336,69370,69371,72544,72551,73136,73179,73184,73193,93856,93880,93883,93907,94194,94198,100344,100351,101641,101662,101760,101874,118010,118012,118458,118480,118496,118512,124608,124638,124640,124661,124670,124671,128728,128728,128887,128890,129232,129240,129620,129623,129674,129674,129678,129678,129736,129736,129741,129741,129770,129770,129775,129775,130042,130042,177978,177983,183970,183981,205744,210041],ve=[7296,7297,7298,7299,7300,7301,7302,7303,7304,42958,42962,42964,42993],Oe=["в","д","о","с","т","т","ъ","ѣ","ꙋ","","ꟓ","ꟕ","s"],Re=[2381,2381,2509,2509,2637,2637,2765,2765,2893,2893,3021,3021,3149,3149,3277,3277,3387,3388,3405,3405,3530,3530,3642,3642,3770,3770,3972,3972,4153,4154,5908,5909,5940,5940,6098,6098,6752,6752,6980,6980,7082,7083,7154,7155,11647,11647,43014,43014,43052,43052,43204,43204,43347,43347,43456,43456,43766,43766,44013,44013,68159,68159,69702,69702,69744,69744,69759,69759,69817,69817,69939,69940,70080,70080,70197,70197,70378,70378,70477,70477,70606,70608,70722,70722,70850,70850,71103,71103,71231,71231,71350,71350,71467,71467,71737,71737,71997,71998,72160,72160,72244,72244,72263,72263,72345,72345,72767,72767,73028,73029,73111,73111,73537,73538,90415,90415];function ke(A){for(let e=0;e<A.length;e++){let t=A.codePointAt(e);if(t>65535&&e++,t<=32||t===37||t===127||t>=55296&&t<=57343||t>=128&&t<=159||t>=64976&&t<=65007||!(65534&~t)||t===65533)return!0}return!1}var[qe,Ne,Le,YA]=[[[],"0,6,7,8,m,w,10,1b,1d,1f,72,73,7k,8k,dt,2rk","AAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAA/AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAADAAABwfwAAAAAAAMADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//w8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhAAAAQAAAAAAAAQCAAABAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgACAAAAAAAAAAAAAAAAD//wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAP///////////////wAAAAAAAAAAAAAAAAAAAAA="],[[],"6,7,8,o,4o,7e,7f,7h,7i,7j,dl","AAAAAEF9+P/+BwAAAMAA//8AAPz/////BlADAAAAAJwAAPz///8AAADA//H/5+X8AAAAAAAAAAAA/P///wcAAAAAAAAAAAAAPv0vAD0BAABA/gAA/5/5/f8BAAAAAAAAgAAAAP//////////////AYD/////BQAAAAAAAAAAAAAAAAAAAAAAAP///////wcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8g+N8B+AAAAAAAAAAAAAAAAAAAAAAAAP//AwAAYAAAAAAAAAAAAAD/////CwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANgAAAAAAAAAAAAAAAAA//8fAB4AAAD//wMAAAAAAH3/HgwAAAAAAAD//////////w8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="],[[],"6,7,8,o,4o,7e,7f,7h,7i,7j,dl","AAAAAP3////+BwAAAMDu//////////////8vAADAAJwAAP3///8AAADg////////AAAAAAAAAAAA/P///wcAAAAAAAAAAAAA////Ab0H//9H/gAA/9////8BAAAAAAAAgAAAAP//////////////AYD/////BQAAAAAAAAAAAAAAAAAAAAAAAP///////wcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL/G//8T+AAAAAAAAAAAAAAAAAAAAAAAAP//AwAAfgAAAAAAAAAAAAD+////DwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAANwAAAAAAAAAAAAAAAAA//8fAB4AAAD//wMAAAAAAH3/Hg4AAAAAAAD//////////w8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="],[[],"0,3,4,5,6,7,8,9,a,b,c,d,e,f,g,j,n,o,p,q,r,s,t,w,18,19,1c,4m,4o,4p,4q,4r,6z,72,73,75,76,77,7e,7h,7i,7j,7k,7l,7m,7n,7o,7p,7q,7r,7s,7t,7u,7v,7w,7x,7y,7z,8k,9t,a2,a3,a7,cc,cv,cx,cy,d6,dc,dd,de,dg,dh,di,dk,dl,2rk,2rl","AAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAD//////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD4AwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v////+/tgAAAAAAAAAAAP8XAAAAAAD4//8AAAEAAAAAAAAAAAAAAMCfnz0AAACAAgAAAP///wcAAAAAAAAAAAAAwP8BAAAAAAAA+A8gAADA++8+AAAAAAAOAAAAAAAAgP8AAAAAAPz///v///8HAAAAAAAAFP4h/gAMAAAAAgAAAAAAABAeIAAADAAAQAYAAAAAAAAQhjkCAAAAIwAGAAAAAAAAEL4hAAAMAAD8AgAAAAAAAJAeIGAADAAAAAQAAAAAAAAAASAAAAAAAAARAAAAAAAA0ME9YAAMAAAAAgAAAAAAAJBAMAAADAAAAAMAAAAAAAAYHiAAAAwAAAACAAAAAAAAAAAEXAAAAAAAAAAAAAAA8geAfwAAAAAAAAAAAAAAAPIfAH8AAAAAAAAAAAADAACgAgAAAAAAAP5/3+D//v///x9AAAAAAAAAAAAAAAAA4P1mAAAAwwEAHgBkIAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAAAAMAAAADAAAAAwAAAAAAAAAsD9A/g8gAAAAAAC4AAAAAAAAAAAAAAAAAABgAAAAAAIAAAAAAAAAAAAAAAAAAIcBBA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAJAAAAAAAAQH/lH/ifAAAAAAAA//////8//w8AAA8AAAAAANAXBAAAAAD4DwADAAAAPDsAAAAAAABAowMAAAAAAADwzwAAAAAAAAAAAAAAAAAAAAAAAAD3//0hEAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//////////wDIAAAAfAAAAAAAAB/8AAAAAAAAAAAAAAAA/////wEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAwAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAA/////wAAAAAAPAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAID3PwAAAMAAAAAAAAAAAAAAAwBECAAAYBAAAAAAAAAAAAAAAAAAAAAAAAAwAAAA//8DgAAAAADAPwAAgP8DAAAAAAAHAAAAAADIMwAAAAAgAAAAAAAAAAB+ZgAIEAAAAAAAEAAAAAAAAJ3BAgAAAAAwQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAICEAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAP//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAMAHAAAAAAAAAAAAAAAAAAAAAG7wAAAAAACHAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAPAAAAAAAAAAAD4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAA/AAAAAAAAAAAwP8BAAAAAAA8AAAAAAAAAAAAAAAAAAAAAgAAAAAAAP9/AAAAAAAZgAMAAAAAAHgGBAAAAAAAAAAHAAAAgO8fAAAAAAAAAAgAAwAAAAAAwH8AngAAAAAAAAAAAAAAgNNAAgAAAAAAAAAAAAAAAAAAAAAAAID4BwAAAwAAAAAAABgBAAAAwB8fAAAAAAAAAAD4AUAFAAYAAAAAAAAAAAAA/1wAAEAAAAAAAAAAAAAA+IUNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8sAEAADAAAAAAAAAAAAAA+KcBAAAAAAAAAAAAAAAAKL8AAAAAAAAAAAAAAACgvA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgP8GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFgIAAAAAAAAAAAAAAAAAAAAAADwDAEAAAD+BwAAAAD4eYAAfg4AAAAAAPx/AwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAF0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf78AAAAAAAAAAAAA/P///G0AAAAAAAAAAAAAAAAAAAB+tL8AAAAAAAAAAACjAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAwAAAAAAwAcFAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//4H/PwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMD/4wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHwAAAAAAAAB/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAgAcAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAPAAAAAAAAAAAAAAD//////z///38AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAD+P/nDwAAADwAAAAAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////9/+P//////HyAAEAAA+P7/AAAAAAAAAAAAAH////nbBwAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAfwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASMAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfwAAAAAAAAAAAAAAAADwDwAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAA////////////////AAAAAAAAAAAAAAAAAAAAAP///////////////////////////////////////wAA"]].map(function([e,t,n]){return[e,t.split(",").map(r=>parseInt(r,36)),Uint8Array.from(atob(n),r=>r.charCodeAt(0))]});function He(A,e){return e===931||e===1010||e===120531||e===120589||e===120647||e===120705||e===120763?"σ":e>=5112&&e<=5117?String.fromCodePoint(e-8):e>=43888&&e<=43967?String.fromCodePoint(e-38864):e>=93856&&e<=93880?String.fromCodePoint(e+27):e===837||e===890||e>=8064&&e<=8111||e>=8114&&e<=8188?A.normalize("NFD").replace(/\u0345/g,"ι").normalize("NFC").toLowerCase():""}function te(A,e){for(let t=0;t<A.length;t+=2)if(e>=A[t]&&e<=A[t+1])return!0;return!1}function W(A,e){let[t,n,r]=A,u=e>>8;for(let h=0;h<t.length;h+=2)if(u>=t[h]&&u<=t[h+1])return!0;let l=n.indexOf(u);if(l<0)return!1;let a=255&e;return!!(r[32*l+(a>>3)]&1<<(7&a))}function _e(A){let e=Array.from(A,t=>t.codePointAt(0));for(let t=0;t<e.length;t++){let n=e[t];if(n!==8204&&n!==8205||t>0&&te(Re,e[t-1]))continue;if(n===8205)return!1;let r=t-1;for(;r>=0&&W(YA,e[r]);)r--;let u=t+1;for(;u<e.length&&W(YA,e[u]);)u++;if(!(r>=0&&u<e.length&&W(Ne,e[r])&&W(Le,e[u])))return!1}return!0}var Be=/(?![\p{Mark}\p{Decimal_Number}])[\p{Script=Arabic}\p{Script=Hebrew}]/u,je=/\p{Script=Latin}/u;function xe(A){return!Be.test(A)||!je.test(A)}var F=36,iA=1,IA=26,Me=38,Ue=700,$e=72,ze=128,Fe=2147483647;function VA(A){return String.fromCharCode(A+22+75*+(A<26))}function Qe(A,e,t){let n=0;for(A=t?Math.floor(A/Ue):A>>1,A+=Math.floor(A/e);A>(F-iA)*IA>>1;n+=F)A=Math.floor(A/(F-iA));return Math.floor(n+(F-iA+1)*A/(A+Me))}function Ge(A){let e=Array.from(A,h=>h.codePointAt(0)),t="",n=0;for(let h=0;h<e.length;h++){let f=e[h];f<128&&(t+=String.fromCharCode(f),n++)}let r=n;r&&(t+="-");let u=ze,l=0,a=$e;for(;n<e.length;){let h=Fe;for(let f=0;f<e.length;f++){let g=e[f];g>=u&&g<h&&(h=g)}l+=(h-u)*(n+1),u=h;for(let f=0;f<e.length;f++){let g=e[f];if(g<u&&l++,g===u){let p=l;for(let m=F;;m+=F){let y=m<=a?iA:m>=a+IA?IA:m-a;if(p<y)break;t+=VA(y+(p-y)%(F-y)),p=Math.floor((p-y)/(F-y))}t+=VA(p),a=Qe(l,n+1,n===r),l=0,n++}}l++,u++}return t}function pA(A){let e=10;if(A.length>=2&&A[0]==="0"&&(A[1]==="x"||A[1]==="X"))A=A.slice(2),e=16;else if(A.length>=2&&A[0]==="0")A=A.slice(1),e=8;else if(A==="")return-1;let t=0;for(let n=0;n<A.length;n++){let r=yA(A.charCodeAt(n));if(r>=e||r<0)return-1;t=t*e+r}return t}function XA(A){switch(A){case".":case"%2e":case"%2E":return!0;default:return!1}}function ne(A,e){return(A>=65&&A<=90||A>=97&&A<=122)&&(e===58||e===124)}function re(A){return A.length===2&&ne(A.codePointAt(0),A.codePointAt(1))}function JA(A){return A.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1}function b(A){switch(A){case"ftp":case"http":case"https":case"ws":case"wss":case"file":return!0;default:return!1}}function se(A){switch(A){case"ftp":return 21;case"http":case"ws":return 80;case"https":case"wss":return 443;default:return null}}function CA(A,e){if(A[0]==="[")return A[A.length-1]==="]"?(function(n){let r=[0,0,0,0,0,0,0,0],u=null,l=0,a=0,h=Array.from(n,f=>f.codePointAt(0));if(h[a]===58){if(h[a+1]!==58)return null;a+=2,l++,u=l}for(;a<h.length;){if(l===8)return null;if(h[a]===58){if(u!==null)return null;a++,l++,u=l;continue}let f=0,g=0,p=0;for(;p<4&&(f=yA(h[a]))>=0;)g=(g<<4)+f,a++,p++;if(h[a]===46){if(p===0||l>6)return null;a-=p;let m=0;for(;h[a]!==void 0;){let y=0;if(m>0)if(h[a]===46&&m<4)a++;else return null;if(h[a]==null||h[a]<48||h[a]>57)return null;for(;h[a]>=48&&h[a]<=57;){if(y=10*y+yA(h[a]),y>255)return null;a++}r[l]=256*r[l]+y,m++,m%2==0&&l++}if(m!==4)return null;break}else if(h[a]===58){if(h[++a]===void 0)return null}else if(h[a]!==void 0)return null;r[l]=g,l++}if(u!==null){let f=l-u;for(l=7;l!==0&&f>0;){let g=r[u+f-1];r[u+f-1]=r[l],r[l]=g,l--,f--}}else if(u===null&&l!==8)return null;return r})(A.substring(1,A.length-1)):null;if(e)return(function(n){return JA(n)?null:U(n,AA)})(A);{let t=(function(r){let u=!1,l=!1;for(let h=0;h<r.length;h++){let f=r.charCodeAt(h);if(f<=32||f===37||f===127)return null;if(f>=128){u=!0;break}f>=65&&f<=90&&(l=!0)}if(!u)return r!==""?l?r.toLowerCase():r:null;if((function(f){for(let g of f){let p=g.codePointAt(0);if(/[\p{Cn}\p{Co}\p{Cs}\p{Noncharacter_Code_Point}]/u.test(g)&&!te(Te,p)||W(qe,p))return!0}return!1})(r))return null;let a=(r=(function(f){let g="";for(let p of f){let m=p.codePointAt(0);if(m!==8204&&m!==8205&&/\p{Default_Ignorable_Code_Point}/u.test(p))continue;let y=He(p,m);if(y){g+=y;continue}let k=ve.indexOf(m);g+=k<0?p:Oe[k]}return g})(r).normalize("NFKC").replace(/[\u3002\uff0e\uff61]/g,".").toLowerCase()).split(".");for(let h=0;h<a.length;h++){let f=a[h];if(f==="")continue;let g=/[^\0-\x7f]/.test(f);if(ke(f)||g&&(/^\p{Mark}/u.test(f)||!_e(f)||!xe(f)||f.startsWith("xn--")))return null;g&&(a[h]=`xn--${Ge(f)}`)}return(r=a.join("."))!==""?r:null})(A.indexOf("%")===-1?A:PA(A));return t===null||JA(t)?null:(function(r){let u=r.length,l=r.lastIndexOf(".",u-2)+1;if(r.charCodeAt(u-1)===46&&u--,u<=l)return!1;if(pA(r.slice(l,u))>=0)return!0;for(;l<u;l++){let a=r.charCodeAt(l);if(a<48||a>57)return!1}return!0})(t)?(function(r){let u=r.split("."),l=u.length;if(u[l-1]||l--,l>4)return null;let a=0;for(let f=0;f<l-1;f++){let g=pA(u[f]);if(g<0||g>255)return null;a+=g*(1<<8*(3-f))}let h=pA(u[l-1]);return h<0||h>=256**(5-l)?null:(a+=h,a)})(t):t}}function bA(A){return typeof A=="number"?(function(t){let r="";return r+=`${(t>>>24&255).toString(10)}.`,r+=`${(t>>>16&255).toString(10)}.`,r+=`${(t>>>8&255).toString(10)}.`,r+=(t&255).toString(10),r})(A):Array.isArray(A)?`[${(function(t){let n=(function(a){let h=-1,f=-1,g=1,p=0;for(let m=0;m<a.length;++m)a[m]!==0?(p>g&&(h=f,g=p),f=-1,p=0):(f===-1&&(f=m),++p);return p>g?f:h})(t),r="",u=!1;for(let l=0;l<=7;++l)if(!(u&&t[l]===0)){if(u&&(u=!1),n===l){r+=l===0?"::":":",u=!0;continue}r+=t[l].toString(16),l!==7&&(r+=":")}return r})(A)}]`:A}function oe(A){A.path.length>0&&(A.path.length!==1||A.scheme!=="file"||!(function(t){return/^[A-Za-z]:$/u.test(t)})(A.path[0]))&&A.path.pop()}function ie(A){return A.username!==""||A.password!==""}function gA(A){return A.host===null||A.host===""||A.scheme==="file"}var s=0,o="",w="",D=null,i,lA=!1,uA=!1,G=!1,E;function H(A,e,t,n){e||(A=(function(l){let a=0,h=l.length;for(;a<h&&!(l.charCodeAt(a)>32);++a);for(;h>a&&!(l.charCodeAt(h-1)>32);--h);return l.substring(a,h)})(A)),A=(function(l){let a=0;for(;a<l.length;a++){let f=l.charCodeAt(a);if(f===9||f===10||f===13)break}if(a===l.length)return l;let h=l.slice(0,a);for(;a<l.length;a++){let f=l.charCodeAt(a);f!==9&&f!==10&&f!==13&&(h+=l[a])}return h})(A),s=0,o=A,w="",D=t||null,i=e||{scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,opaquePath:!1},lA=!1,uA=!1,G=!1,E=n||0;let r=Ke;switch(n){case 3:case 4:r=aA;break;case 5:r=RA;break;case 6:r=K;break;case 7:r=Q;break;case 8:r=$}return r(c(A,s))!==1?i:null}function d(A,e){return s+=s===A?j(e):1,s<=o.length}function c(A,e){return e<A.length?A.codePointAt(e):void 0}function j(A){return A!=null&&A>65535?2:1}function le(A){return A==null?"":A<=65535?String.fromCharCode(A):String.fromCodePoint(A)}var Ke=A=>{let e=s;if(A!=null&&(A>=65&&A<=90||A>=97&&A<=122)){let t=s+1;for(A=o.charCodeAt(t);A===43||A===45||A===46||A>=65&&A<=90||A>=97&&A<=122||A>=48&&A<=57;)t++,A=o.charCodeAt(t);return w=o.slice(s,t).toLowerCase(),s=t,Ye(t<o.length?A:void 0)}else return E?1:(--s,d(e,A)?ue(c(o,s)):0)},Ye=A=>{let e=s;if(A===58){if(E){if(b(i.scheme)!==b(w))return 0;if((ie(i)||i.port!==null)&&w==="file")return 0;if(i.scheme==="file"&&i.host==="")return 0}return i.scheme=w,E?(i.port===se(i.scheme)&&(i.port=null),0):(w="",i.scheme==="file"?d(e,A)?kA(c(o,s)):0:b(i.scheme)&&D!==null&&D.scheme===i.scheme?d(e,A)?Ve(c(o,s)):0:b(i.scheme)?d(e,A)?Je(c(o,s)):0:c(o,s+1)===47?(s++,d(e,A)?Xe(c(o,s)):0):(i.path=[""],i.opaquePath=!0,d(e,A)?ae(c(o,s)):0))}else return E?1:(w="",s=-1,d(e,A)?ue(c(o,s)):0)},ue=A=>{let e=s;return D===null||D.opaquePath&&A!==35?1:D.opaquePath&&A===35?(i.scheme=D.scheme,i.path=D.path.slice(),i.opaquePath=D.opaquePath,i.query=D.query,i.fragment="",d(e,A)?$(c(o,s)):0):D.scheme==="file"?(s--,d(e,A)?kA(c(o,s)):0):(s--,d(e,A)?OA(c(o,s)):0)},Ve=A=>{let e=s;return A===47&&c(o,s+1)===47?(++s,d(e,A)?hA(c(o,s)):0):(s--,d(e,A)?OA(c(o,s)):0)},Xe=A=>{let e=s;return A===47?d(e,A)?J(c(o,s)):0:(s--,d(e,A)?x(c(o,s)):0)},OA=A=>{let e=s;return i.scheme=D.scheme,A===47||b(i.scheme)&&A===92?d(e,A)?WA(c(o,s)):0:(i.username=D.username,i.password=D.password,i.host=D.host,i.port=D.port,i.path=D.path.slice(),i.query=D.query,A===63?(i.query="",d(e,A)?Q(c(o,s)):0):A===35?(i.fragment="",d(e,A)?$(c(o,s)):0):A!=null?(i.query=null,i.path.pop(),s--,d(e,A)?x(c(o,s)):0):d(e,A)?OA(c(o,s)):0)},WA=A=>{let e=s;return b(i.scheme)&&(A===47||A===92)?d(e,A)?hA(c(o,s)):0:A===47?d(e,A)?J(c(o,s)):0:(i.username=D.username,i.password=D.password,i.host=D.host,i.port=D.port,s--,d(e,A)?x(c(o,s)):0)},Je=A=>{let e=s;return A===47&&c(o,s+1)===47?s++:s--,d(e,A)?hA(c(o,s)):0},hA=A=>{let e=s;return A!==47&&A!==92?(s--,d(e,A)?J(c(o,s)):0):d(e,A)?hA(c(o,s)):0},J=A=>{let e=s;if(A!=null&&A!==64&&A!==35&&A!==47&&A!==63&&(A!==92||!b(i.scheme))){let t=s+j(A);for(;t<o.length;){let n=c(o,t);if(n==null||n===64||n===35||n===47||n===63||n===92&&b(i.scheme))break;t+=j(n)}return w+=o.slice(s,t),s=t-1,d(e,A)?J(c(o,s)):0}if(A===64){lA&&(w=`%40${w}`),lA=!0;for(let t=0;t<w.length;t++){let n=w.codePointAt(t);if(n===58&&!uA){uA=!0;continue}let r=ee(n,cA);uA?i.password+=r:i.username+=r,n!=null&&n>65535&&t++}return w="",d(e,A)?J(c(o,s)):0}else return A==null||A===35||A===47||A===63||A===92&&b(i.scheme)?lA&&w===""?1:(s-=w.length+1,w="",d(e,A)?aA(c(o,s)):0):(w+=le(A),d(e,A)?J(c(o,s)):0)},aA=A=>{let e=s;if(E&&i.scheme==="file")return s--,d(e,A)?qA(c(o,s)):0;if(A!=null&&A!==58&&A!==35&&A!==47&&A!==63&&(A!==92||!b(i.scheme))){let t=s+j(A);for(A===91?G=!0:A===93&&(G=!1);t<o.length;){let n=c(o,t);if(n==null||!G&&n===58||n===35||n===47||n===63||n===92&&b(i.scheme))break;n===91?G=!0:n===93&&(G=!1),t+=j(n)}return w+=o.slice(s,t),s=t-1,d(e,A)?aA(c(o,s)):0}else if(A===58&&!G){if(w===""||E===4)return 1;let t=CA(w,!b(i.scheme));return t===null?1:(i.host=bA(t),w="",d(e,A)?RA(c(o,s)):0)}else if(A==null||A===35||A===47||A===63||A===92&&b(i.scheme)){if(s--,b(i.scheme)&&w==="")return 1;if(E&&w===""&&(ie(i)||i.port!==null))return 1;let t=CA(w,!b(i.scheme));return t===null?1:(i.host=bA(t),w="",E?0:d(e,A)?K(c(o,s)):0)}else return w+=le(A),d(e,A)?aA(c(o,s)):0},RA=A=>{let e=s;if(A!=null&&A>=48&&A<=57){let t=s+1;for(;t<o.length;){let n=o.charCodeAt(t);if(n<48||n>57)break;t++}return w+=o.slice(s,t),s=t-1,d(e,A)?RA(c(o,s)):0}else if(E||A==null||A===35||A===47||A===63||A===92&&b(i.scheme)){if(w!==""){let t=parseInt(w,10);if(t>65535)return 1;if(i.port=t===se(i.scheme)?null:t,w="",E)return 0}return E?1:(s--,d(e,A)?K(c(o,s)):0)}else return 1};function ce(A,e){let t=A.length-e;if(t<2)return!1;if(ne(c(A,e),c(A,e+1))){if(t===2)return!0;{let n=c(A,e+2);return n===47||n===92||n===63||n===35}}else return!1}var kA=A=>{let e=s;return i.scheme="file",i.host="",A===47||A===92?d(e,A)?We(c(o,s)):0:D?.scheme==="file"?(i.host=D.host,i.path=D.path.slice(),i.opaquePath=D.opaquePath,i.query=D.query,A===63?(i.query="",d(e,A)?Q(c(o,s)):0):A===35?(i.fragment="",d(e,A)?$(c(o,s)):0):A!=null?(i.query=null,ce(o,s)?i.path=[]:oe(i),s--,d(e,A)?x(c(o,s)):0):d(e,A)?kA(c(o,s)):0):(s--,d(e,A)?x(c(o,s)):0)},We=A=>{let e=s;return A===47||A===92?d(e,A)?qA(c(o,s)):0:(D!==null&&D.scheme==="file"&&(!ce(o,s)&&(function(n){if(n.length===2){let r=n.codePointAt(0),u=n.codePointAt(1);return(r>=65&&r<=90||r>=97&&r<=122)&&u===58}else return!1})(D.path[0])&&i.path.push(D.path[0]),i.host=D.host),s--,d(e,A)?x(c(o,s)):0)},qA=A=>{let e=s;if(A!=null&&A!==47&&A!==92&&A!==63&&A!==35){let t=s+j(A);for(;t<o.length;){let n=c(o,t);if(n==null||n===47||n===92||n===63||n===35)break;t+=j(n)}return w+=o.slice(s,t),s=t-1,d(e,A)?qA(c(o,s)):0}else if(A==null||A===47||A===92||A===63||A===35){if(s--,!E&&re(w))return d(e,A)?x(c(o,s)):0;if(w==="")return i.host="",E?0:d(e,A)?K(c(o,s)):0;{let t=CA(w,!b(i.scheme));return t===null?1:(t==="localhost"&&(t=""),i.host=bA(t),w="",E?0:d(e,A)?K(c(o,s)):0)}}return 1},K=A=>{let e=s;return b(i.scheme)?(A!==92&&A!==47&&s--,d(e,A)?x(c(o,s)):0):!E&&A===63?(i.query="",d(e,A)?Q(c(o,s)):0):!E&&A===35?(i.fragment="",d(e,A)?$(c(o,s)):0):A!=null?(A!==47&&s--,d(e,A)?x(c(o,s)):0):(E&&i.host===null&&i.path.push(""),d(e,A)?K(c(o,s)):0)},x=A=>{let e=s;if(A!=null&&A!==47&&(!b(i.scheme)||A!==92)&&(E||A!==63&&A!==35)){let t=s+j(A);for(;t<o.length;){let n=c(o,t);if(n==null||n===47||b(i.scheme)&&n===92||!E&&(n===63||n===35))break;t+=j(n)}w+=U(o.slice(s,t),DA),s=t,A=c(o,t)}if(A==null||A===47||b(i.scheme)&&A===92||!E&&(A===63||A===35)){let t=b(i.scheme)&&A===92;return(function(r){switch(r){case"..":case"%2e.":case"%2E.":case".%2e":case".%2E":case"%2e%2e":case"%2E%2e":case"%2e%2E":case"%2E%2E":return!0;default:return!1}})(w)?(oe(i),A!==47&&!t&&i.path.push("")):XA(w)&&A!==47&&!t?i.path.push(""):XA(w)||(i.scheme==="file"&&i.path.length===0&&re(w)&&(w=`${w[0]}:`),i.path.push(w)),w="",A===63?(i.query="",d(e,A)?Q(c(o,s)):0):A===35?(i.fragment="",d(e,A)?$(c(o,s)):0):d(e,A)?x(c(o,s)):0}else return w+=ee(A,DA),d(e,A)?x(c(o,s)):0},ae=A=>{let e=s;if(A===63)return i.query="",d(e,A)?Q(c(o,s)):0;if(A===35)return i.fragment="",d(e,A)?$(c(o,s)):0;if(A!=null){let t=s+j(A);for(;t<o.length;){let r=c(o,t);if(r===63||r===35)break;t+=j(r)}let n=o.slice(s,t);if(t<o.length&&n.charCodeAt(n.length-1)===32?i.path[0]+=U(n.slice(0,-1),AA)+"%20":i.path[0]+=U(n,AA),s=t,(A=c(o,t))===63)return i.query="",d(e,A)?Q(c(o,s)):0;if(A===35)return i.fragment="",d(e,A)?$(c(o,s)):0}return d(e,A)?ae(c(o,s)):0},Q=A=>{let e=s,t=s;if(A!=null){if(E)t=o.length;else{let r=o.indexOf("#",s);t=r===-1?o.length:r}let n=b(i.scheme)?Ee:TA;i.query+=U(o.slice(s,t),n)}return s=t,c(o,t)===35&&!E?(i.fragment="",d(e,A)?$(c(o,s)):0):d(e,A)?Q(c(o,s)):0},$=A=>{let e=s;return A!=null&&(i.fragment+=U(o.slice(s),be),s=o.length),d(e,A)?$(c(o,s)):0};function EA(A){if(A.opaquePath)return A.path[0];{let e="";for(let t of A.path)e+=`/${t}`;return e}}function fe(A){switch(A.scheme){case"blob":{let e=H(EA(A),null,null,0);return e===null||e.scheme!=="http"&&e.scheme!=="https"?"null":fe(e)}case"ftp":case"http":case"https":case"ws":case"wss":return(function(t){let n=`${t.scheme}://`;return n+=t.host,t.port!==null&&(n+=`:${t.port}`),n})(A);default:return"null"}}var S=Symbol("URLImpl"),eA=class A{constructor(e,t){if(e===void 0&&t===void 0)throw new TypeError('The "url" argument must be specified.');e=I(e),t!=null&&(t=I(t));let n=null;if(t!=null&&(n=H(t,null,null,0),n==null))throw new TypeError(`Invalid base URL: ${t}`);let r=H(e,null,n,0);if(r==null)throw new TypeError(`Invalid URL: ${e}`);this[S]={url:r,query:null}}static createObjectURL(e){throw new TypeError("URL.createObjetURL is unsupported")}static revokeObjectURL(e){}static parse(e,t){e=I(e),t!==void 0&&(t=I(t));try{return new A(e,t)}catch{return null}}static canParse(e,t){e=I(e),t!==void 0&&(t=I(t));let n=null;return t!=null&&(n=H(t,null,null,0),n==null)?!1:H(e,null,n,0)!=null}get href(){return(function(t){let n=`${t.scheme}:`;return t.host!==null&&(n+="//",(t.username!==""||t.password!=="")&&(n+=t.username,t.password!==""&&(n+=`:${t.password}`),n+="@"),n+=t.host,t.port!==null&&(n+=`:${t.port}`)),t.host===null&&!t.opaquePath&&t.path.length>1&&t.path[0]===""&&(n+="/."),n+=EA(t),t.query!==null&&(n+=`?${t.query}`),t.fragment!==null&&(n+=`#${t.fragment}`),n})(this[S].url)}set href(e){let t=H(e=I(e),null,null,0);if(t==null)throw new TypeError(`Invalid URL: ${e}`);this[S].url=t,this[S].query&&wA(this[S].query,t.query)}get origin(){return fe(this[S].url)}get protocol(){return`${this[S].url.scheme}:`}set protocol(e){H(`${e=I(e)}:`,this[S].url,null,2)}get username(){return this[S].url.username}set username(e){e=I(e),gA(this[S].url)||(function(n,r){n.username=U(r,cA)})(this[S].url,e)}get password(){return this[S].url.password}set password(e){e=I(e),gA(this[S].url)||(function(n,r){n.password=U(r,cA)})(this[S].url,e)}get host(){let{url:e}=this[S];return e.host==null?"":e.port==null?e.host:`${e.host}:${e.port}`}set host(e){e=I(e),this[S].url.opaquePath||H(e,this[S].url,null,3)}get hostname(){let{url:e}=this[S];return e.host!=null?e.host:""}set hostname(e){e=I(e),this[S].url.opaquePath||H(e,this[S].url,null,4)}get port(){let{url:e}=this[S];return e.port!=null?`${e.port}`:""}set port(e){e=I(e);let{url:t}=this[S];gA(t)||(e?H(e,t,null,5):t.port=null)}get pathname(){return EA(this[S].url)}set pathname(e){e=I(e);let{url:t}=this[S];t.opaquePath||(t.path=[],H(e,t,null,6))}get search(){let{url:e}=this[S];return e.query?`?${e.query}`:""}set search(e){e=I(e);let{url:t,query:n}=this[S];if(!e)t.query=null,n&&wA(n,null);else{let r=e[0]==="?"?e.substring(1):e;t.query="",H(r,t,null,7),n&&wA(n,t.query)}}get searchParams(){let e=this[S],t=e.query;return t==null&&(t=e.query=(function(r,u){let l=new fA;return l[C].url=r,l[C].serialized=u==null,u&&(l[C].list=vA(u)),l})(this,e.url.query)),t}get hash(){let{url:e}=this[S];return e.fragment?`#${e.fragment}`:""}set hash(e){e=I(e);let{url:t}=this[S];if(!e)t.fragment=null;else{let n=e[0]==="#"?e.substring(1):e;t.fragment="",H(n,t,null,8)}}toJSON(){return this.href}toString(){return this.href}};Object.defineProperty(eA.prototype,Symbol.toStringTag,{value:"URL",configurable:!0});var C=Symbol("URLSearchParamsImpl"),Ze=Symbol.dispose||Symbol.for("dispose");function wA(A,e){e?A[C].list=vA(e):A[C].list.length=0,A[C].serialized=e==null}function oA(A){if(A.url){let e=SA(A.list);(function(n,r){n[S].url.query=r})(A.url,e||null),A.serialized=!0}}var At=typeof Iterator<"u"?Iterator:Object,Z=class extends At{constructor(e,t){super(),this[C]={ptr:e,map:t,index:0}}next(){let e=this[C];return e.index<e.ptr.list.length?{value:e.map(e.ptr.list[e.index++]),done:!1}:{value:void 0,done:!0}}[Symbol.iterator](){return this}[Ze](){}},fA=class{constructor(e){let t=this[C]={list:[],url:null,serialized:!0},n;if(Array.isArray(e))for(let r=0;r<e.length;r++)t.list.push(QA(e[r]));else if((n=ZA(e))!=null){let r;for(;!(r=mA(n.next())).done;)t.list.push(QA(r.value))}else if((typeof e=="object"||typeof e=="function")&&e!=null){let r=Object.keys(e);for(let u=0;u<r.length;u++){let l=r[u],a=Ie(l),h=I(e[l]),f=t.list.find(g=>g[0]===a);f?f[1]=h:t.list.push([a,h])}}else if(e!==void 0){let r=I(e);r=r[0]==="?"?r.substring(1):r,t.list=vA(r)}}get size(){return this[C].list.length}append(e,t){e=I(e),t=I(t),this[C].list.push([e,t]);let n=this[C];n.url&&n.serialized?(function(u,l){let a=u[S].url;a.query=a.query?`${a.query}&${l}`:l})(n.url,SA([[e,t]])):oA(n)}delete(e,t){e=I(e),t=t!=null?I(t):void 0;let{list:n}=this[C],r=0;for(;r<n.length;)n[r][0]===e&&(t==null||n[r][1]===t)?n.splice(r,1):r++;oA(this[C])}get(e){e=I(e);let{list:t}=this[C];for(let n=0;n<t.length;n++)if(t[n][0]===e)return t[n][1];return null}getAll(e){e=I(e);let t=[],{list:n}=this[C];for(let r=0;r<n.length;r++)n[r][0]===e&&t.push(n[r][1]);return t}has(e,t){e=I(e),t=t!=null?I(t):void 0;let{list:n}=this[C];for(let r=0;r<n.length;r++)if(n[r][0]===e&&(t==null||n[r][1]===t))return!0;return!1}set(e,t){e=I(e),t=I(t);let{list:n}=this[C],r=!1,u=!1,l=0;for(;l<n.length;)n[l][0]===e?r?(n.splice(l,1),u=!0):(r=!0,n[l][1]!==t&&(n[l][1]=t,u=!0),l++):l++;r||(n.push([e,t]),u=!0),u&&oA(this[C])}sort(){this[C].list.sort((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0),oA(this[C])}forEach(e,t){if(typeof e!="function")throw new TypeError('The "callback" argument must be of type function');let{list:n}=this[C];for(let r=0;r<n.length;r++)e.call(t,n[r][1],n[r][0],this)}entries(){return new Z(this[C],e=>e)}keys(){return new Z(this[C],e=>e[0])}values(){return new Z(this[C],e=>e[1])}toString(){return SA(this[C].list)}[Symbol.iterator](){return this.entries()}};Object.defineProperty(fA.prototype,Symbol.toStringTag,{value:"URLSearchParams",configurable:!0});var NA="X-Indiana-Protocol",he="X-Indiana-SDK-Version";var LA={current:"0.10"};function de(A){let e,t=()=>typeof e=="string"?e:e?.accessToken,n=0,r,u=new Map,l=()=>{for(let p of[...u.keys()])try{p()}catch{}};function a(p){let m=++n;r=void 0,e=void 0;for(let y of[...u.values()])try{y?.()}catch{}m===n&&(e=p,l())}let h=()=>a();function f(p,m=!1){let y=$A.safeParse(p);if(!y.success||m&&Date.parse(y.data.expiresAt)<=Date.now()||Date.parse(y.data.refreshExpiresAt)<=Date.now()||Date.parse(y.data.refreshExpiresAt)<Date.parse(y.data.expiresAt))throw new P("INVALID_RESPONSE","Invalid customer session credentials");return y.data}async function g(){if(r)return r;let p=typeof e=="object"?e:void 0,m=n;if(!p||Date.parse(p.refreshExpiresAt)<=Date.now())throw p&&h(),new P("UNAUTHENTICATED","Customer authentication is required",401);let y=(async()=>{try{let k=await A(p.refreshToken);if(m!==n)throw new P("IDENTITY_CHANGED","Customer identity changed during refresh");let Y=f(k,!0);if(Y.customerId!==p.customerId||Y.sessionId!==p.sessionId)throw new P("SCOPE_MISMATCH","Refresh changed the customer session");return e=Y,{...Y}}catch(k){throw m!==n?new P("IDENTITY_CHANGED","Customer identity changed during refresh"):(k instanceof P&&k.status===401&&h(),k)}})();r=y;try{return await y}finally{r===y&&(r=void 0)}}return{identify(p){let m=typeof p=="string"?p:f(p),y=typeof m=="string"?m:m.accessToken;if(!y.trim()||/\s/.test(y)||y.length>4096)throw new P("INVALID_TOKEN","A server-issued token is required");a(m)},reset:h,subscribeIdentity(p,m){return u.set(p,m),()=>{u.delete(p)}},access(){let p=typeof e=="object"?e:void 0;if(p&&Date.parse(p.expiresAt)<=Date.now()+3e4){let y=n;return g().then(()=>{let k=t();if(y!==n||!k)throw new P("IDENTITY_CHANGED","Customer identity changed during refresh");return k})}let m=t();if(!m)throw new P("NOT_IDENTIFIED","Identify a customer session before making a request");return m},peek:t,snapshot:()=>typeof e=="object"?{...e}:void 0,refresh:g}}var pe=Symbol("IndianaNoContent");function gt(A,e,t=eA){let n=A.configuration?.scope,r=A.scope??(n&&{projectId:n.projectId,environment:n.environment}),u=r?sA.parse(r):void 0;if(u&&n&&(u.projectId!==n.projectId||u.environment!==n.environment))throw new P("SCOPE_MISMATCH","Configuration belongs to another App/environment");let l=new t(A.baseUrl??FA);if(l.username||l.password||l.search||l.hash)throw new P("INVALID_URL","baseUrl must not contain credentials, query, or fragment");if(l.protocol!=="https:"&&!(l.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(l.hostname)))throw new P("INVALID_URL","Use HTTPS, or HTTP on localhost during development");let a=A.fetch??globalThis.fetch.bind(globalThis),h=A.timeoutMs??1e4;if(!Number.isFinite(h)||h<1||h>12e4)throw new P("INVALID_TIMEOUT","timeoutMs must be between 1 and 120000");let f=!1,g=0,p=null,m=new Set,y=A.session??de(async v=>{let R=await tA("customer-sessions/refresh",{},"POST",{},v);if(!R||typeof R!="object")throw new P("INVALID_RESPONSE","Invalid refresh response");let{requestId:_,scope:B,...V}=R;return V});function k(){g+=1,p=null;for(let v of m)v.abort();m.clear()}let Y=y.subscribeIdentity(k);function ge(){f||y.reset()}async function tA(v,R={},_="POST",B={},V){let N=B.installationDetach===!0;if(N&&(v!=="push/installations/detach"||_!=="POST"))throw new P("INVALID_REQUEST","Installation authority only detaches this installation");if(!V&&!N)throw new P("NOT_IDENTIFIED","Call identify with a server-issued customer token first");let X=g,L=new AbortController;N||m.add(L);let nA=()=>!N&&X!==g?new P("IDENTITY_CHANGED","Customer identity changed while the request was in flight"):new P("TIMEOUT","The request timed out"),dA,ye=new Promise((O,q)=>{dA=()=>q(nA()),L.signal.addEventListener("abort",dA,{once:!0})}),Pe=setTimeout(()=>L.abort(),B.timeoutMs??h),De=async()=>{let O=await a(`${l.href.replace(/\/$/,"")}/api/v1/${v}`,{method:_,headers:{...B.headers,"Content-Type":"application/json",...N?{}:{Authorization:`Bearer ${V}`},[NA]:LA.current,[he]:zA.version,...u?{"X-Indiana-Project":u.projectId,"X-Indiana-Environment":u.environment}:{}},body:_==="POST"?JSON.stringify(R):void 0,signal:L.signal,credentials:"omit",cache:_==="POST"&&typeof document<"u"?"default":"no-store",redirect:"error",...B.keepalive?{keepalive:!0}:{}});if(L.signal.aborted)throw nA();let q;try{q=O.status===204?pe:await O.json()}catch{throw L.signal.aborted?nA():new P(O.ok?"INVALID_RESPONSE":"HTTP_ERROR","The gateway returned an unreadable response",O.status,O.headers.get("X-Request-Id")??void 0)}if(L.signal.aborted)throw nA();if(!N&&X!==g)throw new P("IDENTITY_CHANGED","Customer identity changed while the request was in flight");if(!O.ok){let T=MA.safeParse(et(q)),z=T.success&&(!BA.safeParse(T.data.error.code).success||xA(T.data.error.code,O.status)),HA=z?T.data.error.code:"HTTP_ERROR",_A=UA(HA,O.status,{retryAfter:O.headers.get("Retry-After"),recovery:z?T.data.error.recovery:void 0,reason:z?T.data.error.reason:void 0});throw new P(HA,z?T.data.error.message:"The request failed",O.status,O.headers.get("X-Request-Id")??(T.success?T.data.requestId:void 0),{..._A,...T.success&&T.data.error.retryable===!1?{retryable:!1}:{},..._A.retryAfterSeconds===void 0&&T.success&&T.data.error.retryAfterSeconds!==void 0?{retryAfterSeconds:T.data.error.retryAfterSeconds}:{}})}if(O.headers.get(NA)!==LA.current)throw new P("PROTOCOL_MISMATCH","Response protocol does not match this SDK");if(u&&q!==pe){let T=q&&typeof q=="object"&&"scope"in q?q:q&&typeof q=="object"&&"configuration"in q?q.configuration:null;if(!T||typeof T!="object"||!("scope"in T))throw new P("INVALID_RESPONSE","Response is missing its App/environment scope");let z=sA.safeParse(T.scope);if(!z.success||z.data.projectId!==u.projectId||z.data.environment!==u.environment)throw new P("SCOPE_MISMATCH","Response scope does not match this SDK instance")}let rA=O.headers.get("X-Indiana-Telemetry-Subject");if(rA){if(!/^[a-f0-9]{64}$/.test(rA))throw new P("INVALID_RESPONSE","Invalid telemetry identity");p!==rA&&(p=rA,e?.(p))}return q};try{return await Promise.race([De(),ye])}catch(O){throw!N&&X!==g?new P("IDENTITY_CHANGED","Customer identity changed while the request was in flight"):O instanceof P?O:new P(L.signal.aborted?"TIMEOUT":"NETWORK_ERROR",L.signal.aborted?"The request timed out":"Unable to read the response")}finally{clearTimeout(Pe),L.signal.removeEventListener("abort",dA),m.delete(L)}}function we(v,R={},_="POST",B={}){if(f)return Promise.reject(new P("CLOSED","SDK client was destroyed"));if(B.installationDetach)return tA(v,R,_,B);let V=g;try{let N=y.access(),X=L=>{if(V!==g)throw new P("IDENTITY_CHANGED","Customer identity changed before dispatch");return tA(v,R,_,B,L)};return typeof N=="string"?X(N):N.then(X)}catch(N){return Promise.reject(N)}}let me=Object.assign(we,{captureIdentity(){let v=g,R=f,_=!!y.peek();return()=>{if(R)throw new P("CLOSED","SDK client was destroyed");if(!_)throw new P("NOT_IDENTIFIED","Call identify with a server-issued customer token first");if(v!==g)throw new P("IDENTITY_CHANGED","Customer identity changed before dispatch")}}});return{session:y,requestWithCredential(v,R,_,B={}){return f?Promise.reject(new P("CLOSED","SDK client was destroyed")):tA(v,R,"POST",B,_)},subjectKey:()=>p,identify(v){if(f)throw new P("CLOSED","SDK client was destroyed");if(u&&typeof v=="object"&&"scope"in v){let R=sA.safeParse(v.scope);if(!R.success||R.data.projectId!==u.projectId||R.data.environment!==u.environment)throw new P("SCOPE_MISMATCH","Customer session belongs to another App/environment")}y.identify(v)},reset:ge,dispose(){f||(f=!0,Y(),k())},request:me}}function et(A){if(!A||typeof A!="object"||!("error"in A))return A;let e=A.error;if(!e||typeof e!="object"||!("reason"in e)||jA.safeParse(e.reason).success)return A;let{reason:t,...n}=e;return{...A,error:n}}export{eA as a,gt as b};
|
package/dist/chunk-XFOU4DZG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t="https://api.longplayai.com";var p={name:"@tinkerlandai/longplay-sdk",version:"0.10.58",description:"Framework-independent Longplay SDK for customer identity, entitlements, credits, offers and growth surfaces.",license:"UNLICENSED",repository:{type:"git",url:"git+https://github.com/tinkerlandai/Indiana.git",directory:"packages/sdk"},engines:{node:">=22"},publishConfig:{access:"public",tag:"beta"},type:"module",sideEffects:!1,files:["dist","README.md","README.zh-CN.md","CHANGELOG.md","THIRD_PARTY_NOTICES.md","native-funnel-host.NOTICES.txt"],exports:{"./react-native":{types:"./dist/react-native.d.ts","react-native":"./dist/react-native.js",import:"./dist/react-native.js",default:"./dist/react-native.js"},".":{types:"./dist/index.d.ts",import:"./dist/index.js"},"./popup":{types:"./dist/popup.d.ts",import:"./dist/popup.js"},"./server":{types:"./dist/server.d.ts",import:"./dist/server.js"},"./openrouter":{types:"./dist/openrouter.d.ts",import:"./dist/openrouter.js"},"./native-shell":{types:"./dist/native-shell.d.ts",import:"./dist/native-shell.js"},"./page":{types:"./dist/page.d.ts",import:"./dist/page.js"},"./visual":{types:"./dist/visual.d.ts",import:"./dist/visual.js"}},scripts:{build:"tsup",prepack:"pnpm run build",typecheck:"tsc --noEmit && tsc --noEmit -p tsconfig.test.json",lint:"node ../../scripts/ci/lint.mjs --workspace packages/sdk"},dependencies:{"@ai-sdk/provider":"4.0.26","@types/json-schema":"7.0.15","css-tree":"^3.2.1","dom-mutator":"0.7.0",dompurify:"^3.4.15",zod:"4.6.6"},devDependencies:{"@indiana/contracts":"workspace:*","@openrouter/sdk":"^1.4.25","@types/css-tree":"^3.2.0",ai:"7.0.136",tsup:"^8.5.1",typescript:"^5.9.3","whatwg-url-minimum":"0.2.0"},peerDependencies:{"@openrouter/sdk":"^1.4.25"},peerDependenciesMeta:{"@openrouter/sdk":{optional:!0}}};export{p as a,t as b};
|
package/dist/content-2SRJS3E3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as ie}from"./chunk-ZG3EYP5L.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-EP2L4VTS.js";import{b as X}from"./chunk-G2JC7G3R.js";import{r as V}from"./chunk-KXA4JHFW.js";import"./chunk-PZTFSADV.js";import"./chunk-YIHMOK6T.js";import"./chunk-P2JQEGYV.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-UB5SVEM6.js";import"./chunk-6VWVBQFR.js";import{o as Y,p as K}from"./chunk-LTWU7HH5.js";import{A as G}from"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import{c as $,d as R}from"./chunk-T7AK4QLG.js";import{a as p}from"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-XFOU4DZG.js";import{b as u}from"./chunk-COMZFFUA.js";import{a as h}from"./chunk-DSPLGTQI.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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-HIH6IEV7.js";import{b as j}from"./chunk-QY5TS3OY.js";import"./chunk-PYTI77BV.js";import"./chunk-GIX2F53I.js";import"./chunk-XQJW2RXY.js";import{a as re}from"./chunk-RB2SBQMM.js";import{a as z}from"./chunk-6UQ7BKSR.js";import{b as te}from"./chunk-F4E42S54.js";import"./chunk-XQAGF6SQ.js";import"./chunk-AEQUKR4O.js";import"./chunk-W32FI2A2.js";import{j as A,k as V}from"./chunk-EP2L4VTS.js";import"./chunk-LDNDI6G3.js";import"./chunk-D26ZQC46.js";import"./chunk-AIRW6CZ7.js";import"./chunk-XH2JMWC6.js";import"./chunk-RSKDG2VD.js";import"./chunk-IJQFSZQG.js";import"./chunk-EHYW66EH.js";import"./chunk-KXA4JHFW.js";import"./chunk-PZTFSADV.js";import"./chunk-6HNCADWS.js";import"./chunk-YIHMOK6T.js";import"./chunk-NPKNI2UD.js";import"./chunk-4VZCPOVE.js";import"./chunk-P2JQEGYV.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-UB5SVEM6.js";import"./chunk-6VWVBQFR.js";import"./chunk-LTWU7HH5.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import{a as C}from"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-SLUA7ABW.js";import"./chunk-46MFVWRW.js";import"./chunk-3VUPVXAV.js";import"./chunk-XFOU4DZG.js";import"./chunk-COMZFFUA.js";import{a as h}from"./chunk-DSPLGTQI.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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()}),O=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))||O&&["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",R),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 R(){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 s=>{s.mode==="run"&&s.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",R,{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 s=O?l.wait(O.then(r=>r?Q(r):null,()=>null),A):Promise.resolve(m??null);s.catch(()=>{}),f?.state==="shown"?(M=!0,l.present(()=>{})):f&&["preparing","ready"].includes(f.state)&&Promise.all([f.ready,s.catch(()=>null)]).then(([r,i])=>{if(r){if(n||!l.active||!i||!f.matches(i)||!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(),O){let r=await s;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({reuseRecentRead:!0});let u=await l.wait(H,A);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 s=t?o?.retainPurchaseDialog?.():void 0;return o?.destroy(),a.addEventListener("abort",R,{once:!0}),s}function T(t){p=!0;let o=e.client.attempt?.locale??m?.locale,s=o?.startsWith("zh"),d=t?s?"正在查询原订单…":"Checking your purchase…":s?"暂时无法确认原订单,请重试。":"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",R,{once:!0}),T(!0);let t=Promise.resolve().then(async()=>{try{let s=await l.wait(e.client.refresh(),A);!n&&!a.aborted&&await ee(s,l)}catch(s){!n&&!a.aborted&&(h(e.onError,s),T(!1))}});E=t;let o=()=>{E===t&&(E=void 0)};return t.then(o,o),t}async function ee(t,o){let s=e.client.controller;if(t.mode==="run"&&t.status!=="blocked"&&s)return p&&c&&x(),p=!1,U=void 0,ae(s,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)),A).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 i=r.host;return p=!1,c={destroy(){i.destroy(),v(),h(e.onDismiss,null)},refresh:async()=>{await i.refresh()},get recovery(){return i.recovery},prepareFallback:()=>i.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",R),L=!0;function s(){!n&&!a.aborted&&!p&&!X&&q&&e.client.recovery.status==="complete"&&(X=!0,h(e.onComplete,structuredClone(q)))}F(),F=e.client.subscribe(s);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 i=e.client.recovery;if((!i.actions.includes("continue_checkout")||!i.purchases.some(w=>w.type==="checkout"&&w.checkoutUrl===r))&&(i=await e.client.refresh(),a.throwIfAborted(),n))throw new DOMException("Presentation dismissed","AbortError");if(te(i)!==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 i=e.client.attempt;if(!i)throw new C("PURCHASE_PENDING","Read the original Start before selecting an offer");let w=await e.resolveOfferId?.(r,i);if(a.throwIfAborted(),n)throw new DOMException("Presentation dismissed","AbortError");if(e.client.attempt?.requestId!==i.requestId)throw new C("PURCHASE_STORAGE_CONFLICT","The original purchase changed while selecting an offer");return w},async resolveSubscriptionChange(r){a.throwIfAborted();let i=e.client.attempt;if(n||!i)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!==i.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,s())},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(i=>h(e.onError,i)))},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-PYTI77BV.js";import{a as E}from"./chunk-RB2SBQMM.js";import"./chunk-6UQ7BKSR.js";import"./chunk-AEQUKR4O.js";import"./chunk-W32FI2A2.js";import{g as S}from"./chunk-EP2L4VTS.js";import"./chunk-PZTFSADV.js";import"./chunk-YIHMOK6T.js";import"./chunk-NPKNI2UD.js";import"./chunk-4VZCPOVE.js";import{b as C}from"./chunk-P2JQEGYV.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-UB5SVEM6.js";import"./chunk-6VWVBQFR.js";import{t as k}from"./chunk-LTWU7HH5.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import{a as i}from"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-XFOU4DZG.js";import"./chunk-COMZFFUA.js";import"./chunk-DSPLGTQI.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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-QY5TS3OY.js";import"./chunk-GIX2F53I.js";import"./chunk-XQJW2RXY.js";import"./chunk-6HNCADWS.js";import"./chunk-YIHMOK6T.js";import"./chunk-4VZCPOVE.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-6VWVBQFR.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-COMZFFUA.js";import"./chunk-DSPLGTQI.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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-GIX2F53I.js";import"./chunk-XQJW2RXY.js";import"./chunk-6HNCADWS.js";import"./chunk-YIHMOK6T.js";import"./chunk-VILB5M4X.js";import"./chunk-T7AK4QLG.js";import"./chunk-COMZFFUA.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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-XQJW2RXY.js";import"./chunk-6HNCADWS.js";import"./chunk-YIHMOK6T.js";import"./chunk-VILB5M4X.js";import"./chunk-T7AK4QLG.js";import"./chunk-COMZFFUA.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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-HIH6IEV7.js";import"./chunk-QY5TS3OY.js";import"./chunk-PYTI77BV.js";import"./chunk-GIX2F53I.js";import"./chunk-XQJW2RXY.js";import"./chunk-6UQ7BKSR.js";import"./chunk-XQAGF6SQ.js";import"./chunk-AEQUKR4O.js";import"./chunk-W32FI2A2.js";import"./chunk-EP2L4VTS.js";import"./chunk-XH2JMWC6.js";import"./chunk-PZTFSADV.js";import"./chunk-6HNCADWS.js";import"./chunk-YIHMOK6T.js";import"./chunk-NPKNI2UD.js";import"./chunk-4VZCPOVE.js";import"./chunk-P2JQEGYV.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-UB5SVEM6.js";import"./chunk-6VWVBQFR.js";import"./chunk-LTWU7HH5.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-SLUA7ABW.js";import"./chunk-46MFVWRW.js";import"./chunk-XFOU4DZG.js";import"./chunk-COMZFFUA.js";import"./chunk-DSPLGTQI.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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-QA3LXFSK.js";import"./chunk-6VWVBQFR.js";import"./chunk-XBF44N3Z.js";import"./chunk-LB2ZRTRA.js";import"./chunk-COMZFFUA.js";import"./chunk-CILM5XMH.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-NFZUVZJP.js";import"./chunk-G2JC7G3R.js";import"./chunk-YJ2IOBHW.js";import"./chunk-EHYW66EH.js";import"./chunk-KXA4JHFW.js";import"./chunk-PZTFSADV.js";import"./chunk-YIHMOK6T.js";import"./chunk-P2JQEGYV.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-GCTD4RXV.js";import"./chunk-6VWVBQFR.js";import"./chunk-LTWU7HH5.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import"./chunk-LB2ZRTRA.js";import"./chunk-COMZFFUA.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.js";import"./chunk-WOT6VMZA.js";export{o as apiOperations};
|
package/dist/paywall-PWWDHKVH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-RB2SBQMM.js";import"./chunk-6UQ7BKSR.js";import"./chunk-W32FI2A2.js";import"./chunk-EP2L4VTS.js";import"./chunk-NPKNI2UD.js";import"./chunk-4VZCPOVE.js";import"./chunk-P2JQEGYV.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-UB5SVEM6.js";import"./chunk-6VWVBQFR.js";import"./chunk-LTWU7HH5.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-XFOU4DZG.js";import"./chunk-COMZFFUA.js";import"./chunk-DSPLGTQI.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.js";import"./chunk-WOT6VMZA.js";export{a as showPaywall};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as a}from"./chunk-IJQFSZQG.js";import"./chunk-EHYW66EH.js";import"./chunk-KXA4JHFW.js";import"./chunk-PZTFSADV.js";import"./chunk-YIHMOK6T.js";import"./chunk-P2JQEGYV.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-UB5SVEM6.js";import"./chunk-6VWVBQFR.js";import"./chunk-LTWU7HH5.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-3VUPVXAV.js";import"./chunk-XFOU4DZG.js";import"./chunk-COMZFFUA.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.js";import"./chunk-WOT6VMZA.js";export{a as readPaywallContent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-GLVCBJL5.js";import"./chunk-NFZUVZJP.js";import"./chunk-G2JC7G3R.js";import"./chunk-RSKDG2VD.js";import"./chunk-YJ2IOBHW.js";import"./chunk-227Z7LU4.js";import"./chunk-IJQFSZQG.js";import"./chunk-EHYW66EH.js";import"./chunk-KXA4JHFW.js";import"./chunk-PZTFSADV.js";import"./chunk-YIHMOK6T.js";import"./chunk-NPKNI2UD.js";import"./chunk-4VZCPOVE.js";import"./chunk-P2JQEGYV.js";import"./chunk-NQZ23AGQ.js";import"./chunk-QA3LXFSK.js";import"./chunk-VILB5M4X.js";import"./chunk-GCTD4RXV.js";import"./chunk-UB5SVEM6.js";import"./chunk-6VWVBQFR.js";import"./chunk-LTWU7HH5.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-3VUPVXAV.js";import"./chunk-XFOU4DZG.js";import"./chunk-COMZFFUA.js";import"./chunk-DSPLGTQI.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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-ZG3EYP5L.js";import"./chunk-EP2L4VTS.js";import"./chunk-LTWU7HH5.js";import"./chunk-NTYIQ5YC.js";import"./chunk-2PY7INHO.js";import"./chunk-XBF44N3Z.js";import"./chunk-T7AK4QLG.js";import"./chunk-Y2DUFDPV.js";import"./chunk-LB2ZRTRA.js";import"./chunk-COMZFFUA.js";import"./chunk-DSPLGTQI.js";import"./chunk-VPT5MFDG.js";import"./chunk-CILM5XMH.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
|
|
@@ -286,7 +286,6 @@ declare const funnelConfigurationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
286
286
|
type: z.ZodEnum<{
|
|
287
287
|
output: "output";
|
|
288
288
|
action: "action";
|
|
289
|
-
wait: "wait";
|
|
290
289
|
screen: "screen";
|
|
291
290
|
end: "end";
|
|
292
291
|
coupon: "coupon";
|
|
@@ -297,6 +296,7 @@ declare const funnelConfigurationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
297
296
|
offering: "offering";
|
|
298
297
|
entry: "entry";
|
|
299
298
|
external_page: "external_page";
|
|
299
|
+
wait: "wait";
|
|
300
300
|
}>;
|
|
301
301
|
outputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
302
302
|
writes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -331,7 +331,6 @@ declare const funnelConfigurationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
331
331
|
type: z.ZodEnum<{
|
|
332
332
|
output: "output";
|
|
333
333
|
action: "action";
|
|
334
|
-
wait: "wait";
|
|
335
334
|
screen: "screen";
|
|
336
335
|
end: "end";
|
|
337
336
|
coupon: "coupon";
|
|
@@ -342,6 +341,7 @@ declare const funnelConfigurationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
342
341
|
offering: "offering";
|
|
343
342
|
entry: "entry";
|
|
344
343
|
external_page: "external_page";
|
|
344
|
+
wait: "wait";
|
|
345
345
|
}>;
|
|
346
346
|
outputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
347
347
|
writes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -550,7 +550,6 @@ declare const funnelLocalConfigurationSchema: z.ZodObject<{
|
|
|
550
550
|
type: z.ZodEnum<{
|
|
551
551
|
output: "output";
|
|
552
552
|
action: "action";
|
|
553
|
-
wait: "wait";
|
|
554
553
|
screen: "screen";
|
|
555
554
|
end: "end";
|
|
556
555
|
coupon: "coupon";
|
|
@@ -561,6 +560,7 @@ declare const funnelLocalConfigurationSchema: z.ZodObject<{
|
|
|
561
560
|
offering: "offering";
|
|
562
561
|
entry: "entry";
|
|
563
562
|
external_page: "external_page";
|
|
563
|
+
wait: "wait";
|
|
564
564
|
}>;
|
|
565
565
|
outputs: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
566
566
|
writes: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -251,8 +251,8 @@ declare const textNodeSchema: z.ZodObject<{
|
|
|
251
251
|
muted: "muted";
|
|
252
252
|
}>, z.ZodString]>>;
|
|
253
253
|
align: z.ZodOptional<z.ZodEnum<{
|
|
254
|
-
start: "start";
|
|
255
254
|
center: "center";
|
|
255
|
+
start: "start";
|
|
256
256
|
end: "end";
|
|
257
257
|
}>>;
|
|
258
258
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -408,8 +408,8 @@ declare const imageNodeSchema: z.ZodObject<{
|
|
|
408
408
|
muted: "muted";
|
|
409
409
|
}>, z.ZodString]>>;
|
|
410
410
|
align: z.ZodOptional<z.ZodEnum<{
|
|
411
|
-
start: "start";
|
|
412
411
|
center: "center";
|
|
412
|
+
start: "start";
|
|
413
413
|
end: "end";
|
|
414
414
|
}>>;
|
|
415
415
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -565,8 +565,8 @@ declare const buttonNodeSchema: z.ZodObject<{
|
|
|
565
565
|
muted: "muted";
|
|
566
566
|
}>, z.ZodString]>>;
|
|
567
567
|
align: z.ZodOptional<z.ZodEnum<{
|
|
568
|
-
start: "start";
|
|
569
568
|
center: "center";
|
|
569
|
+
start: "start";
|
|
570
570
|
end: "end";
|
|
571
571
|
}>>;
|
|
572
572
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -704,8 +704,8 @@ declare const dividerNodeSchema: z.ZodObject<{
|
|
|
704
704
|
muted: "muted";
|
|
705
705
|
}>, z.ZodString]>>;
|
|
706
706
|
align: z.ZodOptional<z.ZodEnum<{
|
|
707
|
-
start: "start";
|
|
708
707
|
center: "center";
|
|
708
|
+
start: "start";
|
|
709
709
|
end: "end";
|
|
710
710
|
}>>;
|
|
711
711
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -873,8 +873,8 @@ declare const customerDataNodeSchema: z.ZodObject<{
|
|
|
873
873
|
muted: "muted";
|
|
874
874
|
}>, z.ZodString]>>;
|
|
875
875
|
align: z.ZodOptional<z.ZodEnum<{
|
|
876
|
-
start: "start";
|
|
877
876
|
center: "center";
|
|
877
|
+
start: "start";
|
|
878
878
|
end: "end";
|
|
879
879
|
}>>;
|
|
880
880
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1021,8 +1021,8 @@ declare const spacerNodeSchema: z.ZodObject<{
|
|
|
1021
1021
|
muted: "muted";
|
|
1022
1022
|
}>, z.ZodString]>>;
|
|
1023
1023
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1024
|
-
start: "start";
|
|
1025
1024
|
center: "center";
|
|
1025
|
+
start: "start";
|
|
1026
1026
|
end: "end";
|
|
1027
1027
|
}>>;
|
|
1028
1028
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1261,8 +1261,8 @@ declare const customHtmlNodeSchema: z.ZodObject<{
|
|
|
1261
1261
|
muted: "muted";
|
|
1262
1262
|
}>, z.ZodString]>>;
|
|
1263
1263
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1264
|
-
start: "start";
|
|
1265
1264
|
center: "center";
|
|
1265
|
+
start: "start";
|
|
1266
1266
|
end: "end";
|
|
1267
1267
|
}>>;
|
|
1268
1268
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1399,8 +1399,8 @@ declare const priceNodeSchema: z.ZodObject<{
|
|
|
1399
1399
|
muted: "muted";
|
|
1400
1400
|
}>, z.ZodString]>>;
|
|
1401
1401
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1402
|
-
start: "start";
|
|
1403
1402
|
center: "center";
|
|
1403
|
+
start: "start";
|
|
1404
1404
|
end: "end";
|
|
1405
1405
|
}>>;
|
|
1406
1406
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1531,8 +1531,8 @@ declare const priceNodeSchema: z.ZodObject<{
|
|
|
1531
1531
|
muted: "muted";
|
|
1532
1532
|
}>, z.ZodString]>>;
|
|
1533
1533
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1534
|
-
start: "start";
|
|
1535
1534
|
center: "center";
|
|
1535
|
+
start: "start";
|
|
1536
1536
|
end: "end";
|
|
1537
1537
|
}>>;
|
|
1538
1538
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1663,8 +1663,8 @@ declare const priceNodeSchema: z.ZodObject<{
|
|
|
1663
1663
|
muted: "muted";
|
|
1664
1664
|
}>, z.ZodString]>>;
|
|
1665
1665
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1666
|
-
start: "start";
|
|
1667
1666
|
center: "center";
|
|
1667
|
+
start: "start";
|
|
1668
1668
|
end: "end";
|
|
1669
1669
|
}>>;
|
|
1670
1670
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1799,8 +1799,8 @@ declare const priceNodeSchema: z.ZodObject<{
|
|
|
1799
1799
|
muted: "muted";
|
|
1800
1800
|
}>, z.ZodString]>>;
|
|
1801
1801
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1802
|
-
start: "start";
|
|
1803
1802
|
center: "center";
|
|
1803
|
+
start: "start";
|
|
1804
1804
|
end: "end";
|
|
1805
1805
|
}>>;
|
|
1806
1806
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1939,8 +1939,8 @@ declare const couponCodeNodeSchema: z.ZodObject<{
|
|
|
1939
1939
|
muted: "muted";
|
|
1940
1940
|
}>, z.ZodString]>>;
|
|
1941
1941
|
align: z.ZodOptional<z.ZodEnum<{
|
|
1942
|
-
start: "start";
|
|
1943
1942
|
center: "center";
|
|
1943
|
+
start: "start";
|
|
1944
1944
|
end: "end";
|
|
1945
1945
|
}>>;
|
|
1946
1946
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2091,8 +2091,8 @@ declare const countdownNodeSchema: z.ZodObject<{
|
|
|
2091
2091
|
muted: "muted";
|
|
2092
2092
|
}>, z.ZodString]>>;
|
|
2093
2093
|
align: z.ZodOptional<z.ZodEnum<{
|
|
2094
|
-
start: "start";
|
|
2095
2094
|
center: "center";
|
|
2095
|
+
start: "start";
|
|
2096
2096
|
end: "end";
|
|
2097
2097
|
}>>;
|
|
2098
2098
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2248,8 +2248,8 @@ declare const planPickerNodeSchema: z.ZodObject<{
|
|
|
2248
2248
|
muted: "muted";
|
|
2249
2249
|
}>, z.ZodString]>>;
|
|
2250
2250
|
align: z.ZodOptional<z.ZodEnum<{
|
|
2251
|
-
start: "start";
|
|
2252
2251
|
center: "center";
|
|
2252
|
+
start: "start";
|
|
2253
2253
|
end: "end";
|
|
2254
2254
|
}>>;
|
|
2255
2255
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2384,8 +2384,8 @@ declare const planPickerNodeSchema: z.ZodObject<{
|
|
|
2384
2384
|
muted: "muted";
|
|
2385
2385
|
}>, z.ZodString]>>;
|
|
2386
2386
|
align: z.ZodOptional<z.ZodEnum<{
|
|
2387
|
-
start: "start";
|
|
2388
2387
|
center: "center";
|
|
2388
|
+
start: "start";
|
|
2389
2389
|
end: "end";
|
|
2390
2390
|
}>>;
|
|
2391
2391
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2536,8 +2536,8 @@ declare const quantityPickerNodeSchema: z.ZodObject<{
|
|
|
2536
2536
|
muted: "muted";
|
|
2537
2537
|
}>, z.ZodString]>>;
|
|
2538
2538
|
align: z.ZodOptional<z.ZodEnum<{
|
|
2539
|
-
start: "start";
|
|
2540
2539
|
center: "center";
|
|
2540
|
+
start: "start";
|
|
2541
2541
|
end: "end";
|
|
2542
2542
|
}>>;
|
|
2543
2543
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2574,14 +2574,14 @@ declare const stackNodeFields: {
|
|
|
2574
2574
|
overlay: "overlay";
|
|
2575
2575
|
}>;
|
|
2576
2576
|
align: z.ZodEnum<{
|
|
2577
|
-
start: "start";
|
|
2578
2577
|
center: "center";
|
|
2578
|
+
start: "start";
|
|
2579
2579
|
end: "end";
|
|
2580
2580
|
stretch: "stretch";
|
|
2581
2581
|
}>;
|
|
2582
2582
|
justify: z.ZodEnum<{
|
|
2583
|
-
start: "start";
|
|
2584
2583
|
center: "center";
|
|
2584
|
+
start: "start";
|
|
2585
2585
|
end: "end";
|
|
2586
2586
|
between: "between";
|
|
2587
2587
|
}>;
|
|
@@ -2734,8 +2734,8 @@ declare const stackNodeFields: {
|
|
|
2734
2734
|
muted: "muted";
|
|
2735
2735
|
}>, z.ZodString]>>;
|
|
2736
2736
|
align: z.ZodOptional<z.ZodEnum<{
|
|
2737
|
-
start: "start";
|
|
2738
2737
|
center: "center";
|
|
2738
|
+
start: "start";
|
|
2739
2739
|
end: "end";
|
|
2740
2740
|
}>>;
|
|
2741
2741
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2880,8 +2880,8 @@ declare const stackNodeFields: {
|
|
|
2880
2880
|
muted: "muted";
|
|
2881
2881
|
}>, z.ZodString]>>;
|
|
2882
2882
|
align: z.ZodOptional<z.ZodEnum<{
|
|
2883
|
-
start: "start";
|
|
2884
2883
|
center: "center";
|
|
2884
|
+
start: "start";
|
|
2885
2885
|
end: "end";
|
|
2886
2886
|
}>>;
|
|
2887
2887
|
italic: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -3031,8 +3031,8 @@ declare const stackNodeFields: {
|
|
|
3031
3031
|
muted: "muted";
|
|
3032
3032
|
}>, z.ZodString]>>;
|
|
3033
3033
|
align: z.ZodOptional<z.ZodEnum<{
|
|
3034
|
-
start: "start";
|
|
3035
3034
|
center: "center";
|
|
3035
|
+
start: "start";
|
|
3036
3036
|
end: "end";
|
|
3037
3037
|
}>>;
|
|
3038
3038
|
italic: z.ZodOptional<z.ZodBoolean>;
|