@fern-api/swift-dynamic-snippets 0.1.0

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 (87) hide show
  1. package/cjs/Config.cjs +12 -0
  2. package/cjs/Config.cjs.map +1 -0
  3. package/cjs/Config.d.cts +4 -0
  4. package/cjs/DynamicSnippetsGenerator.cjs +23 -0
  5. package/cjs/DynamicSnippetsGenerator.cjs.map +1 -0
  6. package/cjs/DynamicSnippetsGenerator.d.cts +18 -0
  7. package/cjs/EndpointSnippetGenerator.cjs +12 -0
  8. package/cjs/EndpointSnippetGenerator.cjs.map +1 -0
  9. package/cjs/EndpointSnippetGenerator.d.cts +54 -0
  10. package/cjs/context/DynamicSnippetsGeneratorContext.cjs +23 -0
  11. package/cjs/context/DynamicSnippetsGeneratorContext.cjs.map +1 -0
  12. package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +4 -0
  13. package/cjs/context/DynamicTypeLiteralMapper.cjs +23 -0
  14. package/cjs/context/DynamicTypeLiteralMapper.cjs.map +1 -0
  15. package/cjs/context/DynamicTypeLiteralMapper.d.cts +4 -0
  16. package/cjs/context/DynamicTypeMapper.cjs +23 -0
  17. package/cjs/context/DynamicTypeMapper.cjs.map +1 -0
  18. package/cjs/context/DynamicTypeMapper.d.cts +4 -0
  19. package/cjs/context/FilePropertyMapper.cjs +12 -0
  20. package/cjs/context/FilePropertyMapper.cjs.map +1 -0
  21. package/cjs/context/FilePropertyMapper.d.cts +4 -0
  22. package/cjs/context/index.cjs +23 -0
  23. package/cjs/context/index.cjs.map +1 -0
  24. package/cjs/context/index.d.cts +4 -0
  25. package/cjs/index-DS-GXEiz.d.cts +89 -0
  26. package/cjs/index.cjs +35 -0
  27. package/cjs/index.cjs.map +1 -0
  28. package/cjs/index.d.cts +7 -0
  29. package/cjs/util/pascal-case.cjs +23 -0
  30. package/cjs/util/pascal-case.cjs.map +1 -0
  31. package/cjs/util/pascal-case.d.cts +3 -0
  32. package/esm/Config.d.ts +4 -0
  33. package/esm/Config.js +2 -0
  34. package/esm/Config.js.map +1 -0
  35. package/esm/DynamicSnippetsGenerator.d.ts +18 -0
  36. package/esm/DynamicSnippetsGenerator.js +2 -0
  37. package/esm/DynamicSnippetsGenerator.js.map +1 -0
  38. package/esm/EndpointSnippetGenerator.d.ts +54 -0
  39. package/esm/EndpointSnippetGenerator.js +2 -0
  40. package/esm/EndpointSnippetGenerator.js.map +1 -0
  41. package/esm/chunk-243PMR4C.js +2 -0
  42. package/esm/chunk-243PMR4C.js.map +1 -0
  43. package/esm/chunk-4YR7VIA5.js +2 -0
  44. package/esm/chunk-4YR7VIA5.js.map +1 -0
  45. package/esm/chunk-7GLUP3NF.js +2 -0
  46. package/esm/chunk-7GLUP3NF.js.map +1 -0
  47. package/esm/chunk-BGT34OGK.js +15 -0
  48. package/esm/chunk-BGT34OGK.js.map +1 -0
  49. package/esm/chunk-F6NGJ242.js +2 -0
  50. package/esm/chunk-F6NGJ242.js.map +1 -0
  51. package/esm/chunk-JBDWOK23.js +2 -0
  52. package/esm/chunk-JBDWOK23.js.map +1 -0
  53. package/esm/chunk-NEAKFXXW.js +2 -0
  54. package/esm/chunk-NEAKFXXW.js.map +1 -0
  55. package/esm/chunk-NH2Q3QVN.js +2 -0
  56. package/esm/chunk-NH2Q3QVN.js.map +1 -0
  57. package/esm/chunk-P4BOVZKM.js +2 -0
  58. package/esm/chunk-P4BOVZKM.js.map +1 -0
  59. package/esm/chunk-PKOEJ7HU.js +12 -0
  60. package/esm/chunk-PKOEJ7HU.js.map +1 -0
  61. package/esm/chunk-QKXS634U.js +2 -0
  62. package/esm/chunk-QKXS634U.js.map +1 -0
  63. package/esm/chunk-T6A4SG7G.js +2 -0
  64. package/esm/chunk-T6A4SG7G.js.map +1 -0
  65. package/esm/context/DynamicSnippetsGeneratorContext.d.ts +4 -0
  66. package/esm/context/DynamicSnippetsGeneratorContext.js +2 -0
  67. package/esm/context/DynamicSnippetsGeneratorContext.js.map +1 -0
  68. package/esm/context/DynamicTypeLiteralMapper.d.ts +4 -0
  69. package/esm/context/DynamicTypeLiteralMapper.js +2 -0
  70. package/esm/context/DynamicTypeLiteralMapper.js.map +1 -0
  71. package/esm/context/DynamicTypeMapper.d.ts +4 -0
  72. package/esm/context/DynamicTypeMapper.js +2 -0
  73. package/esm/context/DynamicTypeMapper.js.map +1 -0
  74. package/esm/context/FilePropertyMapper.d.ts +4 -0
  75. package/esm/context/FilePropertyMapper.js +2 -0
  76. package/esm/context/FilePropertyMapper.js.map +1 -0
  77. package/esm/context/index.d.ts +4 -0
  78. package/esm/context/index.js +2 -0
  79. package/esm/context/index.js.map +1 -0
  80. package/esm/index-DS-GXEiz.d.ts +89 -0
  81. package/esm/index.d.ts +7 -0
  82. package/esm/index.js +14 -0
  83. package/esm/index.js.map +1 -0
  84. package/esm/util/pascal-case.d.ts +3 -0
  85. package/esm/util/pascal-case.js +2 -0
  86. package/esm/util/pascal-case.js.map +1 -0
  87. package/package.json +27 -0
@@ -0,0 +1,23 @@
1
+ "use strict";var W=Object.defineProperty;var _e=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Ne=Object.prototype.hasOwnProperty;var Me=(t,r,e)=>r in t?W(t,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[r]=e;var H=(t,r)=>()=>(t&&(r=t(t=0)),r);var Oe=(t,r)=>{for(var e in r)W(t,e,{get:r[e],enumerable:!0})},ke=(t,r,e,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let f of Ce(r))!Ne.call(t,f)&&f!==e&&W(t,f,{get:()=>r[f],enumerable:!(o=_e(r,f))||o.enumerable});return t};var Pe=t=>ke(W({},"__esModule",{value:!0}),t);var fr=(t,r,e)=>Me(t,typeof r!="symbol"?r+"":r,e);function nr(){throw new Error("setTimeout has not been defined")}function ir(){throw new Error("clearTimeout has not been defined")}function ur(t){if(S===setTimeout)return setTimeout(t,0);if((S===nr||!S)&&setTimeout)return S=setTimeout,setTimeout(t,0);try{return S(t,0)}catch(r){try{return S.call(null,t,0)}catch(e){return S.call(this,t,0)}}}function De(t){if(U===clearTimeout)return clearTimeout(t);if((U===ir||!U)&&clearTimeout)return U=clearTimeout,clearTimeout(t);try{return U(t)}catch(r){try{return U.call(null,t)}catch(e){return U.call(this,t)}}}function Le(){!k||!_||(k=!1,_.length?R=_.concat(R):F=-1,R.length&&sr())}function sr(){if(!k){var t=ur(Le);k=!0;for(var r=R.length;r;){for(_=R,R=[];++F<r;)_&&_[F].run();F=-1,r=R.length}_=null,k=!1,De(t)}}function Ye(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];R.push(new pr(t,r)),R.length===1&&!k&&ur(sr)}function pr(t,r){this.fun=t,this.array=r}function C(){}function tt(t){throw new Error("process.binding is not supported")}function ot(){return"/"}function ft(t){throw new Error("process.chdir is not supported")}function at(){return 0}function it(t){var r=nt.call(O)*.001,e=Math.floor(r),o=Math.floor(r%1*1e9);return t&&(e=e-t[0],o=o-t[1],o<0&&(e--,o+=1e9)),[e,o]}function st(){var t=new Date,r=t-ut;return r/1e3}var S,U,R,k,_,F,We,Fe,je,ze,Ge,Ve,Ze,Je,qe,He,Ke,Qe,Xe,$e,rt,et,O,nt,ut,x,ar,u=H(()=>{"use strict";S=nr,U=ir;typeof globalThis.setTimeout=="function"&&(S=setTimeout);typeof globalThis.clearTimeout=="function"&&(U=clearTimeout);R=[],k=!1,F=-1;pr.prototype.run=function(){this.fun.apply(null,this.array)};We="browser",Fe="browser",je=!0,ze={},Ge=[],Ve="",Ze={},Je={},qe={};He=C,Ke=C,Qe=C,Xe=C,$e=C,rt=C,et=C;O=globalThis.performance||{},nt=O.now||O.mozNow||O.msNow||O.oNow||O.webkitNow||function(){return new Date().getTime()};ut=new Date;x={nextTick:Ye,title:We,browser:je,env:ze,argv:Ge,version:Ve,versions:Ze,on:He,addListener:Ke,once:Qe,off:Xe,removeListener:$e,removeAllListeners:rt,emit:et,binding:tt,cwd:ot,chdir:ft,umask:at,hrtime:it,platform:Fe,release:Je,config:qe,uptime:st},ar={};Object.keys(ar).forEach(t=>{let r=t.split("."),e=x;for(let o=0;o<r.length;o++){let f=r[o];o===r.length-1?e[f]=ar[t]:e=e[f]||(e[f]={})}})});function dr(){Q=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=0,e=t.length;r<e;++r)v[r]=t[r],T[t.charCodeAt(r)]=r;T[45]=62,T[95]=63}function lt(t){Q||dr();var r,e,o,f,a,i,p=t.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");a=t[p-2]==="="?2:t[p-1]==="="?1:0,i=new pt(p*3/4-a),o=a>0?p-4:p;var l=0;for(r=0,e=0;r<o;r+=4,e+=3)f=T[t.charCodeAt(r)]<<18|T[t.charCodeAt(r+1)]<<12|T[t.charCodeAt(r+2)]<<6|T[t.charCodeAt(r+3)],i[l++]=f>>16&255,i[l++]=f>>8&255,i[l++]=f&255;return a===2?(f=T[t.charCodeAt(r)]<<2|T[t.charCodeAt(r+1)]>>4,i[l++]=f&255):a===1&&(f=T[t.charCodeAt(r)]<<10|T[t.charCodeAt(r+1)]<<4|T[t.charCodeAt(r+2)]>>2,i[l++]=f>>8&255,i[l++]=f&255),i}function xt(t){return v[t>>18&63]+v[t>>12&63]+v[t>>6&63]+v[t&63]}function mt(t,r,e){for(var o,f=[],a=r;a<e;a+=3)o=(t[a]<<16)+(t[a+1]<<8)+t[a+2],f.push(xt(o));return f.join("")}function lr(t){Q||dr();for(var r,e=t.length,o=e%3,f="",a=[],i=16383,p=0,l=e-o;p<l;p+=i)a.push(mt(t,p,p+i>l?l:p+i));return o===1?(r=t[e-1],f+=v[r>>2],f+=v[r<<4&63],f+="=="):o===2&&(r=(t[e-2]<<8)+t[e-1],f+=v[r>>10],f+=v[r>>4&63],f+=v[r<<2&63],f+="="),a.push(f),a.join("")}function j(){return n.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function b(t,r){if(j()<r)throw new RangeError("Invalid typed array length");return n.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r),t.__proto__=n.prototype):(t===null&&(t=new n(r)),t.length=r),t}function n(t,r,e){if(!n.TYPED_ARRAY_SUPPORT&&!(this instanceof n))return new n(t,r,e);if(typeof t=="number"){if(typeof r=="string")throw new Error("If encoding is specified then the first argument must be a string");return X(this,t)}return cr(this,t,r,e)}function cr(t,r,e,o){if(typeof r=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&r instanceof ArrayBuffer?ht(t,r,e,o):typeof r=="string"?ct(t,r,e):wt(t,r)}function hr(t){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function dt(t,r,e,o){return hr(r),r<=0?b(t,r):e!==void 0?typeof o=="string"?b(t,r).fill(e,o):b(t,r).fill(e):b(t,r)}function X(t,r){if(hr(r),t=b(t,r<0?0:$(r)|0),!n.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function ct(t,r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!n.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var o=wr(r,e)|0;t=b(t,o);var f=t.write(r,e);return f!==o&&(t=t.slice(0,f)),t}function K(t,r){var e=r.length<0?0:$(r.length)|0;t=b(t,e);for(var o=0;o<e;o+=1)t[o]=r[o]&255;return t}function ht(t,r,e,o){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(o||0))throw new RangeError("'length' is out of bounds");return e===void 0&&o===void 0?r=new Uint8Array(r):o===void 0?r=new Uint8Array(r,e):r=new Uint8Array(r,e,o),n.TYPED_ARRAY_SUPPORT?(t=r,t.__proto__=n.prototype):t=K(t,r),t}function wt(t,r){if(A(r)){var e=$(r.length)|0;return t=b(t,e),t.length===0||r.copy(t,0,0,e),t}if(r){if(typeof ArrayBuffer!="undefined"&&r.buffer instanceof ArrayBuffer||"length"in r)return typeof r.length!="number"||Pt(r.length)?b(t,0):K(t,r);if(r.type==="Buffer"&&Array.isArray(r.data))return K(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function $(t){if(t>=j())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+j().toString(16)+" bytes");return t|0}function A(t){return!!(t!=null&&t._isBuffer)}function wr(t,r){if(A(t))return t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;typeof t!="string"&&(t=""+t);var e=t.length;if(e===0)return 0;for(var o=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return Rr(t).length;default:if(o)return z(t).length;r=(""+r).toLowerCase(),o=!0}}function yt(t,r,e){var o=!1;if((r===void 0||r<0)&&(r=0),r>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,r>>>=0,e<=r))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ut(this,r,e);case"utf8":case"utf-8":return Tr(this,r,e);case"ascii":return It(this,r,e);case"latin1":case"binary":return St(this,r,e);case"base64":return Rt(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,r,e);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}function N(t,r,e){var o=t[r];t[r]=t[e],t[e]=o}function yr(t,r,e,o,f){if(t.length===0)return-1;if(typeof e=="string"?(o=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=f?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(f)return-1;e=t.length-1}else if(e<0)if(f)e=0;else return-1;if(typeof r=="string"&&(r=n.from(r,o)),A(r))return r.length===0?-1:xr(t,r,e,o,f);if(typeof r=="number")return r=r&255,n.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?f?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):xr(t,[r],e,o,f);throw new TypeError("val must be string, number or Buffer")}function xr(t,r,e,o,f){var a=1,i=t.length,p=r.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(t.length<2||r.length<2)return-1;a=2,i/=2,p/=2,e/=2}function l(g,M){return a===1?g[M]:g.readUInt16BE(M*a)}var d;if(f){var c=-1;for(d=e;d<i;d++)if(l(t,d)===l(r,c===-1?0:d-c)){if(c===-1&&(c=d),d-c+1===p)return c*a}else c!==-1&&(d-=d-c),c=-1}else for(e+p>i&&(e=i-p),d=e;d>=0;d--){for(var m=!0,E=0;E<p;E++)if(l(t,d+E)!==l(r,E)){m=!1;break}if(m)return d}return-1}function gt(t,r,e,o){e=Number(e)||0;var f=t.length-e;o?(o=Number(o),o>f&&(o=f)):o=f;var a=r.length;if(a%2!==0)throw new TypeError("Invalid hex string");o>a/2&&(o=a/2);for(var i=0;i<o;++i){var p=parseInt(r.substr(i*2,2),16);if(isNaN(p))return i;t[e+i]=p}return i}function Tt(t,r,e,o){return Z(z(r,t.length-e),t,e,o)}function gr(t,r,e,o){return Z(Ot(r),t,e,o)}function Et(t,r,e,o){return gr(t,r,e,o)}function vt(t,r,e,o){return Z(Rr(r),t,e,o)}function At(t,r,e,o){return Z(kt(r,t.length-e),t,e,o)}function Rt(t,r,e){return r===0&&e===t.length?lr(t):lr(t.slice(r,e))}function Tr(t,r,e){e=Math.min(t.length,e);for(var o=[],f=r;f<e;){var a=t[f],i=null,p=a>239?4:a>223?3:a>191?2:1;if(f+p<=e){var l,d,c,m;switch(p){case 1:a<128&&(i=a);break;case 2:l=t[f+1],(l&192)===128&&(m=(a&31)<<6|l&63,m>127&&(i=m));break;case 3:l=t[f+1],d=t[f+2],(l&192)===128&&(d&192)===128&&(m=(a&15)<<12|(l&63)<<6|d&63,m>2047&&(m<55296||m>57343)&&(i=m));break;case 4:l=t[f+1],d=t[f+2],c=t[f+3],(l&192)===128&&(d&192)===128&&(c&192)===128&&(m=(a&15)<<18|(l&63)<<12|(d&63)<<6|c&63,m>65535&&m<1114112&&(i=m))}}i===null?(i=65533,p=1):i>65535&&(i-=65536,o.push(i>>>10&1023|55296),i=56320|i&1023),o.push(i),f+=p}return bt(o)}function bt(t){var r=t.length;if(r<=mr)return String.fromCharCode.apply(String,t);for(var e="",o=0;o<r;)e+=String.fromCharCode.apply(String,t.slice(o,o+=mr));return e}function It(t,r,e){var o="";e=Math.min(t.length,e);for(var f=r;f<e;++f)o+=String.fromCharCode(t[f]&127);return o}function St(t,r,e){var o="";e=Math.min(t.length,e);for(var f=r;f<e;++f)o+=String.fromCharCode(t[f]);return o}function Ut(t,r,e){var o=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>o)&&(e=o);for(var f="",a=r;a<e;++a)f+=Mt(t[a]);return f}function Bt(t,r,e){for(var o=t.slice(r,e),f="",a=0;a<o.length;a+=2)f+=String.fromCharCode(o[a]+o[a+1]*256);return f}function w(t,r,e){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function y(t,r,e,o,f,a){if(!A(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>f||r<a)throw new RangeError('"value" argument is out of bounds');if(e+o>t.length)throw new RangeError("Index out of range")}function G(t,r,e,o){r<0&&(r=65535+r+1);for(var f=0,a=Math.min(t.length-e,2);f<a;++f)t[e+f]=(r&255<<8*(o?f:1-f))>>>(o?f:1-f)*8}function V(t,r,e,o){r<0&&(r=4294967295+r+1);for(var f=0,a=Math.min(t.length-e,4);f<a;++f)t[e+f]=r>>>(o?f:3-f)*8&255}function Er(t,r,e,o,f,a){if(e+o>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function vr(t,r,e,o,f){return f||Er(t,r,e,4,34028234663852886e22,-34028234663852886e22),Ir(t,r,e,o,23,4),e+4}function Ar(t,r,e,o,f){return f||Er(t,r,e,8,17976931348623157e292,-17976931348623157e292),Ir(t,r,e,o,52,8),e+8}function Ct(t){if(t=Nt(t).replace(_t,""),t.length<2)return"";for(;t.length%4!==0;)t=t+"=";return t}function Nt(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Mt(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,r){r=r||1/0;for(var e,o=t.length,f=null,a=[],i=0;i<o;++i){if(e=t.charCodeAt(i),e>55295&&e<57344){if(!f){if(e>56319){(r-=3)>-1&&a.push(239,191,189);continue}else if(i+1===o){(r-=3)>-1&&a.push(239,191,189);continue}f=e;continue}if(e<56320){(r-=3)>-1&&a.push(239,191,189),f=e;continue}e=(f-55296<<10|e-56320)+65536}else f&&(r-=3)>-1&&a.push(239,191,189);if(f=null,e<128){if((r-=1)<0)break;a.push(e)}else if(e<2048){if((r-=2)<0)break;a.push(e>>6|192,e&63|128)}else if(e<65536){if((r-=3)<0)break;a.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((r-=4)<0)break;a.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return a}function Ot(t){for(var r=[],e=0;e<t.length;++e)r.push(t.charCodeAt(e)&255);return r}function kt(t,r){for(var e,o,f,a=[],i=0;i<t.length&&!((r-=2)<0);++i)e=t.charCodeAt(i),o=e>>8,f=e%256,a.push(f),a.push(o);return a}function Rr(t){return lt(Ct(t))}function Z(t,r,e,o){for(var f=0;f<o&&!(f+e>=r.length||f>=t.length);++f)r[f+e]=t[f];return f}function Pt(t){return t!==t}function Dt(t){return t!=null&&(!!t._isBuffer||br(t)||Lt(t))}function br(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function Lt(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&br(t.slice(0,0))}function J(t,r,e,o,f){var a,i,p=f*8-o-1,l=(1<<p)-1,d=l>>1,c=-7,m=e?f-1:0,E=e?-1:1,g=t[r+m];for(m+=E,a=g&(1<<-c)-1,g>>=-c,c+=p;c>0;a=a*256+t[r+m],m+=E,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=o;c>0;i=i*256+t[r+m],m+=E,c-=8);if(a===0)a=1-d;else{if(a===l)return i?NaN:(g?-1:1)*(1/0);i=i+Math.pow(2,o),a=a-d}return(g?-1:1)*i*Math.pow(2,a-o)}function Ir(t,r,e,o,f,a){var i,p,l,d=a*8-f-1,c=(1<<d)-1,m=c>>1,E=f===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=o?0:a-1,M=o?1:-1,Be=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(p=isNaN(r)?1:0,i=c):(i=Math.floor(Math.log(r)/Math.LN2),r*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+m>=1?r+=E/l:r+=E*Math.pow(2,1-m),r*l>=2&&(i++,l/=2),i+m>=c?(p=0,i=c):i+m>=1?(p=(r*l-1)*Math.pow(2,f),i=i+m):(p=r*Math.pow(2,m-1)*Math.pow(2,f),i=0));f>=8;t[e+g]=p&255,g+=M,p/=256,f-=8);for(i=i<<f|p,d+=f;d>0;t[e+g]=i&255,g+=M,i/=256,d-=8);t[e+g-M]|=Be*128}var v,T,pt,Q,mr,_t,Sr=H(()=>{"use strict";u();s();v=[],T=[],pt=typeof Uint8Array!="undefined"?Uint8Array:Array,Q=!1;n.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;n.poolSize=8192;n._augment=function(t){return t.__proto__=n.prototype,t};n.from=function(t,r,e){return cr(null,t,r,e)};n.kMaxLength=j();n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&n[Symbol.species]);n.alloc=function(t,r,e){return dt(null,t,r,e)};n.allocUnsafe=function(t){return X(null,t)};n.allocUnsafeSlow=function(t){return X(null,t)};n.isBuffer=Dt;n.compare=function(r,e){if(!A(r)||!A(e))throw new TypeError("Arguments must be Buffers");if(r===e)return 0;for(var o=r.length,f=e.length,a=0,i=Math.min(o,f);a<i;++a)if(r[a]!==e[a]){o=r[a],f=e[a];break}return o<f?-1:f<o?1:0};n.isEncoding=function(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};n.concat=function(r,e){if(!Array.isArray(r))throw new TypeError('"list" argument must be an Array of Buffers');if(r.length===0)return n.alloc(0);var o;if(e===void 0)for(e=0,o=0;o<r.length;++o)e+=r[o].length;var f=n.allocUnsafe(e),a=0;for(o=0;o<r.length;++o){var i=r[o];if(!A(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(f,a),a+=i.length}return f};n.byteLength=wr;n.prototype._isBuffer=!0;n.prototype.swap16=function(){var r=this.length;if(r%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<r;e+=2)N(this,e,e+1);return this};n.prototype.swap32=function(){var r=this.length;if(r%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<r;e+=4)N(this,e,e+3),N(this,e+1,e+2);return this};n.prototype.swap64=function(){var r=this.length;if(r%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<r;e+=8)N(this,e,e+7),N(this,e+1,e+6),N(this,e+2,e+5),N(this,e+3,e+4);return this};n.prototype.toString=function(){var r=this.length|0;return r===0?"":arguments.length===0?Tr(this,0,r):yt.apply(this,arguments)};n.prototype.equals=function(r){if(!A(r))throw new TypeError("Argument must be a Buffer");return this===r?!0:n.compare(this,r)===0};n.prototype.compare=function(r,e,o,f,a){if(!A(r))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),o===void 0&&(o=r?r.length:0),f===void 0&&(f=0),a===void 0&&(a=this.length),e<0||o>r.length||f<0||a>this.length)throw new RangeError("out of range index");if(f>=a&&e>=o)return 0;if(f>=a)return-1;if(e>=o)return 1;if(e>>>=0,o>>>=0,f>>>=0,a>>>=0,this===r)return 0;for(var i=a-f,p=o-e,l=Math.min(i,p),d=this.slice(f,a),c=r.slice(e,o),m=0;m<l;++m)if(d[m]!==c[m]){i=d[m],p=c[m];break}return i<p?-1:p<i?1:0};n.prototype.includes=function(r,e,o){return this.indexOf(r,e,o)!==-1};n.prototype.indexOf=function(r,e,o){return yr(this,r,e,o,!0)};n.prototype.lastIndexOf=function(r,e,o){return yr(this,r,e,o,!1)};n.prototype.write=function(r,e,o,f){if(e===void 0)f="utf8",o=this.length,e=0;else if(o===void 0&&typeof e=="string")f=e,o=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(o)?(o=o|0,f===void 0&&(f="utf8")):(f=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var a=this.length-e;if((o===void 0||o>a)&&(o=a),r.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");f||(f="utf8");for(var i=!1;;)switch(f){case"hex":return gt(this,r,e,o);case"utf8":case"utf-8":return Tt(this,r,e,o);case"ascii":return gr(this,r,e,o);case"latin1":case"binary":return Et(this,r,e,o);case"base64":return vt(this,r,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return At(this,r,e,o);default:if(i)throw new TypeError("Unknown encoding: "+f);f=(""+f).toLowerCase(),i=!0}};n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};mr=4096;n.prototype.slice=function(r,e){var o=this.length;r=~~r,e=e===void 0?o:~~e,r<0?(r+=o,r<0&&(r=0)):r>o&&(r=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),e<r&&(e=r);var f;if(n.TYPED_ARRAY_SUPPORT)f=this.subarray(r,e),f.__proto__=n.prototype;else{var a=e-r;f=new n(a,void 0);for(var i=0;i<a;++i)f[i]=this[i+r]}return f};n.prototype.readUIntLE=function(r,e,o){r=r|0,e=e|0,o||w(r,e,this.length);for(var f=this[r],a=1,i=0;++i<e&&(a*=256);)f+=this[r+i]*a;return f};n.prototype.readUIntBE=function(r,e,o){r=r|0,e=e|0,o||w(r,e,this.length);for(var f=this[r+--e],a=1;e>0&&(a*=256);)f+=this[r+--e]*a;return f};n.prototype.readUInt8=function(r,e){return e||w(r,1,this.length),this[r]};n.prototype.readUInt16LE=function(r,e){return e||w(r,2,this.length),this[r]|this[r+1]<<8};n.prototype.readUInt16BE=function(r,e){return e||w(r,2,this.length),this[r]<<8|this[r+1]};n.prototype.readUInt32LE=function(r,e){return e||w(r,4,this.length),(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};n.prototype.readUInt32BE=function(r,e){return e||w(r,4,this.length),this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};n.prototype.readIntLE=function(r,e,o){r=r|0,e=e|0,o||w(r,e,this.length);for(var f=this[r],a=1,i=0;++i<e&&(a*=256);)f+=this[r+i]*a;return a*=128,f>=a&&(f-=Math.pow(2,8*e)),f};n.prototype.readIntBE=function(r,e,o){r=r|0,e=e|0,o||w(r,e,this.length);for(var f=e,a=1,i=this[r+--f];f>0&&(a*=256);)i+=this[r+--f]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i};n.prototype.readInt8=function(r,e){return e||w(r,1,this.length),this[r]&128?(255-this[r]+1)*-1:this[r]};n.prototype.readInt16LE=function(r,e){e||w(r,2,this.length);var o=this[r]|this[r+1]<<8;return o&32768?o|4294901760:o};n.prototype.readInt16BE=function(r,e){e||w(r,2,this.length);var o=this[r+1]|this[r]<<8;return o&32768?o|4294901760:o};n.prototype.readInt32LE=function(r,e){return e||w(r,4,this.length),this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};n.prototype.readInt32BE=function(r,e){return e||w(r,4,this.length),this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};n.prototype.readFloatLE=function(r,e){return e||w(r,4,this.length),J(this,r,!0,23,4)};n.prototype.readFloatBE=function(r,e){return e||w(r,4,this.length),J(this,r,!1,23,4)};n.prototype.readDoubleLE=function(r,e){return e||w(r,8,this.length),J(this,r,!0,52,8)};n.prototype.readDoubleBE=function(r,e){return e||w(r,8,this.length),J(this,r,!1,52,8)};n.prototype.writeUIntLE=function(r,e,o,f){if(r=+r,e=e|0,o=o|0,!f){var a=Math.pow(2,8*o)-1;y(this,r,e,o,a,0)}var i=1,p=0;for(this[e]=r&255;++p<o&&(i*=256);)this[e+p]=r/i&255;return e+o};n.prototype.writeUIntBE=function(r,e,o,f){if(r=+r,e=e|0,o=o|0,!f){var a=Math.pow(2,8*o)-1;y(this,r,e,o,a,0)}var i=o-1,p=1;for(this[e+i]=r&255;--i>=0&&(p*=256);)this[e+i]=r/p&255;return e+o};n.prototype.writeUInt8=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,1,255,0),n.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),this[e]=r&255,e+1};n.prototype.writeUInt16LE=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):G(this,r,e,!0),e+2};n.prototype.writeUInt16BE=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):G(this,r,e,!1),e+2};n.prototype.writeUInt32LE=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[e+3]=r>>>24,this[e+2]=r>>>16,this[e+1]=r>>>8,this[e]=r&255):V(this,r,e,!0),e+4};n.prototype.writeUInt32BE=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):V(this,r,e,!1),e+4};n.prototype.writeIntLE=function(r,e,o,f){if(r=+r,e=e|0,!f){var a=Math.pow(2,8*o-1);y(this,r,e,o,a-1,-a)}var i=0,p=1,l=0;for(this[e]=r&255;++i<o&&(p*=256);)r<0&&l===0&&this[e+i-1]!==0&&(l=1),this[e+i]=(r/p>>0)-l&255;return e+o};n.prototype.writeIntBE=function(r,e,o,f){if(r=+r,e=e|0,!f){var a=Math.pow(2,8*o-1);y(this,r,e,o,a-1,-a)}var i=o-1,p=1,l=0;for(this[e+i]=r&255;--i>=0&&(p*=256);)r<0&&l===0&&this[e+i+1]!==0&&(l=1),this[e+i]=(r/p>>0)-l&255;return e+o};n.prototype.writeInt8=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,1,127,-128),n.TYPED_ARRAY_SUPPORT||(r=Math.floor(r)),r<0&&(r=255+r+1),this[e]=r&255,e+1};n.prototype.writeInt16LE=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8):G(this,r,e,!0),e+2};n.prototype.writeInt16BE=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[e]=r>>>8,this[e+1]=r&255):G(this,r,e,!1),e+2};n.prototype.writeInt32LE=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[e]=r&255,this[e+1]=r>>>8,this[e+2]=r>>>16,this[e+3]=r>>>24):V(this,r,e,!0),e+4};n.prototype.writeInt32BE=function(r,e,o){return r=+r,e=e|0,o||y(this,r,e,4,2147483647,-2147483648),r<0&&(r=4294967295+r+1),n.TYPED_ARRAY_SUPPORT?(this[e]=r>>>24,this[e+1]=r>>>16,this[e+2]=r>>>8,this[e+3]=r&255):V(this,r,e,!1),e+4};n.prototype.writeFloatLE=function(r,e,o){return vr(this,r,e,!0,o)};n.prototype.writeFloatBE=function(r,e,o){return vr(this,r,e,!1,o)};n.prototype.writeDoubleLE=function(r,e,o){return Ar(this,r,e,!0,o)};n.prototype.writeDoubleBE=function(r,e,o){return Ar(this,r,e,!1,o)};n.prototype.copy=function(r,e,o,f){if(o||(o=0),!f&&f!==0&&(f=this.length),e>=r.length&&(e=r.length),e||(e=0),f>0&&f<o&&(f=o),f===o||r.length===0||this.length===0)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(f<0)throw new RangeError("sourceEnd out of bounds");f>this.length&&(f=this.length),r.length-e<f-o&&(f=r.length-e+o);var a=f-o,i;if(this===r&&o<e&&e<f)for(i=a-1;i>=0;--i)r[i+e]=this[i+o];else if(a<1e3||!n.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)r[i+e]=this[i+o];else Uint8Array.prototype.set.call(r,this.subarray(o,o+a),e);return a};n.prototype.fill=function(r,e,o,f){if(typeof r=="string"){if(typeof e=="string"?(f=e,e=0,o=this.length):typeof o=="string"&&(f=o,o=this.length),r.length===1){var a=r.charCodeAt(0);a<256&&(r=a)}if(f!==void 0&&typeof f!="string")throw new TypeError("encoding must be a string");if(typeof f=="string"&&!n.isEncoding(f))throw new TypeError("Unknown encoding: "+f)}else typeof r=="number"&&(r=r&255);if(e<0||this.length<e||this.length<o)throw new RangeError("Out of range index");if(o<=e)return this;e=e>>>0,o=o===void 0?this.length:o>>>0,r||(r=0);var i;if(typeof r=="number")for(i=e;i<o;++i)this[i]=r;else{var p=A(r)?r:z(new n(r,f).toString()),l=p.length;for(i=0;i<o-e;++i)this[i+e]=p[i%l]}return this};_t=/[^+\/0-9A-Za-z-_]/g});var s=H(()=>{"use strict";Sr()});var If={};Oe(If,{DynamicTypeMapper:()=>or});module.exports=Pe(If);u();s();u();s();u();s();function D(t){throw new Error("Unexpected value: "+JSON.stringify(t))}u();s();u();s();u();s();u();s();u();s();u();s();var Yt=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Ur=Yt;var Wt=typeof self=="object"&&self&&self.Object===Object&&self,Ft=Ur||Wt||Function("return this")(),Br=Ft;var jt=Br.Symbol,I=jt;u();s();var _r=Object.prototype,zt=_r.hasOwnProperty,Gt=_r.toString,L=I?I.toStringTag:void 0;function Vt(t){var r=zt.call(t,L),e=t[L];try{t[L]=void 0;var o=!0}catch(a){}var f=Gt.call(t);return o&&(r?t[L]=e:delete t[L]),f}var Cr=Vt;u();s();var Zt=Object.prototype,Jt=Zt.toString;function qt(t){return Jt.call(t)}var Nr=qt;var Ht="[object Null]",Kt="[object Undefined]",Mr=I?I.toStringTag:void 0;function Qt(t){return t==null?t===void 0?Kt:Ht:Mr&&Mr in Object(t)?Cr(t):Nr(t)}var Or=Qt;u();s();function Xt(t){return t!=null&&typeof t=="object"}var kr=Xt;var $t="[object Symbol]";function ro(t){return typeof t=="symbol"||kr(t)&&Or(t)==$t}var Pr=ro;u();s();u();s();function eo(t,r){for(var e=-1,o=t==null?0:t.length,f=Array(o);++e<o;)f[e]=r(t[e],e,t);return f}var Dr=eo;u();s();var to=Array.isArray,Lr=to;var oo=1/0,Yr=I?I.prototype:void 0,Wr=Yr?Yr.toString:void 0;function Fr(t){if(typeof t=="string")return t;if(Lr(t))return Dr(t,Fr)+"";if(Pr(t))return Wr?Wr.call(t):"";var r=t+"";return r=="0"&&1/t==-oo?"-0":r}var jr=Fr;u();s();function fo(t){return t==null?"":jr(t)}var B=fo;u();s();u();s();u();s();u();s();u();s();u();s();function ao(t,r,e){var o=-1,f=t.length;r<0&&(r=-r>f?0:f+r),e=e>f?f:e,e<0&&(e+=f),f=r>e?0:e-r>>>0,r>>>=0;for(var a=Array(f);++o<f;)a[o]=t[o+r];return a}var zr=ao;function no(t,r,e){var o=t.length;return e=e===void 0?o:e,!r&&e>=o?t:zr(t,r,e)}var Gr=no;u();s();var io="\\ud800-\\udfff",uo="\\u0300-\\u036f",so="\\ufe20-\\ufe2f",po="\\u20d0-\\u20ff",lo=uo+so+po,xo="\\ufe0e\\ufe0f",mo="\\u200d",co=RegExp("["+mo+io+lo+xo+"]");function ho(t){return co.test(t)}var q=ho;u();s();u();s();function wo(t){return t.split("")}var Vr=wo;u();s();var Zr="\\ud800-\\udfff",yo="\\u0300-\\u036f",go="\\ufe20-\\ufe2f",To="\\u20d0-\\u20ff",Eo=yo+go+To,vo="\\ufe0e\\ufe0f",Ao="["+Zr+"]",rr="["+Eo+"]",er="\\ud83c[\\udffb-\\udfff]",Ro="(?:"+rr+"|"+er+")",Jr="[^"+Zr+"]",qr="(?:\\ud83c[\\udde6-\\uddff]){2}",Hr="[\\ud800-\\udbff][\\udc00-\\udfff]",bo="\\u200d",Kr=Ro+"?",Qr="["+vo+"]?",Io="(?:"+bo+"(?:"+[Jr,qr,Hr].join("|")+")"+Qr+Kr+")*",So=Qr+Kr+Io,Uo="(?:"+[Jr+rr+"?",rr,qr,Hr,Ao].join("|")+")",Bo=RegExp(er+"(?="+er+")|"+Uo+So,"g");function _o(t){return t.match(Bo)||[]}var Xr=_o;function Co(t){return q(t)?Xr(t):Vr(t)}var $r=Co;function No(t){return function(r){r=B(r);var e=q(r)?$r(r):void 0,o=e?e[0]:r.charAt(0),f=e?Gr(e,1).join(""):r.slice(1);return o[t]()+f}}var re=No;var Mo=re("toUpperCase"),Y=Mo;function Oo(t){return Y(B(t).toLowerCase())}var ee=Oo;u();s();u();s();function ko(t,r,e,o){var f=-1,a=t==null?0:t.length;for(o&&a&&(e=t[++f]);++f<a;)e=r(e,t[f],f,t);return e}var te=ko;u();s();u();s();u();s();function Po(t){return function(r){return t==null?void 0:t[r]}}var oe=Po;var Do={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Lo=oe(Do),fe=Lo;var Yo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wo="\\u0300-\\u036f",Fo="\\ufe20-\\ufe2f",jo="\\u20d0-\\u20ff",zo=Wo+Fo+jo,Go="["+zo+"]",Vo=RegExp(Go,"g");function Zo(t){return t=B(t),t&&t.replace(Yo,fe).replace(Vo,"")}var ae=Zo;u();s();u();s();var Jo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function qo(t){return t.match(Jo)||[]}var ne=qo;u();s();var Ho=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ko(t){return Ho.test(t)}var ie=Ko;u();s();var xe="\\ud800-\\udfff",Qo="\\u0300-\\u036f",Xo="\\ufe20-\\ufe2f",$o="\\u20d0-\\u20ff",rf=Qo+Xo+$o,me="\\u2700-\\u27bf",de="a-z\\xdf-\\xf6\\xf8-\\xff",ef="\\xac\\xb1\\xd7\\xf7",tf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",of="\\u2000-\\u206f",ff=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ce="A-Z\\xc0-\\xd6\\xd8-\\xde",af="\\ufe0e\\ufe0f",he=ef+tf+of+ff,we="['\u2019]",ue="["+he+"]",nf="["+rf+"]",ye="\\d+",uf="["+me+"]",ge="["+de+"]",Te="[^"+xe+he+ye+me+de+ce+"]",sf="\\ud83c[\\udffb-\\udfff]",pf="(?:"+nf+"|"+sf+")",lf="[^"+xe+"]",Ee="(?:\\ud83c[\\udde6-\\uddff]){2}",ve="[\\ud800-\\udbff][\\udc00-\\udfff]",P="["+ce+"]",xf="\\u200d",se="(?:"+ge+"|"+Te+")",mf="(?:"+P+"|"+Te+")",pe="(?:"+we+"(?:d|ll|m|re|s|t|ve))?",le="(?:"+we+"(?:D|LL|M|RE|S|T|VE))?",Ae=pf+"?",Re="["+af+"]?",df="(?:"+xf+"(?:"+[lf,Ee,ve].join("|")+")"+Re+Ae+")*",cf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",hf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wf=Re+Ae+df,yf="(?:"+[uf,Ee,ve].join("|")+")"+wf,gf=RegExp([P+"?"+ge+"+"+pe+"(?="+[ue,P,"$"].join("|")+")",mf+"+"+le+"(?="+[ue,P+se,"$"].join("|")+")",P+"?"+se+"+"+pe,P+"+"+le,hf,cf,ye,yf].join("|"),"g");function Tf(t){return t.match(gf)||[]}var be=Tf;function Ef(t,r,e){return t=B(t),r=e?void 0:r,r===void 0?ie(t)?be(t):ne(t):t.match(r)||[]}var Ie=Ef;var vf="['\u2019]",Af=RegExp(vf,"g");function Rf(t){return function(r){return te(Ie(ae(r).replace(Af,"")),t,"")}}var Se=Rf;var bf=Se(function(t,r,e){return r=r.toLowerCase(),t+(e?ee(r):r)}),tr=bf;var h=require("@fern-api/swift-codegen");u();s();function Ue(t){return Y(tr(t))}var or=class{constructor({context:r}){fr(this,"context");this.context=r}convert(r){switch(r.typeReference.type){case"list":return h.swift.Type.array(this.convert({typeReference:r.typeReference.value}));case"literal":return this.convertLiteral({literal:r.typeReference.value});case"map":return h.swift.Type.dictionary(this.convert({typeReference:r.typeReference.key}),this.convert({typeReference:r.typeReference.value}));case"named":{let e=this.context.resolveNamedType({typeId:r.typeReference.value});return e==null?this.convertUnknown():this.convertNamed({named:e})}case"optional":return h.swift.Type.optional(this.convert({typeReference:r.typeReference.value}));case"nullable":return h.swift.Type.nullable(this.convert({typeReference:r.typeReference.value}));case"primitive":return this.convertPrimitive({primitive:r.typeReference.value});case"set":return h.swift.Type.jsonValue();case"unknown":return this.convertUnknown();default:D(r.typeReference)}}convertNamed({named:r}){switch(r.type){case"alias":return this.convert({typeReference:r.typeReference});case"enum":case"discriminatedUnion":case"object":case"undiscriminatedUnion":return h.swift.Type.custom(r.declaration.name.pascalCase.unsafeName);default:D(r)}}convertLiteral({literal:r}){switch(r.type){case"boolean":return h.swift.Type.bool();case"string":return h.swift.Type.custom(Ue(r.value))}}convertUnknown(){return h.swift.Type.jsonValue()}convertPrimitive({primitive:r}){switch(r){case"INTEGER":return h.swift.Type.int();case"UINT":return h.swift.Type.int();case"LONG":return h.swift.Type.int64();case"UINT_64":return h.swift.Type.uint64();case"FLOAT":return h.swift.Type.float();case"DOUBLE":return h.swift.Type.double();case"BOOLEAN":return h.swift.Type.bool();case"STRING":return h.swift.Type.string();case"DATE":return h.swift.Type.date();case"DATE_TIME":return h.swift.Type.date();case"UUID":return h.swift.Type.uuid();case"BASE_64":return h.swift.Type.string();case"BIG_INTEGER":return h.swift.Type.string();default:D(r)}}};0&&(module.exports={DynamicTypeMapper});
2
+ /*! Bundled license information:
3
+
4
+ @esbuild-plugins/node-globals-polyfill/Buffer.js:
5
+ (*!
6
+ * The buffer module from node.js, for the browser.
7
+ *
8
+ * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
9
+ * @license MIT
10
+ *)
11
+
12
+ lodash-es/lodash.js:
13
+ (**
14
+ * @license
15
+ * Lodash (Custom Build) <https://lodash.com/>
16
+ * Build: `lodash modularize exports="es" -o ./`
17
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
18
+ * Released under MIT license <https://lodash.com/license>
19
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
20
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
21
+ *)
22
+ */
23
+ //# sourceMappingURL=DynamicTypeMapper.cjs.map