@fern-api/go-dynamic-snippets 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/cjs/DiscriminatedUnionTypeInstance.cjs +1 -0
  2. package/cjs/DiscriminatedUnionTypeInstance.d.cts +12 -0
  3. package/cjs/DynamicSnippetsGenerator.cjs +19 -0
  4. package/cjs/DynamicSnippetsGenerator.d.cts +20 -0
  5. package/cjs/DynamicSnippetsGeneratorContext-DuDerGxa.d.cts +143 -0
  6. package/cjs/EndpointSnippetGenerator.cjs +19 -0
  7. package/cjs/EndpointSnippetGenerator.d.cts +52 -0
  8. package/cjs/Result.cjs +1 -0
  9. package/cjs/Result.d.cts +23 -0
  10. package/cjs/Scope.cjs +1 -0
  11. package/cjs/Scope.d.cts +9 -0
  12. package/cjs/TypeInstance.cjs +1 -0
  13. package/cjs/TypeInstance.d.cts +15 -0
  14. package/cjs/context/DynamicSnippetsGeneratorContext.cjs +19 -0
  15. package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +7 -0
  16. package/cjs/context/DynamicTypeInstantiationMapper.cjs +19 -0
  17. package/cjs/context/DynamicTypeInstantiationMapper.d.cts +7 -0
  18. package/cjs/context/DynamicTypeMapper.cjs +19 -0
  19. package/cjs/context/DynamicTypeMapper.d.cts +7 -0
  20. package/cjs/context/ErrorReporter.cjs +1 -0
  21. package/cjs/context/ErrorReporter.d.cts +39 -0
  22. package/cjs/context/FilePropertyMapper.cjs +19 -0
  23. package/cjs/context/FilePropertyMapper.d.cts +7 -0
  24. package/cjs/index.cjs +22 -0
  25. package/{index.d.ts → cjs/index.d.cts} +1 -1
  26. package/esm/DiscriminatedUnionTypeInstance.d.ts +12 -0
  27. package/esm/DiscriminatedUnionTypeInstance.js +0 -0
  28. package/esm/DynamicSnippetsGenerator.d.ts +20 -0
  29. package/esm/DynamicSnippetsGenerator.js +1 -0
  30. package/esm/DynamicSnippetsGeneratorContext-DKWsHJSo.d.ts +143 -0
  31. package/esm/EndpointSnippetGenerator.d.ts +52 -0
  32. package/esm/EndpointSnippetGenerator.js +1 -0
  33. package/esm/Result.d.ts +23 -0
  34. package/esm/Result.js +1 -0
  35. package/esm/Scope.d.ts +9 -0
  36. package/esm/Scope.js +1 -0
  37. package/esm/TypeInstance.d.ts +15 -0
  38. package/esm/TypeInstance.js +0 -0
  39. package/esm/chunk-4PKXKUYU.js +1 -0
  40. package/esm/chunk-5XUC5IOB.js +1 -0
  41. package/esm/chunk-6JCPJA27.js +1 -0
  42. package/esm/chunk-BC35GX6S.js +1 -0
  43. package/esm/chunk-COBOWL3P.js +1 -0
  44. package/esm/chunk-IQODEXPX.js +1 -0
  45. package/esm/chunk-KJOW5AZT.js +1 -0
  46. package/esm/chunk-UVYC4FWB.js +1 -0
  47. package/esm/chunk-VAYOWHUI.js +19 -0
  48. package/esm/chunk-ZQRLKIRW.js +1 -0
  49. package/esm/chunk-ZYGZ4VN4.js +1 -0
  50. package/esm/context/DynamicSnippetsGeneratorContext.d.ts +7 -0
  51. package/esm/context/DynamicSnippetsGeneratorContext.js +1 -0
  52. package/esm/context/DynamicTypeInstantiationMapper.d.ts +7 -0
  53. package/esm/context/DynamicTypeInstantiationMapper.js +1 -0
  54. package/esm/context/DynamicTypeMapper.d.ts +7 -0
  55. package/esm/context/DynamicTypeMapper.js +1 -0
  56. package/esm/context/ErrorReporter.d.ts +39 -0
  57. package/esm/context/ErrorReporter.js +1 -0
  58. package/esm/context/FilePropertyMapper.d.ts +7 -0
  59. package/esm/context/FilePropertyMapper.js +1 -0
  60. package/esm/index.d.ts +8 -0
  61. package/esm/index.js +4 -0
  62. package/package.json +18 -6
  63. package/index.cjs +0 -22
@@ -0,0 +1 @@
1
+ import{a,b}from"../chunk-5XUC5IOB.js";import"../chunk-6JCPJA27.js";export{b as ErrorReporter,a as Severity};
@@ -0,0 +1,7 @@
1
+ import '@fern-api/go-ast';
2
+ export { F as FilePropertyInfo, c as FilePropertyMapper } from '../DynamicSnippetsGeneratorContext-DKWsHJSo.js';
3
+ import '@fern-fern/ir-sdk/api';
4
+ import '@fern-api/browser-compatible-base-generator';
5
+ import '../TypeInstance.js';
6
+ import '../DiscriminatedUnionTypeInstance.js';
7
+ import './ErrorReporter.js';
@@ -0,0 +1 @@
1
+ import{a}from"../chunk-BC35GX6S.js";import"../chunk-VAYOWHUI.js";import"../chunk-5XUC5IOB.js";import"../chunk-6JCPJA27.js";export{a as FilePropertyMapper};
package/esm/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ export { DynamicSnippetsGenerator } from './DynamicSnippetsGenerator.js';
2
+ import '@fern-api/browser-compatible-base-generator';
3
+ import './DynamicSnippetsGeneratorContext-DKWsHJSo.js';
4
+ import '@fern-api/go-ast';
5
+ import '@fern-fern/ir-sdk/api';
6
+ import './TypeInstance.js';
7
+ import './DiscriminatedUnionTypeInstance.js';
8
+ import './context/ErrorReporter.js';
package/esm/index.js ADDED
@@ -0,0 +1,4 @@
1
+ import{a as Go}from"./chunk-4PKXKUYU.js";import"./chunk-KJOW5AZT.js";import"./chunk-COBOWL3P.js";import"./chunk-ZYGZ4VN4.js";import"./chunk-UVYC4FWB.js";import"./chunk-IQODEXPX.js";import"./chunk-ZQRLKIRW.js";import"./chunk-BC35GX6S.js";import"./chunk-VAYOWHUI.js";import"./chunk-5XUC5IOB.js";import{c as Co,f as a,h as Uo}from"./chunk-6JCPJA27.js";var Fe=a((tf,Ie)=>{"use strict";var Lo="Function.prototype.bind called on incompatible ",ko=Object.prototype.toString,zo=Math.max,Ho="[object Function]",Ee=function(r,t){for(var n=[],o=0;o<r.length;o+=1)n[o]=r[o];for(var i=0;i<t.length;i+=1)n[i+r.length]=t[i];return n},Ko=function(r,t){for(var n=[],o=t||0,i=0;o<r.length;o+=1,i+=1)n[i]=r[o];return n},Jo=function(e,r){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=r);return t};Ie.exports=function(r){var t=this;if(typeof t!="function"||ko.apply(t)!==Ho)throw new TypeError(Lo+t);for(var n=Ko(arguments,1),o,i=function(){if(this instanceof o){var y=t.apply(this,Ee(n,arguments));return Object(y)===y?y:this}return t.apply(r,Ee(n,arguments))},f=zo(0,t.length-n.length),l=[],u=0;u<f;u++)l[u]="$"+u;if(o=Function("binder","return function ("+Jo(l,",")+"){ return binder.apply(this,arguments); }")(i),t.prototype){var v=function(){};v.prototype=t.prototype,o.prototype=new v,v.prototype=null}return o}});var tr=a((nf,Te)=>{"use strict";var jo=Fe();Te.exports=Function.prototype.bind||jo});var De=a((of,Re)=>{"use strict";Re.exports=Error});var Ne=a((af,Be)=>{"use strict";Be.exports=EvalError});var Me=a((uf,_e)=>{"use strict";_e.exports=RangeError});var Ce=a((ff,We)=>{"use strict";We.exports=ReferenceError});var Ir=a((lf,Ue)=>{"use strict";Ue.exports=SyntaxError});var d=a((sf,Ge)=>{"use strict";Ge.exports=TypeError});var ke=a((pf,Le)=>{"use strict";Le.exports=URIError});var Fr=a((cf,ze)=>{"use strict";ze.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;r[t]=o;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var i=Object.getOwnPropertySymbols(r);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(r,t);if(f.value!==o||f.enumerable!==!0)return!1}return!0}});var Tr=a((yf,Ke)=>{"use strict";var He=typeof Symbol!="undefined"&&Symbol,Yo=Fr();Ke.exports=function(){return typeof He!="function"||typeof Symbol!="function"||typeof He("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Yo()}});var je=a((vf,Je)=>{"use strict";var Rr={__proto__:null,foo:{}},Xo=Object;Je.exports=function(){return{__proto__:Rr}.foo===Rr.foo&&!(Rr instanceof Xo)}});var Xe=a((gf,Ye)=>{"use strict";var Qo=Function.prototype.call,Vo=Object.prototype.hasOwnProperty,Zo=tr();Ye.exports=Zo.call(Qo,Vo)});var O=a((hf,et)=>{"use strict";var p,ri=De(),ei=Ne(),ti=Me(),ni=Ce(),C=Ir(),W=d(),oi=ke(),rt=Function,Dr=function(e){try{return rt('"use strict"; return ('+e+").constructor;")()}catch(r){}},D=Object.getOwnPropertyDescriptor;if(D)try{D({},"")}catch(e){D=null}var Br=function(){throw new W},ii=D?function(){try{return arguments.callee,Br}catch(e){try{return D(arguments,"callee").get}catch(r){return Br}}}():Br,_=Tr()(),ai=je()(),h=Object.getPrototypeOf||(ai?function(e){return e.__proto__}:null),M={},ui=typeof Uint8Array=="undefined"||!h?p:h(Uint8Array),B={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?p:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?p:ArrayBuffer,"%ArrayIteratorPrototype%":_&&h?h([][Symbol.iterator]()):p,"%AsyncFromSyncIteratorPrototype%":p,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":typeof Atomics=="undefined"?p:Atomics,"%BigInt%":typeof BigInt=="undefined"?p:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?p:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?p:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?p:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ri,"%eval%":eval,"%EvalError%":ei,"%Float32Array%":typeof Float32Array=="undefined"?p:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?p:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?p:FinalizationRegistry,"%Function%":rt,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array=="undefined"?p:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?p:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?p:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&h?h(h([][Symbol.iterator]())):p,"%JSON%":typeof JSON=="object"?JSON:p,"%Map%":typeof Map=="undefined"?p:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!_||!h?p:h(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?p:Promise,"%Proxy%":typeof Proxy=="undefined"?p:Proxy,"%RangeError%":ti,"%ReferenceError%":ni,"%Reflect%":typeof Reflect=="undefined"?p:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?p:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!_||!h?p:h(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?p:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&h?h(""[Symbol.iterator]()):p,"%Symbol%":_?Symbol:p,"%SyntaxError%":C,"%ThrowTypeError%":ii,"%TypedArray%":ui,"%TypeError%":W,"%Uint8Array%":typeof Uint8Array=="undefined"?p:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?p:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?p:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?p:Uint32Array,"%URIError%":oi,"%WeakMap%":typeof WeakMap=="undefined"?p:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?p:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?p:WeakSet};if(h)try{null.error}catch(e){Qe=h(h(e)),B["%Error.prototype%"]=Qe}var Qe,fi=function e(r){var t;if(r==="%AsyncFunction%")t=Dr("async function () {}");else if(r==="%GeneratorFunction%")t=Dr("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=Dr("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&h&&(t=h(o.prototype))}return B[r]=t,t},Ve={__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"]},H=tr(),nr=Xe(),li=H.call(Function.call,Array.prototype.concat),si=H.call(Function.apply,Array.prototype.splice),Ze=H.call(Function.call,String.prototype.replace),or=H.call(Function.call,String.prototype.slice),pi=H.call(Function.call,RegExp.prototype.exec),ci=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,yi=/\\(\\)?/g,vi=function(r){var t=or(r,0,1),n=or(r,-1);if(t==="%"&&n!=="%")throw new C("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new C("invalid intrinsic syntax, expected opening `%`");var o=[];return Ze(r,ci,function(i,f,l,u){o[o.length]=l?Ze(u,yi,"$1"):f||i}),o},gi=function(r,t){var n=r,o;if(nr(Ve,n)&&(o=Ve[n],n="%"+o[0]+"%"),nr(B,n)){var i=B[n];if(i===M&&(i=fi(n)),typeof i=="undefined"&&!t)throw new W("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new C("intrinsic "+r+" does not exist!")};et.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new W("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new W('"allowMissing" argument must be a boolean');if(pi(/^%?[^%]*%?$/,r)===null)throw new C("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=vi(r),o=n.length>0?n[0]:"",i=gi("%"+o+"%",t),f=i.name,l=i.value,u=!1,v=i.alias;v&&(o=v[0],si(n,li([0,1],v)));for(var y=1,c=!0;y<n.length;y+=1){var s=n[y],m=or(s,0,1),A=or(s,-1);if((m==='"'||m==="'"||m==="`"||A==='"'||A==="'"||A==="`")&&m!==A)throw new C("property names with quotes must have matching quotes");if((s==="constructor"||!c)&&(u=!0),o+="."+s,f="%"+o+"%",nr(B,f))l=B[f];else if(l!=null){if(!(s in l)){if(!t)throw new W("base intrinsic for "+r+" exists, but the property is not available.");return}if(D&&y+1>=n.length){var g=D(l,s);c=!!g,c&&"get"in g&&!("originalValue"in g.get)?l=g.get:l=l[s]}else c=nr(l,s),l=l[s];c&&!u&&(B[f]=l)}}return l}});var ar=a((df,tt)=>{"use strict";var hi=O(),ir=hi("%Object.defineProperty%",!0)||!1;if(ir)try{ir({},"a",{value:1})}catch(e){ir=!1}tt.exports=ir});var Nr=a((Sf,nt)=>{"use strict";var di=O(),ur=di("%Object.getOwnPropertyDescriptor%",!0);if(ur)try{ur([],"length")}catch(e){ur=null}nt.exports=ur});var _r=a((mf,at)=>{"use strict";var ot=ar(),Si=Ir(),U=d(),it=Nr();at.exports=function(r,t,n){if(!r||typeof r!="object"&&typeof r!="function")throw new U("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new U("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new U("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new U("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new U("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new U("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,l=arguments.length>6?arguments[6]:!1,u=!!it&&it(r,t);if(ot)ot(r,t,{configurable:f===null&&u?u.configurable:!f,enumerable:o===null&&u?u.enumerable:!o,value:n,writable:i===null&&u?u.writable:!i});else if(l||!o&&!i&&!f)r[t]=n;else throw new Si("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Wr=a((bf,ft)=>{"use strict";var Mr=ar(),ut=function(){return!!Mr};ut.hasArrayLengthDefineBug=function(){if(!Mr)return null;try{return Mr([],"length",{value:1}).length!==1}catch(r){return!0}};ft.exports=ut});var yt=a((Af,ct)=>{"use strict";var mi=O(),lt=_r(),bi=Wr()(),st=Nr(),pt=d(),Ai=mi("%Math.floor%");ct.exports=function(r,t){if(typeof r!="function")throw new pt("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||Ai(t)!==t)throw new pt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in r&&st){var f=st(r,"length");f&&!f.configurable&&(o=!1),f&&!f.writable&&(i=!1)}return(o||i||!n)&&(bi?lt(r,"length",t,!0,!0):lt(r,"length",t)),r}});var sr=a((wf,fr)=>{"use strict";var Cr=tr(),lr=O(),wi=yt(),Oi=d(),ht=lr("%Function.prototype.apply%"),dt=lr("%Function.prototype.call%"),St=lr("%Reflect.apply%",!0)||Cr.call(dt,ht),vt=ar(),qi=lr("%Math.max%");fr.exports=function(r){if(typeof r!="function")throw new Oi("a function is required");var t=St(Cr,dt,arguments);return wi(t,1+qi(0,r.length-(arguments.length-1)),!0)};var gt=function(){return St(Cr,ht,arguments)};vt?vt(fr.exports,"apply",{value:gt}):fr.exports.apply=gt});var Ur=a((Of,bt)=>{"use strict";var mt=Object.prototype.toString;bt.exports=function(r){var t=mt.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&mt.call(r.callee)==="[object Function]"),n}});var It=a((qf,Et)=>{"use strict";var Pt;Object.keys||(K=Object.prototype.hasOwnProperty,Gr=Object.prototype.toString,At=Ur(),Lr=Object.prototype.propertyIsEnumerable,wt=!Lr.call({toString:null},"toString"),Ot=Lr.call(function(){},"prototype"),J=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],pr=function(e){var r=e.constructor;return r&&r.prototype===e},qt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},$t=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!qt["$"+e]&&K.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{pr(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),xt=function(e){if(typeof window=="undefined"||!$t)return pr(e);try{return pr(e)}catch(r){return!1}},Pt=function(r){var t=r!==null&&typeof r=="object",n=Gr.call(r)==="[object Function]",o=At(r),i=t&&Gr.call(r)==="[object String]",f=[];if(!t&&!n&&!o)throw new TypeError("Object.keys called on a non-object");var l=Ot&&n;if(i&&r.length>0&&!K.call(r,0))for(var u=0;u<r.length;++u)f.push(String(u));if(o&&r.length>0)for(var v=0;v<r.length;++v)f.push(String(v));else for(var y in r)!(l&&y==="prototype")&&K.call(r,y)&&f.push(String(y));if(wt)for(var c=xt(r),s=0;s<J.length;++s)!(c&&J[s]==="constructor")&&K.call(r,J[s])&&f.push(J[s]);return f});var K,Gr,At,Lr,wt,Ot,J,pr,qt,$t,xt;Et.exports=Pt});var Dt=a(($f,Rt)=>{"use strict";var $i=Array.prototype.slice,xi=Ur(),Ft=Object.keys,cr=Ft?function(r){return Ft(r)}:It(),Tt=Object.keys;cr.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return xi(n)?Tt($i.call(n)):Tt(n)})}else Object.keys=cr;return Object.keys||cr};Rt.exports=cr});var j=a((xf,Mt)=>{"use strict";var Pi=Dt(),Ei=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Ii=Object.prototype.toString,Fi=Array.prototype.concat,Bt=_r(),Ti=function(e){return typeof e=="function"&&Ii.call(e)==="[object Function]"},Nt=Wr()(),Ri=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!Ti(n)||!n())return}Nt?Bt(e,r,t,!0):Bt(e,r,t)},_t=function(e,r){var t=arguments.length>2?arguments[2]:{},n=Pi(r);Ei&&(n=Fi.call(n,Object.getOwnPropertySymbols(r)));for(var o=0;o<n.length;o+=1)Ri(e,n[o],r[n[o]],t[n[o]])};_t.supportsDescriptors=!!Nt;Mt.exports=_t});var q=a((Pf,Ut)=>{"use strict";var Wt=O(),Ct=sr(),Di=Ct(Wt("String.prototype.indexOf"));Ut.exports=function(r,t){var n=Wt(r,!!t);return typeof n=="function"&&Di(r,".prototype.")>-1?Ct(n):n}});var kt=a((Ef,Lt)=>{"use strict";var Bi=O(),Gt=Bi("%Array%"),Ni=!Gt.isArray&&q()("Object.prototype.toString");Lt.exports=Gt.isArray||function(r){return Ni(r)==="[object Array]"}});var kr=a((If,zt)=>{"use strict";zt.exports=kt()});var Kt=a((Ff,Ht)=>{"use strict";var _i=O(),Mi=q(),Wi=d(),Ci=kr(),Ui=_i("%Reflect.apply%",!0)||Mi("Function.prototype.apply");Ht.exports=function(r,t){var n=arguments.length>2?arguments[2]:[];if(!Ci(n))throw new Wi("Assertion failed: optional `argumentsList`, if provided, must be a List");return Ui(r,t,n)}});var jt=a((Tf,Jt)=>{"use strict";Jt.exports=Co("util").inspect});var V=a((Rf,vn)=>{"use strict";var Zr=typeof Map=="function"&&Map.prototype,zr=Object.getOwnPropertyDescriptor&&Zr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,vr=Zr&&zr&&typeof zr.get=="function"?zr.get:null,Yt=Zr&&Map.prototype.forEach,re=typeof Set=="function"&&Set.prototype,Hr=Object.getOwnPropertyDescriptor&&re?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,gr=re&&Hr&&typeof Hr.get=="function"?Hr.get:null,Xt=re&&Set.prototype.forEach,Gi=typeof WeakMap=="function"&&WeakMap.prototype,X=Gi?WeakMap.prototype.has:null,Li=typeof WeakSet=="function"&&WeakSet.prototype,Q=Li?WeakSet.prototype.has:null,ki=typeof WeakRef=="function"&&WeakRef.prototype,Qt=ki?WeakRef.prototype.deref:null,zi=Boolean.prototype.valueOf,Hi=Object.prototype.toString,Ki=Function.prototype.toString,Ji=String.prototype.match,ee=String.prototype.slice,F=String.prototype.replace,ji=String.prototype.toUpperCase,Vt=String.prototype.toLowerCase,fn=RegExp.prototype.test,Zt=Array.prototype.concat,$=Array.prototype.join,Yi=Array.prototype.slice,rn=Math.floor,jr=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Kr=Object.getOwnPropertySymbols,Yr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,G=typeof Symbol=="function"&&typeof Symbol.iterator=="object",S=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===G||!0)?Symbol.toStringTag:null,ln=Object.prototype.propertyIsEnumerable,en=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function tn(e,r){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||fn.call(/e/,r))return r;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-rn(-e):rn(e);if(n!==e){var o=String(n),i=ee.call(r,o.length+1);return F.call(o,t,"$&_")+"."+F.call(F.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return F.call(r,t,"$&_")}var Xr=jt(),nn=Xr.custom,on=pn(nn)?nn:null;vn.exports=function e(r,t,n,o){var i=t||{};if(I(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=I(i,"customInspect")?i.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(I(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(I(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=i.numericSeparator;if(typeof r=="undefined")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return yn(r,i);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var u=String(r);return l?tn(r,u):u}if(typeof r=="bigint"){var v=String(r)+"n";return l?tn(r,v):v}var y=typeof i.depth=="undefined"?5:i.depth;if(typeof n=="undefined"&&(n=0),n>=y&&y>0&&typeof r=="object")return Qr(r)?"[Array]":"[Object]";var c=ya(i,n);if(typeof o=="undefined")o=[];else if(cn(o,r)>=0)return"[Circular]";function s(N,er,Wo){if(er&&(o=Yi.call(o),o.push(er)),Wo){var Pe={depth:i.depth};return I(i,"quoteStyle")&&(Pe.quoteStyle=i.quoteStyle),e(N,Pe,n+1,o)}return e(N,i,n+1,o)}if(typeof r=="function"&&!an(r)){var m=oa(r),A=yr(r,s);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(A.length>0?" { "+$.call(A,", ")+" }":"")}if(pn(r)){var g=G?F.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Yr.call(r);return typeof r=="object"&&!G?Y(g):g}if(sa(r)){for(var b="<"+Vt.call(String(r.nodeName)),w=r.attributes||[],x=0;x<w.length;x++)b+=" "+w[x].name+"="+sn(Xi(w[x].value),"double",i);return b+=">",r.childNodes&&r.childNodes.length&&(b+="..."),b+="</"+Vt.call(String(r.nodeName))+">",b}if(Qr(r)){if(r.length===0)return"[]";var R=yr(r,s);return c&&!ca(R)?"["+Vr(R,c)+"]":"[ "+$.call(R,", ")+" ]"}if(Vi(r)){var z=yr(r,s);return!("cause"in Error.prototype)&&"cause"in r&&!ln.call(r,"cause")?"{ ["+String(r)+"] "+$.call(Zt.call("[cause]: "+s(r.cause),z),", ")+" }":z.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+$.call(z,", ")+" }"}if(typeof r=="object"&&f){if(on&&typeof r[on]=="function"&&Xr)return Xr(r,{depth:y-n});if(f!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(ia(r)){var rr=[];return Yt&&Yt.call(r,function(N,er){rr.push(s(er,r,!0)+" => "+s(N,r))}),un("Map",vr.call(r),rr,c)}if(fa(r)){var qe=[];return Xt&&Xt.call(r,function(N){qe.push(s(N,r))}),un("Set",gr.call(r),qe,c)}if(aa(r))return Jr("WeakMap");if(la(r))return Jr("WeakSet");if(ua(r))return Jr("WeakRef");if(ra(r))return Y(s(Number(r)));if(ta(r))return Y(s(jr.call(r)));if(ea(r))return Y(zi.call(r));if(Zi(r))return Y(s(String(r)));if(typeof window!="undefined"&&r===window)return"{ [object Window] }";if(r===global)return"{ [object globalThis] }";if(!Qi(r)&&!an(r)){var xr=yr(r,s),$e=en?en(r)===Object.prototype:r instanceof Object||r.constructor===Object,Pr=r instanceof Object?"":"null prototype",xe=!$e&&S&&Object(r)===r&&S in r?ee.call(T(r),8,-1):Pr?"Object":"",Mo=$e||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",Er=Mo+(xe||Pr?"["+$.call(Zt.call([],xe||[],Pr||[]),": ")+"] ":"");return xr.length===0?Er+"{}":c?Er+"{"+Vr(xr,c)+"}":Er+"{ "+$.call(xr,", ")+" }"}return String(r)};function sn(e,r,t){var n=(t.quoteStyle||r)==="double"?'"':"'";return n+e+n}function Xi(e){return F.call(String(e),/"/g,"&quot;")}function Qr(e){return T(e)==="[object Array]"&&(!S||!(typeof e=="object"&&S in e))}function Qi(e){return T(e)==="[object Date]"&&(!S||!(typeof e=="object"&&S in e))}function an(e){return T(e)==="[object RegExp]"&&(!S||!(typeof e=="object"&&S in e))}function Vi(e){return T(e)==="[object Error]"&&(!S||!(typeof e=="object"&&S in e))}function Zi(e){return T(e)==="[object String]"&&(!S||!(typeof e=="object"&&S in e))}function ra(e){return T(e)==="[object Number]"&&(!S||!(typeof e=="object"&&S in e))}function ea(e){return T(e)==="[object Boolean]"&&(!S||!(typeof e=="object"&&S in e))}function pn(e){if(G)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Yr)return!1;try{return Yr.call(e),!0}catch(r){}return!1}function ta(e){if(!e||typeof e!="object"||!jr)return!1;try{return jr.call(e),!0}catch(r){}return!1}var na=Object.prototype.hasOwnProperty||function(e){return e in this};function I(e,r){return na.call(e,r)}function T(e){return Hi.call(e)}function oa(e){if(e.name)return e.name;var r=Ji.call(Ki.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}function cn(e,r){if(e.indexOf)return e.indexOf(r);for(var t=0,n=e.length;t<n;t++)if(e[t]===r)return t;return-1}function ia(e){if(!vr||!e||typeof e!="object")return!1;try{vr.call(e);try{gr.call(e)}catch(r){return!0}return e instanceof Map}catch(r){}return!1}function aa(e){if(!X||!e||typeof e!="object")return!1;try{X.call(e,X);try{Q.call(e,Q)}catch(r){return!0}return e instanceof WeakMap}catch(r){}return!1}function ua(e){if(!Qt||!e||typeof e!="object")return!1;try{return Qt.call(e),!0}catch(r){}return!1}function fa(e){if(!gr||!e||typeof e!="object")return!1;try{gr.call(e);try{vr.call(e)}catch(r){return!0}return e instanceof Set}catch(r){}return!1}function la(e){if(!Q||!e||typeof e!="object")return!1;try{Q.call(e,Q);try{X.call(e,X)}catch(r){return!0}return e instanceof WeakSet}catch(r){}return!1}function sa(e){return!e||typeof e!="object"?!1:typeof HTMLElement!="undefined"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function yn(e,r){if(e.length>r.maxStringLength){var t=e.length-r.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return yn(ee.call(e,0,r.maxStringLength),r)+n}var o=F.call(F.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,pa);return sn(o,"single",r)}function pa(e){var r=e.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return t?"\\"+t:"\\x"+(r<16?"0":"")+ji.call(r.toString(16))}function Y(e){return"Object("+e+")"}function Jr(e){return e+" { ? }"}function un(e,r,t,n){var o=n?Vr(t,n):$.call(t,", ");return e+" ("+r+") {"+o+"}"}function ca(e){for(var r=0;r<e.length;r++)if(cn(e[r],`
2
+ `)>=0)return!1;return!0}function ya(e,r){var t;if(e.indent===" ")t=" ";else if(typeof e.indent=="number"&&e.indent>0)t=$.call(Array(e.indent+1)," ");else return null;return{base:t,prev:$.call(Array(r+1),t)}}function Vr(e,r){if(e.length===0)return"";var t=`
3
+ `+r.prev+r.base;return t+$.call(e,","+t)+`
4
+ `+r.prev}function yr(e,r){var t=Qr(e),n=[];if(t){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=I(e,o)?r(e[o],e):""}var i=typeof Kr=="function"?Kr(e):[],f;if(G){f={};for(var l=0;l<i.length;l++)f["$"+i[l]]=i[l]}for(var u in e)I(e,u)&&(t&&String(Number(u))===u&&u<e.length||G&&f["$"+u]instanceof Symbol||(fn.call(/[^\w$]/,u)?n.push(r(u,e)+": "+r(e[u],e)):n.push(u+": "+r(e[u],e))));if(typeof Kr=="function")for(var v=0;v<i.length;v++)ln.call(e,i[v])&&n.push("["+r(i[v])+"]: "+r(e[i[v]],e));return n}});var hr=a((Df,gn)=>{"use strict";gn.exports=function(r){return typeof r=="string"||typeof r=="symbol"}});var dn=a((Bf,hn)=>{"use strict";var va=d(),ga=V(),ha=hr();hn.exports=function(r,t){if(!ha(t))throw new va("Assertion failed: IsPropertyKey(P) is not true, got "+ga(t));return r[t]}});var An=a((Nf,bn)=>{"use strict";var mn=Function.prototype.toString,L=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ne,dr;if(typeof L=="function"&&typeof Object.defineProperty=="function")try{ne=Object.defineProperty({},"length",{get:function(){throw dr}}),dr={},L(function(){throw 42},null,ne)}catch(e){e!==dr&&(L=null)}else L=null;var da=/^\s*class\b/,oe=function(r){try{var t=mn.call(r);return da.test(t)}catch(n){return!1}},te=function(r){try{return oe(r)?!1:(mn.call(r),!0)}catch(t){return!1}},Sr=Object.prototype.toString,Sa="[object Object]",ma="[object Function]",ba="[object GeneratorFunction]",Aa="[object HTMLAllCollection]",wa="[object HTML document.all class]",Oa="[object HTMLCollection]",qa=typeof Symbol=="function"&&!!Symbol.toStringTag,$a=!(0 in[,]),ie=function(){return!1};typeof document=="object"&&(Sn=document.all,Sr.call(Sn)===Sr.call(document.all)&&(ie=function(r){if(($a||!r)&&(typeof r=="undefined"||typeof r=="object"))try{var t=Sr.call(r);return(t===Aa||t===wa||t===Oa||t===Sa)&&r("")==null}catch(n){}return!1}));var Sn;bn.exports=L?function(r){if(ie(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;try{L(r,null,ne)}catch(t){if(t!==dr)return!1}return!oe(r)&&te(r)}:function(r){if(ie(r))return!0;if(!r||typeof r!="function"&&typeof r!="object")return!1;if(qa)return te(r);if(oe(r))return!1;var t=Sr.call(r);return t!==ma&&t!==ba&&!/^\[object HTML/.test(t)?!1:te(r)}});var ae=a((_f,wn)=>{"use strict";wn.exports=An()});var xn=a((Mf,$n)=>{"use strict";var On=d(),xa=dn(),Pa=ae(),Ea=hr(),qn=V();$n.exports=function(r,t){if(!Ea(t))throw new On("Assertion failed: IsPropertyKey(P) is not true");var n=xa(r,t);if(n!=null){if(!Pa(n))throw new On(qn(t)+" is not a function: "+qn(n));return n}}});var En=a((Wf,Pn)=>{"use strict";var Ia=Fr();Pn.exports=function(){return Ia()&&!!Symbol.toStringTag}});var se=a((Cf,Rn)=>{"use strict";var ue=q(),In=En()(),Fn,Tn,fe,le;In&&(Fn=ue("Object.prototype.hasOwnProperty"),Tn=ue("RegExp.prototype.exec"),fe={},mr=function(){throw fe},le={toString:mr,valueOf:mr},typeof Symbol.toPrimitive=="symbol"&&(le[Symbol.toPrimitive]=mr));var mr,Fa=ue("Object.prototype.toString"),Ta=Object.getOwnPropertyDescriptor,Ra="[object RegExp]";Rn.exports=In?function(r){if(!r||typeof r!="object")return!1;var t=Ta(r,"lastIndex"),n=t&&Fn(t,"value");if(!n)return!1;try{Tn(r,le)}catch(o){return o===fe}}:function(r){return!r||typeof r!="object"&&typeof r!="function"?!1:Fa(r)===Ra}});var pe=a((Uf,Dn)=>{"use strict";var Da=q(),Ba=se(),Na=Da("RegExp.prototype.exec"),_a=d();Dn.exports=function(r){if(!Ba(r))throw new _a("`regex` must be a RegExp");return function(n){return Na(r,n)!==null}}});var Nn=a((Gf,Bn)=>{"use strict";Bn.exports=function(r,t){for(var n=0;n<r.length;n+=1)if(!t(r[n],n,r))return!1;return!0}});var Mn=a((Lf,_n)=>{"use strict";_n.exports=function(r){if(r===null)return"Null";if(typeof r=="undefined")return"Undefined";if(typeof r=="function"||typeof r=="object")return"Object";if(typeof r=="number")return"Number";if(typeof r=="boolean")return"Boolean";if(typeof r=="string")return"String"}});var ce=a((kf,Wn)=>{"use strict";var Ma=Mn();Wn.exports=function(r){return typeof r=="symbol"?"Symbol":typeof r=="bigint"?"BigInt":Ma(r)}});var Gn=a((zf,Un)=>{"use strict";var Cn=d(),Wa=V(),Ca=hr(),Ua=ce();Un.exports=function(r,t){if(Ua(r)!=="Object")throw new Cn("Assertion failed: Type(O) is not Object");if(!Ca(t))throw new Cn("Assertion failed: IsPropertyKey(P) is not true, got "+Wa(t));return r[t]}});var kn=a((Hf,Ln)=>{"use strict";var Ga=O();Ln.exports=Ga("%Math.min%")});var ye=a((Kf,zn)=>{"use strict";zn.exports=Number.isNaN||function(r){return r!==r}});var Kn=a((Jf,Hn)=>{"use strict";var La=ye();Hn.exports=function(e){return(typeof e=="number"||typeof e=="bigint")&&!La(e)&&e!==1/0&&e!==-1/0}});var br=a((jf,jn)=>{"use strict";var Jn=O(),ka=Jn("%Math.abs%"),za=Jn("%Math.floor%"),Ha=ye(),Ka=Kn();jn.exports=function(r){if(typeof r!="number"||Ha(r)||!Ka(r))return!1;var t=ka(r);return za(t)===t}});var ge=a((Yf,Yn)=>{"use strict";var Ja=q(),ve=d(),ja=br(),Ya=Ja("String.prototype.slice");Yn.exports=function(r,t,n){if(typeof r!="string")throw new ve("Assertion failed: `string` must be a String");if(typeof t!="string")throw new ve("Assertion failed: `searchValue` must be a String");if(!ja(n)||n<0)throw new ve("Assertion failed: `fromIndex` must be a non-negative integer");var o=r.length;if(t===""&&n<=o)return n;for(var i=t.length,f=n;f<=o-i;f+=1){var l=Ya(r,f,f+i);if(l===t)return f}return-1}});var Ar=a((Xf,Xn)=>{"use strict";var Xa=d();Xn.exports=function(r){if(r==null)throw new Xa(arguments.length>0&&arguments[1]||"Cannot call method on "+r);return r}});var wr=a((Qf,Qn)=>{"use strict";var Qa=O(),Va=Qa("%String%"),Za=d();Qn.exports=function(r){if(typeof r=="symbol")throw new Za("Cannot convert a Symbol value to a string");return Va(r)}});var he=a((Vf,ro)=>{"use strict";var ru=Ar(),eu=wr(),tu=q(),Vn=tu("String.prototype.replace"),Zn=/^\s$/.test("\u180E"),nu=Zn?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,ou=Zn?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;ro.exports=function(){var r=eu(ru(this));return Vn(Vn(r,nu,""),ou,"")}});var de=a((Zf,to)=>{"use strict";var iu=he(),eo="\u200B",k="\u180E";to.exports=function(){return String.prototype.trim&&eo.trim()===eo&&k.trim()===k&&("_"+k).trim()==="_"+k&&(k+"_").trim()===k+"_"?String.prototype.trim:iu}});var oo=a((rl,no)=>{"use strict";var au=j(),uu=de();no.exports=function(){var r=uu();return au(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r}});var fo=a((el,uo)=>{"use strict";var fu=sr(),lu=j(),su=Ar(),pu=he(),io=de(),cu=oo(),yu=fu(io()),ao=function(r){return su(r),yu(r)};lu(ao,{getPolyfill:io,implementation:pu,shim:cu});uo.exports=ao});var co=a((tl,po)=>{"use strict";var me=O(),Se=me("%Number%"),vu=me("%RegExp%"),gu=d(),lo=me("%parseInt%"),hu=q(),Or=pe(),so=hu("String.prototype.slice"),du=Or(/^0b[01]+$/i),Su=Or(/^0o[0-7]+$/i),mu=Or(/^[-+]0x[0-9a-f]+$/i),bu=["\x85","\u200B","\uFFFE"].join(""),Au=new vu("["+bu+"]","g"),wu=Or(Au),Ou=fo();po.exports=function e(r){if(typeof r!="string")throw new gu("Assertion failed: `argument` is not a String");if(du(r))return Se(lo(so(r,2),2));if(Su(r))return Se(lo(so(r,2),8));if(wu(r)||mu(r))return NaN;var t=Ou(r);return t!==r?e(t):Se(r)}});var go=a((nl,vo)=>{"use strict";var qu=d(),yo=br(),$u=q(),xu=$u("String.prototype.slice");vo.exports=function(r,t,n){if(typeof r!="string"||!yo(t)||arguments.length>2&&!yo(n))throw new qu("`S` must be a String, and `inclusiveStart` and `exclusiveEnd` must be integers");return xu(r,t,arguments.length>2?n:r.length)}});var So=a((ol,ho)=>{"use strict";ho.exports=function(r){return typeof r=="string"||typeof r=="undefined"}});var bo=a((il,mo)=>{"use strict";var Pu=q()("String.prototype.slice");mo.exports=function(r,t){return r===t?!0:r.length>t.length?!1:Pu(t,0,r.length)===r}});var $o=a((al,qo)=>{"use strict";var P=d(),Oo=pe(),Eu=Nn(),be=V(),Iu=Gn(),Fu=kr(),Tu=kn(),Ru=ge(),Ao=co(),E=go(),Du=wr(),wo=ce(),Bu=br(),Nu=So(),Z=bo(),_u=Oo(/^\$[0-9]/),Mu=Oo(/^\$[0-9][0-9]/);qo.exports=function(r,t,n,o,i,f){if(typeof r!="string")throw new P("Assertion failed: `matched` must be a String");if(typeof t!="string")throw new P("Assertion failed: `str` must be a String");if(!Bu(n)||n<0)throw new P("Assertion failed: `position` must be a nonnegative integer, got "+be(n));if(!Fu(o)||!Eu(o,Nu))throw new P("Assertion failed: `captures` must be a possibly-empty List of Strings or `undefined`, got "+be(o));if(typeof i!="undefined"&&wo(i)!=="Object")throw new P("Assertion failed: `namedCaptures` must be `undefined` or an Object");if(typeof f!="string")throw new P("Assertion failed: `replacementTemplate` must be a String");var l=t.length;if(n>l)throw new P("Assertion failed: position > stringLength, got "+be(n));for(var u=f,v="";u!=="";){var y,c,s;if(Z("$$",u))y="$$",c="$";else if(Z("$`",u))y="$`",c=E(t,0,n);else if(Z("$&",u))y="$&",c=r;else if(Z("$'",u)){y="$'";var m=r.length,A=n+m;c=E(t,Tu(A,l))}else if(_u(u)){var g=Mu(u)?2:1,b=E(u,1,1+g),w=Ao(b);if(w<0||w>99)throw new P("Assertion failed: `index` must be >= 0 and <= 99");var x=o.length;w>x&&g===2&&(g=1,b=E(b,0,1),w=Ao(b)),y=E(u,0,1+g),1<=w&&w<=x?(s=o[w-1],typeof s=="undefined"?c="":c=s):c=y}else if(Z("$<",u)){var R=Ru(u,">",0);if(R===-1||typeof i=="undefined")y="$<",c=y;else{y=E(u,0,R+1);var z=E(u,2,R);if(wo(i)!=="Object")throw new P("Assertion failed: Type(namedCaptures) is not Object");s=Iu(i,z),typeof s=="undefined"?c="":c=Du(s)}}else y=E(u,0,1),c=y;var rr=y.length;u=E(u,rr),v+=c}return v}});var we=a((ul,Io)=>{"use strict";var xo=Kt(),Wu=xn(),Cu=$o(),Uu=ae(),Gu=Ar(),qr=wr(),Po=ge(),Lu=O(),$r=q(),ku=Tr()(),zu=se(),Hu=Lu("%Math.max%"),Eo=d(),Ku=$r("Array.prototype.push"),Ae=$r("String.prototype.slice"),Ju=$r("String.prototype.indexOf"),ju=$r("String.prototype.replace");Io.exports=function(r,t){var n=Gu(this),o=zu(r);if(o&&Ju(Ae(r,r.source.length+2),"g")===-1)throw new Eo("use .replace for a non-global regex. NOTE: this may be allowed in the future.");if(ku&&Symbol.replace){if(r!=null){var i=Wu(r,Symbol.replace);if(typeof i!="undefined")return xo(i,r,[n,t])}}else if(o)return ju(n,r,t);var f=qr(n),l=qr(r),u=Uu(t);u||(t=qr(t));for(var v=l.length,y=Hu(1,v),c=[],s=Po(f,l,0);s!==-1;)Ku(c,s),s=Po(f,l,s+y);for(var m=0,A="",g=0;g<c.length;g+=1){var b;if(u)b=qr(xo(t,void 0,[l,c[g],f]));else{if(typeof t!="string")throw new Eo("Assertion failed: `replaceValue` should be a string at this point");var w=[];b=Cu(l,f,c[g],w,void 0,t)}var x=Ae(f,m,c[g]);A+=x+b,m=c[g]+v}return m<f.length&&(A+=Ae(f,m)),A}});var Oe=a((fl,Fo)=>{"use strict";var Yu=we();Fo.exports=function(){return String.prototype.replaceAll||Yu}});var Ro=a((ll,To)=>{"use strict";var Xu=j(),Qu=Oe();To.exports=function(){var r=Qu();return Xu(String.prototype,{replaceAll:r},{replaceAll:function(){return String.prototype.replaceAll!==r}}),r}});var _o=a((sl,No)=>{"use strict";var Vu=sr(),Zu=j(),Do=we(),rf=Oe(),ef=Ro(),Bo=Vu(Do);Zu(Bo,{getPolyfill:rf,implementation:Do,shim:ef});No.exports=Bo});var pl=Uo(_o(),1);export{Go as DynamicSnippetsGenerator};
package/package.json CHANGED
@@ -1,15 +1,27 @@
1
1
  {
2
2
  "name": "@fern-api/go-dynamic-snippets",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",
7
7
  "directory": "generators/go-v2/dynamic-snippets"
8
8
  },
9
- "main": "index.cjs",
10
- "types": "index.d.ts",
9
+ "type": "module",
10
+ "exports": {
11
+ "import": {
12
+ "types": "./esm/index.d.ts",
13
+ "default": "./esm/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./cjs/index.d.cts",
17
+ "default": "./cjs/index.cjs"
18
+ }
19
+ },
20
+ "main": "./cjs/index.cjs",
21
+ "module": "./esm/index.js",
22
+ "types": "./cjs/index.d.cts",
11
23
  "files": [
12
- "index.cjs",
13
- "index.d.ts"
24
+ "cjs",
25
+ "esm"
14
26
  ]
15
- }
27
+ }