@griddo/cx 10.3.25 → 10.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/download-data.js +1 -1
- package/build/index.js +1 -1
- package/package.json +3 -3
package/build/download-data.js
CHANGED
|
@@ -19,7 +19,7 @@ GFS4: `),console.error(t)});z[ie]||(vo=global[ie]||[],_o(z,vo),z.close=function(
|
|
|
19
19
|
`+s),t.push(i+"m+"+dn.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ug()+e+" "+t[0]}function ug(){return se.inspectOpts.hideDate?"":new Date().toISOString()+" "}function cg(...t){return process.stderr.write(fn.format(...t)+`
|
|
20
20
|
`)}function lg(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fg(){return process.env.DEBUG}function dg(t){t.inspectOpts={};let e=Object.keys(se.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=se.inspectOpts[e[r]]}dn.exports=Qi()(se);var{formatters:Gl}=dn.exports;Gl.o=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts).split(`
|
|
21
21
|
`).map(e=>e.trim()).join(" ")};Gl.O=function(t){return this.inspectOpts.colors=this.useColors,fn.inspect(t,this.inspectOpts)}});var Wl=y((Hb,Zi)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Zi.exports=Hl():Zi.exports=zl()});var Vl=y((Gb,Jl)=>{var tr;Jl.exports=function(){if(!tr){try{tr=Wl()("follow-redirects")}catch{}typeof tr!="function"&&(tr=function(){})}tr.apply(null,arguments)}});var ss=y((zb,is)=>{var ot=require("url"),es=ot.URL,hg=require("http"),pg=require("https"),Ql=require("stream").Writable,Zl=require("assert"),ef=Vl(),rs=["abort","aborted","connect","error","socket","timeout"],ns=Object.create(null);rs.forEach(function(t){ns[t]=function(e,r,n){this._redirectable.emit(t,e,r,n)}});var mg=nr("ERR_INVALID_URL","Invalid URL",TypeError),Yl=nr("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),gg=nr("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),yg=nr("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),vg=nr("ERR_STREAM_WRITE_AFTER_END","write after end");function Pe(t,e){Ql.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var r=this;this._onNativeResponse=function(n){r._processResponse(n)},this._performRequest()}Pe.prototype=Object.create(Ql.prototype);Pe.prototype.abort=function(){rf(this._currentRequest),this.emit("abort")};Pe.prototype.write=function(t,e,r){if(this._ending)throw new vg;if(!at(t)&&!wg(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(rr(e)&&(r=e,e=null),t.length===0){r&&r();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,r)):(this.emit("error",new yg),this.abort())};Pe.prototype.end=function(t,e,r){if(rr(t)?(r=t,t=e=null):rr(e)&&(r=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,r);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,r)}),this._ending=!0}};Pe.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};Pe.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};Pe.prototype.setTimeout=function(t,e){var r=this;function n(o){o.setTimeout(t),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy)}function i(o){r._timeout&&clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout"),s()},t),n(o)}function s(){r._timeout&&(clearTimeout(r._timeout),r._timeout=null),r.removeListener("abort",s),r.removeListener("error",s),r.removeListener("response",s),e&&r.removeListener("timeout",e),r.socket||r._currentRequest.removeListener("socket",i)}return e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){Pe.prototype[t]=function(e,r){return this._currentRequest[t](e,r)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(Pe.prototype,t,{get:function(){return this._currentRequest[t]}})});Pe.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};Pe.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e){this.emit("error",new TypeError("Unsupported protocol "+t));return}if(this._options.agents){var r=t.slice(0,-1);this._options.agent=this._options.agents[r]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of rs)n.on(i,ns[i]);if(this._currentUrl=/^\//.test(this._options.path)?ot.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;(function u(h){if(n===o._currentRequest)if(h)o.emit("error",h);else if(s<a.length){var c=a[s++];n.finished||n.write(c.data,c.encoding,u)}else o._ended&&n.end()})()}};Pe.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var r=t.headers.location;if(!r||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(rf(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new gg);return}var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var s=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],ts(/^content-/i,this._options.headers));var o=ts(/^host$/i,this._options.headers),a=ot.parse(this._currentUrl),u=o||a.host,h=/^\w+:/.test(r)?this._currentUrl:ot.format(Object.assign(a,{host:u})),c;try{c=ot.resolve(h,r)}catch(b){this.emit("error",new Yl({cause:b}));return}ef("redirecting to",c),this._isRedirect=!0;var p=ot.parse(c);if(Object.assign(this._options,p),(p.protocol!==a.protocol&&p.protocol!=="https:"||p.host!==u&&!_g(p.host,u))&&ts(/^(?:authorization|cookie)$/i,this._options.headers),rr(i)){var g={headers:t.headers,statusCode:e},m={url:h,method:s,headers:n};try{i(this._options,g,m)}catch(b){this.emit("error",b);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(b){this.emit("error",new Yl({cause:b}))}};function tf(t){var e={maxRedirects:21,maxBodyLength:10485760},r={};return Object.keys(t).forEach(function(n){var i=n+":",s=r[i]=t[n],o=e[n]=Object.create(s);function a(h,c,p){if(at(h)){var g;try{g=Kl(new es(h))}catch{g=ot.parse(h)}if(!at(g.protocol))throw new mg({input:h});h=g}else es&&h instanceof es?h=Kl(h):(p=c,c=h,h={protocol:i});return rr(c)&&(p=c,c=null),c=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},h,c),c.nativeProtocols=r,!at(c.host)&&!at(c.hostname)&&(c.hostname="::1"),Zl.equal(c.protocol,i,"protocol mismatch"),ef("options",c),new Pe(c,p)}function u(h,c,p){var g=o.request(h,c,p);return g.end(),g}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:u,configurable:!0,enumerable:!0,writable:!0}})}),e}function bg(){}function Kl(t){var e={protocol:t.protocol,hostname:t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,hash:t.hash,search:t.search,pathname:t.pathname,path:t.pathname+t.search,href:t.href};return t.port!==""&&(e.port=Number(t.port)),e}function ts(t,e){var r;for(var n in e)t.test(n)&&(r=e[n],delete e[n]);return r===null||typeof r>"u"?void 0:String(r).trim()}function nr(t,e,r){function n(i){Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return n.prototype=new(r||Error),n.prototype.constructor=n,n.prototype.name="Error ["+t+"]",n}function rf(t){for(var e of rs)t.removeListener(e,ns[e]);t.on("error",bg),t.abort()}function _g(t,e){Zl(at(t)&&at(e));var r=t.length-e.length-1;return r>0&&t[r]==="."&&t.endsWith(e)}function at(t){return typeof t=="string"||t instanceof String}function rr(t){return typeof t=="function"}function wg(t){return typeof t=="object"&&"length"in t}is.exports=tf({http:hg,https:pg});is.exports.wrap=tf});var os=y((Wb,xg)=>{xg.exports={name:"axios",version:"0.21.4",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]}});var cf=y((Jb,uf)=>{"use strict";var ir=ve(),nf=Ji(),Sg=Vi(),Eg=rn(),Cg=require("http"),Pg=require("https"),Og=ss().http,Dg=ss().https,sf=require("url"),Fg=require("zlib"),Ig=os(),hn=on(),as=sn(),of=/https:?/;function af(t,e,r){if(t.hostname=e.host,t.host=e.host,t.port=e.port,t.path=r,e.auth){var n=Buffer.from(e.auth.username+":"+e.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+n}t.beforeRedirect=function(s){s.headers.host=s.host,af(s,e,s.href)}}uf.exports=function(e){return new Promise(function(n,i){var s=function(x){n(x)},o=function(x){i(x)},a=e.data,u=e.headers;if("User-Agent"in u||"user-agent"in u?!u["User-Agent"]&&!u["user-agent"]&&(delete u["User-Agent"],delete u["user-agent"]):u["User-Agent"]="axios/"+Ig.version,a&&!ir.isStream(a)){if(!Buffer.isBuffer(a))if(ir.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(ir.isString(a))a=Buffer.from(a,"utf-8");else return o(hn("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));u["Content-Length"]=a.length}var h=void 0;if(e.auth){var c=e.auth.username||"",p=e.auth.password||"";h=c+":"+p}var g=Sg(e.baseURL,e.url),m=sf.parse(g),b=m.protocol||"http:";if(!h&&m.auth){var S=m.auth.split(":"),P=S[0]||"",A=S[1]||"";h=P+":"+A}h&&delete u.Authorization;var j=of.test(b),$=j?e.httpsAgent:e.httpAgent,G={path:Eg(m.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:u,agent:$,agents:{http:e.httpAgent,https:e.httpsAgent},auth:h};e.socketPath?G.socketPath=e.socketPath:(G.hostname=m.hostname,G.port=m.port);var K=e.proxy;if(!K&&K!==!1){var de=b.slice(0,-1)+"_proxy",Oe=process.env[de]||process.env[de.toUpperCase()];if(Oe){var re=sf.parse(Oe),D=process.env.no_proxy||process.env.NO_PROXY,k=!0;if(D){var q=D.split(",").map(function(x){return x.trim()});k=!q.some(function(x){return x?x==="*"||x[0]==="."&&m.hostname.substr(m.hostname.length-x.length)===x?!0:m.hostname===x:!1})}if(k&&(K={host:re.hostname,port:re.port,protocol:re.protocol},re.auth)){var B=re.auth.split(":");K.auth={username:B[0],password:B[1]}}}}K&&(G.headers.host=m.hostname+(m.port?":"+m.port:""),af(G,K,b+"//"+m.hostname+(m.port?":"+m.port:"")+G.path));var F,L=j&&(K?of.test(K.protocol):!0);e.transport?F=e.transport:e.maxRedirects===0?F=L?Pg:Cg:(e.maxRedirects&&(G.maxRedirects=e.maxRedirects),F=L?Dg:Og),e.maxBodyLength>-1&&(G.maxBodyLength=e.maxBodyLength);var O=F.request(G,function(x){if(!O.aborted){var I=x,ne=x.req||O;if(x.statusCode!==204&&ne.method!=="HEAD"&&e.decompress!==!1)switch(x.headers["content-encoding"]){case"gzip":case"compress":case"deflate":I=I.pipe(Fg.createUnzip()),delete x.headers["content-encoding"];break}var De={status:x.statusCode,statusText:x.statusMessage,headers:x.headers,config:e,request:ne};if(e.responseType==="stream")De.data=I,nf(s,o,De);else{var W=[],he=0;I.on("data",function(pe){W.push(pe),he+=pe.length,e.maxContentLength>-1&&he>e.maxContentLength&&(I.destroy(),o(hn("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,ne)))}),I.on("error",function(pe){O.aborted||o(as(pe,e,null,ne))}),I.on("end",function(){var pe=Buffer.concat(W);e.responseType!=="arraybuffer"&&(pe=pe.toString(e.responseEncoding),(!e.responseEncoding||e.responseEncoding==="utf8")&&(pe=ir.stripBOM(pe))),De.data=pe,nf(s,o,De)})}}});if(O.on("error",function(x){O.aborted&&x.code!=="ERR_FR_TOO_MANY_REDIRECTS"||o(as(x,e,null,O))}),e.timeout){var N=parseInt(e.timeout,10);if(isNaN(N)){o(hn("error trying to parse `config.timeout` to int",e,"ERR_PARSE_TIMEOUT",O));return}O.setTimeout(N,function(){O.abort(),o(hn("timeout of "+N+"ms exceeded",e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",O))})}e.cancelToken&&e.cancelToken.promise.then(function(x){O.aborted||(O.abort(),o(x))}),ir.isStream(a)?a.on("error",function(x){o(as(x,e,null,O))}).pipe(O):O.end(a)})}});var mn=y((Vb,df)=>{"use strict";var oe=ve(),lf=Sl(),Ag=sn(),Rg={"Content-Type":"application/x-www-form-urlencoded"};function ff(t,e){!oe.isUndefined(t)&&oe.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function kg(){var t;return typeof XMLHttpRequest<"u"?t=$l():typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(t=cf()),t}function qg(t,e,r){if(oe.isString(t))try{return(e||JSON.parse)(t),oe.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var pn={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:kg(),transformRequest:[function(e,r){return lf(r,"Accept"),lf(r,"Content-Type"),oe.isFormData(e)||oe.isArrayBuffer(e)||oe.isBuffer(e)||oe.isStream(e)||oe.isFile(e)||oe.isBlob(e)?e:oe.isArrayBufferView(e)?e.buffer:oe.isURLSearchParams(e)?(ff(r,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):oe.isObject(e)||r&&r["Content-Type"]==="application/json"?(ff(r,"application/json"),qg(e)):e}],transformResponse:[function(e){var r=this.transitional,n=r&&r.silentJSONParsing,i=r&&r.forcedJSONParsing,s=!n&&this.responseType==="json";if(s||i&&oe.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(s)throw o.name==="SyntaxError"?Ag(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};pn.headers={common:{Accept:"application/json, text/plain, */*"}};oe.forEach(["delete","get","head"],function(e){pn.headers[e]={}});oe.forEach(["post","put","patch"],function(e){pn.headers[e]=oe.merge(Rg)});df.exports=pn});var pf=y((Yb,hf)=>{"use strict";var Mg=ve(),Tg=mn();hf.exports=function(e,r,n){var i=this||Tg;return Mg.forEach(n,function(o){e=o.call(i,e,r)}),e}});var us=y((Kb,mf)=>{"use strict";mf.exports=function(e){return!!(e&&e.__CANCEL__)}});var vf=y((Qb,yf)=>{"use strict";var gf=ve(),cs=pf(),Ng=us(),jg=mn();function ls(t){t.cancelToken&&t.cancelToken.throwIfRequested()}yf.exports=function(e){ls(e),e.headers=e.headers||{},e.data=cs.call(e,e.data,e.headers,e.transformRequest),e.headers=gf.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),gf.forEach(["delete","get","head","post","put","patch","common"],function(i){delete e.headers[i]});var r=e.adapter||jg.adapter;return r(e).then(function(i){return ls(e),i.data=cs.call(e,i.data,i.headers,e.transformResponse),i},function(i){return Ng(i)||(ls(e),i&&i.response&&(i.response.data=cs.call(e,i.response.data,i.response.headers,e.transformResponse))),Promise.reject(i)})}});var fs=y((Zb,bf)=>{"use strict";var fe=ve();bf.exports=function(e,r){r=r||{};var n={},i=["url","method","data"],s=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function u(g,m){return fe.isPlainObject(g)&&fe.isPlainObject(m)?fe.merge(g,m):fe.isPlainObject(m)?fe.merge({},m):fe.isArray(m)?m.slice():m}function h(g){fe.isUndefined(r[g])?fe.isUndefined(e[g])||(n[g]=u(void 0,e[g])):n[g]=u(e[g],r[g])}fe.forEach(i,function(m){fe.isUndefined(r[m])||(n[m]=u(void 0,r[m]))}),fe.forEach(s,h),fe.forEach(o,function(m){fe.isUndefined(r[m])?fe.isUndefined(e[m])||(n[m]=u(void 0,e[m])):n[m]=u(void 0,r[m])}),fe.forEach(a,function(m){m in r?n[m]=u(e[m],r[m]):m in e&&(n[m]=u(void 0,e[m]))});var c=i.concat(s).concat(o).concat(a),p=Object.keys(e).concat(Object.keys(r)).filter(function(m){return c.indexOf(m)===-1});return fe.forEach(p,h),n}});var Ef=y((e2,Sf)=>{"use strict";var wf=os(),ds={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){ds[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var _f={},Lg=wf.version.split(".");function xf(t,e){for(var r=e?e.split("."):Lg,n=t.split("."),i=0;i<3;i++){if(r[i]>n[i])return!0;if(r[i]<n[i])return!1}return!1}ds.transitional=function(e,r,n){var i=r&&xf(r);function s(o,a){return"[Axios v"+wf.version+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return function(o,a,u){if(e===!1)throw new Error(s(a," has been removed in "+r));return i&&!_f[a]&&(_f[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,u):!0}};function $g(t,e,r){if(typeof t!="object")throw new TypeError("options must be an object");for(var n=Object.keys(t),i=n.length;i-- >0;){var s=n[i],o=e[s];if(o){var a=t[s],u=a===void 0||o(a,s,t);if(u!==!0)throw new TypeError("option "+s+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+s)}}Sf.exports={isOlderVersion:xf,assertOptions:$g,validators:ds}});var If=y((t2,Ff)=>{"use strict";var Of=ve(),Bg=rn(),Cf=wl(),Pf=vf(),gn=fs(),Df=Ef(),kt=Df.validators;function sr(t){this.defaults=t,this.interceptors={request:new Cf,response:new Cf}}sr.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=gn(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var r=e.transitional;r!==void 0&&Df.assertOptions(r,{silentJSONParsing:kt.transitional(kt.boolean,"1.0.0"),forcedJSONParsing:kt.transitional(kt.boolean,"1.0.0"),clarifyTimeoutError:kt.transitional(kt.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(e)===!1||(i=i&&g.synchronous,n.unshift(g.fulfilled,g.rejected))});var s=[];this.interceptors.response.forEach(function(g){s.push(g.fulfilled,g.rejected)});var o;if(!i){var a=[Pf,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(s),o=Promise.resolve(e);a.length;)o=o.then(a.shift(),a.shift());return o}for(var u=e;n.length;){var h=n.shift(),c=n.shift();try{u=h(u)}catch(p){c(p);break}}try{o=Pf(u)}catch(p){return Promise.reject(p)}for(;s.length;)o=o.then(s.shift(),s.shift());return o};sr.prototype.getUri=function(e){return e=gn(this.defaults,e),Bg(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};Of.forEach(["delete","get","head","options"],function(e){sr.prototype[e]=function(r,n){return this.request(gn(n||{},{method:e,url:r,data:(n||{}).data}))}});Of.forEach(["post","put","patch"],function(e){sr.prototype[e]=function(r,n,i){return this.request(gn(i||{},{method:e,url:r,data:n}))}});Ff.exports=sr});var ps=y((r2,Af)=>{"use strict";function hs(t){this.message=t}hs.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};hs.prototype.__CANCEL__=!0;Af.exports=hs});var kf=y((n2,Rf)=>{"use strict";var Ug=ps();function yn(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(i){e=i});var r=this;t(function(i){r.reason||(r.reason=new Ug(i),e(r.reason))})}yn.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};yn.source=function(){var e,r=new yn(function(i){e=i});return{token:r,cancel:e}};Rf.exports=yn});var Mf=y((i2,qf)=>{"use strict";qf.exports=function(e){return function(n){return e.apply(null,n)}}});var Nf=y((s2,Tf)=>{"use strict";Tf.exports=function(e){return typeof e=="object"&&e.isAxiosError===!0}});var $f=y((o2,ms)=>{"use strict";var jf=ve(),Xg=Xi(),vn=If(),Hg=fs(),Gg=mn();function Lf(t){var e=new vn(t),r=Xg(vn.prototype.request,e);return jf.extend(r,vn.prototype,e),jf.extend(r,e),r}var Te=Lf(Gg);Te.Axios=vn;Te.create=function(e){return Lf(Hg(Te.defaults,e))};Te.Cancel=ps();Te.CancelToken=kf();Te.isCancel=us();Te.all=function(e){return Promise.all(e)};Te.spread=Mf();Te.isAxiosError=Nf();ms.exports=Te;ms.exports.default=Te});var gs=y((a2,Bf)=>{Bf.exports=$f()});var Q=y(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.isUndefined=Se.fixName=Se.validateName=Se.validateSingleChar=Se.fixChar=Se.validateChar=void 0;function ry(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===9||r===10||r===13||r>=32&&r<=55295||r>=57344&&r<=65533)){if(e+1===t.length)return!1;var n=t.charCodeAt(e+1);if(r>=55296&&r<=56319&&n>=56320&&n<=57343){e++;continue}return!1}}return!0}Se.validateChar=ry;function ny(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);if(n===9||n===10||n===13||n>=32&&n<=55295||n>=57344&&n<=65533){e+=t[r];continue}if(r+1===t.length)return e+="\uFFFD",e;var i=t.charCodeAt(r+1);if(n>=55296&&n<=56319&&i>=56320&&i<=57343){e+=t[r]+t[r+1],r++;continue}e+="\uFFFD"}return e}Se.fixChar=ny;function iy(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(t.length===1)return e===9||e===10||e===13||e>=32&&e<=55295||e>=57344&&e<=65533;if(t.length!==2)return!1;var r=t.charCodeAt(1);return e>=55296&&e<=56319&&r>=56320&&r<=57343}Se.validateSingleChar=iy;function sy(t){if(t.length===0)return!1;var e=t.charCodeAt(0),r=e===58||e===95||e>=65&&e<=90||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533;if(t.length===1)return r;var n=t.charCodeAt(1),i=e>=55296&&e<=56191&&n>=56320&&n<=57343;if(!r&&!i)return!1;for(var s=i?2:1,o=s;o<t.length;o++){var a=t.charCodeAt(o);if(!(a===58||a===95||a===45||a===46||a===183||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a>=192&&a<=214||a>=216&&a<=246||a>=248&&a<=767||a>=768&&a<=879||a>=880&&a<=893||a>=895&&a<=8191||a>=8204&&a<=8205||a>=8255&&a<=8256||a>=8304&&a<=8591||a>=11264&&a<=12271||a>=12289&&a<=55295||a>=63744&&a<=64975||a>=65008&&a<=65533)){if(o+1===t.length)return!1;var u=t.charCodeAt(o+1);if(a>=55296&&a<=56191&&u>=56320&&u<=57343){o++;continue}return!1}}return!0}Se.validateName=sy;function oy(t){var e="";if(t.length===0)return e;var r=t.charCodeAt(0),n=r===58||r===95||r>=65&&r<=90||r>=97&&r<=122||r>=192&&r<=214||r>=216&&r<=246||r>=248&&r<=767||r>=880&&r<=893||r>=895&&r<=8191||r>=8204&&r<=8205||r>=8304&&r<=8591||r>=11264&&r<=12271||r>=12289&&r<=55295||r>=63744&&r<=64975||r>=65008&&r<=65533;if(t.length===1)return n?e=t[0]:e="\uFFFD",e;var i=t.charCodeAt(1),s=r>=55296&&r<=56191&&i>=56320&&i<=57343;s?e=t[0]+t[1]:n?e=t[0]:e="\uFFFD";for(var o=s?2:1,a=o;a<t.length;a++){var u=t.charCodeAt(a);if(u===58||u===95||u===45||u===46||u===183||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||u>=192&&u<=214||u>=216&&u<=246||u>=248&&u<=767||u>=768&&u<=879||u>=880&&u<=893||u>=895&&u<=8191||u>=8204&&u<=8205||u>=8255&&u<=8256||u>=8304&&u<=8591||u>=11264&&u<=12271||u>=12289&&u<=55295||u>=63744&&u<=64975||u>=65008&&u<=65533){e+=t[a];continue}if(a+1===t.length)return e+="\uFFFD",e;var h=t.charCodeAt(a+1);if(u>=55296&&u<=56191&&h>=56320&&h<=57343){e+=t[a]+t[a+1],a++;continue}e+="\uFFFD"}return e}Se.fixName=oy;function ay(t){return Object.prototype.toString.call(t)==="[object Undefined]"}Se.isUndefined=ay});var qt=y(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.StringOptions=void 0;var Sn=Q(),uy=function(){function t(e){this.doubleQuotes=!1,this.indent=" ",this.newline=`
|
|
22
|
-
`,this.pretty=!0,(0,Sn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Sn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Sn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Sn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();En.StringOptions=uy});var Cn=y(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.escapeDoubleQuotes=Ae.escapeSingleQuotes=Ae.escapeRightAngleBracketsInCdataTerminator=Ae.escapeLeftAngleBrackets=Ae.escapeAmpersands=void 0;function cy(t){return t.replace(/&/g,"&")}Ae.escapeAmpersands=cy;function ly(t){return t.replace(/</g,"<")}Ae.escapeLeftAngleBrackets=ly;function fy(t){return t.replace(/]]>/g,"]]>")}Ae.escapeRightAngleBracketsInCdataTerminator=fy;function dy(t){return t.replace(/'/g,"'")}Ae.escapeSingleQuotes=dy;function hy(t){return t.replace(/"/g,""")}Ae.escapeDoubleQuotes=hy});var Ds=y(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var py=ae(),nd=Cn(),Ps=Q(),my=function(){function t(e,r,n){this._validation=r,(0,Ps.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ps.fixChar)(e);else if(this._validation&&!(0,Ps.validateChar)(e))throw new Error((0,py.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,nd.escapeAmpersands)(e),e=(0,nd.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Os.default=my});var Pn=y(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var id=ae(),sd=Q(),gy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,sd.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,sd.validateSingleChar)(e))throw new Error((0,id.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,id.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Fs.default=gy});var On=y(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var yy=ae(),vy=Q(),by=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,vy.validateName)(e))throw new Error((0,yy.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Is.default=by});var Dn=y(ur=>{"use strict";var ks=ur&&ur.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});var As=ae(),od=Cn(),_y=qt(),Rs=Q(),wy=ks(Ds()),xy=ks(Pn()),Sy=ks(On()),Ey=function(){function t(e,r,n){this._validation=r,(0,Rs.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,Rs.fixName)(e),e.length===0)throw new Error((0,As.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Rs.validateName)(e))throw e.length===0?new Error((0,As.getContext)(this.up())+": attribute name should not be empty"):new Error((0,As.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new xy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Sy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new wy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new _y.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,od.escapeDoubleQuotes)(a.toString()):i+=(0,od.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();ur.default=Ey});var Ms=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var Cy=ae(),Py=Q(),Oy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Py.validateChar)(e))throw new Error((0,Cy.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();qs.default=Oy});var Ns=y(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});var Dy=ae(),Fy=Q(),Iy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Fy.validateChar)(e))throw new Error((0,Dy.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ts.default=Iy});var Ls=y(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});var Ay=ae(),Ry=Q(),ky=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Ry.validateChar)(e))throw new Error((0,Ay.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();js.default=ky});var Bs=y($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var qy=ae(),My=Q(),Ty=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,My.validateChar)(e))throw new Error((0,qy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();$s.default=Ty});var Xs=y(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var Ny=ae(),jy=Q(),Ly=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,jy.validateName)(e))throw new Error((0,Ny.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Us.default=Ly});var cr=y(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});var Fn=ae(),In=Q(),$y=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,In.isUndefined)(e)){if(this._validation&&!(0,In.validateChar)(e))throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,In.validateName)(e))throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,In.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Hs.default=$y});var An=y(ut=>{"use strict";var ct=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});ut.validatePubId=void 0;var Qe=ae(),By=qt(),Le=Q(),Uy=ct(lr()),Xy=ct(Ms()),Hy=ct(Ns()),Gy=ct(Ls()),zy=ct(Bs()),Wy=ct(Xs()),Jy=ct(cr()),Vy=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Le.validateName)(e))throw new Error((0,Qe.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!ad(e))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Xy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Uy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Hy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new Gy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new Wy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new Jy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new By.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Qe.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ut.default=Vy;function ad(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ut.validatePubId=ad});var Ws=y(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var ud=ae(),Gs=Q(),Yy=function(){function t(e,r,n){this._validation=r,(0,Gs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Gs.fixChar)(e);else if(this._validation&&!(0,Gs.validateChar)(e))throw new Error((0,ud.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,ud.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();zs.default=Yy});var Ks=y(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var Ky=ae(),Js=Cn(),Vs=Q(),Qy=function(){function t(e,r,n){this._validation=r,(0,Vs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Vs.fixChar)(e);else if(this._validation&&!(0,Vs.validateChar)(e))throw new Error((0,Ky.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Js.escapeAmpersands)(e),e=(0,Js.escapeLeftAngleBrackets)(e),e=(0,Js.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ys.default=Qy});var Mn=y(hr=>{"use strict";var lt=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hr,"__esModule",{value:!0});var Rn=ae(),Zy=qt(),fr=Q(),cd=lt(Dn()),e1=lt(Ws()),dr=lt(Ks()),kn=lt(Pn()),t1=lt(lr()),qn=lt(On()),r1=lt(cr()),n1=function(){function t(e,r,n){this._validation=r,(0,fr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,fr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,fr.fixName)(e),e.length===0)throw new Error((0,Rn.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,fr.validateName)(e))throw e.length===0?new Error((0,Rn.getContext)(this.up())+": element name should not be empty"):new Error((0,Rn.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,Rn.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new cd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new dr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new qn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new Zy.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof cd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof dr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof kn.default||i instanceof qn.default||i instanceof dr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof kn.default||e instanceof qn.default||e instanceof dr.default)&&!(0,fr.isUndefined)(r)&&(r instanceof kn.default||r instanceof qn.default||r instanceof dr.default)},t}();hr.default=n1});var ae=y(Mt=>{"use strict";var Nn=Mt&&Mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getContext=void 0;var i1=Nn(Dn()),s1=Nn(jn()),o1=Nn(An()),a1=Nn(Mn());function Tn(t){if(t instanceof i1.default)return Tn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof s1.default)return"in XML document";if(t instanceof o1.default)return Tn(t.up())+" > DTD";if(t instanceof a1.default)return Tn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Mt.getContext=Tn});var lr=y(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var Qs=ae(),Zs=Q(),u1=function(){function t(e,r,n){this._validation=r,(0,Zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Zs.fixChar)(e);else if(this._validation&&!(0,Zs.validateChar)(e))throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();eo.default=u1});var no=y(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var to=ae(),c1=qt(),pr=Q(),l1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,pr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&!f1(e))throw new Error((0,to.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,to.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!d1(e))throw new Error((0,to.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new c1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,pr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,pr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();ro.default=l1;function f1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function d1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var jn=y(gr=>{"use strict";var yr=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});var h1=qt(),p1=Q(),m1=yr(lr()),ld=yr(no()),fd=yr(An()),mr=yr(Mn()),g1=yr(cr()),y1=function(){function t(e){this._children=[],this._validation=(0,p1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new m1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new ld.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new fd.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new mr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new g1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof mr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new h1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof ld.default||a instanceof fd.default||a instanceof mr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();gr.default=y1});var dd=y(R=>{"use strict";var ee=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R,"__esModule",{value:!0});R.document=R.XmlProcInst=R.XmlEntityRef=R.XmlElement=R.XmlDtdParamEntityRef=R.XmlDtdNotation=R.XmlDtdEntity=R.XmlDtdElement=R.XmlDtdAttlist=R.XmlDtd=R.XmlDocument=R.XmlDecl=R.XmlComment=R.XmlCharRef=R.XmlCharData=R.XmlCdata=R.XmlAttributeText=R.XmlAttribute=void 0;var v1=ee(jn()),b1=Dn();Object.defineProperty(R,"XmlAttribute",{enumerable:!0,get:function(){return ee(b1).default}});var _1=Ds();Object.defineProperty(R,"XmlAttributeText",{enumerable:!0,get:function(){return ee(_1).default}});var w1=Ws();Object.defineProperty(R,"XmlCdata",{enumerable:!0,get:function(){return ee(w1).default}});var x1=Ks();Object.defineProperty(R,"XmlCharData",{enumerable:!0,get:function(){return ee(x1).default}});var S1=Pn();Object.defineProperty(R,"XmlCharRef",{enumerable:!0,get:function(){return ee(S1).default}});var E1=lr();Object.defineProperty(R,"XmlComment",{enumerable:!0,get:function(){return ee(E1).default}});var C1=no();Object.defineProperty(R,"XmlDecl",{enumerable:!0,get:function(){return ee(C1).default}});var P1=jn();Object.defineProperty(R,"XmlDocument",{enumerable:!0,get:function(){return ee(P1).default}});var O1=An();Object.defineProperty(R,"XmlDtd",{enumerable:!0,get:function(){return ee(O1).default}});var D1=Ms();Object.defineProperty(R,"XmlDtdAttlist",{enumerable:!0,get:function(){return ee(D1).default}});var F1=Ns();Object.defineProperty(R,"XmlDtdElement",{enumerable:!0,get:function(){return ee(F1).default}});var I1=Ls();Object.defineProperty(R,"XmlDtdEntity",{enumerable:!0,get:function(){return ee(I1).default}});var A1=Bs();Object.defineProperty(R,"XmlDtdNotation",{enumerable:!0,get:function(){return ee(A1).default}});var R1=Xs();Object.defineProperty(R,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return ee(R1).default}});var k1=Mn();Object.defineProperty(R,"XmlElement",{enumerable:!0,get:function(){return ee(k1).default}});var q1=On();Object.defineProperty(R,"XmlEntityRef",{enumerable:!0,get:function(){return ee(q1).default}});var M1=cr();Object.defineProperty(R,"XmlProcInst",{enumerable:!0,get:function(){return ee(M1).default}});function T1(t){return t===void 0&&(t={}),new v1.default(t)}R.document=T1});var io=y(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.stringify=te.isMap=te.isSet=te.isFunction=te.isArray=te.isObject=te.isNull=te.isUndefined=void 0;function hd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}te.isUndefined=hd;function pd(t){return Object.prototype.toString.call(t)==="[object Null]"}te.isNull=pd;function N1(t){return Object.prototype.toString.call(t)==="[object Object]"}te.isObject=N1;function j1(t){return Object.prototype.toString.call(t)==="[object Array]"}te.isArray=j1;function md(t){return Object.prototype.toString.call(t)==="[object Function]"}te.isFunction=md;function L1(t){return Object.prototype.toString.call(t)==="[object Set]"}te.isSet=L1;function $1(t){return Object.prototype.toString.call(t)==="[object Map]"}te.isMap=$1;function B1(t){return!hd(t)&&!pd(t)&&md(t?.toString)&&(t=t.toString()),String(t)}te.stringify=B1});var wd=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WrapHandlers=Ee.TypeHandlers=Ee.FormatOptions=Ee.DtdOptions=Ee.DeclarationOptions=Ee.Options=void 0;var Ne=io(),U1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ne.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ne.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ne.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ne.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ne.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new gd(e.declaration),this.dtd=new yd(this.validation,e.dtd),this.format=new vd(e.format),(0,Ne.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new bd(e.typeHandlers),(0,Ne.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ne.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new _d(e.wrapHandlers)}return t}();Ee.Options=U1;var gd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ne.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ee.DeclarationOptions=gd;var yd=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ne.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ne.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ee.DtdOptions=yd;var vd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ee.FormatOptions=vd;var bd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.TypeHandlers=bd;var _d=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.WrapHandlers=_d});var Od=y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.parse=Ze.parseToExistingElement=Ze.Absent=void 0;var Sd=dd(),Ed=wd(),V=io(),so=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Ze.Absent=so;function oo(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Cd(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Sd.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function X1(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Cd((0,V.stringify)(e),i,n)}function xd(t,e,r,n){if(t===n.aliasString){r.name=(0,V.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,V.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];X1(o,(0,V.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Ln(t,(0,V.stringify)(e),r,n);return}var a=r;if(!(0,V.isArray)(e)&&!(0,V.isSet)(e)){var u=oo(e,n);if(!(0,V.isUndefined)(u)&&u(e)===so.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(t,e,a,n)}function H1(t,e,r){if((0,V.isMap)(t))t.forEach(function(o,a){xd((0,V.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];xd(s,t[s],e,r)}}function G1(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,V.isUndefined)(i)){var a=i(s,e);(0,V.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,V.isArray)(u)&&!(0,V.isSet)(u)){var c=oo(u,n);if(!(0,V.isUndefined)(c)&&c(u)===so.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(s,u,h,n)})}function Ln(t,e,r,n){var i=oo(e,n);if((0,V.isUndefined)(i)||(e=i(e)),(0,V.isObject)(e)||(0,V.isMap)(e)){H1(e,r,n);return}if((0,V.isArray)(e)||(0,V.isSet)(e)){G1(t,e,r,n);return}Cd((0,V.stringify)(e),r,n)}function Pd(t,e,r){var n=new Ed.Options(r);Ln(t.name,e,t,n)}Ze.parseToExistingElement=Pd;function z1(t,e,r){var n=new Ed.Options(r),i=new Sd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Pd(s,e,r),i.toString(n.format)}Ze.parse=z1});var uo=X(require("node:path"));var Tr=X(require("node:crypto")),rt=X(require("node:fs")),si=X(require("node:path")),oi=X(yt()),Nr=si.default.resolve(__dirname,"./../apiCache"),vu=`${Nr}/siteHash.json`;function bu(){rt.default.existsSync(Nr)||rt.default.mkdirSync(Nr),console.info("Cache initialized")}function _u(t){let e=Tr.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Nr}/${e.digest("hex")}`}function wu(t){let e=Tr.default.randomBytes(16).toString("hex"),r=Tr.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function xu(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=_u(t),i=si.default.dirname(n);rt.default.existsSync(i)||rt.default.mkdirSync(i,{recursive:!0}),rt.default.writeFileSync(n,r,"utf8")}function Su(t){try{let e=_u(t);return oi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function Q0(){try{return oi.default.readJSONSync(vu,{encoding:"utf-8"})||{}}catch{return{}}}function Eu(t,e){let r=Q0(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,rt.default.writeFileSync(vu,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var mm=X(Hr()),fl=X(xt()),Ye=X(yt()),gm=X(Hc()),Ni=X(cl());var ll="10.3.25";fl.default.config();var ym=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),Eb=Ni.default.sync(__dirname),Cb=Ni.default.sync();function ji(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
|
|
22
|
+
`,this.pretty=!0,(0,Sn.isUndefined)(e.doubleQuotes)||(this.doubleQuotes=e.doubleQuotes),(0,Sn.isUndefined)(e.indent)||(this.indent=e.indent),(0,Sn.isUndefined)(e.newline)||(this.newline=e.newline),(0,Sn.isUndefined)(e.pretty)||(this.pretty=e.pretty)}return t}();En.StringOptions=uy});var Cn=y(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.escapeDoubleQuotes=Ae.escapeSingleQuotes=Ae.escapeRightAngleBracketsInCdataTerminator=Ae.escapeLeftAngleBrackets=Ae.escapeAmpersands=void 0;function cy(t){return t.replace(/&/g,"&")}Ae.escapeAmpersands=cy;function ly(t){return t.replace(/</g,"<")}Ae.escapeLeftAngleBrackets=ly;function fy(t){return t.replace(/]]>/g,"]]>")}Ae.escapeRightAngleBracketsInCdataTerminator=fy;function dy(t){return t.replace(/'/g,"'")}Ae.escapeSingleQuotes=dy;function hy(t){return t.replace(/"/g,""")}Ae.escapeDoubleQuotes=hy});var Ds=y(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var py=ae(),nd=Cn(),Ps=Q(),my=function(){function t(e,r,n){this._validation=r,(0,Ps.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Ps.fixChar)(e);else if(this._validation&&!(0,Ps.validateChar)(e))throw new Error((0,py.getContext)(this.up())+": attribute text"+(' "'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,nd.escapeAmpersands)(e),e=(0,nd.escapeLeftAngleBrackets)(e),e},t.prototype.up=function(){return this._parent},t}();Os.default=my});var Pn=y(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});var id=ae(),sd=Q(),gy=function(){function t(e,r,n){this._hex=!1,this._validation=r,this._parent=e,this.char=n.char,(0,sd.isUndefined)(n.hex)||(this.hex=n.hex)}return Object.defineProperty(t.prototype,"char",{get:function(){return this._char},set:function(e){if(this._validation&&!(0,sd.validateSingleChar)(e))throw new Error((0,id.getContext)(this.up())+": character reference"+(' "'+e+'" should reference a single character,')+" and this character should be allowed in XML");this._char=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hex",{get:function(){return this._hex},set:function(e){this._hex=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e;if(this._char.length===1)e=this._char.charCodeAt(0);else{var r=this._char.charCodeAt(0);if(r>=55296&&r<=56319&&this._char.length>1){var n=this._char.charCodeAt(1);if(n>=56320&&n<=57343)e=(r-55296)*1024+n-56320+65536;else throw new Error((0,id.getContext)(this.up())+": character"+(' reference "'+this.char+'" should')+" reference a valid Unicode character")}else e=r}return this._hex?"&#x"+e.toString(16)+";":"&#"+e+";"},t.prototype.up=function(){return this._parent},t}();Fs.default=gy});var On=y(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var yy=ae(),vy=Q(),by=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,vy.validateName)(e))throw new Error((0,yy.getContext)(this.up())+": entity reference name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"&"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Is.default=by});var Dn=y(ur=>{"use strict";var ks=ur&&ur.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});var As=ae(),od=Cn(),_y=qt(),Rs=Q(),wy=ks(Ds()),xy=ks(Pn()),Sy=ks(On()),Ey=function(){function t(e,r,n){this._validation=r,(0,Rs.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,this._children=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,Rs.fixName)(e),e.length===0)throw new Error((0,As.getContext)(this.up())+": attribute name should not be empty")}else if(this._validation&&!(0,Rs.validateName)(e))throw e.length===0?new Error((0,As.getContext)(this.up())+": attribute name should not be empty"):new Error((0,As.getContext)(this.up())+": attribute name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.charRef=function(e){var r=new xy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new Sy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.text=function(e){var r=new wy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});for(var r=new _y.StringOptions(e),n=r.doubleQuotes?'"':"'",i=this._name+"="+n,s=0,o=this._children;s<o.length;s++){var a=o[s];r.doubleQuotes?i+=(0,od.escapeDoubleQuotes)(a.toString()):i+=(0,od.escapeSingleQuotes)(a.toString())}return i+=n,i},t.prototype.up=function(){return this._parent},t}();ur.default=Ey});var Ms=y(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var Cy=ae(),Py=Q(),Oy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Py.validateChar)(e))throw new Error((0,Cy.getContext)(this.up())+": attribute-list"+(' declaration "'+e+'" should not contain')+" characters not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ATTLIST "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();qs.default=Oy});var Ns=y(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});var Dy=ae(),Fy=Q(),Iy=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Fy.validateChar)(e))throw new Error((0,Dy.getContext)(this.up())+": element declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ELEMENT "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();Ts.default=Iy});var Ls=y(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});var Ay=ae(),Ry=Q(),ky=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,Ry.validateChar)(e))throw new Error((0,Ay.getContext)(this.up())+": entity declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!ENTITY "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();js.default=ky});var Bs=y($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var qy=ae(),My=Q(),Ty=function(){function t(e,r,n){this._validation=r,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._validation&&!(0,My.validateChar)(e))throw new Error((0,qy.getContext)(this.up())+": notation declaration"+(' "'+e+'" should not contain characters')+" not allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!NOTATION "+this._charData+">"},t.prototype.up=function(){return this._parent},t}();$s.default=Ty});var Xs=y(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var Ny=ae(),jy=Q(),Ly=function(){function t(e,r,n){this._validation=r,this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,jy.validateName)(e))throw new Error((0,Ny.getContext)(this.up())+": parameter entity"+(' reference name "'+e+'" should not contain')+" characters not allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"%"+this._name+";"},t.prototype.up=function(){return this._parent},t}();Us.default=Ly});var cr=y(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});var Fn=ae(),In=Q(),$y=function(){function t(e,r,n){this._validation=r,this._parent=e,this.content=n.content,this.target=n.target}return Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){if(!(0,In.isUndefined)(e)){if(this._validation&&!(0,In.validateChar)(e))throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain characters not allowed in XML");if(this._validation&&e.indexOf("?>")!==-1)throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction content "'+e+'" should')+" not contain the string '?>'")}this._content=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"target",{get:function(){return this._target},set:function(e){if(this._validation&&!(0,In.validateName)(e))throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not contain characters not allowed in XML names");if(this._validation&&e==="xml")throw new Error((0,Fn.getContext)(this.up())+": processing"+(' instruction target "'+e+'" should')+" not be the string 'xml'");this._target=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return(0,In.isUndefined)(this._content)?"<?"+this._target+"?>":"<?"+this._target+" "+this._content+"?>"},t.prototype.up=function(){return this._parent},t}();Hs.default=$y});var An=y(ut=>{"use strict";var ct=ut&&ut.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ut,"__esModule",{value:!0});ut.validatePubId=void 0;var Qe=ae(),By=qt(),Le=Q(),Uy=ct(lr()),Xy=ct(Ms()),Hy=ct(Ns()),Gy=ct(Ls()),zy=ct(Bs()),Wy=ct(Xs()),Jy=ct(cr()),Vy=function(){function t(e,r,n){this._pubId=void 0,this._sysId=void 0,this._validation=r,this._children=[],this._parent=e,this.name=n.name,(0,Le.isUndefined)(n.sysId)||(this.sysId=n.sysId),(0,Le.isUndefined)(n.pubId)||(this.pubId=n.pubId)}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._validation&&!(0,Le.validateName)(e))throw new Error((0,Qe.getContext)(this.up())+': DTD name "'+e+'" should not contain characters not allowed in XML names');this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pubId",{get:function(){return this._pubId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!ad(e))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not contain')+" characters not allowed in public identifiers");if(this._validation&&(0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD public"+(' identifier "'+e+'" should not be defined')+" if system identifier is undefined")}this._pubId=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sysId",{get:function(){return this._sysId},set:function(e){if(!(0,Le.isUndefined)(e)){if(this._validation&&!(0,Le.validateChar)(e))throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" characters not allowed in XML");if(this._validation&&e.indexOf("'")!==-1&&e.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": DTD system"+(' identifier "'+e+'" should not contain')+" both single quotes and double quotes")}this._sysId=e},enumerable:!1,configurable:!0}),t.prototype.attlist=function(e){var r=new Xy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new Uy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new Hy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.entity=function(e){var r=new Gy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.notation=function(e){var r=new zy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.paramEntityRef=function(e){var r=new Wy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new Jy.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=new By.StringOptions(e),n="<!DOCTYPE "+this._name;if((0,Le.isUndefined)(this._pubId))(0,Le.isUndefined)(this._sysId)||(n+=" ",n=this.appendId("SYSTEM",this._sysId,n,r));else{if((0,Le.isUndefined)(this._sysId))throw new Error((0,Qe.getContext)(this.up())+": DTD system identifier is not undefined");n+=" ",n=this.appendId("PUBLIC",this._pubId,n,r),n=this.appendId("",this._sysId,n,r)}if(this._children.length!==0){n+=" [";for(var i=0,s=this._children;i<s.length;i++){var o=s[i];r.pretty&&(n+=r.newline+r.indent),n+=o.toString()}r.pretty&&(n+=r.newline),n+="]>"}else n+=">";return n},t.prototype.up=function(){return this._parent},t.prototype.appendId=function(e,r,n,i){if(n+=e+" ",i.doubleQuotes){if(this._validation&&r.indexOf('"')!==-1)throw new Error((0,Qe.getContext)(this.up())+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+='"'+r+'"'}else{if(this._validation&&r.indexOf("'")!==-1)throw new Error((0,Qe.getContext)(this)+": doubleQuotes option inconsistent with DTD system identifier or public identifier");n+="'"+r+"'"}return n},t}();ut.default=Vy;function ad(t){for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(!(r===10||r===13||r===32||r===33||r>=35&&r<=37||r>=39&&r<=47||r>=48&&r<=57||r===58||r===59||r===61||r===63||r>=64&&r<=90||r===95||r>=97&&r<=122))return e+1===t.length,!1}return!0}ut.validatePubId=ad});var Ws=y(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});var ud=ae(),Gs=Q(),Yy=function(){function t(e,r,n){this._validation=r,(0,Gs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Gs.fixChar)(e);else if(this._validation&&!(0,Gs.validateChar)(e))throw new Error((0,ud.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("]]>","\uFFFD\uFFFD\uFFFD");else if(this._validation&&e.indexOf("]]>")!==-1)throw new Error((0,ud.getContext)(this.up())+": CDATA section"+(' "'+e+'" should not contain the string')+" ']]>'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<![CDATA["+this._charData+"]]>"},t.prototype.up=function(){return this._parent},t}();zs.default=Yy});var Ks=y(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});var Ky=ae(),Js=Cn(),Vs=Q(),Qy=function(){function t(e,r,n){this._validation=r,(0,Vs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Vs.fixChar)(e);else if(this._validation&&!(0,Vs.validateChar)(e))throw new Error((0,Ky.getContext)(this.up())+": character data"+('"'+e+'" should not contain characters not')+" allowed in XML");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=this._charData;return e=(0,Js.escapeAmpersands)(e),e=(0,Js.escapeLeftAngleBrackets)(e),e=(0,Js.escapeRightAngleBracketsInCdataTerminator)(e),e},t.prototype.up=function(){return this._parent},t}();Ys.default=Qy});var Mn=y(hr=>{"use strict";var lt=hr&&hr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hr,"__esModule",{value:!0});var Rn=ae(),Zy=qt(),fr=Q(),cd=lt(Dn()),e1=lt(Ws()),dr=lt(Ks()),kn=lt(Pn()),t1=lt(lr()),qn=lt(On()),r1=lt(cr()),n1=function(){function t(e,r,n){this._validation=r,(0,fr.isUndefined)(n.replaceInvalidCharsInName)?this._replaceInvalidCharsInName=!1:this._replaceInvalidCharsInName=n.replaceInvalidCharsInName,(0,fr.isUndefined)(n.useSelfClosingTagIfEmpty)?this._useSelfClosingTagIfEmpty=!0:this._useSelfClosingTagIfEmpty=n.useSelfClosingTagIfEmpty,this._children=[],this._attributeNames=[],this._parent=e,this.name=n.name}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){if(this._replaceInvalidCharsInName){if(e=(0,fr.fixName)(e),e.length===0)throw new Error((0,Rn.getContext)(this.up())+": element name should not be empty")}else if(this._validation&&!(0,fr.validateName)(e))throw e.length===0?new Error((0,Rn.getContext)(this.up())+": element name should not be empty"):new Error((0,Rn.getContext)(this.up())+": element name"+(' "'+e+'" should not contain characters not')+" allowed in XML names");this._name=e},enumerable:!1,configurable:!0}),t.prototype.attribute=function(e){if(this._validation&&this._attributeNames.indexOf(e.name)!==-1)throw new Error((0,Rn.getContext)(this.up())+': element "'+this.name+'" already contains an attribute with the'+(' name "'+e.name+'"'));var r=new cd.default(this,this._validation,e);return this._children.push(r),this._attributeNames.push(e.name),r},t.prototype.cdata=function(e){var r=new e1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charData=function(e){var r=new dr.default(this,this._validation,e);return this._children.push(r),r},t.prototype.charRef=function(e){var r=new kn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.comment=function(e){var r=new t1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.element=function(e){var r=new t(this,this._validation,e);return this._children.push(r),r},t.prototype.entityRef=function(e){var r=new qn.default(this,this._validation,e);return this._children.push(r),r},t.prototype.procInst=function(e){var r=new r1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){return e===void 0&&(e={}),this.toStringWithIndent(e,"")},t.prototype.up=function(){return this._parent},t.prototype.toStringWithIndent=function(e,r){for(var n=new Zy.StringOptions(e),i=r+n.indent,s="<"+this._name,o=[],a=0,u=this._children;a<u.length;a++){var h=u[a];h instanceof cd.default?s+=" "+h.toString(e):o.push(h)}if(o.length>0){for(var c="",p=0;p<o.length;p++){var g=o[p],m="";g instanceof t?m+=g.toStringWithIndent(n,i):m+=g.toString();var b=p>0?o[p-1]:void 0;g instanceof dr.default&&g.toString()===""||(n.pretty&&(this.allSameLineNodes(o)||p>0&&this.onSameLine(g,b)||(m=n.newline+i+m)),c+=m)}n.pretty&&(this.allSameLineNodes(o)||(c+=n.newline+r)),c.length===0&&this._useSelfClosingTagIfEmpty?s+="/>":s+=">"+c+"</"+this._name+">"}else this._useSelfClosingTagIfEmpty?s+="/>":s+="></"+this._name+">";return s},t.prototype.allSameLineNodes=function(e){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(!(i instanceof kn.default||i instanceof qn.default||i instanceof dr.default))return!1}return!0},t.prototype.onSameLine=function(e,r){return(e instanceof kn.default||e instanceof qn.default||e instanceof dr.default)&&!(0,fr.isUndefined)(r)&&(r instanceof kn.default||r instanceof qn.default||r instanceof dr.default)},t}();hr.default=n1});var ae=y(Mt=>{"use strict";var Nn=Mt&&Mt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getContext=void 0;var i1=Nn(Dn()),s1=Nn(jn()),o1=Nn(An()),a1=Nn(Mn());function Tn(t){if(t instanceof i1.default)return Tn(t.up())+(' > attribute "'+t.name+'"');if(t instanceof s1.default)return"in XML document";if(t instanceof o1.default)return Tn(t.up())+" > DTD";if(t instanceof a1.default)return Tn(t.up())+(' > element "'+t.name+'"');throw new Error("Unrecognized object of type "+Object.prototype.toString.call(t))}Mt.getContext=Tn});var lr=y(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});var Qs=ae(),Zs=Q(),u1=function(){function t(e,r,n){this._validation=r,(0,Zs.isUndefined)(n.replaceInvalidCharsInCharData)?this._replaceInvalidCharsInCharData=!1:this._replaceInvalidCharsInCharData=n.replaceInvalidCharsInCharData,this._parent=e,this.charData=n.charData}return Object.defineProperty(t.prototype,"charData",{get:function(){return this._charData},set:function(e){if(this._replaceInvalidCharsInCharData)e=(0,Zs.fixChar)(e);else if(this._validation&&!(0,Zs.validateChar)(e))throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain characters')+" not allowed in XML");if(this._replaceInvalidCharsInCharData)e=e.replace("--","\uFFFD\uFFFD");else if(this._validation&&e.indexOf("--")!==-1)throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not contain the string')+" '--'");if(this._replaceInvalidCharsInCharData)e.lastIndexOf("-")===e.length-1&&(e=e.substr(0,e.length-1)+"\uFFFD");else if(this._validation&&e.lastIndexOf("-")===e.length-1)throw new Error((0,Qs.getContext)(this.up())+": comment content"+(' "'+e+'" should not end with the string')+" '-'");this._charData=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"<!--"+this._charData+"-->"},t.prototype.up=function(){return this._parent},t}();eo.default=u1});var no=y(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});var to=ae(),c1=qt(),pr=Q(),l1=function(){function t(e,r,n){this._version="1.0",this._validation=r,this._parent=e,this.encoding=n.encoding,this.standalone=n.standalone,(0,pr.isUndefined)(n.version)||(this.version=n.version)}return Object.defineProperty(t.prototype,"encoding",{get:function(){return this._encoding},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&!f1(e))throw new Error((0,to.getContext)(this.up())+": declaration"+(" encoding attribute "+e+" should be a")+" valid encoding");this._encoding=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"standalone",{get:function(){return this._standalone},set:function(e){if(this._validation&&!(0,pr.isUndefined)(e)&&e!=="yes"&&e!=="no")throw new Error((0,to.getContext)(this.up())+": declaration"+(" standalone attribute "+e+" should")+" be the string 'yes' or the string 'no'");this._standalone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},set:function(e){if(this._validation&&!d1(e))throw new Error((0,to.getContext)(this.up())+": declaration version"+(" attribute "+e+" should be a valid XML")+" version");this._version=e},enumerable:!1,configurable:!0}),t.prototype.toString=function(e){e===void 0&&(e={});var r=new c1.StringOptions(e),n=r.doubleQuotes?'"':"'",i="<?xml version="+n+this._version+n;return(0,pr.isUndefined)(this._encoding)||(i+=" encoding="+n+this._encoding+n),(0,pr.isUndefined)(this._standalone)||(i+=" standalone="+n+this._standalone+n),i+="?>",i},t.prototype.up=function(){return this._parent},t}();ro.default=l1;function f1(t){if(t.length===0)return!1;var e=t.charCodeAt(0);if(!(e>=65&&e<=90||e>=97&&e<=122))return!1;for(var r=1;r<t.length;r++){var n=t.charCodeAt(r);if(!(n===95||n===45||n===46||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122))return r+1===t.length,!1}return!0}function d1(t){for(var e=0;e<=9;e++)if(t==="1."+e)return!0;return!1}});var jn=y(gr=>{"use strict";var yr=gr&&gr.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gr,"__esModule",{value:!0});var h1=qt(),p1=Q(),m1=yr(lr()),ld=yr(no()),fd=yr(An()),mr=yr(Mn()),g1=yr(cr()),y1=function(){function t(e){this._children=[],this._validation=(0,p1.isUndefined)(e.validation)?!0:e.validation}return t.prototype.comment=function(e){var r=new m1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.decl=function(e){if(e===void 0&&(e={}),this._validation&&this._children.length!==0)throw new Error("in XML document: declaration must be the first child");var r=new ld.default(this,this._validation,e);return this._children.push(r),r},t.prototype.dtd=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: DTD must precede the root element");var n=new fd.default(this,this._validation,e);return this._children.push(n),n},t.prototype.element=function(e){var r=this._children.filter(function(i){return i instanceof mr.default});if(this._validation&&r.length!==0)throw new Error("in XML document: only one root element is permitted");var n=new mr.default(this,this._validation,e);return this._children.push(n),n},t.prototype.procInst=function(e){var r=new g1.default(this,this._validation,e);return this._children.push(r),r},t.prototype.toString=function(e){e===void 0&&(e={});var r=this._children.filter(function(h){return h instanceof mr.default});if(this._validation&&r.length!==1)throw new Error("in XML document: no more than one root element is permitted");for(var n=new h1.StringOptions(e),i="",s=0,o=this._children;s<o.length;s++){var a=o[s];a instanceof ld.default||a instanceof fd.default||a instanceof mr.default?i+=a.toString(e):i+=a.toString(),n.pretty&&(i+=n.newline)}var u=i.length-n.newline.length;return i.substr(u)===n.newline&&(i=i.substr(0,u)),i},t}();gr.default=y1});var dd=y(R=>{"use strict";var ee=R&&R.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(R,"__esModule",{value:!0});R.document=R.XmlProcInst=R.XmlEntityRef=R.XmlElement=R.XmlDtdParamEntityRef=R.XmlDtdNotation=R.XmlDtdEntity=R.XmlDtdElement=R.XmlDtdAttlist=R.XmlDtd=R.XmlDocument=R.XmlDecl=R.XmlComment=R.XmlCharRef=R.XmlCharData=R.XmlCdata=R.XmlAttributeText=R.XmlAttribute=void 0;var v1=ee(jn()),b1=Dn();Object.defineProperty(R,"XmlAttribute",{enumerable:!0,get:function(){return ee(b1).default}});var _1=Ds();Object.defineProperty(R,"XmlAttributeText",{enumerable:!0,get:function(){return ee(_1).default}});var w1=Ws();Object.defineProperty(R,"XmlCdata",{enumerable:!0,get:function(){return ee(w1).default}});var x1=Ks();Object.defineProperty(R,"XmlCharData",{enumerable:!0,get:function(){return ee(x1).default}});var S1=Pn();Object.defineProperty(R,"XmlCharRef",{enumerable:!0,get:function(){return ee(S1).default}});var E1=lr();Object.defineProperty(R,"XmlComment",{enumerable:!0,get:function(){return ee(E1).default}});var C1=no();Object.defineProperty(R,"XmlDecl",{enumerable:!0,get:function(){return ee(C1).default}});var P1=jn();Object.defineProperty(R,"XmlDocument",{enumerable:!0,get:function(){return ee(P1).default}});var O1=An();Object.defineProperty(R,"XmlDtd",{enumerable:!0,get:function(){return ee(O1).default}});var D1=Ms();Object.defineProperty(R,"XmlDtdAttlist",{enumerable:!0,get:function(){return ee(D1).default}});var F1=Ns();Object.defineProperty(R,"XmlDtdElement",{enumerable:!0,get:function(){return ee(F1).default}});var I1=Ls();Object.defineProperty(R,"XmlDtdEntity",{enumerable:!0,get:function(){return ee(I1).default}});var A1=Bs();Object.defineProperty(R,"XmlDtdNotation",{enumerable:!0,get:function(){return ee(A1).default}});var R1=Xs();Object.defineProperty(R,"XmlDtdParamEntityRef",{enumerable:!0,get:function(){return ee(R1).default}});var k1=Mn();Object.defineProperty(R,"XmlElement",{enumerable:!0,get:function(){return ee(k1).default}});var q1=On();Object.defineProperty(R,"XmlEntityRef",{enumerable:!0,get:function(){return ee(q1).default}});var M1=cr();Object.defineProperty(R,"XmlProcInst",{enumerable:!0,get:function(){return ee(M1).default}});function T1(t){return t===void 0&&(t={}),new v1.default(t)}R.document=T1});var io=y(te=>{"use strict";Object.defineProperty(te,"__esModule",{value:!0});te.stringify=te.isMap=te.isSet=te.isFunction=te.isArray=te.isObject=te.isNull=te.isUndefined=void 0;function hd(t){return Object.prototype.toString.call(t)==="[object Undefined]"}te.isUndefined=hd;function pd(t){return Object.prototype.toString.call(t)==="[object Null]"}te.isNull=pd;function N1(t){return Object.prototype.toString.call(t)==="[object Object]"}te.isObject=N1;function j1(t){return Object.prototype.toString.call(t)==="[object Array]"}te.isArray=j1;function md(t){return Object.prototype.toString.call(t)==="[object Function]"}te.isFunction=md;function L1(t){return Object.prototype.toString.call(t)==="[object Set]"}te.isSet=L1;function $1(t){return Object.prototype.toString.call(t)==="[object Map]"}te.isMap=$1;function B1(t){return!hd(t)&&!pd(t)&&md(t?.toString)&&(t=t.toString()),String(t)}te.stringify=B1});var wd=y(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.WrapHandlers=Ee.TypeHandlers=Ee.FormatOptions=Ee.DtdOptions=Ee.DeclarationOptions=Ee.Options=void 0;var Ne=io(),U1=function(){function t(e){e===void 0&&(e={}),this.aliasString="=",this.attributeString="@",this.cdataInvalidChars=!1,this.cdataKeys=[],this.replaceInvalidChars=!1,this.useSelfClosingTagIfEmpty=!0,this.validation=!0,this.valueString="#",(0,Ne.isUndefined)(e.validation)||(this.validation=e.validation),(0,Ne.isUndefined)(e.aliasString)||(this.aliasString=e.aliasString),(0,Ne.isUndefined)(e.attributeString)||(this.attributeString=e.attributeString),(0,Ne.isUndefined)(e.cdataInvalidChars)||(this.cdataInvalidChars=e.cdataInvalidChars),(0,Ne.isUndefined)(e.cdataKeys)||(this.cdataKeys=e.cdataKeys),this.declaration=new gd(e.declaration),this.dtd=new yd(this.validation,e.dtd),this.format=new vd(e.format),(0,Ne.isUndefined)(e.replaceInvalidChars)||(this.replaceInvalidChars=e.replaceInvalidChars),this.typeHandlers=new bd(e.typeHandlers),(0,Ne.isUndefined)(e.useSelfClosingTagIfEmpty)||(this.useSelfClosingTagIfEmpty=e.useSelfClosingTagIfEmpty),(0,Ne.isUndefined)(e.valueString)||(this.valueString=e.valueString),this.wrapHandlers=new _d(e.wrapHandlers)}return t}();Ee.Options=U1;var gd=function(){function t(e){e===void 0&&(e={}),this.include=!0,(0,Ne.isUndefined)(e.include)||(this.include=e.include),this.encoding=e.encoding,this.standalone=e.standalone,this.version=e.version}return t}();Ee.DeclarationOptions=gd;var yd=function(){function t(e,r){if(r===void 0&&(r={}),this.include=!1,(0,Ne.isUndefined)(r.include)||(this.include=r.include),e&&(0,Ne.isUndefined)(r.name)&&this.include)throw new Error("options.dtd.name should be defined if options.dtd.include is true");this.name=r.name,this.sysId=r.sysId,this.pubId=r.pubId}return t}();Ee.DtdOptions=yd;var vd=function(){function t(e){e===void 0&&(e={}),this.doubleQuotes=e.doubleQuotes,this.indent=e.indent,this.newline=e.newline,this.pretty=e.pretty}return t}();Ee.FormatOptions=vd;var bd=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.TypeHandlers=bd;var _d=function(){function t(e){e===void 0&&(e={});for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(this[r]=e[r])}return t}();Ee.WrapHandlers=_d});var Od=y(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.parse=Ze.parseToExistingElement=Ze.Absent=void 0;var Sd=dd(),Ed=wd(),V=io(),so=function(){function t(){}return Object.defineProperty(t,"instance",{get:function(){return t._instance},enumerable:!1,configurable:!0}),t._instance=new t,t}();Ze.Absent=so;function oo(t,e){var r=Object.prototype.toString.call(t),n;return Object.prototype.hasOwnProperty.call(e.typeHandlers,"*")&&(n=e.typeHandlers["*"]),Object.prototype.hasOwnProperty.call(e.typeHandlers,r)&&(n=e.typeHandlers[r]),n}function Cd(t,e,r){var n=function(o){return r.cdataInvalidChars&&(o.indexOf("<")!==-1||o.indexOf("&")!==-1)||r.cdataKeys.indexOf(e.name)!==-1||r.cdataKeys.indexOf("*")!==-1};if(e instanceof Sd.XmlElement)if(n(t))for(var i=t.split("]]>"),s=0;s<i.length;s++)n(i[s])?e.cdata({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}):e.charData({charData:i[s],replaceInvalidCharsInCharData:r.replaceInvalidChars}),s<i.length-1&&e.charData({charData:"]]>",replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.charData({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars});else e.text({charData:t,replaceInvalidCharsInCharData:r.replaceInvalidChars})}function X1(t,e,r,n){var i=r.attribute({name:t,replaceInvalidCharsInName:n.replaceInvalidChars});Cd((0,V.stringify)(e),i,n)}function xd(t,e,r,n){if(t===n.aliasString){r.name=(0,V.stringify)(e);return}if(t.indexOf(n.attributeString)===0&&(0,V.isObject)(e)){for(var i=0,s=Object.keys(e);i<s.length;i++){var o=s[i];X1(o,(0,V.stringify)(e[o]),r,n)}return}if(t.indexOf(n.valueString)===0){Ln(t,(0,V.stringify)(e),r,n);return}var a=r;if(!(0,V.isArray)(e)&&!(0,V.isSet)(e)){var u=oo(e,n);if(!(0,V.isUndefined)(u)&&u(e)===so.instance)return;a=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(t,e,a,n)}function H1(t,e,r){if((0,V.isMap)(t))t.forEach(function(o,a){xd((0,V.stringify)(a),o,e,r)});else for(var n=0,i=Object.keys(t);n<i.length;n++){var s=i[n];xd(s,t[s],e,r)}}function G1(t,e,r,n){var i;Object.prototype.hasOwnProperty.call(n.wrapHandlers,"*")&&(i=n.wrapHandlers["*"]),Object.prototype.hasOwnProperty.call(n.wrapHandlers,t)&&(i=n.wrapHandlers[t]);var s=t,o=r;if(!(0,V.isUndefined)(i)){var a=i(s,e);(0,V.isNull)(a)||(s=a,o=r.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty}))}e.forEach(function(u){var h=o;if(!(0,V.isArray)(u)&&!(0,V.isSet)(u)){var c=oo(u,n);if(!(0,V.isUndefined)(c)&&c(u)===so.instance)return;h=o.element({name:s,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty})}Ln(s,u,h,n)})}function Ln(t,e,r,n){var i=oo(e,n);if((0,V.isUndefined)(i)||(e=i(e)),(0,V.isObject)(e)||(0,V.isMap)(e)){H1(e,r,n);return}if((0,V.isArray)(e)||(0,V.isSet)(e)){G1(t,e,r,n);return}Cd((0,V.stringify)(e),r,n)}function Pd(t,e,r){var n=new Ed.Options(r);Ln(t.name,e,t,n)}Ze.parseToExistingElement=Pd;function z1(t,e,r){var n=new Ed.Options(r),i=new Sd.XmlDocument({validation:n.validation});n.declaration.include&&i.decl(n.declaration),n.dtd.include&&i.dtd({name:n.dtd.name,pubId:n.dtd.pubId,sysId:n.dtd.sysId});var s=i.element({name:t,replaceInvalidCharsInName:n.replaceInvalidChars,useSelfClosingTagIfEmpty:n.useSelfClosingTagIfEmpty});return Pd(s,e,r),i.toString(n.format)}Ze.parse=z1});var uo=X(require("node:path"));var Tr=X(require("node:crypto")),rt=X(require("node:fs")),si=X(require("node:path")),oi=X(yt()),Nr=si.default.resolve(__dirname,"./../apiCache"),vu=`${Nr}/siteHash.json`;function bu(){rt.default.existsSync(Nr)||rt.default.mkdirSync(Nr),console.info("Cache initialized")}function _u(t){let e=Tr.default.createHash("sha256");return e.update(JSON.stringify(t)),`${Nr}/${e.digest("hex")}`}function wu(t){let e=Tr.default.randomBytes(16).toString("hex"),r=Tr.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function xu(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=_u(t),i=si.default.dirname(n);rt.default.existsSync(i)||rt.default.mkdirSync(i,{recursive:!0}),rt.default.writeFileSync(n,r,"utf8")}function Su(t){try{let e=_u(t);return oi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function Q0(){try{return oi.default.readJSONSync(vu,{encoding:"utf-8"})||{}}catch{return{}}}function Eu(t,e){let r=Q0(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,rt.default.writeFileSync(vu,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var mm=X(Hr()),fl=X(xt()),Ye=X(yt()),gm=X(Hc()),Ni=X(cl());var ll="10.3.26";fl.default.config();var ym=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),Eb=Ni.default.sync(__dirname),Cb=Ni.default.sync();function ji(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
|
|
23
23
|
`,s=`
|
|
24
24
|
\u2570${"\u2500".repeat(r)}\u256F`,o=`\u2502${n}${t}${n}\u2502`;console.log(`${i}${o}${s}`)}function Me(t){ym&&console.info(t.replace(/(\s)\s+/g,"$1"))}function dl(t){return new Promise(e=>setTimeout(e,t))}function Li(t,e=3){return(t/1e3).toFixed(e)}function $i(t){return"site"in t&&t.site?t?.site:void 0}function Bi(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&Bi(t[r],e)}function Ui(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function hl(t){let e=Ye.default.readdirSync(t),r={},n=e.filter(s=>{let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),{id:u,entity:h,fullUrl:c}=a;return!!(u&&h&&c)});for(let s of n){let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),u=Ye.default.statSync(o).mtimeMs,{id:h}=a;(!r[h]||u>Ye.default.statSync(`${t}/${r[h]}`).mtimeMs)&&(r[h]=s)}let i=0;for(let s of n){let o=`${t}/${s}`,a=Ye.default.readJSONSync(o,"utf-8"),{id:u}=a;s!==r[u]&&(Ye.default.unlinkSync(o),i++)}console.log(`Sanitize apiCache folder for ${i} files`)}var vr=X(require("node:fs")),qd=X(require("node:fs/promises")),Nt=X(require("node:path")),Md=X(xt()),$n=X(yt()),Td=X(Ri());var Jf=X(xt());var Gf=X(gs()),zf=X(Hr()),Wf=X(xt());var Uf=X(gs()),Xf=X(Hr()),ys=class{user;password;baseUrl;headers;constructor(){this.user=process.env.botEmail,this.password=process.env.botPassword,this.baseUrl=process.env.API_URL}async login(){try{let e=await(0,Uf.default)({url:`${this.baseUrl}/login_check`,method:"POST",headers:{"Content-Type":"application/json"},data:{username:this.user,password:this.password}});if(e.status===200){let{data:{token:r}}=e;this.headers={Authorization:"bearer "+r,"Cache-Control":"no-store"}}return this.headers}catch{console.error(Xf.default.red(`
|
|
25
25
|
\u256D\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256E
|
package/build/index.js
CHANGED
|
@@ -25,7 +25,7 @@ GFS4: `),console.error(t)});z[ae]||($u=global[ae]||[],Uu(z,$u),z.close=function(
|
|
|
25
25
|
\u2502 Access credentials failure \u2502
|
|
26
26
|
\u2502 Check that the login details are correct in your .env file \u2502
|
|
27
27
|
\u2570\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u256F
|
|
28
|
-
`)),process.exit(1)}}},Pt=new Ii;var ad=q(Ei()),ud=q(Qt()),cd=q(Xe());var dn=q(require("node:crypto")),dt=q(require("node:fs")),Ki=q(require("node:path")),Yi=q(ft()),hn=Ki.default.resolve(__dirname,"./../apiCache"),$l=`${hn}/siteHash.json`;function Bl(){dt.default.existsSync(hn)||dt.default.mkdirSync(hn),console.info("Cache initialized")}function Ul(t){let e=dn.default.createHash("sha256");return e.update(JSON.stringify(t)),`${hn}/${e.digest("hex")}`}function Xl(t){let e=dn.default.randomBytes(16).toString("hex"),r=dn.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function Hl(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Ul(t),i=Ki.default.dirname(n);dt.default.existsSync(i)||dt.default.mkdirSync(i,{recursive:!0}),dt.default.writeFileSync(n,r,"utf8")}function Gl(t){try{let e=Ul(t);return Yi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function Rg(){try{return Yi.default.readJSONSync($l,{encoding:"utf-8"})||{}}catch{return{}}}function zl(t,e){let r=Rg(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,dt.default.writeFileSync($l,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var my=q(Qt()),Zf=q(Xe()),Ge=q(ft()),ed=q(Mf()),wo=q(_o());var En="10.3.
|
|
28
|
+
`)),process.exit(1)}}},Pt=new Ii;var ad=q(Ei()),ud=q(Qt()),cd=q(Xe());var dn=q(require("node:crypto")),dt=q(require("node:fs")),Ki=q(require("node:path")),Yi=q(ft()),hn=Ki.default.resolve(__dirname,"./../apiCache"),$l=`${hn}/siteHash.json`;function Bl(){dt.default.existsSync(hn)||dt.default.mkdirSync(hn),console.info("Cache initialized")}function Ul(t){let e=dn.default.createHash("sha256");return e.update(JSON.stringify(t)),`${hn}/${e.digest("hex")}`}function Xl(t){let e=dn.default.randomBytes(16).toString("hex"),r=dn.default.createHash("sha256");return r.update(`${t}${e}`),r.digest("hex")}function Hl(t,e){let r=typeof e=="string"?e:JSON.stringify(e),n=Ul(t),i=Ki.default.dirname(n);dt.default.existsSync(i)||dt.default.mkdirSync(i,{recursive:!0}),dt.default.writeFileSync(n,r,"utf8")}function Gl(t){try{let e=Ul(t);return Yi.default.readJSONSync(e,{encoding:"utf-8"})}catch{return null}}function Rg(){try{return Yi.default.readJSONSync($l,{encoding:"utf-8"})||{}}catch{return{}}}function zl(t,e){let r=Rg(),n=r[t],i=e||n||new Date().valueOf();return i!==n&&(r[t]=i,dt.default.writeFileSync($l,JSON.stringify(r),{encoding:"utf-8"})),i.toString()}var my=q(Qt()),Zf=q(Xe()),Ge=q(ft()),ed=q(Mf()),wo=q(_o());var En="10.3.26";Zf.default.config();var gy=!!process.env.GRIDDO_BUILD_LOGS&&!!JSON.parse(process.env.GRIDDO_BUILD_LOGS)||!!process.env.LOGS&&!!JSON.parse(process.env.LOGS),td=wo.default.sync(__dirname),rd=wo.default.sync();function nd(t){let e=[];return Ge.default.readdirSync(t).forEach(n=>{let i=`${t}/${n}`;e.push(i)}),e}function xo(t){let e=t.length,r=t.length+2,n=" ".repeat(Math.floor((r-e)/2)),i=`\u256D${"\u2500".repeat(r)}\u256E
|
|
29
29
|
`,o=`
|
|
30
30
|
\u2570${"\u2500".repeat(r)}\u256F`,s=`\u2502${n}${t}${n}\u2502`;console.log(`${i}${s}${o}`)}function je(t){gy&&console.info(t.replace(/(\s)\s+/g,"$1"))}function id(t){return new Promise(e=>setTimeout(e,t))}function So(t,e=3){return(t/1e3).toFixed(e)}function Eo(t){return"site"in t&&t.site?t?.site:void 0}function Co(t,e){for(let r in t)e.includes(r)?delete t[r]:typeof t[r]=="object"&&Co(t[r],e)}function Po(t){return t.map(({name:e,id:r})=>`${e} (${r})`).join(", ")}function Do(t){let e=`
|
|
31
31
|
\xB7\xB7
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/cx",
|
|
3
3
|
"description": "Griddo SSG based on Gatsby",
|
|
4
|
-
"version": "10.3.
|
|
4
|
+
"version": "10.3.26",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"react-helmet": "^6.0.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@griddo/eslint-config-back": "^10.3.
|
|
73
|
+
"@griddo/eslint-config-back": "^10.3.26",
|
|
74
74
|
"@types/babel__core": "^7.20.0",
|
|
75
75
|
"@types/babel__preset-env": "^7.9.2",
|
|
76
76
|
"@types/csvtojson": "^2.0.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"publishConfig": {
|
|
118
118
|
"access": "public"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "8dd1e9969f77d2f1cbcd19f12eb236b51d804037"
|
|
121
121
|
}
|