@revealui/services 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +27 -0
- package/dist/index.js +42 -0
- package/package.json +10 -51
- package/LICENSE +0 -202
- package/dist/.vite/ssr-manifest.json +0 -209
- package/dist/assets/index-Bai9hEWd.js +0 -16
- package/dist/assets/index-Bai9hEWd.js.map +0 -1
- package/dist/index.html +0 -23
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const m of a.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&n(m)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var zn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ra(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var ur,Wn;function Xe(){return Wn||(Wn=1,ur=TypeError),ur}const na=new Proxy({},{get(t,e){throw new Error(`Module "" has been externalized for browser compatibility. Cannot access ".${e}" in client code. See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`)}}),oa=Object.freeze(Object.defineProperty({__proto__:null,default:na},Symbol.toStringTag,{value:"Module"})),ia=ra(oa);var cr,Vn;function Qt(){if(Vn)return cr;Vn=1;var t=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&t?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=t&&e&&typeof e.get=="function"?e.get:null,n=t&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,m=i&&a&&typeof a.get=="function"?a.get:null,v=i&&Set.prototype.forEach,_=typeof WeakMap=="function"&&WeakMap.prototype,g=_?WeakMap.prototype.has:null,s=typeof WeakSet=="function"&&WeakSet.prototype,h=s?WeakSet.prototype.has:null,P=typeof WeakRef=="function"&&WeakRef.prototype,p=P?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,S=Object.prototype.toString,l=Function.prototype.toString,c=String.prototype.match,f=String.prototype.slice,E=String.prototype.replace,T=String.prototype.toUpperCase,O=String.prototype.toLowerCase,w=RegExp.prototype.test,b=Array.prototype.concat,A=Array.prototype.join,M=Array.prototype.slice,x=Math.floor,q=typeof BigInt=="function"?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,V=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,B=typeof Symbol=="function"&&typeof Symbol.iterator=="object",X=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===B||!0)?Symbol.toStringTag:null,de=Object.prototype.propertyIsEnumerable,he=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(u){return u.__proto__}:null);function G(u,d){if(u===1/0||u===-1/0||u!==u||u&&u>-1e3&&u<1e3||w.call(/e/,d))return d;var $=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof u=="number"){var k=u<0?-x(-u):x(u);if(k!==u){var F=String(k),C=f.call(d,F.length+1);return E.call(F,$,"$&_")+"."+E.call(E.call(C,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(d,$,"$&_")}var Z=ia,pe=Z.custom,Re=K(pe)?pe:null,ve={__proto__:null,double:'"',single:"'"},ye={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};cr=function u(d,$,k,F){var C=$||{};if(Y(C,"quoteStyle")&&!Y(ve,C.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(C,"maxStringLength")&&(typeof C.maxStringLength=="number"?C.maxStringLength<0&&C.maxStringLength!==1/0:C.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ee=Y(C,"customInspect")?C.customInspect:!0;if(typeof Ee!="boolean"&&Ee!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Y(C,"indent")&&C.indent!==null&&C.indent!==" "&&!(parseInt(C.indent,10)===C.indent&&C.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(C,"numericSeparator")&&typeof C.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ce=C.numericSeparator;if(typeof d>"u")return"undefined";if(d===null)return"null";if(typeof d=="boolean")return d?"true":"false";if(typeof d=="string")return qn(d,C);if(typeof d=="number"){if(d===0)return 1/0/d>0?"0":"-0";var ee=String(d);return Ce?G(d,ee):ee}if(typeof d=="bigint"){var Se=String(d)+"n";return Ce?G(d,Se):Se}var rr=typeof C.depth>"u"?5:C.depth;if(typeof k>"u"&&(k=0),k>=rr&&rr>0&&typeof d=="object")return ge(d)?"[Array]":"[Object]";var Ue=Zi(C,k);if(typeof F>"u")F=[];else if(_e(F,d)>=0)return"[Circular]";function le(He,St,ta){if(St&&(F=M.call(F),F.push(St)),ta){var jn={depth:C.depth};return Y(C,"quoteStyle")&&(jn.quoteStyle=C.quoteStyle),u(He,jn,k+1,F)}return u(He,C,k+1,F)}if(typeof d=="function"&&!W(d)){var Nn=Ne(d),kn=_t(d,le);return"[Function"+(Nn?": "+Nn:" (anonymous)")+"]"+(kn.length>0?" { "+A.call(kn,", ")+" }":"")}if(K(d)){var Fn=B?E.call(String(d),/^(Symbol\(.*\))_[^)]*$/,"$1"):V.call(d);return typeof d=="object"&&!B?Ze(Fn):Fn}if(Qi(d)){for(var et="<"+O.call(String(d.nodeName)),nr=d.attributes||[],Et=0;Et<nr.length;Et++)et+=" "+nr[Et].name+"="+Pe(fe(nr[Et].value),"double",C);return et+=">",d.childNodes&&d.childNodes.length&&(et+="..."),et+="</"+O.call(String(d.nodeName))+">",et}if(ge(d)){if(d.length===0)return"[]";var or=_t(d,le);return Ue&&!Xi(or)?"["+tr(or,Ue)+"]":"[ "+A.call(or,", ")+" ]"}if(I(d)){var ir=_t(d,le);return!("cause"in Error.prototype)&&"cause"in d&&!de.call(d,"cause")?"{ ["+String(d)+"] "+A.call(b.call("[cause]: "+le(d.cause),ir),", ")+" }":ir.length===0?"["+String(d)+"]":"{ ["+String(d)+"] "+A.call(ir,", ")+" }"}if(typeof d=="object"&&Ee){if(Re&&typeof d[Re]=="function"&&Z)return Z(d,{depth:rr-k});if(Ee!=="symbol"&&typeof d.inspect=="function")return d.inspect()}if(se(d)){var Ln=[];return n&&n.call(d,function(He,St){Ln.push(le(St,d,!0)+" => "+le(He,d))}),Dn("Map",r.call(d),Ln,Ue)}if(Le(d)){var Un=[];return v&&v.call(d,function(He){Un.push(le(He,d))}),Dn("Set",m.call(d),Un,Ue)}if(ke(d))return er("WeakMap");if(Ji(d))return er("WeakSet");if(Fe(d))return er("WeakRef");if(N(d))return Ze(le(Number(d)));if(ne(d))return Ze(le(q.call(d)));if(j(d))return Ze(y.call(d));if(H(d))return Ze(le(String(d)));if(typeof window<"u"&&d===window)return"{ [object Window] }";if(typeof globalThis<"u"&&d===globalThis||typeof zn<"u"&&d===zn)return"{ [object globalThis] }";if(!Te(d)&&!W(d)){var ar=_t(d,le),Hn=he?he(d)===Object.prototype:d instanceof Object||d.constructor===Object,sr=d instanceof Object?"":"null prototype",Bn=!Hn&&X&&Object(d)===d&&X in d?f.call(oe(d),8,-1):sr?"Object":"",ea=Hn||typeof d.constructor!="function"?"":d.constructor.name?d.constructor.name+" ":"",lr=ea+(Bn||sr?"["+A.call(b.call([],Bn||[],sr||[]),": ")+"] ":"");return ar.length===0?lr+"{}":Ue?lr+"{"+tr(ar,Ue)+"}":lr+"{ "+A.call(ar,", ")+" }"}return String(d)};function Pe(u,d,$){var k=$.quoteStyle||d,F=ve[k];return F+u+F}function fe(u){return E.call(String(u),/"/g,""")}function re(u){return!X||!(typeof u=="object"&&(X in u||typeof u[X]<"u"))}function ge(u){return oe(u)==="[object Array]"&&re(u)}function Te(u){return oe(u)==="[object Date]"&&re(u)}function W(u){return oe(u)==="[object RegExp]"&&re(u)}function I(u){return oe(u)==="[object Error]"&&re(u)}function H(u){return oe(u)==="[object String]"&&re(u)}function N(u){return oe(u)==="[object Number]"&&re(u)}function j(u){return oe(u)==="[object Boolean]"&&re(u)}function K(u){if(B)return u&&typeof u=="object"&&u instanceof Symbol;if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||!V)return!1;try{return V.call(u),!0}catch{}return!1}function ne(u){if(!u||typeof u!="object"||!q)return!1;try{return q.call(u),!0}catch{}return!1}var J=Object.prototype.hasOwnProperty||function(u){return u in this};function Y(u,d){return J.call(u,d)}function oe(u){return S.call(u)}function Ne(u){if(u.name)return u.name;var d=c.call(l.call(u),/^function\s*([\w$]+)/);return d?d[1]:null}function _e(u,d){if(u.indexOf)return u.indexOf(d);for(var $=0,k=u.length;$<k;$++)if(u[$]===d)return $;return-1}function se(u){if(!r||!u||typeof u!="object")return!1;try{r.call(u);try{m.call(u)}catch{return!0}return u instanceof Map}catch{}return!1}function ke(u){if(!g||!u||typeof u!="object")return!1;try{g.call(u,g);try{h.call(u,h)}catch{return!0}return u instanceof WeakMap}catch{}return!1}function Fe(u){if(!p||!u||typeof u!="object")return!1;try{return p.call(u),!0}catch{}return!1}function Le(u){if(!m||!u||typeof u!="object")return!1;try{m.call(u);try{r.call(u)}catch{return!0}return u instanceof Set}catch{}return!1}function Ji(u){if(!h||!u||typeof u!="object")return!1;try{h.call(u,h);try{g.call(u,g)}catch{return!0}return u instanceof WeakSet}catch{}return!1}function Qi(u){return!u||typeof u!="object"?!1:typeof HTMLElement<"u"&&u instanceof HTMLElement?!0:typeof u.nodeName=="string"&&typeof u.getAttribute=="function"}function qn(u,d){if(u.length>d.maxStringLength){var $=u.length-d.maxStringLength,k="... "+$+" more character"+($>1?"s":"");return qn(f.call(u,0,d.maxStringLength),d)+k}var F=ye[d.quoteStyle||"single"];F.lastIndex=0;var C=E.call(E.call(u,F,"\\$1"),/[\x00-\x1f]/g,Yi);return Pe(C,"single",d)}function Yi(u){var d=u.charCodeAt(0),$={8:"b",9:"t",10:"n",12:"f",13:"r"}[d];return $?"\\"+$:"\\x"+(d<16?"0":"")+T.call(d.toString(16))}function Ze(u){return"Object("+u+")"}function er(u){return u+" { ? }"}function Dn(u,d,$,k){var F=k?tr($,k):A.call($,", ");return u+" ("+d+") {"+F+"}"}function Xi(u){for(var d=0;d<u.length;d++)if(_e(u[d],`
|
|
2
|
-
`)>=0)return!1;return!0}function Zi(u,d){var $;if(u.indent===" ")$=" ";else if(typeof u.indent=="number"&&u.indent>0)$=A.call(Array(u.indent+1)," ");else return null;return{base:$,prev:A.call(Array(d+1),$)}}function tr(u,d){if(u.length===0)return"";var $=`
|
|
3
|
-
`+d.prev+d.base;return $+A.call(u,","+$)+`
|
|
4
|
-
`+d.prev}function _t(u,d){var $=ge(u),k=[];if($){k.length=u.length;for(var F=0;F<u.length;F++)k[F]=Y(u,F)?d(u[F],u):""}var C=typeof R=="function"?R(u):[],Ee;if(B){Ee={};for(var Ce=0;Ce<C.length;Ce++)Ee["$"+C[Ce]]=C[Ce]}for(var ee in u)Y(u,ee)&&($&&String(Number(ee))===ee&&ee<u.length||B&&Ee["$"+ee]instanceof Symbol||(w.call(/[^\w$]/,ee)?k.push(d(ee,u)+": "+d(u[ee],u)):k.push(ee+": "+d(u[ee],u))));if(typeof R=="function")for(var Se=0;Se<C.length;Se++)de.call(u,C[Se])&&k.push("["+d(C[Se])+"]: "+d(u[C[Se]],u));return k}return cr}var dr,Kn;function aa(){if(Kn)return dr;Kn=1;var t=Qt(),e=Xe(),r=function(v,_,g){for(var s=v,h;(h=s.next)!=null;s=h)if(h.key===_)return s.next=h.next,g||(h.next=v.next,v.next=h),h},n=function(v,_){if(v){var g=r(v,_);return g&&g.value}},i=function(v,_,g){var s=r(v,_);s?s.value=g:v.next={key:_,next:v.next,value:g}},a=function(v,_){return v?!!r(v,_):!1},m=function(v,_){if(v)return r(v,_,!0)};return dr=function(){var _,g={assert:function(s){if(!g.has(s))throw new e("Side channel does not contain "+t(s))},delete:function(s){var h=_&&_.next,P=m(_,s);return P&&h&&h===P&&(_=void 0),!!P},get:function(s){return n(_,s)},has:function(s){return a(_,s)},set:function(s,h){_||(_={next:void 0}),i(_,s,h)}};return g},dr}var hr,Jn;function Oi(){return Jn||(Jn=1,hr=Object),hr}var pr,Qn;function sa(){return Qn||(Qn=1,pr=Error),pr}var fr,Yn;function la(){return Yn||(Yn=1,fr=EvalError),fr}var mr,Xn;function ua(){return Xn||(Xn=1,mr=RangeError),mr}var vr,Zn;function ca(){return Zn||(Zn=1,vr=ReferenceError),vr}var yr,eo;function da(){return eo||(eo=1,yr=SyntaxError),yr}var Pr,to;function ha(){return to||(to=1,Pr=URIError),Pr}var gr,ro;function pa(){return ro||(ro=1,gr=Math.abs),gr}var Tr,no;function fa(){return no||(no=1,Tr=Math.floor),Tr}var _r,oo;function ma(){return oo||(oo=1,_r=Math.max),_r}var Er,io;function va(){return io||(io=1,Er=Math.min),Er}var Sr,ao;function ya(){return ao||(ao=1,Sr=Math.pow),Sr}var Or,so;function Pa(){return so||(so=1,Or=Math.round),Or}var br,lo;function ga(){return lo||(lo=1,br=Number.isNaN||function(e){return e!==e}),br}var wr,uo;function Ta(){if(uo)return wr;uo=1;var t=ga();return wr=function(r){return t(r)||r===0?r:r<0?-1:1},wr}var xr,co;function _a(){return co||(co=1,xr=Object.getOwnPropertyDescriptor),xr}var Ar,ho;function bi(){if(ho)return Ar;ho=1;var t=_a();if(t)try{t([],"length")}catch{t=null}return Ar=t,Ar}var Rr,po;function Ea(){if(po)return Rr;po=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Rr=t,Rr}var Cr,fo;function Sa(){return fo||(fo=1,Cr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(var a in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var m=Object.getOwnPropertySymbols(e);if(m.length!==1||m[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(e,r);if(v.value!==i||v.enumerable!==!0)return!1}return!0}),Cr}var Mr,mo;function Oa(){if(mo)return Mr;mo=1;var t=typeof Symbol<"u"&&Symbol,e=Sa();return Mr=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Mr}var Gr,vo;function wi(){return vo||(vo=1,Gr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Gr}var Ir,yo;function xi(){if(yo)return Ir;yo=1;var t=Oi();return Ir=t.getPrototypeOf||null,Ir}var $r,Po;function ba(){if(Po)return $r;Po=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(_,g){for(var s=[],h=0;h<_.length;h+=1)s[h]=_[h];for(var P=0;P<g.length;P+=1)s[P+_.length]=g[P];return s},a=function(_,g){for(var s=[],h=g,P=0;h<_.length;h+=1,P+=1)s[P]=_[h];return s},m=function(v,_){for(var g="",s=0;s<v.length;s+=1)g+=v[s],s+1<v.length&&(g+=_);return g};return $r=function(_){var g=this;if(typeof g!="function"||e.apply(g)!==n)throw new TypeError(t+g);for(var s=a(arguments,1),h,P=function(){if(this instanceof h){var c=g.apply(this,i(s,arguments));return Object(c)===c?c:this}return g.apply(_,i(s,arguments))},p=r(0,g.length-s.length),y=[],S=0;S<p;S++)y[S]="$"+S;if(h=Function("binder","return function ("+m(y,",")+"){ return binder.apply(this,arguments); }")(P),g.prototype){var l=function(){};l.prototype=g.prototype,h.prototype=new l,l.prototype=null}return h},$r}var qr,go;function Yt(){if(go)return qr;go=1;var t=ba();return qr=Function.prototype.bind||t,qr}var Dr,To;function Sn(){return To||(To=1,Dr=Function.prototype.call),Dr}var Nr,_o;function Ai(){return _o||(_o=1,Nr=Function.prototype.apply),Nr}var kr,Eo;function wa(){return Eo||(Eo=1,kr=typeof Reflect<"u"&&Reflect&&Reflect.apply),kr}var Fr,So;function xa(){if(So)return Fr;So=1;var t=Yt(),e=Ai(),r=Sn(),n=wa();return Fr=n||t.call(r,e),Fr}var Lr,Oo;function Ri(){if(Oo)return Lr;Oo=1;var t=Yt(),e=Xe(),r=Sn(),n=xa();return Lr=function(a){if(a.length<1||typeof a[0]!="function")throw new e("a function is required");return n(t,r,a)},Lr}var Ur,bo;function Aa(){if(bo)return Ur;bo=1;var t=Ri(),e=bi(),r;try{r=[].__proto__===Array.prototype}catch(m){if(!m||typeof m!="object"||!("code"in m)||m.code!=="ERR_PROTO_ACCESS")throw m}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,a=i.getPrototypeOf;return Ur=n&&typeof n.get=="function"?t([n.get]):typeof a=="function"?function(v){return a(v==null?v:i(v))}:!1,Ur}var Hr,wo;function Ra(){if(wo)return Hr;wo=1;var t=wi(),e=xi(),r=Aa();return Hr=t?function(i){return t(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:r?function(i){return r(i)}:null,Hr}var Br,xo;function Ca(){if(xo)return Br;xo=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Yt();return Br=r.call(t,e),Br}var jr,Ao;function On(){if(Ao)return jr;Ao=1;var t,e=Oi(),r=sa(),n=la(),i=ua(),a=ca(),m=da(),v=Xe(),_=ha(),g=pa(),s=fa(),h=ma(),P=va(),p=ya(),y=Pa(),S=Ta(),l=Function,c=function(W){try{return l('"use strict"; return ('+W+").constructor;")()}catch{}},f=bi(),E=Ea(),T=function(){throw new v},O=f?(function(){try{return arguments.callee,T}catch{try{return f(arguments,"callee").get}catch{return T}}})():T,w=Oa()(),b=Ra(),A=xi(),M=wi(),x=Ai(),q=Sn(),R={},V=typeof Uint8Array>"u"||!b?t:b(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":w&&b?b([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":l,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&b?b(b([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!w||!b?t:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":f,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":i,"%ReferenceError%":a,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!w||!b?t:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&b?b(""[Symbol.iterator]()):t,"%Symbol%":w?Symbol:t,"%SyntaxError%":m,"%ThrowTypeError%":O,"%TypedArray%":V,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":_,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":q,"%Function.prototype.apply%":x,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":A,"%Math.abs%":g,"%Math.floor%":s,"%Math.max%":h,"%Math.min%":P,"%Math.pow%":p,"%Math.round%":y,"%Math.sign%":S,"%Reflect.getPrototypeOf%":M};if(b)try{null.error}catch(W){var X=b(b(W));B["%Error.prototype%"]=X}var de=function W(I){var H;if(I==="%AsyncFunction%")H=c("async function () {}");else if(I==="%GeneratorFunction%")H=c("function* () {}");else if(I==="%AsyncGeneratorFunction%")H=c("async function* () {}");else if(I==="%AsyncGenerator%"){var N=W("%AsyncGeneratorFunction%");N&&(H=N.prototype)}else if(I==="%AsyncIteratorPrototype%"){var j=W("%AsyncGenerator%");j&&b&&(H=b(j.prototype))}return B[I]=H,H},he={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=Yt(),Z=Ca(),pe=G.call(q,Array.prototype.concat),Re=G.call(x,Array.prototype.splice),ve=G.call(q,String.prototype.replace),ye=G.call(q,String.prototype.slice),Pe=G.call(q,RegExp.prototype.exec),fe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,ge=function(I){var H=ye(I,0,1),N=ye(I,-1);if(H==="%"&&N!=="%")throw new m("invalid intrinsic syntax, expected closing `%`");if(N==="%"&&H!=="%")throw new m("invalid intrinsic syntax, expected opening `%`");var j=[];return ve(I,fe,function(K,ne,J,Y){j[j.length]=J?ve(Y,re,"$1"):ne||K}),j},Te=function(I,H){var N=I,j;if(Z(he,N)&&(j=he[N],N="%"+j[0]+"%"),Z(B,N)){var K=B[N];if(K===R&&(K=de(N)),typeof K>"u"&&!H)throw new v("intrinsic "+I+" exists, but is not available. Please file an issue!");return{alias:j,name:N,value:K}}throw new m("intrinsic "+I+" does not exist!")};return jr=function(I,H){if(typeof I!="string"||I.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof H!="boolean")throw new v('"allowMissing" argument must be a boolean');if(Pe(/^%?[^%]*%?$/,I)===null)throw new m("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var N=ge(I),j=N.length>0?N[0]:"",K=Te("%"+j+"%",H),ne=K.name,J=K.value,Y=!1,oe=K.alias;oe&&(j=oe[0],Re(N,pe([0,1],oe)));for(var Ne=1,_e=!0;Ne<N.length;Ne+=1){var se=N[Ne],ke=ye(se,0,1),Fe=ye(se,-1);if((ke==='"'||ke==="'"||ke==="`"||Fe==='"'||Fe==="'"||Fe==="`")&&ke!==Fe)throw new m("property names with quotes must have matching quotes");if((se==="constructor"||!_e)&&(Y=!0),j+="."+se,ne="%"+j+"%",Z(B,ne))J=B[ne];else if(J!=null){if(!(se in J)){if(!H)throw new v("base intrinsic for "+I+" exists, but the property is not available.");return}if(f&&Ne+1>=N.length){var Le=f(J,se);_e=!!Le,_e&&"get"in Le&&!("originalValue"in Le.get)?J=Le.get:J=J[se]}else _e=Z(J,se),J=J[se];_e&&!Y&&(B[ne]=J)}}return J},jr}var zr,Ro;function Ci(){if(Ro)return zr;Ro=1;var t=On(),e=Ri(),r=e([t("%String.prototype.indexOf%")]);return zr=function(i,a){var m=t(i,!!a);return typeof m=="function"&&r(i,".prototype.")>-1?e([m]):m},zr}var Wr,Co;function Mi(){if(Co)return Wr;Co=1;var t=On(),e=Ci(),r=Qt(),n=Xe(),i=t("%Map%",!0),a=e("Map.prototype.get",!0),m=e("Map.prototype.set",!0),v=e("Map.prototype.has",!0),_=e("Map.prototype.delete",!0),g=e("Map.prototype.size",!0);return Wr=!!i&&function(){var h,P={assert:function(p){if(!P.has(p))throw new n("Side channel does not contain "+r(p))},delete:function(p){if(h){var y=_(h,p);return g(h)===0&&(h=void 0),y}return!1},get:function(p){if(h)return a(h,p)},has:function(p){return h?v(h,p):!1},set:function(p,y){h||(h=new i),m(h,p,y)}};return P},Wr}var Vr,Mo;function Ma(){if(Mo)return Vr;Mo=1;var t=On(),e=Ci(),r=Qt(),n=Mi(),i=Xe(),a=t("%WeakMap%",!0),m=e("WeakMap.prototype.get",!0),v=e("WeakMap.prototype.set",!0),_=e("WeakMap.prototype.has",!0),g=e("WeakMap.prototype.delete",!0);return Vr=a?function(){var h,P,p={assert:function(y){if(!p.has(y))throw new i("Side channel does not contain "+r(y))},delete:function(y){if(a&&y&&(typeof y=="object"||typeof y=="function")){if(h)return g(h,y)}else if(n&&P)return P.delete(y);return!1},get:function(y){return a&&y&&(typeof y=="object"||typeof y=="function")&&h?m(h,y):P&&P.get(y)},has:function(y){return a&&y&&(typeof y=="object"||typeof y=="function")&&h?_(h,y):!!P&&P.has(y)},set:function(y,S){a&&y&&(typeof y=="object"||typeof y=="function")?(h||(h=new a),v(h,y,S)):n&&(P||(P=n()),P.set(y,S))}};return p}:n,Vr}var Kr,Go;function Ga(){if(Go)return Kr;Go=1;var t=Xe(),e=Qt(),r=aa(),n=Mi(),i=Ma(),a=i||n||r;return Kr=function(){var v,_={assert:function(g){if(!_.has(g))throw new t("Side channel does not contain "+e(g))},delete:function(g){return!!v&&v.delete(g)},get:function(g){return v&&v.get(g)},has:function(g){return!!v&&v.has(g)},set:function(g,s){v||(v=a()),v.set(g,s)}};return _},Kr}var Jr,Io;function bn(){if(Io)return Jr;Io=1;var t=String.prototype.replace,e=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Jr={default:r.RFC3986,formatters:{RFC1738:function(n){return t.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Jr}var Qr,$o;function Gi(){if($o)return Qr;$o=1;var t=bn(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n=(function(){for(var l=[],c=0;c<256;++c)l.push("%"+((c<16?"0":"")+c.toString(16)).toUpperCase());return l})(),i=function(c){for(;c.length>1;){var f=c.pop(),E=f.obj[f.prop];if(r(E)){for(var T=[],O=0;O<E.length;++O)typeof E[O]<"u"&&T.push(E[O]);f.obj[f.prop]=T}}},a=function(c,f){for(var E=f&&f.plainObjects?{__proto__:null}:{},T=0;T<c.length;++T)typeof c[T]<"u"&&(E[T]=c[T]);return E},m=function l(c,f,E){if(!f)return c;if(typeof f!="object"&&typeof f!="function"){if(r(c))c.push(f);else if(c&&typeof c=="object")(E&&(E.plainObjects||E.allowPrototypes)||!e.call(Object.prototype,f))&&(c[f]=!0);else return[c,f];return c}if(!c||typeof c!="object")return[c].concat(f);var T=c;return r(c)&&!r(f)&&(T=a(c,E)),r(c)&&r(f)?(f.forEach(function(O,w){if(e.call(c,w)){var b=c[w];b&&typeof b=="object"&&O&&typeof O=="object"?c[w]=l(b,O,E):c.push(O)}else c[w]=O}),c):Object.keys(f).reduce(function(O,w){var b=f[w];return e.call(O,w)?O[w]=l(O[w],b,E):O[w]=b,O},T)},v=function(c,f){return Object.keys(f).reduce(function(E,T){return E[T]=f[T],E},c)},_=function(l,c,f){var E=l.replace(/\+/g," ");if(f==="iso-8859-1")return E.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(E)}catch{return E}},g=1024,s=function(c,f,E,T,O){if(c.length===0)return c;var w=c;if(typeof c=="symbol"?w=Symbol.prototype.toString.call(c):typeof c!="string"&&(w=String(c)),E==="iso-8859-1")return escape(w).replace(/%u[0-9a-f]{4}/gi,function(V){return"%26%23"+parseInt(V.slice(2),16)+"%3B"});for(var b="",A=0;A<w.length;A+=g){for(var M=w.length>=g?w.slice(A,A+g):w,x=[],q=0;q<M.length;++q){var R=M.charCodeAt(q);if(R===45||R===46||R===95||R===126||R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||O===t.RFC1738&&(R===40||R===41)){x[x.length]=M.charAt(q);continue}if(R<128){x[x.length]=n[R];continue}if(R<2048){x[x.length]=n[192|R>>6]+n[128|R&63];continue}if(R<55296||R>=57344){x[x.length]=n[224|R>>12]+n[128|R>>6&63]+n[128|R&63];continue}q+=1,R=65536+((R&1023)<<10|M.charCodeAt(q)&1023),x[x.length]=n[240|R>>18]+n[128|R>>12&63]+n[128|R>>6&63]+n[128|R&63]}b+=x.join("")}return b},h=function(c){for(var f=[{obj:{o:c},prop:"o"}],E=[],T=0;T<f.length;++T)for(var O=f[T],w=O.obj[O.prop],b=Object.keys(w),A=0;A<b.length;++A){var M=b[A],x=w[M];typeof x=="object"&&x!==null&&E.indexOf(x)===-1&&(f.push({obj:w,prop:M}),E.push(x))}return i(f),c},P=function(c){return Object.prototype.toString.call(c)==="[object RegExp]"},p=function(c){return!c||typeof c!="object"?!1:!!(c.constructor&&c.constructor.isBuffer&&c.constructor.isBuffer(c))},y=function(c,f){return[].concat(c,f)},S=function(c,f){if(r(c)){for(var E=[],T=0;T<c.length;T+=1)E.push(f(c[T]));return E}return f(c)};return Qr={arrayToObject:a,assign:v,combine:y,compact:h,decode:_,encode:s,isBuffer:p,isRegExp:P,maybeMap:S,merge:m},Qr}var Yr,qo;function Ia(){if(qo)return Yr;qo=1;var t=Ga(),e=Gi(),r=bn(),n=Object.prototype.hasOwnProperty,i={brackets:function(l){return l+"[]"},comma:"comma",indices:function(l,c){return l+"["+c+"]"},repeat:function(l){return l}},a=Array.isArray,m=Array.prototype.push,v=function(S,l){m.apply(S,a(l)?l:[l])},_=Date.prototype.toISOString,g=r.default,s={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:g,formatter:r.formatters[g],indices:!1,serializeDate:function(l){return _.call(l)},skipNulls:!1,strictNullHandling:!1},h=function(l){return typeof l=="string"||typeof l=="number"||typeof l=="boolean"||typeof l=="symbol"||typeof l=="bigint"},P={},p=function S(l,c,f,E,T,O,w,b,A,M,x,q,R,V,B,X,de,he){for(var G=l,Z=he,pe=0,Re=!1;(Z=Z.get(P))!==void 0&&!Re;){var ve=Z.get(l);if(pe+=1,typeof ve<"u"){if(ve===pe)throw new RangeError("Cyclic object value");Re=!0}typeof Z.get(P)>"u"&&(pe=0)}if(typeof M=="function"?G=M(c,G):G instanceof Date?G=R(G):f==="comma"&&a(G)&&(G=e.maybeMap(G,function(ne){return ne instanceof Date?R(ne):ne})),G===null){if(O)return A&&!X?A(c,s.encoder,de,"key",V):c;G=""}if(h(G)||e.isBuffer(G)){if(A){var ye=X?c:A(c,s.encoder,de,"key",V);return[B(ye)+"="+B(A(G,s.encoder,de,"value",V))]}return[B(c)+"="+B(String(G))]}var Pe=[];if(typeof G>"u")return Pe;var fe;if(f==="comma"&&a(G))X&&A&&(G=e.maybeMap(G,A)),fe=[{value:G.length>0?G.join(",")||null:void 0}];else if(a(M))fe=M;else{var re=Object.keys(G);fe=x?re.sort(x):re}var ge=b?String(c).replace(/\./g,"%2E"):String(c),Te=E&&a(G)&&G.length===1?ge+"[]":ge;if(T&&a(G)&&G.length===0)return Te+"[]";for(var W=0;W<fe.length;++W){var I=fe[W],H=typeof I=="object"&&I&&typeof I.value<"u"?I.value:G[I];if(!(w&&H===null)){var N=q&&b?String(I).replace(/\./g,"%2E"):String(I),j=a(G)?typeof f=="function"?f(Te,N):Te:Te+(q?"."+N:"["+N+"]");he.set(l,pe);var K=t();K.set(P,he),v(Pe,S(H,j,f,E,T,O,w,b,f==="comma"&&X&&a(G)?null:A,M,x,q,R,V,B,X,de,K))}}return Pe},y=function(l){if(!l)return s;if(typeof l.allowEmptyArrays<"u"&&typeof l.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof l.encodeDotInKeys<"u"&&typeof l.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(l.encoder!==null&&typeof l.encoder<"u"&&typeof l.encoder!="function")throw new TypeError("Encoder has to be a function.");var c=l.charset||s.charset;if(typeof l.charset<"u"&&l.charset!=="utf-8"&&l.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var f=r.default;if(typeof l.format<"u"){if(!n.call(r.formatters,l.format))throw new TypeError("Unknown format option provided.");f=l.format}var E=r.formatters[f],T=s.filter;(typeof l.filter=="function"||a(l.filter))&&(T=l.filter);var O;if(l.arrayFormat in i?O=l.arrayFormat:"indices"in l?O=l.indices?"indices":"repeat":O=s.arrayFormat,"commaRoundTrip"in l&&typeof l.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var w=typeof l.allowDots>"u"?l.encodeDotInKeys===!0?!0:s.allowDots:!!l.allowDots;return{addQueryPrefix:typeof l.addQueryPrefix=="boolean"?l.addQueryPrefix:s.addQueryPrefix,allowDots:w,allowEmptyArrays:typeof l.allowEmptyArrays=="boolean"?!!l.allowEmptyArrays:s.allowEmptyArrays,arrayFormat:O,charset:c,charsetSentinel:typeof l.charsetSentinel=="boolean"?l.charsetSentinel:s.charsetSentinel,commaRoundTrip:!!l.commaRoundTrip,delimiter:typeof l.delimiter>"u"?s.delimiter:l.delimiter,encode:typeof l.encode=="boolean"?l.encode:s.encode,encodeDotInKeys:typeof l.encodeDotInKeys=="boolean"?l.encodeDotInKeys:s.encodeDotInKeys,encoder:typeof l.encoder=="function"?l.encoder:s.encoder,encodeValuesOnly:typeof l.encodeValuesOnly=="boolean"?l.encodeValuesOnly:s.encodeValuesOnly,filter:T,format:f,formatter:E,serializeDate:typeof l.serializeDate=="function"?l.serializeDate:s.serializeDate,skipNulls:typeof l.skipNulls=="boolean"?l.skipNulls:s.skipNulls,sort:typeof l.sort=="function"?l.sort:null,strictNullHandling:typeof l.strictNullHandling=="boolean"?l.strictNullHandling:s.strictNullHandling}};return Yr=function(S,l){var c=S,f=y(l),E,T;typeof f.filter=="function"?(T=f.filter,c=T("",c)):a(f.filter)&&(T=f.filter,E=T);var O=[];if(typeof c!="object"||c===null)return"";var w=i[f.arrayFormat],b=w==="comma"&&f.commaRoundTrip;E||(E=Object.keys(c)),f.sort&&E.sort(f.sort);for(var A=t(),M=0;M<E.length;++M){var x=E[M],q=c[x];f.skipNulls&&q===null||v(O,p(q,x,w,b,f.allowEmptyArrays,f.strictNullHandling,f.skipNulls,f.encodeDotInKeys,f.encode?f.encoder:null,f.filter,f.sort,f.allowDots,f.serializeDate,f.format,f.formatter,f.encodeValuesOnly,f.charset,A))}var R=O.join(f.delimiter),V=f.addQueryPrefix===!0?"?":"";return f.charsetSentinel&&(f.charset==="iso-8859-1"?V+="utf8=%26%2310003%3B&":V+="utf8=%E2%9C%93&"),R.length>0?V+R:""},Yr}var Xr,Do;function $a(){if(Do)return Xr;Do=1;var t=Gi(),e=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:t.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(P){return P.replace(/&#(\d+);/g,function(p,y){return String.fromCharCode(parseInt(y,10))})},a=function(P,p,y){if(P&&typeof P=="string"&&p.comma&&P.indexOf(",")>-1)return P.split(",");if(p.throwOnLimitExceeded&&y>=p.arrayLimit)throw new RangeError("Array limit exceeded. Only "+p.arrayLimit+" element"+(p.arrayLimit===1?"":"s")+" allowed in an array.");return P},m="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",_=function(p,y){var S={__proto__:null},l=y.ignoreQueryPrefix?p.replace(/^\?/,""):p;l=l.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var c=y.parameterLimit===1/0?void 0:y.parameterLimit,f=l.split(y.delimiter,y.throwOnLimitExceeded?c+1:c);if(y.throwOnLimitExceeded&&f.length>c)throw new RangeError("Parameter limit exceeded. Only "+c+" parameter"+(c===1?"":"s")+" allowed.");var E=-1,T,O=y.charset;if(y.charsetSentinel)for(T=0;T<f.length;++T)f[T].indexOf("utf8=")===0&&(f[T]===v?O="utf-8":f[T]===m&&(O="iso-8859-1"),E=T,T=f.length);for(T=0;T<f.length;++T)if(T!==E){var w=f[T],b=w.indexOf("]="),A=b===-1?w.indexOf("="):b+1,M,x;A===-1?(M=y.decoder(w,n.decoder,O,"key"),x=y.strictNullHandling?null:""):(M=y.decoder(w.slice(0,A),n.decoder,O,"key"),x=t.maybeMap(a(w.slice(A+1),y,r(S[M])?S[M].length:0),function(R){return y.decoder(R,n.decoder,O,"value")})),x&&y.interpretNumericEntities&&O==="iso-8859-1"&&(x=i(String(x))),w.indexOf("[]=")>-1&&(x=r(x)?[x]:x);var q=e.call(S,M);q&&y.duplicates==="combine"?S[M]=t.combine(S[M],x):(!q||y.duplicates==="last")&&(S[M]=x)}return S},g=function(P,p,y,S){var l=0;if(P.length>0&&P[P.length-1]==="[]"){var c=P.slice(0,-1).join("");l=Array.isArray(p)&&p[c]?p[c].length:0}for(var f=S?p:a(p,y,l),E=P.length-1;E>=0;--E){var T,O=P[E];if(O==="[]"&&y.parseArrays)T=y.allowEmptyArrays&&(f===""||y.strictNullHandling&&f===null)?[]:t.combine([],f);else{T=y.plainObjects?{__proto__:null}:{};var w=O.charAt(0)==="["&&O.charAt(O.length-1)==="]"?O.slice(1,-1):O,b=y.decodeDotInKeys?w.replace(/%2E/g,"."):w,A=parseInt(b,10);!y.parseArrays&&b===""?T={0:f}:!isNaN(A)&&O!==b&&String(A)===b&&A>=0&&y.parseArrays&&A<=y.arrayLimit?(T=[],T[A]=f):b!=="__proto__"&&(T[b]=f)}f=T}return f},s=function(p,y,S,l){if(p){var c=S.allowDots?p.replace(/\.([^.[]+)/g,"[$1]"):p,f=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,T=S.depth>0&&f.exec(c),O=T?c.slice(0,T.index):c,w=[];if(O){if(!S.plainObjects&&e.call(Object.prototype,O)&&!S.allowPrototypes)return;w.push(O)}for(var b=0;S.depth>0&&(T=E.exec(c))!==null&&b<S.depth;){if(b+=1,!S.plainObjects&&e.call(Object.prototype,T[1].slice(1,-1))&&!S.allowPrototypes)return;w.push(T[1])}if(T){if(S.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+S.depth+" and strictDepth is true");w.push("["+c.slice(T.index)+"]")}return g(w,y,S,l)}},h=function(p){if(!p)return n;if(typeof p.allowEmptyArrays<"u"&&typeof p.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof p.decodeDotInKeys<"u"&&typeof p.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(p.decoder!==null&&typeof p.decoder<"u"&&typeof p.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof p.charset<"u"&&p.charset!=="utf-8"&&p.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof p.throwOnLimitExceeded<"u"&&typeof p.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var y=typeof p.charset>"u"?n.charset:p.charset,S=typeof p.duplicates>"u"?n.duplicates:p.duplicates;if(S!=="combine"&&S!=="first"&&S!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var l=typeof p.allowDots>"u"?p.decodeDotInKeys===!0?!0:n.allowDots:!!p.allowDots;return{allowDots:l,allowEmptyArrays:typeof p.allowEmptyArrays=="boolean"?!!p.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof p.allowPrototypes=="boolean"?p.allowPrototypes:n.allowPrototypes,allowSparse:typeof p.allowSparse=="boolean"?p.allowSparse:n.allowSparse,arrayLimit:typeof p.arrayLimit=="number"?p.arrayLimit:n.arrayLimit,charset:y,charsetSentinel:typeof p.charsetSentinel=="boolean"?p.charsetSentinel:n.charsetSentinel,comma:typeof p.comma=="boolean"?p.comma:n.comma,decodeDotInKeys:typeof p.decodeDotInKeys=="boolean"?p.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof p.decoder=="function"?p.decoder:n.decoder,delimiter:typeof p.delimiter=="string"||t.isRegExp(p.delimiter)?p.delimiter:n.delimiter,depth:typeof p.depth=="number"||p.depth===!1?+p.depth:n.depth,duplicates:S,ignoreQueryPrefix:p.ignoreQueryPrefix===!0,interpretNumericEntities:typeof p.interpretNumericEntities=="boolean"?p.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof p.parameterLimit=="number"?p.parameterLimit:n.parameterLimit,parseArrays:p.parseArrays!==!1,plainObjects:typeof p.plainObjects=="boolean"?p.plainObjects:n.plainObjects,strictDepth:typeof p.strictDepth=="boolean"?!!p.strictDepth:n.strictDepth,strictNullHandling:typeof p.strictNullHandling=="boolean"?p.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof p.throwOnLimitExceeded=="boolean"?p.throwOnLimitExceeded:!1}};return Xr=function(P,p){var y=h(p);if(P===""||P===null||typeof P>"u")return y.plainObjects?{__proto__:null}:{};for(var S=typeof P=="string"?_(P,y):P,l=y.plainObjects?{__proto__:null}:{},c=Object.keys(S),f=0;f<c.length;++f){var E=c[f],T=s(E,S[E],y,typeof P=="string");l=t.merge(l,T,y)}return y.allowSparse===!0?l:t.compact(l)},Xr}var Zr,No;function qa(){if(No)return Zr;No=1;var t=Ia(),e=$a(),r=bn();return Zr={formats:r,parse:e,stringify:t},Zr}var Da=qa();const wn=["apiKey","idempotencyKey","stripeAccount","apiVersion","maxNetworkRetries","timeout","host","authenticator","stripeContext","additionalHeaders","streaming"];function Ii(t){return t&&typeof t=="object"&&wn.some(e=>Object.prototype.hasOwnProperty.call(t,e))}function Xt(t,e){return Da.stringify(t,{serializeDate:r=>Math.floor(r.getTime()/1e3).toString(),arrayFormat:"indices"}).replace(/%5B/g,"[").replace(/%5D/g,"]")}const gn=(()=>{const t={"\n":"\\n",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029"};return e=>{const r=e.replace(/["\n\r\u2028\u2029]/g,n=>t[n]);return n=>r.replace(/\{([\s\S]+?)\}/g,(i,a)=>{const m=n[a];return Na(m)?encodeURIComponent(m):""})}})();function Na(t){return["number","string","boolean"].includes(typeof t)}function ka(t){const e=t.match(/\{\w+\}/g);return e?e.map(r=>r.replace(/[{}]/g,"")):[]}function xn(t){if(!Array.isArray(t)||!t[0]||typeof t[0]!="object")return{};if(!Ii(t[0]))return t.shift();const e=Object.keys(t[0]),r=e.filter(n=>wn.includes(n));return r.length>0&&r.length!==e.length&&Kt(`Options found in arguments (${r.join(", ")}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options.`),{}}function $i(t){const e={host:null,headers:{},settings:{},streaming:!1};if(t.length>0){const r=t[t.length-1];if(typeof r=="string")e.authenticator=Tn(t.pop());else if(Ii(r)){const n=Object.assign({},t.pop()),i=Object.keys(n).filter(a=>!wn.includes(a));if(i.length&&Kt(`Invalid options found (${i.join(", ")}); ignoring.`),n.apiKey&&(e.authenticator=Tn(n.apiKey)),n.idempotencyKey&&(e.headers["Idempotency-Key"]=n.idempotencyKey),n.stripeAccount&&(e.headers["Stripe-Account"]=n.stripeAccount),n.stripeContext){if(e.headers["Stripe-Account"])throw new Error("Can't specify both stripeAccount and stripeContext.");e.headers["Stripe-Context"]=n.stripeContext}if(n.apiVersion&&(e.headers["Stripe-Version"]=n.apiVersion),Number.isInteger(n.maxNetworkRetries)&&(e.settings.maxNetworkRetries=n.maxNetworkRetries),Number.isInteger(n.timeout)&&(e.settings.timeout=n.timeout),n.host&&(e.host=n.host),n.authenticator){if(n.apiKey)throw new Error("Can't specify both apiKey and authenticator.");if(typeof n.authenticator!="function")throw new Error("The authenticator must be a function receiving a request as the first parameter.");e.authenticator=n.authenticator}n.additionalHeaders&&(e.headers=n.additionalHeaders),n.streaming&&(e.streaming=!0)}}return e}function Fa(t){const e=this,r=Object.prototype.hasOwnProperty.call(t,"constructor")?t.constructor:function(...n){e.apply(this,n)};return Object.assign(r,e),r.prototype=Object.create(e.prototype),Object.assign(r.prototype,t),r}function en(t){if(typeof t!="object")throw new Error("Argument must be an object");return Object.keys(t).reduce((e,r)=>(t[r]!=null&&(e[r]=t[r]),e),{})}function La(t){return t&&typeof t=="object"?Object.keys(t).reduce((e,r)=>(e[Ua(r)]=t[r],e),{}):t}function Ua(t){return t.split("-").map(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()).join("-")}function An(t,e){return e?t.then(r=>{setTimeout(()=>{e(null,r)},0)},r=>{setTimeout(()=>{e(r,null)},0)}):t}function Ha(t){return t==="OAuth"?"oauth":t[0].toLowerCase()+t.substring(1)}function Kt(t){return typeof process.emitWarning!="function"?console.warn(`Stripe: ${t}`):process.emitWarning(t,"Stripe")}function Ba(t){const e=typeof t;return(e==="function"||e==="object")&&!!t}function ja(t){const e={},r=(n,i)=>{Object.entries(n).forEach(([a,m])=>{const v=i?`${i}[${a}]`:a;if(Ba(m)){if(!(m instanceof Uint8Array)&&!Object.prototype.hasOwnProperty.call(m,"data"))return r(m,v);e[v]=m}else e[v]=String(m)})};return r(t,null),e}function tn(t,e,r){if(!Number.isInteger(e)){if(r!==void 0)return r;throw new Error(`${t} must be an integer`)}return e}function za(){return typeof process>"u"?{}:{lang_version:process.version,platform:process.platform}}function Tn(t){const e=r=>(r.headers.Authorization="Bearer "+t,Promise.resolve());return e._apiKey=t,e}function Wa(t,e){return this[t]instanceof Date?Math.floor(this[t].getTime()/1e3).toString():e}function Va(t){return JSON.stringify(t,Wa)}function Rn(t){return t&&t.startsWith("/v2")?"v2":"v1"}function _n(t){return Array.isArray(t)?t.join(", "):String(t)}function Ka(t){const e=Array.isArray(t)?t[0]:t;return Number(e)}function Ja(t){return Object.entries(t).map(([e,r])=>[e,_n(r)])}class ae{getClientName(){throw new Error("getClientName not implemented.")}makeRequest(e,r,n,i,a,m,v,_){throw new Error("makeRequest not implemented.")}static makeTimeoutError(){const e=new TypeError(ae.TIMEOUT_ERROR_CODE);return e.code=ae.TIMEOUT_ERROR_CODE,e}}ae.CONNECTION_CLOSED_ERROR_CODES=["ECONNRESET","EPIPE"];ae.TIMEOUT_ERROR_CODE="ETIMEDOUT";class qi{constructor(e,r){this._statusCode=e,this._headers=r}getStatusCode(){return this._statusCode}getHeaders(){return this._headers}getRawResponse(){throw new Error("getRawResponse not implemented.")}toStream(e){throw new Error("toStream not implemented.")}toJSON(){throw new Error("toJSON not implemented.")}}class Jt extends ae{constructor(e){if(super(),!e){if(!globalThis.fetch)throw new Error("fetch() function not provided and is not defined in the global scope. You must provide a fetch implementation.");e=globalThis.fetch}globalThis.AbortController?this._fetchFn=Jt.makeFetchWithAbortTimeout(e):this._fetchFn=Jt.makeFetchWithRaceTimeout(e)}static makeFetchWithRaceTimeout(e){return(r,n,i)=>{let a;const m=new Promise((_,g)=>{a=setTimeout(()=>{a=null,g(ae.makeTimeoutError())},i)}),v=e(r,n);return Promise.race([v,m]).finally(()=>{a&&clearTimeout(a)})}}static makeFetchWithAbortTimeout(e){return async(r,n,i)=>{const a=new AbortController;let m=setTimeout(()=>{m=null,a.abort(ae.makeTimeoutError())},i);try{return await e(r,Object.assign(Object.assign({},n),{signal:a.signal}))}catch(v){throw v.name==="AbortError"?ae.makeTimeoutError():v}finally{m&&clearTimeout(m)}}}getClientName(){return"fetch"}async makeRequest(e,r,n,i,a,m,v,_){const g=v==="http",s=new URL(n,`${g?"http":"https"}://${e}`);s.port=r;const h=i=="POST"||i=="PUT"||i=="PATCH",P=m||(h?"":void 0),p=await this._fetchFn(s.toString(),{method:i,headers:Ja(a),body:P},_);return new Cn(p)}}class Cn extends qi{constructor(e){super(e.status,Cn._transformHeadersToObject(e.headers)),this._res=e}getRawResponse(){return this._res}toStream(e){return e(),this._res.body}toJSON(){return this._res.json()}static _transformHeadersToObject(e){const r={};for(const n of e){if(!Array.isArray(n)||n.length!=2)throw new Error("Response objects produced by the fetch function given to FetchHttpClient do not have an iterable headers map. Response#headers should be an iterable object.");r[n[0]]=n[1]}return r}}class Di{computeHMACSignature(e,r){throw new Error("computeHMACSignature not implemented.")}computeHMACSignatureAsync(e,r){throw new Error("computeHMACSignatureAsync not implemented.")}computeSHA256Async(e){throw new Error("computeSHA256 not implemented.")}}class Ni extends Error{}class Qa extends Di{constructor(e){super(),this.subtleCrypto=e||crypto.subtle}computeHMACSignature(e,r){throw new Ni("SubtleCryptoProvider cannot be used in a synchronous context.")}async computeHMACSignatureAsync(e,r){const n=new TextEncoder,i=await this.subtleCrypto.importKey("raw",n.encode(r),{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign"]),a=await this.subtleCrypto.sign("hmac",i,n.encode(e)),m=new Uint8Array(a),v=new Array(m.length);for(let _=0;_<m.length;_++)v[_]=En[m[_]];return v.join("")}async computeSHA256Async(e){return new Uint8Array(await this.subtleCrypto.digest("SHA-256",e))}}const En=new Array(256);for(let t=0;t<En.length;t++)En[t]=t.toString(16).padStart(2,"0");class Ya{constructor(){this._fetchFn=null,this._agent=null}getUname(){throw new Error("getUname not implemented.")}uuid4(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const r=Math.random()*16|0;return(e==="x"?r:r&3|8).toString(16)})}secureCompare(e,r){if(e.length!==r.length)return!1;const n=e.length;let i=0;for(let a=0;a<n;++a)i|=e.charCodeAt(a)^r.charCodeAt(a);return i===0}createEmitter(){throw new Error("createEmitter not implemented.")}tryBufferData(e){throw new Error("tryBufferData not implemented.")}createNodeHttpClient(e){throw new Error("createNodeHttpClient not implemented.")}createFetchHttpClient(e){return new Jt(e)}createDefaultHttpClient(){throw new Error("createDefaultHttpClient not implemented.")}createNodeCryptoProvider(){throw new Error("createNodeCryptoProvider not implemented.")}createSubtleCryptoProvider(e){return new Qa(e)}createDefaultCryptoProvider(){throw new Error("createDefaultCryptoProvider not implemented.")}}class Xa extends Event{constructor(e,r){super(e),this.data=r}}class Za{constructor(){this.eventTarget=new EventTarget,this.listenerMapping=new Map}on(e,r){const n=i=>{r(i.data)};return this.listenerMapping.set(r,n),this.eventTarget.addEventListener(e,n)}removeListener(e,r){const n=this.listenerMapping.get(r);return this.listenerMapping.delete(r),this.eventTarget.removeEventListener(e,n)}once(e,r){const n=i=>{r(i.data)};return this.listenerMapping.set(r,n),this.eventTarget.addEventListener(e,n,{once:!0})}emit(e,r){return this.eventTarget.dispatchEvent(new Xa(e,r))}}class es extends Ya{getUname(){return Promise.resolve(null)}createEmitter(){return new Za}tryBufferData(e){if(e.file.data instanceof ReadableStream)throw new Error("Uploading a file as a stream is not supported in non-Node environments. Please open or upvote an issue at github.com/stripe/stripe-node if you use this, detailing your use-case.");return Promise.resolve(e)}createNodeHttpClient(){throw new Error("Stripe: `createNodeHttpClient()` is not available in non-Node environments. Please use `createFetchHttpClient()` instead.")}createDefaultHttpClient(){return super.createFetchHttpClient()}createNodeCryptoProvider(){throw new Error("Stripe: `createNodeCryptoProvider()` is not available in non-Node environments. Please use `createSubtleCryptoProvider()` instead.")}createDefaultCryptoProvider(){return this.createSubtleCryptoProvider()}}const Zt=t=>{switch(t.type){case"card_error":return new Fi(t);case"invalid_request_error":return new Mn(t);case"api_error":return new Gn(t);case"authentication_error":return new In(t);case"rate_limit_error":return new $n(t);case"idempotency_error":return new Hi(t);case"invalid_grant":return new Bi(t);default:return new ji(t)}},ki=t=>{switch(t.type){case"temporary_session_expired":return new zi(t)}switch(t.code){case"invalid_fields":return new Mn(t)}return Zt(t)};class Q extends Error{constructor(e={},r=null){var n;super(e.message),this.type=r||this.constructor.name,this.raw=e,this.rawType=e.type,this.code=e.code,this.doc_url=e.doc_url,this.param=e.param,this.detail=e.detail,this.headers=e.headers,this.requestId=e.requestId,this.statusCode=e.statusCode,this.message=(n=e.message)!==null&&n!==void 0?n:"",this.userMessage=e.user_message,this.charge=e.charge,this.decline_code=e.decline_code,this.payment_intent=e.payment_intent,this.payment_method=e.payment_method,this.payment_method_type=e.payment_method_type,this.setup_intent=e.setup_intent,this.source=e.source}}Q.generate=Zt;class Fi extends Q{constructor(e={}){super(e,"StripeCardError")}}class Mn extends Q{constructor(e={}){super(e,"StripeInvalidRequestError")}}class Gn extends Q{constructor(e={}){super(e,"StripeAPIError")}}class In extends Q{constructor(e={}){super(e,"StripeAuthenticationError")}}class Li extends Q{constructor(e={}){super(e,"StripePermissionError")}}class $n extends Q{constructor(e={}){super(e,"StripeRateLimitError")}}class Ui extends Q{constructor(e={}){super(e,"StripeConnectionError")}}class Ae extends Q{constructor(e,r,n={}){super(n,"StripeSignatureVerificationError"),this.header=e,this.payload=r}}class Hi extends Q{constructor(e={}){super(e,"StripeIdempotencyError")}}class Bi extends Q{constructor(e={}){super(e,"StripeInvalidGrantError")}}class ji extends Q{constructor(e={}){super(e,"StripeUnknownError")}}class zi extends Q{constructor(e={}){super(e,"TemporarySessionExpiredError")}}const ko=Object.freeze(Object.defineProperty({__proto__:null,StripeAPIError:Gn,StripeAuthenticationError:In,StripeCardError:Fi,StripeConnectionError:Ui,StripeError:Q,StripeIdempotencyError:Hi,StripeInvalidGrantError:Bi,StripeInvalidRequestError:Mn,StripePermissionError:Li,StripeRateLimitError:$n,StripeSignatureVerificationError:Ae,StripeUnknownError:ji,TemporarySessionExpiredError:zi,generateV1Error:Zt,generateV2Error:ki},Symbol.toStringTag,{value:"Module"})),ts=60;class Tt{constructor(e,r){this._stripe=e,this._maxBufferedRequestMetric=r}_normalizeStripeContext(e,r){return e?e.toString()||null:r?.toString()||null}_addHeadersDirectlyToObject(e,r){e.requestId=r["request-id"],e.stripeAccount=e.stripeAccount||r["stripe-account"],e.apiVersion=e.apiVersion||r["stripe-version"],e.idempotencyKey=e.idempotencyKey||r["idempotency-key"]}_makeResponseEvent(e,r,n){const i=Date.now(),a=i-e.request_start_time;return en({api_version:n["stripe-version"],account:n["stripe-account"],idempotency_key:n["idempotency-key"],method:e.method,path:e.path,status:r,request_id:this._getRequestId(n),elapsed:a,request_start_time:e.request_start_time,request_end_time:i})}_getRequestId(e){return e["request-id"]}_streamingResponseHandler(e,r,n){return i=>{const a=i.getHeaders(),m=()=>{const _=this._makeResponseEvent(e,i.getStatusCode(),a);this._stripe._emitter.emit("response",_),this._recordRequestMetrics(this._getRequestId(a),_.elapsed,r)},v=i.toStream(m);return this._addHeadersDirectlyToObject(v,a),n(null,v)}}_jsonResponseHandler(e,r,n,i){return a=>{const m=a.getHeaders(),v=this._getRequestId(m),_=a.getStatusCode(),g=this._makeResponseEvent(e,_,m);this._stripe._emitter.emit("response",g),a.toJSON().then(s=>{if(s.error){let h;throw typeof s.error=="string"&&(s.error={type:s.error,message:s.error_description}),s.error.headers=m,s.error.statusCode=_,s.error.requestId=v,_===401?h=new In(s.error):_===403?h=new Li(s.error):_===429?h=new $n(s.error):r==="v2"?h=ki(s.error):h=Zt(s.error),h}return s},s=>{throw new Gn({message:"Invalid JSON received from the Stripe API",exception:s,requestId:m["request-id"]})}).then(s=>{this._recordRequestMetrics(v,g.elapsed,n);const h=a.getRawResponse();this._addHeadersDirectlyToObject(h,m),Object.defineProperty(s,"lastResponse",{enumerable:!1,writable:!1,value:h}),i(null,s)},s=>i(s,null))}}static _generateConnectionErrorMessage(e){return`An error occurred with our connection to Stripe.${e>0?` Request was retried ${e} times.`:""}`}static _shouldRetry(e,r,n,i){return i&&r===0&&ae.CONNECTION_CLOSED_ERROR_CODES.includes(i.code)?!0:r>=n?!1:e?e.getHeaders()["stripe-should-retry"]==="false"?!1:e.getHeaders()["stripe-should-retry"]==="true"||e.getStatusCode()===409||e.getStatusCode()>=500:!0}_getSleepTimeInMS(e,r=null){const n=this._stripe.getInitialNetworkRetryDelay(),i=this._stripe.getMaxNetworkRetryDelay();let a=Math.min(n*Math.pow(2,e-1),i);return a*=.5*(1+Math.random()),a=Math.max(n,a),Number.isInteger(r)&&r<=ts&&(a=Math.max(a,r)),a*1e3}_getMaxNetworkRetries(e={}){return e.maxNetworkRetries!==void 0&&Number.isInteger(e.maxNetworkRetries)?e.maxNetworkRetries:this._stripe.getMaxNetworkRetries()}_defaultIdempotencyKey(e,r,n){const i=this._getMaxNetworkRetries(r),a=()=>`stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`;if(n==="v2"){if(e==="POST"||e==="DELETE")return a()}else if(n==="v1"&&e==="POST"&&i>0)return a();return null}_makeHeaders({contentType:e,contentLength:r,apiVersion:n,clientUserAgent:i,method:a,userSuppliedHeaders:m,userSuppliedSettings:v,stripeAccount:_,stripeContext:g,apiMode:s}){const h={Accept:"application/json","Content-Type":e,"User-Agent":this._getUserAgentString(s),"X-Stripe-Client-User-Agent":i,"X-Stripe-Client-Telemetry":this._getTelemetryHeader(),"Stripe-Version":n,"Stripe-Account":_,"Stripe-Context":g,"Idempotency-Key":this._defaultIdempotencyKey(a,v,s)},P=a=="POST"||a=="PUT"||a=="PATCH";return(P||r)&&(P||Kt(`${a} method had non-zero contentLength but no payload is expected for this verb`),h["Content-Length"]=r),Object.assign(en(h),La(m))}_getUserAgentString(e){const r=this._stripe.getConstant("PACKAGE_VERSION"),n=this._stripe._appInfo?this._stripe.getAppInfoAsString():"";return`Stripe/${e} NodeBindings/${r} ${n}`.trim()}_getTelemetryHeader(){if(this._stripe.getTelemetryEnabled()&&this._stripe._prevRequestMetrics.length>0){const e=this._stripe._prevRequestMetrics.shift();return JSON.stringify({last_request_metrics:e})}}_recordRequestMetrics(e,r,n){if(this._stripe.getTelemetryEnabled()&&e)if(this._stripe._prevRequestMetrics.length>this._maxBufferedRequestMetric)Kt("Request metrics buffer is full, dropping telemetry message.");else{const i={request_id:e,request_duration_ms:r};n&&n.length>0&&(i.usage=n),this._stripe._prevRequestMetrics.push(i)}}_rawRequest(e,r,n,i,a){return new Promise((v,_)=>{let g;try{const y=e.toUpperCase();if(y!=="POST"&&n&&Object.keys(n).length!==0)throw new Error("rawRequest only supports params on POST requests. Please pass null and add your parameters to path.");const S=[].slice.call([n,i]),l=xn(S),c=y==="POST"?Object.assign({},l):null,f=$i(S),E=f.headers,T=f.authenticator;g={requestMethod:y,requestPath:r,bodyData:c,queryData:{},authenticator:T,headers:E,host:f.host,streaming:!!f.streaming,settings:{},usage:a||["raw_request"]}}catch(y){_(y);return}function s(y,S){y?_(y):v(S)}const{headers:h,settings:P}=g,p=g.authenticator;this._request(g.requestMethod,g.host,r,g.bodyData,p,{headers:h,settings:P,streaming:g.streaming},g.usage,s)})}_request(e,r,n,i,a,m,v=[],_,g=null){var s;let h;a=(s=a??this._stripe._authenticator)!==null&&s!==void 0?s:null;const P=Rn(n),p=(l,c,f,E,T)=>setTimeout(l,this._getSleepTimeInMS(E,T),c,f,E+1),y=(l,c,f)=>{const E=m.settings&&m.settings.timeout&&Number.isInteger(m.settings.timeout)&&m.settings.timeout>=0?m.settings.timeout:this._stripe.getApiField("timeout"),T={host:r||this._stripe.getApiField("host"),port:this._stripe.getApiField("port"),path:n,method:e,headers:Object.assign({},c),body:h,protocol:this._stripe.getApiField("protocol")};a(T).then(()=>{const O=this._stripe.getApiField("httpClient").makeRequest(T.host,T.port,T.path,T.method,T.headers,T.body,T.protocol,E),w=Date.now(),b=en({api_version:l,account:_n(c["Stripe-Account"]),idempotency_key:_n(c["Idempotency-Key"]),method:e,path:n,request_start_time:w}),A=f||0,M=this._getMaxNetworkRetries(m.settings||{});this._stripe._emitter.emit("request",b),O.then(x=>Tt._shouldRetry(x,A,M)?p(y,l,c,A,Ka(x.getHeaders()["retry-after"])):m.streaming&&x.getStatusCode()<400?this._streamingResponseHandler(b,v,_)(x):this._jsonResponseHandler(b,P,v,_)(x)).catch(x=>{if(Tt._shouldRetry(null,A,M,x))return p(y,l,c,A,null);{const q=x.code&&x.code===ae.TIMEOUT_ERROR_CODE;return _(new Ui({message:q?`Request aborted due to timeout being reached (${E}ms)`:Tt._generateConnectionErrorMessage(A),detail:x}))}})}).catch(O=>{throw new Q({message:"Unable to authenticate the request",exception:O})})},S=(l,c)=>{if(l)return _(l);h=c,this._stripe.getClientUserAgent(f=>{var E,T,O;const w=this._stripe.getApiField("version"),b=this._makeHeaders({contentType:P=="v2"?"application/json":"application/x-www-form-urlencoded",contentLength:new TextEncoder().encode(h).length,apiVersion:w,clientUserAgent:f,method:e,userSuppliedHeaders:(E=m.headers)!==null&&E!==void 0?E:null,userSuppliedSettings:(T=m.settings)!==null&&T!==void 0?T:{},stripeAccount:(O=m.stripeAccount)!==null&&O!==void 0?O:this._stripe.getApiField("stripeAccount"),stripeContext:this._normalizeStripeContext(m.stripeContext,this._stripe.getApiField("stripeContext")),apiMode:P});y(w,b,0)})};if(g)g(e,i,m.headers,S);else{let l;P=="v2"?l=i?Va(i):"":l=Xt(i||{}),S(null,l)}}}class Wi{constructor(e,r,n,i){this.index=0,this.pagePromise=e,this.promiseCache={currentPromise:null},this.requestArgs=r,this.spec=n,this.stripeResource=i}async iterate(e){if(!(e&&e.data&&typeof e.data.length=="number"))throw Error("Unexpected: Stripe API response does not have a well-formed `data` array.");const r=Vi(this.requestArgs);if(this.index<e.data.length){const n=r?e.data.length-1-this.index:this.index,i=e.data[n];return this.index+=1,{value:i,done:!1}}else if(e.has_more){this.index=0,this.pagePromise=this.getNextPage(e);const n=await this.pagePromise;return this.iterate(n)}return{done:!0,value:void 0}}getNextPage(e){throw new Error("Unimplemented")}async _next(){return this.iterate(await this.pagePromise)}next(){if(this.promiseCache.currentPromise)return this.promiseCache.currentPromise;const e=(async()=>{const r=await this._next();return this.promiseCache.currentPromise=null,r})();return this.promiseCache.currentPromise=e,e}}class rs extends Wi{getNextPage(e){const r=Vi(this.requestArgs),n=us(e,r);return this.stripeResource._makeRequest(this.requestArgs,this.spec,{[r?"ending_before":"starting_after"]:n})}}class ns extends Wi{getNextPage(e){if(!e.next_page)throw Error("Unexpected: Stripe API response does not have a well-formed `next_page` field, but `has_more` was true.");return this.stripeResource._makeRequest(this.requestArgs,this.spec,{page:e.next_page})}}class os{constructor(e,r,n,i){this.currentPageIterator=(async()=>(await e).data[Symbol.iterator]())(),this.nextPageUrl=(async()=>(await e).next_page_url||null)(),this.requestArgs=r,this.spec=n,this.stripeResource=i}async turnPage(){const e=await this.nextPageUrl;if(!e)return null;this.spec.fullPath=e;const r=await this.stripeResource._makeRequest([],this.spec,{});return this.nextPageUrl=Promise.resolve(r.next_page_url),this.currentPageIterator=Promise.resolve(r.data[Symbol.iterator]()),this.currentPageIterator}async next(){{const n=(await this.currentPageIterator).next();if(!n.done)return{done:!1,value:n.value}}const e=await this.turnPage();if(!e)return{done:!0,value:void 0};const r=e.next();return r.done?{done:!0,value:void 0}:{done:!1,value:r.value}}}const is=(t,e,r,n)=>{const i=Rn(r.fullPath||r.path);return i!=="v2"&&r.methodType==="search"?rn(new ns(n,e,r,t)):i!=="v2"&&r.methodType==="list"?rn(new rs(n,e,r,t)):i==="v2"&&r.methodType==="list"?rn(new os(n,e,r,t)):null},rn=t=>{const e=cs((...i)=>t.next(...i)),r=ds(e),n={autoPagingEach:e,autoPagingToArray:r,next:()=>t.next(),return:()=>({}),[as()]:()=>n};return n};function as(){return typeof Symbol<"u"&&Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator"}function ss(t){if(t.length<2)return null;const e=t[1];if(typeof e!="function")throw Error(`The second argument to autoPagingEach, if present, must be a callback function; received ${typeof e}`);return e}function ls(t){if(t.length===0)return;const e=t[0];if(typeof e!="function")throw Error(`The first argument to autoPagingEach, if present, must be a callback function; received ${typeof e}`);if(e.length===2)return e;if(e.length>2)throw Error(`The \`onItem\` callback function passed to autoPagingEach must accept at most two arguments; got ${e}`);return function(n,i){const a=e(n);i(a)}}function us(t,e){const r=e?0:t.data.length-1,n=t.data[r],i=n&&n.id;if(!i)throw Error("Unexpected: No `id` found on the last item while auto-paging a list.");return i}function cs(t){return function(){const r=[].slice.call(arguments),n=ls(r),i=ss(r);if(r.length>2)throw Error(`autoPagingEach takes up to two arguments; received ${r}`);const a=hs(t,n);return An(a,i)}}function ds(t){return function(r,n){const i=r&&r.limit;if(!i)throw Error("You must pass a `limit` option to autoPagingToArray, e.g., `autoPagingToArray({limit: 1000});`.");if(i>1e4)throw Error("You cannot specify a limit of more than 10,000 items to fetch in `autoPagingToArray`; use `autoPagingEach` to iterate through longer lists.");const a=new Promise((m,v)=>{const _=[];t(g=>{if(_.push(g),_.length>=i)return!1}).then(()=>{m(_)}).catch(v)});return An(a,n)}}function hs(t,e){return new Promise((r,n)=>{function i(a){if(a.done){r();return}const m=a.value;return new Promise(v=>{e(m,v)}).then(v=>v===!1?i({done:!0,value:void 0}):t().then(i))}t().then(i).catch(n)})}function Vi(t){const e=[].slice.call(t);return!!xn(e).ending_before}function ps(t){if(t.path!==void 0&&t.fullPath!==void 0)throw new Error(`Method spec specified both a 'path' (${t.path}) and a 'fullPath' (${t.fullPath}).`);return function(...e){const r=typeof e[e.length-1]=="function"&&e.pop();t.urlParams=ka(t.fullPath||this.createResourcePathWithSymbols(t.path||""));const n=An(this._makeRequest(e,t,{}),r);return Object.assign(n,is(this,e,t,n)),n}}o.extend=Fa;o.method=ps;o.MAX_BUFFERED_REQUEST_METRICS=100;function o(t,e){if(this._stripe=t,e)throw new Error("Support for curried url params was dropped in stripe-node v7.0.0. Instead, pass two ids.");this.basePath=gn(this.basePath||t.getApiField("basePath")),this.resourcePath=this.path,this.path=gn(this.path),this.initialize(...arguments)}o.prototype={_stripe:null,path:"",resourcePath:"",basePath:null,initialize(){},requestDataProcessor:null,validateRequest:null,createFullPath(t,e){const r=[this.basePath(e),this.path(e)];if(typeof t=="function"){const n=t(e);n&&r.push(n)}else r.push(t);return this._joinUrlParts(r)},createResourcePathWithSymbols(t){return t?`/${this._joinUrlParts([this.resourcePath,t])}`:`/${this.resourcePath}`},_joinUrlParts(t){return t.join("/").replace(/\/{2,}/g,"/")},_getRequestOpts(t,e,r){var n;const i=(e.method||"GET").toUpperCase(),a=e.usage||[],m=e.urlParams||[],v=e.encode||(b=>b),_=!!e.fullPath,g=gn(_?e.fullPath:e.path||""),s=_?e.fullPath:this.createResourcePathWithSymbols(e.path),h=[].slice.call(t),P=m.reduce((b,A)=>{const M=h.shift();if(typeof M!="string")throw new Error(`Stripe: Argument "${A}" must be a string, but got: ${M} (on API request to \`${i} ${s}\`)`);return b[A]=M,b},{}),p=xn(h),y=v(Object.assign({},p,r)),S=$i(h),l=S.host||e.host,c=!!e.streaming||!!S.streaming;if(h.filter(b=>b!=null).length)throw new Error(`Stripe: Unknown arguments (${h}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to ${i} \`${s}\`)`);const f=_?g(P):this.createFullPath(g,P),E=Object.assign(S.headers,e.headers);e.validator&&e.validator(y,{headers:E});const T=e.method==="GET"||e.method==="DELETE";return{requestMethod:i,requestPath:f,bodyData:T?null:y,queryData:T?y:{},authenticator:(n=S.authenticator)!==null&&n!==void 0?n:null,headers:E,host:l??null,streaming:c,settings:S.settings,usage:a}},_makeRequest(t,e,r){return new Promise((n,i)=>{var a;let m;try{m=this._getRequestOpts(t,e,r)}catch(P){i(P);return}function v(P,p){P?i(P):n(e.transformResponseData?e.transformResponseData(p):p)}const _=Object.keys(m.queryData).length===0,g=[m.requestPath,_?"":"?",Xt(m.queryData,Rn(m.requestPath))].join(""),{headers:s,settings:h}=m;this._stripe._requestSender._request(m.requestMethod,m.host,g,m.bodyData,m.authenticator,{headers:s,settings:h,streaming:m.streaming},m.usage,v,(a=this.requestDataProcessor)===null||a===void 0?void 0:a.bind(this))})}};class De{constructor(e=[]){this._segments=[...e]}get segments(){return[...this._segments]}push(e){if(!e)throw new Error("Segment cannot be null or undefined");return new De([...this._segments,e])}pop(){if(this._segments.length===0)throw new Error("Cannot pop from an empty context");return new De(this._segments.slice(0,-1))}toString(){return this._segments.join("/")}static parse(e){return e?new De(e.split("/")):new De([])}}function fs(t){const e={DEFAULT_TOLERANCE:300,signature:null,constructEvent(s,h,P,p,y,S){try{if(!this.signature)throw new Error("ERR: missing signature helper, unable to verify");this.signature.verifyHeader(s,h,P,p||e.DEFAULT_TOLERANCE,y,S)}catch(c){throw c instanceof Ni&&(c.message+="\nUse `await constructEventAsync(...)` instead of `constructEvent(...)`"),c}return s instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(s)):JSON.parse(s)},async constructEventAsync(s,h,P,p,y,S){if(!this.signature)throw new Error("ERR: missing signature helper, unable to verify");return await this.signature.verifyHeaderAsync(s,h,P,p||e.DEFAULT_TOLERANCE,y,S),s instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(s)):JSON.parse(s)},generateTestHeaderString:function(s){const h=g(s),P=h.signature||h.cryptoProvider.computeHMACSignature(h.payloadString,h.secret);return h.generateHeaderString(P)},generateTestHeaderStringAsync:async function(s){const h=g(s),P=h.signature||await h.cryptoProvider.computeHMACSignatureAsync(h.payloadString,h.secret);return h.generateHeaderString(P)}},r={EXPECTED_SCHEME:"v1",verifyHeader(s,h,P,p,y,S){const{decodedHeader:l,decodedPayload:c,details:f,suspectPayloadType:E}=i(s,h,this.EXPECTED_SCHEME),T=/\s/.test(P);y=y||_();const O=y.computeHMACSignature(n(c,f),P);return a(c,l,f,O,p,E,T,S),!0},async verifyHeaderAsync(s,h,P,p,y,S){const{decodedHeader:l,decodedPayload:c,details:f,suspectPayloadType:E}=i(s,h,this.EXPECTED_SCHEME),T=/\s/.test(P);y=y||_();const O=await y.computeHMACSignatureAsync(n(c,f),P);return a(c,l,f,O,p,E,T,S)}};function n(s,h){return`${h.timestamp}.${s}`}function i(s,h,P){if(!s)throw new Ae(h,s,{message:"No webhook payload was provided."});const p=typeof s!="string"&&!(s instanceof Uint8Array),y=new TextDecoder("utf8"),S=s instanceof Uint8Array?y.decode(s):s;if(Array.isArray(h))throw new Error("Unexpected: An array was passed as a header, which should not be possible for the stripe-signature header.");if(h==null||h=="")throw new Ae(h,s,{message:"No stripe-signature header value was provided."});const l=h instanceof Uint8Array?y.decode(h):h,c=m(l,P);if(!c||c.timestamp===-1)throw new Ae(l,S,{message:"Unable to extract timestamp and signatures from header"});if(!c.signatures.length)throw new Ae(l,S,{message:"No signatures found with expected scheme"});return{decodedPayload:S,decodedHeader:l,details:c,suspectPayloadType:p}}function a(s,h,P,p,y,S,l,c){const f=!!P.signatures.filter(t.secureCompare.bind(t,p)).length,E=`
|
|
5
|
-
Learn more about webhook signing and explore webhook integration examples for various frameworks at https://docs.stripe.com/webhooks/signature`,T=l?`
|
|
6
|
-
|
|
7
|
-
Note: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value`:"";if(!f)throw S?new Ae(h,s,{message:`Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the _raw_ request body.Payload was provided as a parsed JavaScript object instead.
|
|
8
|
-
Signature verification is impossible without access to the original signed material.
|
|
9
|
-
`+E+`
|
|
10
|
-
`+T}):new Ae(h,s,{message:`No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe?
|
|
11
|
-
If a webhook request is being forwarded by a third-party tool, ensure that the exact request body, including JSON formatting and new line style, is preserved.
|
|
12
|
-
`+E+`
|
|
13
|
-
`+T});const O=Math.floor((typeof c=="number"?c:Date.now())/1e3)-P.timestamp;if(y>0&&O>y)throw new Ae(h,s,{message:"Timestamp outside the tolerance zone"});return!0}function m(s,h){return typeof s!="string"?null:s.split(",").reduce((P,p)=>{const y=p.split("=");return y[0]==="t"&&(P.timestamp=parseInt(y[1],10)),y[0]===h&&P.signatures.push(y[1]),P},{timestamp:-1,signatures:[]})}let v=null;function _(){return v||(v=t.createDefaultCryptoProvider()),v}function g(s){if(!s)throw new Q({message:"Options are required"});const h=Math.floor(s.timestamp)||Math.floor(Date.now()/1e3),P=s.scheme||r.EXPECTED_SCHEME,p=s.cryptoProvider||_(),y=`${h}.${s.payload}`,S=l=>`t=${h},${P}=${l}`;return Object.assign(Object.assign({},s),{timestamp:h,scheme:P,cryptoProvider:p,payloadString:y,generateHeaderString:S})}return e.signature=r,e}const Ki="2025-11-17.clover";function ms(t,e){for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const n=r[0].toLowerCase()+r.substring(1),i=new e[r](t);this[n]=i}}function L(t,e){return function(r){return new ms(r,e)}}const Me=o.method,vs=o.extend({retrieve:Me({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}"}),list:Me({method:"GET",fullPath:"/v1/financial_connections/accounts",methodType:"list"}),disconnect:Me({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/disconnect"}),listOwners:Me({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}/owners",methodType:"list"}),refresh:Me({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/refresh"}),subscribe:Me({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/subscribe"}),unsubscribe:Me({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/unsubscribe"})}),Fo=o.method,ys=o.extend({retrieve:Fo({method:"GET",fullPath:"/v1/entitlements/active_entitlements/{id}"}),list:Fo({method:"GET",fullPath:"/v1/entitlements/active_entitlements",methodType:"list"})}),Be=o.method,Ps=o.extend({create:Be({method:"POST",fullPath:"/v1/billing/alerts"}),retrieve:Be({method:"GET",fullPath:"/v1/billing/alerts/{id}"}),list:Be({method:"GET",fullPath:"/v1/billing/alerts",methodType:"list"}),activate:Be({method:"POST",fullPath:"/v1/billing/alerts/{id}/activate"}),archive:Be({method:"POST",fullPath:"/v1/billing/alerts/{id}/archive"}),deactivate:Be({method:"POST",fullPath:"/v1/billing/alerts/{id}/deactivate"})}),gs=o.method,Ts=o.extend({find:gs({method:"GET",fullPath:"/v1/tax/associations/find"})}),tt=o.method,_s=o.extend({retrieve:tt({method:"GET",fullPath:"/v1/issuing/authorizations/{authorization}"}),update:tt({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}"}),list:tt({method:"GET",fullPath:"/v1/issuing/authorizations",methodType:"list"}),approve:tt({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/approve"}),decline:tt({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/decline"})}),Ge=o.method,Es=o.extend({create:Ge({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations"}),capture:Ge({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/capture"}),expire:Ge({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/expire"}),finalizeAmount:Ge({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount"}),increment:Ge({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/increment"}),respond:Ge({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond"}),reverse:Ge({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/reverse"})}),nn=o.method,Ss=o.extend({create:nn({method:"POST",fullPath:"/v1/tax/calculations"}),retrieve:nn({method:"GET",fullPath:"/v1/tax/calculations/{calculation}"}),listLineItems:nn({method:"GET",fullPath:"/v1/tax/calculations/{calculation}/line_items",methodType:"list"})}),Ot=o.method,Os=o.extend({create:Ot({method:"POST",fullPath:"/v1/issuing/cardholders"}),retrieve:Ot({method:"GET",fullPath:"/v1/issuing/cardholders/{cardholder}"}),update:Ot({method:"POST",fullPath:"/v1/issuing/cardholders/{cardholder}"}),list:Ot({method:"GET",fullPath:"/v1/issuing/cardholders",methodType:"list"})}),bt=o.method,bs=o.extend({create:bt({method:"POST",fullPath:"/v1/issuing/cards"}),retrieve:bt({method:"GET",fullPath:"/v1/issuing/cards/{card}"}),update:bt({method:"POST",fullPath:"/v1/issuing/cards/{card}"}),list:bt({method:"GET",fullPath:"/v1/issuing/cards",methodType:"list"})}),rt=o.method,ws=o.extend({deliverCard:rt({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/deliver"}),failCard:rt({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/fail"}),returnCard:rt({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/return"}),shipCard:rt({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/ship"}),submitCard:rt({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/submit"})}),wt=o.method,xs=o.extend({create:wt({method:"POST",fullPath:"/v1/billing_portal/configurations"}),retrieve:wt({method:"GET",fullPath:"/v1/billing_portal/configurations/{configuration}"}),update:wt({method:"POST",fullPath:"/v1/billing_portal/configurations/{configuration}"}),list:wt({method:"GET",fullPath:"/v1/billing_portal/configurations",methodType:"list"})}),nt=o.method,As=o.extend({create:nt({method:"POST",fullPath:"/v1/terminal/configurations"}),retrieve:nt({method:"GET",fullPath:"/v1/terminal/configurations/{configuration}"}),update:nt({method:"POST",fullPath:"/v1/terminal/configurations/{configuration}"}),list:nt({method:"GET",fullPath:"/v1/terminal/configurations",methodType:"list"}),del:nt({method:"DELETE",fullPath:"/v1/terminal/configurations/{configuration}"})}),Rs=o.method,Cs=o.extend({create:Rs({method:"POST",fullPath:"/v1/test_helpers/confirmation_tokens"})}),Ms=o.method,Gs=o.extend({create:Ms({method:"POST",fullPath:"/v1/terminal/connection_tokens"})}),Is=o.method,$s=o.extend({retrieve:Is({method:"GET",fullPath:"/v1/billing/credit_balance_summary"})}),Lo=o.method,qs=o.extend({retrieve:Lo({method:"GET",fullPath:"/v1/billing/credit_balance_transactions/{id}"}),list:Lo({method:"GET",fullPath:"/v1/billing/credit_balance_transactions",methodType:"list"})}),je=o.method,Ds=o.extend({create:je({method:"POST",fullPath:"/v1/billing/credit_grants"}),retrieve:je({method:"GET",fullPath:"/v1/billing/credit_grants/{id}"}),update:je({method:"POST",fullPath:"/v1/billing/credit_grants/{id}"}),list:je({method:"GET",fullPath:"/v1/billing/credit_grants",methodType:"list"}),expire:je({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/expire"}),voidGrant:je({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/void"})}),on=o.method,Ns=o.extend({create:on({method:"POST",fullPath:"/v1/treasury/credit_reversals"}),retrieve:on({method:"GET",fullPath:"/v1/treasury/credit_reversals/{credit_reversal}"}),list:on({method:"GET",fullPath:"/v1/treasury/credit_reversals",methodType:"list"})}),ks=o.method,Fs=o.extend({fundCashBalance:ks({method:"POST",fullPath:"/v1/test_helpers/customers/{customer}/fund_cash_balance"})}),an=o.method,Ls=o.extend({create:an({method:"POST",fullPath:"/v1/treasury/debit_reversals"}),retrieve:an({method:"GET",fullPath:"/v1/treasury/debit_reversals/{debit_reversal}"}),list:an({method:"GET",fullPath:"/v1/treasury/debit_reversals",methodType:"list"})}),ot=o.method,Us=o.extend({create:ot({method:"POST",fullPath:"/v1/issuing/disputes"}),retrieve:ot({method:"GET",fullPath:"/v1/issuing/disputes/{dispute}"}),update:ot({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}"}),list:ot({method:"GET",fullPath:"/v1/issuing/disputes",methodType:"list"}),submit:ot({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}/submit"})}),Uo=o.method,Hs=o.extend({retrieve:Uo({method:"GET",fullPath:"/v1/radar/early_fraud_warnings/{early_fraud_warning}"}),list:Uo({method:"GET",fullPath:"/v1/radar/early_fraud_warnings",methodType:"list"})}),Oe=o.method,Bs=o.extend({create:Oe({method:"POST",fullPath:"/v2/core/event_destinations"}),retrieve:Oe({method:"GET",fullPath:"/v2/core/event_destinations/{id}"}),update:Oe({method:"POST",fullPath:"/v2/core/event_destinations/{id}"}),list:Oe({method:"GET",fullPath:"/v2/core/event_destinations",methodType:"list"}),del:Oe({method:"DELETE",fullPath:"/v2/core/event_destinations/{id}"}),disable:Oe({method:"POST",fullPath:"/v2/core/event_destinations/{id}/disable"}),enable:Oe({method:"POST",fullPath:"/v2/core/event_destinations/{id}/enable"}),ping:Oe({method:"POST",fullPath:"/v2/core/event_destinations/{id}/ping"})}),sn=o.method,js=o.extend({retrieve(...t){return sn({method:"GET",fullPath:"/v2/core/events/{id}",transformResponseData:r=>this.addFetchRelatedObjectIfNeeded(r)}).apply(this,t)},list(...t){return sn({method:"GET",fullPath:"/v2/core/events",methodType:"list",transformResponseData:r=>Object.assign(Object.assign({},r),{data:r.data.map(this.addFetchRelatedObjectIfNeeded.bind(this))})}).apply(this,t)},addFetchRelatedObjectIfNeeded(t){return!t.related_object||!t.related_object.url?t:Object.assign(Object.assign({},t),{fetchRelatedObject:()=>sn({method:"GET",fullPath:t.related_object.url}).apply(this,[{stripeContext:t.context}])})}}),xt=o.method,zs=o.extend({create:xt({method:"POST",fullPath:"/v1/entitlements/features"}),retrieve:xt({method:"GET",fullPath:"/v1/entitlements/features/{id}"}),update:xt({method:"POST",fullPath:"/v1/entitlements/features/{id}"}),list:xt({method:"GET",fullPath:"/v1/entitlements/features",methodType:"list"})}),Ie=o.method,Ws=o.extend({create:Ie({method:"POST",fullPath:"/v1/treasury/financial_accounts"}),retrieve:Ie({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),update:Ie({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),list:Ie({method:"GET",fullPath:"/v1/treasury/financial_accounts",methodType:"list"}),close:Ie({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/close"}),retrieveFeatures:Ie({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"}),updateFeatures:Ie({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"})}),ln=o.method,Vs=o.extend({fail:ln({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/fail"}),returnInboundTransfer:ln({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/return"}),succeed:ln({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed"})}),At=o.method,Ks=o.extend({create:At({method:"POST",fullPath:"/v1/treasury/inbound_transfers"}),retrieve:At({method:"GET",fullPath:"/v1/treasury/inbound_transfers/{id}"}),list:At({method:"GET",fullPath:"/v1/treasury/inbound_transfers",methodType:"list"}),cancel:At({method:"POST",fullPath:"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel"})}),it=o.method,Js=o.extend({create:it({method:"POST",fullPath:"/v1/terminal/locations"}),retrieve:it({method:"GET",fullPath:"/v1/terminal/locations/{location}"}),update:it({method:"POST",fullPath:"/v1/terminal/locations/{location}"}),list:it({method:"GET",fullPath:"/v1/terminal/locations",methodType:"list"}),del:it({method:"DELETE",fullPath:"/v1/terminal/locations/{location}"})}),Qs=o.method,Ys=o.extend({create:Qs({method:"POST",fullPath:"/v1/billing/meter_event_adjustments"})}),Xs=o.method,Zs=o.extend({create:Xs({method:"POST",fullPath:"/v2/billing/meter_event_adjustments"})}),el=o.method,tl=o.extend({create:el({method:"POST",fullPath:"/v2/billing/meter_event_session"})}),rl=o.method,nl=o.extend({create:rl({method:"POST",fullPath:"/v2/billing/meter_event_stream",host:"meter-events.stripe.com"})}),ol=o.method,il=o.extend({create:ol({method:"POST",fullPath:"/v1/billing/meter_events"})}),al=o.method,sl=o.extend({create:al({method:"POST",fullPath:"/v2/billing/meter_events"})}),$e=o.method,ll=o.extend({create:$e({method:"POST",fullPath:"/v1/billing/meters"}),retrieve:$e({method:"GET",fullPath:"/v1/billing/meters/{id}"}),update:$e({method:"POST",fullPath:"/v1/billing/meters/{id}"}),list:$e({method:"GET",fullPath:"/v1/billing/meters",methodType:"list"}),deactivate:$e({method:"POST",fullPath:"/v1/billing/meters/{id}/deactivate"}),listEventSummaries:$e({method:"GET",fullPath:"/v1/billing/meters/{id}/event_summaries",methodType:"list"}),reactivate:$e({method:"POST",fullPath:"/v1/billing/meters/{id}/reactivate"})}),ul=o.method,cl=o.extend({create:ul({method:"POST",fullPath:"/v1/terminal/onboarding_links"})}),at=o.method,dl=o.extend({create:at({method:"POST",fullPath:"/v1/climate/orders"}),retrieve:at({method:"GET",fullPath:"/v1/climate/orders/{order}"}),update:at({method:"POST",fullPath:"/v1/climate/orders/{order}"}),list:at({method:"GET",fullPath:"/v1/climate/orders",methodType:"list"}),cancel:at({method:"POST",fullPath:"/v1/climate/orders/{order}/cancel"})}),Rt=o.method,hl=o.extend({update:Rt({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}"}),fail:Rt({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/fail"}),post:Rt({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/post"}),returnOutboundPayment:Rt({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/return"})}),Ct=o.method,pl=o.extend({create:Ct({method:"POST",fullPath:"/v1/treasury/outbound_payments"}),retrieve:Ct({method:"GET",fullPath:"/v1/treasury/outbound_payments/{id}"}),list:Ct({method:"GET",fullPath:"/v1/treasury/outbound_payments",methodType:"list"}),cancel:Ct({method:"POST",fullPath:"/v1/treasury/outbound_payments/{id}/cancel"})}),Mt=o.method,fl=o.extend({update:Mt({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}"}),fail:Mt({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail"}),post:Mt({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post"}),returnOutboundTransfer:Mt({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return"})}),Gt=o.method,ml=o.extend({create:Gt({method:"POST",fullPath:"/v1/treasury/outbound_transfers"}),retrieve:Gt({method:"GET",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}"}),list:Gt({method:"GET",fullPath:"/v1/treasury/outbound_transfers",methodType:"list"}),cancel:Gt({method:"POST",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel"})}),It=o.method,vl=o.extend({create:It({method:"POST",fullPath:"/v1/issuing/personalization_designs"}),retrieve:It({method:"GET",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),update:It({method:"POST",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),list:It({method:"GET",fullPath:"/v1/issuing/personalization_designs",methodType:"list"})}),un=o.method,yl=o.extend({activate:un({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate"}),deactivate:un({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate"}),reject:un({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject"})}),Ho=o.method,Pl=o.extend({retrieve:Ho({method:"GET",fullPath:"/v1/issuing/physical_bundles/{physical_bundle}"}),list:Ho({method:"GET",fullPath:"/v1/issuing/physical_bundles",methodType:"list"})}),Bo=o.method,gl=o.extend({retrieve:Bo({method:"GET",fullPath:"/v1/climate/products/{product}"}),list:Bo({method:"GET",fullPath:"/v1/climate/products",methodType:"list"})}),te=o.method,Tl=o.extend({create:te({method:"POST",fullPath:"/v1/terminal/readers"}),retrieve:te({method:"GET",fullPath:"/v1/terminal/readers/{reader}"}),update:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}"}),list:te({method:"GET",fullPath:"/v1/terminal/readers",methodType:"list"}),del:te({method:"DELETE",fullPath:"/v1/terminal/readers/{reader}"}),cancelAction:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}/cancel_action"}),collectInputs:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}/collect_inputs"}),collectPaymentMethod:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}/collect_payment_method"}),confirmPaymentIntent:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}/confirm_payment_intent"}),processPaymentIntent:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_payment_intent"}),processSetupIntent:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_setup_intent"}),refundPayment:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}/refund_payment"}),setReaderDisplay:te({method:"POST",fullPath:"/v1/terminal/readers/{reader}/set_reader_display"})}),cn=o.method,_l=o.extend({presentPaymentMethod:cn({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/present_payment_method"}),succeedInputCollection:cn({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection"}),timeoutInputCollection:cn({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection"})}),El=o.method,Sl=o.extend({create:El({method:"POST",fullPath:"/v1/test_helpers/treasury/received_credits"})}),jo=o.method,Ol=o.extend({retrieve:jo({method:"GET",fullPath:"/v1/treasury/received_credits/{id}"}),list:jo({method:"GET",fullPath:"/v1/treasury/received_credits",methodType:"list"})}),bl=o.method,wl=o.extend({create:bl({method:"POST",fullPath:"/v1/test_helpers/treasury/received_debits"})}),zo=o.method,xl=o.extend({retrieve:zo({method:"GET",fullPath:"/v1/treasury/received_debits/{id}"}),list:zo({method:"GET",fullPath:"/v1/treasury/received_debits",methodType:"list"})}),Al=o.method,Rl=o.extend({expire:Al({method:"POST",fullPath:"/v1/test_helpers/refunds/{refund}/expire"})}),$t=o.method,Cl=o.extend({create:$t({method:"POST",fullPath:"/v1/tax/registrations"}),retrieve:$t({method:"GET",fullPath:"/v1/tax/registrations/{id}"}),update:$t({method:"POST",fullPath:"/v1/tax/registrations/{id}"}),list:$t({method:"GET",fullPath:"/v1/tax/registrations",methodType:"list"})}),dn=o.method,Ml=o.extend({create:dn({method:"POST",fullPath:"/v1/reporting/report_runs"}),retrieve:dn({method:"GET",fullPath:"/v1/reporting/report_runs/{report_run}"}),list:dn({method:"GET",fullPath:"/v1/reporting/report_runs",methodType:"list"})}),Wo=o.method,Gl=o.extend({retrieve:Wo({method:"GET",fullPath:"/v1/reporting/report_types/{report_type}"}),list:Wo({method:"GET",fullPath:"/v1/reporting/report_types",methodType:"list"})}),hn=o.method,Il=o.extend({create:hn({method:"POST",fullPath:"/v1/forwarding/requests"}),retrieve:hn({method:"GET",fullPath:"/v1/forwarding/requests/{id}"}),list:hn({method:"GET",fullPath:"/v1/forwarding/requests",methodType:"list"})}),Vo=o.method,$l=o.extend({retrieve:Vo({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs/{scheduled_query_run}"}),list:Vo({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs",methodType:"list"})}),qt=o.method,ql=o.extend({create:qt({method:"POST",fullPath:"/v1/apps/secrets"}),list:qt({method:"GET",fullPath:"/v1/apps/secrets",methodType:"list"}),deleteWhere:qt({method:"POST",fullPath:"/v1/apps/secrets/delete"}),find:qt({method:"GET",fullPath:"/v1/apps/secrets/find"})}),Dl=o.method,Nl=o.extend({create:Dl({method:"POST",fullPath:"/v1/billing_portal/sessions"})}),ze=o.method,kl=o.extend({create:ze({method:"POST",fullPath:"/v1/checkout/sessions"}),retrieve:ze({method:"GET",fullPath:"/v1/checkout/sessions/{session}"}),update:ze({method:"POST",fullPath:"/v1/checkout/sessions/{session}"}),list:ze({method:"GET",fullPath:"/v1/checkout/sessions",methodType:"list"}),expire:ze({method:"POST",fullPath:"/v1/checkout/sessions/{session}/expire"}),listLineItems:ze({method:"GET",fullPath:"/v1/checkout/sessions/{session}/line_items",methodType:"list"})}),Ko=o.method,Fl=o.extend({create:Ko({method:"POST",fullPath:"/v1/financial_connections/sessions"}),retrieve:Ko({method:"GET",fullPath:"/v1/financial_connections/sessions/{session}"})}),Jo=o.method,Ll=o.extend({retrieve:Jo({method:"GET",fullPath:"/v1/tax/settings"}),update:Jo({method:"POST",fullPath:"/v1/tax/settings"})}),Qo=o.method,Ul=o.extend({retrieve:Qo({method:"GET",fullPath:"/v1/climate/suppliers/{supplier}"}),list:Qo({method:"GET",fullPath:"/v1/climate/suppliers",methodType:"list"})}),st=o.method,Hl=o.extend({create:st({method:"POST",fullPath:"/v1/test_helpers/test_clocks"}),retrieve:st({method:"GET",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),list:st({method:"GET",fullPath:"/v1/test_helpers/test_clocks",methodType:"list"}),del:st({method:"DELETE",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),advance:st({method:"POST",fullPath:"/v1/test_helpers/test_clocks/{test_clock}/advance"})}),pn=o.method,Bl=o.extend({retrieve:pn({method:"GET",fullPath:"/v1/issuing/tokens/{token}"}),update:pn({method:"POST",fullPath:"/v1/issuing/tokens/{token}"}),list:pn({method:"GET",fullPath:"/v1/issuing/tokens",methodType:"list"})}),Yo=o.method,jl=o.extend({retrieve:Yo({method:"GET",fullPath:"/v1/treasury/transaction_entries/{id}"}),list:Yo({method:"GET",fullPath:"/v1/treasury/transaction_entries",methodType:"list"})}),Xo=o.method,zl=o.extend({retrieve:Xo({method:"GET",fullPath:"/v1/financial_connections/transactions/{transaction}"}),list:Xo({method:"GET",fullPath:"/v1/financial_connections/transactions",methodType:"list"})}),fn=o.method,Wl=o.extend({retrieve:fn({method:"GET",fullPath:"/v1/issuing/transactions/{transaction}"}),update:fn({method:"POST",fullPath:"/v1/issuing/transactions/{transaction}"}),list:fn({method:"GET",fullPath:"/v1/issuing/transactions",methodType:"list"})}),Dt=o.method,Vl=o.extend({retrieve:Dt({method:"GET",fullPath:"/v1/tax/transactions/{transaction}"}),createFromCalculation:Dt({method:"POST",fullPath:"/v1/tax/transactions/create_from_calculation"}),createReversal:Dt({method:"POST",fullPath:"/v1/tax/transactions/create_reversal"}),listLineItems:Dt({method:"GET",fullPath:"/v1/tax/transactions/{transaction}/line_items",methodType:"list"})}),mn=o.method,Kl=o.extend({createForceCapture:mn({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_force_capture"}),createUnlinkedRefund:mn({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_unlinked_refund"}),refund:mn({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/{transaction}/refund"})}),Zo=o.method,Jl=o.extend({retrieve:Zo({method:"GET",fullPath:"/v1/treasury/transactions/{id}"}),list:Zo({method:"GET",fullPath:"/v1/treasury/transactions",methodType:"list"})}),Nt=o.method,Ql=o.extend({create:Nt({method:"POST",fullPath:"/v1/radar/value_list_items"}),retrieve:Nt({method:"GET",fullPath:"/v1/radar/value_list_items/{item}"}),list:Nt({method:"GET",fullPath:"/v1/radar/value_list_items",methodType:"list"}),del:Nt({method:"DELETE",fullPath:"/v1/radar/value_list_items/{item}"})}),lt=o.method,Yl=o.extend({create:lt({method:"POST",fullPath:"/v1/radar/value_lists"}),retrieve:lt({method:"GET",fullPath:"/v1/radar/value_lists/{value_list}"}),update:lt({method:"POST",fullPath:"/v1/radar/value_lists/{value_list}"}),list:lt({method:"GET",fullPath:"/v1/radar/value_lists",methodType:"list"}),del:lt({method:"DELETE",fullPath:"/v1/radar/value_lists/{value_list}"})}),ei=o.method,Xl=o.extend({retrieve:ei({method:"GET",fullPath:"/v1/identity/verification_reports/{report}"}),list:ei({method:"GET",fullPath:"/v1/identity/verification_reports",methodType:"list"})}),We=o.method,Zl=o.extend({create:We({method:"POST",fullPath:"/v1/identity/verification_sessions"}),retrieve:We({method:"GET",fullPath:"/v1/identity/verification_sessions/{session}"}),update:We({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}"}),list:We({method:"GET",fullPath:"/v1/identity/verification_sessions",methodType:"list"}),cancel:We({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/cancel"}),redact:We({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/redact"})}),U=o.method,ti=o.extend({create:U({method:"POST",fullPath:"/v1/accounts"}),retrieve(t,...e){return typeof t=="string"?U({method:"GET",fullPath:"/v1/accounts/{id}"}).apply(this,[t,...e]):(t==null&&[].shift.apply([t,...e]),U({method:"GET",fullPath:"/v1/account"}).apply(this,[t,...e]))},update:U({method:"POST",fullPath:"/v1/accounts/{account}"}),list:U({method:"GET",fullPath:"/v1/accounts",methodType:"list"}),del:U({method:"DELETE",fullPath:"/v1/accounts/{account}"}),createExternalAccount:U({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts"}),createLoginLink:U({method:"POST",fullPath:"/v1/accounts/{account}/login_links"}),createPerson:U({method:"POST",fullPath:"/v1/accounts/{account}/persons"}),deleteExternalAccount:U({method:"DELETE",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),deletePerson:U({method:"DELETE",fullPath:"/v1/accounts/{account}/persons/{person}"}),listCapabilities:U({method:"GET",fullPath:"/v1/accounts/{account}/capabilities",methodType:"list"}),listExternalAccounts:U({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts",methodType:"list"}),listPersons:U({method:"GET",fullPath:"/v1/accounts/{account}/persons",methodType:"list"}),reject:U({method:"POST",fullPath:"/v1/accounts/{account}/reject"}),retrieveCurrent:U({method:"GET",fullPath:"/v1/account"}),retrieveCapability:U({method:"GET",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),retrieveExternalAccount:U({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),retrievePerson:U({method:"GET",fullPath:"/v1/accounts/{account}/persons/{person}"}),updateCapability:U({method:"POST",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),updateExternalAccount:U({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),updatePerson:U({method:"POST",fullPath:"/v1/accounts/{account}/persons/{person}"})}),eu=o.method,tu=o.extend({create:eu({method:"POST",fullPath:"/v1/account_links"})}),ru=o.method,nu=o.extend({create:ru({method:"POST",fullPath:"/v1/account_sessions"})}),kt=o.method,ou=o.extend({create:kt({method:"POST",fullPath:"/v1/apple_pay/domains"}),retrieve:kt({method:"GET",fullPath:"/v1/apple_pay/domains/{domain}"}),list:kt({method:"GET",fullPath:"/v1/apple_pay/domains",methodType:"list"}),del:kt({method:"DELETE",fullPath:"/v1/apple_pay/domains/{domain}"})}),Ve=o.method,iu=o.extend({retrieve:Ve({method:"GET",fullPath:"/v1/application_fees/{id}"}),list:Ve({method:"GET",fullPath:"/v1/application_fees",methodType:"list"}),createRefund:Ve({method:"POST",fullPath:"/v1/application_fees/{id}/refunds"}),listRefunds:Ve({method:"GET",fullPath:"/v1/application_fees/{id}/refunds",methodType:"list"}),retrieveRefund:Ve({method:"GET",fullPath:"/v1/application_fees/{fee}/refunds/{id}"}),updateRefund:Ve({method:"POST",fullPath:"/v1/application_fees/{fee}/refunds/{id}"})}),au=o.method,su=o.extend({retrieve:au({method:"GET",fullPath:"/v1/balance"})}),ri=o.method,lu=o.extend({retrieve:ri({method:"GET",fullPath:"/v1/balance_settings"}),update:ri({method:"POST",fullPath:"/v1/balance_settings"})}),ni=o.method,uu=o.extend({retrieve:ni({method:"GET",fullPath:"/v1/balance_transactions/{id}"}),list:ni({method:"GET",fullPath:"/v1/balance_transactions",methodType:"list"})}),Ke=o.method,cu=o.extend({create:Ke({method:"POST",fullPath:"/v1/charges"}),retrieve:Ke({method:"GET",fullPath:"/v1/charges/{charge}"}),update:Ke({method:"POST",fullPath:"/v1/charges/{charge}"}),list:Ke({method:"GET",fullPath:"/v1/charges",methodType:"list"}),capture:Ke({method:"POST",fullPath:"/v1/charges/{charge}/capture"}),search:Ke({method:"GET",fullPath:"/v1/charges/search",methodType:"search"})}),du=o.method,hu=o.extend({retrieve:du({method:"GET",fullPath:"/v1/confirmation_tokens/{confirmation_token}"})}),oi=o.method,pu=o.extend({retrieve:oi({method:"GET",fullPath:"/v1/country_specs/{country}"}),list:oi({method:"GET",fullPath:"/v1/country_specs",methodType:"list"})}),ut=o.method,fu=o.extend({create:ut({method:"POST",fullPath:"/v1/coupons"}),retrieve:ut({method:"GET",fullPath:"/v1/coupons/{coupon}"}),update:ut({method:"POST",fullPath:"/v1/coupons/{coupon}"}),list:ut({method:"GET",fullPath:"/v1/coupons",methodType:"list"}),del:ut({method:"DELETE",fullPath:"/v1/coupons/{coupon}"})}),be=o.method,mu=o.extend({create:be({method:"POST",fullPath:"/v1/credit_notes"}),retrieve:be({method:"GET",fullPath:"/v1/credit_notes/{id}"}),update:be({method:"POST",fullPath:"/v1/credit_notes/{id}"}),list:be({method:"GET",fullPath:"/v1/credit_notes",methodType:"list"}),listLineItems:be({method:"GET",fullPath:"/v1/credit_notes/{credit_note}/lines",methodType:"list"}),listPreviewLineItems:be({method:"GET",fullPath:"/v1/credit_notes/preview/lines",methodType:"list"}),preview:be({method:"GET",fullPath:"/v1/credit_notes/preview"}),voidCreditNote:be({method:"POST",fullPath:"/v1/credit_notes/{id}/void"})}),vu=o.method,yu=o.extend({create:vu({method:"POST",fullPath:"/v1/customer_sessions"})}),D=o.method,Pu=o.extend({create:D({method:"POST",fullPath:"/v1/customers"}),retrieve:D({method:"GET",fullPath:"/v1/customers/{customer}"}),update:D({method:"POST",fullPath:"/v1/customers/{customer}"}),list:D({method:"GET",fullPath:"/v1/customers",methodType:"list"}),del:D({method:"DELETE",fullPath:"/v1/customers/{customer}"}),createBalanceTransaction:D({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions"}),createFundingInstructions:D({method:"POST",fullPath:"/v1/customers/{customer}/funding_instructions"}),createSource:D({method:"POST",fullPath:"/v1/customers/{customer}/sources"}),createTaxId:D({method:"POST",fullPath:"/v1/customers/{customer}/tax_ids"}),deleteDiscount:D({method:"DELETE",fullPath:"/v1/customers/{customer}/discount"}),deleteSource:D({method:"DELETE",fullPath:"/v1/customers/{customer}/sources/{id}"}),deleteTaxId:D({method:"DELETE",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),listBalanceTransactions:D({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions",methodType:"list"}),listCashBalanceTransactions:D({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions",methodType:"list"}),listPaymentMethods:D({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods",methodType:"list"}),listSources:D({method:"GET",fullPath:"/v1/customers/{customer}/sources",methodType:"list"}),listTaxIds:D({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids",methodType:"list"}),retrieveBalanceTransaction:D({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),retrieveCashBalance:D({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance"}),retrieveCashBalanceTransaction:D({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions/{transaction}"}),retrievePaymentMethod:D({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods/{payment_method}"}),retrieveSource:D({method:"GET",fullPath:"/v1/customers/{customer}/sources/{id}"}),retrieveTaxId:D({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),search:D({method:"GET",fullPath:"/v1/customers/search",methodType:"search"}),updateBalanceTransaction:D({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),updateCashBalance:D({method:"POST",fullPath:"/v1/customers/{customer}/cash_balance"}),updateSource:D({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}"}),verifySource:D({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}/verify"})}),Ft=o.method,gu=o.extend({retrieve:Ft({method:"GET",fullPath:"/v1/disputes/{dispute}"}),update:Ft({method:"POST",fullPath:"/v1/disputes/{dispute}"}),list:Ft({method:"GET",fullPath:"/v1/disputes",methodType:"list"}),close:Ft({method:"POST",fullPath:"/v1/disputes/{dispute}/close"})}),ii=o.method,Tu=o.extend({create:ii({method:"POST",fullPath:"/v1/ephemeral_keys",validator:(t,e)=>{if(!e.headers||!e.headers["Stripe-Version"])throw new Error("Passing apiVersion in a separate options hash is required to create an ephemeral key. See https://stripe.com/docs/api/versioning?lang=node")}}),del:ii({method:"DELETE",fullPath:"/v1/ephemeral_keys/{key}"})}),ai=o.method,_u=o.extend({retrieve:ai({method:"GET",fullPath:"/v1/events/{id}"}),list:ai({method:"GET",fullPath:"/v1/events",methodType:"list"})}),si=o.method,Eu=o.extend({retrieve:si({method:"GET",fullPath:"/v1/exchange_rates/{rate_id}"}),list:si({method:"GET",fullPath:"/v1/exchange_rates",methodType:"list"})}),Lt=o.method,Su=o.extend({create:Lt({method:"POST",fullPath:"/v1/file_links"}),retrieve:Lt({method:"GET",fullPath:"/v1/file_links/{link}"}),update:Lt({method:"POST",fullPath:"/v1/file_links/{link}"}),list:Lt({method:"GET",fullPath:"/v1/file_links",methodType:"list"})}),Ou=(t,e,r)=>{const n=(Math.round(Math.random()*1e16)+Math.round(Math.random()*1e16)).toString();r["Content-Type"]=`multipart/form-data; boundary=${n}`;const i=new TextEncoder;let a=new Uint8Array(0);const m=i.encode(`\r
|
|
14
|
-
`);function v(s){const h=a,P=s instanceof Uint8Array?s:new Uint8Array(i.encode(s));a=new Uint8Array(h.length+P.length+2),a.set(h),a.set(P,h.length),a.set(m,a.length-2)}function _(s){return`"${s.replace(/"|"/g,"%22").replace(/\r\n|\r|\n/g," ")}"`}const g=ja(e);for(const s in g){if(!Object.prototype.hasOwnProperty.call(g,s))continue;const h=g[s];if(v(`--${n}`),Object.prototype.hasOwnProperty.call(h,"data")){const P=h;v(`Content-Disposition: form-data; name=${_(s)}; filename=${_(P.name||"blob")}`),v(`Content-Type: ${P.type||"application/octet-stream"}`),v(""),v(P.data)}else v(`Content-Disposition: form-data; name=${_(s)}`),v(""),v(h)}return v(`--${n}--`),a};function bu(t,e,r,n){if(e=e||{},t!=="POST")return n(null,Xt(e));this._stripe._platformFunctions.tryBufferData(e).then(i=>{const a=Ou(t,i,r);return n(null,a)}).catch(i=>n(i,null))}const vn=o.method,wu=o.extend({create:vn({method:"POST",fullPath:"/v1/files",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),retrieve:vn({method:"GET",fullPath:"/v1/files/{file}"}),list:vn({method:"GET",fullPath:"/v1/files",methodType:"list"}),requestDataProcessor:bu}),ct=o.method,xu=o.extend({create:ct({method:"POST",fullPath:"/v1/invoiceitems"}),retrieve:ct({method:"GET",fullPath:"/v1/invoiceitems/{invoiceitem}"}),update:ct({method:"POST",fullPath:"/v1/invoiceitems/{invoiceitem}"}),list:ct({method:"GET",fullPath:"/v1/invoiceitems",methodType:"list"}),del:ct({method:"DELETE",fullPath:"/v1/invoiceitems/{invoiceitem}"})}),li=o.method,Au=o.extend({retrieve:li({method:"GET",fullPath:"/v1/invoice_payments/{invoice_payment}"}),list:li({method:"GET",fullPath:"/v1/invoice_payments",methodType:"list"})}),Ut=o.method,Ru=o.extend({retrieve:Ut({method:"GET",fullPath:"/v1/invoice_rendering_templates/{template}"}),list:Ut({method:"GET",fullPath:"/v1/invoice_rendering_templates",methodType:"list"}),archive:Ut({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/archive"}),unarchive:Ut({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/unarchive"})}),z=o.method,Cu=o.extend({create:z({method:"POST",fullPath:"/v1/invoices"}),retrieve:z({method:"GET",fullPath:"/v1/invoices/{invoice}"}),update:z({method:"POST",fullPath:"/v1/invoices/{invoice}"}),list:z({method:"GET",fullPath:"/v1/invoices",methodType:"list"}),del:z({method:"DELETE",fullPath:"/v1/invoices/{invoice}"}),addLines:z({method:"POST",fullPath:"/v1/invoices/{invoice}/add_lines"}),attachPayment:z({method:"POST",fullPath:"/v1/invoices/{invoice}/attach_payment"}),createPreview:z({method:"POST",fullPath:"/v1/invoices/create_preview"}),finalizeInvoice:z({method:"POST",fullPath:"/v1/invoices/{invoice}/finalize"}),listLineItems:z({method:"GET",fullPath:"/v1/invoices/{invoice}/lines",methodType:"list"}),markUncollectible:z({method:"POST",fullPath:"/v1/invoices/{invoice}/mark_uncollectible"}),pay:z({method:"POST",fullPath:"/v1/invoices/{invoice}/pay"}),removeLines:z({method:"POST",fullPath:"/v1/invoices/{invoice}/remove_lines"}),search:z({method:"GET",fullPath:"/v1/invoices/search",methodType:"search"}),sendInvoice:z({method:"POST",fullPath:"/v1/invoices/{invoice}/send"}),updateLines:z({method:"POST",fullPath:"/v1/invoices/{invoice}/update_lines"}),updateLineItem:z({method:"POST",fullPath:"/v1/invoices/{invoice}/lines/{line_item_id}"}),voidInvoice:z({method:"POST",fullPath:"/v1/invoices/{invoice}/void"})}),Mu=o.method,Gu=o.extend({retrieve:Mu({method:"GET",fullPath:"/v1/mandates/{mandate}"})}),ui=o.method,yn="connect.stripe.com",Iu=o.extend({basePath:"/",authorizeUrl(t,e){t=t||{},e=e||{};let r="oauth/authorize";return e.express&&(r=`express/${r}`),t.response_type||(t.response_type="code"),t.client_id||(t.client_id=this._stripe.getClientId()),t.scope||(t.scope="read_write"),`https://${yn}/${r}?${Xt(t)}`},token:ui({method:"POST",path:"oauth/token",host:yn}),deauthorize(t,...e){return t.client_id||(t.client_id=this._stripe.getClientId()),ui({method:"POST",path:"oauth/deauthorize",host:yn}).apply(this,[t,...e])}}),ci=o.method,$u=o.extend({retrieve:ci({method:"GET",fullPath:"/v1/payment_attempt_records/{id}"}),list:ci({method:"GET",fullPath:"/v1/payment_attempt_records",methodType:"list"})}),ie=o.method,qu=o.extend({create:ie({method:"POST",fullPath:"/v1/payment_intents"}),retrieve:ie({method:"GET",fullPath:"/v1/payment_intents/{intent}"}),update:ie({method:"POST",fullPath:"/v1/payment_intents/{intent}"}),list:ie({method:"GET",fullPath:"/v1/payment_intents",methodType:"list"}),applyCustomerBalance:ie({method:"POST",fullPath:"/v1/payment_intents/{intent}/apply_customer_balance"}),cancel:ie({method:"POST",fullPath:"/v1/payment_intents/{intent}/cancel"}),capture:ie({method:"POST",fullPath:"/v1/payment_intents/{intent}/capture"}),confirm:ie({method:"POST",fullPath:"/v1/payment_intents/{intent}/confirm"}),incrementAuthorization:ie({method:"POST",fullPath:"/v1/payment_intents/{intent}/increment_authorization"}),listAmountDetailsLineItems:ie({method:"GET",fullPath:"/v1/payment_intents/{intent}/amount_details_line_items",methodType:"list"}),search:ie({method:"GET",fullPath:"/v1/payment_intents/search",methodType:"search"}),verifyMicrodeposits:ie({method:"POST",fullPath:"/v1/payment_intents/{intent}/verify_microdeposits"})}),dt=o.method,Du=o.extend({create:dt({method:"POST",fullPath:"/v1/payment_links"}),retrieve:dt({method:"GET",fullPath:"/v1/payment_links/{payment_link}"}),update:dt({method:"POST",fullPath:"/v1/payment_links/{payment_link}"}),list:dt({method:"GET",fullPath:"/v1/payment_links",methodType:"list"}),listLineItems:dt({method:"GET",fullPath:"/v1/payment_links/{payment_link}/line_items",methodType:"list"})}),Ht=o.method,Nu=o.extend({create:Ht({method:"POST",fullPath:"/v1/payment_method_configurations"}),retrieve:Ht({method:"GET",fullPath:"/v1/payment_method_configurations/{configuration}"}),update:Ht({method:"POST",fullPath:"/v1/payment_method_configurations/{configuration}"}),list:Ht({method:"GET",fullPath:"/v1/payment_method_configurations",methodType:"list"})}),ht=o.method,ku=o.extend({create:ht({method:"POST",fullPath:"/v1/payment_method_domains"}),retrieve:ht({method:"GET",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),update:ht({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),list:ht({method:"GET",fullPath:"/v1/payment_method_domains",methodType:"list"}),validate:ht({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}/validate"})}),Je=o.method,Fu=o.extend({create:Je({method:"POST",fullPath:"/v1/payment_methods"}),retrieve:Je({method:"GET",fullPath:"/v1/payment_methods/{payment_method}"}),update:Je({method:"POST",fullPath:"/v1/payment_methods/{payment_method}"}),list:Je({method:"GET",fullPath:"/v1/payment_methods",methodType:"list"}),attach:Je({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/attach"}),detach:Je({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/detach"})}),we=o.method,Lu=o.extend({retrieve:we({method:"GET",fullPath:"/v1/payment_records/{id}"}),reportPayment:we({method:"POST",fullPath:"/v1/payment_records/report_payment"}),reportPaymentAttempt:we({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt"}),reportPaymentAttemptCanceled:we({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_canceled"}),reportPaymentAttemptFailed:we({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_failed"}),reportPaymentAttemptGuaranteed:we({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_guaranteed"}),reportPaymentAttemptInformational:we({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_informational"}),reportRefund:we({method:"POST",fullPath:"/v1/payment_records/{id}/report_refund"})}),Qe=o.method,Uu=o.extend({create:Qe({method:"POST",fullPath:"/v1/payouts"}),retrieve:Qe({method:"GET",fullPath:"/v1/payouts/{payout}"}),update:Qe({method:"POST",fullPath:"/v1/payouts/{payout}"}),list:Qe({method:"GET",fullPath:"/v1/payouts",methodType:"list"}),cancel:Qe({method:"POST",fullPath:"/v1/payouts/{payout}/cancel"}),reverse:Qe({method:"POST",fullPath:"/v1/payouts/{payout}/reverse"})}),pt=o.method,Hu=o.extend({create:pt({method:"POST",fullPath:"/v1/plans"}),retrieve:pt({method:"GET",fullPath:"/v1/plans/{plan}"}),update:pt({method:"POST",fullPath:"/v1/plans/{plan}"}),list:pt({method:"GET",fullPath:"/v1/plans",methodType:"list"}),del:pt({method:"DELETE",fullPath:"/v1/plans/{plan}"})}),ft=o.method,Bu=o.extend({create:ft({method:"POST",fullPath:"/v1/prices"}),retrieve:ft({method:"GET",fullPath:"/v1/prices/{price}"}),update:ft({method:"POST",fullPath:"/v1/prices/{price}"}),list:ft({method:"GET",fullPath:"/v1/prices",methodType:"list"}),search:ft({method:"GET",fullPath:"/v1/prices/search",methodType:"search"})}),ue=o.method,ju=o.extend({create:ue({method:"POST",fullPath:"/v1/products"}),retrieve:ue({method:"GET",fullPath:"/v1/products/{id}"}),update:ue({method:"POST",fullPath:"/v1/products/{id}"}),list:ue({method:"GET",fullPath:"/v1/products",methodType:"list"}),del:ue({method:"DELETE",fullPath:"/v1/products/{id}"}),createFeature:ue({method:"POST",fullPath:"/v1/products/{product}/features"}),deleteFeature:ue({method:"DELETE",fullPath:"/v1/products/{product}/features/{id}"}),listFeatures:ue({method:"GET",fullPath:"/v1/products/{product}/features",methodType:"list"}),retrieveFeature:ue({method:"GET",fullPath:"/v1/products/{product}/features/{id}"}),search:ue({method:"GET",fullPath:"/v1/products/search",methodType:"search"})}),Bt=o.method,zu=o.extend({create:Bt({method:"POST",fullPath:"/v1/promotion_codes"}),retrieve:Bt({method:"GET",fullPath:"/v1/promotion_codes/{promotion_code}"}),update:Bt({method:"POST",fullPath:"/v1/promotion_codes/{promotion_code}"}),list:Bt({method:"GET",fullPath:"/v1/promotion_codes",methodType:"list"})}),ce=o.method,Wu=o.extend({create:ce({method:"POST",fullPath:"/v1/quotes"}),retrieve:ce({method:"GET",fullPath:"/v1/quotes/{quote}"}),update:ce({method:"POST",fullPath:"/v1/quotes/{quote}"}),list:ce({method:"GET",fullPath:"/v1/quotes",methodType:"list"}),accept:ce({method:"POST",fullPath:"/v1/quotes/{quote}/accept"}),cancel:ce({method:"POST",fullPath:"/v1/quotes/{quote}/cancel"}),finalizeQuote:ce({method:"POST",fullPath:"/v1/quotes/{quote}/finalize"}),listComputedUpfrontLineItems:ce({method:"GET",fullPath:"/v1/quotes/{quote}/computed_upfront_line_items",methodType:"list"}),listLineItems:ce({method:"GET",fullPath:"/v1/quotes/{quote}/line_items",methodType:"list"}),pdf:ce({method:"GET",fullPath:"/v1/quotes/{quote}/pdf",host:"files.stripe.com",streaming:!0})}),mt=o.method,Vu=o.extend({create:mt({method:"POST",fullPath:"/v1/refunds"}),retrieve:mt({method:"GET",fullPath:"/v1/refunds/{refund}"}),update:mt({method:"POST",fullPath:"/v1/refunds/{refund}"}),list:mt({method:"GET",fullPath:"/v1/refunds",methodType:"list"}),cancel:mt({method:"POST",fullPath:"/v1/refunds/{refund}/cancel"})}),Pn=o.method,Ku=o.extend({retrieve:Pn({method:"GET",fullPath:"/v1/reviews/{review}"}),list:Pn({method:"GET",fullPath:"/v1/reviews",methodType:"list"}),approve:Pn({method:"POST",fullPath:"/v1/reviews/{review}/approve"})}),Ju=o.method,Qu=o.extend({list:Ju({method:"GET",fullPath:"/v1/setup_attempts",methodType:"list"})}),qe=o.method,Yu=o.extend({create:qe({method:"POST",fullPath:"/v1/setup_intents"}),retrieve:qe({method:"GET",fullPath:"/v1/setup_intents/{intent}"}),update:qe({method:"POST",fullPath:"/v1/setup_intents/{intent}"}),list:qe({method:"GET",fullPath:"/v1/setup_intents",methodType:"list"}),cancel:qe({method:"POST",fullPath:"/v1/setup_intents/{intent}/cancel"}),confirm:qe({method:"POST",fullPath:"/v1/setup_intents/{intent}/confirm"}),verifyMicrodeposits:qe({method:"POST",fullPath:"/v1/setup_intents/{intent}/verify_microdeposits"})}),jt=o.method,Xu=o.extend({create:jt({method:"POST",fullPath:"/v1/shipping_rates"}),retrieve:jt({method:"GET",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),update:jt({method:"POST",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),list:jt({method:"GET",fullPath:"/v1/shipping_rates",methodType:"list"})}),vt=o.method,Zu=o.extend({create:vt({method:"POST",fullPath:"/v1/sources"}),retrieve:vt({method:"GET",fullPath:"/v1/sources/{source}"}),update:vt({method:"POST",fullPath:"/v1/sources/{source}"}),listSourceTransactions:vt({method:"GET",fullPath:"/v1/sources/{source}/source_transactions",methodType:"list"}),verify:vt({method:"POST",fullPath:"/v1/sources/{source}/verify"})}),yt=o.method,ec=o.extend({create:yt({method:"POST",fullPath:"/v1/subscription_items"}),retrieve:yt({method:"GET",fullPath:"/v1/subscription_items/{item}"}),update:yt({method:"POST",fullPath:"/v1/subscription_items/{item}"}),list:yt({method:"GET",fullPath:"/v1/subscription_items",methodType:"list"}),del:yt({method:"DELETE",fullPath:"/v1/subscription_items/{item}"})}),Ye=o.method,tc=o.extend({create:Ye({method:"POST",fullPath:"/v1/subscription_schedules"}),retrieve:Ye({method:"GET",fullPath:"/v1/subscription_schedules/{schedule}"}),update:Ye({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}"}),list:Ye({method:"GET",fullPath:"/v1/subscription_schedules",methodType:"list"}),cancel:Ye({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/cancel"}),release:Ye({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/release"})}),me=o.method,rc=o.extend({create:me({method:"POST",fullPath:"/v1/subscriptions"}),retrieve:me({method:"GET",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),update:me({method:"POST",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),list:me({method:"GET",fullPath:"/v1/subscriptions",methodType:"list"}),cancel:me({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}"}),deleteDiscount:me({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}/discount"}),migrate:me({method:"POST",fullPath:"/v1/subscriptions/{subscription}/migrate"}),resume:me({method:"POST",fullPath:"/v1/subscriptions/{subscription}/resume"}),search:me({method:"GET",fullPath:"/v1/subscriptions/search",methodType:"search"})}),di=o.method,nc=o.extend({retrieve:di({method:"GET",fullPath:"/v1/tax_codes/{id}"}),list:di({method:"GET",fullPath:"/v1/tax_codes",methodType:"list"})}),zt=o.method,oc=o.extend({create:zt({method:"POST",fullPath:"/v1/tax_ids"}),retrieve:zt({method:"GET",fullPath:"/v1/tax_ids/{id}"}),list:zt({method:"GET",fullPath:"/v1/tax_ids",methodType:"list"}),del:zt({method:"DELETE",fullPath:"/v1/tax_ids/{id}"})}),Wt=o.method,ic=o.extend({create:Wt({method:"POST",fullPath:"/v1/tax_rates"}),retrieve:Wt({method:"GET",fullPath:"/v1/tax_rates/{tax_rate}"}),update:Wt({method:"POST",fullPath:"/v1/tax_rates/{tax_rate}"}),list:Wt({method:"GET",fullPath:"/v1/tax_rates",methodType:"list"})}),hi=o.method,ac=o.extend({create:hi({method:"POST",fullPath:"/v1/tokens"}),retrieve:hi({method:"GET",fullPath:"/v1/tokens/{token}"})}),Pt=o.method,sc=o.extend({create:Pt({method:"POST",fullPath:"/v1/topups"}),retrieve:Pt({method:"GET",fullPath:"/v1/topups/{topup}"}),update:Pt({method:"POST",fullPath:"/v1/topups/{topup}"}),list:Pt({method:"GET",fullPath:"/v1/topups",methodType:"list"}),cancel:Pt({method:"POST",fullPath:"/v1/topups/{topup}/cancel"})}),xe=o.method,lc=o.extend({create:xe({method:"POST",fullPath:"/v1/transfers"}),retrieve:xe({method:"GET",fullPath:"/v1/transfers/{transfer}"}),update:xe({method:"POST",fullPath:"/v1/transfers/{transfer}"}),list:xe({method:"GET",fullPath:"/v1/transfers",methodType:"list"}),createReversal:xe({method:"POST",fullPath:"/v1/transfers/{id}/reversals"}),listReversals:xe({method:"GET",fullPath:"/v1/transfers/{id}/reversals",methodType:"list"}),retrieveReversal:xe({method:"GET",fullPath:"/v1/transfers/{transfer}/reversals/{id}"}),updateReversal:xe({method:"POST",fullPath:"/v1/transfers/{transfer}/reversals/{id}"})}),gt=o.method,uc=o.extend({create:gt({method:"POST",fullPath:"/v1/webhook_endpoints"}),retrieve:gt({method:"GET",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),update:gt({method:"POST",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),list:gt({method:"GET",fullPath:"/v1/webhook_endpoints",methodType:"list"}),del:gt({method:"DELETE",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"})}),cc=L("apps",{Secrets:ql}),dc=L("billing",{Alerts:Ps,CreditBalanceSummary:$s,CreditBalanceTransactions:qs,CreditGrants:Ds,MeterEventAdjustments:Ys,MeterEvents:il,Meters:ll}),hc=L("billingPortal",{Configurations:xs,Sessions:Nl}),pc=L("checkout",{Sessions:kl}),fc=L("climate",{Orders:dl,Products:gl,Suppliers:Ul}),mc=L("entitlements",{ActiveEntitlements:ys,Features:zs}),vc=L("financialConnections",{Accounts:vs,Sessions:Fl,Transactions:zl}),yc=L("forwarding",{Requests:Il}),Pc=L("identity",{VerificationReports:Xl,VerificationSessions:Zl}),gc=L("issuing",{Authorizations:_s,Cardholders:Os,Cards:bs,Disputes:Us,PersonalizationDesigns:vl,PhysicalBundles:Pl,Tokens:Bl,Transactions:Wl}),Tc=L("radar",{EarlyFraudWarnings:Hs,ValueListItems:Ql,ValueLists:Yl}),_c=L("reporting",{ReportRuns:Ml,ReportTypes:Gl}),Ec=L("sigma",{ScheduledQueryRuns:$l}),Sc=L("tax",{Associations:Ts,Calculations:Ss,Registrations:Cl,Settings:Ll,Transactions:Vl}),Oc=L("terminal",{Configurations:As,ConnectionTokens:Gs,Locations:Js,OnboardingLinks:cl,Readers:Tl}),bc=L("testHelpers",{ConfirmationTokens:Cs,Customers:Fs,Refunds:Rl,TestClocks:Hl,Issuing:L("issuing",{Authorizations:Es,Cards:ws,PersonalizationDesigns:yl,Transactions:Kl}),Terminal:L("terminal",{Readers:_l}),Treasury:L("treasury",{InboundTransfers:Vs,OutboundPayments:hl,OutboundTransfers:fl,ReceivedCredits:Sl,ReceivedDebits:wl})}),wc=L("treasury",{CreditReversals:Ns,DebitReversals:Ls,FinancialAccounts:Ws,InboundTransfers:Ks,OutboundPayments:pl,OutboundTransfers:ml,ReceivedCredits:Ol,ReceivedDebits:xl,TransactionEntries:jl,Transactions:Jl}),xc=L("v2",{Billing:L("billing",{MeterEventAdjustments:Zs,MeterEventSession:tl,MeterEventStream:nl,MeterEvents:sl}),Core:L("core",{EventDestinations:Bs,Events:js})}),Vt=Object.freeze(Object.defineProperty({__proto__:null,Account:ti,AccountLinks:tu,AccountSessions:nu,Accounts:ti,ApplePayDomains:ou,ApplicationFees:iu,Apps:cc,Balance:su,BalanceSettings:lu,BalanceTransactions:uu,Billing:dc,BillingPortal:hc,Charges:cu,Checkout:pc,Climate:fc,ConfirmationTokens:hu,CountrySpecs:pu,Coupons:fu,CreditNotes:mu,CustomerSessions:yu,Customers:Pu,Disputes:gu,Entitlements:mc,EphemeralKeys:Tu,Events:_u,ExchangeRates:Eu,FileLinks:Su,Files:wu,FinancialConnections:vc,Forwarding:yc,Identity:Pc,InvoiceItems:xu,InvoicePayments:Au,InvoiceRenderingTemplates:Ru,Invoices:Cu,Issuing:gc,Mandates:Gu,OAuth:Iu,PaymentAttemptRecords:$u,PaymentIntents:qu,PaymentLinks:Du,PaymentMethodConfigurations:Nu,PaymentMethodDomains:ku,PaymentMethods:Fu,PaymentRecords:Lu,Payouts:Uu,Plans:Hu,Prices:Bu,Products:ju,PromotionCodes:zu,Quotes:Wu,Radar:Tc,Refunds:Vu,Reporting:_c,Reviews:Ku,SetupAttempts:Qu,SetupIntents:Yu,ShippingRates:Xu,Sigma:Ec,Sources:Zu,SubscriptionItems:ec,SubscriptionSchedules:tc,Subscriptions:rc,Tax:Sc,TaxCodes:nc,TaxIds:oc,TaxRates:ic,Terminal:Oc,TestHelpers:bc,Tokens:ac,Topups:sc,Transfers:lc,Treasury:wc,V2:xc,WebhookEndpoints:uc},Symbol.toStringTag,{value:"Module"})),pi="api.stripe.com",fi="443",mi="/v1/",vi=Ki,yi=8e4,Pi=5,gi=.5,Ac=["name","version","url","partner_id"],Ti=["authenticator","apiVersion","typescript","maxNetworkRetries","httpAgent","httpClient","timeout","host","port","protocol","telemetry","appInfo","stripeAccount","stripeContext"],Rc=t=>new Tt(t,o.MAX_BUFFERED_REQUEST_METRICS);function Cc(t,e=Rc){r.PACKAGE_VERSION="20.0.0",r.API_VERSION=Ki,r.USER_AGENT=Object.assign({bindings_version:r.PACKAGE_VERSION,lang:"node",publisher:"stripe",uname:null,typescript:!1},za()),r.StripeResource=o,r.StripeContext=De,r.resources=Vt,r.HttpClient=ae,r.HttpClientResponse=qi,r.CryptoProvider=Di,r.webhooks=fs(t);function r(n,i={}){if(!(this instanceof r))return new r(n,i);const a=this._getPropsFromConfig(i);this._platformFunctions=t,Object.defineProperty(this,"_emitter",{value:this._platformFunctions.createEmitter(),enumerable:!1,configurable:!1,writable:!1}),this.VERSION=r.PACKAGE_VERSION,this.on=this._emitter.on.bind(this._emitter),this.once=this._emitter.once.bind(this._emitter),this.off=this._emitter.removeListener.bind(this._emitter);const m=a.httpAgent||null;this._api={host:a.host||pi,port:a.port||fi,protocol:a.protocol||"https",basePath:mi,version:a.apiVersion||vi,timeout:tn("timeout",a.timeout,yi),maxNetworkRetries:tn("maxNetworkRetries",a.maxNetworkRetries,2),agent:m,httpClient:a.httpClient||(m?this._platformFunctions.createNodeHttpClient(m):this._platformFunctions.createDefaultHttpClient()),dev:!1,stripeAccount:a.stripeAccount||null,stripeContext:a.stripeContext||null};const v=a.typescript||!1;v!==r.USER_AGENT.typescript&&(r.USER_AGENT.typescript=v),a.appInfo&&this._setAppInfo(a.appInfo),this._prepResources(),this._setAuthenticator(n,a.authenticator),this.errors=ko,this.webhooks=r.webhooks,this._prevRequestMetrics=[],this._enableTelemetry=a.telemetry!==!1,this._requestSender=e(this),this.StripeResource=r.StripeResource}return r.errors=ko,r.createNodeHttpClient=t.createNodeHttpClient,r.createFetchHttpClient=t.createFetchHttpClient,r.createNodeCryptoProvider=t.createNodeCryptoProvider,r.createSubtleCryptoProvider=t.createSubtleCryptoProvider,r.prototype={_appInfo:void 0,on:null,off:null,once:null,VERSION:null,StripeResource:null,webhooks:null,errors:null,_api:null,_prevRequestMetrics:null,_emitter:null,_enableTelemetry:null,_requestSender:null,_platformFunctions:null,rawRequest(n,i,a,m){return this._requestSender._rawRequest(n,i,a,m)},_setAuthenticator(n,i){if(n&&i)throw new Error("Can't specify both apiKey and authenticator");if(!n&&!i)throw new Error("Neither apiKey nor config.authenticator provided");this._authenticator=n?Tn(n):i},_setAppInfo(n){if(n&&typeof n!="object")throw new Error("AppInfo must be an object.");if(n&&!n.name)throw new Error("AppInfo.name is required");n=n||{},this._appInfo=Ac.reduce((i,a)=>(typeof n[a]=="string"&&(i=i||{},i[a]=n[a]),i),{})},_setApiField(n,i){this._api[n]=i},getApiField(n){return this._api[n]},setClientId(n){this._clientId=n},getClientId(){return this._clientId},getConstant:n=>{switch(n){case"DEFAULT_HOST":return pi;case"DEFAULT_PORT":return fi;case"DEFAULT_BASE_PATH":return mi;case"DEFAULT_API_VERSION":return vi;case"DEFAULT_TIMEOUT":return yi;case"MAX_NETWORK_RETRY_DELAY_SEC":return Pi;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return gi}return r[n]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},_setApiNumberField(n,i,a){const m=tn(n,i,a);this._setApiField(n,m)},getMaxNetworkRetryDelay(){return Pi},getInitialNetworkRetryDelay(){return gi},getClientUserAgent(n){return this.getClientUserAgentSeeded(r.USER_AGENT,n)},getClientUserAgentSeeded(n,i){this._platformFunctions.getUname().then(a=>{var m;const v={};for(const g in n)Object.prototype.hasOwnProperty.call(n,g)&&(v[g]=encodeURIComponent((m=n[g])!==null&&m!==void 0?m:"null"));v.uname=encodeURIComponent(a||"UNKNOWN");const _=this.getApiField("httpClient");_&&(v.httplib=encodeURIComponent(_.getClientName())),this._appInfo&&(v.application=this._appInfo),i(JSON.stringify(v))})},getAppInfoAsString(){if(!this._appInfo)return"";let n=this._appInfo.name;return this._appInfo.version&&(n+=`/${this._appInfo.version}`),this._appInfo.url&&(n+=` (${this._appInfo.url})`),n},getTelemetryEnabled(){return this._enableTelemetry},_prepResources(){for(const n in Vt)Object.prototype.hasOwnProperty.call(Vt,n)&&(this[Ha(n)]=new Vt[n](this))},_getPropsFromConfig(n){if(!n)return{};const i=typeof n=="string";if(!(n===Object(n)&&!Array.isArray(n))&&!i)throw new Error("Config must either be an object or a string");if(i)return{apiVersion:n};if(Object.keys(n).filter(v=>!Ti.includes(v)).length>0)throw new Error(`Config object may only contain the following: ${Ti.join(", ")}`);return n},parseEventNotification(n,i,a,m,v,_){const g=this.webhooks.constructEvent(n,i,a,m,v,_);return g.context&&(g.context=De.parse(g.context)),g.fetchEvent=()=>this._requestSender._rawRequest("GET",`/v2/core/events/${g.id}`,void 0,{stripeContext:g.context},["fetch_event"]),g.fetchRelatedObject=()=>g.related_object?this._requestSender._rawRequest("GET",g.related_object.url,void 0,{stripeContext:g.context},["fetch_related_object"]):Promise.resolve(null),g}},r}const Mc=Cc(new es);var Gc={};const _i=new Mc(Gc.STRIPE_SECRET_KEY,{apiVersion:"2025-11-17.clover"});_i.webhooks,_i.balance;const Ei="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),Si=`
|
|
15
|
-
\r=`.split("");(()=>{const t=new Array(128);for(let e=0;e<t.length;e+=1)t[e]=-1;for(let e=0;e<Si.length;e+=1)t[Si[e].charCodeAt(0)]=-2;for(let e=0;e<Ei.length;e+=1)t[Ei[e].charCodeAt(0)]=e;return t})();
|
|
16
|
-
//# sourceMappingURL=index-Bai9hEWd.js.map
|