@wix/cli-app 1.1.35 → 1.1.36

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 (124) hide show
  1. package/build/{CreateVersionCommand-FGFXCQ6O.js → CreateVersionCommand-GJYJMFS6.js} +2 -2
  2. package/build/CreateVersionCommand-GJYJMFS6.js.map +1 -0
  3. package/build/DevCommand-UJ56EKIV.js +4 -0
  4. package/build/DevCommand-UJ56EKIV.js.map +1 -0
  5. package/build/GenerateCommand-YTAYOWLN.js +99 -0
  6. package/build/GenerateCommand-YTAYOWLN.js.map +1 -0
  7. package/build/LogsCommand-ZWIIAJI6.js +4 -0
  8. package/build/LogsCommand-ZWIIAJI6.js.map +1 -0
  9. package/build/PreviewCommand-7JJAW5Y4.js +4 -0
  10. package/build/{ServeCommand-3XS2PRLZ.js → ServeCommand-ZJMRR4ES.js} +2 -2
  11. package/build/{build-R2V6VPAY.js → build-6EB3DE3E.js} +2 -2
  12. package/build/build-6EB3DE3E.js.map +1 -0
  13. package/build/chunk-3ACKBLKR.js +4 -0
  14. package/build/chunk-3ACKBLKR.js.map +1 -0
  15. package/build/{chunk-QEH4HZND.js → chunk-3EO7KOOF.js} +2 -2
  16. package/build/chunk-3UAIFRQA.js +10 -0
  17. package/build/chunk-3UAIFRQA.js.map +1 -0
  18. package/build/{chunk-RXT5UM7Q.js → chunk-5GXRNUOR.js} +24 -7
  19. package/build/{chunk-RXT5UM7Q.js.map → chunk-5GXRNUOR.js.map} +1 -1
  20. package/build/chunk-5POS3EQI.js +4 -0
  21. package/build/chunk-5POS3EQI.js.map +1 -0
  22. package/build/chunk-6N3YP4CO.js +4 -0
  23. package/build/{chunk-3T3H3UJF.js → chunk-7IFG7QRE.js} +3 -3
  24. package/build/chunk-7IFG7QRE.js.map +1 -0
  25. package/build/{chunk-NNF6JCN7.js → chunk-AXFFV5MU.js} +2 -2
  26. package/build/{chunk-F6WBFD2I.js → chunk-DAPZQSXG.js} +2 -2
  27. package/build/{chunk-F6WBFD2I.js.map → chunk-DAPZQSXG.js.map} +1 -1
  28. package/build/chunk-E7IQZNJ7.js +4 -0
  29. package/build/chunk-E7IQZNJ7.js.map +1 -0
  30. package/build/{chunk-R4ZQYYZR.js → chunk-HNY5L6XA.js} +2 -2
  31. package/build/{chunk-OWEB37KH.js → chunk-I24C7SNY.js} +2 -2
  32. package/build/{chunk-2JOP4YNL.js → chunk-JPGXKQXP.js} +2 -2
  33. package/build/chunk-JPGXKQXP.js.map +1 -0
  34. package/build/{chunk-KRQ3H7GR.js → chunk-KX7T4WP2.js} +2 -2
  35. package/build/{chunk-ZORLYW6M.js → chunk-OMZB4UKG.js} +2 -2
  36. package/build/{chunk-YT6VEJPK.js → chunk-OOIZVKTY.js} +2 -2
  37. package/build/chunk-OOIZVKTY.js.map +1 -0
  38. package/build/{chunk-A3KHJIN7.js → chunk-PQFAL6B4.js} +2 -2
  39. package/build/chunk-SLG2HQYB.js +4 -0
  40. package/build/chunk-SLG2HQYB.js.map +1 -0
  41. package/build/chunk-TSKFLGBO.js +116 -0
  42. package/build/{chunk-5JYQ2Z7Y.js.map → chunk-TSKFLGBO.js.map} +1 -1
  43. package/build/{chunk-CBDNKNAV.js → chunk-ZTMLHHUQ.js} +2 -2
  44. package/build/index.js +2 -2
  45. package/build/platform-sdk/chunk-OSR2I5MY.js +2 -0
  46. package/build/platform-sdk/chunk-OSR2I5MY.js.map +1 -0
  47. package/build/platform-sdk/chunk-SHVQ4QZG.js +2 -0
  48. package/build/platform-sdk/chunk-SHVQ4QZG.js.map +1 -0
  49. package/build/platform-sdk/chunk-TEDR2MDT.js +2 -0
  50. package/build/platform-sdk/dashboard.js +1 -1
  51. package/build/platform-sdk/dashboard.js.map +1 -1
  52. package/build/platform-sdk/editor.js +8 -0
  53. package/build/platform-sdk/editor.js.map +1 -0
  54. package/build/platform-sdk/{esm-IUMNLA6B.js → esm-WXLS5NTC.js} +2 -2
  55. package/build/platform-sdk/esm-WXLS5NTC.js.map +1 -0
  56. package/build/platform-sdk/site.js +2 -0
  57. package/build/platform-sdk/site.js.map +1 -0
  58. package/build/preview-OUDOPVIF.js +4 -0
  59. package/build/{preview-5HAC2VHN.js.map → preview-OUDOPVIF.js.map} +1 -1
  60. package/build/{render-command-OPJNFJRC.js → render-command-URXJKFYN.js} +2 -2
  61. package/internal/component-hmr-wrapper.tsx +0 -1
  62. package/package.json +5 -5
  63. package/schemas/ecom-additional-fees.json +1 -0
  64. package/schemas/ecom-discounts-trigger.json +1 -0
  65. package/schemas/ecom-payment-settings.json +1 -0
  66. package/schemas/ecom-shipping-rates.json +1 -0
  67. package/schemas/ecom-validations.json +1 -0
  68. package/templates/custom-element/files/element.module.css.ejs +22 -0
  69. package/templates/custom-element/files/element.tsx.ejs +5 -7
  70. package/templates/service-plugin/ecom-additional-fees/dependencies.json +5 -0
  71. package/templates/service-plugin/ecom-additional-fees/files/plugin.json.ejs +4 -0
  72. package/templates/service-plugin/ecom-additional-fees/files/plugin.ts.ejs +12 -0
  73. package/templates/service-plugin/ecom-discounts-trigger/dependencies.json +5 -0
  74. package/templates/service-plugin/ecom-discounts-trigger/files/plugin.json.ejs +4 -0
  75. package/templates/service-plugin/ecom-discounts-trigger/files/plugin.ts.ejs +17 -0
  76. package/templates/service-plugin/ecom-payment-settings/dependencies.json +5 -0
  77. package/templates/service-plugin/ecom-payment-settings/files/plugin.json.ejs +4 -0
  78. package/templates/service-plugin/ecom-payment-settings/files/plugin.ts.ejs +12 -0
  79. package/templates/service-plugin/ecom-shipping-rates/dependencies.json +5 -0
  80. package/templates/service-plugin/ecom-shipping-rates/files/plugin.json.ejs +4 -0
  81. package/templates/service-plugin/ecom-shipping-rates/files/plugin.ts.ejs +12 -0
  82. package/templates/service-plugin/ecom-validations/dependencies.json +5 -0
  83. package/templates/service-plugin/ecom-validations/files/plugin.json.ejs +4 -0
  84. package/templates/service-plugin/ecom-validations/files/plugin.ts.ejs +12 -0
  85. package/build/CreateVersionCommand-FGFXCQ6O.js.map +0 -1
  86. package/build/DevCommand-5DVDWGBY.js +0 -4
  87. package/build/DevCommand-5DVDWGBY.js.map +0 -1
  88. package/build/GenerateCommand-5MXGDU5D.js +0 -99
  89. package/build/GenerateCommand-5MXGDU5D.js.map +0 -1
  90. package/build/LogsCommand-GT4C6W63.js +0 -4
  91. package/build/LogsCommand-GT4C6W63.js.map +0 -1
  92. package/build/PreviewCommand-TYTUHLCK.js +0 -4
  93. package/build/build-R2V6VPAY.js.map +0 -1
  94. package/build/chunk-2JOP4YNL.js.map +0 -1
  95. package/build/chunk-3T3H3UJF.js.map +0 -1
  96. package/build/chunk-5JYQ2Z7Y.js +0 -116
  97. package/build/chunk-5YLHD2SK.js +0 -4
  98. package/build/chunk-A7TURNR5.js +0 -4
  99. package/build/chunk-A7TURNR5.js.map +0 -1
  100. package/build/chunk-J2KSZ5LE.js +0 -4
  101. package/build/chunk-J2KSZ5LE.js.map +0 -1
  102. package/build/chunk-MI2F3EIB.js +0 -4
  103. package/build/chunk-MI2F3EIB.js.map +0 -1
  104. package/build/chunk-PWHZSGUV.js +0 -10
  105. package/build/chunk-PWHZSGUV.js.map +0 -1
  106. package/build/chunk-VRNTLFVH.js +0 -4
  107. package/build/chunk-VRNTLFVH.js.map +0 -1
  108. package/build/chunk-YT6VEJPK.js.map +0 -1
  109. package/build/platform-sdk/chunk-RFBBAUMM.js +0 -2
  110. package/build/platform-sdk/esm-IUMNLA6B.js.map +0 -1
  111. package/build/preview-5HAC2VHN.js +0 -4
  112. /package/build/{PreviewCommand-TYTUHLCK.js.map → PreviewCommand-7JJAW5Y4.js.map} +0 -0
  113. /package/build/{ServeCommand-3XS2PRLZ.js.map → ServeCommand-ZJMRR4ES.js.map} +0 -0
  114. /package/build/{chunk-QEH4HZND.js.map → chunk-3EO7KOOF.js.map} +0 -0
  115. /package/build/{chunk-5YLHD2SK.js.map → chunk-6N3YP4CO.js.map} +0 -0
  116. /package/build/{chunk-NNF6JCN7.js.map → chunk-AXFFV5MU.js.map} +0 -0
  117. /package/build/{chunk-R4ZQYYZR.js.map → chunk-HNY5L6XA.js.map} +0 -0
  118. /package/build/{chunk-OWEB37KH.js.map → chunk-I24C7SNY.js.map} +0 -0
  119. /package/build/{chunk-KRQ3H7GR.js.map → chunk-KX7T4WP2.js.map} +0 -0
  120. /package/build/{chunk-ZORLYW6M.js.map → chunk-OMZB4UKG.js.map} +0 -0
  121. /package/build/{chunk-A3KHJIN7.js.map → chunk-PQFAL6B4.js.map} +0 -0
  122. /package/build/{chunk-CBDNKNAV.js.map → chunk-ZTMLHHUQ.js.map} +0 -0
  123. /package/build/platform-sdk/{chunk-RFBBAUMM.js.map → chunk-TEDR2MDT.js.map} +0 -0
  124. /package/build/{render-command-OPJNFJRC.js.map → render-command-URXJKFYN.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { createRequire as _createRequire } from 'node:module';
2
2
  const require = _createRequire(import.meta.url);
3
- import{$a as Ai,Va as oo,Wa as uo,Xa as lo,Za as cn,aa as io,ab as Ci,bb as fn,cb as co,da as ao,db as fo,ea as no,h as eo,i as to,q as ro,ra as so,ua as yi,va as ln,wa as mi}from"./chunk-5JYQ2Z7Y.js";import{b as Zs,d as Gr,e as jr}from"./chunk-2JOP4YNL.js";import{a as Le,c as F,e as ra,h as S}from"./chunk-V4TR6DCM.js";var Et=F(mn=>{"use strict";S();mn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((i,r)=>{e.call(this,...t,(a,n)=>a!=null?r(a):i(n))})},"name",{value:e.name})};mn.fromPromise=function(e){return Object.defineProperty(function(...t){let i=t[t.length-1];if(typeof i!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>i(null,r),i)},"name",{value:e.name})}});var Ao=F((_A,mo)=>{"use strict";S();var hr=Le("constants"),yh=process.cwd,na=null,mh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=yh.call(process)),na};try{process.cwd()}catch{}typeof process.chdir=="function"&&(An=process.chdir,process.chdir=function(e){na=null,An.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,An));var An;mo.exports=Ah;function Ah(e){hr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||i(e),e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,f,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),mh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(c){function f(p,m,v){var C=Date.now(),E=0;c(p,m,function B(w){if(w&&(w.code==="EACCES"||w.code==="EPERM"||w.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){e.stat(m,function(T,U){T&&T.code==="ENOENT"?c(p,m,B):v(w)})},E),E<100&&(E+=10);return}v&&v(w)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(c){function f(p,m,v,C,E,B){var w;if(B&&typeof B=="function"){var T=0;w=function(U,P,Q){if(U&&U.code==="EAGAIN"&&T<10)return T++,c.call(e,p,m,v,C,E,w);B.apply(this,arguments)}}return c.call(e,p,m,v,C,E,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(c){return function(f,p,m,v,C){for(var E=0;;)try{return c.call(e,f,p,m,v,C)}catch(B){if(B.code==="EAGAIN"&&E<10){E++;continue}throw B}}}(e.readSync);function t(c){c.lchmod=function(f,p,m){c.open(f,hr.O_WRONLY|hr.O_SYMLINK,p,function(v,C){if(v){m&&m(v);return}c.fchmod(C,p,function(E){c.close(C,function(B){m&&m(E||B)})})})},c.lchmodSync=function(f,p){var m=c.openSync(f,hr.O_WRONLY|hr.O_SYMLINK,p),v=!0,C;try{C=c.fchmodSync(m,p),v=!1}finally{if(v)try{c.closeSync(m)}catch{}else c.closeSync(m)}return C}}function i(c){hr.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,p,m,v){c.open(f,hr.O_SYMLINK,function(C,E){if(C){v&&v(C);return}c.futimes(E,p,m,function(B){c.close(E,function(w){v&&v(B||w)})})})},c.lutimesSync=function(f,p,m){var v=c.openSync(f,hr.O_SYMLINK),C,E=!0;try{C=c.futimesSync(v,p,m),E=!1}finally{if(E)try{c.closeSync(v)}catch{}else c.closeSync(v)}return C}):c.futimes&&(c.lutimes=function(f,p,m,v){v&&process.nextTick(v)},c.lutimesSync=function(){})}function r(c){return c&&function(f,p,m){return c.call(e,f,p,function(v){l(v)&&(v=null),m&&m.apply(this,arguments)})}}function a(c){return c&&function(f,p){try{return c.call(e,f,p)}catch(m){if(!l(m))throw m}}}function n(c){return c&&function(f,p,m,v){return c.call(e,f,p,m,function(C){l(C)&&(C=null),v&&v.apply(this,arguments)})}}function s(c){return c&&function(f,p,m){try{return c.call(e,f,p,m)}catch(v){if(!l(v))throw v}}}function o(c){return c&&function(f,p,m){typeof p=="function"&&(m=p,p=null);function v(C,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),m&&m.apply(this,arguments)}return p?c.call(e,f,p,v):c.call(e,f,v)}}function u(c){return c&&function(f,p){var m=p?c.call(e,f,p):c.call(e,f);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var xo=F((kA,Eo)=>{"use strict";S();var Co=Le("stream").Stream;Eo.exports=Ch;function Ch(e){return{ReadStream:t,WriteStream:i};function t(r,a){if(!(this instanceof t))return new t(r,a);Co.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var s=Object.keys(a),o=0,u=s.length;o<u;o++){var l=s[o];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){n.emit("error",c),n.readable=!1;return}n.fd=f,n.emit("open",f),n._read()})}function i(r,a){if(!(this instanceof i))return new i(r,a);Co.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var n=Object.keys(a),s=0,o=n.length;s<o;s++){var u=n[s];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Io=F((RA,So)=>{"use strict";S();So.exports=xh;var Eh=Object.getPrototypeOf||function(e){return e.__proto__};function xh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Eh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}),t}});var dt=F((PA,xn)=>{"use strict";S();var Qe=Le("fs"),Sh=Ao(),Ih=xo(),Bh=Io(),sa=Le("util"),Je,ua;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Je=Symbol.for("graceful-fs.queue"),ua=Symbol.for("graceful-fs.previous")):(Je="___graceful-fs.queue",ua="___graceful-fs.previous");function bh(){}function To(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=bh;sa.debuglog?Rr=sa.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Rr=function(){var e=sa.format.apply(sa,arguments);e="GFS4: "+e.split(/\n/).join(`
3
+ import{$a as lo,Za as oo,_a as uo,bb as cn,ca as io,db as Ai,eb as Ci,fb as fn,ga as ao,gb as co,h as eo,ha as no,hb as fo,i as to,q as ro,ua as so,xa as yi,ya as ln,za as mi}from"./chunk-TSKFLGBO.js";import{b as Zs,d as Gr,e as jr}from"./chunk-JPGXKQXP.js";import{a as Le,c as F,e as ra,h as S}from"./chunk-V4TR6DCM.js";var Et=F(mn=>{"use strict";S();mn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((i,r)=>{e.call(this,...t,(a,n)=>a!=null?r(a):i(n))})},"name",{value:e.name})};mn.fromPromise=function(e){return Object.defineProperty(function(...t){let i=t[t.length-1];if(typeof i!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>i(null,r),i)},"name",{value:e.name})}});var Ao=F((_A,mo)=>{"use strict";S();var hr=Le("constants"),yh=process.cwd,na=null,mh=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return na||(na=yh.call(process)),na};try{process.cwd()}catch{}typeof process.chdir=="function"&&(An=process.chdir,process.chdir=function(e){na=null,An.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,An));var An;mo.exports=Ah;function Ah(e){hr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||i(e),e.chown=n(e.chown),e.fchown=n(e.fchown),e.lchown=n(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=a(e.chmodSync),e.fchmodSync=a(e.fchmodSync),e.lchmodSync=a(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=u(e.statSync),e.fstatSync=u(e.fstatSync),e.lstatSync=u(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(c,f,p){p&&process.nextTick(p)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(c,f,p,m){m&&process.nextTick(m)},e.lchownSync=function(){}),mh==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(c){function f(p,m,v){var C=Date.now(),E=0;c(p,m,function B(w){if(w&&(w.code==="EACCES"||w.code==="EPERM"||w.code==="EBUSY")&&Date.now()-C<6e4){setTimeout(function(){e.stat(m,function(T,U){T&&T.code==="ENOENT"?c(p,m,B):v(w)})},E),E<100&&(E+=10);return}v&&v(w)})}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.rename)),e.read=typeof e.read!="function"?e.read:function(c){function f(p,m,v,C,E,B){var w;if(B&&typeof B=="function"){var T=0;w=function(U,P,Q){if(U&&U.code==="EAGAIN"&&T<10)return T++,c.call(e,p,m,v,C,E,w);B.apply(this,arguments)}}return c.call(e,p,m,v,C,E,w)}return Object.setPrototypeOf&&Object.setPrototypeOf(f,c),f}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(c){return function(f,p,m,v,C){for(var E=0;;)try{return c.call(e,f,p,m,v,C)}catch(B){if(B.code==="EAGAIN"&&E<10){E++;continue}throw B}}}(e.readSync);function t(c){c.lchmod=function(f,p,m){c.open(f,hr.O_WRONLY|hr.O_SYMLINK,p,function(v,C){if(v){m&&m(v);return}c.fchmod(C,p,function(E){c.close(C,function(B){m&&m(E||B)})})})},c.lchmodSync=function(f,p){var m=c.openSync(f,hr.O_WRONLY|hr.O_SYMLINK,p),v=!0,C;try{C=c.fchmodSync(m,p),v=!1}finally{if(v)try{c.closeSync(m)}catch{}else c.closeSync(m)}return C}}function i(c){hr.hasOwnProperty("O_SYMLINK")&&c.futimes?(c.lutimes=function(f,p,m,v){c.open(f,hr.O_SYMLINK,function(C,E){if(C){v&&v(C);return}c.futimes(E,p,m,function(B){c.close(E,function(w){v&&v(B||w)})})})},c.lutimesSync=function(f,p,m){var v=c.openSync(f,hr.O_SYMLINK),C,E=!0;try{C=c.futimesSync(v,p,m),E=!1}finally{if(E)try{c.closeSync(v)}catch{}else c.closeSync(v)}return C}):c.futimes&&(c.lutimes=function(f,p,m,v){v&&process.nextTick(v)},c.lutimesSync=function(){})}function r(c){return c&&function(f,p,m){return c.call(e,f,p,function(v){l(v)&&(v=null),m&&m.apply(this,arguments)})}}function a(c){return c&&function(f,p){try{return c.call(e,f,p)}catch(m){if(!l(m))throw m}}}function n(c){return c&&function(f,p,m,v){return c.call(e,f,p,m,function(C){l(C)&&(C=null),v&&v.apply(this,arguments)})}}function s(c){return c&&function(f,p,m){try{return c.call(e,f,p,m)}catch(v){if(!l(v))throw v}}}function o(c){return c&&function(f,p,m){typeof p=="function"&&(m=p,p=null);function v(C,E){E&&(E.uid<0&&(E.uid+=4294967296),E.gid<0&&(E.gid+=4294967296)),m&&m.apply(this,arguments)}return p?c.call(e,f,p,v):c.call(e,f,v)}}function u(c){return c&&function(f,p){var m=p?c.call(e,f,p):c.call(e,f);return m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),m}}function l(c){if(!c||c.code==="ENOSYS")return!0;var f=!process.getuid||process.getuid()!==0;return!!(f&&(c.code==="EINVAL"||c.code==="EPERM"))}}});var xo=F((kA,Eo)=>{"use strict";S();var Co=Le("stream").Stream;Eo.exports=Ch;function Ch(e){return{ReadStream:t,WriteStream:i};function t(r,a){if(!(this instanceof t))return new t(r,a);Co.call(this);var n=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,a=a||{};for(var s=Object.keys(a),o=0,u=s.length;o<u;o++){var l=s[o];this[l]=a[l]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){n._read()});return}e.open(this.path,this.flags,this.mode,function(c,f){if(c){n.emit("error",c),n.readable=!1;return}n.fd=f,n.emit("open",f),n._read()})}function i(r,a){if(!(this instanceof i))return new i(r,a);Co.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,a=a||{};for(var n=Object.keys(a),s=0,o=n.length;s<o;s++){var u=n[s];this[u]=a[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Io=F((RA,So)=>{"use strict";S();So.exports=xh;var Eh=Object.getPrototypeOf||function(e){return e.__proto__};function xh(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Eh(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(e,i))}),t}});var dt=F((PA,xn)=>{"use strict";S();var Qe=Le("fs"),Sh=Ao(),Ih=xo(),Bh=Io(),sa=Le("util"),Je,ua;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Je=Symbol.for("graceful-fs.queue"),ua=Symbol.for("graceful-fs.previous")):(Je="___graceful-fs.queue",ua="___graceful-fs.previous");function bh(){}function To(e,t){Object.defineProperty(e,Je,{get:function(){return t}})}var Rr=bh;sa.debuglog?Rr=sa.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Rr=function(){var e=sa.format.apply(sa,arguments);e="GFS4: "+e.split(/\n/).join(`
4
4
  GFS4: `),console.error(e)});Qe[Je]||(Bo=global[Je]||[],To(Qe,Bo),Qe.close=function(e){function t(i,r){return e.call(Qe,i,function(a){a||bo(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,ua,{value:e}),t}(Qe.close),Qe.closeSync=function(e){function t(i){e.apply(Qe,arguments),bo()}return Object.defineProperty(t,ua,{value:e}),t}(Qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Rr(Qe[Je]),Le("assert").equal(Qe[Je].length,0)}));var Bo;global[Je]||To(global,Qe[Je]);xn.exports=Cn(Bh(Qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Qe.__patched&&(xn.exports=Cn(Qe),Qe.__patched=!0);function Cn(e){Sh(e),e.gracefulify=Cn,e.createReadStream=P,e.createWriteStream=Q;var t=e.readFile;e.readFile=i;function i(H,z,Y){return typeof z=="function"&&(Y=z,z=null),re(H,z,Y);function re(ye,Ee,$,ie){return t(ye,Ee,function(V){V&&(V.code==="EMFILE"||V.code==="ENFILE")?zr([re,[ye,Ee,$],V,ie||Date.now(),Date.now()]):typeof $=="function"&&$.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=a;function a(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return r(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var n=e.appendFile;n&&(e.appendFile=s);function s(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return n(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var o=e.copyFile;o&&(e.copyFile=u);function u(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=0),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return o(Ee,$,ie,function(xe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}var l=e.readdir;e.readdir=f;var c=/^v[0-5]\./;function f(H,z,Y){typeof z=="function"&&(Y=z,z=null);var re=c.test(process.version)?function($,ie,V,_e){return l($,ye($,ie,V,_e))}:function($,ie,V,_e){return l($,ie,ye($,ie,V,_e))};return re(H,z,Y);function ye(Ee,$,ie,V){return function(_e,xe){_e&&(_e.code==="EMFILE"||_e.code==="ENFILE")?zr([re,[Ee,$,ie],_e,V||Date.now(),Date.now()]):(xe&&xe.sort&&xe.sort(),typeof ie=="function"&&ie.call(this,_e,xe))}}}if(process.version.substr(0,4)==="v0.8"){var p=Ih(e);B=p.ReadStream,T=p.WriteStream}var m=e.ReadStream;m&&(B.prototype=Object.create(m.prototype),B.prototype.open=w);var v=e.WriteStream;v&&(T.prototype=Object.create(v.prototype),T.prototype.open=U),Object.defineProperty(e,"ReadStream",{get:function(){return B},set:function(H){B=H},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return T},set:function(H){T=H},enumerable:!0,configurable:!0});var C=B;Object.defineProperty(e,"FileReadStream",{get:function(){return C},set:function(H){C=H},enumerable:!0,configurable:!0});var E=T;Object.defineProperty(e,"FileWriteStream",{get:function(){return E},set:function(H){E=H},enumerable:!0,configurable:!0});function B(H,z){return this instanceof B?(m.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function w(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.autoClose&&H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y),H.read())})}function T(H,z){return this instanceof T?(v.apply(this,arguments),this):T.apply(Object.create(T.prototype),arguments)}function U(){var H=this;ne(H.path,H.flags,H.mode,function(z,Y){z?(H.destroy(),H.emit("error",z)):(H.fd=Y,H.emit("open",Y))})}function P(H,z){return new e.ReadStream(H,z)}function Q(H,z){return new e.WriteStream(H,z)}var te=e.open;e.open=ne;function ne(H,z,Y,re){return typeof Y=="function"&&(re=Y,Y=null),ye(H,z,Y,re);function ye(Ee,$,ie,V,_e){return te(Ee,$,ie,function(xe,Oe){xe&&(xe.code==="EMFILE"||xe.code==="ENFILE")?zr([ye,[Ee,$,ie,V],xe,_e||Date.now(),Date.now()]):typeof V=="function"&&V.apply(this,arguments)})}}return e}function zr(e){Rr("ENQUEUE",e[0].name,e[1]),Qe[Je].push(e),En()}var oa;function bo(){for(var e=Date.now(),t=0;t<Qe[Je].length;++t)Qe[Je][t].length>2&&(Qe[Je][t][3]=e,Qe[Je][t][4]=e);En()}function En(){if(clearTimeout(oa),oa=void 0,Qe[Je].length!==0){var e=Qe[Je].shift(),t=e[0],i=e[1],r=e[2],a=e[3],n=e[4];if(a===void 0)Rr("RETRY",t.name,i),t.apply(null,i);else if(Date.now()-a>=6e4){Rr("TIMEOUT",t.name,i);var s=i.pop();typeof s=="function"&&s.call(null,r)}else{var o=Date.now()-n,u=Math.max(n-a,1),l=Math.min(u*1.2,100);o>=l?(Rr("RETRY",t.name,i),t.apply(null,i.concat([a]))):Qe[Je].push(e)}oa===void 0&&(oa=setTimeout(En,0))}}});var Dr=F(pr=>{"use strict";S();var wo=Et().fromCallback,xt=dt(),Th=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof xt[e]=="function");Object.assign(pr,xt);Th.forEach(e=>{pr[e]=wo(xt[e])});pr.exists=function(e,t){return typeof t=="function"?xt.exists(e,t):new Promise(i=>xt.exists(e,i))};pr.read=function(e,t,i,r,a,n){return typeof n=="function"?xt.read(e,t,i,r,a,n):new Promise((s,o)=>{xt.read(e,t,i,r,a,(u,l,c)=>{if(u)return o(u);s({bytesRead:l,buffer:c})})})};pr.write=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.write(e,t,...i):new Promise((r,a)=>{xt.write(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffer:o})})})};typeof xt.writev=="function"&&(pr.writev=function(e,t,...i){return typeof i[i.length-1]=="function"?xt.writev(e,t,...i):new Promise((r,a)=>{xt.writev(e,t,...i,(n,s,o)=>{if(n)return a(n);r({bytesWritten:s,buffers:o})})})});typeof xt.realpath.native=="function"?pr.realpath.native=wo(xt.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")});var No=F((VA,_o)=>{"use strict";S();var wh=Le("path");_o.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(wh.parse(t).root,""))){let r=new Error(`Path contains invalid characters: ${t}`);throw r.code="EINVAL",r}}});var Do=F((MA,Sn)=>{"use strict";S();var ko=Dr(),{checkPath:Lo}=No(),Ro=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Sn.exports.makeDir=async(e,t)=>(Lo(e),ko.mkdir(e,{mode:Ro(t),recursive:!0}));Sn.exports.makeDirSync=(e,t)=>(Lo(e),ko.mkdirSync(e,{mode:Ro(t),recursive:!0}))});var Mt=F((KA,Po)=>{"use strict";S();var _h=Et().fromPromise,{makeDir:Nh,makeDirSync:In}=Do(),Bn=_h(Nh);Po.exports={mkdirs:Bn,mkdirsSync:In,mkdirp:Bn,mkdirpSync:In,ensureDir:Bn,ensureDirSync:In}});var dr=F((GA,Uo)=>{"use strict";S();var kh=Et().fromPromise,Qo=Dr();function Lh(e){return Qo.access(e).then(()=>!0).catch(()=>!1)}Uo.exports={pathExists:kh(Lh),pathExistsSync:Qo.existsSync}});var bn=F((YA,Oo)=>{"use strict";S();var Jr=dt();function Rh(e,t,i,r){Jr.open(e,"r+",(a,n)=>{if(a)return r(a);Jr.futimes(n,t,i,s=>{Jr.close(n,o=>{r&&r(s||o)})})})}function Dh(e,t,i){let r=Jr.openSync(e,"r+");return Jr.futimesSync(r,t,i),Jr.closeSync(r)}Oo.exports={utimesMillis:Rh,utimesMillisSync:Dh}});var Pr=F((JA,Mo)=>{"use strict";S();var Wr=Dr(),Ke=Le("path"),Ph=Le("util");function Qh(e,t,i){let r=i.dereference?a=>Wr.stat(a,{bigint:!0}):a=>Wr.lstat(a,{bigint:!0});return Promise.all([r(e),r(t).catch(a=>{if(a.code==="ENOENT")return null;throw a})]).then(([a,n])=>({srcStat:a,destStat:n}))}function Uh(e,t,i){let r,a=i.dereference?s=>Wr.statSync(s,{bigint:!0}):s=>Wr.lstatSync(s,{bigint:!0}),n=a(e);try{r=a(t)}catch(s){if(s.code==="ENOENT")return{srcStat:n,destStat:null};throw s}return{srcStat:n,destStat:r}}function Oh(e,t,i,r,a){Ph.callbackify(Qh)(e,t,r,(n,s)=>{if(n)return a(n);let{srcStat:o,destStat:u}=s;if(u){if(Bi(o,u)){let l=Ke.basename(e),c=Ke.basename(t);return i==="move"&&l!==c&&l.toLowerCase()===c.toLowerCase()?a(null,{srcStat:o,destStat:u,isChangingCase:!0}):a(new Error("Source and destination must not be the same."))}if(o.isDirectory()&&!u.isDirectory())return a(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!o.isDirectory()&&u.isDirectory())return a(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return o.isDirectory()&&Tn(e,t)?a(new Error(la(e,t,i))):a(null,{srcStat:o,destStat:u})})}function Vh(e,t,i,r){let{srcStat:a,destStat:n}=Uh(e,t,r);if(n){if(Bi(a,n)){let s=Ke.basename(e),o=Ke.basename(t);if(i==="move"&&s!==o&&s.toLowerCase()===o.toLowerCase())return{srcStat:a,destStat:n,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(a.isDirectory()&&!n.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!a.isDirectory()&&n.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(a.isDirectory()&&Tn(e,t))throw new Error(la(e,t,i));return{srcStat:a,destStat:n}}function Vo(e,t,i,r,a){let n=Ke.resolve(Ke.dirname(e)),s=Ke.resolve(Ke.dirname(i));if(s===n||s===Ke.parse(s).root)return a();Wr.stat(s,{bigint:!0},(o,u)=>o?o.code==="ENOENT"?a():a(o):Bi(t,u)?a(new Error(la(e,i,r))):Vo(e,t,s,r,a))}function Fo(e,t,i,r){let a=Ke.resolve(Ke.dirname(e)),n=Ke.resolve(Ke.dirname(i));if(n===a||n===Ke.parse(n).root)return;let s;try{s=Wr.statSync(n,{bigint:!0})}catch(o){if(o.code==="ENOENT")return;throw o}if(Bi(t,s))throw new Error(la(e,i,r));return Fo(e,t,n,r)}function Bi(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Tn(e,t){let i=Ke.resolve(e).split(Ke.sep).filter(a=>a),r=Ke.resolve(t).split(Ke.sep).filter(a=>a);return i.reduce((a,n,s)=>a&&r[s]===n,!0)}function la(e,t,i){return`Cannot ${i} '${e}' to a subdirectory of itself, '${t}'.`}Mo.exports={checkPaths:Oh,checkPathsSync:Vh,checkParentPaths:Vo,checkParentPathsSync:Fo,isSrcSubdir:Tn,areIdentical:Bi}});var Jo=F((XA,zo)=>{"use strict";S();var St=dt(),bi=Le("path"),Fh=Mt().mkdirs,Mh=dr().pathExists,qh=bn().utimesMillis,Ti=Pr();function Kh(e,t,i,r){typeof i=="function"&&!r?(r=i,i={}):typeof i=="function"&&(i={filter:i}),r=r||function(){},i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
5
5
 
6
6
  see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),Ti.checkPaths(e,t,"copy",i,(a,n)=>{if(a)return r(a);let{srcStat:s,destStat:o}=n;Ti.checkParentPaths(e,s,t,"copy",u=>u?r(u):i.filter?Ho(qo,o,e,t,i,r):qo(o,e,t,i,r))})}function qo(e,t,i,r,a){let n=bi.dirname(i);Mh(n,(s,o)=>{if(s)return a(s);if(o)return ca(e,t,i,r,a);Fh(n,u=>u?a(u):ca(e,t,i,r,a))})}function Ho(e,t,i,r,a,n){Promise.resolve(a.filter(i,r)).then(s=>s?e(t,i,r,a,n):n(),s=>n(s))}function Hh(e,t,i,r,a){return r.filter?Ho(ca,e,t,i,r,a):ca(e,t,i,r,a)}function ca(e,t,i,r,a){(r.dereference?St.stat:St.lstat)(t,(s,o)=>s?a(s):o.isDirectory()?Xh(o,e,t,i,r,a):o.isFile()||o.isCharacterDevice()||o.isBlockDevice()?Gh(o,e,t,i,r,a):o.isSymbolicLink()?ep(e,t,i,r,a):o.isSocket()?a(new Error(`Cannot copy a socket file: ${t}`)):o.isFIFO()?a(new Error(`Cannot copy a FIFO pipe: ${t}`)):a(new Error(`Unknown file: ${t}`)))}function Gh(e,t,i,r,a,n){return t?jh(e,i,r,a,n):Go(e,i,r,a,n)}function jh(e,t,i,r,a){if(r.overwrite)St.unlink(i,n=>n?a(n):Go(e,t,i,r,a));else return r.errorOnExist?a(new Error(`'${i}' already exists`)):a()}function Go(e,t,i,r,a){St.copyFile(t,i,n=>n?a(n):r.preserveTimestamps?Yh(e.mode,t,i,a):fa(i,e.mode,a))}function Yh(e,t,i,r){return zh(e)?Jh(i,e,a=>a?r(a):Ko(e,t,i,r)):Ko(e,t,i,r)}function zh(e){return(e&128)===0}function Jh(e,t,i){return fa(e,t|128,i)}function Ko(e,t,i,r){Wh(t,i,a=>a?r(a):fa(i,e,r))}function fa(e,t,i){return St.chmod(e,t,i)}function Wh(e,t,i){St.stat(e,(r,a)=>r?i(r):qh(t,a.atime,a.mtime,i))}function Xh(e,t,i,r,a,n){return t?jo(i,r,a,n):$h(e.mode,i,r,a,n)}function $h(e,t,i,r,a){St.mkdir(i,n=>{if(n)return a(n);jo(t,i,r,s=>s?a(s):fa(i,e,a))})}function jo(e,t,i,r){St.readdir(e,(a,n)=>a?r(a):Yo(n,e,t,i,r))}function Yo(e,t,i,r,a){let n=e.pop();return n?Zh(e,n,t,i,r,a):a()}function Zh(e,t,i,r,a,n){let s=bi.join(i,t),o=bi.join(r,t);Ti.checkPaths(s,o,"copy",a,(u,l)=>{if(u)return n(u);let{destStat:c}=l;Hh(c,s,o,a,f=>f?n(f):Yo(e,i,r,a,n))})}function ep(e,t,i,r,a){St.readlink(t,(n,s)=>{if(n)return a(n);if(r.dereference&&(s=bi.resolve(process.cwd(),s)),e)St.readlink(i,(o,u)=>o?o.code==="EINVAL"||o.code==="UNKNOWN"?St.symlink(s,i,a):a(o):(r.dereference&&(u=bi.resolve(process.cwd(),u)),Ti.isSrcSubdir(s,u)?a(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${u}'.`)):e.isDirectory()&&Ti.isSrcSubdir(u,s)?a(new Error(`Cannot overwrite '${u}' with '${s}'.`)):tp(s,i,a)));else return St.symlink(s,i,a)})}function tp(e,t,i){St.unlink(t,r=>r?i(r):St.symlink(e,t,i))}zo.exports=Kh});var eu=F((ZA,Zo)=>{"use strict";S();var pt=dt(),wi=Le("path"),rp=Mt().mkdirsSync,ip=bn().utimesMillisSync,_i=Pr();function ap(e,t,i){typeof i=="function"&&(i={filter:i}),i=i||{},i.clobber="clobber"in i?!!i.clobber:!0,i.overwrite="overwrite"in i?!!i.overwrite:i.clobber,i.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
@@ -94,7 +94,7 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
94
94
  }
95
95
 
96
96
  export default OriginalCustomElement;
97
- `}}}}S();import{send as Bc}from"vite";S();function _a(e){let t=e.resolvedUrls?.local?.[0];if(!t)throw new Error("Vite server listening but no URL.");return t}function wc(e){let{initialModel:t,type:i,projectModelWatcher:r}=e,a=yi(t),n=Ai(t);return i==="dev"&&r.onChange(s=>{a=yi(s),n=Ai(s)}),{name:"inline-html",resolveId(s){return a.has(s)||n.has(s)?s:null},load(s){let o=a.get(s),u=n.get(s);if(!o&&!u)return null;if(o){let l=ln(o.id);return bc(o.id,l,t.config.appId,e.type)}if(u){let l=cn(u.id);return Tc(l,e.type)}},async configureServer(s){s.middlewares.use(async(o,u,l)=>{if(!o.url)return l();let c=_a(s),f;try{f=new URL(o.url,c)}catch(C){throw new Gr({code:jr.TypeErrorInvalidUrl(),info:{url:o.url,resolvedUrl:c},cause:C})}let p=f.pathname.replace(/^\/+/,""),m=a.get(p),v=n.get(p);if(!m&&!v)return l();if(m){let C=ln(m.id),E=await s.transformIndexHtml(o.url,bc(m.id,C,t.config.appId,e.type),o.originalUrl);return Bc(o,u,E,"html",{headers:s.config.server.headers})}if(v){let C=cn(v.id),E=await s.transformIndexHtml(o.url,Tc(C,e.type),o.originalUrl);return Bc(o,u,E,"html",{headers:s.config.server.headers})}})}}}var _c=e=>e==="dev"?`
97
+ `}}}}S();import{send as Bc}from"vite";S();function _a(e){let t=e.resolvedUrls?.local[0];if(!t)throw new Error("Vite server listening but no URL.");return t}function wc(e){let{initialModel:t,type:i,projectModelWatcher:r}=e,a=yi(t),n=Ai(t);return i==="dev"&&r.onChange(s=>{a=yi(s),n=Ai(s)}),{name:"inline-html",resolveId(s){return a.has(s)||n.has(s)?s:null},load(s){let o=a.get(s),u=n.get(s);if(!o&&!u)return null;if(o){let l=ln(o.id);return bc(o.id,l,t.config.appId,e.type)}if(u){let l=cn(u.id);return Tc(l,e.type)}},async configureServer(s){s.middlewares.use(async(o,u,l)=>{if(!o.url)return l();let c=_a(s),f;try{f=new URL(o.url,c)}catch(C){throw new Gr({code:jr.TypeErrorInvalidUrl(),info:{url:o.url,resolvedUrl:c},cause:C})}let p=f.pathname.replace(/^\/+/,""),m=a.get(p),v=n.get(p);if(!m&&!v)return l();if(m){let C=ln(m.id),E=await s.transformIndexHtml(o.url,bc(m.id,C,t.config.appId,e.type),o.originalUrl);return Bc(o,u,E,"html",{headers:s.config.server.headers})}if(v){let C=cn(v.id),E=await s.transformIndexHtml(o.url,Tc(C,e.type),o.originalUrl);return Bc(o,u,E,"html",{headers:s.config.server.headers})}})}}}var _c=e=>e==="dev"?`
98
98
  <script crossorigin src="https://unpkg.com/react@16.14.0/umd/react.development.js"></script>
99
99
  <script crossorigin src="https://unpkg.com/react-dom@16.14.0/umd/react-dom.development.js"></script>
100
100
  `:`
@@ -140,15 +140,32 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
140
140
  </script>
141
141
  </body>
142
142
  </html>`}S();var Lc=ra(Zs(),1);var Nc=(e,t)=>`/${e}${t==="dev"?"?component-hmr":""}`,dg=(e,t,i)=>`${e?e.local[0]:"/"}${t}${i==="dev"?"?custom-element-hmr":""}`,gg=/[?#].*$/s,kc=e=>e.replace(gg,""),Rc=({initialModel:e,type:t,projectModelWatcher:i})=>{let{appId:r}=e.config,a=mi(e),n=Ci(e),s=fn(e),o;return{name:"wix:moduleBundle",resolveId(u){let l=kc(u);return a.has(l)||n.has(l)||s.has(l)?l:null},configureServer(u){o=u,t==="dev"&&i.onChange(l=>{a=mi(l);for(let c of a.keys()){let f=u.moduleGraph.getModuleById(c);f&&u.moduleGraph.invalidateModule(f)}n=Ci(l);for(let c of n.keys()){let f=u.moduleGraph.getModuleById(c);f&&u.moduleGraph.invalidateModule(f)}s=fn(l);for(let c of s.keys()){let f=u.moduleGraph.getModuleById(c);f&&u.moduleGraph.invalidateModule(f)}})},load(u){let l=kc(u),c=a.get(l)??n.get(l)??s.get(l);if(!c)return null;let f=c.id;if((0,Lc.isType)(c,"CustomElement")){if(n.has(l))return`
143
+ import { enableClient } from "@wix/cli-app/internal/platform-sdk/site";
143
144
  (async function () {
144
145
  if (!window['React']) {
145
146
  await import('https://unpkg.com/react@16.14.0/umd/react.production.min.js');
146
147
  await import('https://unpkg.com/react-dom@16.14.0/umd/react-dom.production.min.js');
147
148
  }
148
- const { default: customElement } = await import('${dg(t==="dev"?o.resolvedUrls:null,c.relativePath,t)}');
149
- customElements.define('${c.tagName}', customElement);
149
+ const { default: UsersCustomElementClass } = await import('${dg(t==="dev"?o.resolvedUrls:null,c.relativePath,t)}');
150
+
151
+ let accessTokenListenerFn = UsersCustomElementClass.prototype.accessTokenListener;
152
+ if (!accessTokenListenerFn) {
153
+ const { injectGetAccessToken } = enableClient('${r}');
154
+ accessTokenListenerFn = injectGetAccessToken;
155
+ }
156
+ Object.defineProperty(UsersCustomElementClass.prototype, 'accessTokenListener', {
157
+ writable: false,
158
+ configurable: false,
159
+ value: accessTokenListenerFn
160
+ });
161
+
162
+ customElements.define('${c.tagName}', UsersCustomElementClass);
150
163
  })();
151
- `;if(s.has(l))return`export { default } from '${Nc(c.relativePanelPath,t)}';`}return`
164
+ `;if(s.has(l))return`
165
+ import { enableClient } from '@wix/cli-app/internal/platform-sdk/editor';
166
+ enableClient();
167
+ export { default } from '${Nc(c.relativePanelPath,t)}';
168
+ `}return`
152
169
  import { withContextualWixClient } from "@wix/cli-app/internal/platform-sdk/dashboard";
153
170
 
154
171
  (function () {
@@ -180,5 +197,5 @@ export default createComponentHmrWrapper(OriginalComponent, import.meta.hot.data
180
197
  Wix CLI dev server is up and running.<br>
181
198
  You can close this browser tab and return to the terminal to continue working.
182
199
  </body>
183
- </html>`}S();var sh="__WIX_ORIGIN_PLACEHOLDER__";function oh(){let e=null;return{name:"wix:auto-origin",apply:"serve",config:()=>({server:{origin:sh}}),configureServer:t=>{t.middlewares.use((i,r,a)=>{e=e??_a(t),a()})},transform:(t,i)=>{if(/.*\.(m?jsx?|tsx?)$/.exec(i))return t;if(!e)throw new Gr({code:jr.FailedToResolveViteOrigin()});return t.replaceAll(sh,e)}}}S();import{dirname as lA,isAbsolute as cA,join as fA}from"node:path";import{URL as uh}from"node:url";function hA(e,t,i){let r=new uh(t,i).href;if(t.startsWith("/@vite"))return r;if(!cA(t)){let a=fA(lA(e),t);r=new uh(a,i).href}return r}function lh(){let e;return{name:"wix:absolute-html-url",apply:"serve",configureServer(t){e=t},transformIndexHtml:{order:"post",handler(t,{originalUrl:i}){if(!i)throw new Error("Cannot find asset URL.");let r=e.resolvedUrls?.local?.[0],a=(n,s,o,u)=>{let l=hA(i,o,r);return`${s}${l}${u}`};return t.replace(/(<script [^><]*src=["'])((?!http)[^"']+)(["'][^><]*>[\r\n]*<\/script>)/g,a).replace(/(<link [^><]*href=["'])((?!http)[^"']+)(["'][^><]*>)/g,a).replace(/(\r\n|\n|\r)/gm,"")}}}}async function dA(e,t,{baseBackendUrl:i}={}){let{https:r}=t,a=[...yi(e)].map(([l,c])=>[`html-asset-${c.id}`,l]),n=[...mi(e)].map(([l,c])=>[`script-asset-${c.id}`,l]),s=e.components.filter((0,ch.isType)(so.EmbeddedScript)).map(l=>[l.id,pA(e.projectFolder,l.relativePath)]),o=[...Ai(e)].map(([l,c])=>[`html-asset-${c.id}`,l]),u=[...Ci(e)].map(([l,c])=>[`script-asset-${c.id}`,l]);return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[oo,uo,lo,co,fo]},server:{},build:{sourcemap:!0,outDir:ao(e.projectFolder),rollupOptions:{input:Object.fromEntries([...a,...n,...s,...o,...u])}},define:{...i?{"import.meta.env.BASE_API_URL":JSON.stringify(i.replace(/\/$/,"")+"/functions")}:{}},plugins:[Pc(),...r?[nh()]:[],Rc({initialModel:e,...t}),xc(),Ic(),Cc({react:"React","react-dom":"ReactDOM"}),wc({initialModel:e,...t}),oh(),lh()],experimental:{renderBuiltUrl(l,{hostType:c,hostId:f}){return c==="html"&&!f.includes("wix/html")?"__STATICS_BASE_URL_PLACEHOLDER__"+l:c!=="js"?{relative:!0}:{runtime:`import.meta.url.replace(${`"${f}"`}, ${`"${l}"`})`}}}}}S();import{viteMiniflarePlugin as gA}from"@wix/cli-miniflare";import{createRequire as vA}from"node:module";var $s=vA(import.meta.url);async function yA(e,t,{appSecret:i,webhooksPublicKey:r}){let a=$s.resolve("@wix/cli-cloudflare-runtime/entry"),n=$s.resolve("@wix/cli-cloudflare-runtime/getRegisteredExtensions");return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[a,n]},ssr:{noExternal:!0,optimizeDeps:{include:["kind-of","lodash.isplainobject","lodash","crypto-js/sha256.js","crypto-js/enc-base64url.js","crypto-js","@wix/sdk"]}},resolve:{alias:{querystring:"query-string"}},build:{ssr:!0,manifest:!0,sourcemap:!0,target:"esnext",outDir:no(e.projectFolder),rollupOptions:{output:{entryFileNames:"[name].mjs",chunkFileNames:"assets/[name].mjs"},input:{entry:a,getRegisteredExtensions:n}}},define:{"import.meta.env.APP_ID":JSON.stringify(e.config.appId),"import.meta.env.APP_SECRET":JSON.stringify(i),"import.meta.env.PUBLIC_KEY":JSON.stringify(r)},plugins:[gA({entry:$s.resolve("@wix/cli-cloudflare-runtime/entry"),customLogger:t.customLogger})]}}S();export{_a as a,dA as b,yA as c};
184
- //# sourceMappingURL=chunk-RXT5UM7Q.js.map
200
+ </html>`}S();var sh="__WIX_ORIGIN_PLACEHOLDER__";function oh(){let e=null;return{name:"wix:auto-origin",apply:"serve",config:()=>({server:{origin:sh}}),configureServer:t=>{t.middlewares.use((i,r,a)=>{e=e??_a(t),a()})},transform:(t,i)=>{if(/.*\.(m?jsx?|tsx?)$/.exec(i))return t;if(!e)throw new Gr({code:jr.FailedToResolveViteOrigin()});return t.replaceAll(sh,e)}}}S();import{dirname as lA,isAbsolute as cA,join as fA}from"node:path";import{URL as uh}from"node:url";function hA(e,t,i){let r=new uh(t,i).href;if(t.startsWith("/@vite"))return r;if(!cA(t)){let a=fA(lA(e),t);r=new uh(a,i).href}return r}function lh(){let e;return{name:"wix:absolute-html-url",apply:"serve",configureServer(t){e=t},transformIndexHtml:{order:"post",handler(t,{originalUrl:i}){if(!i)throw new Error("Cannot find asset URL.");let r=e.resolvedUrls?.local[0],a=(n,s,o,u)=>{let l=hA(i,o,r);return`${s}${l}${u}`};return t.replace(/(<script [^><]*src=["'])((?!http)[^"']+)(["'][^><]*>[\r\n]*<\/script>)/g,a).replace(/(<link [^><]*href=["'])((?!http)[^"']+)(["'][^><]*>)/g,a).replace(/(\r\n|\n|\r)/gm,"")}}}}async function dA(e,t,{baseBackendUrl:i}={}){let{https:r}=t,a=[...yi(e)].map(([l,c])=>[`html-asset-${c.id}`,l]),n=[...mi(e)].map(([l,c])=>[`script-asset-${c.id}`,l]),s=e.components.filter((0,ch.isType)(so.EmbeddedScript)).map(l=>[l.id,pA(e.projectFolder,l.relativePath)]),o=[...Ai(e)].map(([l,c])=>[`html-asset-${c.id}`,l]),u=[...Ci(e)].map(([l,c])=>[`script-asset-${c.id}`,l]);return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[oo,uo,lo,co,fo]},server:{},build:{sourcemap:!0,outDir:ao(e.projectFolder),rollupOptions:{input:Object.fromEntries([...a,...n,...s,...o,...u])}},define:{...i?{"import.meta.env.BASE_API_URL":JSON.stringify(i.replace(/\/$/,"")+"/functions")}:{}},plugins:[Pc(),...r?[nh()]:[],Rc({initialModel:e,...t}),xc(),Ic(),Cc({react:"React","react-dom":"ReactDOM"}),wc({initialModel:e,...t}),oh(),lh()],experimental:{renderBuiltUrl(l,{hostType:c,hostId:f}){return c==="html"&&!f.includes("wix/html")?"__STATICS_BASE_URL_PLACEHOLDER__"+l:c!=="js"?{relative:!0}:{runtime:`import.meta.url.replace("${f}", "${l}")`}}}}}S();import{viteMiniflarePlugin as gA}from"@wix/cli-miniflare";import{createRequire as vA}from"node:module";var $s=vA(import.meta.url);async function yA(e,t,{appSecret:i,webhooksPublicKey:r}){let a=$s.resolve("@wix/cli-cloudflare-runtime/entry"),n=$s.resolve("@wix/cli-cloudflare-runtime/getRegisteredExtensions");return{configFile:!1,root:e.projectFolder,customLogger:t.customLogger,clearScreen:!1,logLevel:"info",optimizeDeps:{entries:[a,n]},ssr:{noExternal:!0,optimizeDeps:{include:["kind-of","lodash.isplainobject","lodash","crypto-js/sha256.js","crypto-js/enc-base64url.js","crypto-js","@wix/sdk"]}},resolve:{alias:{querystring:"query-string"}},build:{ssr:!0,manifest:!0,sourcemap:!0,target:"esnext",outDir:no(e.projectFolder),rollupOptions:{output:{entryFileNames:"[name].mjs",chunkFileNames:"assets/[name].mjs"},input:{entry:a,getRegisteredExtensions:n}}},define:{"import.meta.env.APP_ID":JSON.stringify(e.config.appId),"import.meta.env.APP_SECRET":JSON.stringify(i),"import.meta.env.PUBLIC_KEY":JSON.stringify(r)},plugins:[gA({entry:$s.resolve("@wix/cli-cloudflare-runtime/entry"),customLogger:t.customLogger})]}}S();export{_a as a,dA as b,yA as c};
201
+ //# sourceMappingURL=chunk-5GXRNUOR.js.map