@tinkerlandai/indiana-sdk 0.9.2 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +50 -5
  3. package/README.zh-CN.md +30 -5
  4. package/dist/{ai-usage-DMNKvCiq.d.ts → ai-usage-Cn7dhvFw.d.ts} +5 -5
  5. package/dist/{api--Zf0gxfj.d.ts → api-DC44FaTV.d.ts} +6346 -749
  6. package/dist/chunk-2Y4G5364.js +6 -0
  7. package/dist/chunk-6ZZUNGNE.js +1 -0
  8. package/dist/chunk-ABNSU3ZG.js +4 -0
  9. package/dist/chunk-ACF2FBUB.js +1 -0
  10. package/dist/{chunk-65TBYVCS.js → chunk-AHXYGGAA.js} +1 -1
  11. package/dist/chunk-BOCKPUCM.js +2 -0
  12. package/dist/chunk-CCPNMQHZ.js +1 -0
  13. package/dist/chunk-CLXORAOK.js +1 -0
  14. package/dist/chunk-EDQCH2QS.js +1 -0
  15. package/dist/chunk-IWWKVNEX.js +1 -0
  16. package/dist/chunk-QUWPPZHH.js +1 -0
  17. package/dist/chunk-SBPTOOYB.js +1 -0
  18. package/dist/chunk-WYZI3TNB.js +1 -0
  19. package/dist/chunk-X6BCUINI.js +173 -0
  20. package/dist/chunk-Y46ALAKP.js +1 -0
  21. package/dist/{configuration-sync-E98CqVwh.d.ts → configuration-sync-CXe9Zcng.d.ts} +74 -21
  22. package/dist/content-ZRWZ26PF.js +1 -0
  23. package/dist/coupon-fA1QujHt.d.ts +184 -0
  24. package/dist/{customer-page-9B97Qdt_.d.ts → customer-page-km5f1PJZ.d.ts} +86 -182
  25. package/dist/{funnel-local-client-BjPwXlQb.d.ts → funnel-local-client-BQsdOjQ7.d.ts} +19985 -2451
  26. package/dist/funnel-node-evaluation-P5B4fPfJ.d.ts +2054 -0
  27. package/dist/funnel-resource-client-Zof1WLgA.d.ts +14525 -0
  28. package/dist/funnel-runtime-host-N7TX3LWI.js +1 -0
  29. package/dist/index.d.ts +13905 -13996
  30. package/dist/index.js +1 -1
  31. package/dist/native-shell.js +1 -1
  32. package/dist/openrouter.d.ts +3 -3
  33. package/dist/openrouter.js +1 -1
  34. package/dist/page.d.ts +4 -4
  35. package/dist/page.js +1 -1
  36. package/dist/paywall-DR65VN2G.js +1 -0
  37. package/dist/popup.d.ts +7 -5
  38. package/dist/popup.js +1 -1
  39. package/dist/react-native.d.ts +36432 -174
  40. package/dist/react-native.js +1 -1
  41. package/dist/{screen-BITZ11jn.d.ts → screen-D81zCpfi.d.ts} +159 -6
  42. package/dist/{screen-renderer-A6VYE2QL.js → screen-renderer-ZSAR7LPS.js} +1 -1
  43. package/dist/server.d.ts +2924 -500
  44. package/dist/server.js +1 -1
  45. package/dist/visual-dom-OFB7BFFB.js +1 -0
  46. package/dist/visual.d.ts +2 -2
  47. package/dist/visual.js +1 -1
  48. package/package.json +1 -1
  49. package/dist/chunk-5O667MKA.js +0 -1
  50. package/dist/chunk-67A7I6MB.js +0 -1
  51. package/dist/chunk-CCQHYQ4P.js +0 -1
  52. package/dist/chunk-CPLLMISZ.js +0 -1
  53. package/dist/chunk-G23YNWWI.js +0 -1
  54. package/dist/chunk-L7LKE3MG.js +0 -173
  55. package/dist/chunk-NH2PTTNK.js +0 -2
  56. package/dist/chunk-PK5HYUHD.js +0 -1
  57. package/dist/chunk-SEW4YVR7.js +0 -1
  58. package/dist/chunk-UYSOTMY3.js +0 -1
  59. package/dist/chunk-WSVH6IQA.js +0 -1
  60. package/dist/chunk-YZSQDZXW.js +0 -4
  61. package/dist/content-3LOJVYQO.js +0 -1
  62. package/dist/errors-0TSUIbUi.d.ts +0 -115
  63. package/dist/funnel-runtime-host-NYHKQT6T.js +0 -1
  64. package/dist/paywall-ISCYOGPZ.js +0 -1
@@ -1 +1 @@
1
- import{a as PA,b as yA}from"./chunk-CCQHYQ4P.js";import{a as X}from"./chunk-5O667MKA.js";import{R as T,j as wA,sa as DA}from"./chunk-PK5HYUHD.js";import{fa as H}from"./chunk-G23YNWWI.js";import{a as mA}from"./chunk-G56XGVMS.js";import"./chunk-WSVH6IQA.js";import"./chunk-7DXL3LHT.js";import"./chunk-3PZ4Y6UD.js";function P(A){return typeof A=="string"?A:String(A)}var FA=/[\ud800-\udbff](?![\udc00-\udfff])|(^|[^\ud800-\udbff])[\udc00-\udfff]/g;function YA(A){return A.replace(FA,"$1\uFFFD")}function eA(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 kA(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 CA(A){let e;if(Array.isArray(A)){let t=A.map(P);if(t.length===2)return t}else if((e=kA(A))!=null){let t=eA(e.next()),r=eA(e.next());if(!t.done&&!r.done)return[P(t.value),P(r.value)]}throw new TypeError("Each query pair must be an iterable [name, value] tuple")}var bA="0123456789ABCDEF",GA=/(?:%[0-9A-Fa-f]{2})+/g;function B(A){return`%${bA[A>>4&15]}${bA[15&A]}`}function UA(A,e,t=!1){return A>=55296&&A<=57343&&(A=65533),A<=127?t&&A===32?"+":e(A)?B(A):String.fromCharCode(A):A<=2047?B(192|A>>6)+B(128|63&A):A<=65535?B(224|A>>12)+B(128|A>>6&63)+B(128|63&A):B(240|A>>18)+B(128|A>>12&63)+B(128|A>>6&63)+B(128|63&A)}function tA(A){return A>=48&&A<=57?A-48:A>=65&&A<=70?A-65+10:A>=97&&A<=102?A-97+10:-1}function rA(A,e=!1){let t=0;for(;t<A.length;t++){let r=A.charCodeAt(t);if(r===37||e&&r===43)break}return t===A.length?A:(e?A.replace(/\+/g," "):A).replace(GA,r=>{try{return decodeURIComponent(r)}catch{return"\uFFFD".repeat(r.length/3)}})}function O(A){return A<=31||A>126}function _A(A){switch(A){case 32:case 34:case 60:case 62:case 96:return!0;default:return O(A)}}function cA(A){switch(A){case 32:case 34:case 35:case 60:case 62:return!0;default:return O(A)}}function JA(A){return cA(A)||A===39}function nA(A){switch(A){case 63:case 94:case 96:case 123:case 125:return!0;default:return cA(A)}}function _(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 nA(A)}}function SA(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 _(t)}})(A)}}function HA(A,e){return UA(A=A||0,e)}function k(A,e,t=!1){let r=0;for(;r<A.length;r++){let c=A.charCodeAt(r);if(c>=128||t&&c===32||e(c))break}if(r===A.length)return A;let n=A.slice(0,r);for(;r<A.length;r++){let c=A.charCodeAt(r),l=c;if(c>=55296&&c<=56319&&r+1<A.length){let f=A.charCodeAt(r+1);f>=56320&&f<=57343&&(l=(c-55296<<10)+f-56320+65536,r++)}n+=UA(l,e,t)}return n}function fA(A){let e=[],t=0,r=0;for(;r<=A.length;){if(r=A.indexOf("&",t),r<0&&(r=A.length),r!==t){let n=A.slice(t,r),c=n.indexOf("=");c<0&&(c=n.length),e.push([rA(n.slice(0,c),!0),rA(n.slice(c+1),!0)])}if(t=r+1,r===A.length)break}return e}function sA(A){let e="";for(let t=0;t<A.length;t++){let r=k(A[t][0],SA,!0),n=k(A[t][1],SA,!0);e+=t!==0?`&${r}=${n}`:`${r}=${n}`}return e}var WA=[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],VA=[7296,7297,7298,7299,7300,7301,7302,7303,7304,42958,42962,42964,42993],XA=["\u0432","\u0434","\u043E","\u0441","\u0442","\u0442","\u044A","\u0463","\uA64B","\uA7CF","\uA7D3","\uA7D5","s"],KA=[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 ZA(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[Ae,ee,te,IA]=[[[],"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//AwAA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AAAAIAD+P/nDwAAADwAAAAAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////9/+P//////HyAAEAAA+P7/AAAAAAAAAAAAAH////nbBwAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAfwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASMAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfwAAAAAAAAAAAAAAAADwDwAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAA////////////////AAAAAAAAAAAAAAAAAAAAAP///////////////////////////////////////wAA"]].map(function([e,t,r]){return[e,t.split(",").map(n=>parseInt(n,36)),Uint8Array.from(atob(r),n=>n.charCodeAt(0))]});function re(A,e){return e===931||e===1010||e===120531||e===120589||e===120647||e===120705||e===120763?"\u03C3":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,"\u03B9").normalize("NFC").toLowerCase():""}function RA(A,e){for(let t=0;t<A.length;t+=2)if(e>=A[t]&&e<=A[t+1])return!0;return!1}function x(A,e){let[t,r,n]=A,c=e>>8;for(let h=0;h<t.length;h+=2)if(c>=t[h]&&c<=t[h+1])return!0;let l=r.indexOf(c);if(l<0)return!1;let f=255&e;return!!(n[32*l+(f>>3)]&1<<(7&f))}function ne(A){let e=Array.from(A,t=>t.codePointAt(0));for(let t=0;t<e.length;t++){let r=e[t];if(r!==8204&&r!==8205||t>0&&RA(KA,e[t-1]))continue;if(r===8205)return!1;let n=t-1;for(;n>=0&&x(IA,e[n]);)n--;let c=t+1;for(;c<e.length&&x(IA,e[c]);)c++;if(!(n>=0&&c<e.length&&x(ee,e[n])&&x(te,e[c])))return!1}return!0}var se=/(?![\p{Mark}\p{Decimal_Number}])[\p{Script=Arabic}\p{Script=Hebrew}]/u,ie=/\p{Script=Latin}/u;function oe(A){return!se.test(A)||!ie.test(A)}var R=36,F=1,iA=26,le=38,ue=700,ce=72,fe=128,ae=2147483647;function EA(A){return String.fromCharCode(A+22+75*+(A<26))}function he(A,e,t){let r=0;for(A=t?Math.floor(A/ue):A>>1,A+=Math.floor(A/e);A>(R-F)*iA>>1;r+=R)A=Math.floor(A/(R-F));return Math.floor(r+(R-F+1)*A/(A+le))}function pe(A){let e=Array.from(A,h=>h.codePointAt(0)),t="",r=0;for(let h=0;h<e.length;h++){let p=e[h];p<128&&(t+=String.fromCharCode(p),r++)}let n=r;n&&(t+="-");let c=fe,l=0,f=ce;for(;r<e.length;){let h=ae;for(let p=0;p<e.length;p++){let g=e[p];g>=c&&g<h&&(h=g)}l+=(h-c)*(r+1),c=h;for(let p=0;p<e.length;p++){let g=e[p];if(g<c&&l++,g===c){let y=l;for(let S=R;;S+=R){let I=S<=f?F:S>=f+iA?iA:S-f;if(y<I)break;t+=EA(I+(y-I)%(R-I)),y=Math.floor((y-I)/(R-I))}t+=EA(y),f=he(l,r+1,r===n),l=0,r++}}l++,c++}return t}function K(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 r=0;r<A.length;r++){let n=tA(A.charCodeAt(r));if(n>=e||n<0)return-1;t=t*e+n}return t}function qA(A){switch(A){case".":case"%2e":case"%2E":return!0;default:return!1}}function zA(A,e){return(A>=65&&A<=90||A>=97&&A<=122)&&(e===58||e===124)}function LA(A){return A.length===2&&zA(A.codePointAt(0),A.codePointAt(1))}function vA(A){return A.search(/\u0000|\u0009|\u000A|\u000D|\u0020|#|\/|:|<|>|\?|@|\[|\\|\]|\^|\|/u)!==-1}function C(A){switch(A){case"ftp":case"http":case"https":case"ws":case"wss":case"file":return!0;default:return!1}}function NA(A){switch(A){case"ftp":return 21;case"http":case"ws":return 80;case"https":case"wss":return 443;default:return null}}function oA(A,e){if(A[0]==="[")return A[A.length-1]==="]"?(function(r){let n=[0,0,0,0,0,0,0,0],c=null,l=0,f=0,h=Array.from(r,p=>p.codePointAt(0));if(h[f]===58){if(h[f+1]!==58)return null;f+=2,l++,c=l}for(;f<h.length;){if(l===8)return null;if(h[f]===58){if(c!==null)return null;f++,l++,c=l;continue}let p=0,g=0,y=0;for(;y<4&&(p=tA(h[f]))>=0;)g=(g<<4)+p,f++,y++;if(h[f]===46){if(y===0||l>6)return null;f-=y;let S=0;for(;h[f]!==void 0;){let I=0;if(S>0)if(h[f]===46&&S<4)f++;else return null;if(h[f]==null||h[f]<48||h[f]>57)return null;for(;h[f]>=48&&h[f]<=57;){if(I=10*I+tA(h[f]),I>255)return null;f++}n[l]=256*n[l]+I,S++,S%2==0&&l++}if(S!==4)return null;break}else if(h[f]===58){if(h[++f]===void 0)return null}else if(h[f]!==void 0)return null;n[l]=g,l++}if(c!==null){let p=l-c;for(l=7;l!==0&&p>0;){let g=n[c+p-1];n[c+p-1]=n[l],n[l]=g,l--,p--}}else if(c===null&&l!==8)return null;return n})(A.substring(1,A.length-1)):null;if(e)return(function(r){return vA(r)?null:k(r,O)})(A);{let t=(function(n){let c=!1,l=!1;for(let h=0;h<n.length;h++){let p=n.charCodeAt(h);if(p<=32||p===37||p===127)return null;if(p>=128){c=!0;break}p>=65&&p<=90&&(l=!0)}if(!c)return n!==""?l?n.toLowerCase():n:null;if((function(p){for(let g of p){let y=g.codePointAt(0);if(/[\p{Cn}\p{Co}\p{Cs}\p{Noncharacter_Code_Point}]/u.test(g)&&!RA(WA,y)||x(Ae,y))return!0}return!1})(n))return null;let f=(n=(function(p){let g="";for(let y of p){let S=y.codePointAt(0);if(S!==8204&&S!==8205&&/\p{Default_Ignorable_Code_Point}/u.test(y))continue;let I=re(y,S);if(I){g+=I;continue}let gA=VA.indexOf(S);g+=gA<0?y:XA[gA]}return g})(n).normalize("NFKC").replace(/[\u3002\uff0e\uff61]/g,".").toLowerCase()).split(".");for(let h=0;h<f.length;h++){let p=f[h];if(p==="")continue;let g=/[^\0-\x7f]/.test(p);if(ZA(p)||g&&(/^\p{Mark}/u.test(p)||!ne(p)||!oe(p)||p.startsWith("xn--")))return null;g&&(f[h]=`xn--${pe(p)}`)}return(n=f.join("."))!==""?n:null})(A.indexOf("%")===-1?A:rA(A));return t===null||vA(t)?null:(function(n){let c=n.length,l=n.lastIndexOf(".",c-2)+1;if(n.charCodeAt(c-1)===46&&c--,c<=l)return!1;if(K(n.slice(l,c))>=0)return!0;for(;l<c;l++){let f=n.charCodeAt(l);if(f<48||f>57)return!1}return!0})(t)?(function(n){let c=n.split("."),l=c.length;if(c[l-1]||l--,l>4)return null;let f=0;for(let p=0;p<l-1;p++){let g=K(c[p]);if(g<0||g>255)return null;f+=g*(1<<8*(3-p))}let h=K(c[l-1]);return h<0||h>=256**(5-l)?null:(f+=h,f)})(t):t}}function lA(A){return typeof A=="number"?(function(t){let n="";return n+=`${(t>>>24&255).toString(10)}.`,n+=`${(t>>>16&255).toString(10)}.`,n+=`${(t>>>8&255).toString(10)}.`,n+=(t&255).toString(10),n})(A):Array.isArray(A)?`[${(function(t){let r=(function(f){let h=-1,p=-1,g=1,y=0;for(let S=0;S<f.length;++S)f[S]!==0?(y>g&&(h=p,g=y),p=-1,y=0):(p===-1&&(p=S),++y);return y>g?p:h})(t),n="",c=!1;for(let l=0;l<=7;++l)if(!(c&&t[l]===0)){if(c&&(c=!1),r===l){n+=l===0?"::":":",c=!0;continue}n+=t[l].toString(16),l!==7&&(n+=":")}return n})(A)}]`:A}function TA(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 $A(A){return A.username!==""||A.password!==""}function Z(A){return A.host===null||A.host===""||A.scheme==="file"}var s=0,i="",d="",m=null,o,Y=!1,G=!1,L=!1,b;function E(A,e,t,r){e||(A=(function(l){let f=0,h=l.length;for(;f<h&&!(l.charCodeAt(f)>32);++f);for(;h>f&&!(l.charCodeAt(h-1)>32);--h);return l.substring(f,h)})(A)),A=(function(l){let f=0;for(;f<l.length;f++){let p=l.charCodeAt(f);if(p===9||p===10||p===13)break}if(f===l.length)return l;let h=l.slice(0,f);for(;f<l.length;f++){let p=l.charCodeAt(f);p!==9&&p!==10&&p!==13&&(h+=l[f])}return h})(A),s=0,i=A,d="",m=t||null,o=e||{scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,opaquePath:!1},Y=!1,G=!1,L=!1,b=r||0;let n=de;switch(r){case 3:case 4:n=J;break;case 5:n=hA;break;case 6:n=N;break;case 7:n=z;break;case 8:n=U}return n(u(A,s))!==1?o:null}function a(A,e){return s+=s===A?q(e):1,s<=i.length}function u(A,e){return e<A.length?A.codePointAt(e):void 0}function q(A){return A!=null&&A>65535?2:1}function xA(A){return A==null?"":A<=65535?String.fromCharCode(A):String.fromCodePoint(A)}var de=A=>{let e=s;if(A!=null&&(A>=65&&A<=90||A>=97&&A<=122)){let t=s+1;for(A=i.charCodeAt(t);A===43||A===45||A===46||A>=65&&A<=90||A>=97&&A<=122||A>=48&&A<=57;)t++,A=i.charCodeAt(t);return d=i.slice(s,t).toLowerCase(),s=t,ge(t<i.length?A:void 0)}else return b?1:(--s,a(e,A)?MA(u(i,s)):0)},ge=A=>{let e=s;if(A===58){if(b){if(C(o.scheme)!==C(d))return 0;if(($A(o)||o.port!==null)&&d==="file")return 0;if(o.scheme==="file"&&o.host==="")return 0}return o.scheme=d,b?(o.port===NA(o.scheme)&&(o.port=null),0):(d="",o.scheme==="file"?a(e,A)?pA(u(i,s)):0:C(o.scheme)&&m!==null&&m.scheme===o.scheme?a(e,A)?me(u(i,s)):0:C(o.scheme)?a(e,A)?Pe(u(i,s)):0:u(i,s+1)===47?(s++,a(e,A)?we(u(i,s)):0):(o.path=[""],o.opaquePath=!0,a(e,A)?jA(u(i,s)):0))}else return b?1:(d="",s=-1,a(e,A)?MA(u(i,s)):0)},MA=A=>{let e=s;return m===null||m.opaquePath&&A!==35?1:m.opaquePath&&A===35?(o.scheme=m.scheme,o.path=m.path.slice(),o.opaquePath=m.opaquePath,o.query=m.query,o.fragment="",a(e,A)?U(u(i,s)):0):m.scheme==="file"?(s--,a(e,A)?pA(u(i,s)):0):(s--,a(e,A)?aA(u(i,s)):0)},me=A=>{let e=s;return A===47&&u(i,s+1)===47?(++s,a(e,A)?V(u(i,s)):0):(s--,a(e,A)?aA(u(i,s)):0)},we=A=>{let e=s;return A===47?a(e,A)?$(u(i,s)):0:(s--,a(e,A)?v(u(i,s)):0)},aA=A=>{let e=s;return o.scheme=m.scheme,A===47||C(o.scheme)&&A===92?a(e,A)?BA(u(i,s)):0:(o.username=m.username,o.password=m.password,o.host=m.host,o.port=m.port,o.path=m.path.slice(),o.query=m.query,A===63?(o.query="",a(e,A)?z(u(i,s)):0):A===35?(o.fragment="",a(e,A)?U(u(i,s)):0):A!=null?(o.query=null,o.path.pop(),s--,a(e,A)?v(u(i,s)):0):a(e,A)?aA(u(i,s)):0)},BA=A=>{let e=s;return C(o.scheme)&&(A===47||A===92)?a(e,A)?V(u(i,s)):0:A===47?a(e,A)?$(u(i,s)):0:(o.username=m.username,o.password=m.password,o.host=m.host,o.port=m.port,s--,a(e,A)?v(u(i,s)):0)},Pe=A=>{let e=s;return A===47&&u(i,s+1)===47?s++:s--,a(e,A)?V(u(i,s)):0},V=A=>{let e=s;return A!==47&&A!==92?(s--,a(e,A)?$(u(i,s)):0):a(e,A)?V(u(i,s)):0},$=A=>{let e=s;if(A!=null&&A!==64&&A!==35&&A!==47&&A!==63&&(A!==92||!C(o.scheme))){let t=s+q(A);for(;t<i.length;){let r=u(i,t);if(r==null||r===64||r===35||r===47||r===63||r===92&&C(o.scheme))break;t+=q(r)}return d+=i.slice(s,t),s=t-1,a(e,A)?$(u(i,s)):0}if(A===64){Y&&(d=`%40${d}`),Y=!0;for(let t=0;t<d.length;t++){let r=d.codePointAt(t);if(r===58&&!G){G=!0;continue}let n=HA(r,_);G?o.password+=n:o.username+=n,r!=null&&r>65535&&t++}return d="",a(e,A)?$(u(i,s)):0}else return A==null||A===35||A===47||A===63||A===92&&C(o.scheme)?Y&&d===""?1:(s-=d.length+1,d="",a(e,A)?J(u(i,s)):0):(d+=xA(A),a(e,A)?$(u(i,s)):0)},J=A=>{let e=s;if(b&&o.scheme==="file")return s--,a(e,A)?dA(u(i,s)):0;if(A!=null&&A!==58&&A!==35&&A!==47&&A!==63&&(A!==92||!C(o.scheme))){let t=s+q(A);for(A===91?L=!0:A===93&&(L=!1);t<i.length;){let r=u(i,t);if(r==null||!L&&r===58||r===35||r===47||r===63||r===92&&C(o.scheme))break;r===91?L=!0:r===93&&(L=!1),t+=q(r)}return d+=i.slice(s,t),s=t-1,a(e,A)?J(u(i,s)):0}else if(A===58&&!L){if(d===""||b===4)return 1;let t=oA(d,!C(o.scheme));return t===null?1:(o.host=lA(t),d="",a(e,A)?hA(u(i,s)):0)}else if(A==null||A===35||A===47||A===63||A===92&&C(o.scheme)){if(s--,C(o.scheme)&&d==="")return 1;if(b&&d===""&&($A(o)||o.port!==null))return 1;let t=oA(d,!C(o.scheme));return t===null?1:(o.host=lA(t),d="",b?0:a(e,A)?N(u(i,s)):0)}else return d+=xA(A),a(e,A)?J(u(i,s)):0},hA=A=>{let e=s;if(A!=null&&A>=48&&A<=57){let t=s+1;for(;t<i.length;){let r=i.charCodeAt(t);if(r<48||r>57)break;t++}return d+=i.slice(s,t),s=t-1,a(e,A)?hA(u(i,s)):0}else if(b||A==null||A===35||A===47||A===63||A===92&&C(o.scheme)){if(d!==""){let t=parseInt(d,10);if(t>65535)return 1;if(o.port=t===NA(o.scheme)?null:t,d="",b)return 0}return b?1:(s--,a(e,A)?N(u(i,s)):0)}else return 1};function OA(A,e){let t=A.length-e;if(t<2)return!1;if(zA(u(A,e),u(A,e+1))){if(t===2)return!0;{let r=u(A,e+2);return r===47||r===92||r===63||r===35}}else return!1}var pA=A=>{let e=s;return o.scheme="file",o.host="",A===47||A===92?a(e,A)?ye(u(i,s)):0:m?.scheme==="file"?(o.host=m.host,o.path=m.path.slice(),o.opaquePath=m.opaquePath,o.query=m.query,A===63?(o.query="",a(e,A)?z(u(i,s)):0):A===35?(o.fragment="",a(e,A)?U(u(i,s)):0):A!=null?(o.query=null,OA(i,s)?o.path=[]:TA(o),s--,a(e,A)?v(u(i,s)):0):a(e,A)?pA(u(i,s)):0):(s--,a(e,A)?v(u(i,s)):0)},ye=A=>{let e=s;return A===47||A===92?a(e,A)?dA(u(i,s)):0:(m!==null&&m.scheme==="file"&&(!OA(i,s)&&(function(r){if(r.length===2){let n=r.codePointAt(0),c=r.codePointAt(1);return(n>=65&&n<=90||n>=97&&n<=122)&&c===58}else return!1})(m.path[0])&&o.path.push(m.path[0]),o.host=m.host),s--,a(e,A)?v(u(i,s)):0)},dA=A=>{let e=s;if(A!=null&&A!==47&&A!==92&&A!==63&&A!==35){let t=s+q(A);for(;t<i.length;){let r=u(i,t);if(r==null||r===47||r===92||r===63||r===35)break;t+=q(r)}return d+=i.slice(s,t),s=t-1,a(e,A)?dA(u(i,s)):0}else if(A==null||A===47||A===92||A===63||A===35){if(s--,!b&&LA(d))return a(e,A)?v(u(i,s)):0;if(d==="")return o.host="",b?0:a(e,A)?N(u(i,s)):0;{let t=oA(d,!C(o.scheme));return t===null?1:(t==="localhost"&&(t=""),o.host=lA(t),d="",b?0:a(e,A)?N(u(i,s)):0)}}return 1},N=A=>{let e=s;return C(o.scheme)?(A!==92&&A!==47&&s--,a(e,A)?v(u(i,s)):0):!b&&A===63?(o.query="",a(e,A)?z(u(i,s)):0):!b&&A===35?(o.fragment="",a(e,A)?U(u(i,s)):0):A!=null?(A!==47&&s--,a(e,A)?v(u(i,s)):0):(b&&o.host===null&&o.path.push(""),a(e,A)?N(u(i,s)):0)},v=A=>{let e=s;if(A!=null&&A!==47&&(!C(o.scheme)||A!==92)&&(b||A!==63&&A!==35)){let t=s+q(A);for(;t<i.length;){let r=u(i,t);if(r==null||r===47||C(o.scheme)&&r===92||!b&&(r===63||r===35))break;t+=q(r)}d+=k(i.slice(s,t),nA),s=t,A=u(i,t)}if(A==null||A===47||C(o.scheme)&&A===92||!b&&(A===63||A===35)){let t=C(o.scheme)&&A===92;return(function(n){switch(n){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}})(d)?(TA(o),A!==47&&!t&&o.path.push("")):qA(d)&&A!==47&&!t?o.path.push(""):qA(d)||(o.scheme==="file"&&o.path.length===0&&LA(d)&&(d=`${d[0]}:`),o.path.push(d)),d="",A===63?(o.query="",a(e,A)?z(u(i,s)):0):A===35?(o.fragment="",a(e,A)?U(u(i,s)):0):a(e,A)?v(u(i,s)):0}else return d+=HA(A,nA),a(e,A)?v(u(i,s)):0},jA=A=>{let e=s;if(A===63)return o.query="",a(e,A)?z(u(i,s)):0;if(A===35)return o.fragment="",a(e,A)?U(u(i,s)):0;if(A!=null){let t=s+q(A);for(;t<i.length;){let n=u(i,t);if(n===63||n===35)break;t+=q(n)}let r=i.slice(s,t);if(t<i.length&&r.charCodeAt(r.length-1)===32?o.path[0]+=k(r.slice(0,-1),O)+"%20":o.path[0]+=k(r,O),s=t,(A=u(i,t))===63)return o.query="",a(e,A)?z(u(i,s)):0;if(A===35)return o.fragment="",a(e,A)?U(u(i,s)):0}return a(e,A)?jA(u(i,s)):0},z=A=>{let e=s,t=s;if(A!=null){if(b)t=i.length;else{let n=i.indexOf("#",s);t=n===-1?i.length:n}let r=C(o.scheme)?JA:cA;o.query+=k(i.slice(s,t),r)}return s=t,u(i,t)===35&&!b?(o.fragment="",a(e,A)?U(u(i,s)):0):a(e,A)?z(u(i,s)):0},U=A=>{let e=s;return A!=null&&(o.fragment+=k(i.slice(s),_A),s=i.length),a(e,A)?U(u(i,s)):0};function uA(A){if(A.opaquePath)return A.path[0];{let e="";for(let t of A.path)e+=`/${t}`;return e}}function QA(A){switch(A.scheme){case"blob":{let e=E(uA(A),null,null,0);return e===null||e.scheme!=="http"&&e.scheme!=="https"?"null":QA(e)}case"ftp":case"http":case"https":case"ws":case"wss":return(function(t){let r=`${t.scheme}://`;return r+=t.host,t.port!==null&&(r+=`:${t.port}`),r})(A);default:return"null"}}var w=Symbol("URLImpl"),j=class A{constructor(e,t){if(e===void 0&&t===void 0)throw new TypeError('The "url" argument must be specified.');e=P(e),t!=null&&(t=P(t));let r=null;if(t!=null&&(r=E(t,null,null,0),r==null))throw new TypeError(`Invalid base URL: ${t}`);let n=E(e,null,r,0);if(n==null)throw new TypeError(`Invalid URL: ${e}`);this[w]={url:n,query:null}}static createObjectURL(e){throw new TypeError("URL.createObjetURL is unsupported")}static revokeObjectURL(e){}static parse(e,t){e=P(e),t!==void 0&&(t=P(t));try{return new A(e,t)}catch{return null}}static canParse(e,t){e=P(e),t!==void 0&&(t=P(t));let r=null;return t!=null&&(r=E(t,null,null,0),r==null)?!1:E(e,null,r,0)!=null}get href(){return(function(t){let r=`${t.scheme}:`;return t.host!==null&&(r+="//",(t.username!==""||t.password!=="")&&(r+=t.username,t.password!==""&&(r+=`:${t.password}`),r+="@"),r+=t.host,t.port!==null&&(r+=`:${t.port}`)),t.host===null&&!t.opaquePath&&t.path.length>1&&t.path[0]===""&&(r+="/."),r+=uA(t),t.query!==null&&(r+=`?${t.query}`),t.fragment!==null&&(r+=`#${t.fragment}`),r})(this[w].url)}set href(e){let t=E(e=P(e),null,null,0);if(t==null)throw new TypeError(`Invalid URL: ${e}`);this[w].url=t,this[w].query&&AA(this[w].query,t.query)}get origin(){return QA(this[w].url)}get protocol(){return`${this[w].url.scheme}:`}set protocol(e){E(`${e=P(e)}:`,this[w].url,null,2)}get username(){return this[w].url.username}set username(e){e=P(e),Z(this[w].url)||(function(r,n){r.username=k(n,_)})(this[w].url,e)}get password(){return this[w].url.password}set password(e){e=P(e),Z(this[w].url)||(function(r,n){r.password=k(n,_)})(this[w].url,e)}get host(){let{url:e}=this[w];return e.host==null?"":e.port==null?e.host:`${e.host}:${e.port}`}set host(e){e=P(e),this[w].url.opaquePath||E(e,this[w].url,null,3)}get hostname(){let{url:e}=this[w];return e.host!=null?e.host:""}set hostname(e){e=P(e),this[w].url.opaquePath||E(e,this[w].url,null,4)}get port(){let{url:e}=this[w];return e.port!=null?`${e.port}`:""}set port(e){e=P(e);let{url:t}=this[w];Z(t)||(e?E(e,t,null,5):t.port=null)}get pathname(){return uA(this[w].url)}set pathname(e){e=P(e);let{url:t}=this[w];t.opaquePath||(t.path=[],E(e,t,null,6))}get search(){let{url:e}=this[w];return e.query?`?${e.query}`:""}set search(e){e=P(e);let{url:t,query:r}=this[w];if(!e)t.query=null,r&&AA(r,null);else{let n=e[0]==="?"?e.substring(1):e;t.query="",E(n,t,null,7),r&&AA(r,t.query)}}get searchParams(){let e=this[w],t=e.query;return t==null&&(t=e.query=(function(n,c){let l=new W;return l[D].url=n,l[D].serialized=c==null,c&&(l[D].list=fA(c)),l})(this,e.url.query)),t}get hash(){let{url:e}=this[w];return e.fragment?`#${e.fragment}`:""}set hash(e){e=P(e);let{url:t}=this[w];if(!e)t.fragment=null;else{let r=e[0]==="#"?e.substring(1):e;t.fragment="",E(r,t,null,8)}}toJSON(){return this.href}toString(){return this.href}};Object.defineProperty(j.prototype,Symbol.toStringTag,{value:"URL",configurable:!0});var D=Symbol("URLSearchParamsImpl"),De=Symbol.dispose||Symbol.for("dispose");function AA(A,e){e?A[D].list=fA(e):A[D].list.length=0,A[D].serialized=e==null}function Q(A){if(A.url){let e=sA(A.list);(function(r,n){r[w].url.query=n})(A.url,e||null),A.serialized=!0}}var Ce=typeof Iterator<"u"?Iterator:Object,M=class extends Ce{constructor(e,t){super(),this[D]={ptr:e,map:t,index:0}}next(){let e=this[D];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}[De](){}},W=class{constructor(e){let t=this[D]={list:[],url:null,serialized:!0},r;if(Array.isArray(e))for(let n=0;n<e.length;n++)t.list.push(CA(e[n]));else if((r=kA(e))!=null){let n;for(;!(n=eA(r.next())).done;)t.list.push(CA(n.value))}else if((typeof e=="object"||typeof e=="function")&&e!=null){let n=Object.keys(e);for(let c=0;c<n.length;c++){let l=n[c],f=YA(l),h=P(e[l]),p=t.list.find(g=>g[0]===f);p?p[1]=h:t.list.push([f,h])}}else if(e!==void 0){let n=P(e);n=n[0]==="?"?n.substring(1):n,t.list=fA(n)}}get size(){return this[D].list.length}append(e,t){e=P(e),t=P(t),this[D].list.push([e,t]);let r=this[D];r.url&&r.serialized?(function(c,l){let f=c[w].url;f.query=f.query?`${f.query}&${l}`:l})(r.url,sA([[e,t]])):Q(r)}delete(e,t){e=P(e),t=t!=null?P(t):void 0;let{list:r}=this[D],n=0;for(;n<r.length;)r[n][0]===e&&(t==null||r[n][1]===t)?r.splice(n,1):n++;Q(this[D])}get(e){e=P(e);let{list:t}=this[D];for(let r=0;r<t.length;r++)if(t[r][0]===e)return t[r][1];return null}getAll(e){e=P(e);let t=[],{list:r}=this[D];for(let n=0;n<r.length;n++)r[n][0]===e&&t.push(r[n][1]);return t}has(e,t){e=P(e),t=t!=null?P(t):void 0;let{list:r}=this[D];for(let n=0;n<r.length;n++)if(r[n][0]===e&&(t==null||r[n][1]===t))return!0;return!1}set(e,t){e=P(e),t=P(t);let{list:r}=this[D],n=!1,c=!1,l=0;for(;l<r.length;)r[l][0]===e?n?(r.splice(l,1),c=!0):(n=!0,r[l][1]!==t&&(r[l][1]=t,c=!0),l++):l++;n||(r.push([e,t]),c=!0),c&&Q(this[D])}sort(){this[D].list.sort((e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0),Q(this[D])}forEach(e,t){if(typeof e!="function")throw new TypeError('The "callback" argument must be of type function');let{list:r}=this[D];for(let n=0;n<r.length;n++)e.call(t,r[n][1],r[n][0],this)}entries(){return new M(this[D],e=>e)}keys(){return new M(this[D],e=>e[0])}values(){return new M(this[D],e=>e[1])}toString(){return sA(this[D].list)}[Symbol.iterator](){return this.entries()}};Object.defineProperty(W.prototype,Symbol.toStringTag,{value:"URLSearchParams",configurable:!0});var be=T.trackUsage.request.shape.command,Se=T.trackUsage.response,Ie=T.checkEntitlement.request.omit({customerId:!0}).strict();function Re(A){let e=mA.parse(A.scope),t=DA({...A,scope:e},void 0,j),r=PA(A.push,t,e),n=0,c=!1;return t.session.subscribeIdentity(()=>{n++,c=!!t.session.peek()}),{...yA(t.request,r),session:t.session,identify(l){let f=typeof l=="string"?l:l.accessToken;if(!wA.test(f))throw new H("INVALID_TOKEN","A Customer Token is required");r.identify(f),t.identify(l),r.start()},reset(){try{r.reset()}finally{t.reset(),r.start()}},async readHoldings(){let l=T.readHoldings;return X(t.request,l,{})},async checkEntitlement(l){let f=T.checkEntitlement;return X(t.request,{...f,request:Ie},l)},async trackUsage(l){if(!c)throw new H("UNAUTHENTICATED","Identify the Customer first");if(!A.usageReporter)throw new H("INVALID_REQUEST","Configure your authenticated backend usageReporter");let f=be.parse(l),h=n,p;try{p=await A.usageReporter(f)}catch(y){throw h!==n?new H("IDENTITY_CHANGED","Customer identity changed during usage reporting"):y}if(h!==n)throw new H("IDENTITY_CHANGED","Customer identity changed during usage reporting");let g=Se.parse(p);if(g.scope.projectId!==e.projectId||g.scope.environment!==e.environment)throw new H("INVALID_RESPONSE","Usage response scope differs");return g}}}export{H as IndianaError,Re as createIndianaReactNative};
1
+ import{b as P,c as R}from"./chunk-EDQCH2QS.js";import{b as x,l as E,m as A,n as O,p as T}from"./chunk-WYZI3TNB.js";import"./chunk-SBPTOOYB.js";import{na as S}from"./chunk-2Y4G5364.js";import{qa as a}from"./chunk-ACF2FBUB.js";import{a as C}from"./chunk-G56XGVMS.js";import"./chunk-IWWKVNEX.js";import"./chunk-7DXL3LHT.js";import"./chunk-3PZ4Y6UD.js";function k(t,l){let n,r=0,d=-1,u,i=!1,v=()=>{if(i)throw new a("CLOSED","Native host was destroyed");if(!t.nativeModule)throw new a("CAPABILITY_UNAVAILABLE","Link IndianaBridge and supply nativeModule");return t.nativeModule},p=()=>new a("IDENTITY_CHANGED","Customer identity changed during the native operation"),I=l.subscribeIdentity(()=>{r++,d=-1;let e=r;n&&t.nativeModule&&n.then(o=>t.nativeModule.reset(o,e)).catch(()=>{})}),y=t.nativeEvents?.(e=>{!n||!t.nativeModule||typeof e?.requestId!="string"||(async()=>{let o=await n;if(e.instanceId!==o)return;if(e.kind==="credential"){let w=r,f=null;try{if(!i&&e.revision===w){let N=await l.access();!i&&r===w&&(f=N)}}finally{await t.nativeModule.provideCredential(o,e.requestId,f)}return}let s=!1,c=r;try{if(i||e.revision!==c||!t.onNativeAction)throw p();await t.onNativeAction(e.action),s=!i&&r===c}finally{await t.nativeModule.acknowledge(o,e.requestId,s)}})().catch(()=>{})});async function m(e,o={}){let s=v();if(l.snapshot()&&!t.nativeEvents)throw new a("CAPABILITY_UNAVAILABLE","Supply nativeEvents to share credential refresh with the native host");let c=r,w=await l.access();if(i||r!==c)throw p();if(!n){let g=s.create(JSON.stringify({baseUrl:t.baseUrl??"https://api.tinker.cash",scope:t.scope,timeout:(t.timeoutMs??15e3)/1e3,credentialEvents:!!t.nativeEvents}));n=g,g.catch(()=>{n===g&&(n=void 0)})}let f=await n;if(i||r!==c)throw p();if(d!==c){if(!u||u.epoch!==c){let b=(async()=>{if(await s.identify(f,JSON.stringify({revision:c,credentials:w})),i||r!==c)throw await s.reset(f,c),p();d=c})();u={epoch:c,task:b}}let g=u;try{await g.task}finally{u===g&&(u=void 0)}}let N=await s.invoke(f,e,JSON.stringify(o));if(i||r!==c)throw p();try{return JSON.parse(N)}catch{throw new a("INVALID_RESPONSE","Native host returned invalid JSON")}}async function h(e,o){let s=await m(e,o);if(!s||typeof s!="object"||Array.isArray(s)||s.status!=="complete"&&s.status!=="dismissed")throw new a("INVALID_RESPONSE","Native presentation returned an invalid result");return s}return{showFunnel(e){return h("showFunnel",{runToken:e})},showPaywall(e){return h("showPaywall",e)},showContent(e){return h("showContent",e)},purchaseSubscription(e,o){return m("purchaseSubscription",{operationId:e,accepted:o})},switchSubscription(e,o){return m("switchSubscription",{operationId:e,accepted:o})},restorePurchases(){return m("restorePurchases")},manageSubscriptions(e){return m("manageSubscriptions",e?{productId:e}:{})},async dismiss(){r++,d=-1,n&&await v().reset(await n,r)},async destroy(){i||(i=!0,r++,I(),y?.(),n&&t.nativeModule&&await t.nativeModule.destroy(await n))}}}var U=S.trackUsage.request.shape.command,V=S.trackUsage.response;function z(t){let l=C.parse(t.scope),n=P({...t,scope:l}),r={...t,scope:l,session:n.session},d=0;n.subscribeIdentity(()=>{d++});let u=()=>{let i=n.session.peek();if(!i)throw new a("UNAUTHENTICATED","Identify the Customer first");return i};return{...n,native:k(t,n.session),funnel(){return R({...r,customerToken:u()})},resumeFunnel(i){return u(),E({...r,runToken:i})},paywall(i){return A(r,{...i,customerToken:u()})},async trackUsage(i){if(!n.session.peek())throw new a("UNAUTHENTICATED","Identify the Customer first");if(!t.usageReporter)throw new a("INVALID_REQUEST","Configure your authenticated backend usageReporter");let v=U.parse(i),p=d,I;try{I=await t.usageReporter(v)}catch(m){throw p!==d?new a("IDENTITY_CHANGED","Customer identity changed during usage reporting"):m}if(p!==d)throw new a("IDENTITY_CHANGED","Customer identity changed during usage reporting");let y=V.parse(I);if(y.scope.projectId!==l.projectId||y.scope.environment!==l.environment)throw new a("INVALID_RESPONSE","Usage response scope differs");return y}}}export{a as IndianaError,O as createConfigurationSync,x as createFeatureClient,z as createIndianaReactNative,T as createLocalFunnelClient};
@@ -1757,9 +1757,9 @@ declare const countdownNodeSchema: z.ZodObject<{
1757
1757
  }>;
1758
1758
  at: z.ZodOptional<z.ZodISODateTime>;
1759
1759
  granularity: z.ZodEnum<{
1760
- minute: "minute";
1761
1760
  hour: "hour";
1762
1761
  day: "day";
1762
+ minute: "minute";
1763
1763
  second: "second";
1764
1764
  }>;
1765
1765
  expired: z.ZodString;
@@ -2193,6 +2193,159 @@ declare const planPickerNodeSchema: z.ZodObject<{
2193
2193
  }, z.core.$strict>>;
2194
2194
  }, z.core.$strict>>;
2195
2195
  }, z.core.$strict>;
2196
+ /** Purchased pack selection; catalog terms remain the commercial authority. */
2197
+ declare const quantityPickerNodeSchema: z.ZodObject<{
2198
+ type: z.ZodLiteral<"quantity_picker">;
2199
+ bind: z.ZodOptional<z.ZodObject<{
2200
+ plan: z.ZodOptional<z.ZodString>;
2201
+ coupon: z.ZodOptional<z.ZodUUID>;
2202
+ promotionCode: z.ZodOptional<z.ZodUUID>;
2203
+ picker: z.ZodOptional<z.ZodString>;
2204
+ }, z.core.$strict>>;
2205
+ label: z.ZodString;
2206
+ fallback: z.ZodString;
2207
+ internalFeatureId: z.ZodUUID;
2208
+ minimumQuantity: z.ZodNumber;
2209
+ maximumQuantity: z.ZodNumber;
2210
+ defaultQuantity: z.ZodNumber;
2211
+ step: z.ZodNumber;
2212
+ id: z.ZodString;
2213
+ name: z.ZodOptional<z.ZodString>;
2214
+ hidden: z.ZodOptional<z.ZodBoolean>;
2215
+ style: z.ZodOptional<z.ZodObject<{
2216
+ width: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2217
+ fill: "fill";
2218
+ fit: "fit";
2219
+ }>, z.ZodNumber]>>;
2220
+ height: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2221
+ fill: "fill";
2222
+ fit: "fit";
2223
+ }>, z.ZodNumber]>>;
2224
+ padding: z.ZodOptional<z.ZodObject<{
2225
+ top: z.ZodNumber;
2226
+ right: z.ZodNumber;
2227
+ bottom: z.ZodNumber;
2228
+ left: z.ZodNumber;
2229
+ }, z.core.$strict>>;
2230
+ margin: z.ZodOptional<z.ZodObject<{
2231
+ top: z.ZodNumber;
2232
+ right: z.ZodNumber;
2233
+ bottom: z.ZodNumber;
2234
+ left: z.ZodNumber;
2235
+ }, z.core.$strict>>;
2236
+ gap: z.ZodOptional<z.ZodNumber>;
2237
+ grow: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>;
2238
+ background: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2239
+ type: z.ZodLiteral<"color">;
2240
+ color: z.ZodUnion<readonly [z.ZodEnum<{
2241
+ text: "text";
2242
+ background: "background";
2243
+ primary: "primary";
2244
+ muted: "muted";
2245
+ surface: "surface";
2246
+ }>, z.ZodString]>;
2247
+ }, z.core.$strict>, z.ZodObject<{
2248
+ type: z.ZodLiteral<"linear">;
2249
+ angle: z.ZodNumber;
2250
+ stops: z.ZodArray<z.ZodObject<{
2251
+ color: z.ZodUnion<readonly [z.ZodEnum<{
2252
+ text: "text";
2253
+ background: "background";
2254
+ primary: "primary";
2255
+ muted: "muted";
2256
+ surface: "surface";
2257
+ }>, z.ZodString]>;
2258
+ at: z.ZodNumber;
2259
+ }, z.core.$strict>>;
2260
+ }, z.core.$strict>, z.ZodObject<{
2261
+ type: z.ZodLiteral<"image">;
2262
+ src: z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString, z.ZodString]>;
2263
+ fit: z.ZodEnum<{
2264
+ cover: "cover";
2265
+ contain: "contain";
2266
+ }>;
2267
+ position: z.ZodOptional<z.ZodObject<{
2268
+ x: z.ZodNumber;
2269
+ y: z.ZodNumber;
2270
+ }, z.core.$strict>>;
2271
+ }, z.core.$strict>], "type">>;
2272
+ opacity: z.ZodOptional<z.ZodNumber>;
2273
+ clipContent: z.ZodOptional<z.ZodBoolean>;
2274
+ shape: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2275
+ type: z.ZodLiteral<"rect">;
2276
+ radius: z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
2277
+ topLeft: z.ZodNumber;
2278
+ topRight: z.ZodNumber;
2279
+ bottomRight: z.ZodNumber;
2280
+ bottomLeft: z.ZodNumber;
2281
+ }, z.core.$strict>]>;
2282
+ }, z.core.$strict>, z.ZodObject<{
2283
+ type: z.ZodLiteral<"pill">;
2284
+ }, z.core.$strict>], "type">>;
2285
+ border: z.ZodOptional<z.ZodObject<{
2286
+ width: z.ZodNumber;
2287
+ color: z.ZodUnion<readonly [z.ZodEnum<{
2288
+ text: "text";
2289
+ background: "background";
2290
+ primary: "primary";
2291
+ muted: "muted";
2292
+ surface: "surface";
2293
+ }>, z.ZodString]>;
2294
+ style: z.ZodEnum<{
2295
+ solid: "solid";
2296
+ dashed: "dashed";
2297
+ }>;
2298
+ }, z.core.$strict>>;
2299
+ shadow: z.ZodOptional<z.ZodObject<{
2300
+ x: z.ZodNumber;
2301
+ y: z.ZodNumber;
2302
+ blur: z.ZodNumber;
2303
+ spread: z.ZodNumber;
2304
+ color: z.ZodUnion<readonly [z.ZodEnum<{
2305
+ text: "text";
2306
+ background: "background";
2307
+ primary: "primary";
2308
+ muted: "muted";
2309
+ surface: "surface";
2310
+ }>, z.ZodString]>;
2311
+ }, z.core.$strict>>;
2312
+ text: z.ZodOptional<z.ZodObject<{
2313
+ font: z.ZodOptional<z.ZodEnum<{
2314
+ system: "system";
2315
+ serif: "serif";
2316
+ rounded: "rounded";
2317
+ mono: "mono";
2318
+ }>>;
2319
+ size: z.ZodOptional<z.ZodNumber>;
2320
+ weight: z.ZodOptional<z.ZodNumber>;
2321
+ lineHeight: z.ZodOptional<z.ZodNumber>;
2322
+ letterSpacing: z.ZodOptional<z.ZodNumber>;
2323
+ color: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2324
+ text: "text";
2325
+ background: "background";
2326
+ primary: "primary";
2327
+ muted: "muted";
2328
+ surface: "surface";
2329
+ }>, z.ZodString]>>;
2330
+ align: z.ZodOptional<z.ZodEnum<{
2331
+ start: "start";
2332
+ end: "end";
2333
+ center: "center";
2334
+ }>>;
2335
+ italic: z.ZodOptional<z.ZodBoolean>;
2336
+ decoration: z.ZodOptional<z.ZodEnum<{
2337
+ none: "none";
2338
+ underline: "underline";
2339
+ "line-through": "line-through";
2340
+ }>>;
2341
+ transform: z.ZodOptional<z.ZodEnum<{
2342
+ none: "none";
2343
+ uppercase: "uppercase";
2344
+ }>>;
2345
+ }, z.core.$strict>>;
2346
+ }, z.core.$strict>>;
2347
+ }, z.core.$strict>;
2348
+ type QuantityPickerNode = z.infer<typeof quantityPickerNodeSchema>;
2196
2349
  type PriceNode = z.infer<typeof priceNodeSchema>;
2197
2350
  type CouponCodeNode = z.infer<typeof couponCodeNodeSchema>;
2198
2351
  type CountdownNode = z.infer<typeof countdownNodeSchema>;
@@ -2204,7 +2357,7 @@ type DividerNode = z.infer<typeof dividerNodeSchema>;
2204
2357
  type SpacerNode = z.infer<typeof spacerNodeSchema>;
2205
2358
  type CustomHtmlNode = z.infer<typeof customHtmlNodeSchema>;
2206
2359
  /** Display selections only. Never use these values as payment, eligibility, price, or customer authentication. */
2207
- type ScreenSelection = Record<string, string | boolean>;
2360
+ type ScreenSelection = Record<string, string | boolean | number>;
2208
2361
  declare const stackNodeFields: {
2209
2362
  type: z.ZodLiteral<"stack">;
2210
2363
  direction: z.ZodEnum<{
@@ -2691,7 +2844,7 @@ declare const stackNodeFields: {
2691
2844
  type StackNode = z.infer<z.ZodObject<typeof stackNodeFields>> & {
2692
2845
  children: ScreenNode[];
2693
2846
  };
2694
- type ScreenNode = StackNode | TextNode | ImageNode | ButtonNode | DividerNode | SpacerNode | CustomHtmlNode | PriceNode | CouponCodeNode | CountdownNode | PlanPickerNode | CustomerDataNode;
2847
+ type ScreenNode = StackNode | TextNode | ImageNode | ButtonNode | DividerNode | SpacerNode | CustomHtmlNode | PriceNode | CouponCodeNode | CountdownNode | PlanPickerNode | QuantityPickerNode | CustomerDataNode;
2695
2848
  declare const screenActionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2696
2849
  type: z.ZodLiteral<"navigate">;
2697
2850
  close: z.ZodLiteral<false>;
@@ -2764,10 +2917,10 @@ declare const screenDocumentShape: z.ZodObject<{
2764
2917
  text: z.ZodString;
2765
2918
  radius: z.ZodEnum<{
2766
2919
  none: "none";
2920
+ full: "full";
2767
2921
  sm: "sm";
2768
2922
  md: "md";
2769
2923
  lg: "lg";
2770
- full: "full";
2771
2924
  }>;
2772
2925
  font: z.ZodEnum<{
2773
2926
  system: "system";
@@ -2786,10 +2939,10 @@ declare const screenDocumentShape: z.ZodObject<{
2786
2939
  text: z.ZodString;
2787
2940
  radius: z.ZodEnum<{
2788
2941
  none: "none";
2942
+ full: "full";
2789
2943
  sm: "sm";
2790
2944
  md: "md";
2791
2945
  lg: "lg";
2792
- full: "full";
2793
2946
  }>;
2794
2947
  font: z.ZodEnum<{
2795
2948
  system: "system";
@@ -2844,4 +2997,4 @@ declare const screenDocumentShape: z.ZodObject<{
2844
2997
  }, z.core.$strict>;
2845
2998
  type ScreenDocument = z.infer<typeof screenDocumentShape>;
2846
2999
 
2847
- export type { StackNode as S, ScreenAction as a, ScreenNode as b, ScreenDocument as c, ScreenSelection as d };
3000
+ export type { StackNode as S, ScreenSelection as a, ScreenAction as b, ScreenNode as c, ScreenDocument as d };
@@ -1 +1 @@
1
- import{a,b,c,d,e,g as f,h as g,i as h,j as i}from"./chunk-L7LKE3MG.js";import"./chunk-SSLZKIIU.js";import"./chunk-G23YNWWI.js";import"./chunk-DSPLGTQI.js";import"./chunk-7DXL3LHT.js";import"./chunk-3PZ4Y6UD.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};
1
+ import{a,b,c,d,e,g as f,h as g,i as h,j as i}from"./chunk-X6BCUINI.js";import"./chunk-SSLZKIIU.js";import"./chunk-ACF2FBUB.js";import"./chunk-DSPLGTQI.js";import"./chunk-7DXL3LHT.js";import"./chunk-3PZ4Y6UD.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};