@fern-api/php-dynamic-snippets 0.0.6 → 0.0.7
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/cjs/DynamicSnippetsGenerator.cjs +18 -11
- package/cjs/DynamicSnippetsGenerator.cjs.map +1 -1
- package/cjs/DynamicSnippetsGenerator.d.cts +1 -1
- package/cjs/{DynamicSnippetsGeneratorContext-7JXlOyjB.d.cts → DynamicSnippetsGeneratorContext-CwkDTYOI.d.cts} +3 -3
- package/cjs/EndpointSnippetGenerator.cjs +20 -13
- package/cjs/EndpointSnippetGenerator.cjs.map +1 -1
- package/cjs/EndpointSnippetGenerator.d.cts +5 -1
- package/cjs/context/DynamicSnippetsGeneratorContext.cjs +17 -10
- package/cjs/context/DynamicSnippetsGeneratorContext.cjs.map +1 -1
- package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +1 -1
- package/cjs/context/DynamicTypeLiteralMapper.cjs +17 -10
- package/cjs/context/DynamicTypeLiteralMapper.cjs.map +1 -1
- package/cjs/context/DynamicTypeLiteralMapper.d.cts +1 -1
- package/cjs/context/FilePropertyMapper.cjs +17 -10
- package/cjs/context/FilePropertyMapper.cjs.map +1 -1
- package/cjs/context/FilePropertyMapper.d.cts +1 -1
- package/cjs/index.cjs +20 -25
- package/cjs/index.cjs.map +1 -1
- package/cjs/index.d.cts +1 -1
- package/esm/DynamicSnippetsGenerator.d.ts +1 -1
- package/esm/DynamicSnippetsGenerator.js +1 -1
- package/esm/{DynamicSnippetsGeneratorContext-7JXlOyjB.d.ts → DynamicSnippetsGeneratorContext-CwkDTYOI.d.ts} +3 -3
- package/esm/EndpointSnippetGenerator.d.ts +5 -1
- package/esm/EndpointSnippetGenerator.js +1 -1
- package/esm/chunk-3LG5WCZI.js +2 -0
- package/esm/chunk-3LG5WCZI.js.map +1 -0
- package/esm/{chunk-KU3OGJUU.js → chunk-3QAUV5WT.js} +2 -2
- package/esm/chunk-CPIHNCS3.js +4 -0
- package/esm/chunk-CPIHNCS3.js.map +1 -0
- package/esm/chunk-DFQIKN25.js +2 -0
- package/esm/{chunk-625QSFAH.js → chunk-EECVWAVT.js} +2 -2
- package/esm/{chunk-625QSFAH.js.map → chunk-EECVWAVT.js.map} +1 -1
- package/esm/chunk-PYHFKEW4.js +47 -0
- package/esm/chunk-PYHFKEW4.js.map +1 -0
- package/esm/chunk-XX3MRTVI.js +2 -0
- package/esm/chunk-XX3MRTVI.js.map +1 -0
- package/esm/context/DynamicSnippetsGeneratorContext.d.ts +1 -1
- package/esm/context/DynamicSnippetsGeneratorContext.js +1 -1
- package/esm/context/DynamicTypeLiteralMapper.d.ts +1 -1
- package/esm/context/DynamicTypeLiteralMapper.js +1 -1
- package/esm/context/FilePropertyMapper.d.ts +1 -1
- package/esm/context/FilePropertyMapper.js +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -13
- package/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/esm/chunk-7MI6WLZG.js +0 -2
- package/esm/chunk-7MI6WLZG.js.map +0 -1
- package/esm/chunk-BYNT7UJT.js +0 -2
- package/esm/chunk-BYNT7UJT.js.map +0 -1
- package/esm/chunk-J4Y3S6QS.js +0 -40
- package/esm/chunk-J4Y3S6QS.js.map +0 -1
- package/esm/chunk-YKXTGZL6.js +0 -4
- package/esm/chunk-YKXTGZL6.js.map +0 -1
- package/esm/chunk-ZYT6M32A.js +0 -2
- /package/esm/{chunk-KU3OGJUU.js.map → chunk-3QAUV5WT.js.map} +0 -0
- /package/esm/{chunk-ZYT6M32A.js.map → chunk-DFQIKN25.js.map} +0 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var Gt=Object.defineProperty,Ji=Object.defineProperties;var Zi=Object.getOwnPropertyDescriptors;var ze=Object.getOwnPropertySymbols;var Ht=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var vt=(r,t,e)=>t in r?Gt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Ge=(r,t)=>{for(var e in t||(t={}))Ht.call(t,e)&&vt(r,e,t[e]);if(ze)for(var e of ze(t))qt.call(t,e)&&vt(r,e,t[e]);return r},He=(r,t)=>Ji(r,Zi(t));var kl=r=>typeof r=="symbol"?r:r+"",Pl=(r,t)=>{var e={};for(var o in r)Ht.call(r,o)&&t.indexOf(o)<0&&(e[o]=r[o]);if(r!=null&&ze)for(var o of ze(r))t.indexOf(o)<0&&qt.call(r,o)&&(e[o]=r[o]);return e};var Et=(r,t)=>()=>(r&&(t=r(r=0)),t);var Qi=(r,t)=>{for(var e in t)Gt(r,e,{get:t[e],enumerable:!0})};var c=(r,t,e)=>vt(r,typeof t!="symbol"?t+"":t,e);function Kt(){throw new Error("setTimeout has not been defined")}function Jt(){throw new Error("clearTimeout has not been defined")}function Zt(r){if(ee===setTimeout)return setTimeout(r,0);if((ee===Kt||!ee)&&setTimeout)return ee=setTimeout,setTimeout(r,0);try{return ee(r,0)}catch(t){try{return ee.call(null,r,0)}catch(e){return ee.call(this,r,0)}}}function Xi(r){if(te===clearTimeout)return clearTimeout(r);if((te===Jt||!te)&&clearTimeout)return te=clearTimeout,clearTimeout(r);try{return te(r)}catch(t){try{return te.call(null,r)}catch(e){return te.call(this,r)}}}function en(){!Ce||!me||(Ce=!1,me.length?Y=me.concat(Y):qe=-1,Y.length&&Qt())}function Qt(){if(!Ce){var r=Zt(en);Ce=!0;for(var t=Y.length;t;){for(me=Y,Y=[];++qe<t;)me&&me[qe].run();qe=-1,t=Y.length}me=null,Ce=!1,Xi(r)}}function tn(r){var t=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)t[e-1]=arguments[e];Y.push(new Xt(r,t)),Y.length===1&&!Ce&&Zt(Qt)}function Xt(r,t){this.fun=r,this.array=t}function de(){}function wn(r){throw new Error("process.binding is not supported")}function Tn(){return"/"}function bn(r){throw new Error("process.chdir is not supported")}function An(){return 0}function En(r){var t=vn.call(Se)*.001,e=Math.floor(t),o=Math.floor(t%1*1e9);return r&&(e=e-r[0],o=o-r[1],o<0&&(e--,o+=1e9)),[e,o]}function Sn(){var r=new Date,t=r-_n;return t/1e3}var ee,te,Y,Ce,me,qe,rn,on,nn,an,sn,fn,un,pn,ln,cn,mn,dn,hn,xn,gn,yn,Se,vn,_n,p,Vt,n=Et(()=>{"use strict";ee=Kt,te=Jt;typeof globalThis.setTimeout=="function"&&(ee=setTimeout);typeof globalThis.clearTimeout=="function"&&(te=clearTimeout);Y=[],Ce=!1,qe=-1;Xt.prototype.run=function(){this.fun.apply(null,this.array)};rn="browser",on="browser",nn=!0,an={},sn=[],fn="",un={},pn={},ln={};cn=de,mn=de,dn=de,hn=de,xn=de,gn=de,yn=de;Se=globalThis.performance||{},vn=Se.now||Se.mozNow||Se.msNow||Se.oNow||Se.webkitNow||function(){return new Date().getTime()};_n=new Date;p={nextTick:tn,title:rn,browser:nn,env:an,argv:sn,version:fn,versions:un,on:cn,addListener:mn,once:dn,off:hn,removeListener:xn,removeAllListeners:gn,emit:yn,binding:wn,cwd:Tn,chdir:bn,umask:An,hrtime:En,platform:on,release:pn,config:ln,uptime:Sn},Vt={};Object.keys(Vt).forEach(r=>{let t=r.split("."),e=p;for(let o=0;o<t.length;o++){let i=t[o];o===t.length-1?e[i]=Vt[r]:e=e[i]||(e[i]={})}})});function or(){St=!0;for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,e=r.length;t<e;++t)F[t]=r[t],L[r.charCodeAt(t)]=t;L[45]=62,L[95]=63}function In(r){St||or();var t,e,o,i,s,u,l=r.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s=r[l-2]==="="?2:r[l-1]==="="?1:0,u=new Cn(l*3/4-s),o=s>0?l-4:l;var m=0;for(t=0,e=0;t<o;t+=4,e+=3)i=L[r.charCodeAt(t)]<<18|L[r.charCodeAt(t+1)]<<12|L[r.charCodeAt(t+2)]<<6|L[r.charCodeAt(t+3)],u[m++]=i>>16&255,u[m++]=i>>8&255,u[m++]=i&255;return s===2?(i=L[r.charCodeAt(t)]<<2|L[r.charCodeAt(t+1)]>>4,u[m++]=i&255):s===1&&(i=L[r.charCodeAt(t)]<<10|L[r.charCodeAt(t+1)]<<4|L[r.charCodeAt(t+2)]>>2,u[m++]=i>>8&255,u[m++]=i&255),u}function Ln(r){return F[r>>18&63]+F[r>>12&63]+F[r>>6&63]+F[r&63]}function Rn(r,t,e){for(var o,i=[],s=t;s<e;s+=3)o=(r[s]<<16)+(r[s+1]<<8)+r[s+2],i.push(Ln(o));return i.join("")}function er(r){St||or();for(var t,e=r.length,o=e%3,i="",s=[],u=16383,l=0,m=e-o;l<m;l+=u)s.push(Rn(r,l,l+u>m?m:l+u));return o===1?(t=r[e-1],i+=F[t>>2],i+=F[t<<4&63],i+="=="):o===2&&(t=(r[e-2]<<8)+r[e-1],i+=F[t>>10],i+=F[t>>4&63],i+=F[t<<2&63],i+="="),s.push(i),s.join("")}function Ve(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function z(r,t){if(Ve()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(t),r.__proto__=f.prototype):(r===null&&(r=new f(t)),r.length=t),r}function f(r,t,e){if(!f.TYPED_ARRAY_SUPPORT&&!(this instanceof f))return new f(r,t,e);if(typeof r=="number"){if(typeof t=="string")throw new Error("If encoding is specified then the first argument must be a string");return Ct(this,r)}return ir(this,r,t,e)}function ir(r,t,e,o){if(typeof t=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&t instanceof ArrayBuffer?kn(r,t,e,o):typeof t=="string"?On(r,t,e):Pn(r,t)}function nr(r){if(typeof r!="number")throw new TypeError('"size" argument must be a number');if(r<0)throw new RangeError('"size" argument must not be negative')}function Nn(r,t,e,o){return nr(t),t<=0?z(r,t):e!==void 0?typeof o=="string"?z(r,t).fill(e,o):z(r,t).fill(e):z(r,t)}function Ct(r,t){if(nr(t),r=z(r,t<0?0:It(t)|0),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<t;++e)r[e]=0;return r}function On(r,t,e){if((typeof e!="string"||e==="")&&(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var o=ar(t,e)|0;r=z(r,o);var i=r.write(t,e);return i!==o&&(r=r.slice(0,i)),r}function _t(r,t){var e=t.length<0?0:It(t.length)|0;r=z(r,e);for(var o=0;o<e;o+=1)r[o]=t[o]&255;return r}function kn(r,t,e,o){if(t.byteLength,e<0||t.byteLength<e)throw new RangeError("'offset' is out of bounds");if(t.byteLength<e+(o||0))throw new RangeError("'length' is out of bounds");return e===void 0&&o===void 0?t=new Uint8Array(t):o===void 0?t=new Uint8Array(t,e):t=new Uint8Array(t,e,o),f.TYPED_ARRAY_SUPPORT?(r=t,r.__proto__=f.prototype):r=_t(r,t),r}function Pn(r,t){if(D(t)){var e=It(t.length)|0;return r=z(r,e),r.length===0||t.copy(r,0,0,e),r}if(t){if(typeof ArrayBuffer!="undefined"&&t.buffer instanceof ArrayBuffer||"length"in t)return typeof t.length!="number"||Xn(t.length)?z(r,0):_t(r,t);if(t.type==="Buffer"&&Array.isArray(t.data))return _t(r,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function It(r){if(r>=Ve())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ve().toString(16)+" bytes");return r|0}function D(r){return!!(r!=null&&r._isBuffer)}function ar(r,t){if(D(r))return r.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(r)||r instanceof ArrayBuffer))return r.byteLength;typeof r!="string"&&(r=""+r);var e=r.length;if(e===0)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return Ke(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return mr(r).length;default:if(o)return Ke(r).length;t=(""+t).toLowerCase(),o=!0}}function Bn(r,t,e){var o=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((e===void 0||e>this.length)&&(e=this.length),e<=0)||(e>>>=0,t>>>=0,e<=t))return"";for(r||(r="utf8");;)switch(r){case"hex":return Gn(this,t,e);case"utf8":case"utf-8":return ur(this,t,e);case"ascii":return Yn(this,t,e);case"latin1":case"binary":return zn(this,t,e);case"base64":return $n(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Hn(this,t,e);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),o=!0}}function he(r,t,e){var o=r[t];r[t]=r[e],r[e]=o}function sr(r,t,e,o,i){if(r.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=i?0:r.length-1),e<0&&(e=r.length+e),e>=r.length){if(i)return-1;e=r.length-1}else if(e<0)if(i)e=0;else return-1;if(typeof t=="string"&&(t=f.from(t,o)),D(t))return t.length===0?-1:tr(r,t,e,o,i);if(typeof t=="number")return t=t&255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,t,e):Uint8Array.prototype.lastIndexOf.call(r,t,e):tr(r,[t],e,o,i);throw new TypeError("val must be string, number or Buffer")}function tr(r,t,e,o,i){var s=1,u=r.length,l=t.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(r.length<2||t.length<2)return-1;s=2,u/=2,l/=2,e/=2}function m(w,b){return s===1?w[b]:w.readUInt16BE(b*s)}var d;if(i){var h=-1;for(d=e;d<u;d++)if(m(r,d)===m(t,h===-1?0:d-h)){if(h===-1&&(h=d),d-h+1===l)return h*s}else h!==-1&&(d-=d-h),h=-1}else for(e+l>u&&(e=u-l),d=e;d>=0;d--){for(var x=!0,g=0;g<l;g++)if(m(r,d+g)!==m(t,g)){x=!1;break}if(x)return d}return-1}function Mn(r,t,e,o){e=Number(e)||0;var i=r.length-e;o?(o=Number(o),o>i&&(o=i)):o=i;var s=t.length;if(s%2!==0)throw new TypeError("Invalid hex string");o>s/2&&(o=s/2);for(var u=0;u<o;++u){var l=parseInt(t.substr(u*2,2),16);if(isNaN(l))return u;r[e+u]=l}return u}function Un(r,t,e,o){return Qe(Ke(t,r.length-e),r,e,o)}function fr(r,t,e,o){return Qe(Zn(t),r,e,o)}function Fn(r,t,e,o){return fr(r,t,e,o)}function Dn(r,t,e,o){return Qe(mr(t),r,e,o)}function jn(r,t,e,o){return Qe(Qn(t,r.length-e),r,e,o)}function $n(r,t,e){return t===0&&e===r.length?er(r):er(r.slice(t,e))}function ur(r,t,e){e=Math.min(r.length,e);for(var o=[],i=t;i<e;){var s=r[i],u=null,l=s>239?4:s>223?3:s>191?2:1;if(i+l<=e){var m,d,h,x;switch(l){case 1:s<128&&(u=s);break;case 2:m=r[i+1],(m&192)===128&&(x=(s&31)<<6|m&63,x>127&&(u=x));break;case 3:m=r[i+1],d=r[i+2],(m&192)===128&&(d&192)===128&&(x=(s&15)<<12|(m&63)<<6|d&63,x>2047&&(x<55296||x>57343)&&(u=x));break;case 4:m=r[i+1],d=r[i+2],h=r[i+3],(m&192)===128&&(d&192)===128&&(h&192)===128&&(x=(s&15)<<18|(m&63)<<12|(d&63)<<6|h&63,x>65535&&x<1114112&&(u=x))}}u===null?(u=65533,l=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|u&1023),o.push(u),i+=l}return Wn(o)}function Wn(r){var t=r.length;if(t<=rr)return String.fromCharCode.apply(String,r);for(var e="",o=0;o<t;)e+=String.fromCharCode.apply(String,r.slice(o,o+=rr));return e}function Yn(r,t,e){var o="";e=Math.min(r.length,e);for(var i=t;i<e;++i)o+=String.fromCharCode(r[i]&127);return o}function zn(r,t,e){var o="";e=Math.min(r.length,e);for(var i=t;i<e;++i)o+=String.fromCharCode(r[i]);return o}function Gn(r,t,e){var o=r.length;(!t||t<0)&&(t=0),(!e||e<0||e>o)&&(e=o);for(var i="",s=t;s<e;++s)i+=Jn(r[s]);return i}function Hn(r,t,e){for(var o=r.slice(t,e),i="",s=0;s<o.length;s+=2)i+=String.fromCharCode(o[s]+o[s+1]*256);return i}function A(r,t,e){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+t>e)throw new RangeError("Trying to access beyond buffer length")}function C(r,t,e,o,i,s){if(!D(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(e+o>r.length)throw new RangeError("Index out of range")}function Je(r,t,e,o){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(r.length-e,2);i<s;++i)r[e+i]=(t&255<<8*(o?i:1-i))>>>(o?i:1-i)*8}function Ze(r,t,e,o){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(r.length-e,4);i<s;++i)r[e+i]=t>>>(o?i:3-i)*8&255}function pr(r,t,e,o,i,s){if(e+o>r.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function lr(r,t,e,o,i){return i||pr(r,t,e,4,34028234663852886e22,-34028234663852886e22),hr(r,t,e,o,23,4),e+4}function cr(r,t,e,o,i){return i||pr(r,t,e,8,17976931348623157e292,-17976931348623157e292),hr(r,t,e,o,52,8),e+8}function Vn(r){if(r=Kn(r).replace(qn,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function Kn(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function Jn(r){return r<16?"0"+r.toString(16):r.toString(16)}function Ke(r,t){t=t||1/0;for(var e,o=r.length,i=null,s=[],u=0;u<o;++u){if(e=r.charCodeAt(u),e>55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(u+1===o){(t-=3)>-1&&s.push(239,191,189);continue}i=e;continue}if(e<56320){(t-=3)>-1&&s.push(239,191,189),i=e;continue}e=(i-55296<<10|e-56320)+65536}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,e<128){if((t-=1)<0)break;s.push(e)}else if(e<2048){if((t-=2)<0)break;s.push(e>>6|192,e&63|128)}else if(e<65536){if((t-=3)<0)break;s.push(e>>12|224,e>>6&63|128,e&63|128)}else if(e<1114112){if((t-=4)<0)break;s.push(e>>18|240,e>>12&63|128,e>>6&63|128,e&63|128)}else throw new Error("Invalid code point")}return s}function Zn(r){for(var t=[],e=0;e<r.length;++e)t.push(r.charCodeAt(e)&255);return t}function Qn(r,t){for(var e,o,i,s=[],u=0;u<r.length&&!((t-=2)<0);++u)e=r.charCodeAt(u),o=e>>8,i=e%256,s.push(i),s.push(o);return s}function mr(r){return In(Vn(r))}function Qe(r,t,e,o){for(var i=0;i<o&&!(i+e>=t.length||i>=r.length);++i)t[i+e]=r[i];return i}function Xn(r){return r!==r}function ea(r){return r!=null&&(!!r._isBuffer||dr(r)||ta(r))}function dr(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function ta(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&dr(r.slice(0,0))}function Xe(r,t,e,o,i){var s,u,l=i*8-o-1,m=(1<<l)-1,d=m>>1,h=-7,x=e?i-1:0,g=e?-1:1,w=r[t+x];for(x+=g,s=w&(1<<-h)-1,w>>=-h,h+=l;h>0;s=s*256+r[t+x],x+=g,h-=8);for(u=s&(1<<-h)-1,s>>=-h,h+=o;h>0;u=u*256+r[t+x],x+=g,h-=8);if(s===0)s=1-d;else{if(s===m)return u?NaN:(w?-1:1)*(1/0);u=u+Math.pow(2,o),s=s-d}return(w?-1:1)*u*Math.pow(2,s-o)}function hr(r,t,e,o,i,s){var u,l,m,d=s*8-i-1,h=(1<<d)-1,x=h>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:s-1,b=o?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,u=h):(u=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-u))<1&&(u--,m*=2),u+x>=1?t+=g/m:t+=g*Math.pow(2,1-x),t*m>=2&&(u++,m/=2),u+x>=h?(l=0,u=h):u+x>=1?(l=(t*m-1)*Math.pow(2,i),u=u+x):(l=t*Math.pow(2,x-1)*Math.pow(2,i),u=0));i>=8;r[e+w]=l&255,w+=b,l/=256,i-=8);for(u=u<<i|l,d+=i;d>0;r[e+w]=u&255,w+=b,u/=256,d-=8);r[e+w-b]|=_*128}var F,L,Cn,St,rr,qn,xr=Et(()=>{"use strict";n();a();F=[],L=[],Cn=typeof Uint8Array!="undefined"?Uint8Array:Array,St=!1;f.TYPED_ARRAY_SUPPORT=globalThis.TYPED_ARRAY_SUPPORT!==void 0?globalThis.TYPED_ARRAY_SUPPORT:!0;f.poolSize=8192;f._augment=function(r){return r.__proto__=f.prototype,r};f.from=function(r,t,e){return ir(null,r,t,e)};f.kMaxLength=Ve();f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&f[Symbol.species]);f.alloc=function(r,t,e){return Nn(null,r,t,e)};f.allocUnsafe=function(r){return Ct(null,r)};f.allocUnsafeSlow=function(r){return Ct(null,r)};f.isBuffer=ea;f.compare=function(t,e){if(!D(t)||!D(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var o=t.length,i=e.length,s=0,u=Math.min(o,i);s<u;++s)if(t[s]!==e[s]){o=t[s],i=e[s];break}return o<i?-1:i<o?1:0};f.isEncoding=function(t){switch(String(t).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}};f.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(t.length===0)return f.alloc(0);var o;if(e===void 0)for(e=0,o=0;o<t.length;++o)e+=t[o].length;var i=f.allocUnsafe(e),s=0;for(o=0;o<t.length;++o){var u=t[o];if(!D(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,s),s+=u.length}return i};f.byteLength=ar;f.prototype._isBuffer=!0;f.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)he(this,e,e+1);return this};f.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)he(this,e,e+3),he(this,e+1,e+2);return this};f.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)he(this,e,e+7),he(this,e+1,e+6),he(this,e+2,e+5),he(this,e+3,e+4);return this};f.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?ur(this,0,t):Bn.apply(this,arguments)};f.prototype.equals=function(t){if(!D(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:f.compare(this,t)===0};f.prototype.compare=function(t,e,o,i,s){if(!D(t))throw new TypeError("Argument must be a Buffer");if(e===void 0&&(e=0),o===void 0&&(o=t?t.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),e<0||o>t.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&e>=o)return 0;if(i>=s)return-1;if(e>=o)return 1;if(e>>>=0,o>>>=0,i>>>=0,s>>>=0,this===t)return 0;for(var u=s-i,l=o-e,m=Math.min(u,l),d=this.slice(i,s),h=t.slice(e,o),x=0;x<m;++x)if(d[x]!==h[x]){u=d[x],l=h[x];break}return u<l?-1:l<u?1:0};f.prototype.includes=function(t,e,o){return this.indexOf(t,e,o)!==-1};f.prototype.indexOf=function(t,e,o){return sr(this,t,e,o,!0)};f.prototype.lastIndexOf=function(t,e,o){return sr(this,t,e,o,!1)};f.prototype.write=function(t,e,o,i){if(e===void 0)i="utf8",o=this.length,e=0;else if(o===void 0&&typeof e=="string")i=e,o=this.length,e=0;else if(isFinite(e))e=e|0,isFinite(o)?(o=o|0,i===void 0&&(i="utf8")):(i=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-e;if((o===void 0||o>s)&&(o=s),t.length>0&&(o<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var u=!1;;)switch(i){case"hex":return Mn(this,t,e,o);case"utf8":case"utf-8":return Un(this,t,e,o);case"ascii":return fr(this,t,e,o);case"latin1":case"binary":return Fn(this,t,e,o);case"base64":return Dn(this,t,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return jn(this,t,e,o);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};rr=4096;f.prototype.slice=function(t,e){var o=this.length;t=~~t,e=e===void 0?o:~~e,t<0?(t+=o,t<0&&(t=0)):t>o&&(t=o),e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),e<t&&(e=t);var i;if(f.TYPED_ARRAY_SUPPORT)i=this.subarray(t,e),i.__proto__=f.prototype;else{var s=e-t;i=new f(s,void 0);for(var u=0;u<s;++u)i[u]=this[u+t]}return i};f.prototype.readUIntLE=function(t,e,o){t=t|0,e=e|0,o||A(t,e,this.length);for(var i=this[t],s=1,u=0;++u<e&&(s*=256);)i+=this[t+u]*s;return i};f.prototype.readUIntBE=function(t,e,o){t=t|0,e=e|0,o||A(t,e,this.length);for(var i=this[t+--e],s=1;e>0&&(s*=256);)i+=this[t+--e]*s;return i};f.prototype.readUInt8=function(t,e){return e||A(t,1,this.length),this[t]};f.prototype.readUInt16LE=function(t,e){return e||A(t,2,this.length),this[t]|this[t+1]<<8};f.prototype.readUInt16BE=function(t,e){return e||A(t,2,this.length),this[t]<<8|this[t+1]};f.prototype.readUInt32LE=function(t,e){return e||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+this[t+3]*16777216};f.prototype.readUInt32BE=function(t,e){return e||A(t,4,this.length),this[t]*16777216+(this[t+1]<<16|this[t+2]<<8|this[t+3])};f.prototype.readIntLE=function(t,e,o){t=t|0,e=e|0,o||A(t,e,this.length);for(var i=this[t],s=1,u=0;++u<e&&(s*=256);)i+=this[t+u]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*e)),i};f.prototype.readIntBE=function(t,e,o){t=t|0,e=e|0,o||A(t,e,this.length);for(var i=e,s=1,u=this[t+--i];i>0&&(s*=256);)u+=this[t+--i]*s;return s*=128,u>=s&&(u-=Math.pow(2,8*e)),u};f.prototype.readInt8=function(t,e){return e||A(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};f.prototype.readInt16LE=function(t,e){e||A(t,2,this.length);var o=this[t]|this[t+1]<<8;return o&32768?o|4294901760:o};f.prototype.readInt16BE=function(t,e){e||A(t,2,this.length);var o=this[t+1]|this[t]<<8;return o&32768?o|4294901760:o};f.prototype.readInt32LE=function(t,e){return e||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24};f.prototype.readInt32BE=function(t,e){return e||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]};f.prototype.readFloatLE=function(t,e){return e||A(t,4,this.length),Xe(this,t,!0,23,4)};f.prototype.readFloatBE=function(t,e){return e||A(t,4,this.length),Xe(this,t,!1,23,4)};f.prototype.readDoubleLE=function(t,e){return e||A(t,8,this.length),Xe(this,t,!0,52,8)};f.prototype.readDoubleBE=function(t,e){return e||A(t,8,this.length),Xe(this,t,!1,52,8)};f.prototype.writeUIntLE=function(t,e,o,i){if(t=+t,e=e|0,o=o|0,!i){var s=Math.pow(2,8*o)-1;C(this,t,e,o,s,0)}var u=1,l=0;for(this[e]=t&255;++l<o&&(u*=256);)this[e+l]=t/u&255;return e+o};f.prototype.writeUIntBE=function(t,e,o,i){if(t=+t,e=e|0,o=o|0,!i){var s=Math.pow(2,8*o)-1;C(this,t,e,o,s,0)}var u=o-1,l=1;for(this[e+u]=t&255;--u>=0&&(l*=256);)this[e+u]=t/l&255;return e+o};f.prototype.writeUInt8=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=t&255,e+1};f.prototype.writeUInt16LE=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t&255,this[e+1]=t>>>8):Je(this,t,e,!0),e+2};f.prototype.writeUInt16BE=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t&255):Je(this,t,e,!1),e+2};f.prototype.writeUInt32LE=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=t&255):Ze(this,t,e,!0),e+4};f.prototype.writeUInt32BE=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255):Ze(this,t,e,!1),e+4};f.prototype.writeIntLE=function(t,e,o,i){if(t=+t,e=e|0,!i){var s=Math.pow(2,8*o-1);C(this,t,e,o,s-1,-s)}var u=0,l=1,m=0;for(this[e]=t&255;++u<o&&(l*=256);)t<0&&m===0&&this[e+u-1]!==0&&(m=1),this[e+u]=(t/l>>0)-m&255;return e+o};f.prototype.writeIntBE=function(t,e,o,i){if(t=+t,e=e|0,!i){var s=Math.pow(2,8*o-1);C(this,t,e,o,s-1,-s)}var u=o-1,l=1,m=0;for(this[e+u]=t&255;--u>=0&&(l*=256);)t<0&&m===0&&this[e+u+1]!==0&&(m=1),this[e+u]=(t/l>>0)-m&255;return e+o};f.prototype.writeInt8=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=t&255,e+1};f.prototype.writeInt16LE=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t&255,this[e+1]=t>>>8):Je(this,t,e,!0),e+2};f.prototype.writeInt16BE=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t&255):Je(this,t,e,!1),e+2};f.prototype.writeInt32LE=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[e]=t&255,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Ze(this,t,e,!0),e+4};f.prototype.writeInt32BE=function(t,e,o){return t=+t,e=e|0,o||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=t&255):Ze(this,t,e,!1),e+4};f.prototype.writeFloatLE=function(t,e,o){return lr(this,t,e,!0,o)};f.prototype.writeFloatBE=function(t,e,o){return lr(this,t,e,!1,o)};f.prototype.writeDoubleLE=function(t,e,o){return cr(this,t,e,!0,o)};f.prototype.writeDoubleBE=function(t,e,o){return cr(this,t,e,!1,o)};f.prototype.copy=function(t,e,o,i){if(o||(o=0),!i&&i!==0&&(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<o&&(i=o),i===o||t.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(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-o&&(i=t.length-e+o);var s=i-o,u;if(this===t&&o<e&&e<i)for(u=s-1;u>=0;--u)t[u+e]=this[u+o];else if(s<1e3||!f.TYPED_ARRAY_SUPPORT)for(u=0;u<s;++u)t[u+e]=this[u+o];else Uint8Array.prototype.set.call(t,this.subarray(o,o+s),e);return s};f.prototype.fill=function(t,e,o,i){if(typeof t=="string"){if(typeof e=="string"?(i=e,e=0,o=this.length):typeof o=="string"&&(i=o,o=this.length),t.length===1){var s=t.charCodeAt(0);s<256&&(t=s)}if(i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!f.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else typeof t=="number"&&(t=t&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,t||(t=0);var u;if(typeof t=="number")for(u=e;u<o;++u)this[u]=t;else{var l=D(t)?t:Ke(new f(t,i).toString()),m=l.length;for(u=0;u<o-e;++u)this[u+e]=l[u%m]}return this};qn=/[^+\/0-9A-Za-z-_]/g});var a=Et(()=>{"use strict";xr()});n();a();function xe(r){throw new Error("Unexpected value: "+JSON.stringify(r))}n();a();n();a();n();a();n();a();function ra(r,t,e){var o=-1,i=r.length;t<0&&(t=-t>i?0:i+t),e=e>i?i:e,e<0&&(e+=i),i=t>e?0:e-t>>>0,t>>>=0;for(var s=Array(i);++o<i;)s[o]=r[o+t];return s}var gr=ra;function oa(r,t,e){var o=r.length;return e=e===void 0?o:e,!t&&e>=o?r:gr(r,t,e)}var yr=oa;n();a();var ia="\\ud800-\\udfff",na="\\u0300-\\u036f",aa="\\ufe20-\\ufe2f",sa="\\u20d0-\\u20ff",fa=na+aa+sa,ua="\\ufe0e\\ufe0f",pa="\\u200d",la=RegExp("["+pa+ia+fa+ua+"]");function ca(r){return la.test(r)}var et=ca;n();a();n();a();function ma(r){return r.split("")}var wr=ma;n();a();var Tr="\\ud800-\\udfff",da="\\u0300-\\u036f",ha="\\ufe20-\\ufe2f",xa="\\u20d0-\\u20ff",ga=da+ha+xa,ya="\\ufe0e\\ufe0f",wa="["+Tr+"]",Lt="["+ga+"]",Rt="\\ud83c[\\udffb-\\udfff]",Ta="(?:"+Lt+"|"+Rt+")",br="[^"+Tr+"]",Ar="(?:\\ud83c[\\udde6-\\uddff]){2}",vr="[\\ud800-\\udbff][\\udc00-\\udfff]",ba="\\u200d",Er=Ta+"?",_r="["+ya+"]?",Aa="(?:"+ba+"(?:"+[br,Ar,vr].join("|")+")"+_r+Er+")*",va=_r+Er+Aa,Ea="(?:"+[br+Lt+"?",Lt,Ar,vr,wa].join("|")+")",_a=RegExp(Rt+"(?="+Rt+")|"+Ea+va,"g");function Sa(r){return r.match(_a)||[]}var Sr=Sa;function Ca(r){return et(r)?Sr(r):wr(r)}var Cr=Ca;n();a();n();a();n();a();n();a();n();a();var Ia=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,tt=Ia;var La=typeof self=="object"&&self&&self.Object===Object&&self,Ra=tt||La||Function("return this")(),v=Ra;var Na=v.Symbol,R=Na;n();a();function Oa(r,t){for(var e=-1,o=r==null?0:r.length,i=Array(o);++e<o;)i[e]=t(r[e],e,r);return i}var Ir=Oa;n();a();var ka=Array.isArray,G=ka;n();a();n();a();n();a();var Lr=Object.prototype,Pa=Lr.hasOwnProperty,Ba=Lr.toString,Be=R?R.toStringTag:void 0;function Ma(r){var t=Pa.call(r,Be),e=r[Be];try{r[Be]=void 0;var o=!0}catch(s){}var i=Ba.call(r);return o&&(t?r[Be]=e:delete r[Be]),i}var Rr=Ma;n();a();var Ua=Object.prototype,Fa=Ua.toString;function Da(r){return Fa.call(r)}var Nr=Da;var ja="[object Null]",$a="[object Undefined]",Or=R?R.toStringTag:void 0;function Wa(r){return r==null?r===void 0?$a:ja:Or&&Or in Object(r)?Rr(r):Nr(r)}var O=Wa;n();a();function Ya(r){return r!=null&&typeof r=="object"}var k=Ya;var za="[object Symbol]";function Ga(r){return typeof r=="symbol"||k(r)&&O(r)==za}var kr=Ga;var Ha=1/0,Pr=R?R.prototype:void 0,Br=Pr?Pr.toString:void 0;function Mr(r){if(typeof r=="string")return r;if(G(r))return Ir(r,Mr)+"";if(kr(r))return Br?Br.call(r):"";var t=r+"";return t=="0"&&1/r==-Ha?"-0":t}var Ur=Mr;function qa(r){return r==null?"":Ur(r)}var re=qa;function Va(r){return function(t){t=re(t);var e=et(t)?Cr(t):void 0,o=e?e[0]:t.charAt(0),i=e?yr(e,1).join(""):t.slice(1);return o[r]()+i}}var Fr=Va;var Ka=Fr("toUpperCase"),Nt=Ka;n();a();n();a();function Ja(r){return Nt(re(r).toLowerCase())}var Dr=Ja;n();a();n();a();function Za(r,t,e,o){var i=-1,s=r==null?0:r.length;for(o&&s&&(e=r[++i]);++i<s;)e=t(e,r[i],i,r);return e}var jr=Za;n();a();n();a();n();a();function Qa(r){return function(t){return r==null?void 0:r[t]}}var $r=Qa;var Xa={\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"},es=$r(Xa),Wr=es;var ts=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rs="\\u0300-\\u036f",os="\\ufe20-\\ufe2f",is="\\u20d0-\\u20ff",ns=rs+os+is,as="["+ns+"]",ss=RegExp(as,"g");function fs(r){return r=re(r),r&&r.replace(ts,Wr).replace(ss,"")}var Yr=fs;n();a();n();a();var us=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function ps(r){return r.match(us)||[]}var zr=ps;n();a();var ls=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function cs(r){return ls.test(r)}var Gr=cs;n();a();var Jr="\\ud800-\\udfff",ms="\\u0300-\\u036f",ds="\\ufe20-\\ufe2f",hs="\\u20d0-\\u20ff",xs=ms+ds+hs,Zr="\\u2700-\\u27bf",Qr="a-z\\xdf-\\xf6\\xf8-\\xff",gs="\\xac\\xb1\\xd7\\xf7",ys="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ws="\\u2000-\\u206f",Ts=" \\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",Xr="A-Z\\xc0-\\xd6\\xd8-\\xde",bs="\\ufe0e\\ufe0f",eo=gs+ys+ws+Ts,to="['\u2019]",Hr="["+eo+"]",As="["+xs+"]",ro="\\d+",vs="["+Zr+"]",oo="["+Qr+"]",io="[^"+Jr+eo+ro+Zr+Qr+Xr+"]",Es="\\ud83c[\\udffb-\\udfff]",_s="(?:"+As+"|"+Es+")",Ss="[^"+Jr+"]",no="(?:\\ud83c[\\udde6-\\uddff]){2}",ao="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+Xr+"]",Cs="\\u200d",qr="(?:"+oo+"|"+io+")",Is="(?:"+Ie+"|"+io+")",Vr="(?:"+to+"(?:d|ll|m|re|s|t|ve))?",Kr="(?:"+to+"(?:D|LL|M|RE|S|T|VE))?",so=_s+"?",fo="["+bs+"]?",Ls="(?:"+Cs+"(?:"+[Ss,no,ao].join("|")+")"+fo+so+")*",Rs="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ns="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Os=fo+so+Ls,ks="(?:"+[vs,no,ao].join("|")+")"+Os,Ps=RegExp([Ie+"?"+oo+"+"+Vr+"(?="+[Hr,Ie,"$"].join("|")+")",Is+"+"+Kr+"(?="+[Hr,Ie+qr,"$"].join("|")+")",Ie+"?"+qr+"+"+Vr,Ie+"+"+Kr,Ns,Rs,ro,ks].join("|"),"g");function Bs(r){return r.match(Ps)||[]}var uo=Bs;function Ms(r,t,e){return r=re(r),t=e?void 0:t,t===void 0?Gr(r)?uo(r):zr(r):r.match(t)||[]}var po=Ms;var Us="['\u2019]",Fs=RegExp(Us,"g");function Ds(r){return function(t){return jr(po(Yr(t).replace(Fs,"")),r,"")}}var lo=Ds;var js=lo(function(r,t,e){return t=t.toLowerCase(),r+(e?Dr(t):t)}),$s=js;n();a();n();a();function Ws(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var rt=Ws;n();a();n();a();n();a();n();a();var Ys="[object AsyncFunction]",zs="[object Function]",Gs="[object GeneratorFunction]",Hs="[object Proxy]";function qs(r){if(!rt(r))return!1;var t=O(r);return t==zs||t==Gs||t==Ys||t==Hs}var ot=qs;n();a();n();a();var Vs=v["__core-js_shared__"],it=Vs;var co=(function(){var r=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Ks(r){return!!co&&co in r}var mo=Ks;n();a();var Js=Function.prototype,Zs=Js.toString;function Qs(r){if(r!=null){try{return Zs.call(r)}catch(t){}try{return r+""}catch(t){}}return""}var H=Qs;var Xs=/[\\^$.*+?()[\]{}|]/g,ef=/^\[object .+?Constructor\]$/,tf=Function.prototype,rf=Object.prototype,of=tf.toString,nf=rf.hasOwnProperty,af=RegExp("^"+of.call(nf).replace(Xs,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sf(r){if(!rt(r)||mo(r))return!1;var t=ot(r)?af:ef;return t.test(H(r))}var ho=sf;n();a();function ff(r,t){return r==null?void 0:r[t]}var xo=ff;function uf(r,t){var e=xo(r,t);return ho(e)?e:void 0}var N=uf;var pf=N(v,"WeakMap"),nt=pf;n();a();function lf(){}var go=lf;n();a();n();a();n();a();function cf(r,t,e,o){for(var i=r.length,s=e+(o?1:-1);o?s--:++s<i;)if(t(r[s],s,r))return s;return-1}var yo=cf;n();a();function mf(r){return r!==r}var wo=mf;n();a();function df(r,t,e){for(var o=e-1,i=r.length;++o<i;)if(r[o]===t)return o;return-1}var To=df;function hf(r,t,e){return t===t?To(r,t,e):yo(r,wo,e)}var bo=hf;function xf(r,t){var e=r==null?0:r.length;return!!e&&bo(r,t,0)>-1}var Ao=xf;n();a();var gf=9007199254740991,yf=/^(?:0|[1-9]\d*)$/;function wf(r,t){var e=typeof r;return t=t==null?gf:t,!!t&&(e=="number"||e!="symbol"&&yf.test(r))&&r>-1&&r%1==0&&r<t}var vo=wf;n();a();function Tf(r,t){return r===t||r!==r&&t!==t}var at=Tf;n();a();n();a();var bf=9007199254740991;function Af(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=bf}var st=Af;function vf(r){return r!=null&&st(r.length)&&!ot(r)}var Eo=vf;n();a();var Ef=Object.prototype;function _f(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||Ef;return r===e}var _o=_f;n();a();n();a();n();a();function Sf(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}var So=Sf;n();a();n();a();var Cf="[object Arguments]";function If(r){return k(r)&&O(r)==Cf}var Ot=If;var Co=Object.prototype,Lf=Co.hasOwnProperty,Rf=Co.propertyIsEnumerable,Nf=Ot((function(){return arguments})())?Ot:function(r){return k(r)&&Lf.call(r,"callee")&&!Rf.call(r,"callee")},Io=Nf;n();a();n();a();function Of(){return!1}var Lo=Of;var Oo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ro=Oo&&typeof module=="object"&&module&&!module.nodeType&&module,kf=Ro&&Ro.exports===Oo,No=kf?v.Buffer:void 0,Pf=No?No.isBuffer:void 0,Bf=Pf||Lo,Me=Bf;n();a();n();a();var Mf="[object Arguments]",Uf="[object Array]",Ff="[object Boolean]",Df="[object Date]",jf="[object Error]",$f="[object Function]",Wf="[object Map]",Yf="[object Number]",zf="[object Object]",Gf="[object RegExp]",Hf="[object Set]",qf="[object String]",Vf="[object WeakMap]",Kf="[object ArrayBuffer]",Jf="[object DataView]",Zf="[object Float32Array]",Qf="[object Float64Array]",Xf="[object Int8Array]",eu="[object Int16Array]",tu="[object Int32Array]",ru="[object Uint8Array]",ou="[object Uint8ClampedArray]",iu="[object Uint16Array]",nu="[object Uint32Array]",T={};T[Zf]=T[Qf]=T[Xf]=T[eu]=T[tu]=T[ru]=T[ou]=T[iu]=T[nu]=!0;T[Mf]=T[Uf]=T[Kf]=T[Ff]=T[Jf]=T[Df]=T[jf]=T[$f]=T[Wf]=T[Yf]=T[zf]=T[Gf]=T[Hf]=T[qf]=T[Vf]=!1;function au(r){return k(r)&&st(r.length)&&!!T[O(r)]}var ko=au;n();a();function su(r){return function(t){return r(t)}}var Po=su;n();a();var Bo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ue=Bo&&typeof module=="object"&&module&&!module.nodeType&&module,fu=Ue&&Ue.exports===Bo,kt=fu&&tt.process,uu=(function(){try{var r=Ue&&Ue.require&&Ue.require("util").types;return r||kt&&kt.binding&&kt.binding("util")}catch(t){}})(),Pt=uu;var Mo=Pt&&Pt.isTypedArray,pu=Mo?Po(Mo):ko,ft=pu;var lu=Object.prototype,cu=lu.hasOwnProperty;function mu(r,t){var e=G(r),o=!e&&Io(r),i=!e&&!o&&Me(r),s=!e&&!o&&!i&&ft(r),u=e||o||i||s,l=u?So(r.length,String):[],m=l.length;for(var d in r)(t||cu.call(r,d))&&!(u&&(d=="length"||i&&(d=="offset"||d=="parent")||s&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||vo(d,m)))&&l.push(d);return l}var Uo=mu;n();a();n();a();n();a();function du(r,t){return function(e){return r(t(e))}}var Fo=du;var hu=Fo(Object.keys,Object),Do=hu;var xu=Object.prototype,gu=xu.hasOwnProperty;function yu(r){if(!_o(r))return Do(r);var t=[];for(var e in Object(r))gu.call(r,e)&&e!="constructor"&&t.push(e);return t}var jo=yu;function wu(r){return Eo(r)?Uo(r):jo(r)}var $o=wu;n();a();n();a();n();a();n();a();n();a();var Tu=N(Object,"create"),q=Tu;function bu(){this.__data__=q?q(null):{},this.size=0}var Wo=bu;n();a();function Au(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Yo=Au;n();a();var vu="__lodash_hash_undefined__",Eu=Object.prototype,_u=Eu.hasOwnProperty;function Su(r){var t=this.__data__;if(q){var e=t[r];return e===vu?void 0:e}return _u.call(t,r)?t[r]:void 0}var zo=Su;n();a();var Cu=Object.prototype,Iu=Cu.hasOwnProperty;function Lu(r){var t=this.__data__;return q?t[r]!==void 0:Iu.call(t,r)}var Go=Lu;n();a();var Ru="__lodash_hash_undefined__";function Nu(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=q&&t===void 0?Ru:t,this}var Ho=Nu;function Le(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}Le.prototype.clear=Wo;Le.prototype.delete=Yo;Le.prototype.get=zo;Le.prototype.has=Go;Le.prototype.set=Ho;var Bt=Le;n();a();n();a();function Ou(){this.__data__=[],this.size=0}var qo=Ou;n();a();n();a();function ku(r,t){for(var e=r.length;e--;)if(at(r[e][0],t))return e;return-1}var oe=ku;var Pu=Array.prototype,Bu=Pu.splice;function Mu(r){var t=this.__data__,e=oe(t,r);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():Bu.call(t,e,1),--this.size,!0}var Vo=Mu;n();a();function Uu(r){var t=this.__data__,e=oe(t,r);return e<0?void 0:t[e][1]}var Ko=Uu;n();a();function Fu(r){return oe(this.__data__,r)>-1}var Jo=Fu;n();a();function Du(r,t){var e=this.__data__,o=oe(e,r);return o<0?(++this.size,e.push([r,t])):e[o][1]=t,this}var Zo=Du;function Re(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}Re.prototype.clear=qo;Re.prototype.delete=Vo;Re.prototype.get=Ko;Re.prototype.has=Jo;Re.prototype.set=Zo;var ie=Re;n();a();var ju=N(v,"Map"),ne=ju;function $u(){this.size=0,this.__data__={hash:new Bt,map:new(ne||ie),string:new Bt}}var Qo=$u;n();a();n();a();n();a();function Wu(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var Xo=Wu;function Yu(r,t){var e=r.__data__;return Xo(t)?e[typeof t=="string"?"string":"hash"]:e.map}var ae=Yu;function zu(r){var t=ae(this,r).delete(r);return this.size-=t?1:0,t}var ei=zu;n();a();function Gu(r){return ae(this,r).get(r)}var ti=Gu;n();a();function Hu(r){return ae(this,r).has(r)}var ri=Hu;n();a();function qu(r,t){var e=ae(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}var oi=qu;function Ne(r){var t=-1,e=r==null?0:r.length;for(this.clear();++t<e;){var o=r[t];this.set(o[0],o[1])}}Ne.prototype.clear=Qo;Ne.prototype.delete=ei;Ne.prototype.get=ti;Ne.prototype.has=ri;Ne.prototype.set=oi;var ut=Ne;n();a();function Vu(r,t){for(var e=-1,o=t.length,i=r.length;++e<o;)r[i+e]=t[e];return r}var ii=Vu;n();a();n();a();function Ku(){this.__data__=new ie,this.size=0}var ni=Ku;n();a();function Ju(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var ai=Ju;n();a();function Zu(r){return this.__data__.get(r)}var si=Zu;n();a();function Qu(r){return this.__data__.has(r)}var fi=Qu;n();a();var Xu=200;function ep(r,t){var e=this.__data__;if(e instanceof ie){var o=e.__data__;if(!ne||o.length<Xu-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new ut(o)}return e.set(r,t),this.size=e.size,this}var ui=ep;function Oe(r){var t=this.__data__=new ie(r);this.size=t.size}Oe.prototype.clear=ni;Oe.prototype.delete=ai;Oe.prototype.get=si;Oe.prototype.has=fi;Oe.prototype.set=ui;var pt=Oe;n();a();n();a();function tp(r,t){for(var e=-1,o=r==null?0:r.length,i=0,s=[];++e<o;){var u=r[e];t(u,e,r)&&(s[i++]=u)}return s}var pi=tp;n();a();function rp(){return[]}var li=rp;var op=Object.prototype,ip=op.propertyIsEnumerable,ci=Object.getOwnPropertySymbols,np=ci?function(r){return r==null?[]:(r=Object(r),pi(ci(r),function(t){return ip.call(r,t)}))}:li,mi=np;n();a();n();a();function ap(r,t,e){var o=t(r);return G(r)?o:ii(o,e(r))}var di=ap;function sp(r){return di(r,$o,mi)}var Mt=sp;n();a();n();a();var fp=N(v,"DataView"),lt=fp;n();a();var up=N(v,"Promise"),ct=up;n();a();var pp=N(v,"Set"),se=pp;var hi="[object Map]",lp="[object Object]",xi="[object Promise]",gi="[object Set]",yi="[object WeakMap]",wi="[object DataView]",cp=H(lt),mp=H(ne),dp=H(ct),hp=H(se),xp=H(nt),ge=O;(lt&&ge(new lt(new ArrayBuffer(1)))!=wi||ne&&ge(new ne)!=hi||ct&&ge(ct.resolve())!=xi||se&&ge(new se)!=gi||nt&&ge(new nt)!=yi)&&(ge=function(r){var t=O(r),e=t==lp?r.constructor:void 0,o=e?H(e):"";if(o)switch(o){case cp:return wi;case mp:return hi;case dp:return xi;case hp:return gi;case xp:return yi}return t});var Ut=ge;n();a();var gp=v.Uint8Array,Ft=gp;n();a();n();a();n();a();n();a();n();a();var yp="__lodash_hash_undefined__";function wp(r){return this.__data__.set(r,yp),this}var Ti=wp;n();a();function Tp(r){return this.__data__.has(r)}var bi=Tp;function mt(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new ut;++t<e;)this.add(r[t])}mt.prototype.add=mt.prototype.push=Ti;mt.prototype.has=bi;var dt=mt;n();a();function bp(r,t){for(var e=-1,o=r==null?0:r.length;++e<o;)if(t(r[e],e,r))return!0;return!1}var Ai=bp;n();a();function Ap(r,t){return r.has(t)}var ht=Ap;var vp=1,Ep=2;function _p(r,t,e,o,i,s){var u=e&vp,l=r.length,m=t.length;if(l!=m&&!(u&&m>l))return!1;var d=s.get(r),h=s.get(t);if(d&&h)return d==t&&h==r;var x=-1,g=!0,w=e&Ep?new dt:void 0;for(s.set(r,t),s.set(t,r);++x<l;){var b=r[x],_=t[x];if(o)var U=u?o(_,b,x,t,r,s):o(b,_,x,r,t,s);if(U!==void 0){if(U)continue;g=!1;break}if(w){if(!Ai(t,function(le,ce){if(!ht(w,ce)&&(b===le||i(b,le,e,o,s)))return w.push(ce)})){g=!1;break}}else if(!(b===_||i(b,_,e,o,s))){g=!1;break}}return s.delete(r),s.delete(t),g}var xt=_p;n();a();n();a();function Sp(r){var t=-1,e=Array(r.size);return r.forEach(function(o,i){e[++t]=[i,o]}),e}var vi=Sp;n();a();function Cp(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o}),e}var ke=Cp;var Ip=1,Lp=2,Rp="[object Boolean]",Np="[object Date]",Op="[object Error]",kp="[object Map]",Pp="[object Number]",Bp="[object RegExp]",Mp="[object Set]",Up="[object String]",Fp="[object Symbol]",Dp="[object ArrayBuffer]",jp="[object DataView]",Ei=R?R.prototype:void 0,Dt=Ei?Ei.valueOf:void 0;function $p(r,t,e,o,i,s,u){switch(e){case jp:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Dp:return!(r.byteLength!=t.byteLength||!s(new Ft(r),new Ft(t)));case Rp:case Np:case Pp:return at(+r,+t);case Op:return r.name==t.name&&r.message==t.message;case Bp:case Up:return r==t+"";case kp:var l=vi;case Mp:var m=o&Ip;if(l||(l=ke),r.size!=t.size&&!m)return!1;var d=u.get(r);if(d)return d==t;o|=Lp,u.set(r,t);var h=xt(l(r),l(t),o,i,s,u);return u.delete(r),h;case Fp:if(Dt)return Dt.call(r)==Dt.call(t)}return!1}var _i=$p;n();a();var Wp=1,Yp=Object.prototype,zp=Yp.hasOwnProperty;function Gp(r,t,e,o,i,s){var u=e&Wp,l=Mt(r),m=l.length,d=Mt(t),h=d.length;if(m!=h&&!u)return!1;for(var x=m;x--;){var g=l[x];if(!(u?g in t:zp.call(t,g)))return!1}var w=s.get(r),b=s.get(t);if(w&&b)return w==t&&b==r;var _=!0;s.set(r,t),s.set(t,r);for(var U=u;++x<m;){g=l[x];var le=r[g],ce=t[g];if(o)var zt=u?o(ce,le,g,t,r,s):o(le,ce,g,r,t,s);if(!(zt===void 0?le===ce||i(le,ce,e,o,s):zt)){_=!1;break}U||(U=g=="constructor")}if(_&&!U){var We=r.constructor,Ye=t.constructor;We!=Ye&&"constructor"in r&&"constructor"in t&&!(typeof We=="function"&&We instanceof We&&typeof Ye=="function"&&Ye instanceof Ye)&&(_=!1)}return s.delete(r),s.delete(t),_}var Si=Gp;var Hp=1,Ci="[object Arguments]",Ii="[object Array]",gt="[object Object]",qp=Object.prototype,Li=qp.hasOwnProperty;function Vp(r,t,e,o,i,s){var u=G(r),l=G(t),m=u?Ii:Ut(r),d=l?Ii:Ut(t);m=m==Ci?gt:m,d=d==Ci?gt:d;var h=m==gt,x=d==gt,g=m==d;if(g&&Me(r)){if(!Me(t))return!1;u=!0,h=!1}if(g&&!h)return s||(s=new pt),u||ft(r)?xt(r,t,e,o,i,s):_i(r,t,m,e,o,i,s);if(!(e&Hp)){var w=h&&Li.call(r,"__wrapped__"),b=x&&Li.call(t,"__wrapped__");if(w||b){var _=w?r.value():r,U=b?t.value():t;return s||(s=new pt),i(_,U,e,o,s)}}return g?(s||(s=new pt),Si(r,t,e,o,i,s)):!1}var Ri=Vp;function Ni(r,t,e,o,i){return r===t?!0:r==null||t==null||!k(r)&&!k(t)?r!==r&&t!==t:Ri(r,t,e,o,Ni,i)}var Oi=Ni;n();a();function Kp(r,t,e){for(var o=-1,i=r==null?0:r.length;++o<i;)if(e(t,r[o]))return!0;return!1}var ki=Kp;n();a();function Jp(r,t){return Oi(r,t)}var yt=Jp;n();a();n();a();var Zp=1/0,Qp=se&&1/ke(new se([,-0]))[1]==Zp?function(r){return new se(r)}:go,Pi=Qp;var Xp=200;function el(r,t,e){var o=-1,i=Ao,s=r.length,u=!0,l=[],m=l;if(e)u=!1,i=ki;else if(s>=Xp){var d=t?null:Pi(r);if(d)return ke(d);u=!1,i=ht,m=new dt}else m=t?[]:l;e:for(;++o<s;){var h=r[o],x=t?t(h):h;if(h=e||h!==0?h:0,u&&x===x){for(var g=m.length;g--;)if(m[g]===x)continue e;t&&m.push(x),l.push(h)}else i(m,x,e)||(m!==l&&m.push(x),l.push(h))}return l}var Bi=el;n();a();function tl(r,t){return t=typeof t=="function"?t:void 0,r&&r.length?Bi(r,void 0,t):[]}var wt=tl;n();a();n();a();function rl(r){return Object.keys(r)}var $e={};Qi($e,{Access:()=>fe,Array:()=>ye,AstNode:()=>y,Attribute:()=>we,Class:()=>J,ClassInstantiation:()=>W,ClassReference:()=>E,CodeBlock:()=>S,DataClass:()=>Te,Enum:()=>be,Field:()=>Ae,Map:()=>ve,Method:()=>X,MethodInvocation:()=>Q,Parameter:()=>Z,Trait:()=>Ee,Type:()=>M,TypeLiteral:()=>B,Writer:()=>$,array:()=>dl,assignVariable:()=>Il,attribute:()=>hl,classReference:()=>yl,class_:()=>xl,codeblock:()=>_e,dataClass:()=>wl,enum_:()=>Tl,escapePhpString:()=>Yt,field:()=>bl,instantiateClass:()=>Ki,invokeMethod:()=>Al,map:()=>El,mergeArrays:()=>Nl,method:()=>_l,parameter:()=>Sl,string:()=>Rl,ternary:()=>Cl,this_:()=>Ol,throwException:()=>vl,trait:()=>gl,variable:()=>Ll});n();a();n();a();n();a();n();a();var Mi,Ui,Fe=(Ui=(Mi=p.env.FERN_STACK_TRACK)==null?void 0:Mi.toLowerCase())!=null?Ui:"",j=Fe!==""&&Fe!=="0"&&Fe!=="false",jt=["single","multiline","box"].includes(Fe)?Fe:"single";j&&(Error.stackTraceLimit=50);var ol=new Set(["SdkGeneratorCLI","runCli","LoggerImpl","Array.forEach"]),il=new Set(["stacktrace"]);function bt({maxFrames:r=50,skip:t=0,filterPaths:e=[],filterFunctions:o=[],stopOn:i=[],filterNode:s=!0,filterJs:u=!0,formatFilename:l=m=>m}={}){var d;if(!j)return[];o=[...o,...ol],e=[...e,...il],i=[...i,"runInteractiveTask"];let m=!1;return((d=new Error().stack)!=null?d:"").split(`
|
|
2
|
+
`).map(h=>{let x=h.match(/at\s+(.*)\s+\((.*):(\d+):(\d+)\)/);if(x&&x.length===5){let[,g,w,b,_]=x;if(!g||!w||!b||!_)return;if(m||i.some(U=>g==null?void 0:g.includes(U))){m=!0;return}switch(g){case"Object.<anonymous>":g="";break;case"Object.object":case"Object.alias":case"Object.union":case"Object.enum":case"Object.undiscriminatedUnion":g=`${g.substring(g.indexOf(".")+1)}()=> { ... }`;break}return{fn:g,path:l(w),position:`${b}:${_}`}}}).filter(h=>{var x,g;return h&&!o.some(w=>h.fn.includes(w))&&!(s&&((x=h.path)!=null&&x.startsWith("node:")))&&!(u&&((g=h.path)!=null&&g.endsWith(".js")))&&!e.some(w=>h.path.includes(w))}).slice(t,t+r)}var Tt=class{constructor({maxFrames:t=50,skip:e=0,filterPaths:o=[],filterFunctions:i=[],stopOn:s=[],filterNode:u=!0,filterJs:l=!0,multiline:m=!1,formatFilename:d=h=>h}={}){c(this,"maxFrames");c(this,"skip");c(this,"filterPaths");c(this,"filterFunctions");c(this,"stopOn");c(this,"filterNode");c(this,"filterJs");c(this,"multiline");c(this,"formatFilename");c(this,"tracking",new WeakMap);this.maxFrames=t,this.skip=e,this.filterPaths=o,this.filterFunctions=i,this.stopOn=s,this.filterNode=u,this.filterJs=l,this.multiline=m,this.formatFilename=d}tag(t){let e=this.tracking.get(t)||new Set;bt({maxFrames:this.maxFrames,skip:this.skip,filterPaths:this.filterPaths,filterFunctions:this.filterFunctions,stopOn:this.stopOn,filterNode:this.filterNode,filterJs:this.filterJs,formatFilename:this.formatFilename}).forEach(o=>e.add(o)),this.tracking.set(t,e)}trace(t){if(!j)return"";let e=this.tracking.get(t);return e?[...e].map(o=>`${this.multiline?`
|
|
3
|
+
`:""}${o.fn} - ${o.path}:${o.position}`).join(""):""}frames(t){let e=this.tracking.get(t);return e?[...e]:[]}free(t){this.tracking.delete(t)}clear(){this.tracking=new WeakMap}},V;function Fi({maxFrames:r=50,skip:t=0,filterPaths:e=[],filterFunctions:o=[],stopOn:i=[],filterNode:s=!0,filterJs:u=!0,multiline:l=!1,formatFilename:m=d=>d}={}){j&&(V!=null||(V=new Tt({maxFrames:r,skip:t,filterPaths:e,filterFunctions:o,stopOn:i,filterNode:s,filterJs:u,multiline:l,formatFilename:m})))}function Di(r){V==null||V.tag(r)}function $t(r){var t;return(t=V==null?void 0:V.frames(r))!=null?t:[]}var K=class{constructor(){Di(this)}};n();a();n();a();n();a();var P=class extends K{constructor(e){super();c(this,"value");this.value=e}write(e){typeof this.value=="string"?e.write(this.value):typeof this.value=="function"?this.value(e):this.value.write(e)}};var nl=4;Fi({skip:0,maxFrames:15,filterFunctions:["Abstract"]});var De=class{constructor(){c(this,"lineBuffer",[]);c(this,"indentLevel",0);c(this,"hasWrittenAnything",!1);c(this,"lastCharacterIsSemicolon",!1);c(this,"lastCharacterIsNewline",!1);c(this,"nodeStackFrames",[])}get buffer(){return j&&this.nodeStackFrames.length>0&&this.writeInternal(`
|
|
4
|
+
`),this.lineBuffer.join(`
|
|
5
|
+
`)+(this.lastCharacterIsNewline?`
|
|
6
|
+
`:"")}write(...t){for(let e of t)if(e!=null)if(typeof e=="string"){let o=e.length>0&&e.endsWith(`
|
|
7
|
+
`),i=o?e.substring(0,e.length-1):e,s=this.getIndentString(),u=i.replaceAll(`
|
|
8
|
+
`,`
|
|
9
|
+
${s}`);this.isAtStartOfLine()&&(u=s+u),o&&(u+=`
|
|
10
|
+
`),this.writeInternal(u)}else this.writeNode(e)}writeStatement(...t){this.write(...t),this.write(";"),this.writeNewLineIfLastLineNot()}writeNoIndent(t){let e=this.indentLevel;this.indentLevel=0,this.write(t),this.indentLevel=e}writeNode(t){j&&this.nodeStackFrames.push(...$t(t)),t.write(this),j&&jt!=="single"&&this.writeInternal(`
|
|
11
|
+
`)}writeNodeOrString(t){if(typeof t=="string"){this.write(t);return}this.writeNode(t)}writeNodeStatement(t){this.writeNode(t),this.write(";"),this.writeNewLineIfLastLineNot()}writeTextStatement(t){new P(t).write(this),t.endsWith(";")||this.write(";"),this.writeNewLineIfLastLineNot()}controlFlow(t,e){new P(t).write(this),this.write(" (",e,")"),this.pushScope()}controlFlowWithoutStatement(t){new P(t).write(this),this.pushScope()}endControlFlow(){this.popScope()}contiguousControlFlow(t,e){this.dedent(),this.write("} "),new P(t).write(this),this.write(" (",e,")"),this.pushScope()}alternativeControlFlow(t){this.dedent(),this.write("} "),new P(t).write(this),this.pushScope()}pushScope(){this.writeLine("{"),this.indent()}popScope(t=!0){this.dedent(),this.writeNewLineIfLastLineNot(),t?this.writeLine("}"):this.write("}")}writeLine(...t){this.write(...t.length===0?[""]:t),this.writeNewLineIfLastLineNot()}newLine(){this.writeInternal(`
|
|
12
|
+
`)}writeSemicolonIfLastCharacterIsNot(){this.lastCharacterIsSemicolon||this.writeInternal(";")}writeNewLineIfLastLineNot(){this.lastCharacterIsNewline||this.writeInternal(`
|
|
13
|
+
`)}indent(){this.indentLevel++}dedent(){this.indentLevel--}delimit({nodes:t,delimiter:e,writeFunction:o}){if(t.length>0){let i=t[0];i!=null&&o(i);for(let s=1;s<t.length;s++){this.write(e);let u=t[s];u!=null&&o(u)}}}toString(){return this.buffer}writeInternal(t){if(t.length===0)return;let e=!this.lastCharacterIsNewline;this.hasWrittenAnything=!0,this.lastCharacterIsNewline=t.endsWith(`
|
|
14
|
+
`),this.lastCharacterIsSemicolon=t.endsWith(";");let o=t.split(`
|
|
15
|
+
`),i=j&&!this.shouldSkipTracking(o)&&this.lastCharacterIsNewline;e&&(this.lastLine=`${this.lastLine}${o.shift()||""}`),this.lastCharacterIsNewline&&o.pop(),this.lineBuffer.push(...o),i&&this.appendTrackingComment()}set lastLine(t){this.lineBuffer.length>0?this.lineBuffer[this.lineBuffer.length-1]=t:this.lineBuffer.push(t)}get lastLine(){return this.lineBuffer[this.lineBuffer.length-1]||""}shouldSkipTracking(t){return!1}formatStack(t,e=""){return t.map(o=>`${e?`(${e}) `:""} ${o.fn} - ${o.path} : ${o.position}`)}filterStack(t){return t.filter(e=>!e.fn.startsWith(`${this.constructor.name}.`))}appendTrackingComment(){let t=[...this.formatStack(this.filterStack(bt({maxFrames:15,skip:3}))),...this.formatStack(this.filterStack(this.nodeStackFrames),"node")];switch(this.nodeStackFrames.length=0,jt){case"single":return this.singleLineTrackingComment(t);case"multiline":return this.multiLineTrackingComment(t);case"box":return this.boxTrackingComment(t)}}singleLineTrackingComment(t){this.lastLine=`${this.lastLine} // ${t.join(" ")}`}multiLineTrackingComment(t){this.lineBuffer.push(...t.map(e=>` // ${e}`))}boxTrackingComment(t){this.lineBuffer.push("/*",...t.map(e=>` ${e}`),"*/")}isAtStartOfLine(){return this.lastCharacterIsNewline||!this.hasWrittenAnything}getIndentString(){return" ".repeat(this.indentLevel*this.getTabSize())}getTabSize(){return nl}};n();a();function Wt(r){return(r==null?void 0:r.name)!=null&&(r==null?void 0:r.assignment)!=null}n();a();var je=class extends K{constructor({condition:e,true_:o,false_:i}){super();c(this,"condition");c(this,"true_");c(this,"false_");this.condition=e,this.true_=o,this.false_=i}write(e){e.writeNode(this.condition),e.write(" ? "),e.writeNode(this.true_),e.write(" : "),e.writeNode(this.false_)}};n();a();n();a();var fe={Public:"public",PublicReadonly:"public readonly",Protected:"protected",Private:"private"};n();a();n();a();n();a();n();a();var ji="self",$i="static";function Wi(r){return{namespace:r.substring(0,r.lastIndexOf("\\")),name:r.substring(r.lastIndexOf("\\")+1)}}var $=class extends De{constructor({namespace:e,rootNamespace:o,customConfig:i}){super();c(this,"namespace");c(this,"rootNamespace");c(this,"customConfig");c(this,"references",{});this.namespace=e,this.rootNamespace=o,this.customConfig=i}addReference(e){var u,l;if(e.namespace==null)return;if(Object.keys(this.references).filter(m=>{let d=Wi(m);return d.namespace!==e.namespace&&d.name===e.name}).length>0){e.requireFullyQualified();return}let i=e.namespace===""?e.name:`${e.namespace}\\${e.name}`;((l=(u=this.references)[i])!=null?l:u[i]=[]).push(e)}toString(e=!1){if(e)return this.buffer;let o=`namespace ${this.namespace};`,i=this.stringifyImports();return i.length>0?`${o}
|
|
16
|
+
|
|
17
|
+
${i}
|
|
18
|
+
|
|
19
|
+
${this.buffer}`:o+`
|
|
20
|
+
|
|
21
|
+
`+this.buffer}stringifyImports(){let e=Object.keys(this.references);return e.length===0?"":e.filter(o=>Wi(o).namespace!==this.namespace).map(o=>`use ${o};`).join(`
|
|
22
|
+
`)}};var y=class extends K{toString(t){if(t==null)throw new Error("Internal error; AstNode.toString method called incorrectly.");let{namespace:e,rootNamespace:o,customConfig:i,skipImports:s=!1}=t,u=new $({namespace:e,rootNamespace:o,customConfig:i});return this.write(u),u.toString(s)}async toStringAsync({namespace:t,rootNamespace:e,customConfig:o}){let i=new $({namespace:t,rootNamespace:e,customConfig:o});return this.write(i),i.toString()}};var ye=class extends y{constructor({entries:e}){super();c(this,"entries");this.entries=e!=null?e:[]}write(e){e.write("["),this.entries.forEach((o,i)=>{i>0&&e.write(", "),o.write(e)}),e.write("]")}};n();a();var we=class extends y{constructor(e){var o;super();c(this,"reference");c(this,"arguments");this.reference=e.reference,this.arguments=(o=e.arguments)!=null?o:[]}write(e){e.addReference(this.reference),e.write(`${this.reference.name}`),this.arguments.length>0&&(e.write("("),this.arguments.forEach((o,i)=>{i>0&&e.write(","),typeof o=="string"?e.write(o):o.write(e)}),e.write(")"))}};n();a();n();a();var E=class extends y{constructor({name:e,namespace:o,generics:i}){super();c(this,"name");c(this,"namespace");c(this,"generics");c(this,"fullyQualified");this.name=e,this.namespace=o,this.generics=i,this.fullyQualified=!1}requireFullyQualified(){this.fullyQualified=!0}write(e){e.addReference(this);let o=this.fullyQualified?`\\${this.namespace}\\${this.name}`:this.name;e.write(`${o}`)}};n();a();n();a();function ue(r){return r.startsWith("$")?r:`$${r}`}var I=class extends y{constructor({docs:e}={}){super();c(this,"docs");c(this,"tags",[]);this.docs=e}addTag(e){this.tags.push(He(Ge({},e),{name:e.name!=null?ue(e.name):void 0}))}write(e){e.writeLine("/**"),this.docs!=null&&(this.docs.split(`
|
|
23
|
+
`).forEach(o=>{e.writeLine(` * ${o}`)}),this.tags.length>0&&e.writeLine(" *"));for(let o of this.tags)this.writeTag({writer:e,tag:o});e.writeLine(" */")}writeTag({writer:e,tag:o}){let i=o.docs!=null?o.docs.split(`
|
|
24
|
+
`):void 0;i!=null&&i.length>1&&(i.forEach(s=>{e.writeLine(` * ${s}`)}),e.writeLine(" *")),e.write(` * @${o.tagType} `),o.type.write(e,{comment:!0}),o.name!=null&&e.write(` ${o.name}`),i!=null&&i.length===1&&e.write(` ${i[0]}`),e.newLine()}};n();a();function pe(r){return al(r,[fe.Public,fe.PublicReadonly,fe.Protected,fe.Private])}function al(r,t){return t.reduce((e,o)=>[...e,...r.filter(i=>i.access===o)],[])}var J=class extends y{constructor({name:e,namespace:o,abstract:i,docs:s,parentClassReference:u,traits:l}){super();c(this,"name");c(this,"namespace");c(this,"abstract");c(this,"docs");c(this,"parentClassReference");c(this,"traits");c(this,"fields",[]);c(this,"methods",[]);c(this,"constructor_");this.name=e,this.namespace=o,this.abstract=i!=null?i:!1,this.docs=s,this.parentClassReference=u,this.traits=l!=null?l:[]}addConstructor(e){this.constructor_=e}addField(e){this.fields.push(e)}addMethod(e){this.methods.push(e)}addMethods(e){this.methods.push(...e)}addTrait(e){this.traits.push(e)}write(e){e.addReference(new E({name:this.name,namespace:this.namespace})),this.abstract&&e.write("abstract "),this.writeComment(e),e.write(`class ${this.name} `),this.parentClassReference!=null&&(e.write("extends "),this.parentClassReference.write(e)),e.newLine(),e.writeLine("{"),e.indent(),this.traits.length>0&&(e.write("use "),this.traits.forEach((o,i)=>{i>0&&e.write(","),e.writeNode(o)}),e.writeTextStatement(""),e.newLine()),this.writeFields({writer:e,fields:pe(this.fields)}),(this.constructor!=null||this.methods.length>0)&&e.newLine(),this.constructor_!=null&&(this.writeConstructor({writer:e,constructor:this.constructor_}),this.methods.length>0&&e.newLine()),this.writeMethods({writer:e,methods:pe(this.methods)}),e.dedent(),e.writeLine("}")}writeComment(e){if(this.docs==null)return;new I({docs:this.docs}).write(e)}writeConstructor({writer:e,constructor:o}){var i;this.writeConstructorComment({writer:e,constructor:o}),o.access!=null&&e.write(`${o.access} `),e.write("function __construct("),e.indent(),o.parameters.forEach((s,u)=>{u===0&&e.newLine(),s.write(e),e.writeLine(",")}),e.dedent(),e.writeLine(")"),e.writeLine("{"),e.indent(),(i=o.body)==null||i.write(e),e.writeNewLineIfLastLineNot(),e.dedent(),e.writeLine("}")}writeConstructorComment({writer:e,constructor:o}){if(o.parameters.length===0)return;let i=new I;for(let s of o.parameters)i.addTag(s.getCommentTag());i.write(e)}writeFields({writer:e,fields:o}){o.filter(i=>!i.inherited).forEach((i,s)=>{s>0&&e.newLine(),i.write(e),e.writeNewLineIfLastLineNot()})}writeMethods({writer:e,methods:o}){o.forEach((i,s)=>{s>0&&e.newLine(),i.write(e),e.writeNewLineIfLastLineNot()})}};n();a();n();a();function Pe({writer:r,arguments_:t,multiline:e}){if(t.length===0){r.write("()");return}if(e){sl({writer:r,arguments_:t});return}fl({writer:r,arguments_:t})}function sl({writer:r,arguments_:t}){r.writeLine("("),r.indent();for(let e of t)zi({writer:r,argument:e,writeCompact:!1}),r.writeLine(",");r.dedent(),r.write(")")}function fl({writer:r,arguments_:t}){r.write("("),t.forEach((e,o)=>{o>0&&r.write(", "),zi({writer:r,argument:e,writeCompact:!0})}),r.write(")")}function zi({writer:r,argument:t,writeCompact:e}){Wt(t)?(t.docs&&(e?r.write(`/* ${t.docs} */ `):r.writeLine(`/* ${t.docs} */`)),r.write(`${t.name}: `),r.writeNodeOrString(t.assignment)):t.write(r)}var W=class extends y{constructor({classReference:e,arguments_:o,multiline:i}){super();c(this,"classReference");c(this,"arguments_");c(this,"multiline");this.classReference=e,this.arguments_=o,this.multiline=i!=null?i:!1}write(e){e.write("new "),e.writeNode(this.classReference),Pe({writer:e,arguments_:this.arguments_,multiline:this.multiline})}};n();a();var S=class extends y{constructor(e){super();c(this,"arg");this.arg=e}write(e){return new P(this.arg).write(e)}};n();a();n();a();n();a();var Gi=new Set(["abstract","and","array","as","break","callable","case","catch","class","clone","const","continue","declare","default","die","do","echo","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","eval","exit","extends","final","finally","fn","for","foreach","function","global","goto","if","implements","include","include_once","instanceof","insteadof","interface","isset","list","match","namespace","new","or","print","private","protected","public","readonly","require","require_once","return","static","switch","throw","trait","try","unset","use","var","while","xor","yield","yield_from","__halt_compiler"]);n();a();function ul(r){return Gi.has(r.toLowerCase())?`${r}_`:r}n();a();var Z=class extends y{constructor({name:e,type:o,docs:i,initializer:s,access:u,readonly_:l}){super();c(this,"name");c(this,"type");c(this,"docs");c(this,"initializer");c(this,"access");c(this,"readonly_");this.name=ue(e),this.type=o,this.docs=i,this.initializer=s,this.access=u,this.readonly_=l!=null?l:!1}getCommentTag(){return{tagType:"param",type:this.type,name:this.name,docs:this.docs}}write(e){this.access!=null&&e.write(`${this.access} `),this.readonly_&&e.write("readonly "),this.type.write(e),e.write(` ${this.name}`),this.initializer!=null?(e.write(" = "),this.initializer.write(e)):this.type.isOptional()&&e.write(" = null")}};n();a();n();a();n();a();n();a();var Q=class extends y{constructor({method:e,arguments_:o,static_:i,multiline:s,on:u}){super();c(this,"method");c(this,"arguments_");c(this,"multiline");c(this,"static_");c(this,"on");this.method=e,this.arguments_=o,this.static_=i!=null?i:!1,this.multiline=s!=null?s:!1,this.on=u}write(e){this.on!=null&&(this.on.write(e),e.write(this.getMethodAccessor())),e.write(this.method),Pe({writer:e,arguments_:this.arguments_,multiline:this.multiline})}getMethodAccessor(){return this.static_?"::":"->"}};var B=class r extends y{constructor(e){super();c(this,"internalType");this.internalType=e}write(e){switch(this.internalType.type){case"list":{this.writeList({writer:e,list:this.internalType});break}case"boolean":{e.write(this.internalType.value.toString());break}case"class":{this.writeClass({writer:e,class_:this.internalType});break}case"file":{e.writeNode(ll({writer:e,value:this.internalType.value}));break}case"float":{e.write(this.internalType.value.toString());break}case"number":{e.write(this.internalType.value.toString());break}case"map":{this.writeMap({writer:e,map:this.internalType});break}case"reference":{e.writeNode(this.internalType.value);break}case"datetime":{e.writeNode(pl({writer:e,value:this.internalType.value}));break}case"string":{if(this.internalType.value.includes(`
|
|
25
|
+
`)){this.writeStringWithHeredoc({writer:e,value:this.internalType.value});break}if(this.internalType.value.includes("'")){e.write(`"${this.internalType.value.replaceAll('"','\\"')}"`);break}e.write(`'${this.internalType.value}'`);break}case"unknown":{this.writeUnknown({writer:e,value:this.internalType.value});break}case"null":{e.write("null");break}case"nop":break;default:xe(this.internalType)}}isClass(){return this.internalType.type==="class"}asClassOrThrow(){if(this.isClass())return this.internalType;throw new Error("Internal error; ts.TypeLiteral is not a class")}writeStringWithHeredoc({writer:e,value:o}){e.writeLine("<<<EOT"),e.writeNoIndent(o),e.newLine(),e.writeNoIndent("EOT")}writeClass({writer:e,class_:o}){e.writeNode(new W({classReference:o.reference,arguments_:[r.map({entries:o.fields.map(i=>({key:r.string(i.name),value:i.value}))})]}))}writeList({writer:e,list:o}){let i=ml({values:o.values});if(i.length===0){e.write("[]");return}e.writeLine("["),e.indent();for(let s of i)s.write(e),e.writeLine(",");e.dedent(),e.write("]")}writeMap({writer:e,map:o}){let i=cl({entries:o.entries});if(i.length===0){e.write("[]");return}e.writeLine("["),e.indent();for(let s of i)s.key.write(e),e.write(" => "),s.value.write(e),e.writeLine(",");e.dedent(),e.write("]")}static list({values:e}){return new this({type:"list",values:e})}static boolean(e){return new this({type:"boolean",value:e})}static class_({reference:e,fields:o}){return new this({type:"class",reference:e,fields:o})}static file(e){return new this({type:"file",value:e})}static float(e){return new this({type:"float",value:e})}static datetime(e){return new this({type:"datetime",value:e})}static number(e){return new this({type:"number",value:e})}static map({entries:e}){return new this({type:"map",entries:e})}static reference(e){return new this({type:"reference",value:e})}static string(e){return new this({type:"string",value:e})}static unknown(e){return new this({type:"unknown",value:e})}static null(){return new this({type:"null"})}static nop(){return new this({type:"nop"})}static isNop(e){return e.internalType.type==="nop"}writeUnknown({writer:e,value:o}){switch(typeof o){case"boolean":e.write(o.toString());return;case"string":e.write(o.includes('"')?`\`${o}\``:`"${o}"`);return;case"number":e.write(o.toString());return;case"object":if(o==null){e.write("null");return}if(Array.isArray(o)){this.writeUnknownArray({writer:e,value:o});return}this.writeUnknownMap({writer:e,value:o});return;default:throw new Error(`Internal error; unsupported unknown type: ${typeof o}`)}}writeUnknownArray({writer:e,value:o}){if(o.length===0){e.write("[]");return}e.writeLine("["),e.indent();for(let i of o)e.writeNode(r.unknown(i)),e.writeLine(",");e.dedent(),e.write("]")}writeUnknownMap({writer:e,value:o}){let i=Object.entries(o);if(i.length===0){e.write("[]");return}e.writeLine("["),e.indent();for(let[s,u]of i)e.write(`'${s}' => `),e.writeNode(r.unknown(u)),e.writeLine(",");e.dedent(),e.write("]")}};function pl({writer:r,value:t}){return new W({classReference:new E({name:"DateTime",namespace:""}),arguments_:[new S(`'${t}'`)]})}function ll({writer:r,value:t}){return new Q({on:new E({name:"File",namespace:`${r.rootNamespace}\\Utils`}),method:"createFromString",arguments_:[new S(`"${t}"`)]})}function cl({entries:r}){return r.filter(t=>!B.isNop(t.key)&&!B.isNop(t.value))}function ml({values:r}){return r.filter(t=>!B.isNop(t))}var M=class r extends y{constructor(e){super();c(this,"internalType");this.internalType=e}write(e,{comment:o}={}){switch(this.internalType.type){case"int":e.write("int");break;case"string":e.write("string");break;case"bool":e.write("bool");break;case"float":e.write("float");break;case"date":e.addReference(Hi),e.write("DateTime");break;case"dateTime":e.addReference(Hi),e.write("DateTime");break;case"mixed":e.write("mixed");break;case"object":e.write("object");break;case"array":if(!o){e.write("array");break}e.write("array<"),this.internalType.value.write(e,{comment:o}),e.write(">");break;case"map":{if(!o){e.write("array");break}e.write("array<"),this.internalType.keyType.write(e,{comment:o}),e.write(", "),this.internalType.valueType.write(e,{comment:o}),e.write(">");break}case"null":{e.write("null");break}case"typeDict":{if(!o){e.write("array");break}if(this.internalType.multiline){e.writeLine("array{");let i=this.internalType.entries.filter(l=>!l.valueType.isOptional()),s=this.internalType.entries.filter(l=>l.valueType.isOptional()),u=[...i,...s];for(let l of u)e.write(" * "),this.writeTypeDictEntry({writer:e,entry:l,comment:o}),e.writeLine(",");e.write(" * }");break}e.write("array{"),this.internalType.entries.forEach((i,s)=>{s>0&&e.write(", "),this.writeTypeDictEntry({writer:e,entry:i,comment:o})}),e.write("}");break}case"union":{this.writeUnion({writer:e,unionTypes:this.internalType.types,comment:o});break}case"optional":{let i=this.internalType.value.internalType,s=i.type==="mixed",u=i.type==="union";!u&&!s&&e.write("?"),this.internalType.value.write(e,{comment:o}),u&&!this.unionHasOptional(i.types)&&(e.write("|"),e.writeNode(r.null()));break}case"reference":if(o){e.writeNode(this.internalType.value);let i=this.internalType.value.generics;i&&i.length>0&&(e.write("<"),i.forEach((s,u)=>{u>0&&e.write(", "),s.write(e,{comment:o})}),e.write(">"))}else e.writeNode(this.internalType.value);break;case"enumString":o?(e.write("value-of<"),e.writeNode(this.internalType.value),e.write(">")):e.write("string");break;case"literal":if(o)e.writeNode(this.internalType.value);else switch(this.internalType.value.internalType.type){case"string":e.write("string");break;case"boolean":e.write("bool");break;default:xe(this.internalType.value.internalType)}break;default:xe(this.internalType)}}toOptionalIfNotAlready(){return this.internalType.type==="optional"?this:r.optional(this)}underlyingTypeIfOptional(){if(this.internalType.type==="optional")return this.internalType.value}underlyingType(){var e;return(e=this.underlyingTypeIfOptional())!=null?e:this}isOptional(){return this.internalType.type==="optional"}getClassReference(){switch(this.internalType.type){case"date":case"dateTime":return new E({name:"DateTime",namespace:""});case"enumString":case"reference":return this.internalType.value;case"int":case"string":case"bool":case"float":case"object":case"map":case"array":case"null":case"mixed":case"optional":case"typeDict":case"union":case"literal":throw new Error("Cannot get class reference for "+this.internalType.type);default:xe(this.internalType)}}static int(){return new this({type:"int"})}static string(){return new this({type:"string"})}static bool(){return new this({type:"bool"})}static float(){return new this({type:"float"})}static date(){return new this({type:"date"})}static dateTime(){return new this({type:"dateTime"})}static mixed(){return new this({type:"mixed"})}static object(){return new this({type:"object"})}static array(e){return new this({type:"array",value:e})}static map(e,o){return new this({type:"map",keyType:e,valueType:o})}static typeDict(e,{multiline:o}={}){return new this({type:"typeDict",entries:e,multiline:o})}static union(e){let o=this.flattenUnionTypes(e),i=wt(o,yt);return new this({type:"union",types:i})}static flattenUnionTypes(e){let o=[];for(let i of e)i.internalType.type==="union"?o.push(...this.flattenUnionTypes(i.internalType.types)):o.push(i);return o}static optional(e){return this.isAlreadyOptional(e)?e:new this({type:"optional",value:e})}static null(){return new this({type:"null"})}static reference(e){return new this({type:"reference",value:e})}static enumString(e){return new this({type:"enumString",value:e})}static literalString(e){return new this({type:"literal",value:B.string(e)})}static literalBoolean(e){return new this({type:"literal",value:B.boolean(e)})}static isAlreadyOptional(e){return e.internalType.type==="optional"}writeUnion({writer:e,unionTypes:o,comment:i}){let s=this.getUniqueTypes({types:o,comment:i,writer:e}),u=this.unwrapOptionalTypes(s),l=u.filter(m=>m.underlyingType().internalType.type==="mixed").length>0;if(l&&!i){e.write("mixed");return}if(u.length>0&&i){e.writeLine("("),u.forEach((m,d)=>{d>0?e.write(" * |"):e.write(" * "),l&&(m=m.underlyingType()),m.write(e,{comment:i}),e.writeLine(),d++}),e.write(" * )");return}u.forEach((m,d)=>{d>0&&e.write("|"),l&&(m=m.underlyingType()),m.write(e,{comment:i}),d++})}writeTypeDictEntry({writer:e,entry:o,comment:i}){e.write(o.key),o.optional&&e.write("?"),e.write(": "),o.valueType.write(e,{comment:i})}getUniqueTypes({writer:e,types:o,comment:i}){let s=wt(o,yt),u=new Set;return s.filter(l=>{let m=l.toString({namespace:e.namespace,rootNamespace:e.rootNamespace,customConfig:e.customConfig,comment:i});return u.has(m)?!1:(u.add(m),!0)})}unwrapOptionalTypes(e){let o=!1,i=e.map(s=>s.internalType.type==="optional"?(o=!0,s.internalType.value):s);return o&&i.push(r.null()),i}unionHasOptional(e){return e.filter(o=>o.internalType.type==="optional").length>0}toString({namespace:e,rootNamespace:o,customConfig:i,comment:s}){let u=new $({namespace:e,rootNamespace:o,customConfig:i});return this.write(u,{comment:s!=null?s:!1}),u.toString()}},Hi=new E({namespace:"",name:"DateTime"});n();a();function qi(r){return r.startsWith("$")?r.slice(1):r}var Vi="values",Te=class extends y{constructor({name:e,namespace:o,abstract:i,docs:s,parentClassReference:u,traits:l,constructorAccess:m}){super();c(this,"name");c(this,"namespace");c(this,"constructorAccess");c(this,"class_");this.name=e,this.namespace=o,this.constructorAccess=m!=null?m:"public",this.class_=new J({name:e,namespace:o,abstract:i,docs:s,parentClassReference:u,traits:l})}addField(e){this.class_.addField(e)}addMethod(e){this.class_.addMethod(e)}addTrait(e){this.class_.addTrait(e)}write(e){let o=pe(this.class_.fields).map(i=>He(Ge({},i),{name:qi(i.name)}));o.length>0&&this.class_.addConstructor({access:this.constructorAccess,parameters:this.getConstructorParameters({orderedFields:o}),body:$e.codeblock(i=>{for(let s of o)i.write(`$this->${s.name} = $${Vi}['${s.name}']`),s.type.isOptional()&&i.write(" ?? null"),i.write(";")})}),this.class_.write(e)}allFieldsAreOptional(){return this.class_.fields.every(e=>e.type.isOptional())}getConstructorParameters({orderedFields:e}){return[new Z({name:Vi,type:M.typeDict(e.map(o=>({key:o.name,valueType:o.type,optional:o.type.isOptional()})),{multiline:!0}),initializer:this.allFieldsAreOptional()?new S("[]"):void 0})]}};n();a();n();a();var X=class extends y{constructor({name:e,access:o,parameters:i,throws:s,return_:u,body:l,docs:m,classReference:d,static_:h}){super();c(this,"name");c(this,"access");c(this,"parameters");c(this,"throws");c(this,"return_");c(this,"body");c(this,"docs");c(this,"classReference");c(this,"static_");this.name=e,this.access=o,this.parameters=i,this.throws=s!=null?s:[],this.return_=u,this.body=l,this.docs=m,this.classReference=d,this.static_=h!=null?h:!1}write(e){var u;this.writeComment(e),e.write(`${this.access}${this.static_?" static":""} function ${this.name}(`);let o=this.parameters.filter(l=>!l.type.isOptional()),i=this.parameters.filter(l=>l.type.isOptional());[...o,...i].forEach((l,m)=>{m>0&&e.write(", "),l.write(e)}),e.write("): "),this.return_!=null?e.writeNodeOrString(this.return_):e.write("void"),e.writeLine(" {"),e.indent(),(u=this.body)==null||u.write(e),e.dedent(),e.writeLine("}")}writeComment(e){let o=new I({docs:this.docs});for(let i of this.parameters)o.addTag({tagType:"param",type:i.type,name:i.name,docs:i.docs});this.return_!=null&&this.return_!==ji&&this.return_!==$i&&o.addTag({tagType:"return",type:this.return_});for(let i of this.throws)o.addTag({tagType:"throws",type:M.reference(i)});e.writeNode(o)}};var be=class extends y{constructor({name:e,namespace:o,backing:i,docs:s,serializable:u}){super();c(this,"name");c(this,"namespace");c(this,"backing");c(this,"docs");c(this,"members",[]);c(this,"serializable");this.name=e,this.namespace=o,this.backing=i,this.docs=s,this.serializable=u!=null?u:!1}addMember(e){this.members.push(e)}write(e){this.writeComment(e),e.write("enum "),e.writeLine(`${this.name}`),this.backing!=null&&e.write(` : ${this.backing}`),this.serializable&&(e.addReference(new E({name:"JsonSerializable",namespace:""})),e.writeLine(" implements JsonSerializable")),e.writeLine(" {"),e.indent();for(let o of this.members){if(e.write(`case ${o.name}`),o.value!=null)if(typeof o.value=="string"){let i=Yt(o.value);e.write(` = "${i}"`)}else e.write(` = ${o.value}`);e.writeTextStatement("")}this.serializable&&(e.newLine(),e.writeNode(new X({name:"jsonSerialize",return_:M.string(),access:"public",parameters:[],body:new S("return $this->value;")}))),e.writeNewLineIfLastLineNot(),e.dedent(),e.writeLine("}")}writeComment(e){if(this.docs==null)return;new I({docs:this.docs}).write(e)}};n();a();var Ae=class extends y{constructor({name:e,type:o,access:i,readonly_:s,initializer:u,docs:l,inlineDocs:m,attributes:d,inherited:h}){super();c(this,"name");c(this,"type");c(this,"access");c(this,"readonly_");c(this,"initializer");c(this,"docs");c(this,"inlineDocs");c(this,"attributes");c(this,"inherited");this.name=ue(e),this.type=o,this.access=i,this.readonly_=s!=null?s:!1,this.initializer=u,this.docs=l,this.inlineDocs=m,this.attributes=d!=null?d:[],this.inherited=h!=null?h:!1}write(e){this.writeComment(e),this.writeAttributesIfPresent(e),e.write(`${this.access} `),this.readonly_&&e.write("readonly "),this.type.write(e),e.write(` ${this.name}`),this.initializer!=null&&(e.write(" = "),this.initializer.write(e)),e.write(";"),this.inlineDocs!=null&&e.write(` // ${this.inlineDocs}`),e.newLine()}writeComment(e){let o=new I;o.addTag({tagType:"var",type:this.type,name:this.name,docs:this.docs}),o.write(e)}writeAttributesIfPresent(e){this.attributes.length>0&&(e.write("#["),this.attributes.forEach((o,i)=>{i>0&&e.write(", "),o.write(e)}),e.writeLine("]"))}};n();a();var ve=class extends y{constructor({entries:e,multiline:o}){super();c(this,"entries");c(this,"multiline");this.entries=e!=null?e:[],this.multiline=o!=null?o:!1}write(e){if(this.multiline){this.writeMultiline(e);return}this.writeCompact(e)}writeMultiline(e){e.writeLine("["),e.indent();for(let{key:o,value:i}of this.entries)o.write(e),e.write(" => "),i.write(e),e.writeLine(",");e.dedent(),e.write("]")}writeCompact(e){e.write("[");for(let[o,{key:i,value:s}]of this.entries.entries())o>0&&e.write(", "),i.write(e),e.write(" => "),s.write(e);e.write("]")}};n();a();var Ee=class extends y{constructor({name:e,namespace:o,docs:i,traits:s}){super();c(this,"name");c(this,"namespace");c(this,"docs");c(this,"traits");c(this,"fields",[]);c(this,"methods",[]);this.name=e,this.namespace=o,this.docs=i,this.traits=s!=null?s:[]}addField(e){this.fields.push(e)}addMethod(e){this.methods.push(e)}write(e){this.writeComment(e),e.write(`trait ${this.name} `),e.newLine(),e.writeLine("{"),e.indent(),this.traits.length>0&&(e.write("use "),this.traits.forEach((o,i)=>{i>0&&e.write(","),e.writeNode(o)}),e.writeTextStatement(""),e.newLine()),this.writeFields({writer:e,fields:pe(this.fields)}),this.fields.length>0&&this.methods.length>0&&e.newLine(),this.writeMethods({writer:e,methods:pe(this.methods)}),e.dedent(),e.writeLine("}")}writeComment(e){let o=new I({docs:this.docs});for(let i of this.fields)o.addTag({tagType:"property",type:i.type,name:i.name});o.write(e)}writeFields({writer:e,fields:o}){o.forEach((i,s)=>{s>0&&e.newLine(),i.write(e),e.writeNewLineIfLastLineNot()})}writeMethods({writer:e,methods:o}){o.forEach((i,s)=>{s>0&&e.newLine(),i.write(e),e.writeNewLineIfLastLineNot()})}};n();a();var At=class extends y{constructor(e){super();c(this,"arrays");this.arrays=e}write(e){e.write("array_merge"),Pe({writer:e,arguments_:this.arrays.map(o=>_e(i=>{if(typeof o=="string"||o instanceof y){i.writeNodeOrString(o);return}i.writeNodeOrString(o.ref),o.fallback&&(i.write(" ?? "),i.writeNodeOrString(o.fallback))}))})}};function dl(r){return new ye(r)}function hl(r){return new we(r)}function xl(r){return new J(r)}function gl(r){return new Ee(r)}function yl(r){return new E(r)}function _e(r){return new S(r)}function wl(r){return new Te(r)}function Tl(r){return new be(r)}function bl(r){return new Ae(r)}function Ki(r){return new W(r)}function Al(r){return new Q(r)}function vl(r){return _e(t=>{t.write("throw "),t.writeNode(Ki(r))})}function El(r){return new ve(r)}function _l(r){return new X(r)}function Sl(r){return new Z(r)}function Cl(r){return new je(r)}function Il(r,t){return _e(e=>{e.writeNodeOrString(r),e.write(" = "),e.writeNodeOrString(t)})}function Ll(r){return _e(ue(r))}function Rl(r){return _e(`"${r}"`)}function Nl(...r){return new At(r)}function Yt(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\$/g,"\\$")}function Ol(){return new S(r=>{r.write("$this")})}export{Ge as a,He as b,kl as c,Pl as d,c as e,n as f,a as g,xe as h,Nt as i,$s as j,rl as k,$e as l,ul as m};
|
|
26
|
+
/*! Bundled license information:
|
|
27
|
+
|
|
28
|
+
@esbuild-plugins/node-globals-polyfill/Buffer.js:
|
|
29
|
+
(*!
|
|
30
|
+
* The buffer module from node.js, for the browser.
|
|
31
|
+
*
|
|
32
|
+
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|
33
|
+
* @license MIT
|
|
34
|
+
*)
|
|
35
|
+
|
|
36
|
+
lodash-es/lodash.js:
|
|
37
|
+
(**
|
|
38
|
+
* @license
|
|
39
|
+
* Lodash (Custom Build) <https://lodash.com/>
|
|
40
|
+
* Build: `lodash modularize exports="es" -o ./`
|
|
41
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
42
|
+
* Released under MIT license <https://lodash.com/license>
|
|
43
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
44
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
45
|
+
*)
|
|
46
|
+
*/
|
|
47
|
+
//# sourceMappingURL=chunk-PYHFKEW4.js.map
|