@fern-api/php-dynamic-snippets 0.0.14 → 1.25.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 (34) hide show
  1. package/cjs/DynamicSnippetsGenerator.cjs +9 -9
  2. package/cjs/DynamicSnippetsGenerator.cjs.map +1 -1
  3. package/cjs/EndpointSnippetGenerator.cjs +7 -7
  4. package/cjs/EndpointSnippetGenerator.cjs.map +1 -1
  5. package/cjs/context/DynamicSnippetsGeneratorContext.cjs +6 -6
  6. package/cjs/context/DynamicSnippetsGeneratorContext.cjs.map +1 -1
  7. package/cjs/context/DynamicTypeLiteralMapper.cjs +6 -6
  8. package/cjs/context/DynamicTypeLiteralMapper.cjs.map +1 -1
  9. package/cjs/context/FilePropertyMapper.cjs +7 -7
  10. package/cjs/context/FilePropertyMapper.cjs.map +1 -1
  11. package/cjs/index.cjs +9 -9
  12. package/cjs/index.cjs.map +1 -1
  13. package/esm/DynamicSnippetsGenerator.js +1 -1
  14. package/esm/EndpointSnippetGenerator.js +1 -1
  15. package/esm/{chunk-PYHFKEW4.js → chunk-34WVNBJS.js} +7 -7
  16. package/esm/chunk-34WVNBJS.js.map +1 -0
  17. package/esm/{chunk-RC5VUNGI.js → chunk-BN32SYGE.js} +2 -2
  18. package/esm/{chunk-3QAUV5WT.js → chunk-F7LTKJMT.js} +2 -2
  19. package/esm/{chunk-E5GKCY37.js → chunk-MZ7AWQF7.js} +2 -2
  20. package/esm/{chunk-VYTKQRKI.js → chunk-P7HYTUQU.js} +2 -2
  21. package/esm/{chunk-WWRNGEPJ.js → chunk-Q7QB5SA5.js} +2 -2
  22. package/esm/{chunk-EIFVUIK7.js → chunk-U6JJRNQH.js} +2 -2
  23. package/esm/context/DynamicSnippetsGeneratorContext.js +1 -1
  24. package/esm/context/DynamicTypeLiteralMapper.js +1 -1
  25. package/esm/context/FilePropertyMapper.js +1 -1
  26. package/esm/index.js +1 -1
  27. package/package.json +1 -1
  28. package/esm/chunk-PYHFKEW4.js.map +0 -1
  29. /package/esm/{chunk-RC5VUNGI.js.map → chunk-BN32SYGE.js.map} +0 -0
  30. /package/esm/{chunk-3QAUV5WT.js.map → chunk-F7LTKJMT.js.map} +0 -0
  31. /package/esm/{chunk-E5GKCY37.js.map → chunk-MZ7AWQF7.js.map} +0 -0
  32. /package/esm/{chunk-VYTKQRKI.js.map → chunk-P7HYTUQU.js.map} +0 -0
  33. /package/esm/{chunk-WWRNGEPJ.js.map → chunk-Q7QB5SA5.js.map} +0 -0
  34. /package/esm/{chunk-EIFVUIK7.js.map → chunk-U6JJRNQH.js.map} +0 -0
@@ -1,6 +1,6 @@
1
- "use strict";var We=Object.defineProperty,Zo=Object.defineProperties,ei=Object.getOwnPropertyDescriptor,ti=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertyNames,jt=Object.getOwnPropertySymbols;var $t=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable;var Tt=(r,t,e)=>t in r?We(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Ye=(r,t)=>{for(var e in t||(t={}))$t.call(t,e)&&Tt(r,e,t[e]);if(jt)for(var e of jt(t))oi.call(t,e)&&Tt(r,e,t[e]);return r},Ge=(r,t)=>Zo(r,ti(t));var vt=(r,t)=>()=>(r&&(t=r(r=0)),t);var Wt=(r,t)=>{for(var e in t)We(r,e,{get:t[e],enumerable:!0})},ii=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ri(t))!$t.call(r,i)&&i!==e&&We(r,i,{get:()=>t[i],enumerable:!(o=ei(t,i))||o.enumerable});return r};var ni=r=>ii(We({},"__esModule",{value:!0}),r);var c=(r,t,e)=>Tt(r,typeof t!="symbol"?t+"":t,e);function Gt(){throw new Error("setTimeout has not been defined")}function zt(){throw new Error("clearTimeout has not been defined")}function qt(r){if(te===setTimeout)return setTimeout(r,0);if((te===Gt||!te)&&setTimeout)return te=setTimeout,setTimeout(r,0);try{return te(r,0)}catch(t){try{return te.call(null,r,0)}catch(e){return te.call(this,r,0)}}}function ai(r){if(re===clearTimeout)return clearTimeout(r);if((re===zt||!re)&&clearTimeout)return re=clearTimeout,clearTimeout(r);try{return re(r)}catch(t){try{return re.call(null,r)}catch(e){return re.call(this,r)}}}function si(){!Ie||!me||(Ie=!1,me.length?$=me.concat($):ze=-1,$.length&&Ht())}function Ht(){if(!Ie){var r=qt(si);Ie=!0;for(var t=$.length;t;){for(me=$,$=[];++ze<t;)me&&me[ze].run();ze=-1,t=$.length}me=null,Ie=!1,ai(r)}}function fi(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];$.push(new Vt(r,t)),$.length===1&&!Ie&&qt(Ht)}function Vt(r,t){this.fun=r,this.array=t}function he(){}function Ei(r){throw new Error("process.binding is not supported")}function Si(){return"/"}function Ii(r){throw new Error("process.chdir is not supported")}function Ci(){return 0}function Ni(r){var t=Li.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 ki(){var r=new Date,t=r-Ri;return t/1e3}var te,re,$,Ie,me,ze,pi,li,ui,ci,mi,hi,di,xi,yi,gi,wi,Ti,vi,Ai,bi,_i,Se,Li,Ri,l,Yt,n=vt(()=>{"use strict";te=Gt,re=zt;typeof globalThis.setTimeout=="function"&&(te=setTimeout);typeof globalThis.clearTimeout=="function"&&(re=clearTimeout);$=[],Ie=!1,ze=-1;Vt.prototype.run=function(){this.fun.apply(null,this.array)};pi="browser",li="browser",ui=!0,ci={},mi=[],hi="",di={},xi={},yi={};gi=he,wi=he,Ti=he,vi=he,Ai=he,bi=he,_i=he;Se=globalThis.performance||{},Li=Se.now||Se.mozNow||Se.msNow||Se.oNow||Se.webkitNow||function(){return new Date().getTime()};Ri=new Date;l={nextTick:fi,title:pi,browser:ui,env:ci,argv:mi,version:hi,versions:di,on:gi,addListener:wi,once:Ti,off:vi,removeListener:Ai,removeAllListeners:bi,emit:_i,binding:Ei,cwd:Si,chdir:Ii,umask:Ci,hrtime:Ni,platform:li,release:xi,config:yi,uptime:ki},Yt={};Object.keys(Yt).forEach(r=>{let t=r.split("."),e=l;for(let o=0;o<t.length;o++){let i=t[o];o===t.length-1?e[i]=Yt[r]:e=e[i]||(e[i]={})}})});function Xt(){bt=!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 Oi(r){bt||Xt();var t,e,o,i,s,p,u=r.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s=r[u-2]==="="?2:r[u-1]==="="?1:0,p=new Pi(u*3/4-s),o=s>0?u-4:u;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)],p[m++]=i>>16&255,p[m++]=i>>8&255,p[m++]=i&255;return s===2?(i=L[r.charCodeAt(t)]<<2|L[r.charCodeAt(t+1)]>>4,p[m++]=i&255):s===1&&(i=L[r.charCodeAt(t)]<<10|L[r.charCodeAt(t+1)]<<4|L[r.charCodeAt(t+2)]>>2,p[m++]=i>>8&255,p[m++]=i&255),p}function Bi(r){return F[r>>18&63]+F[r>>12&63]+F[r>>6&63]+F[r&63]}function Fi(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(Bi(o));return i.join("")}function Kt(r){bt||Xt();for(var t,e=r.length,o=e%3,i="",s=[],p=16383,u=0,m=e-o;u<m;u+=p)s.push(Fi(r,u,u+p>m?m:u+p));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 qe(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function W(r,t){if(qe()<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 _t(this,r)}return Zt(this,r,t,e)}function Zt(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?Di(r,t,e,o):typeof t=="string"?Ui(r,t,e):ji(r,t)}function er(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 Mi(r,t,e,o){return er(t),t<=0?W(r,t):e!==void 0?typeof o=="string"?W(r,t).fill(e,o):W(r,t).fill(e):W(r,t)}function _t(r,t){if(er(t),r=W(r,t<0?0:Et(t)|0),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<t;++e)r[e]=0;return r}function Ui(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=tr(t,e)|0;r=W(r,o);var i=r.write(t,e);return i!==o&&(r=r.slice(0,i)),r}function At(r,t){var e=t.length<0?0:Et(t.length)|0;r=W(r,e);for(var o=0;o<e;o+=1)r[o]=t[o]&255;return r}function Di(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=At(r,t),r}function ji(r,t){if(M(t)){var e=Et(t.length)|0;return r=W(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"||an(t.length)?W(r,0):At(r,t);if(t.type==="Buffer"&&Array.isArray(t.data))return At(r,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Et(r){if(r>=qe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qe().toString(16)+" bytes");return r|0}function M(r){return!!(r!=null&&r._isBuffer)}function tr(r,t){if(M(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 He(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return fr(r).length;default:if(o)return He(r).length;t=(""+t).toLowerCase(),o=!0}}function $i(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 Qi(this,t,e);case"utf8":case"utf-8":return ir(this,t,e);case"ascii":return Ki(this,t,e);case"latin1":case"binary":return Ji(this,t,e);case"base64":return Hi(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xi(this,t,e);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),o=!0}}function de(r,t,e){var o=r[t];r[t]=r[e],r[e]=o}function rr(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)),M(t))return t.length===0?-1:Jt(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):Jt(r,[t],e,o,i);throw new TypeError("val must be string, number or Buffer")}function Jt(r,t,e,o,i){var s=1,p=r.length,u=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,p/=2,u/=2,e/=2}function m(w,v){return s===1?w[v]:w.readUInt16BE(v*s)}var h;if(i){var d=-1;for(h=e;h<p;h++)if(m(r,h)===m(t,d===-1?0:h-d)){if(d===-1&&(d=h),h-d+1===u)return d*s}else d!==-1&&(h-=h-d),d=-1}else for(e+u>p&&(e=p-u),h=e;h>=0;h--){for(var x=!0,y=0;y<u;y++)if(m(r,h+y)!==m(t,y)){x=!1;break}if(x)return h}return-1}function Wi(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 p=0;p<o;++p){var u=parseInt(t.substr(p*2,2),16);if(isNaN(u))return p;r[e+p]=u}return p}function Yi(r,t,e,o){return Je(He(t,r.length-e),r,e,o)}function or(r,t,e,o){return Je(on(t),r,e,o)}function Gi(r,t,e,o){return or(r,t,e,o)}function zi(r,t,e,o){return Je(fr(t),r,e,o)}function qi(r,t,e,o){return Je(nn(t,r.length-e),r,e,o)}function Hi(r,t,e){return t===0&&e===r.length?Kt(r):Kt(r.slice(t,e))}function ir(r,t,e){e=Math.min(r.length,e);for(var o=[],i=t;i<e;){var s=r[i],p=null,u=s>239?4:s>223?3:s>191?2:1;if(i+u<=e){var m,h,d,x;switch(u){case 1:s<128&&(p=s);break;case 2:m=r[i+1],(m&192)===128&&(x=(s&31)<<6|m&63,x>127&&(p=x));break;case 3:m=r[i+1],h=r[i+2],(m&192)===128&&(h&192)===128&&(x=(s&15)<<12|(m&63)<<6|h&63,x>2047&&(x<55296||x>57343)&&(p=x));break;case 4:m=r[i+1],h=r[i+2],d=r[i+3],(m&192)===128&&(h&192)===128&&(d&192)===128&&(x=(s&15)<<18|(m&63)<<12|(h&63)<<6|d&63,x>65535&&x<1114112&&(p=x))}}p===null?(p=65533,u=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=u}return Vi(o)}function Vi(r){var t=r.length;if(t<=Qt)return String.fromCharCode.apply(String,r);for(var e="",o=0;o<t;)e+=String.fromCharCode.apply(String,r.slice(o,o+=Qt));return e}function Ki(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 Ji(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 Qi(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+=rn(r[s]);return i}function Xi(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 I(r,t,e,o,i,s){if(!M(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 Ve(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 Ke(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 nr(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 ar(r,t,e,o,i){return i||nr(r,t,e,4,34028234663852886e22,-34028234663852886e22),lr(r,t,e,o,23,4),e+4}function sr(r,t,e,o,i){return i||nr(r,t,e,8,17976931348623157e292,-17976931348623157e292),lr(r,t,e,o,52,8),e+8}function en(r){if(r=tn(r).replace(Zi,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function tn(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function rn(r){return r<16?"0"+r.toString(16):r.toString(16)}function He(r,t){t=t||1/0;for(var e,o=r.length,i=null,s=[],p=0;p<o;++p){if(e=r.charCodeAt(p),e>55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(p+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 on(r){for(var t=[],e=0;e<r.length;++e)t.push(r.charCodeAt(e)&255);return t}function nn(r,t){for(var e,o,i,s=[],p=0;p<r.length&&!((t-=2)<0);++p)e=r.charCodeAt(p),o=e>>8,i=e%256,s.push(i),s.push(o);return s}function fr(r){return Oi(en(r))}function Je(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 an(r){return r!==r}function sn(r){return r!=null&&(!!r._isBuffer||pr(r)||fn(r))}function pr(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function fn(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&pr(r.slice(0,0))}function Qe(r,t,e,o,i){var s,p,u=i*8-o-1,m=(1<<u)-1,h=m>>1,d=-7,x=e?i-1:0,y=e?-1:1,w=r[t+x];for(x+=y,s=w&(1<<-d)-1,w>>=-d,d+=u;d>0;s=s*256+r[t+x],x+=y,d-=8);for(p=s&(1<<-d)-1,s>>=-d,d+=o;d>0;p=p*256+r[t+x],x+=y,d-=8);if(s===0)s=1-h;else{if(s===m)return p?NaN:(w?-1:1)*(1/0);p=p+Math.pow(2,o),s=s-h}return(w?-1:1)*p*Math.pow(2,s-o)}function lr(r,t,e,o,i,s){var p,u,m,h=s*8-i-1,d=(1<<h)-1,x=d>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:s-1,v=o?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,p=d):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+x>=1?t+=y/m:t+=y*Math.pow(2,1-x),t*m>=2&&(p++,m/=2),p+x>=d?(u=0,p=d):p+x>=1?(u=(t*m-1)*Math.pow(2,i),p=p+x):(u=t*Math.pow(2,x-1)*Math.pow(2,i),p=0));i>=8;r[e+w]=u&255,w+=v,u/=256,i-=8);for(p=p<<i|u,h+=i;h>0;r[e+w]=p&255,w+=v,p/=256,h-=8);r[e+w-v]|=E*128}var F,L,Pi,bt,Qt,Zi,ur=vt(()=>{"use strict";n();a();F=[],L=[],Pi=typeof Uint8Array!="undefined"?Uint8Array:Array,bt=!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 Zt(null,r,t,e)};f.kMaxLength=qe();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 Mi(null,r,t,e)};f.allocUnsafe=function(r){return _t(null,r)};f.allocUnsafeSlow=function(r){return _t(null,r)};f.isBuffer=sn;f.compare=function(t,e){if(!M(t)||!M(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var o=t.length,i=e.length,s=0,p=Math.min(o,i);s<p;++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 p=t[o];if(!M(p))throw new TypeError('"list" argument must be an Array of Buffers');p.copy(i,s),s+=p.length}return i};f.byteLength=tr;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)de(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)de(this,e,e+3),de(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)de(this,e,e+7),de(this,e+1,e+6),de(this,e+2,e+5),de(this,e+3,e+4);return this};f.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?ir(this,0,t):$i.apply(this,arguments)};f.prototype.equals=function(t){if(!M(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(!M(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 p=s-i,u=o-e,m=Math.min(p,u),h=this.slice(i,s),d=t.slice(e,o),x=0;x<m;++x)if(h[x]!==d[x]){p=h[x],u=d[x];break}return p<u?-1:u<p?1:0};f.prototype.includes=function(t,e,o){return this.indexOf(t,e,o)!==-1};f.prototype.indexOf=function(t,e,o){return rr(this,t,e,o,!0)};f.prototype.lastIndexOf=function(t,e,o){return rr(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 p=!1;;)switch(i){case"hex":return Wi(this,t,e,o);case"utf8":case"utf-8":return Yi(this,t,e,o);case"ascii":return or(this,t,e,o);case"latin1":case"binary":return Gi(this,t,e,o);case"base64":return zi(this,t,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qi(this,t,e,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Qt=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 p=0;p<s;++p)i[p]=this[p+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,p=0;++p<e&&(s*=256);)i+=this[t+p]*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,p=0;++p<e&&(s*=256);)i+=this[t+p]*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,p=this[t+--i];i>0&&(s*=256);)p+=this[t+--i]*s;return s*=128,p>=s&&(p-=Math.pow(2,8*e)),p};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),Qe(this,t,!0,23,4)};f.prototype.readFloatBE=function(t,e){return e||A(t,4,this.length),Qe(this,t,!1,23,4)};f.prototype.readDoubleLE=function(t,e){return e||A(t,8,this.length),Qe(this,t,!0,52,8)};f.prototype.readDoubleBE=function(t,e){return e||A(t,8,this.length),Qe(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;I(this,t,e,o,s,0)}var p=1,u=0;for(this[e]=t&255;++u<o&&(p*=256);)this[e+u]=t/p&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;I(this,t,e,o,s,0)}var p=o-1,u=1;for(this[e+p]=t&255;--p>=0&&(u*=256);)this[e+p]=t/u&255;return e+o};f.prototype.writeUInt8=function(t,e,o){return t=+t,e=e|0,o||I(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||I(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t&255,this[e+1]=t>>>8):Ve(this,t,e,!0),e+2};f.prototype.writeUInt16BE=function(t,e,o){return t=+t,e=e|0,o||I(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t&255):Ve(this,t,e,!1),e+2};f.prototype.writeUInt32LE=function(t,e,o){return t=+t,e=e|0,o||I(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):Ke(this,t,e,!0),e+4};f.prototype.writeUInt32BE=function(t,e,o){return t=+t,e=e|0,o||I(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):Ke(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);I(this,t,e,o,s-1,-s)}var p=0,u=1,m=0;for(this[e]=t&255;++p<o&&(u*=256);)t<0&&m===0&&this[e+p-1]!==0&&(m=1),this[e+p]=(t/u>>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);I(this,t,e,o,s-1,-s)}var p=o-1,u=1,m=0;for(this[e+p]=t&255;--p>=0&&(u*=256);)t<0&&m===0&&this[e+p+1]!==0&&(m=1),this[e+p]=(t/u>>0)-m&255;return e+o};f.prototype.writeInt8=function(t,e,o){return t=+t,e=e|0,o||I(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||I(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t&255,this[e+1]=t>>>8):Ve(this,t,e,!0),e+2};f.prototype.writeInt16BE=function(t,e,o){return t=+t,e=e|0,o||I(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t&255):Ve(this,t,e,!1),e+2};f.prototype.writeInt32LE=function(t,e,o){return t=+t,e=e|0,o||I(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):Ke(this,t,e,!0),e+4};f.prototype.writeInt32BE=function(t,e,o){return t=+t,e=e|0,o||I(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):Ke(this,t,e,!1),e+4};f.prototype.writeFloatLE=function(t,e,o){return ar(this,t,e,!0,o)};f.prototype.writeFloatBE=function(t,e,o){return ar(this,t,e,!1,o)};f.prototype.writeDoubleLE=function(t,e,o){return sr(this,t,e,!0,o)};f.prototype.writeDoubleBE=function(t,e,o){return sr(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,p;if(this===t&&o<e&&e<i)for(p=s-1;p>=0;--p)t[p+e]=this[p+o];else if(s<1e3||!f.TYPED_ARRAY_SUPPORT)for(p=0;p<s;++p)t[p+e]=this[p+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 p;if(typeof t=="number")for(p=e;p<o;++p)this[p]=t;else{var u=M(t)?t:He(new f(t,i).toString()),m=u.length;for(p=0;p<o-e;++p)this[p+e]=u[p%m]}return this};Zi=/[^+\/0-9A-Za-z-_]/g});var a=vt(()=>{"use strict";ur()});var mp={};Wt(mp,{FilePropertyMapper:()=>Ut});module.exports=ni(mp);n();a();n();a();n();a();function Y(r){throw new Error("Unexpected value: "+JSON.stringify(r))}n();a();n();a();n();a();n();a();n();a();var pn=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Xe=pn;var ln=typeof self=="object"&&self&&self.Object===Object&&self,un=Xe||ln||Function("return this")(),b=un;var cn=b.Symbol,G=cn;n();a();var cr=Object.prototype,mn=cr.hasOwnProperty,hn=cr.toString,Oe=G?G.toStringTag:void 0;function dn(r){var t=mn.call(r,Oe),e=r[Oe];try{r[Oe]=void 0;var o=!0}catch(s){}var i=hn.call(r);return o&&(t?r[Oe]=e:delete r[Oe]),i}var mr=dn;n();a();var xn=Object.prototype,yn=xn.toString;function gn(r){return yn.call(r)}var hr=gn;var wn="[object Null]",Tn="[object Undefined]",dr=G?G.toStringTag:void 0;function vn(r){return r==null?r===void 0?Tn:wn:dr&&dr in Object(r)?mr(r):hr(r)}var z=vn;n();a();function An(r){return r!=null&&typeof r=="object"}var q=An;n();a();var bn=Array.isArray,xe=bn;n();a();function _n(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var Ze=_n;n();a();n();a();n();a();n();a();var En="[object AsyncFunction]",Sn="[object Function]",In="[object GeneratorFunction]",Cn="[object Proxy]";function Ln(r){if(!Ze(r))return!1;var t=z(r);return t==Sn||t==In||t==En||t==Cn}var et=Ln;n();a();n();a();var Nn=b["__core-js_shared__"],tt=Nn;var xr=(function(){var r=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Rn(r){return!!xr&&xr in r}var yr=Rn;n();a();var kn=Function.prototype,Pn=kn.toString;function On(r){if(r!=null){try{return Pn.call(r)}catch(t){}try{return r+""}catch(t){}}return""}var H=On;var Bn=/[\\^$.*+?()[\]{}|]/g,Fn=/^\[object .+?Constructor\]$/,Mn=Function.prototype,Un=Object.prototype,Dn=Mn.toString,jn=Un.hasOwnProperty,$n=RegExp("^"+Dn.call(jn).replace(Bn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wn(r){if(!Ze(r)||yr(r))return!1;var t=et(r)?$n:Fn;return t.test(H(r))}var gr=Wn;n();a();function Yn(r,t){return r==null?void 0:r[t]}var wr=Yn;function Gn(r,t){var e=wr(r,t);return gr(e)?e:void 0}var N=Gn;var zn=N(b,"WeakMap"),rt=zn;n();a();function qn(){}var Tr=qn;n();a();n();a();n();a();function Hn(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 vr=Hn;n();a();function Vn(r){return r!==r}var Ar=Vn;n();a();function Kn(r,t,e){for(var o=e-1,i=r.length;++o<i;)if(r[o]===t)return o;return-1}var br=Kn;function Jn(r,t,e){return t===t?br(r,t,e):vr(r,Ar,e)}var _r=Jn;function Qn(r,t){var e=r==null?0:r.length;return!!e&&_r(r,t,0)>-1}var Er=Qn;n();a();var Xn=9007199254740991,Zn=/^(?:0|[1-9]\d*)$/;function ea(r,t){var e=typeof r;return t=t==null?Xn:t,!!t&&(e=="number"||e!="symbol"&&Zn.test(r))&&r>-1&&r%1==0&&r<t}var Sr=ea;n();a();function ta(r,t){return r===t||r!==r&&t!==t}var ot=ta;n();a();n();a();var ra=9007199254740991;function oa(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ra}var it=oa;function ia(r){return r!=null&&it(r.length)&&!et(r)}var Ir=ia;n();a();var na=Object.prototype;function aa(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||na;return r===e}var Cr=aa;n();a();n();a();n();a();function sa(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}var Lr=sa;n();a();n();a();var fa="[object Arguments]";function pa(r){return q(r)&&z(r)==fa}var St=pa;var Nr=Object.prototype,la=Nr.hasOwnProperty,ua=Nr.propertyIsEnumerable,ca=St((function(){return arguments})())?St:function(r){return q(r)&&la.call(r,"callee")&&!ua.call(r,"callee")},Rr=ca;n();a();n();a();function ma(){return!1}var kr=ma;var Br=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pr=Br&&typeof module=="object"&&module&&!module.nodeType&&module,ha=Pr&&Pr.exports===Br,Or=ha?b.Buffer:void 0,da=Or?Or.isBuffer:void 0,xa=da||kr,Be=xa;n();a();n();a();var ya="[object Arguments]",ga="[object Array]",wa="[object Boolean]",Ta="[object Date]",va="[object Error]",Aa="[object Function]",ba="[object Map]",_a="[object Number]",Ea="[object Object]",Sa="[object RegExp]",Ia="[object Set]",Ca="[object String]",La="[object WeakMap]",Na="[object ArrayBuffer]",Ra="[object DataView]",ka="[object Float32Array]",Pa="[object Float64Array]",Oa="[object Int8Array]",Ba="[object Int16Array]",Fa="[object Int32Array]",Ma="[object Uint8Array]",Ua="[object Uint8ClampedArray]",Da="[object Uint16Array]",ja="[object Uint32Array]",T={};T[ka]=T[Pa]=T[Oa]=T[Ba]=T[Fa]=T[Ma]=T[Ua]=T[Da]=T[ja]=!0;T[ya]=T[ga]=T[Na]=T[wa]=T[Ra]=T[Ta]=T[va]=T[Aa]=T[ba]=T[_a]=T[Ea]=T[Sa]=T[Ia]=T[Ca]=T[La]=!1;function $a(r){return q(r)&&it(r.length)&&!!T[z(r)]}var Fr=$a;n();a();function Wa(r){return function(t){return r(t)}}var Mr=Wa;n();a();var Ur=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fe=Ur&&typeof module=="object"&&module&&!module.nodeType&&module,Ya=Fe&&Fe.exports===Ur,It=Ya&&Xe.process,Ga=(function(){try{var r=Fe&&Fe.require&&Fe.require("util").types;return r||It&&It.binding&&It.binding("util")}catch(t){}})(),Ct=Ga;var Dr=Ct&&Ct.isTypedArray,za=Dr?Mr(Dr):Fr,nt=za;var qa=Object.prototype,Ha=qa.hasOwnProperty;function Va(r,t){var e=xe(r),o=!e&&Rr(r),i=!e&&!o&&Be(r),s=!e&&!o&&!i&&nt(r),p=e||o||i||s,u=p?Lr(r.length,String):[],m=u.length;for(var h in r)(t||Ha.call(r,h))&&!(p&&(h=="length"||i&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Sr(h,m)))&&u.push(h);return u}var jr=Va;n();a();n();a();n();a();function Ka(r,t){return function(e){return r(t(e))}}var $r=Ka;var Ja=$r(Object.keys,Object),Wr=Ja;var Qa=Object.prototype,Xa=Qa.hasOwnProperty;function Za(r){if(!Cr(r))return Wr(r);var t=[];for(var e in Object(r))Xa.call(r,e)&&e!="constructor"&&t.push(e);return t}var Yr=Za;function es(r){return Ir(r)?jr(r):Yr(r)}var Gr=es;n();a();n();a();n();a();n();a();n();a();var ts=N(Object,"create"),V=ts;function rs(){this.__data__=V?V(null):{},this.size=0}var zr=rs;n();a();function os(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var qr=os;n();a();var is="__lodash_hash_undefined__",ns=Object.prototype,as=ns.hasOwnProperty;function ss(r){var t=this.__data__;if(V){var e=t[r];return e===is?void 0:e}return as.call(t,r)?t[r]:void 0}var Hr=ss;n();a();var fs=Object.prototype,ps=fs.hasOwnProperty;function ls(r){var t=this.__data__;return V?t[r]!==void 0:ps.call(t,r)}var Vr=ls;n();a();var us="__lodash_hash_undefined__";function cs(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=V&&t===void 0?us:t,this}var Kr=cs;function Ce(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])}}Ce.prototype.clear=zr;Ce.prototype.delete=qr;Ce.prototype.get=Hr;Ce.prototype.has=Vr;Ce.prototype.set=Kr;var Lt=Ce;n();a();n();a();function ms(){this.__data__=[],this.size=0}var Jr=ms;n();a();n();a();function hs(r,t){for(var e=r.length;e--;)if(ot(r[e][0],t))return e;return-1}var oe=hs;var ds=Array.prototype,xs=ds.splice;function ys(r){var t=this.__data__,e=oe(t,r);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():xs.call(t,e,1),--this.size,!0}var Qr=ys;n();a();function gs(r){var t=this.__data__,e=oe(t,r);return e<0?void 0:t[e][1]}var Xr=gs;n();a();function ws(r){return oe(this.__data__,r)>-1}var Zr=ws;n();a();function Ts(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 eo=Ts;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=Jr;Le.prototype.delete=Qr;Le.prototype.get=Xr;Le.prototype.has=Zr;Le.prototype.set=eo;var ie=Le;n();a();var vs=N(b,"Map"),ne=vs;function As(){this.size=0,this.__data__={hash:new Lt,map:new(ne||ie),string:new Lt}}var to=As;n();a();n();a();n();a();function bs(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var ro=bs;function _s(r,t){var e=r.__data__;return ro(t)?e[typeof t=="string"?"string":"hash"]:e.map}var ae=_s;function Es(r){var t=ae(this,r).delete(r);return this.size-=t?1:0,t}var oo=Es;n();a();function Ss(r){return ae(this,r).get(r)}var io=Ss;n();a();function Is(r){return ae(this,r).has(r)}var no=Is;n();a();function Cs(r,t){var e=ae(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}var ao=Cs;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=to;Ne.prototype.delete=oo;Ne.prototype.get=io;Ne.prototype.has=no;Ne.prototype.set=ao;var at=Ne;n();a();function Ls(r,t){for(var e=-1,o=t.length,i=r.length;++e<o;)r[i+e]=t[e];return r}var so=Ls;n();a();n();a();function Ns(){this.__data__=new ie,this.size=0}var fo=Ns;n();a();function Rs(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var po=Rs;n();a();function ks(r){return this.__data__.get(r)}var lo=ks;n();a();function Ps(r){return this.__data__.has(r)}var uo=Ps;n();a();var Os=200;function Bs(r,t){var e=this.__data__;if(e instanceof ie){var o=e.__data__;if(!ne||o.length<Os-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new at(o)}return e.set(r,t),this.size=e.size,this}var co=Bs;function Re(r){var t=this.__data__=new ie(r);this.size=t.size}Re.prototype.clear=fo;Re.prototype.delete=po;Re.prototype.get=lo;Re.prototype.has=uo;Re.prototype.set=co;var st=Re;n();a();n();a();function Fs(r,t){for(var e=-1,o=r==null?0:r.length,i=0,s=[];++e<o;){var p=r[e];t(p,e,r)&&(s[i++]=p)}return s}var mo=Fs;n();a();function Ms(){return[]}var ho=Ms;var Us=Object.prototype,Ds=Us.propertyIsEnumerable,xo=Object.getOwnPropertySymbols,js=xo?function(r){return r==null?[]:(r=Object(r),mo(xo(r),function(t){return Ds.call(r,t)}))}:ho,yo=js;n();a();n();a();function $s(r,t,e){var o=t(r);return xe(r)?o:so(o,e(r))}var go=$s;function Ws(r){return go(r,Gr,yo)}var Nt=Ws;n();a();n();a();var Ys=N(b,"DataView"),ft=Ys;n();a();var Gs=N(b,"Promise"),pt=Gs;n();a();var zs=N(b,"Set"),se=zs;var wo="[object Map]",qs="[object Object]",To="[object Promise]",vo="[object Set]",Ao="[object WeakMap]",bo="[object DataView]",Hs=H(ft),Vs=H(ne),Ks=H(pt),Js=H(se),Qs=H(rt),ye=z;(ft&&ye(new ft(new ArrayBuffer(1)))!=bo||ne&&ye(new ne)!=wo||pt&&ye(pt.resolve())!=To||se&&ye(new se)!=vo||rt&&ye(new rt)!=Ao)&&(ye=function(r){var t=z(r),e=t==qs?r.constructor:void 0,o=e?H(e):"";if(o)switch(o){case Hs:return bo;case Vs:return wo;case Ks:return To;case Js:return vo;case Qs:return Ao}return t});var Rt=ye;n();a();var Xs=b.Uint8Array,kt=Xs;n();a();n();a();n();a();n();a();n();a();var Zs="__lodash_hash_undefined__";function ef(r){return this.__data__.set(r,Zs),this}var _o=ef;n();a();function tf(r){return this.__data__.has(r)}var Eo=tf;function lt(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new at;++t<e;)this.add(r[t])}lt.prototype.add=lt.prototype.push=_o;lt.prototype.has=Eo;var ut=lt;n();a();function rf(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 So=rf;n();a();function of(r,t){return r.has(t)}var ct=of;var nf=1,af=2;function sf(r,t,e,o,i,s){var p=e&nf,u=r.length,m=t.length;if(u!=m&&!(p&&m>u))return!1;var h=s.get(r),d=s.get(t);if(h&&d)return h==t&&d==r;var x=-1,y=!0,w=e&af?new ut:void 0;for(s.set(r,t),s.set(t,r);++x<u;){var v=r[x],E=t[x];if(o)var B=p?o(E,v,x,t,r,s):o(v,E,x,r,t,s);if(B!==void 0){if(B)continue;y=!1;break}if(w){if(!So(t,function(ue,ce){if(!ct(w,ce)&&(v===ue||i(v,ue,e,o,s)))return w.push(ce)})){y=!1;break}}else if(!(v===E||i(v,E,e,o,s))){y=!1;break}}return s.delete(r),s.delete(t),y}var mt=sf;n();a();n();a();function ff(r){var t=-1,e=Array(r.size);return r.forEach(function(o,i){e[++t]=[i,o]}),e}var Io=ff;n();a();function pf(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o}),e}var ke=pf;var lf=1,uf=2,cf="[object Boolean]",mf="[object Date]",hf="[object Error]",df="[object Map]",xf="[object Number]",yf="[object RegExp]",gf="[object Set]",wf="[object String]",Tf="[object Symbol]",vf="[object ArrayBuffer]",Af="[object DataView]",Co=G?G.prototype:void 0,Pt=Co?Co.valueOf:void 0;function bf(r,t,e,o,i,s,p){switch(e){case Af:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case vf:return!(r.byteLength!=t.byteLength||!s(new kt(r),new kt(t)));case cf:case mf:case xf:return ot(+r,+t);case hf:return r.name==t.name&&r.message==t.message;case yf:case wf:return r==t+"";case df:var u=Io;case gf:var m=o&lf;if(u||(u=ke),r.size!=t.size&&!m)return!1;var h=p.get(r);if(h)return h==t;o|=uf,p.set(r,t);var d=mt(u(r),u(t),o,i,s,p);return p.delete(r),d;case Tf:if(Pt)return Pt.call(r)==Pt.call(t)}return!1}var Lo=bf;n();a();var _f=1,Ef=Object.prototype,Sf=Ef.hasOwnProperty;function If(r,t,e,o,i,s){var p=e&_f,u=Nt(r),m=u.length,h=Nt(t),d=h.length;if(m!=d&&!p)return!1;for(var x=m;x--;){var y=u[x];if(!(p?y in t:Sf.call(t,y)))return!1}var w=s.get(r),v=s.get(t);if(w&&v)return w==t&&v==r;var E=!0;s.set(r,t),s.set(t,r);for(var B=p;++x<m;){y=u[x];var ue=r[y],ce=t[y];if(o)var Dt=p?o(ce,ue,y,t,r,s):o(ue,ce,y,r,t,s);if(!(Dt===void 0?ue===ce||i(ue,ce,e,o,s):Dt)){E=!1;break}B||(B=y=="constructor")}if(E&&!B){var je=r.constructor,$e=t.constructor;je!=$e&&"constructor"in r&&"constructor"in t&&!(typeof je=="function"&&je instanceof je&&typeof $e=="function"&&$e instanceof $e)&&(E=!1)}return s.delete(r),s.delete(t),E}var No=If;var Cf=1,Ro="[object Arguments]",ko="[object Array]",ht="[object Object]",Lf=Object.prototype,Po=Lf.hasOwnProperty;function Nf(r,t,e,o,i,s){var p=xe(r),u=xe(t),m=p?ko:Rt(r),h=u?ko:Rt(t);m=m==Ro?ht:m,h=h==Ro?ht:h;var d=m==ht,x=h==ht,y=m==h;if(y&&Be(r)){if(!Be(t))return!1;p=!0,d=!1}if(y&&!d)return s||(s=new st),p||nt(r)?mt(r,t,e,o,i,s):Lo(r,t,m,e,o,i,s);if(!(e&Cf)){var w=d&&Po.call(r,"__wrapped__"),v=x&&Po.call(t,"__wrapped__");if(w||v){var E=w?r.value():r,B=v?t.value():t;return s||(s=new st),i(E,B,e,o,s)}}return y?(s||(s=new st),No(r,t,e,o,i,s)):!1}var Oo=Nf;function Bo(r,t,e,o,i){return r===t?!0:r==null||t==null||!q(r)&&!q(t)?r!==r&&t!==t:Oo(r,t,e,o,Bo,i)}var Fo=Bo;n();a();function Rf(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 Mo=Rf;n();a();function kf(r,t){return Fo(r,t)}var dt=kf;n();a();n();a();var Pf=1/0,Of=se&&1/ke(new se([,-0]))[1]==Pf?function(r){return new se(r)}:Tr,Uo=Of;var Bf=200;function Ff(r,t,e){var o=-1,i=Er,s=r.length,p=!0,u=[],m=u;if(e)p=!1,i=Mo;else if(s>=Bf){var h=t?null:Uo(r);if(h)return ke(h);p=!1,i=ct,m=new ut}else m=t?[]:u;e:for(;++o<s;){var d=r[o],x=t?t(d):d;if(d=e||d!==0?d:0,p&&x===x){for(var y=m.length;y--;)if(m[y]===x)continue e;t&&m.push(x),u.push(d)}else i(m,x,e)||(m!==u&&m.push(x),u.push(d))}return u}var Do=Ff;n();a();function Mf(r,t){return t=typeof t=="function"?t:void 0,r&&r.length?Do(r,void 0,t):[]}var xt=Mf;n();a();n();a();var jo="self",$o="static";var R={};Wt(R,{Access:()=>fe,Array:()=>ge,AstNode:()=>g,Attribute:()=>we,Class:()=>Q,ClassInstantiation:()=>j,ClassReference:()=>_,CodeBlock:()=>S,DataClass:()=>Te,Enum:()=>ve,Field:()=>Ae,Map:()=>be,Method:()=>ee,MethodInvocation:()=>Z,Parameter:()=>X,Trait:()=>_e,Type:()=>O,TypeLiteral:()=>P,Writer:()=>D,array:()=>Vf,assignVariable:()=>fp,attribute:()=>Kf,classReference:()=>Xf,class_:()=>Jf,codeblock:()=>Ee,dataClass:()=>Zf,enum_:()=>ep,escapePhpString:()=>Mt,field:()=>tp,instantiateClass:()=>Xo,invokeMethod:()=>rp,map:()=>ip,mergeArrays:()=>up,method:()=>np,parameter:()=>ap,string:()=>lp,ternary:()=>sp,this_:()=>cp,throwException:()=>op,trait:()=>Qf,variable:()=>pp});n();a();n();a();n();a();n();a();var Wo,Yo,Me=(Yo=(Wo=l.env.FERN_STACK_TRACK)==null?void 0:Wo.toLowerCase())!=null?Yo:"",U=Me!==""&&Me!=="0"&&Me!=="false",Ot=["single","multiline","box"].includes(Me)?Me:"single";U&&(Error.stackTraceLimit=50);var Uf=new Set(["SdkGeneratorCLI","runCli","LoggerImpl","Array.forEach"]),Df=new Set(["stacktrace"]);function gt({maxFrames:r=50,skip:t=0,filterPaths:e=[],filterFunctions:o=[],stopOn:i=[],filterNode:s=!0,filterJs:p=!0,formatFilename:u=m=>m}={}){var h;if(!U)return[];o=[...o,...Uf],e=[...e,...Df],i=[...i,"runInteractiveTask"];let m=!1;return((h=new Error().stack)!=null?h:"").split(`
2
- `).map(d=>{let x=d.match(/at\s+(.*)\s+\((.*):(\d+):(\d+)\)/);if(x&&x.length===5){let[,y,w,v,E]=x;if(!y||!w||!v||!E)return;if(m||i.some(B=>y==null?void 0:y.includes(B))){m=!0;return}switch(y){case"Object.<anonymous>":y="";break;case"Object.object":case"Object.alias":case"Object.union":case"Object.enum":case"Object.undiscriminatedUnion":y=`${y.substring(y.indexOf(".")+1)}()=> { ... }`;break}return{fn:y,path:u(w),position:`${v}:${E}`}}}).filter(d=>{var x,y;return d&&!o.some(w=>d.fn.includes(w))&&!(s&&((x=d.path)!=null&&x.startsWith("node:")))&&!(p&&((y=d.path)!=null&&y.endsWith(".js")))&&!e.some(w=>d.path.includes(w))}).slice(t,t+r)}var yt=class{constructor({maxFrames:t=50,skip:e=0,filterPaths:o=[],filterFunctions:i=[],stopOn:s=[],filterNode:p=!0,filterJs:u=!0,multiline:m=!1,formatFilename:h=d=>d}={}){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=p,this.filterJs=u,this.multiline=m,this.formatFilename=h}tag(t){let e=this.tracking.get(t)||new Set;gt({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(!U)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}},K;function Go({maxFrames:r=50,skip:t=0,filterPaths:e=[],filterFunctions:o=[],stopOn:i=[],filterNode:s=!0,filterJs:p=!0,multiline:u=!1,formatFilename:m=h=>h}={}){U&&(K!=null||(K=new yt({maxFrames:r,skip:t,filterPaths:e,filterFunctions:o,stopOn:i,filterNode:s,filterJs:p,multiline:u,formatFilename:m})))}function zo(r){K==null||K.tag(r)}function Bt(r){var t;return(t=K==null?void 0:K.frames(r))!=null?t:[]}var J=class{constructor(){zo(this)}};n();a();n();a();n();a();var k=class extends J{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 jf=4;Go({skip:0,maxFrames:15,filterFunctions:["Abstract"]});var Ue=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 U&&this.nodeStackFrames.length>0&&this.writeInternal(`
1
+ "use strict";var We=Object.defineProperty,Zo=Object.defineProperties,ei=Object.getOwnPropertyDescriptor,ti=Object.getOwnPropertyDescriptors,ri=Object.getOwnPropertyNames,$t=Object.getOwnPropertySymbols;var Wt=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable;var Tt=(r,t,e)=>t in r?We(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,Ye=(r,t)=>{for(var e in t||(t={}))Wt.call(t,e)&&Tt(r,e,t[e]);if($t)for(var e of $t(t))oi.call(t,e)&&Tt(r,e,t[e]);return r},Ge=(r,t)=>Zo(r,ti(t));var At=(r,t)=>()=>(r&&(t=r(r=0)),t);var Yt=(r,t)=>{for(var e in t)We(r,e,{get:t[e],enumerable:!0})},ii=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ri(t))!Wt.call(r,i)&&i!==e&&We(r,i,{get:()=>t[i],enumerable:!(o=ei(t,i))||o.enumerable});return r};var ni=r=>ii(We({},"__esModule",{value:!0}),r);var c=(r,t,e)=>Tt(r,typeof t!="symbol"?t+"":t,e);function zt(){throw new Error("setTimeout has not been defined")}function qt(){throw new Error("clearTimeout has not been defined")}function Ht(r){if(te===setTimeout)return setTimeout(r,0);if((te===zt||!te)&&setTimeout)return te=setTimeout,setTimeout(r,0);try{return te(r,0)}catch(t){try{return te.call(null,r,0)}catch(e){return te.call(this,r,0)}}}function ai(r){if(re===clearTimeout)return clearTimeout(r);if((re===qt||!re)&&clearTimeout)return re=clearTimeout,clearTimeout(r);try{return re(r)}catch(t){try{return re.call(null,r)}catch(e){return re.call(this,r)}}}function si(){!Ie||!me||(Ie=!1,me.length?$=me.concat($):ze=-1,$.length&&Vt())}function Vt(){if(!Ie){var r=Ht(si);Ie=!0;for(var t=$.length;t;){for(me=$,$=[];++ze<t;)me&&me[ze].run();ze=-1,t=$.length}me=null,Ie=!1,ai(r)}}function fi(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];$.push(new Kt(r,t)),$.length===1&&!Ie&&Ht(Vt)}function Kt(r,t){this.fun=r,this.array=t}function he(){}function Ei(r){throw new Error("process.binding is not supported")}function Si(){return"/"}function Ii(r){throw new Error("process.chdir is not supported")}function Ci(){return 0}function Ni(r){var t=Li.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 ki(){var r=new Date,t=r-Ri;return t/1e3}var te,re,$,Ie,me,ze,pi,li,ui,ci,mi,hi,di,xi,yi,gi,wi,Ti,Ai,vi,bi,_i,Se,Li,Ri,l,Gt,n=At(()=>{"use strict";te=zt,re=qt;typeof globalThis.setTimeout=="function"&&(te=setTimeout);typeof globalThis.clearTimeout=="function"&&(re=clearTimeout);$=[],Ie=!1,ze=-1;Kt.prototype.run=function(){this.fun.apply(null,this.array)};pi="browser",li="browser",ui=!0,ci={},mi=[],hi="",di={},xi={},yi={};gi=he,wi=he,Ti=he,Ai=he,vi=he,bi=he,_i=he;Se=globalThis.performance||{},Li=Se.now||Se.mozNow||Se.msNow||Se.oNow||Se.webkitNow||function(){return new Date().getTime()};Ri=new Date;l={nextTick:fi,title:pi,browser:ui,env:ci,argv:mi,version:hi,versions:di,on:gi,addListener:wi,once:Ti,off:Ai,removeListener:vi,removeAllListeners:bi,emit:_i,binding:Ei,cwd:Si,chdir:Ii,umask:Ci,hrtime:Ni,platform:li,release:xi,config:yi,uptime:ki},Gt={};Object.keys(Gt).forEach(r=>{let t=r.split("."),e=l;for(let o=0;o<t.length;o++){let i=t[o];o===t.length-1?e[i]=Gt[r]:e=e[i]||(e[i]={})}})});function Zt(){bt=!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 Oi(r){bt||Zt();var t,e,o,i,s,p,u=r.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");s=r[u-2]==="="?2:r[u-1]==="="?1:0,p=new Pi(u*3/4-s),o=s>0?u-4:u;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)],p[m++]=i>>16&255,p[m++]=i>>8&255,p[m++]=i&255;return s===2?(i=L[r.charCodeAt(t)]<<2|L[r.charCodeAt(t+1)]>>4,p[m++]=i&255):s===1&&(i=L[r.charCodeAt(t)]<<10|L[r.charCodeAt(t+1)]<<4|L[r.charCodeAt(t+2)]>>2,p[m++]=i>>8&255,p[m++]=i&255),p}function Bi(r){return F[r>>18&63]+F[r>>12&63]+F[r>>6&63]+F[r&63]}function Fi(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(Bi(o));return i.join("")}function Jt(r){bt||Zt();for(var t,e=r.length,o=e%3,i="",s=[],p=16383,u=0,m=e-o;u<m;u+=p)s.push(Fi(r,u,u+p>m?m:u+p));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 qe(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function W(r,t){if(qe()<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 _t(this,r)}return er(this,r,t,e)}function er(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?Di(r,t,e,o):typeof t=="string"?Ui(r,t,e):ji(r,t)}function tr(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 Mi(r,t,e,o){return tr(t),t<=0?W(r,t):e!==void 0?typeof o=="string"?W(r,t).fill(e,o):W(r,t).fill(e):W(r,t)}function _t(r,t){if(tr(t),r=W(r,t<0?0:Et(t)|0),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<t;++e)r[e]=0;return r}function Ui(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=rr(t,e)|0;r=W(r,o);var i=r.write(t,e);return i!==o&&(r=r.slice(0,i)),r}function vt(r,t){var e=t.length<0?0:Et(t.length)|0;r=W(r,e);for(var o=0;o<e;o+=1)r[o]=t[o]&255;return r}function Di(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=vt(r,t),r}function ji(r,t){if(M(t)){var e=Et(t.length)|0;return r=W(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"||an(t.length)?W(r,0):vt(r,t);if(t.type==="Buffer"&&Array.isArray(t.data))return vt(r,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Et(r){if(r>=qe())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+qe().toString(16)+" bytes");return r|0}function M(r){return!!(r!=null&&r._isBuffer)}function rr(r,t){if(M(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 He(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return e*2;case"hex":return e>>>1;case"base64":return pr(r).length;default:if(o)return He(r).length;t=(""+t).toLowerCase(),o=!0}}function $i(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 Qi(this,t,e);case"utf8":case"utf-8":return nr(this,t,e);case"ascii":return Ki(this,t,e);case"latin1":case"binary":return Ji(this,t,e);case"base64":return Hi(this,t,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xi(this,t,e);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),o=!0}}function de(r,t,e){var o=r[t];r[t]=r[e],r[e]=o}function or(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)),M(t))return t.length===0?-1:Qt(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):Qt(r,[t],e,o,i);throw new TypeError("val must be string, number or Buffer")}function Qt(r,t,e,o,i){var s=1,p=r.length,u=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,p/=2,u/=2,e/=2}function m(w,A){return s===1?w[A]:w.readUInt16BE(A*s)}var h;if(i){var d=-1;for(h=e;h<p;h++)if(m(r,h)===m(t,d===-1?0:h-d)){if(d===-1&&(d=h),h-d+1===u)return d*s}else d!==-1&&(h-=h-d),d=-1}else for(e+u>p&&(e=p-u),h=e;h>=0;h--){for(var x=!0,y=0;y<u;y++)if(m(r,h+y)!==m(t,y)){x=!1;break}if(x)return h}return-1}function Wi(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 p=0;p<o;++p){var u=parseInt(t.substr(p*2,2),16);if(isNaN(u))return p;r[e+p]=u}return p}function Yi(r,t,e,o){return Je(He(t,r.length-e),r,e,o)}function ir(r,t,e,o){return Je(on(t),r,e,o)}function Gi(r,t,e,o){return ir(r,t,e,o)}function zi(r,t,e,o){return Je(pr(t),r,e,o)}function qi(r,t,e,o){return Je(nn(t,r.length-e),r,e,o)}function Hi(r,t,e){return t===0&&e===r.length?Jt(r):Jt(r.slice(t,e))}function nr(r,t,e){e=Math.min(r.length,e);for(var o=[],i=t;i<e;){var s=r[i],p=null,u=s>239?4:s>223?3:s>191?2:1;if(i+u<=e){var m,h,d,x;switch(u){case 1:s<128&&(p=s);break;case 2:m=r[i+1],(m&192)===128&&(x=(s&31)<<6|m&63,x>127&&(p=x));break;case 3:m=r[i+1],h=r[i+2],(m&192)===128&&(h&192)===128&&(x=(s&15)<<12|(m&63)<<6|h&63,x>2047&&(x<55296||x>57343)&&(p=x));break;case 4:m=r[i+1],h=r[i+2],d=r[i+3],(m&192)===128&&(h&192)===128&&(d&192)===128&&(x=(s&15)<<18|(m&63)<<12|(h&63)<<6|d&63,x>65535&&x<1114112&&(p=x))}}p===null?(p=65533,u=1):p>65535&&(p-=65536,o.push(p>>>10&1023|55296),p=56320|p&1023),o.push(p),i+=u}return Vi(o)}function Vi(r){var t=r.length;if(t<=Xt)return String.fromCharCode.apply(String,r);for(var e="",o=0;o<t;)e+=String.fromCharCode.apply(String,r.slice(o,o+=Xt));return e}function Ki(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 Ji(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 Qi(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+=rn(r[s]);return i}function Xi(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 v(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 I(r,t,e,o,i,s){if(!M(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 Ve(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 Ke(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 ar(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 sr(r,t,e,o,i){return i||ar(r,t,e,4,34028234663852886e22,-34028234663852886e22),ur(r,t,e,o,23,4),e+4}function fr(r,t,e,o,i){return i||ar(r,t,e,8,17976931348623157e292,-17976931348623157e292),ur(r,t,e,o,52,8),e+8}function en(r){if(r=tn(r).replace(Zi,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function tn(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function rn(r){return r<16?"0"+r.toString(16):r.toString(16)}function He(r,t){t=t||1/0;for(var e,o=r.length,i=null,s=[],p=0;p<o;++p){if(e=r.charCodeAt(p),e>55295&&e<57344){if(!i){if(e>56319){(t-=3)>-1&&s.push(239,191,189);continue}else if(p+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 on(r){for(var t=[],e=0;e<r.length;++e)t.push(r.charCodeAt(e)&255);return t}function nn(r,t){for(var e,o,i,s=[],p=0;p<r.length&&!((t-=2)<0);++p)e=r.charCodeAt(p),o=e>>8,i=e%256,s.push(i),s.push(o);return s}function pr(r){return Oi(en(r))}function Je(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 an(r){return r!==r}function sn(r){return r!=null&&(!!r._isBuffer||lr(r)||fn(r))}function lr(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function fn(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&lr(r.slice(0,0))}function Qe(r,t,e,o,i){var s,p,u=i*8-o-1,m=(1<<u)-1,h=m>>1,d=-7,x=e?i-1:0,y=e?-1:1,w=r[t+x];for(x+=y,s=w&(1<<-d)-1,w>>=-d,d+=u;d>0;s=s*256+r[t+x],x+=y,d-=8);for(p=s&(1<<-d)-1,s>>=-d,d+=o;d>0;p=p*256+r[t+x],x+=y,d-=8);if(s===0)s=1-h;else{if(s===m)return p?NaN:(w?-1:1)*(1/0);p=p+Math.pow(2,o),s=s-h}return(w?-1:1)*p*Math.pow(2,s-o)}function ur(r,t,e,o,i,s){var p,u,m,h=s*8-i-1,d=(1<<h)-1,x=d>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:s-1,A=o?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,p=d):(p=Math.floor(Math.log(t)/Math.LN2),t*(m=Math.pow(2,-p))<1&&(p--,m*=2),p+x>=1?t+=y/m:t+=y*Math.pow(2,1-x),t*m>=2&&(p++,m/=2),p+x>=d?(u=0,p=d):p+x>=1?(u=(t*m-1)*Math.pow(2,i),p=p+x):(u=t*Math.pow(2,x-1)*Math.pow(2,i),p=0));i>=8;r[e+w]=u&255,w+=A,u/=256,i-=8);for(p=p<<i|u,h+=i;h>0;r[e+w]=p&255,w+=A,p/=256,h-=8);r[e+w-A]|=E*128}var F,L,Pi,bt,Xt,Zi,cr=At(()=>{"use strict";n();a();F=[],L=[],Pi=typeof Uint8Array!="undefined"?Uint8Array:Array,bt=!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 er(null,r,t,e)};f.kMaxLength=qe();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 Mi(null,r,t,e)};f.allocUnsafe=function(r){return _t(null,r)};f.allocUnsafeSlow=function(r){return _t(null,r)};f.isBuffer=sn;f.compare=function(t,e){if(!M(t)||!M(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var o=t.length,i=e.length,s=0,p=Math.min(o,i);s<p;++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 p=t[o];if(!M(p))throw new TypeError('"list" argument must be an Array of Buffers');p.copy(i,s),s+=p.length}return i};f.byteLength=rr;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)de(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)de(this,e,e+3),de(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)de(this,e,e+7),de(this,e+1,e+6),de(this,e+2,e+5),de(this,e+3,e+4);return this};f.prototype.toString=function(){var t=this.length|0;return t===0?"":arguments.length===0?nr(this,0,t):$i.apply(this,arguments)};f.prototype.equals=function(t){if(!M(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(!M(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 p=s-i,u=o-e,m=Math.min(p,u),h=this.slice(i,s),d=t.slice(e,o),x=0;x<m;++x)if(h[x]!==d[x]){p=h[x],u=d[x];break}return p<u?-1:u<p?1:0};f.prototype.includes=function(t,e,o){return this.indexOf(t,e,o)!==-1};f.prototype.indexOf=function(t,e,o){return or(this,t,e,o,!0)};f.prototype.lastIndexOf=function(t,e,o){return or(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 p=!1;;)switch(i){case"hex":return Wi(this,t,e,o);case"utf8":case"utf-8":return Yi(this,t,e,o);case"ascii":return ir(this,t,e,o);case"latin1":case"binary":return Gi(this,t,e,o);case"base64":return zi(this,t,e,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return qi(this,t,e,o);default:if(p)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),p=!0}};f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};Xt=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 p=0;p<s;++p)i[p]=this[p+t]}return i};f.prototype.readUIntLE=function(t,e,o){t=t|0,e=e|0,o||v(t,e,this.length);for(var i=this[t],s=1,p=0;++p<e&&(s*=256);)i+=this[t+p]*s;return i};f.prototype.readUIntBE=function(t,e,o){t=t|0,e=e|0,o||v(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||v(t,1,this.length),this[t]};f.prototype.readUInt16LE=function(t,e){return e||v(t,2,this.length),this[t]|this[t+1]<<8};f.prototype.readUInt16BE=function(t,e){return e||v(t,2,this.length),this[t]<<8|this[t+1]};f.prototype.readUInt32LE=function(t,e){return e||v(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||v(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||v(t,e,this.length);for(var i=this[t],s=1,p=0;++p<e&&(s*=256);)i+=this[t+p]*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||v(t,e,this.length);for(var i=e,s=1,p=this[t+--i];i>0&&(s*=256);)p+=this[t+--i]*s;return s*=128,p>=s&&(p-=Math.pow(2,8*e)),p};f.prototype.readInt8=function(t,e){return e||v(t,1,this.length),this[t]&128?(255-this[t]+1)*-1:this[t]};f.prototype.readInt16LE=function(t,e){e||v(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||v(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||v(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||v(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||v(t,4,this.length),Qe(this,t,!0,23,4)};f.prototype.readFloatBE=function(t,e){return e||v(t,4,this.length),Qe(this,t,!1,23,4)};f.prototype.readDoubleLE=function(t,e){return e||v(t,8,this.length),Qe(this,t,!0,52,8)};f.prototype.readDoubleBE=function(t,e){return e||v(t,8,this.length),Qe(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;I(this,t,e,o,s,0)}var p=1,u=0;for(this[e]=t&255;++u<o&&(p*=256);)this[e+u]=t/p&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;I(this,t,e,o,s,0)}var p=o-1,u=1;for(this[e+p]=t&255;--p>=0&&(u*=256);)this[e+p]=t/u&255;return e+o};f.prototype.writeUInt8=function(t,e,o){return t=+t,e=e|0,o||I(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||I(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t&255,this[e+1]=t>>>8):Ve(this,t,e,!0),e+2};f.prototype.writeUInt16BE=function(t,e,o){return t=+t,e=e|0,o||I(this,t,e,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t&255):Ve(this,t,e,!1),e+2};f.prototype.writeUInt32LE=function(t,e,o){return t=+t,e=e|0,o||I(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):Ke(this,t,e,!0),e+4};f.prototype.writeUInt32BE=function(t,e,o){return t=+t,e=e|0,o||I(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):Ke(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);I(this,t,e,o,s-1,-s)}var p=0,u=1,m=0;for(this[e]=t&255;++p<o&&(u*=256);)t<0&&m===0&&this[e+p-1]!==0&&(m=1),this[e+p]=(t/u>>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);I(this,t,e,o,s-1,-s)}var p=o-1,u=1,m=0;for(this[e+p]=t&255;--p>=0&&(u*=256);)t<0&&m===0&&this[e+p+1]!==0&&(m=1),this[e+p]=(t/u>>0)-m&255;return e+o};f.prototype.writeInt8=function(t,e,o){return t=+t,e=e|0,o||I(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||I(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t&255,this[e+1]=t>>>8):Ve(this,t,e,!0),e+2};f.prototype.writeInt16BE=function(t,e,o){return t=+t,e=e|0,o||I(this,t,e,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=t&255):Ve(this,t,e,!1),e+2};f.prototype.writeInt32LE=function(t,e,o){return t=+t,e=e|0,o||I(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):Ke(this,t,e,!0),e+4};f.prototype.writeInt32BE=function(t,e,o){return t=+t,e=e|0,o||I(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):Ke(this,t,e,!1),e+4};f.prototype.writeFloatLE=function(t,e,o){return sr(this,t,e,!0,o)};f.prototype.writeFloatBE=function(t,e,o){return sr(this,t,e,!1,o)};f.prototype.writeDoubleLE=function(t,e,o){return fr(this,t,e,!0,o)};f.prototype.writeDoubleBE=function(t,e,o){return fr(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,p;if(this===t&&o<e&&e<i)for(p=s-1;p>=0;--p)t[p+e]=this[p+o];else if(s<1e3||!f.TYPED_ARRAY_SUPPORT)for(p=0;p<s;++p)t[p+e]=this[p+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 p;if(typeof t=="number")for(p=e;p<o;++p)this[p]=t;else{var u=M(t)?t:He(new f(t,i).toString()),m=u.length;for(p=0;p<o-e;++p)this[p+e]=u[p%m]}return this};Zi=/[^+\/0-9A-Za-z-_]/g});var a=At(()=>{"use strict";cr()});var mp={};Yt(mp,{FilePropertyMapper:()=>Dt});module.exports=ni(mp);n();a();n();a();n();a();function Y(r){throw new Error("Unexpected value: "+JSON.stringify(r))}n();a();n();a();n();a();n();a();n();a();var pn=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis,Xe=pn;var ln=typeof self=="object"&&self&&self.Object===Object&&self,un=Xe||ln||Function("return this")(),b=un;var cn=b.Symbol,G=cn;n();a();var mr=Object.prototype,mn=mr.hasOwnProperty,hn=mr.toString,Oe=G?G.toStringTag:void 0;function dn(r){var t=mn.call(r,Oe),e=r[Oe];try{r[Oe]=void 0;var o=!0}catch(s){}var i=hn.call(r);return o&&(t?r[Oe]=e:delete r[Oe]),i}var hr=dn;n();a();var xn=Object.prototype,yn=xn.toString;function gn(r){return yn.call(r)}var dr=gn;var wn="[object Null]",Tn="[object Undefined]",xr=G?G.toStringTag:void 0;function An(r){return r==null?r===void 0?Tn:wn:xr&&xr in Object(r)?hr(r):dr(r)}var z=An;n();a();function vn(r){return r!=null&&typeof r=="object"}var q=vn;n();a();var bn=Array.isArray,xe=bn;n();a();function _n(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}var Ze=_n;n();a();n();a();n();a();n();a();var En="[object AsyncFunction]",Sn="[object Function]",In="[object GeneratorFunction]",Cn="[object Proxy]";function Ln(r){if(!Ze(r))return!1;var t=z(r);return t==Sn||t==In||t==En||t==Cn}var et=Ln;n();a();n();a();var Nn=b["__core-js_shared__"],tt=Nn;var yr=(function(){var r=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function Rn(r){return!!yr&&yr in r}var gr=Rn;n();a();var kn=Function.prototype,Pn=kn.toString;function On(r){if(r!=null){try{return Pn.call(r)}catch(t){}try{return r+""}catch(t){}}return""}var H=On;var Bn=/[\\^$.*+?()[\]{}|]/g,Fn=/^\[object .+?Constructor\]$/,Mn=Function.prototype,Un=Object.prototype,Dn=Mn.toString,jn=Un.hasOwnProperty,$n=RegExp("^"+Dn.call(jn).replace(Bn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Wn(r){if(!Ze(r)||gr(r))return!1;var t=et(r)?$n:Fn;return t.test(H(r))}var wr=Wn;n();a();function Yn(r,t){return r==null?void 0:r[t]}var Tr=Yn;function Gn(r,t){var e=Tr(r,t);return wr(e)?e:void 0}var N=Gn;var zn=N(b,"WeakMap"),rt=zn;n();a();function qn(){}var Ar=qn;n();a();n();a();n();a();function Hn(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 vr=Hn;n();a();function Vn(r){return r!==r}var br=Vn;n();a();function Kn(r,t,e){for(var o=e-1,i=r.length;++o<i;)if(r[o]===t)return o;return-1}var _r=Kn;function Jn(r,t,e){return t===t?_r(r,t,e):vr(r,br,e)}var Er=Jn;function Qn(r,t){var e=r==null?0:r.length;return!!e&&Er(r,t,0)>-1}var Sr=Qn;n();a();var Xn=9007199254740991,Zn=/^(?:0|[1-9]\d*)$/;function ea(r,t){var e=typeof r;return t=t==null?Xn:t,!!t&&(e=="number"||e!="symbol"&&Zn.test(r))&&r>-1&&r%1==0&&r<t}var Ir=ea;n();a();function ta(r,t){return r===t||r!==r&&t!==t}var ot=ta;n();a();n();a();var ra=9007199254740991;function oa(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ra}var it=oa;function ia(r){return r!=null&&it(r.length)&&!et(r)}var Cr=ia;n();a();var na=Object.prototype;function aa(r){var t=r&&r.constructor,e=typeof t=="function"&&t.prototype||na;return r===e}var Lr=aa;n();a();n();a();n();a();function sa(r,t){for(var e=-1,o=Array(r);++e<r;)o[e]=t(e);return o}var Nr=sa;n();a();n();a();var fa="[object Arguments]";function pa(r){return q(r)&&z(r)==fa}var St=pa;var Rr=Object.prototype,la=Rr.hasOwnProperty,ua=Rr.propertyIsEnumerable,ca=St((function(){return arguments})())?St:function(r){return q(r)&&la.call(r,"callee")&&!ua.call(r,"callee")},kr=ca;n();a();n();a();function ma(){return!1}var Pr=ma;var Fr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Or=Fr&&typeof module=="object"&&module&&!module.nodeType&&module,ha=Or&&Or.exports===Fr,Br=ha?b.Buffer:void 0,da=Br?Br.isBuffer:void 0,xa=da||Pr,Be=xa;n();a();n();a();var ya="[object Arguments]",ga="[object Array]",wa="[object Boolean]",Ta="[object Date]",Aa="[object Error]",va="[object Function]",ba="[object Map]",_a="[object Number]",Ea="[object Object]",Sa="[object RegExp]",Ia="[object Set]",Ca="[object String]",La="[object WeakMap]",Na="[object ArrayBuffer]",Ra="[object DataView]",ka="[object Float32Array]",Pa="[object Float64Array]",Oa="[object Int8Array]",Ba="[object Int16Array]",Fa="[object Int32Array]",Ma="[object Uint8Array]",Ua="[object Uint8ClampedArray]",Da="[object Uint16Array]",ja="[object Uint32Array]",T={};T[ka]=T[Pa]=T[Oa]=T[Ba]=T[Fa]=T[Ma]=T[Ua]=T[Da]=T[ja]=!0;T[ya]=T[ga]=T[Na]=T[wa]=T[Ra]=T[Ta]=T[Aa]=T[va]=T[ba]=T[_a]=T[Ea]=T[Sa]=T[Ia]=T[Ca]=T[La]=!1;function $a(r){return q(r)&&it(r.length)&&!!T[z(r)]}var Mr=$a;n();a();function Wa(r){return function(t){return r(t)}}var Ur=Wa;n();a();var Dr=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fe=Dr&&typeof module=="object"&&module&&!module.nodeType&&module,Ya=Fe&&Fe.exports===Dr,It=Ya&&Xe.process,Ga=(function(){try{var r=Fe&&Fe.require&&Fe.require("util").types;return r||It&&It.binding&&It.binding("util")}catch(t){}})(),Ct=Ga;var jr=Ct&&Ct.isTypedArray,za=jr?Ur(jr):Mr,nt=za;var qa=Object.prototype,Ha=qa.hasOwnProperty;function Va(r,t){var e=xe(r),o=!e&&kr(r),i=!e&&!o&&Be(r),s=!e&&!o&&!i&&nt(r),p=e||o||i||s,u=p?Nr(r.length,String):[],m=u.length;for(var h in r)(t||Ha.call(r,h))&&!(p&&(h=="length"||i&&(h=="offset"||h=="parent")||s&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Ir(h,m)))&&u.push(h);return u}var $r=Va;n();a();n();a();n();a();function Ka(r,t){return function(e){return r(t(e))}}var Wr=Ka;var Ja=Wr(Object.keys,Object),Yr=Ja;var Qa=Object.prototype,Xa=Qa.hasOwnProperty;function Za(r){if(!Lr(r))return Yr(r);var t=[];for(var e in Object(r))Xa.call(r,e)&&e!="constructor"&&t.push(e);return t}var Gr=Za;function es(r){return Cr(r)?$r(r):Gr(r)}var zr=es;n();a();n();a();n();a();n();a();n();a();var ts=N(Object,"create"),V=ts;function rs(){this.__data__=V?V(null):{},this.size=0}var qr=rs;n();a();function os(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}var Hr=os;n();a();var is="__lodash_hash_undefined__",ns=Object.prototype,as=ns.hasOwnProperty;function ss(r){var t=this.__data__;if(V){var e=t[r];return e===is?void 0:e}return as.call(t,r)?t[r]:void 0}var Vr=ss;n();a();var fs=Object.prototype,ps=fs.hasOwnProperty;function ls(r){var t=this.__data__;return V?t[r]!==void 0:ps.call(t,r)}var Kr=ls;n();a();var us="__lodash_hash_undefined__";function cs(r,t){var e=this.__data__;return this.size+=this.has(r)?0:1,e[r]=V&&t===void 0?us:t,this}var Jr=cs;function Ce(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])}}Ce.prototype.clear=qr;Ce.prototype.delete=Hr;Ce.prototype.get=Vr;Ce.prototype.has=Kr;Ce.prototype.set=Jr;var Lt=Ce;n();a();n();a();function ms(){this.__data__=[],this.size=0}var Qr=ms;n();a();n();a();function hs(r,t){for(var e=r.length;e--;)if(ot(r[e][0],t))return e;return-1}var oe=hs;var ds=Array.prototype,xs=ds.splice;function ys(r){var t=this.__data__,e=oe(t,r);if(e<0)return!1;var o=t.length-1;return e==o?t.pop():xs.call(t,e,1),--this.size,!0}var Xr=ys;n();a();function gs(r){var t=this.__data__,e=oe(t,r);return e<0?void 0:t[e][1]}var Zr=gs;n();a();function ws(r){return oe(this.__data__,r)>-1}var eo=ws;n();a();function Ts(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 to=Ts;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=Qr;Le.prototype.delete=Xr;Le.prototype.get=Zr;Le.prototype.has=eo;Le.prototype.set=to;var ie=Le;n();a();var As=N(b,"Map"),ne=As;function vs(){this.size=0,this.__data__={hash:new Lt,map:new(ne||ie),string:new Lt}}var ro=vs;n();a();n();a();n();a();function bs(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}var oo=bs;function _s(r,t){var e=r.__data__;return oo(t)?e[typeof t=="string"?"string":"hash"]:e.map}var ae=_s;function Es(r){var t=ae(this,r).delete(r);return this.size-=t?1:0,t}var io=Es;n();a();function Ss(r){return ae(this,r).get(r)}var no=Ss;n();a();function Is(r){return ae(this,r).has(r)}var ao=Is;n();a();function Cs(r,t){var e=ae(this,r),o=e.size;return e.set(r,t),this.size+=e.size==o?0:1,this}var so=Cs;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=ro;Ne.prototype.delete=io;Ne.prototype.get=no;Ne.prototype.has=ao;Ne.prototype.set=so;var at=Ne;n();a();function Ls(r,t){for(var e=-1,o=t.length,i=r.length;++e<o;)r[i+e]=t[e];return r}var fo=Ls;n();a();n();a();function Ns(){this.__data__=new ie,this.size=0}var po=Ns;n();a();function Rs(r){var t=this.__data__,e=t.delete(r);return this.size=t.size,e}var lo=Rs;n();a();function ks(r){return this.__data__.get(r)}var uo=ks;n();a();function Ps(r){return this.__data__.has(r)}var co=Ps;n();a();var Os=200;function Bs(r,t){var e=this.__data__;if(e instanceof ie){var o=e.__data__;if(!ne||o.length<Os-1)return o.push([r,t]),this.size=++e.size,this;e=this.__data__=new at(o)}return e.set(r,t),this.size=e.size,this}var mo=Bs;function Re(r){var t=this.__data__=new ie(r);this.size=t.size}Re.prototype.clear=po;Re.prototype.delete=lo;Re.prototype.get=uo;Re.prototype.has=co;Re.prototype.set=mo;var st=Re;n();a();n();a();function Fs(r,t){for(var e=-1,o=r==null?0:r.length,i=0,s=[];++e<o;){var p=r[e];t(p,e,r)&&(s[i++]=p)}return s}var ho=Fs;n();a();function Ms(){return[]}var xo=Ms;var Us=Object.prototype,Ds=Us.propertyIsEnumerable,yo=Object.getOwnPropertySymbols,js=yo?function(r){return r==null?[]:(r=Object(r),ho(yo(r),function(t){return Ds.call(r,t)}))}:xo,go=js;n();a();n();a();function $s(r,t,e){var o=t(r);return xe(r)?o:fo(o,e(r))}var wo=$s;function Ws(r){return wo(r,zr,go)}var Nt=Ws;n();a();n();a();var Ys=N(b,"DataView"),ft=Ys;n();a();var Gs=N(b,"Promise"),pt=Gs;n();a();var zs=N(b,"Set"),se=zs;var To="[object Map]",qs="[object Object]",Ao="[object Promise]",vo="[object Set]",bo="[object WeakMap]",_o="[object DataView]",Hs=H(ft),Vs=H(ne),Ks=H(pt),Js=H(se),Qs=H(rt),ye=z;(ft&&ye(new ft(new ArrayBuffer(1)))!=_o||ne&&ye(new ne)!=To||pt&&ye(pt.resolve())!=Ao||se&&ye(new se)!=vo||rt&&ye(new rt)!=bo)&&(ye=function(r){var t=z(r),e=t==qs?r.constructor:void 0,o=e?H(e):"";if(o)switch(o){case Hs:return _o;case Vs:return To;case Ks:return Ao;case Js:return vo;case Qs:return bo}return t});var Rt=ye;n();a();var Xs=b.Uint8Array,kt=Xs;n();a();n();a();n();a();n();a();n();a();var Zs="__lodash_hash_undefined__";function ef(r){return this.__data__.set(r,Zs),this}var Eo=ef;n();a();function tf(r){return this.__data__.has(r)}var So=tf;function lt(r){var t=-1,e=r==null?0:r.length;for(this.__data__=new at;++t<e;)this.add(r[t])}lt.prototype.add=lt.prototype.push=Eo;lt.prototype.has=So;var ut=lt;n();a();function rf(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 Io=rf;n();a();function of(r,t){return r.has(t)}var ct=of;var nf=1,af=2;function sf(r,t,e,o,i,s){var p=e&nf,u=r.length,m=t.length;if(u!=m&&!(p&&m>u))return!1;var h=s.get(r),d=s.get(t);if(h&&d)return h==t&&d==r;var x=-1,y=!0,w=e&af?new ut:void 0;for(s.set(r,t),s.set(t,r);++x<u;){var A=r[x],E=t[x];if(o)var B=p?o(E,A,x,t,r,s):o(A,E,x,r,t,s);if(B!==void 0){if(B)continue;y=!1;break}if(w){if(!Io(t,function(ue,ce){if(!ct(w,ce)&&(A===ue||i(A,ue,e,o,s)))return w.push(ce)})){y=!1;break}}else if(!(A===E||i(A,E,e,o,s))){y=!1;break}}return s.delete(r),s.delete(t),y}var mt=sf;n();a();n();a();function ff(r){var t=-1,e=Array(r.size);return r.forEach(function(o,i){e[++t]=[i,o]}),e}var Co=ff;n();a();function pf(r){var t=-1,e=Array(r.size);return r.forEach(function(o){e[++t]=o}),e}var ke=pf;var lf=1,uf=2,cf="[object Boolean]",mf="[object Date]",hf="[object Error]",df="[object Map]",xf="[object Number]",yf="[object RegExp]",gf="[object Set]",wf="[object String]",Tf="[object Symbol]",Af="[object ArrayBuffer]",vf="[object DataView]",Lo=G?G.prototype:void 0,Pt=Lo?Lo.valueOf:void 0;function bf(r,t,e,o,i,s,p){switch(e){case vf:if(r.byteLength!=t.byteLength||r.byteOffset!=t.byteOffset)return!1;r=r.buffer,t=t.buffer;case Af:return!(r.byteLength!=t.byteLength||!s(new kt(r),new kt(t)));case cf:case mf:case xf:return ot(+r,+t);case hf:return r.name==t.name&&r.message==t.message;case yf:case wf:return r==t+"";case df:var u=Co;case gf:var m=o&lf;if(u||(u=ke),r.size!=t.size&&!m)return!1;var h=p.get(r);if(h)return h==t;o|=uf,p.set(r,t);var d=mt(u(r),u(t),o,i,s,p);return p.delete(r),d;case Tf:if(Pt)return Pt.call(r)==Pt.call(t)}return!1}var No=bf;n();a();var _f=1,Ef=Object.prototype,Sf=Ef.hasOwnProperty;function If(r,t,e,o,i,s){var p=e&_f,u=Nt(r),m=u.length,h=Nt(t),d=h.length;if(m!=d&&!p)return!1;for(var x=m;x--;){var y=u[x];if(!(p?y in t:Sf.call(t,y)))return!1}var w=s.get(r),A=s.get(t);if(w&&A)return w==t&&A==r;var E=!0;s.set(r,t),s.set(t,r);for(var B=p;++x<m;){y=u[x];var ue=r[y],ce=t[y];if(o)var jt=p?o(ce,ue,y,t,r,s):o(ue,ce,y,r,t,s);if(!(jt===void 0?ue===ce||i(ue,ce,e,o,s):jt)){E=!1;break}B||(B=y=="constructor")}if(E&&!B){var je=r.constructor,$e=t.constructor;je!=$e&&"constructor"in r&&"constructor"in t&&!(typeof je=="function"&&je instanceof je&&typeof $e=="function"&&$e instanceof $e)&&(E=!1)}return s.delete(r),s.delete(t),E}var Ro=If;var Cf=1,ko="[object Arguments]",Po="[object Array]",ht="[object Object]",Lf=Object.prototype,Oo=Lf.hasOwnProperty;function Nf(r,t,e,o,i,s){var p=xe(r),u=xe(t),m=p?Po:Rt(r),h=u?Po:Rt(t);m=m==ko?ht:m,h=h==ko?ht:h;var d=m==ht,x=h==ht,y=m==h;if(y&&Be(r)){if(!Be(t))return!1;p=!0,d=!1}if(y&&!d)return s||(s=new st),p||nt(r)?mt(r,t,e,o,i,s):No(r,t,m,e,o,i,s);if(!(e&Cf)){var w=d&&Oo.call(r,"__wrapped__"),A=x&&Oo.call(t,"__wrapped__");if(w||A){var E=w?r.value():r,B=A?t.value():t;return s||(s=new st),i(E,B,e,o,s)}}return y?(s||(s=new st),Ro(r,t,e,o,i,s)):!1}var Bo=Nf;function Fo(r,t,e,o,i){return r===t?!0:r==null||t==null||!q(r)&&!q(t)?r!==r&&t!==t:Bo(r,t,e,o,Fo,i)}var Mo=Fo;n();a();function Rf(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 Uo=Rf;n();a();function kf(r,t){return Mo(r,t)}var dt=kf;n();a();n();a();var Pf=1/0,Of=se&&1/ke(new se([,-0]))[1]==Pf?function(r){return new se(r)}:Ar,Do=Of;var Bf=200;function Ff(r,t,e){var o=-1,i=Sr,s=r.length,p=!0,u=[],m=u;if(e)p=!1,i=Uo;else if(s>=Bf){var h=t?null:Do(r);if(h)return ke(h);p=!1,i=ct,m=new ut}else m=t?[]:u;e:for(;++o<s;){var d=r[o],x=t?t(d):d;if(d=e||d!==0?d:0,p&&x===x){for(var y=m.length;y--;)if(m[y]===x)continue e;t&&m.push(x),u.push(d)}else i(m,x,e)||(m!==u&&m.push(x),u.push(d))}return u}var jo=Ff;n();a();function Mf(r,t){return t=typeof t=="function"?t:void 0,r&&r.length?jo(r,void 0,t):[]}var xt=Mf;n();a();n();a();var $o="self",Wo="static";var R={};Yt(R,{Access:()=>fe,Array:()=>ge,AstNode:()=>g,Attribute:()=>we,Class:()=>Q,ClassInstantiation:()=>j,ClassReference:()=>_,CodeBlock:()=>S,DataClass:()=>Te,Enum:()=>Ae,Field:()=>ve,Map:()=>be,Method:()=>ee,MethodInvocation:()=>Z,Parameter:()=>X,Trait:()=>_e,Type:()=>O,TypeLiteral:()=>P,Writer:()=>D,array:()=>Vf,assignVariable:()=>fp,attribute:()=>Kf,classReference:()=>Xf,class_:()=>Jf,codeblock:()=>Ee,dataClass:()=>Zf,enum_:()=>ep,escapePhpString:()=>Ut,field:()=>tp,instantiateClass:()=>Xo,invokeMethod:()=>rp,map:()=>ip,mergeArrays:()=>up,method:()=>np,parameter:()=>ap,string:()=>lp,ternary:()=>sp,this_:()=>cp,throwException:()=>op,trait:()=>Qf,variable:()=>pp});n();a();n();a();n();a();n();a();var Yo,Go,Me=(Go=(Yo=l.env.FERN_STACK_TRACK)==null?void 0:Yo.toLowerCase())!=null?Go:"",U=Me!==""&&Me!=="0"&&Me!=="false",Ot=["single","multiline","box"].includes(Me)?Me:"single";U&&(Error.stackTraceLimit=50);var Uf=new Set(["SdkGeneratorCLI","runCli","LoggerImpl","Array.forEach"]),Df=new Set(["stacktrace"]);function gt({maxFrames:r=50,skip:t=0,filterPaths:e=[],filterFunctions:o=[],stopOn:i=[],filterNode:s=!0,filterJs:p=!0,formatFilename:u=m=>m}={}){var h;if(!U)return[];o=[...o,...Uf],e=[...e,...Df],i=[...i,"runInteractiveTask"];let m=!1;return((h=new Error().stack)!=null?h:"").split(`
2
+ `).map(d=>{let x=d.match(/at\s+(.*)\s+\((.*):(\d+):(\d+)\)/);if(x&&x.length===5){let[,y,w,A,E]=x;if(!y||!w||!A||!E)return;if(m||i.some(B=>y==null?void 0:y.includes(B))){m=!0;return}switch(y){case"Object.<anonymous>":y="";break;case"Object.object":case"Object.alias":case"Object.union":case"Object.enum":case"Object.undiscriminatedUnion":y=`${y.substring(y.indexOf(".")+1)}()=> { ... }`;break}return{fn:y,path:u(w),position:`${A}:${E}`}}}).filter(d=>{var x,y;return d&&!o.some(w=>d.fn.includes(w))&&!(s&&((x=d.path)!=null&&x.startsWith("node:")))&&!(p&&((y=d.path)!=null&&y.endsWith(".js")))&&!e.some(w=>d.path.includes(w))}).slice(t,t+r)}var yt=class{constructor({maxFrames:t=50,skip:e=0,filterPaths:o=[],filterFunctions:i=[],stopOn:s=[],filterNode:p=!0,filterJs:u=!0,multiline:m=!1,formatFilename:h=d=>d}={}){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=p,this.filterJs=u,this.multiline=m,this.formatFilename=h}tag(t){let e=this.tracking.get(t)||new Set;gt({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(!U)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}},K;function zo({maxFrames:r=50,skip:t=0,filterPaths:e=[],filterFunctions:o=[],stopOn:i=[],filterNode:s=!0,filterJs:p=!0,multiline:u=!1,formatFilename:m=h=>h}={}){U&&(K!=null||(K=new yt({maxFrames:r,skip:t,filterPaths:e,filterFunctions:o,stopOn:i,filterNode:s,filterJs:p,multiline:u,formatFilename:m})))}function qo(r){K==null||K.tag(r)}function Bt(r){var t;return(t=K==null?void 0:K.frames(r))!=null?t:[]}var J=class{constructor(){qo(this)}};n();a();n();a();n();a();var k=class extends J{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 jf=4;zo({skip:0,maxFrames:15,filterFunctions:["Abstract"]});var Ue=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 U&&this.nodeStackFrames.length>0&&this.writeInternal(`
4
4
  `),this.lineBuffer.join(`
5
5
  `)+(this.lastCharacterIsNewline?`
6
6
  `:"")}write(...t){for(let e of t)if(e!=null)if(typeof e=="string"){let o=e.length>0&&e.endsWith(`
@@ -12,17 +12,17 @@ ${s}`);this.isAtStartOfLine()&&(p=s+p),o&&(p+=`
12
12
  `)}writeSemicolonIfLastCharacterIsNot(){this.lastCharacterIsSemicolon||this.writeInternal(";")}writeNewLineIfLastLineNot(){this.lastCharacterIsNewline||this.writeInternal(`
13
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 p=t[s];p!=null&&o(p)}}}toString(){return this.buffer}writeInternal(t){if(t.length===0)return;let e=!this.lastCharacterIsNewline;this.hasWrittenAnything=!0,this.lastCharacterIsNewline=t.endsWith(`
14
14
  `),this.lastCharacterIsSemicolon=t.endsWith(";");let o=t.split(`
15
- `),i=U&&!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(gt({maxFrames:15,skip:3}))),...this.formatStack(this.filterStack(this.nodeStackFrames),"node")];switch(this.nodeStackFrames.length=0,Ot){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 jf}};n();a();function Ft(r){return(r==null?void 0:r.name)!=null&&(r==null?void 0:r.assignment)!=null}n();a();var De=class extends J{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();function qo(r){return{namespace:r.substring(0,r.lastIndexOf("\\")),name:r.substring(r.lastIndexOf("\\")+1)}}var D=class extends Ue{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 p,u;if(e.namespace==null)return;if(Object.keys(this.references).filter(m=>{let h=qo(m);return h.namespace!==e.namespace&&h.name===e.name}).length>0){e.requireFullyQualified();return}let i=e.namespace===""?e.name:`${e.namespace}\\${e.name}`;((u=(p=this.references)[i])!=null?u:p[i]=[]).push(e)}toString(e=!1){if(e)return this.buffer;let o=`namespace ${this.namespace};`,i=this.stringifyImports();return i.length>0?`${o}
15
+ `),i=U&&!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(gt({maxFrames:15,skip:3}))),...this.formatStack(this.filterStack(this.nodeStackFrames),"node")];switch(this.nodeStackFrames.length=0,Ot){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 jf}};n();a();function Ft(r){return(r==null?void 0:r.name)!=null&&(r==null?void 0:r.assignment)!=null}n();a();var De=class extends J{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();function Ho(r){return{namespace:r.substring(0,r.lastIndexOf("\\")),name:r.substring(r.lastIndexOf("\\")+1)}}var D=class extends Ue{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 p,u;if(e.namespace==null)return;if(Object.keys(this.references).filter(m=>{let h=Ho(m);return h.namespace!==e.namespace&&h.name===e.name}).length>0){e.requireFullyQualified();return}let i=e.namespace===""?e.name:`${e.namespace}\\${e.name}`;((u=(p=this.references)[i])!=null?u:p[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
16
 
17
17
  ${i}
18
18
 
19
19
  ${this.buffer}`:o+`
20
20
 
21
- `+this.buffer}stringifyImports(){let e=Object.keys(this.references);return e.length===0?"":e.filter(o=>qo(o).namespace!==this.namespace).map(o=>`use ${o};`).join(`
21
+ `+this.buffer}stringifyImports(){let e=Object.keys(this.references);return e.length===0?"":e.filter(o=>Ho(o).namespace!==this.namespace).map(o=>`use ${o};`).join(`
22
22
  `)}};var g=class extends J{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,p=new D({namespace:e,rootNamespace:o,customConfig:i});return this.write(p),p.toString(s)}async toStringAsync({namespace:t,rootNamespace:e,customConfig:o}){let i=new D({namespace:t,rootNamespace:e,customConfig:o});return this.write(i),i.toString()}};var ge=class extends g{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 g{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 _=class extends g{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 pe(r){return r.startsWith("$")?r:`$${r}`}var C=class extends g{constructor({docs:e}={}){super();c(this,"docs");c(this,"tags",[]);this.docs=e}addTag(e){this.tags.push(Ge(Ye({},e),{name:e.name!=null?pe(e.name):void 0}))}write(e){e.writeLine("/**"),this.docs!=null&&(this.docs.split(`
23
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 le(r){return $f(r,[fe.Public,fe.PublicReadonly,fe.Protected,fe.Private])}function $f(r,t){return t.reduce((e,o)=>[...e,...r.filter(i=>i.access===o)],[])}var Q=class extends g{constructor({name:e,namespace:o,abstract:i,docs:s,parentClassReference:p,traits:u}){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=p,this.traits=u!=null?u:[]}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 _({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:le(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:le(this.methods)}),e.dedent(),e.writeLine("}")}writeComment(e){if(this.docs==null)return;new C({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,p)=>{p===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 C;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){Wf({writer:r,arguments_:t});return}Yf({writer:r,arguments_:t})}function Wf({writer:r,arguments_:t}){r.writeLine("("),r.indent();for(let e of t)Vo({writer:r,argument:e,writeCompact:!1}),r.writeLine(",");r.dedent(),r.write(")")}function Yf({writer:r,arguments_:t}){r.write("("),t.forEach((e,o)=>{o>0&&r.write(", "),Vo({writer:r,argument:e,writeCompact:!0})}),r.write(")")}function Vo({writer:r,argument:t,writeCompact:e}){Ft(t)?(t.docs&&(e?r.write(`/* ${t.docs} */ `):r.writeLine(`/* ${t.docs} */`)),r.write(`${t.name}: `),r.writeNodeOrString(t.assignment)):t.write(r)}var j=class extends g{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 g{constructor(e){super();c(this,"arg");this.arg=e}write(e){return new k(this.arg).write(e)}};n();a();n();a();var X=class extends g{constructor({name:e,type:o,docs:i,initializer:s,access:p,readonly_:u}){super();c(this,"name");c(this,"type");c(this,"docs");c(this,"initializer");c(this,"access");c(this,"readonly_");this.name=pe(e),this.type=o,this.docs=i,this.initializer=s,this.access=p,this.readonly_=u!=null?u:!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 Z=class extends g{constructor({method:e,arguments_:o,static_:i,multiline:s,on:p}){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=p}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 P=class r extends g{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(zf({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(Gf({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:Y(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 j({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=Hf({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=qf({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,p]of i)e.write(`'${s}' => `),e.writeNode(r.unknown(p)),e.writeLine(",");e.dedent(),e.write("]")}};function Gf({writer:r,value:t}){return new j({classReference:new _({name:"DateTime",namespace:""}),arguments_:[new S(`'${t}'`)]})}function zf({writer:r,value:t}){return new Z({on:new _({name:"File",namespace:`${r.rootNamespace}\\Utils`}),method:"createFromString",arguments_:[new S(`"${t}"`)]})}function qf({entries:r}){return r.filter(t=>!P.isNop(t.key)&&!P.isNop(t.value))}function Hf({values:r}){return r.filter(t=>!P.isNop(t))}var O=class r extends g{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(Ko),e.write("DateTime");break;case"dateTime":e.addReference(Ko),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(u=>!u.valueType.isOptional()),s=this.internalType.entries.filter(u=>u.valueType.isOptional()),p=[...i,...s];for(let u of p)e.write(" * "),this.writeTypeDictEntry({writer:e,entry:u,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",p=i.type==="union";!p&&!s&&e.write("?"),this.internalType.value.write(e,{comment:o}),p&&!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,p)=>{p>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:Y(this.internalType.value.internalType)}break;default:Y(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 _({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:Y(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=xt(o,dt);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:P.string(e)})}static literalBoolean(e){return new this({type:"literal",value:P.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}),p=this.unwrapOptionalTypes(s),u=p.filter(m=>m.underlyingType().internalType.type==="mixed").length>0;if(u&&!i){e.write("mixed");return}if(p.length>0&&i){e.writeLine("("),p.forEach((m,h)=>{h>0?e.write(" * |"):e.write(" * "),u&&(m=m.underlyingType()),m.write(e,{comment:i}),e.writeLine(),h++}),e.write(" * )");return}p.forEach((m,h)=>{h>0&&e.write("|"),u&&(m=m.underlyingType()),m.write(e,{comment:i}),h++})}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=xt(o,dt),p=new Set;return s.filter(u=>{let m=u.toString({namespace:e.namespace,rootNamespace:e.rootNamespace,customConfig:e.customConfig,comment:i});return p.has(m)?!1:(p.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 p=new D({namespace:e,rootNamespace:o,customConfig:i});return this.write(p,{comment:s!=null?s:!1}),p.toString()}},Ko=new _({namespace:"",name:"DateTime"});n();a();function Jo(r){return r.startsWith("$")?r.slice(1):r}var Qo="values",Te=class extends g{constructor({name:e,namespace:o,abstract:i,docs:s,parentClassReference:p,traits:u,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 Q({name:e,namespace:o,abstract:i,docs:s,parentClassReference:p,traits:u})}addField(e){this.class_.addField(e)}addMethod(e){this.class_.addMethod(e)}addTrait(e){this.class_.addTrait(e)}write(e){let o=le(this.class_.fields).map(i=>Ge(Ye({},i),{name:Jo(i.name)}));o.length>0&&this.class_.addConstructor({access:this.constructorAccess,parameters:this.getConstructorParameters({orderedFields:o}),body:R.codeblock(i=>{for(let s of o)i.write(`$this->${s.name} = $${Qo}['${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 X({name:Qo,type:O.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 ee=class extends g{constructor({name:e,access:o,parameters:i,throws:s,return_:p,body:u,docs:m,classReference:h,static_:d}){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_=p,this.body=u,this.docs=m,this.classReference=h,this.static_=d!=null?d:!1}write(e){var p;this.writeComment(e),e.write(`${this.access}${this.static_?" static":""} function ${this.name}(`);let o=this.parameters.filter(u=>!u.type.isOptional()),i=this.parameters.filter(u=>u.type.isOptional());[...o,...i].forEach((u,m)=>{m>0&&e.write(", "),u.write(e)}),e.write("): "),this.return_!=null?e.writeNodeOrString(this.return_):e.write("void"),e.writeLine(" {"),e.indent(),(p=this.body)==null||p.write(e),e.dedent(),e.writeLine("}")}writeComment(e){let o=new C({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_!==jo&&this.return_!==$o&&o.addTag({tagType:"return",type:this.return_});for(let i of this.throws)o.addTag({tagType:"throws",type:O.reference(i)});e.writeNode(o)}};var ve=class extends g{constructor({name:e,namespace:o,backing:i,docs:s,serializable:p}){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=p!=null?p:!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 _({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=Mt(o.value);e.write(` = "${i}"`)}else e.write(` = ${o.value}`);e.writeTextStatement("")}this.serializable&&(e.newLine(),e.writeNode(new ee({name:"jsonSerialize",return_:O.string(),access:"public",parameters:[],body:new S("return $this->value;")}))),e.writeNewLineIfLastLineNot(),e.dedent(),e.writeLine("}")}writeComment(e){if(this.docs==null)return;new C({docs:this.docs}).write(e)}};n();a();var Ae=class extends g{constructor({name:e,type:o,access:i,readonly_:s,initializer:p,docs:u,inlineDocs:m,attributes:h,inherited:d}){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=pe(e),this.type=o,this.access=i,this.readonly_=s!=null?s:!1,this.initializer=p,this.docs=u,this.inlineDocs=m,this.attributes=h!=null?h:[],this.inherited=d!=null?d:!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 C;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 be=class extends g{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 _e=class extends g{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:le(this.fields)}),this.fields.length>0&&this.methods.length>0&&e.newLine(),this.writeMethods({writer:e,methods:le(this.methods)}),e.dedent(),e.writeLine("}")}writeComment(e){let o=new C({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 wt=class extends g{constructor(e){super();c(this,"arrays");this.arrays=e}write(e){e.write("array_merge"),Pe({writer:e,arguments_:this.arrays.map(o=>Ee(i=>{if(typeof o=="string"||o instanceof g){i.writeNodeOrString(o);return}i.writeNodeOrString(o.ref),o.fallback&&(i.write(" ?? "),i.writeNodeOrString(o.fallback))}))})}};function Vf(r){return new ge(r)}function Kf(r){return new we(r)}function Jf(r){return new Q(r)}function Qf(r){return new _e(r)}function Xf(r){return new _(r)}function Ee(r){return new S(r)}function Zf(r){return new Te(r)}function ep(r){return new ve(r)}function tp(r){return new Ae(r)}function Xo(r){return new j(r)}function rp(r){return new Z(r)}function op(r){return Ee(t=>{t.write("throw "),t.writeNode(Xo(r))})}function ip(r){return new be(r)}function np(r){return new ee(r)}function ap(r){return new X(r)}function sp(r){return new De(r)}function fp(r,t){return Ee(e=>{e.writeNodeOrString(r),e.write(" = "),e.writeNodeOrString(t)})}function pp(r){return Ee(pe(r))}function lp(r){return Ee(`"${r}"`)}function up(...r){return new wt(r)}function Mt(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\$/g,"\\$")}function cp(){return new S(r=>{r.write("$this")})}var Ut=class{constructor({context:t}){c(this,"context");this.context=t}getFilePropertyInfo({body:t,value:e}){var s;let o={fileFields:[],bodyPropertyFields:[]},i=(s=this.context.getRecord(e))!=null?s:{};for(let p of t.properties)switch(p.type){case"file":o.fileFields.push({name:this.context.getPropertyName(p.name),value:this.getSingleFileProperty({property:p,record:i})});break;case"fileArray":o.fileFields.push({name:this.context.getPropertyName(p.name),value:this.getArrayFileProperty({property:p,record:i})});break;case"bodyProperty":o.bodyPropertyFields.push({name:this.context.getPropertyName(p.name.name),value:this.getBodyProperty({property:p,record:i})});break;default:Y(p)}return o}getSingleFileProperty({property:t,record:e}){let o=this.context.getSingleFileValue({property:t,record:e});return o==null?R.TypeLiteral.nop():R.TypeLiteral.file(o)}getArrayFileProperty({property:t,record:e}){let o=this.context.getFileArrayValues({property:t,record:e});return o==null?R.TypeLiteral.nop():R.TypeLiteral.list({values:o.map(i=>R.TypeLiteral.file(i))})}getBodyProperty({property:t,record:e}){let o=e[t.name.wireValue];return o==null?R.TypeLiteral.nop():this.context.dynamicTypeLiteralMapper.convert({typeReference:t.typeReference,value:o})}};0&&(module.exports={FilePropertyMapper});
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 le(r){return $f(r,[fe.Public,fe.PublicReadonly,fe.Protected,fe.Private])}function $f(r,t){return t.reduce((e,o)=>[...e,...r.filter(i=>i.access===o)],[])}var Q=class extends g{constructor({name:e,namespace:o,abstract:i,docs:s,parentClassReference:p,traits:u}){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=p,this.traits=u!=null?u:[]}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 _({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:le(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:le(this.methods)}),e.dedent(),e.writeLine("}")}writeComment(e){if(this.docs==null)return;new C({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,p)=>{p===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 C;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){Wf({writer:r,arguments_:t});return}Yf({writer:r,arguments_:t})}function Wf({writer:r,arguments_:t}){r.writeLine("("),r.indent();for(let e of t)Ko({writer:r,argument:e,writeCompact:!1}),r.writeLine(",");r.dedent(),r.write(")")}function Yf({writer:r,arguments_:t}){r.write("("),t.forEach((e,o)=>{o>0&&r.write(", "),Ko({writer:r,argument:e,writeCompact:!0})}),r.write(")")}function Ko({writer:r,argument:t,writeCompact:e}){Ft(t)?(t.docs&&(e?r.write(`/* ${t.docs} */ `):r.writeLine(`/* ${t.docs} */`)),r.write(`${t.name}: `),r.writeNodeOrString(t.assignment)):t.write(r)}var j=class extends g{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 g{constructor(e){super();c(this,"arg");this.arg=e}write(e){return new k(this.arg).write(e)}};n();a();n();a();var X=class extends g{constructor({name:e,type:o,docs:i,initializer:s,access:p,readonly_:u}){super();c(this,"name");c(this,"type");c(this,"docs");c(this,"initializer");c(this,"access");c(this,"readonly_");this.name=pe(e),this.type=o,this.docs=i,this.initializer=s,this.access=p,this.readonly_=u!=null?u:!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 Z=class extends g{constructor({method:e,arguments_:o,static_:i,multiline:s,on:p}){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=p}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 P=class r extends g{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(zf({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(Gf({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:Y(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 j({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=Hf({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=qf({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,p]of i)e.write(`'${s}' => `),e.writeNode(r.unknown(p)),e.writeLine(",");e.dedent(),e.write("]")}};function Gf({writer:r,value:t}){return new j({classReference:new _({name:"DateTime",namespace:""}),arguments_:[new S(`'${t}'`)]})}function zf({writer:r,value:t}){return new Z({on:new _({name:"File",namespace:`${r.rootNamespace}\\Utils`}),method:"createFromString",arguments_:[new S(`"${t}"`)]})}function qf({entries:r}){return r.filter(t=>!P.isNop(t.key)&&!P.isNop(t.value))}function Hf({values:r}){return r.filter(t=>!P.isNop(t))}var O=class r extends g{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(Jo),e.write("DateTime");break;case"dateTime":e.addReference(Jo),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(u=>!u.valueType.isOptional()),s=this.internalType.entries.filter(u=>u.valueType.isOptional()),p=[...i,...s];for(let u of p)e.write(" * "),this.writeTypeDictEntry({writer:e,entry:u,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",p=i.type==="union";!p&&!s&&e.write("?"),this.internalType.value.write(e,{comment:o}),p&&!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,p)=>{p>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:Y(this.internalType.value.internalType)}break;default:Y(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 _({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:Y(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=xt(o,dt);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:P.string(e)})}static literalBoolean(e){return new this({type:"literal",value:P.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}),p=this.unwrapOptionalTypes(s),u=p.filter(m=>m.underlyingType().internalType.type==="mixed").length>0;if(u&&!i){e.write("mixed");return}if(p.length>0&&i){e.writeLine("("),p.forEach((m,h)=>{h>0?e.write(" * |"):e.write(" * "),u&&(m=m.underlyingType()),m.write(e,{comment:i}),e.writeLine(),h++}),e.write(" * )");return}p.forEach((m,h)=>{h>0&&e.write("|"),u&&(m=m.underlyingType()),m.write(e,{comment:i}),h++})}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=xt(o,dt),p=new Set;return s.filter(u=>{let m=u.toString({namespace:e.namespace,rootNamespace:e.rootNamespace,customConfig:e.customConfig,comment:i});return p.has(m)?!1:(p.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 p=new D({namespace:e,rootNamespace:o,customConfig:i});return this.write(p,{comment:s!=null?s:!1}),p.toString()}},Jo=new _({namespace:"",name:"DateTime"});n();a();function Qo(r){return r.startsWith("$")?r.slice(1):r}var Mt="values",Te=class extends g{constructor({name:e,namespace:o,abstract:i,docs:s,parentClassReference:p,traits:u,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 Q({name:e,namespace:o,abstract:i,docs:s,parentClassReference:p,traits:u})}addField(e){this.class_.addField(e)}addMethod(e){this.class_.addMethod(e)}addTrait(e){this.class_.addTrait(e)}write(e){let o=le(this.class_.fields).map(i=>Ge(Ye({},i),{name:Qo(i.name)}));this.class_.addConstructor({access:this.constructorAccess,parameters:this.getConstructorParameters({orderedFields:o}),body:R.codeblock(i=>{if(o.length>0)for(let s of o)i.write(`$this->${s.name} = $${Mt}['${s.name}']`),s.type.isOptional()&&i.write(" ?? null"),i.write(";");else i.writeLine(`unset($${Mt});`)})}),this.class_.write(e)}allFieldsAreOptional(){return this.class_.fields.every(e=>e.type.isOptional())}getConstructorParameters({orderedFields:e}){return[new X({name:Mt,type:O.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 ee=class extends g{constructor({name:e,access:o,parameters:i,throws:s,return_:p,body:u,docs:m,classReference:h,static_:d}){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_=p,this.body=u,this.docs=m,this.classReference=h,this.static_=d!=null?d:!1}write(e){var p;this.writeComment(e),e.write(`${this.access}${this.static_?" static":""} function ${this.name}(`);let o=this.parameters.filter(u=>!u.type.isOptional()),i=this.parameters.filter(u=>u.type.isOptional());[...o,...i].forEach((u,m)=>{m>0&&e.write(", "),u.write(e)}),e.write("): "),this.return_!=null?e.writeNodeOrString(this.return_):e.write("void"),e.writeLine(" {"),e.indent(),(p=this.body)==null||p.write(e),e.dedent(),e.writeLine("}")}writeComment(e){let o=new C({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_!==$o&&this.return_!==Wo&&o.addTag({tagType:"return",type:this.return_});for(let i of this.throws)o.addTag({tagType:"throws",type:O.reference(i)});e.writeNode(o)}};var Ae=class extends g{constructor({name:e,namespace:o,backing:i,docs:s,serializable:p}){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=p!=null?p:!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 _({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=Ut(o.value);e.write(` = "${i}"`)}else e.write(` = ${o.value}`);e.writeTextStatement("")}this.serializable&&(e.newLine(),e.writeNode(new ee({name:"jsonSerialize",return_:O.string(),access:"public",parameters:[],body:new S("return $this->value;")}))),e.writeNewLineIfLastLineNot(),e.dedent(),e.writeLine("}")}writeComment(e){if(this.docs==null)return;new C({docs:this.docs}).write(e)}};n();a();var ve=class extends g{constructor({name:e,type:o,access:i,readonly_:s,initializer:p,docs:u,inlineDocs:m,attributes:h,inherited:d}){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=pe(e),this.type=o,this.access=i,this.readonly_=s!=null?s:!1,this.initializer=p,this.docs=u,this.inlineDocs=m,this.attributes=h!=null?h:[],this.inherited=d!=null?d:!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 C;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 be=class extends g{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 _e=class extends g{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:le(this.fields)}),this.fields.length>0&&this.methods.length>0&&e.newLine(),this.writeMethods({writer:e,methods:le(this.methods)}),e.dedent(),e.writeLine("}")}writeComment(e){let o=new C({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 wt=class extends g{constructor(e){super();c(this,"arrays");this.arrays=e}write(e){e.write("array_merge"),Pe({writer:e,arguments_:this.arrays.map(o=>Ee(i=>{if(typeof o=="string"||o instanceof g){i.writeNodeOrString(o);return}i.writeNodeOrString(o.ref),o.fallback&&(i.write(" ?? "),i.writeNodeOrString(o.fallback))}))})}};function Vf(r){return new ge(r)}function Kf(r){return new we(r)}function Jf(r){return new Q(r)}function Qf(r){return new _e(r)}function Xf(r){return new _(r)}function Ee(r){return new S(r)}function Zf(r){return new Te(r)}function ep(r){return new Ae(r)}function tp(r){return new ve(r)}function Xo(r){return new j(r)}function rp(r){return new Z(r)}function op(r){return Ee(t=>{t.write("throw "),t.writeNode(Xo(r))})}function ip(r){return new be(r)}function np(r){return new ee(r)}function ap(r){return new X(r)}function sp(r){return new De(r)}function fp(r,t){return Ee(e=>{e.writeNodeOrString(r),e.write(" = "),e.writeNodeOrString(t)})}function pp(r){return Ee(pe(r))}function lp(r){return Ee(`"${r}"`)}function up(...r){return new wt(r)}function Ut(r){return r.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\$/g,"\\$")}function cp(){return new S(r=>{r.write("$this")})}var Dt=class{constructor({context:t}){c(this,"context");this.context=t}getFilePropertyInfo({body:t,value:e}){var s;let o={fileFields:[],bodyPropertyFields:[]},i=(s=this.context.getRecord(e))!=null?s:{};for(let p of t.properties)switch(p.type){case"file":o.fileFields.push({name:this.context.getPropertyName(p.name),value:this.getSingleFileProperty({property:p,record:i})});break;case"fileArray":o.fileFields.push({name:this.context.getPropertyName(p.name),value:this.getArrayFileProperty({property:p,record:i})});break;case"bodyProperty":o.bodyPropertyFields.push({name:this.context.getPropertyName(p.name.name),value:this.getBodyProperty({property:p,record:i})});break;default:Y(p)}return o}getSingleFileProperty({property:t,record:e}){let o=this.context.getSingleFileValue({property:t,record:e});return o==null?R.TypeLiteral.nop():R.TypeLiteral.file(o)}getArrayFileProperty({property:t,record:e}){let o=this.context.getFileArrayValues({property:t,record:e});return o==null?R.TypeLiteral.nop():R.TypeLiteral.list({values:o.map(i=>R.TypeLiteral.file(i))})}getBodyProperty({property:t,record:e}){let o=e[t.name.wireValue];return o==null?R.TypeLiteral.nop():this.context.dynamicTypeLiteralMapper.convert({typeReference:t.typeReference,value:o})}};0&&(module.exports={FilePropertyMapper});
26
26
  /*! Bundled license information:
27
27
 
28
28
  @esbuild-plugins/node-globals-polyfill/Buffer.js: