@halo-dev/api-client 2.21.1 → 2.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index.d.mts → index.d.ts} +849 -10270
- package/dist/index.iife.js +4 -4
- package/dist/index.js +23054 -0
- package/package.json +44 -21
- package/dist/index.mjs +0 -4
package/dist/index.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import e from"axios";var t=Object.create,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,t,a,s)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=i(t),l=0,u=c.length,d;l<u;l++)d=c[l],!o.call(e,d)&&d!==a&&n(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(s=r(t,d))||s.enumerable});return e},l=(e,r,i)=>(i=e==null?{}:t(a(e)),c(r||!e||!e.__esModule?n(i,`default`,{value:e,enumerable:!0}):i,e));const u=`http://localhost:8091`.replace(/\/+$/,``);var d=class{configuration;constructor(t,n=u,r=e){this.basePath=n,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath??n)}},f=class extends Error{constructor(e,t){super(t),this.field=e,this.name=`RequiredError`}};const p={},m=`https://example.com`,h=function(e,t,n){if(n==null)throw new f(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},g=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},_=async function(e,t){if(t&&t.accessToken){let n=typeof t.accessToken==`function`?await t.accessToken():await t.accessToken;e.Authorization=`Bearer `+n}};function v(e,t,n=``){t!=null&&(typeof t==`object`?Array.isArray(t)?t.forEach(t=>v(e,t,n)):Object.keys(t).forEach(r=>v(e,t[r],`${n}${n===``?``:`.`}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}const y=function(e,...t){let n=new URLSearchParams(e.search);v(n,t),e.search=n.toString()},b=function(e,t,n){let r=typeof e!=`string`,i=r&&n&&n.isJsonMime?n.isJsonMime(t.headers[`Content-Type`]):r;return i?JSON.stringify(e===void 0?{}:e):e||``},x=function(e){return e.pathname+e.search+e.hash},S=function(e,t,n,r){return(i=t,a=n)=>{let o={...e.options,url:(i.defaults.baseURL?``:r?.basePath??a)+e.url};return i.request(o)}},C=function(e){return{createAnnotationSetting:async(t,n={})=>{let r=`/api/v1alpha1/annotationsettings`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteAnnotationSetting:async(t,n={})=>{h(`deleteAnnotationSetting`,`name`,t);let r=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getAnnotationSetting:async(t,n={})=>{h(`getAnnotationSetting`,`name`,t);let r=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listAnnotationSetting:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/annotationsettings`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchAnnotationSetting:async(t,n,r={})=>{h(`patchAnnotationSetting`,`name`,t);let i=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateAnnotationSetting:async(t,n,r={})=>{h(`updateAnnotationSetting`,`name`,t);let i=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},w=function(t){let n=C(t);return{async createAnnotationSetting(r,i){let a=await n.createAnnotationSetting(r,i),o=t?.serverIndex??0,s=p[`AnnotationSettingV1alpha1Api.createAnnotationSetting`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteAnnotationSetting(r,i){let a=await n.deleteAnnotationSetting(r,i),o=t?.serverIndex??0,s=p[`AnnotationSettingV1alpha1Api.deleteAnnotationSetting`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getAnnotationSetting(r,i){let a=await n.getAnnotationSetting(r,i),o=t?.serverIndex??0,s=p[`AnnotationSettingV1alpha1Api.getAnnotationSetting`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listAnnotationSetting(r,i,a,o,s,c){let l=await n.listAnnotationSetting(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`AnnotationSettingV1alpha1Api.listAnnotationSetting`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchAnnotationSetting(r,i,a){let o=await n.patchAnnotationSetting(r,i,a),s=t?.serverIndex??0,c=p[`AnnotationSettingV1alpha1Api.patchAnnotationSetting`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateAnnotationSetting(r,i,a){let o=await n.updateAnnotationSetting(r,i,a),s=t?.serverIndex??0,c=p[`AnnotationSettingV1alpha1Api.updateAnnotationSetting`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},T=function(e,t,n){let r=w(e);return{createAnnotationSetting(e={},i){return r.createAnnotationSetting(e.annotationSetting,i).then(e=>e(n,t))},deleteAnnotationSetting(e,i){return r.deleteAnnotationSetting(e.name,i).then(e=>e(n,t))},getAnnotationSetting(e,i){return r.getAnnotationSetting(e.name,i).then(e=>e(n,t))},listAnnotationSetting(e={},i){return r.listAnnotationSetting(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchAnnotationSetting(e,i){return r.patchAnnotationSetting(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateAnnotationSetting(e,i){return r.updateAnnotationSetting(e.name,e.annotationSetting,i).then(e=>e(n,t))}}};var E=class extends d{createAnnotationSetting(e={},t){return w(this.configuration).createAnnotationSetting(e.annotationSetting,t).then(e=>e(this.axios,this.basePath))}deleteAnnotationSetting(e,t){return w(this.configuration).deleteAnnotationSetting(e.name,t).then(e=>e(this.axios,this.basePath))}getAnnotationSetting(e,t){return w(this.configuration).getAnnotationSetting(e.name,t).then(e=>e(this.axios,this.basePath))}listAnnotationSetting(e={},t){return w(this.configuration).listAnnotationSetting(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchAnnotationSetting(e,t){return w(this.configuration).patchAnnotationSetting(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAnnotationSetting(e,t){return w(this.configuration).updateAnnotationSetting(e.name,e.annotationSetting,t).then(e=>e(this.axios,this.basePath))}};const ee=function(e){return{createAttachment:async(t,n={})=>{let r=`/apis/storage.halo.run/v1alpha1/attachments`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteAttachment:async(t,n={})=>{h(`deleteAttachment`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getAttachment:async(t,n={})=>{h(`getAttachment`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listAttachment:async(t,n,r,i,a,o={})=>{let s=`/apis/storage.halo.run/v1alpha1/attachments`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchAttachment:async(t,n,r={})=>{h(`patchAttachment`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateAttachment:async(t,n,r={})=>{h(`updateAttachment`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},D=function(t){let n=ee(t);return{async createAttachment(r,i){let a=await n.createAttachment(r,i),o=t?.serverIndex??0,s=p[`AttachmentV1alpha1Api.createAttachment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteAttachment(r,i){let a=await n.deleteAttachment(r,i),o=t?.serverIndex??0,s=p[`AttachmentV1alpha1Api.deleteAttachment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getAttachment(r,i){let a=await n.getAttachment(r,i),o=t?.serverIndex??0,s=p[`AttachmentV1alpha1Api.getAttachment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listAttachment(r,i,a,o,s,c){let l=await n.listAttachment(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`AttachmentV1alpha1Api.listAttachment`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchAttachment(r,i,a){let o=await n.patchAttachment(r,i,a),s=t?.serverIndex??0,c=p[`AttachmentV1alpha1Api.patchAttachment`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateAttachment(r,i,a){let o=await n.updateAttachment(r,i,a),s=t?.serverIndex??0,c=p[`AttachmentV1alpha1Api.updateAttachment`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},O=function(e,t,n){let r=D(e);return{createAttachment(e={},i){return r.createAttachment(e.attachment,i).then(e=>e(n,t))},deleteAttachment(e,i){return r.deleteAttachment(e.name,i).then(e=>e(n,t))},getAttachment(e,i){return r.getAttachment(e.name,i).then(e=>e(n,t))},listAttachment(e={},i){return r.listAttachment(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchAttachment(e,i){return r.patchAttachment(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateAttachment(e,i){return r.updateAttachment(e.name,e.attachment,i).then(e=>e(n,t))}}};var k=class extends d{createAttachment(e={},t){return D(this.configuration).createAttachment(e.attachment,t).then(e=>e(this.axios,this.basePath))}deleteAttachment(e,t){return D(this.configuration).deleteAttachment(e.name,t).then(e=>e(this.axios,this.basePath))}getAttachment(e,t){return D(this.configuration).getAttachment(e.name,t).then(e=>e(this.axios,this.basePath))}listAttachment(e={},t){return D(this.configuration).listAttachment(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchAttachment(e,t){return D(this.configuration).patchAttachment(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAttachment(e,t){return D(this.configuration).updateAttachment(e.name,e.attachment,t).then(e=>e(this.axios,this.basePath))}};const te=function(e){return{externalTransferAttachment:async(t,n={})=>{h(`externalTransferAttachment`,`uploadFromUrlRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/attachments/-/upload-from-url`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},searchAttachments:async(t,n,r,i,a,o,s,c,l={})=>{let u=`/apis/api.console.halo.run/v1alpha1/attachments`,d=new URL(u,m),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...l},h={},v={};g(p,e),await _(h,e),t!==void 0&&(v.page=t),n!==void 0&&(v.size=n),r&&(v.labelSelector=r),i&&(v.fieldSelector=i),a&&(v.sort=a),o!==void 0&&(v.ungrouped=o),s!==void 0&&(v.keyword=s),c&&(v.accepts=c),y(d,v);let b=f&&f.headers?f.headers:{};return p.headers={...h,...b,...l.headers},{url:x(d),options:p}},uploadAttachment:async(t,n,r,i={})=>{h(`uploadAttachment`,`file`,t),h(`uploadAttachment`,`policyName`,n);let a=`/apis/api.console.halo.run/v1alpha1/attachments/upload`,o=new URL(a,m),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={},u={},d=new(e&&e.formDataCtor||FormData);g(c,e),await _(l,e),t!==void 0&&d.append(`file`,t),r!==void 0&&d.append(`groupName`,r),n!==void 0&&d.append(`policyName`,n),l[`Content-Type`]=`multipart/form-data`,y(o,u);let f=s&&s.headers?s.headers:{};return c.headers={...l,...f,...i.headers},c.data=d,{url:x(o),options:c}}}},A=function(t){let n=te(t);return{async externalTransferAttachment(r,i){let a=await n.externalTransferAttachment(r,i),o=t?.serverIndex??0,s=p[`AttachmentV1alpha1ConsoleApi.externalTransferAttachment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async searchAttachments(r,i,a,o,s,c,l,d,f){let m=await n.searchAttachments(r,i,a,o,s,c,l,d,f),h=t?.serverIndex??0,g=p[`AttachmentV1alpha1ConsoleApi.searchAttachments`]?.[h]?.url;return(n,r)=>S(m,e,u,t)(n,g||r)},async uploadAttachment(r,i,a,o){let s=await n.uploadAttachment(r,i,a,o),c=t?.serverIndex??0,l=p[`AttachmentV1alpha1ConsoleApi.uploadAttachment`]?.[c]?.url;return(n,r)=>S(s,e,u,t)(n,l||r)}}},j=function(e,t,n){let r=A(e);return{externalTransferAttachment(e,i){return r.externalTransferAttachment(e.uploadFromUrlRequest,i).then(e=>e(n,t))},searchAttachments(e={},i){return r.searchAttachments(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.ungrouped,e.keyword,e.accepts,i).then(e=>e(n,t))},uploadAttachment(e,i){return r.uploadAttachment(e.file,e.policyName,e.groupName,i).then(e=>e(n,t))}}};var ne=class extends d{externalTransferAttachment(e,t){return A(this.configuration).externalTransferAttachment(e.uploadFromUrlRequest,t).then(e=>e(this.axios,this.basePath))}searchAttachments(e={},t){return A(this.configuration).searchAttachments(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.ungrouped,e.keyword,e.accepts,t).then(e=>e(this.axios,this.basePath))}uploadAttachment(e,t){return A(this.configuration).uploadAttachment(e.file,e.policyName,e.groupName,t).then(e=>e(this.axios,this.basePath))}};const re=function(e){return{createAttachmentForPost:async(t,n,r,i,a={})=>{h(`createAttachmentForPost`,`file`,t);let o=`/apis/uc.api.storage.halo.run/v1alpha1/attachments`,s=new URL(o,m),c;e&&(c=e.baseOptions);let l={method:`POST`,...c,...a},u={},d={},f=new(e&&e.formDataCtor||FormData);g(l,e),await _(u,e),n!==void 0&&(d.waitForPermalink=n),t!==void 0&&f.append(`file`,t),r!==void 0&&f.append(`postName`,r),i!==void 0&&f.append(`singlePageName`,i),u[`Content-Type`]=`multipart/form-data`,y(s,d);let p=c&&c.headers?c.headers:{};return l.headers={...u,...p,...a.headers},l.data=f,{url:x(s),options:l}},externalTransferAttachment1:async(t,n,r={})=>{h(`externalTransferAttachment1`,`ucUploadFromUrlRequest`,t);let i=`/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload-from-url`,a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),n!==void 0&&(l.waitForPermalink=n),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(t,s,e),{url:x(a),options:s}},listMyAttachments:async(t,n,r,i,a,o,s,c,l={})=>{let u=`/apis/uc.api.storage.halo.run/v1alpha1/attachments`,d=new URL(u,m),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...l},h={},v={};g(p,e),await _(h,e),t!==void 0&&(v.page=t),n!==void 0&&(v.size=n),r&&(v.labelSelector=r),i&&(v.fieldSelector=i),a&&(v.sort=a),o!==void 0&&(v.ungrouped=o),s!==void 0&&(v.keyword=s),c&&(v.accepts=c),y(d,v);let b=f&&f.headers?f.headers:{};return p.headers={...h,...b,...l.headers},{url:x(d),options:p}},uploadUcAttachment:async(t,n,r={})=>{h(`uploadUcAttachment`,`file`,t);let i=`/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload`,a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={},u=new(e&&e.formDataCtor||FormData);g(s,e),await _(c,e),t!==void 0&&u.append(`file`,t),n!==void 0&&u.append(`formData`,new Blob([JSON.stringify(n)],{type:`application/json`})),c[`Content-Type`]=`multipart/form-data`,y(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=u,{url:x(a),options:s}}}},M=function(t){let n=re(t);return{async createAttachmentForPost(r,i,a,o,s){let c=await n.createAttachmentForPost(r,i,a,o,s),l=t?.serverIndex??0,d=p[`AttachmentV1alpha1UcApi.createAttachmentForPost`]?.[l]?.url;return(n,r)=>S(c,e,u,t)(n,d||r)},async externalTransferAttachment1(r,i,a){let o=await n.externalTransferAttachment1(r,i,a),s=t?.serverIndex??0,c=p[`AttachmentV1alpha1UcApi.externalTransferAttachment1`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async listMyAttachments(r,i,a,o,s,c,l,d,f){let m=await n.listMyAttachments(r,i,a,o,s,c,l,d,f),h=t?.serverIndex??0,g=p[`AttachmentV1alpha1UcApi.listMyAttachments`]?.[h]?.url;return(n,r)=>S(m,e,u,t)(n,g||r)},async uploadUcAttachment(r,i,a){let o=await n.uploadUcAttachment(r,i,a),s=t?.serverIndex??0,c=p[`AttachmentV1alpha1UcApi.uploadUcAttachment`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},ie=function(e,t,n){let r=M(e);return{createAttachmentForPost(e,i){return r.createAttachmentForPost(e.file,e.waitForPermalink,e.postName,e.singlePageName,i).then(e=>e(n,t))},externalTransferAttachment1(e,i){return r.externalTransferAttachment1(e.ucUploadFromUrlRequest,e.waitForPermalink,i).then(e=>e(n,t))},listMyAttachments(e={},i){return r.listMyAttachments(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.ungrouped,e.keyword,e.accepts,i).then(e=>e(n,t))},uploadUcAttachment(e,i){return r.uploadUcAttachment(e.file,e.formData,i).then(e=>e(n,t))}}};var N=class extends d{createAttachmentForPost(e,t){return M(this.configuration).createAttachmentForPost(e.file,e.waitForPermalink,e.postName,e.singlePageName,t).then(e=>e(this.axios,this.basePath))}externalTransferAttachment1(e,t){return M(this.configuration).externalTransferAttachment1(e.ucUploadFromUrlRequest,e.waitForPermalink,t).then(e=>e(this.axios,this.basePath))}listMyAttachments(e={},t){return M(this.configuration).listMyAttachments(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.ungrouped,e.keyword,e.accepts,t).then(e=>e(this.axios,this.basePath))}uploadUcAttachment(e,t){return M(this.configuration).uploadUcAttachment(e.file,e.formData,t).then(e=>e(this.axios,this.basePath))}};const ae=function(e){return{createAuthProvider:async(t,n={})=>{let r=`/apis/auth.halo.run/v1alpha1/authproviders`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteAuthProvider:async(t,n={})=>{h(`deleteAuthProvider`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getAuthProvider:async(t,n={})=>{h(`getAuthProvider`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listAuthProvider:async(t,n,r,i,a,o={})=>{let s=`/apis/auth.halo.run/v1alpha1/authproviders`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchAuthProvider:async(t,n,r={})=>{h(`patchAuthProvider`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateAuthProvider:async(t,n,r={})=>{h(`updateAuthProvider`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},P=function(t){let n=ae(t);return{async createAuthProvider(r,i){let a=await n.createAuthProvider(r,i),o=t?.serverIndex??0,s=p[`AuthProviderV1alpha1Api.createAuthProvider`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteAuthProvider(r,i){let a=await n.deleteAuthProvider(r,i),o=t?.serverIndex??0,s=p[`AuthProviderV1alpha1Api.deleteAuthProvider`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getAuthProvider(r,i){let a=await n.getAuthProvider(r,i),o=t?.serverIndex??0,s=p[`AuthProviderV1alpha1Api.getAuthProvider`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listAuthProvider(r,i,a,o,s,c){let l=await n.listAuthProvider(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`AuthProviderV1alpha1Api.listAuthProvider`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchAuthProvider(r,i,a){let o=await n.patchAuthProvider(r,i,a),s=t?.serverIndex??0,c=p[`AuthProviderV1alpha1Api.patchAuthProvider`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateAuthProvider(r,i,a){let o=await n.updateAuthProvider(r,i,a),s=t?.serverIndex??0,c=p[`AuthProviderV1alpha1Api.updateAuthProvider`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},oe=function(e,t,n){let r=P(e);return{createAuthProvider(e={},i){return r.createAuthProvider(e.authProvider,i).then(e=>e(n,t))},deleteAuthProvider(e,i){return r.deleteAuthProvider(e.name,i).then(e=>e(n,t))},getAuthProvider(e,i){return r.getAuthProvider(e.name,i).then(e=>e(n,t))},listAuthProvider(e={},i){return r.listAuthProvider(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchAuthProvider(e,i){return r.patchAuthProvider(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateAuthProvider(e,i){return r.updateAuthProvider(e.name,e.authProvider,i).then(e=>e(n,t))}}};var se=class extends d{createAuthProvider(e={},t){return P(this.configuration).createAuthProvider(e.authProvider,t).then(e=>e(this.axios,this.basePath))}deleteAuthProvider(e,t){return P(this.configuration).deleteAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}getAuthProvider(e,t){return P(this.configuration).getAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}listAuthProvider(e={},t){return P(this.configuration).listAuthProvider(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchAuthProvider(e,t){return P(this.configuration).patchAuthProvider(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAuthProvider(e,t){return P(this.configuration).updateAuthProvider(e.name,e.authProvider,t).then(e=>e(this.axios,this.basePath))}};const ce=function(e){return{disableAuthProvider:async(t,n={})=>{h(`disableAuthProvider`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/disable`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},enableAuthProvider:async(t,n={})=>{h(`enableAuthProvider`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/enable`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listAuthProviders:async(t={})=>{let n=`/apis/api.console.halo.run/v1alpha1/auth-providers`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}}}},le=function(t){let n=ce(t);return{async disableAuthProvider(r,i){let a=await n.disableAuthProvider(r,i),o=t?.serverIndex??0,s=p[`AuthProviderV1alpha1ConsoleApi.disableAuthProvider`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async enableAuthProvider(r,i){let a=await n.enableAuthProvider(r,i),o=t?.serverIndex??0,s=p[`AuthProviderV1alpha1ConsoleApi.enableAuthProvider`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listAuthProviders(r){let i=await n.listAuthProviders(r),a=t?.serverIndex??0,o=p[`AuthProviderV1alpha1ConsoleApi.listAuthProviders`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)}}},ue=function(e,t,n){let r=le(e);return{disableAuthProvider(e,i){return r.disableAuthProvider(e.name,i).then(e=>e(n,t))},enableAuthProvider(e,i){return r.enableAuthProvider(e.name,i).then(e=>e(n,t))},listAuthProviders(e){return r.listAuthProviders(e).then(e=>e(n,t))}}};var de=class extends d{disableAuthProvider(e,t){return le(this.configuration).disableAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}enableAuthProvider(e,t){return le(this.configuration).enableAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}listAuthProviders(e){return le(this.configuration).listAuthProviders(e).then(e=>e(this.axios,this.basePath))}};const fe=function(e){return{createBackup:async(t,n={})=>{let r=`/apis/migration.halo.run/v1alpha1/backups`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteBackup:async(t,n={})=>{h(`deleteBackup`,`name`,t);let r=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getBackup:async(t,n={})=>{h(`getBackup`,`name`,t);let r=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listBackup:async(t,n,r,i,a,o={})=>{let s=`/apis/migration.halo.run/v1alpha1/backups`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchBackup:async(t,n,r={})=>{h(`patchBackup`,`name`,t);let i=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateBackup:async(t,n,r={})=>{h(`updateBackup`,`name`,t);let i=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},F=function(t){let n=fe(t);return{async createBackup(r,i){let a=await n.createBackup(r,i),o=t?.serverIndex??0,s=p[`BackupV1alpha1Api.createBackup`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteBackup(r,i){let a=await n.deleteBackup(r,i),o=t?.serverIndex??0,s=p[`BackupV1alpha1Api.deleteBackup`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getBackup(r,i){let a=await n.getBackup(r,i),o=t?.serverIndex??0,s=p[`BackupV1alpha1Api.getBackup`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listBackup(r,i,a,o,s,c){let l=await n.listBackup(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`BackupV1alpha1Api.listBackup`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchBackup(r,i,a){let o=await n.patchBackup(r,i,a),s=t?.serverIndex??0,c=p[`BackupV1alpha1Api.patchBackup`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateBackup(r,i,a){let o=await n.updateBackup(r,i,a),s=t?.serverIndex??0,c=p[`BackupV1alpha1Api.updateBackup`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},pe=function(e,t,n){let r=F(e);return{createBackup(e={},i){return r.createBackup(e.backup,i).then(e=>e(n,t))},deleteBackup(e,i){return r.deleteBackup(e.name,i).then(e=>e(n,t))},getBackup(e,i){return r.getBackup(e.name,i).then(e=>e(n,t))},listBackup(e={},i){return r.listBackup(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchBackup(e,i){return r.patchBackup(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateBackup(e,i){return r.updateBackup(e.name,e.backup,i).then(e=>e(n,t))}}};var me=class extends d{createBackup(e={},t){return F(this.configuration).createBackup(e.backup,t).then(e=>e(this.axios,this.basePath))}deleteBackup(e,t){return F(this.configuration).deleteBackup(e.name,t).then(e=>e(this.axios,this.basePath))}getBackup(e,t){return F(this.configuration).getBackup(e.name,t).then(e=>e(this.axios,this.basePath))}listBackup(e={},t){return F(this.configuration).listBackup(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchBackup(e,t){return F(this.configuration).patchBackup(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateBackup(e,t){return F(this.configuration).updateBackup(e.name,e.backup,t).then(e=>e(this.axios,this.basePath))}};const he=function(e){return{createCategory:async(t,n={})=>{let r=`/apis/content.halo.run/v1alpha1/categories`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteCategory:async(t,n={})=>{h(`deleteCategory`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getCategory:async(t,n={})=>{h(`getCategory`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listCategory:async(t,n,r,i,a,o={})=>{let s=`/apis/content.halo.run/v1alpha1/categories`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchCategory:async(t,n,r={})=>{h(`patchCategory`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateCategory:async(t,n,r={})=>{h(`updateCategory`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},I=function(t){let n=he(t);return{async createCategory(r,i){let a=await n.createCategory(r,i),o=t?.serverIndex??0,s=p[`CategoryV1alpha1Api.createCategory`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteCategory(r,i){let a=await n.deleteCategory(r,i),o=t?.serverIndex??0,s=p[`CategoryV1alpha1Api.deleteCategory`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getCategory(r,i){let a=await n.getCategory(r,i),o=t?.serverIndex??0,s=p[`CategoryV1alpha1Api.getCategory`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listCategory(r,i,a,o,s,c){let l=await n.listCategory(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`CategoryV1alpha1Api.listCategory`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchCategory(r,i,a){let o=await n.patchCategory(r,i,a),s=t?.serverIndex??0,c=p[`CategoryV1alpha1Api.patchCategory`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateCategory(r,i,a){let o=await n.updateCategory(r,i,a),s=t?.serverIndex??0,c=p[`CategoryV1alpha1Api.updateCategory`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},L=function(e,t,n){let r=I(e);return{createCategory(e={},i){return r.createCategory(e.category,i).then(e=>e(n,t))},deleteCategory(e,i){return r.deleteCategory(e.name,i).then(e=>e(n,t))},getCategory(e,i){return r.getCategory(e.name,i).then(e=>e(n,t))},listCategory(e={},i){return r.listCategory(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchCategory(e,i){return r.patchCategory(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateCategory(e,i){return r.updateCategory(e.name,e.category,i).then(e=>e(n,t))}}};var ge=class extends d{createCategory(e={},t){return I(this.configuration).createCategory(e.category,t).then(e=>e(this.axios,this.basePath))}deleteCategory(e,t){return I(this.configuration).deleteCategory(e.name,t).then(e=>e(this.axios,this.basePath))}getCategory(e,t){return I(this.configuration).getCategory(e.name,t).then(e=>e(this.axios,this.basePath))}listCategory(e={},t){return I(this.configuration).listCategory(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchCategory(e,t){return I(this.configuration).patchCategory(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateCategory(e,t){return I(this.configuration).updateCategory(e.name,e.category,t).then(e=>e(this.axios,this.basePath))}};const _e=function(e){return{queryCategories:async(t,n,r,i,a,o={})=>{let s=`/apis/api.content.halo.run/v1alpha1/categories`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},queryCategoryByName:async(t,n={})=>{h(`queryCategoryByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},queryPostsByCategoryName:async(t,n,r,i,a,o,s={})=>{h(`queryPostsByCategoryName`,`name`,t);let c=`/apis/api.content.halo.run/v1alpha1/categories/{name}/posts`.replace(`{name}`,encodeURIComponent(String(t))),l=new URL(c,m),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};g(d,e),await _(f,e),n!==void 0&&(p.page=n),r!==void 0&&(p.size=r),i&&(p.labelSelector=i),a&&(p.fieldSelector=a),o&&(p.sort=o),y(l,p);let v=u&&u.headers?u.headers:{};return d.headers={...f,...v,...s.headers},{url:x(l),options:d}}}},ve=function(t){let n=_e(t);return{async queryCategories(r,i,a,o,s,c){let l=await n.queryCategories(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`CategoryV1alpha1PublicApi.queryCategories`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async queryCategoryByName(r,i){let a=await n.queryCategoryByName(r,i),o=t?.serverIndex??0,s=p[`CategoryV1alpha1PublicApi.queryCategoryByName`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async queryPostsByCategoryName(r,i,a,o,s,c,l){let d=await n.queryPostsByCategoryName(r,i,a,o,s,c,l),f=t?.serverIndex??0,m=p[`CategoryV1alpha1PublicApi.queryPostsByCategoryName`]?.[f]?.url;return(n,r)=>S(d,e,u,t)(n,m||r)}}},ye=function(e,t,n){let r=ve(e);return{queryCategories(e={},i){return r.queryCategories(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},queryCategoryByName(e,i){return r.queryCategoryByName(e.name,i).then(e=>e(n,t))},queryPostsByCategoryName(e,i){return r.queryPostsByCategoryName(e.name,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))}}};var be=class extends d{queryCategories(e={},t){return ve(this.configuration).queryCategories(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}queryCategoryByName(e,t){return ve(this.configuration).queryCategoryByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryPostsByCategoryName(e,t){return ve(this.configuration).queryPostsByCategoryName(e.name,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};const xe=function(e){return{createComment:async(t,n={})=>{let r=`/apis/content.halo.run/v1alpha1/comments`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteComment:async(t,n={})=>{h(`deleteComment`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getComment:async(t,n={})=>{h(`getComment`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listComment:async(t,n,r,i,a,o={})=>{let s=`/apis/content.halo.run/v1alpha1/comments`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchComment:async(t,n,r={})=>{h(`patchComment`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateComment:async(t,n,r={})=>{h(`updateComment`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},R=function(t){let n=xe(t);return{async createComment(r,i){let a=await n.createComment(r,i),o=t?.serverIndex??0,s=p[`CommentV1alpha1Api.createComment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteComment(r,i){let a=await n.deleteComment(r,i),o=t?.serverIndex??0,s=p[`CommentV1alpha1Api.deleteComment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getComment(r,i){let a=await n.getComment(r,i),o=t?.serverIndex??0,s=p[`CommentV1alpha1Api.getComment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listComment(r,i,a,o,s,c){let l=await n.listComment(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`CommentV1alpha1Api.listComment`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchComment(r,i,a){let o=await n.patchComment(r,i,a),s=t?.serverIndex??0,c=p[`CommentV1alpha1Api.patchComment`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateComment(r,i,a){let o=await n.updateComment(r,i,a),s=t?.serverIndex??0,c=p[`CommentV1alpha1Api.updateComment`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Se=function(e,t,n){let r=R(e);return{createComment(e={},i){return r.createComment(e.comment,i).then(e=>e(n,t))},deleteComment(e,i){return r.deleteComment(e.name,i).then(e=>e(n,t))},getComment(e,i){return r.getComment(e.name,i).then(e=>e(n,t))},listComment(e={},i){return r.listComment(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchComment(e,i){return r.patchComment(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateComment(e,i){return r.updateComment(e.name,e.comment,i).then(e=>e(n,t))}}};var Ce=class extends d{createComment(e={},t){return R(this.configuration).createComment(e.comment,t).then(e=>e(this.axios,this.basePath))}deleteComment(e,t){return R(this.configuration).deleteComment(e.name,t).then(e=>e(this.axios,this.basePath))}getComment(e,t){return R(this.configuration).getComment(e.name,t).then(e=>e(this.axios,this.basePath))}listComment(e={},t){return R(this.configuration).listComment(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchComment(e,t){return R(this.configuration).patchComment(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateComment(e,t){return R(this.configuration).updateComment(e.name,e.comment,t).then(e=>e(this.axios,this.basePath))}};const we=function(e){return{createComment:async(t,n={})=>{h(`createComment`,`commentRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/comments`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},createReply:async(t,n,r={})=>{h(`createReply`,`name`,t),h(`createReply`,`replyRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},listComments:async(t,n,r,i,a,o,s,c,l={})=>{let u=`/apis/api.console.halo.run/v1alpha1/comments`,d=new URL(u,m),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...l},h={},v={};g(p,e),await _(h,e),t!==void 0&&(v.page=t),n!==void 0&&(v.size=n),r&&(v.labelSelector=r),i&&(v.fieldSelector=i),a&&(v.sort=a),o!==void 0&&(v.keyword=o),s!==void 0&&(v.ownerKind=s),c!==void 0&&(v.ownerName=c),y(d,v);let b=f&&f.headers?f.headers:{};return p.headers={...h,...b,...l.headers},{url:x(d),options:p}}}},z=function(t){let n=we(t);return{async createComment(r,i){let a=await n.createComment(r,i),o=t?.serverIndex??0,s=p[`CommentV1alpha1ConsoleApi.createComment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async createReply(r,i,a){let o=await n.createReply(r,i,a),s=t?.serverIndex??0,c=p[`CommentV1alpha1ConsoleApi.createReply`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async listComments(r,i,a,o,s,c,l,d,f){let m=await n.listComments(r,i,a,o,s,c,l,d,f),h=t?.serverIndex??0,g=p[`CommentV1alpha1ConsoleApi.listComments`]?.[h]?.url;return(n,r)=>S(m,e,u,t)(n,g||r)}}},Te=function(e,t,n){let r=z(e);return{createComment(e,i){return r.createComment(e.commentRequest,i).then(e=>e(n,t))},createReply(e,i){return r.createReply(e.name,e.replyRequest,i).then(e=>e(n,t))},listComments(e={},i){return r.listComments(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,e.ownerKind,e.ownerName,i).then(e=>e(n,t))}}};var Ee=class extends d{createComment(e,t){return z(this.configuration).createComment(e.commentRequest,t).then(e=>e(this.axios,this.basePath))}createReply(e,t){return z(this.configuration).createReply(e.name,e.replyRequest,t).then(e=>e(this.axios,this.basePath))}listComments(e={},t){return z(this.configuration).listComments(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,e.ownerKind,e.ownerName,t).then(e=>e(this.axios,this.basePath))}};const De=function(e){return{createComment1:async(t,n={})=>{h(`createComment1`,`commentRequest`,t);let r=`/apis/api.halo.run/v1alpha1/comments`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},createReply1:async(t,n,r={})=>{h(`createReply1`,`name`,t),h(`createReply1`,`replyRequest`,n);let i=`/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},getComment:async(t,n={})=>{h(`getComment`,`name`,t);let r=`/apis/api.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listCommentReplies:async(t,n,r,i={})=>{h(`listCommentReplies`,`name`,t);let a=`/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,m),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};g(c,e),await _(l,e),n!==void 0&&(u.page=n),r!==void 0&&(u.size=r),y(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:x(o),options:c}},listComments1:async(t,n,r,i,a,o,s,c,l,u={})=>{h(`listComments1`,`version`,t),h(`listComments1`,`kind`,n),h(`listComments1`,`name`,r);let d=`/apis/api.halo.run/v1alpha1/comments`,f=new URL(d,m),p;e&&(p=e.baseOptions);let v={method:`GET`,...p,...u},b={},S={};g(v,e),await _(b,e),i!==void 0&&(S.page=i),a!==void 0&&(S.size=a),o&&(S.sort=o),s!==void 0&&(S.group=s),t!==void 0&&(S.version=t),n!==void 0&&(S.kind=n),r!==void 0&&(S.name=r),c!==void 0&&(S.withReplies=c),l!==void 0&&(S.replySize=l),y(f,S);let C=p&&p.headers?p.headers:{};return v.headers={...b,...C,...u.headers},{url:x(f),options:v}}}},B=function(t){let n=De(t);return{async createComment1(r,i){let a=await n.createComment1(r,i),o=t?.serverIndex??0,s=p[`CommentV1alpha1PublicApi.createComment1`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async createReply1(r,i,a){let o=await n.createReply1(r,i,a),s=t?.serverIndex??0,c=p[`CommentV1alpha1PublicApi.createReply1`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async getComment(r,i){let a=await n.getComment(r,i),o=t?.serverIndex??0,s=p[`CommentV1alpha1PublicApi.getComment`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listCommentReplies(r,i,a,o){let s=await n.listCommentReplies(r,i,a,o),c=t?.serverIndex??0,l=p[`CommentV1alpha1PublicApi.listCommentReplies`]?.[c]?.url;return(n,r)=>S(s,e,u,t)(n,l||r)},async listComments1(r,i,a,o,s,c,l,d,f,m){let h=await n.listComments1(r,i,a,o,s,c,l,d,f,m),g=t?.serverIndex??0,_=p[`CommentV1alpha1PublicApi.listComments1`]?.[g]?.url;return(n,r)=>S(h,e,u,t)(n,_||r)}}},Oe=function(e,t,n){let r=B(e);return{createComment1(e,i){return r.createComment1(e.commentRequest,i).then(e=>e(n,t))},createReply1(e,i){return r.createReply1(e.name,e.replyRequest,i).then(e=>e(n,t))},getComment(e,i){return r.getComment(e.name,i).then(e=>e(n,t))},listCommentReplies(e,i){return r.listCommentReplies(e.name,e.page,e.size,i).then(e=>e(n,t))},listComments1(e,i){return r.listComments1(e.version,e.kind,e.name,e.page,e.size,e.sort,e.group,e.withReplies,e.replySize,i).then(e=>e(n,t))}}};var ke=class extends d{createComment1(e,t){return B(this.configuration).createComment1(e.commentRequest,t).then(e=>e(this.axios,this.basePath))}createReply1(e,t){return B(this.configuration).createReply1(e.name,e.replyRequest,t).then(e=>e(this.axios,this.basePath))}getComment(e,t){return B(this.configuration).getComment(e.name,t).then(e=>e(this.axios,this.basePath))}listCommentReplies(e,t){return B(this.configuration).listCommentReplies(e.name,e.page,e.size,t).then(e=>e(this.axios,this.basePath))}listComments1(e,t){return B(this.configuration).listComments1(e.version,e.kind,e.name,e.page,e.size,e.sort,e.group,e.withReplies,e.replySize,t).then(e=>e(this.axios,this.basePath))}};const Ae=function(e){return{createConfigMap:async(t,n={})=>{let r=`/api/v1alpha1/configmaps`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteConfigMap:async(t,n={})=>{h(`deleteConfigMap`,`name`,t);let r=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getConfigMap:async(t,n={})=>{h(`getConfigMap`,`name`,t);let r=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listConfigMap:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/configmaps`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchConfigMap:async(t,n,r={})=>{h(`patchConfigMap`,`name`,t);let i=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateConfigMap:async(t,n,r={})=>{h(`updateConfigMap`,`name`,t);let i=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},V=function(t){let n=Ae(t);return{async createConfigMap(r,i){let a=await n.createConfigMap(r,i),o=t?.serverIndex??0,s=p[`ConfigMapV1alpha1Api.createConfigMap`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteConfigMap(r,i){let a=await n.deleteConfigMap(r,i),o=t?.serverIndex??0,s=p[`ConfigMapV1alpha1Api.deleteConfigMap`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getConfigMap(r,i){let a=await n.getConfigMap(r,i),o=t?.serverIndex??0,s=p[`ConfigMapV1alpha1Api.getConfigMap`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listConfigMap(r,i,a,o,s,c){let l=await n.listConfigMap(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ConfigMapV1alpha1Api.listConfigMap`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchConfigMap(r,i,a){let o=await n.patchConfigMap(r,i,a),s=t?.serverIndex??0,c=p[`ConfigMapV1alpha1Api.patchConfigMap`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateConfigMap(r,i,a){let o=await n.updateConfigMap(r,i,a),s=t?.serverIndex??0,c=p[`ConfigMapV1alpha1Api.updateConfigMap`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},je=function(e,t,n){let r=V(e);return{createConfigMap(e={},i){return r.createConfigMap(e.configMap,i).then(e=>e(n,t))},deleteConfigMap(e,i){return r.deleteConfigMap(e.name,i).then(e=>e(n,t))},getConfigMap(e,i){return r.getConfigMap(e.name,i).then(e=>e(n,t))},listConfigMap(e={},i){return r.listConfigMap(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchConfigMap(e,i){return r.patchConfigMap(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateConfigMap(e,i){return r.updateConfigMap(e.name,e.configMap,i).then(e=>e(n,t))}}};var Me=class extends d{createConfigMap(e={},t){return V(this.configuration).createConfigMap(e.configMap,t).then(e=>e(this.axios,this.basePath))}deleteConfigMap(e,t){return V(this.configuration).deleteConfigMap(e.name,t).then(e=>e(this.axios,this.basePath))}getConfigMap(e,t){return V(this.configuration).getConfigMap(e.name,t).then(e=>e(this.axios,this.basePath))}listConfigMap(e={},t){return V(this.configuration).listConfigMap(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchConfigMap(e,t){return V(this.configuration).patchConfigMap(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateConfigMap(e,t){return V(this.configuration).updateConfigMap(e.name,e.configMap,t).then(e=>e(this.axios,this.basePath))}};const Ne=function(e){return{createCounter:async(t,n={})=>{let r=`/apis/metrics.halo.run/v1alpha1/counters`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteCounter:async(t,n={})=>{h(`deleteCounter`,`name`,t);let r=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getCounter:async(t,n={})=>{h(`getCounter`,`name`,t);let r=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listCounter:async(t,n,r,i,a,o={})=>{let s=`/apis/metrics.halo.run/v1alpha1/counters`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchCounter:async(t,n,r={})=>{h(`patchCounter`,`name`,t);let i=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateCounter:async(t,n,r={})=>{h(`updateCounter`,`name`,t);let i=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},H=function(t){let n=Ne(t);return{async createCounter(r,i){let a=await n.createCounter(r,i),o=t?.serverIndex??0,s=p[`CounterV1alpha1Api.createCounter`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteCounter(r,i){let a=await n.deleteCounter(r,i),o=t?.serverIndex??0,s=p[`CounterV1alpha1Api.deleteCounter`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getCounter(r,i){let a=await n.getCounter(r,i),o=t?.serverIndex??0,s=p[`CounterV1alpha1Api.getCounter`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listCounter(r,i,a,o,s,c){let l=await n.listCounter(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`CounterV1alpha1Api.listCounter`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchCounter(r,i,a){let o=await n.patchCounter(r,i,a),s=t?.serverIndex??0,c=p[`CounterV1alpha1Api.patchCounter`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateCounter(r,i,a){let o=await n.updateCounter(r,i,a),s=t?.serverIndex??0,c=p[`CounterV1alpha1Api.updateCounter`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Pe=function(e,t,n){let r=H(e);return{createCounter(e={},i){return r.createCounter(e.counter,i).then(e=>e(n,t))},deleteCounter(e,i){return r.deleteCounter(e.name,i).then(e=>e(n,t))},getCounter(e,i){return r.getCounter(e.name,i).then(e=>e(n,t))},listCounter(e={},i){return r.listCounter(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchCounter(e,i){return r.patchCounter(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateCounter(e,i){return r.updateCounter(e.name,e.counter,i).then(e=>e(n,t))}}};var Fe=class extends d{createCounter(e={},t){return H(this.configuration).createCounter(e.counter,t).then(e=>e(this.axios,this.basePath))}deleteCounter(e,t){return H(this.configuration).deleteCounter(e.name,t).then(e=>e(this.axios,this.basePath))}getCounter(e,t){return H(this.configuration).getCounter(e.name,t).then(e=>e(this.axios,this.basePath))}listCounter(e={},t){return H(this.configuration).listCounter(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchCounter(e,t){return H(this.configuration).patchCounter(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateCounter(e,t){return H(this.configuration).updateCounter(e.name,e.counter,t).then(e=>e(this.axios,this.basePath))}};const Ie=function(e){return{setNoCacheForSetUpPage:async(t={})=>{let n=`/system/setup`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}}}},Le=function(t){let n=Ie(t);return{async setNoCacheForSetUpPage(r){let i=await n.setNoCacheForSetUpPage(r),a=t?.serverIndex??0,o=p[`DefaultApi.setNoCacheForSetUpPage`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)}}},Re=function(e,t,n){let r=Le(e);return{setNoCacheForSetUpPage(e){return r.setNoCacheForSetUpPage(e).then(e=>e(n,t))}}};var ze=class extends d{setNoCacheForSetUpPage(e){return Le(this.configuration).setNoCacheForSetUpPage(e).then(e=>e(this.axios,this.basePath))}};const Be=function(e){return{createDevice:async(t,n={})=>{let r=`/apis/security.halo.run/v1alpha1/devices`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteDevice:async(t,n={})=>{h(`deleteDevice`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getDevice:async(t,n={})=>{h(`getDevice`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listDevice:async(t,n,r,i,a,o={})=>{let s=`/apis/security.halo.run/v1alpha1/devices`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchDevice:async(t,n,r={})=>{h(`patchDevice`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateDevice:async(t,n,r={})=>{h(`updateDevice`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},U=function(t){let n=Be(t);return{async createDevice(r,i){let a=await n.createDevice(r,i),o=t?.serverIndex??0,s=p[`DeviceV1alpha1Api.createDevice`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteDevice(r,i){let a=await n.deleteDevice(r,i),o=t?.serverIndex??0,s=p[`DeviceV1alpha1Api.deleteDevice`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getDevice(r,i){let a=await n.getDevice(r,i),o=t?.serverIndex??0,s=p[`DeviceV1alpha1Api.getDevice`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listDevice(r,i,a,o,s,c){let l=await n.listDevice(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`DeviceV1alpha1Api.listDevice`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchDevice(r,i,a){let o=await n.patchDevice(r,i,a),s=t?.serverIndex??0,c=p[`DeviceV1alpha1Api.patchDevice`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateDevice(r,i,a){let o=await n.updateDevice(r,i,a),s=t?.serverIndex??0,c=p[`DeviceV1alpha1Api.updateDevice`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Ve=function(e,t,n){let r=U(e);return{createDevice(e={},i){return r.createDevice(e.device,i).then(e=>e(n,t))},deleteDevice(e,i){return r.deleteDevice(e.name,i).then(e=>e(n,t))},getDevice(e,i){return r.getDevice(e.name,i).then(e=>e(n,t))},listDevice(e={},i){return r.listDevice(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchDevice(e,i){return r.patchDevice(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateDevice(e,i){return r.updateDevice(e.name,e.device,i).then(e=>e(n,t))}}};var He=class extends d{createDevice(e={},t){return U(this.configuration).createDevice(e.device,t).then(e=>e(this.axios,this.basePath))}deleteDevice(e,t){return U(this.configuration).deleteDevice(e.name,t).then(e=>e(this.axios,this.basePath))}getDevice(e,t){return U(this.configuration).getDevice(e.name,t).then(e=>e(this.axios,this.basePath))}listDevice(e={},t){return U(this.configuration).listDevice(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchDevice(e,t){return U(this.configuration).patchDevice(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateDevice(e,t){return U(this.configuration).updateDevice(e.name,e.device,t).then(e=>e(this.axios,this.basePath))}};const Ue=function(e){return{listDevices:async(t={})=>{let n=`/apis/uc.api.security.halo.run/v1alpha1/devices`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},revokeDevice:async(t,n={})=>{h(`revokeDevice`,`deviceId`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/devices/{deviceId}`.replace(`{deviceId}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}}}},We=function(t){let n=Ue(t);return{async listDevices(r){let i=await n.listDevices(r),a=t?.serverIndex??0,o=p[`DeviceV1alpha1UcApi.listDevices`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async revokeDevice(r,i){let a=await n.revokeDevice(r,i),o=t?.serverIndex??0,s=p[`DeviceV1alpha1UcApi.revokeDevice`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)}}},Ge=function(e,t,n){let r=We(e);return{listDevices(e){return r.listDevices(e).then(e=>e(n,t))},revokeDevice(e,i){return r.revokeDevice(e.deviceId,i).then(e=>e(n,t))}}};var Ke=class extends d{listDevices(e){return We(this.configuration).listDevices(e).then(e=>e(this.axios,this.basePath))}revokeDevice(e,t){return We(this.configuration).revokeDevice(e.deviceId,t).then(e=>e(this.axios,this.basePath))}};const qe=function(e){return{createExtensionDefinition:async(t,n={})=>{let r=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteExtensionDefinition:async(t,n={})=>{h(`deleteExtensionDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getExtensionDefinition:async(t,n={})=>{h(`getExtensionDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listExtensionDefinition:async(t,n,r,i,a,o={})=>{let s=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchExtensionDefinition:async(t,n,r={})=>{h(`patchExtensionDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateExtensionDefinition:async(t,n,r={})=>{h(`updateExtensionDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},W=function(t){let n=qe(t);return{async createExtensionDefinition(r,i){let a=await n.createExtensionDefinition(r,i),o=t?.serverIndex??0,s=p[`ExtensionDefinitionV1alpha1Api.createExtensionDefinition`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteExtensionDefinition(r,i){let a=await n.deleteExtensionDefinition(r,i),o=t?.serverIndex??0,s=p[`ExtensionDefinitionV1alpha1Api.deleteExtensionDefinition`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getExtensionDefinition(r,i){let a=await n.getExtensionDefinition(r,i),o=t?.serverIndex??0,s=p[`ExtensionDefinitionV1alpha1Api.getExtensionDefinition`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listExtensionDefinition(r,i,a,o,s,c){let l=await n.listExtensionDefinition(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ExtensionDefinitionV1alpha1Api.listExtensionDefinition`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchExtensionDefinition(r,i,a){let o=await n.patchExtensionDefinition(r,i,a),s=t?.serverIndex??0,c=p[`ExtensionDefinitionV1alpha1Api.patchExtensionDefinition`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateExtensionDefinition(r,i,a){let o=await n.updateExtensionDefinition(r,i,a),s=t?.serverIndex??0,c=p[`ExtensionDefinitionV1alpha1Api.updateExtensionDefinition`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Je=function(e,t,n){let r=W(e);return{createExtensionDefinition(e={},i){return r.createExtensionDefinition(e.extensionDefinition,i).then(e=>e(n,t))},deleteExtensionDefinition(e,i){return r.deleteExtensionDefinition(e.name,i).then(e=>e(n,t))},getExtensionDefinition(e,i){return r.getExtensionDefinition(e.name,i).then(e=>e(n,t))},listExtensionDefinition(e={},i){return r.listExtensionDefinition(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchExtensionDefinition(e,i){return r.patchExtensionDefinition(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateExtensionDefinition(e,i){return r.updateExtensionDefinition(e.name,e.extensionDefinition,i).then(e=>e(n,t))}}};var Ye=class extends d{createExtensionDefinition(e={},t){return W(this.configuration).createExtensionDefinition(e.extensionDefinition,t).then(e=>e(this.axios,this.basePath))}deleteExtensionDefinition(e,t){return W(this.configuration).deleteExtensionDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}getExtensionDefinition(e,t){return W(this.configuration).getExtensionDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}listExtensionDefinition(e={},t){return W(this.configuration).listExtensionDefinition(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchExtensionDefinition(e,t){return W(this.configuration).patchExtensionDefinition(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateExtensionDefinition(e,t){return W(this.configuration).updateExtensionDefinition(e.name,e.extensionDefinition,t).then(e=>e(this.axios,this.basePath))}};const Xe=function(e){return{createExtensionPointDefinition:async(t,n={})=>{let r=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteExtensionPointDefinition:async(t,n={})=>{h(`deleteExtensionPointDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getExtensionPointDefinition:async(t,n={})=>{h(`getExtensionPointDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listExtensionPointDefinition:async(t,n,r,i,a,o={})=>{let s=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchExtensionPointDefinition:async(t,n,r={})=>{h(`patchExtensionPointDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateExtensionPointDefinition:async(t,n,r={})=>{h(`updateExtensionPointDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},G=function(t){let n=Xe(t);return{async createExtensionPointDefinition(r,i){let a=await n.createExtensionPointDefinition(r,i),o=t?.serverIndex??0,s=p[`ExtensionPointDefinitionV1alpha1Api.createExtensionPointDefinition`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteExtensionPointDefinition(r,i){let a=await n.deleteExtensionPointDefinition(r,i),o=t?.serverIndex??0,s=p[`ExtensionPointDefinitionV1alpha1Api.deleteExtensionPointDefinition`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getExtensionPointDefinition(r,i){let a=await n.getExtensionPointDefinition(r,i),o=t?.serverIndex??0,s=p[`ExtensionPointDefinitionV1alpha1Api.getExtensionPointDefinition`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listExtensionPointDefinition(r,i,a,o,s,c){let l=await n.listExtensionPointDefinition(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ExtensionPointDefinitionV1alpha1Api.listExtensionPointDefinition`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchExtensionPointDefinition(r,i,a){let o=await n.patchExtensionPointDefinition(r,i,a),s=t?.serverIndex??0,c=p[`ExtensionPointDefinitionV1alpha1Api.patchExtensionPointDefinition`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateExtensionPointDefinition(r,i,a){let o=await n.updateExtensionPointDefinition(r,i,a),s=t?.serverIndex??0,c=p[`ExtensionPointDefinitionV1alpha1Api.updateExtensionPointDefinition`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Ze=function(e,t,n){let r=G(e);return{createExtensionPointDefinition(e={},i){return r.createExtensionPointDefinition(e.extensionPointDefinition,i).then(e=>e(n,t))},deleteExtensionPointDefinition(e,i){return r.deleteExtensionPointDefinition(e.name,i).then(e=>e(n,t))},getExtensionPointDefinition(e,i){return r.getExtensionPointDefinition(e.name,i).then(e=>e(n,t))},listExtensionPointDefinition(e={},i){return r.listExtensionPointDefinition(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchExtensionPointDefinition(e,i){return r.patchExtensionPointDefinition(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateExtensionPointDefinition(e,i){return r.updateExtensionPointDefinition(e.name,e.extensionPointDefinition,i).then(e=>e(n,t))}}};var Qe=class extends d{createExtensionPointDefinition(e={},t){return G(this.configuration).createExtensionPointDefinition(e.extensionPointDefinition,t).then(e=>e(this.axios,this.basePath))}deleteExtensionPointDefinition(e,t){return G(this.configuration).deleteExtensionPointDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}getExtensionPointDefinition(e,t){return G(this.configuration).getExtensionPointDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}listExtensionPointDefinition(e={},t){return G(this.configuration).listExtensionPointDefinition(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchExtensionPointDefinition(e,t){return G(this.configuration).patchExtensionPointDefinition(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateExtensionPointDefinition(e,t){return G(this.configuration).updateExtensionPointDefinition(e.name,e.extensionPointDefinition,t).then(e=>e(this.axios,this.basePath))}};const $e=function(e){return{createGroup:async(t,n={})=>{let r=`/apis/storage.halo.run/v1alpha1/groups`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteGroup:async(t,n={})=>{h(`deleteGroup`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getGroup:async(t,n={})=>{h(`getGroup`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listGroup:async(t,n,r,i,a,o={})=>{let s=`/apis/storage.halo.run/v1alpha1/groups`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchGroup:async(t,n,r={})=>{h(`patchGroup`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateGroup:async(t,n,r={})=>{h(`updateGroup`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},K=function(t){let n=$e(t);return{async createGroup(r,i){let a=await n.createGroup(r,i),o=t?.serverIndex??0,s=p[`GroupV1alpha1Api.createGroup`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteGroup(r,i){let a=await n.deleteGroup(r,i),o=t?.serverIndex??0,s=p[`GroupV1alpha1Api.deleteGroup`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getGroup(r,i){let a=await n.getGroup(r,i),o=t?.serverIndex??0,s=p[`GroupV1alpha1Api.getGroup`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listGroup(r,i,a,o,s,c){let l=await n.listGroup(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`GroupV1alpha1Api.listGroup`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchGroup(r,i,a){let o=await n.patchGroup(r,i,a),s=t?.serverIndex??0,c=p[`GroupV1alpha1Api.patchGroup`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateGroup(r,i,a){let o=await n.updateGroup(r,i,a),s=t?.serverIndex??0,c=p[`GroupV1alpha1Api.updateGroup`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},et=function(e,t,n){let r=K(e);return{createGroup(e={},i){return r.createGroup(e.group,i).then(e=>e(n,t))},deleteGroup(e,i){return r.deleteGroup(e.name,i).then(e=>e(n,t))},getGroup(e,i){return r.getGroup(e.name,i).then(e=>e(n,t))},listGroup(e={},i){return r.listGroup(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchGroup(e,i){return r.patchGroup(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateGroup(e,i){return r.updateGroup(e.name,e.group,i).then(e=>e(n,t))}}};var tt=class extends d{createGroup(e={},t){return K(this.configuration).createGroup(e.group,t).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t){return K(this.configuration).deleteGroup(e.name,t).then(e=>e(this.axios,this.basePath))}getGroup(e,t){return K(this.configuration).getGroup(e.name,t).then(e=>e(this.axios,this.basePath))}listGroup(e={},t){return K(this.configuration).listGroup(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchGroup(e,t){return K(this.configuration).patchGroup(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateGroup(e,t){return K(this.configuration).updateGroup(e.name,e.group,t).then(e=>e(this.axios,this.basePath))}};const nt=function(e){return{indicesSearch:async(t,n={})=>{let r=`/apis/api.halo.run/v1alpha1/indices/-/search`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}}}},rt=function(t){let n=nt(t);return{async indicesSearch(r,i){let a=await n.indicesSearch(r,i),o=t?.serverIndex??0,s=p[`IndexV1alpha1PublicApi.indicesSearch`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)}}},it=function(e,t,n){let r=rt(e);return{indicesSearch(e={},i){return r.indicesSearch(e.searchOption,i).then(e=>e(n,t))}}};var at=class extends d{indicesSearch(e={},t){return rt(this.configuration).indicesSearch(e.searchOption,t).then(e=>e(this.axios,this.basePath))}};const ot=function(e){return{rebuildAllIndices:async(t={})=>{let n=`/apis/api.console.halo.run/v1alpha1/indices/-/rebuild`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}}}},st=function(t){let n=ot(t);return{async rebuildAllIndices(r){let i=await n.rebuildAllIndices(r),a=t?.serverIndex??0,o=p[`IndicesV1alpha1ConsoleApi.rebuildAllIndices`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)}}},ct=function(e,t,n){let r=st(e);return{rebuildAllIndices(e){return r.rebuildAllIndices(e).then(e=>e(n,t))}}};var lt=class extends d{rebuildAllIndices(e){return st(this.configuration).rebuildAllIndices(e).then(e=>e(this.axios,this.basePath))}};const ut=function(e){return{createLocalThumbnail:async(t,n={})=>{let r=`/apis/storage.halo.run/v1alpha1/localthumbnails`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteLocalThumbnail:async(t,n={})=>{h(`deleteLocalThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getLocalThumbnail:async(t,n={})=>{h(`getLocalThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listLocalThumbnail:async(t,n,r,i,a,o={})=>{let s=`/apis/storage.halo.run/v1alpha1/localthumbnails`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchLocalThumbnail:async(t,n,r={})=>{h(`patchLocalThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateLocalThumbnail:async(t,n,r={})=>{h(`updateLocalThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},dt=function(t){let n=ut(t);return{async createLocalThumbnail(r,i){let a=await n.createLocalThumbnail(r,i),o=t?.serverIndex??0,s=p[`LocalThumbnailV1alpha1Api.createLocalThumbnail`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteLocalThumbnail(r,i){let a=await n.deleteLocalThumbnail(r,i),o=t?.serverIndex??0,s=p[`LocalThumbnailV1alpha1Api.deleteLocalThumbnail`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getLocalThumbnail(r,i){let a=await n.getLocalThumbnail(r,i),o=t?.serverIndex??0,s=p[`LocalThumbnailV1alpha1Api.getLocalThumbnail`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listLocalThumbnail(r,i,a,o,s,c){let l=await n.listLocalThumbnail(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`LocalThumbnailV1alpha1Api.listLocalThumbnail`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchLocalThumbnail(r,i,a){let o=await n.patchLocalThumbnail(r,i,a),s=t?.serverIndex??0,c=p[`LocalThumbnailV1alpha1Api.patchLocalThumbnail`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateLocalThumbnail(r,i,a){let o=await n.updateLocalThumbnail(r,i,a),s=t?.serverIndex??0,c=p[`LocalThumbnailV1alpha1Api.updateLocalThumbnail`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},ft=function(e,t,n){let r=dt(e);return{createLocalThumbnail(e={},i){return r.createLocalThumbnail(e.localThumbnail,i).then(e=>e(n,t))},deleteLocalThumbnail(e,i){return r.deleteLocalThumbnail(e.name,i).then(e=>e(n,t))},getLocalThumbnail(e,i){return r.getLocalThumbnail(e.name,i).then(e=>e(n,t))},listLocalThumbnail(e={},i){return r.listLocalThumbnail(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchLocalThumbnail(e,i){return r.patchLocalThumbnail(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateLocalThumbnail(e,i){return r.updateLocalThumbnail(e.name,e.localThumbnail,i).then(e=>e(n,t))}}};var pt=class extends d{createLocalThumbnail(e={},t){return dt(this.configuration).createLocalThumbnail(e.localThumbnail,t).then(e=>e(this.axios,this.basePath))}deleteLocalThumbnail(e,t){return dt(this.configuration).deleteLocalThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}getLocalThumbnail(e,t){return dt(this.configuration).getLocalThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}listLocalThumbnail(e={},t){return dt(this.configuration).listLocalThumbnail(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchLocalThumbnail(e,t){return dt(this.configuration).patchLocalThumbnail(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateLocalThumbnail(e,t){return dt(this.configuration).updateLocalThumbnail(e.name,e.localThumbnail,t).then(e=>e(this.axios,this.basePath))}};const mt=function(e){return{createMenuItem:async(t,n={})=>{let r=`/api/v1alpha1/menuitems`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteMenuItem:async(t,n={})=>{h(`deleteMenuItem`,`name`,t);let r=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getMenuItem:async(t,n={})=>{h(`getMenuItem`,`name`,t);let r=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listMenuItem:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/menuitems`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchMenuItem:async(t,n,r={})=>{h(`patchMenuItem`,`name`,t);let i=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateMenuItem:async(t,n,r={})=>{h(`updateMenuItem`,`name`,t);let i=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},ht=function(t){let n=mt(t);return{async createMenuItem(r,i){let a=await n.createMenuItem(r,i),o=t?.serverIndex??0,s=p[`MenuItemV1alpha1Api.createMenuItem`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteMenuItem(r,i){let a=await n.deleteMenuItem(r,i),o=t?.serverIndex??0,s=p[`MenuItemV1alpha1Api.deleteMenuItem`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getMenuItem(r,i){let a=await n.getMenuItem(r,i),o=t?.serverIndex??0,s=p[`MenuItemV1alpha1Api.getMenuItem`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listMenuItem(r,i,a,o,s,c){let l=await n.listMenuItem(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`MenuItemV1alpha1Api.listMenuItem`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchMenuItem(r,i,a){let o=await n.patchMenuItem(r,i,a),s=t?.serverIndex??0,c=p[`MenuItemV1alpha1Api.patchMenuItem`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateMenuItem(r,i,a){let o=await n.updateMenuItem(r,i,a),s=t?.serverIndex??0,c=p[`MenuItemV1alpha1Api.updateMenuItem`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},gt=function(e,t,n){let r=ht(e);return{createMenuItem(e={},i){return r.createMenuItem(e.menuItem,i).then(e=>e(n,t))},deleteMenuItem(e,i){return r.deleteMenuItem(e.name,i).then(e=>e(n,t))},getMenuItem(e,i){return r.getMenuItem(e.name,i).then(e=>e(n,t))},listMenuItem(e={},i){return r.listMenuItem(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchMenuItem(e,i){return r.patchMenuItem(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateMenuItem(e,i){return r.updateMenuItem(e.name,e.menuItem,i).then(e=>e(n,t))}}};var _t=class extends d{createMenuItem(e={},t){return ht(this.configuration).createMenuItem(e.menuItem,t).then(e=>e(this.axios,this.basePath))}deleteMenuItem(e,t){return ht(this.configuration).deleteMenuItem(e.name,t).then(e=>e(this.axios,this.basePath))}getMenuItem(e,t){return ht(this.configuration).getMenuItem(e.name,t).then(e=>e(this.axios,this.basePath))}listMenuItem(e={},t){return ht(this.configuration).listMenuItem(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchMenuItem(e,t){return ht(this.configuration).patchMenuItem(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateMenuItem(e,t){return ht(this.configuration).updateMenuItem(e.name,e.menuItem,t).then(e=>e(this.axios,this.basePath))}};const vt=function(e){return{createMenu:async(t,n={})=>{let r=`/api/v1alpha1/menus`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteMenu:async(t,n={})=>{h(`deleteMenu`,`name`,t);let r=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getMenu:async(t,n={})=>{h(`getMenu`,`name`,t);let r=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listMenu:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/menus`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchMenu:async(t,n,r={})=>{h(`patchMenu`,`name`,t);let i=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateMenu:async(t,n,r={})=>{h(`updateMenu`,`name`,t);let i=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},yt=function(t){let n=vt(t);return{async createMenu(r,i){let a=await n.createMenu(r,i),o=t?.serverIndex??0,s=p[`MenuV1alpha1Api.createMenu`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteMenu(r,i){let a=await n.deleteMenu(r,i),o=t?.serverIndex??0,s=p[`MenuV1alpha1Api.deleteMenu`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getMenu(r,i){let a=await n.getMenu(r,i),o=t?.serverIndex??0,s=p[`MenuV1alpha1Api.getMenu`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listMenu(r,i,a,o,s,c){let l=await n.listMenu(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`MenuV1alpha1Api.listMenu`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchMenu(r,i,a){let o=await n.patchMenu(r,i,a),s=t?.serverIndex??0,c=p[`MenuV1alpha1Api.patchMenu`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateMenu(r,i,a){let o=await n.updateMenu(r,i,a),s=t?.serverIndex??0,c=p[`MenuV1alpha1Api.updateMenu`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},bt=function(e,t,n){let r=yt(e);return{createMenu(e={},i){return r.createMenu(e.menu,i).then(e=>e(n,t))},deleteMenu(e,i){return r.deleteMenu(e.name,i).then(e=>e(n,t))},getMenu(e,i){return r.getMenu(e.name,i).then(e=>e(n,t))},listMenu(e={},i){return r.listMenu(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchMenu(e,i){return r.patchMenu(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateMenu(e,i){return r.updateMenu(e.name,e.menu,i).then(e=>e(n,t))}}};var xt=class extends d{createMenu(e={},t){return yt(this.configuration).createMenu(e.menu,t).then(e=>e(this.axios,this.basePath))}deleteMenu(e,t){return yt(this.configuration).deleteMenu(e.name,t).then(e=>e(this.axios,this.basePath))}getMenu(e,t){return yt(this.configuration).getMenu(e.name,t).then(e=>e(this.axios,this.basePath))}listMenu(e={},t){return yt(this.configuration).listMenu(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchMenu(e,t){return yt(this.configuration).patchMenu(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateMenu(e,t){return yt(this.configuration).updateMenu(e.name,e.menu,t).then(e=>e(this.axios,this.basePath))}};const St=function(e){return{queryMenuByName:async(t,n={})=>{h(`queryMenuByName`,`name`,t);let r=`/apis/api.halo.run/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},queryPrimaryMenu:async(t={})=>{let n=`/apis/api.halo.run/v1alpha1/menus/-`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}}}},Ct=function(t){let n=St(t);return{async queryMenuByName(r,i){let a=await n.queryMenuByName(r,i),o=t?.serverIndex??0,s=p[`MenuV1alpha1PublicApi.queryMenuByName`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async queryPrimaryMenu(r){let i=await n.queryPrimaryMenu(r),a=t?.serverIndex??0,o=p[`MenuV1alpha1PublicApi.queryPrimaryMenu`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)}}},wt=function(e,t,n){let r=Ct(e);return{queryMenuByName(e,i){return r.queryMenuByName(e.name,i).then(e=>e(n,t))},queryPrimaryMenu(e){return r.queryPrimaryMenu(e).then(e=>e(n,t))}}};var Tt=class extends d{queryMenuByName(e,t){return Ct(this.configuration).queryMenuByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryPrimaryMenu(e){return Ct(this.configuration).queryPrimaryMenu(e).then(e=>e(this.axios,this.basePath))}};const Et=function(e){return{count:async(t,n={})=>{h(`count`,`counterRequest`,t);let r=`/apis/api.halo.run/v1alpha1/trackers/counter`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},downvote:async(t,n={})=>{h(`downvote`,`voteRequest`,t);let r=`/apis/api.halo.run/v1alpha1/trackers/downvote`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},upvote:async(t,n={})=>{h(`upvote`,`voteRequest`,t);let r=`/apis/api.halo.run/v1alpha1/trackers/upvote`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}}}},Dt=function(t){let n=Et(t);return{async count(r,i){let a=await n.count(r,i),o=t?.serverIndex??0,s=p[`MetricsV1alpha1PublicApi.count`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async downvote(r,i){let a=await n.downvote(r,i),o=t?.serverIndex??0,s=p[`MetricsV1alpha1PublicApi.downvote`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async upvote(r,i){let a=await n.upvote(r,i),o=t?.serverIndex??0,s=p[`MetricsV1alpha1PublicApi.upvote`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)}}},Ot=function(e,t,n){let r=Dt(e);return{count(e,i){return r.count(e.counterRequest,i).then(e=>e(n,t))},downvote(e,i){return r.downvote(e.voteRequest,i).then(e=>e(n,t))},upvote(e,i){return r.upvote(e.voteRequest,i).then(e=>e(n,t))}}};var kt=class extends d{count(e,t){return Dt(this.configuration).count(e.counterRequest,t).then(e=>e(this.axios,this.basePath))}downvote(e,t){return Dt(this.configuration).downvote(e.voteRequest,t).then(e=>e(this.axios,this.basePath))}upvote(e,t){return Dt(this.configuration).upvote(e.voteRequest,t).then(e=>e(this.axios,this.basePath))}};const At=function(e){return{downloadBackups:async(t,n,r={})=>{h(`downloadBackups`,`name`,t),h(`downloadBackups`,`filename`,n);let i=`/apis/console.api.migration.halo.run/v1alpha1/backups/{name}/files/{filename}`.replace(`{name}`,encodeURIComponent(String(t))).replace(`{filename}`,encodeURIComponent(String(n))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};g(s,e),await _(c,e),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},getBackupFiles:async(t={})=>{let n=`/apis/console.api.migration.halo.run/v1alpha1/backup-files`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},restoreBackup:async(t,n,r,i,a={})=>{let o=`/apis/console.api.migration.halo.run/v1alpha1/restorations`,s=new URL(o,m),c;e&&(c=e.baseOptions);let l={method:`POST`,...c,...a},u={},d={},f=new(e&&e.formDataCtor||FormData);g(l,e),await _(u,e),t!==void 0&&f.append(`backupName`,t),n!==void 0&&f.append(`downloadUrl`,n),r!==void 0&&f.append(`file`,r),i!==void 0&&f.append(`filename`,i),u[`Content-Type`]=`multipart/form-data`,y(s,d);let p=c&&c.headers?c.headers:{};return l.headers={...u,...p,...a.headers},l.data=f,{url:x(s),options:l}}}},jt=function(t){let n=At(t);return{async downloadBackups(r,i,a){let o=await n.downloadBackups(r,i,a),s=t?.serverIndex??0,c=p[`MigrationV1alpha1ConsoleApi.downloadBackups`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async getBackupFiles(r){let i=await n.getBackupFiles(r),a=t?.serverIndex??0,o=p[`MigrationV1alpha1ConsoleApi.getBackupFiles`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async restoreBackup(r,i,a,o,s){let c=await n.restoreBackup(r,i,a,o,s),l=t?.serverIndex??0,d=p[`MigrationV1alpha1ConsoleApi.restoreBackup`]?.[l]?.url;return(n,r)=>S(c,e,u,t)(n,d||r)}}},Mt=function(e,t,n){let r=jt(e);return{downloadBackups(e,i){return r.downloadBackups(e.name,e.filename,i).then(e=>e(n,t))},getBackupFiles(e){return r.getBackupFiles(e).then(e=>e(n,t))},restoreBackup(e={},i){return r.restoreBackup(e.backupName,e.downloadUrl,e.file,e.filename,i).then(e=>e(n,t))}}};var Nt=class extends d{downloadBackups(e,t){return jt(this.configuration).downloadBackups(e.name,e.filename,t).then(e=>e(this.axios,this.basePath))}getBackupFiles(e){return jt(this.configuration).getBackupFiles(e).then(e=>e(this.axios,this.basePath))}restoreBackup(e={},t){return jt(this.configuration).restoreBackup(e.backupName,e.downloadUrl,e.file,e.filename,t).then(e=>e(this.axios,this.basePath))}};const Pt=function(e){return{createNotificationTemplate:async(t,n={})=>{let r=`/apis/notification.halo.run/v1alpha1/notificationtemplates`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteNotificationTemplate:async(t,n={})=>{h(`deleteNotificationTemplate`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getNotificationTemplate:async(t,n={})=>{h(`getNotificationTemplate`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listNotificationTemplate:async(t,n,r,i,a,o={})=>{let s=`/apis/notification.halo.run/v1alpha1/notificationtemplates`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchNotificationTemplate:async(t,n,r={})=>{h(`patchNotificationTemplate`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateNotificationTemplate:async(t,n,r={})=>{h(`updateNotificationTemplate`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Ft=function(t){let n=Pt(t);return{async createNotificationTemplate(r,i){let a=await n.createNotificationTemplate(r,i),o=t?.serverIndex??0,s=p[`NotificationTemplateV1alpha1Api.createNotificationTemplate`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteNotificationTemplate(r,i){let a=await n.deleteNotificationTemplate(r,i),o=t?.serverIndex??0,s=p[`NotificationTemplateV1alpha1Api.deleteNotificationTemplate`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getNotificationTemplate(r,i){let a=await n.getNotificationTemplate(r,i),o=t?.serverIndex??0,s=p[`NotificationTemplateV1alpha1Api.getNotificationTemplate`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listNotificationTemplate(r,i,a,o,s,c){let l=await n.listNotificationTemplate(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`NotificationTemplateV1alpha1Api.listNotificationTemplate`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchNotificationTemplate(r,i,a){let o=await n.patchNotificationTemplate(r,i,a),s=t?.serverIndex??0,c=p[`NotificationTemplateV1alpha1Api.patchNotificationTemplate`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateNotificationTemplate(r,i,a){let o=await n.updateNotificationTemplate(r,i,a),s=t?.serverIndex??0,c=p[`NotificationTemplateV1alpha1Api.updateNotificationTemplate`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},It=function(e,t,n){let r=Ft(e);return{createNotificationTemplate(e={},i){return r.createNotificationTemplate(e.notificationTemplate,i).then(e=>e(n,t))},deleteNotificationTemplate(e,i){return r.deleteNotificationTemplate(e.name,i).then(e=>e(n,t))},getNotificationTemplate(e,i){return r.getNotificationTemplate(e.name,i).then(e=>e(n,t))},listNotificationTemplate(e={},i){return r.listNotificationTemplate(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchNotificationTemplate(e,i){return r.patchNotificationTemplate(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateNotificationTemplate(e,i){return r.updateNotificationTemplate(e.name,e.notificationTemplate,i).then(e=>e(n,t))}}};var Lt=class extends d{createNotificationTemplate(e={},t){return Ft(this.configuration).createNotificationTemplate(e.notificationTemplate,t).then(e=>e(this.axios,this.basePath))}deleteNotificationTemplate(e,t){return Ft(this.configuration).deleteNotificationTemplate(e.name,t).then(e=>e(this.axios,this.basePath))}getNotificationTemplate(e,t){return Ft(this.configuration).getNotificationTemplate(e.name,t).then(e=>e(this.axios,this.basePath))}listNotificationTemplate(e={},t){return Ft(this.configuration).listNotificationTemplate(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchNotificationTemplate(e,t){return Ft(this.configuration).patchNotificationTemplate(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateNotificationTemplate(e,t){return Ft(this.configuration).updateNotificationTemplate(e.name,e.notificationTemplate,t).then(e=>e(this.axios,this.basePath))}};const Rt=function(e){return{createNotification:async(t,n={})=>{let r=`/apis/notification.halo.run/v1alpha1/notifications`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteNotification:async(t,n={})=>{h(`deleteNotification`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getNotification:async(t,n={})=>{h(`getNotification`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listNotification:async(t,n,r,i,a,o={})=>{let s=`/apis/notification.halo.run/v1alpha1/notifications`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchNotification:async(t,n,r={})=>{h(`patchNotification`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateNotification:async(t,n,r={})=>{h(`updateNotification`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},zt=function(t){let n=Rt(t);return{async createNotification(r,i){let a=await n.createNotification(r,i),o=t?.serverIndex??0,s=p[`NotificationV1alpha1Api.createNotification`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteNotification(r,i){let a=await n.deleteNotification(r,i),o=t?.serverIndex??0,s=p[`NotificationV1alpha1Api.deleteNotification`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getNotification(r,i){let a=await n.getNotification(r,i),o=t?.serverIndex??0,s=p[`NotificationV1alpha1Api.getNotification`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listNotification(r,i,a,o,s,c){let l=await n.listNotification(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`NotificationV1alpha1Api.listNotification`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchNotification(r,i,a){let o=await n.patchNotification(r,i,a),s=t?.serverIndex??0,c=p[`NotificationV1alpha1Api.patchNotification`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateNotification(r,i,a){let o=await n.updateNotification(r,i,a),s=t?.serverIndex??0,c=p[`NotificationV1alpha1Api.updateNotification`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Bt=function(e,t,n){let r=zt(e);return{createNotification(e={},i){return r.createNotification(e.notification,i).then(e=>e(n,t))},deleteNotification(e,i){return r.deleteNotification(e.name,i).then(e=>e(n,t))},getNotification(e,i){return r.getNotification(e.name,i).then(e=>e(n,t))},listNotification(e={},i){return r.listNotification(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchNotification(e,i){return r.patchNotification(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateNotification(e,i){return r.updateNotification(e.name,e.notification,i).then(e=>e(n,t))}}};var Vt=class extends d{createNotification(e={},t){return zt(this.configuration).createNotification(e.notification,t).then(e=>e(this.axios,this.basePath))}deleteNotification(e,t){return zt(this.configuration).deleteNotification(e.name,t).then(e=>e(this.axios,this.basePath))}getNotification(e,t){return zt(this.configuration).getNotification(e.name,t).then(e=>e(this.axios,this.basePath))}listNotification(e={},t){return zt(this.configuration).listNotification(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchNotification(e,t){return zt(this.configuration).patchNotification(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateNotification(e,t){return zt(this.configuration).updateNotification(e.name,e.notification,t).then(e=>e(this.axios,this.basePath))}};const Ht=function(e){return{unsubscribe:async(t,n,r={})=>{h(`unsubscribe`,`name`,t),h(`unsubscribe`,`token`,n);let i=`/apis/api.notification.halo.run/v1alpha1/subscriptions/{name}/unsubscribe`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};g(s,e),await _(c,e),n!==void 0&&(l.token=n),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}}}},Ut=function(t){let n=Ht(t);return{async unsubscribe(r,i,a){let o=await n.unsubscribe(r,i,a),s=t?.serverIndex??0,c=p[`NotificationV1alpha1PublicApi.unsubscribe`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Wt=function(e,t,n){let r=Ut(e);return{unsubscribe(e,i){return r.unsubscribe(e.name,e.token,i).then(e=>e(n,t))}}};var Gt=class extends d{unsubscribe(e,t){return Ut(this.configuration).unsubscribe(e.name,e.token,t).then(e=>e(this.axios,this.basePath))}};const Kt=function(e){return{deleteSpecifiedNotification:async(t,n,r={})=>{h(`deleteSpecifiedNotification`,`username`,t),h(`deleteSpecifiedNotification`,`name`,n);let i=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}`.replace(`{username}`,encodeURIComponent(String(t))).replace(`{name}`,encodeURIComponent(String(n))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};g(s,e),await _(c,e),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},listUserNotificationPreferences:async(t,n={})=>{h(`listUserNotificationPreferences`,`username`,t);let r=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listUserNotifications:async(t,n,r,i,a,o,s={})=>{h(`listUserNotifications`,`username`,t);let c=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications`.replace(`{username}`,encodeURIComponent(String(t))),l=new URL(c,m),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};g(d,e),await _(f,e),n!==void 0&&(p.page=n),r!==void 0&&(p.size=r),i&&(p.labelSelector=i),a&&(p.fieldSelector=a),o&&(p.sort=o),y(l,p);let v=u&&u.headers?u.headers:{};return d.headers={...f,...v,...s.headers},{url:x(l),options:d}},markNotificationAsRead:async(t,n,r={})=>{h(`markNotificationAsRead`,`username`,t),h(`markNotificationAsRead`,`name`,n);let i=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/{name}/mark-as-read`.replace(`{username}`,encodeURIComponent(String(t))).replace(`{name}`,encodeURIComponent(String(n))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},markNotificationsAsRead:async(t,n,r={})=>{h(`markNotificationsAsRead`,`username`,t),h(`markNotificationsAsRead`,`markSpecifiedRequest`,n);let i=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications/-/mark-specified-as-read`.replace(`{username}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},saveUserNotificationPreferences:async(t,n,r={})=>{h(`saveUserNotificationPreferences`,`username`,t);let i=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace(`{username}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},qt=function(t){let n=Kt(t);return{async deleteSpecifiedNotification(r,i,a){let o=await n.deleteSpecifiedNotification(r,i,a),s=t?.serverIndex??0,c=p[`NotificationV1alpha1UcApi.deleteSpecifiedNotification`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async listUserNotificationPreferences(r,i){let a=await n.listUserNotificationPreferences(r,i),o=t?.serverIndex??0,s=p[`NotificationV1alpha1UcApi.listUserNotificationPreferences`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listUserNotifications(r,i,a,o,s,c,l){let d=await n.listUserNotifications(r,i,a,o,s,c,l),f=t?.serverIndex??0,m=p[`NotificationV1alpha1UcApi.listUserNotifications`]?.[f]?.url;return(n,r)=>S(d,e,u,t)(n,m||r)},async markNotificationAsRead(r,i,a){let o=await n.markNotificationAsRead(r,i,a),s=t?.serverIndex??0,c=p[`NotificationV1alpha1UcApi.markNotificationAsRead`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async markNotificationsAsRead(r,i,a){let o=await n.markNotificationsAsRead(r,i,a),s=t?.serverIndex??0,c=p[`NotificationV1alpha1UcApi.markNotificationsAsRead`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async saveUserNotificationPreferences(r,i,a){let o=await n.saveUserNotificationPreferences(r,i,a),s=t?.serverIndex??0,c=p[`NotificationV1alpha1UcApi.saveUserNotificationPreferences`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Jt=function(e,t,n){let r=qt(e);return{deleteSpecifiedNotification(e,i){return r.deleteSpecifiedNotification(e.username,e.name,i).then(e=>e(n,t))},listUserNotificationPreferences(e,i){return r.listUserNotificationPreferences(e.username,i).then(e=>e(n,t))},listUserNotifications(e,i){return r.listUserNotifications(e.username,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},markNotificationAsRead(e,i){return r.markNotificationAsRead(e.username,e.name,i).then(e=>e(n,t))},markNotificationsAsRead(e,i){return r.markNotificationsAsRead(e.username,e.markSpecifiedRequest,i).then(e=>e(n,t))},saveUserNotificationPreferences(e,i){return r.saveUserNotificationPreferences(e.username,e.reasonTypeNotifierCollectionRequest,i).then(e=>e(n,t))}}};var Yt=class extends d{deleteSpecifiedNotification(e,t){return qt(this.configuration).deleteSpecifiedNotification(e.username,e.name,t).then(e=>e(this.axios,this.basePath))}listUserNotificationPreferences(e,t){return qt(this.configuration).listUserNotificationPreferences(e.username,t).then(e=>e(this.axios,this.basePath))}listUserNotifications(e,t){return qt(this.configuration).listUserNotifications(e.username,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}markNotificationAsRead(e,t){return qt(this.configuration).markNotificationAsRead(e.username,e.name,t).then(e=>e(this.axios,this.basePath))}markNotificationsAsRead(e,t){return qt(this.configuration).markNotificationsAsRead(e.username,e.markSpecifiedRequest,t).then(e=>e(this.axios,this.basePath))}saveUserNotificationPreferences(e,t){return qt(this.configuration).saveUserNotificationPreferences(e.username,e.reasonTypeNotifierCollectionRequest,t).then(e=>e(this.axios,this.basePath))}};const Xt=function(e){return{createNotifierDescriptor:async(t,n={})=>{let r=`/apis/notification.halo.run/v1alpha1/notifierDescriptors`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteNotifierDescriptor:async(t,n={})=>{h(`deleteNotifierDescriptor`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getNotifierDescriptor:async(t,n={})=>{h(`getNotifierDescriptor`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listNotifierDescriptor:async(t,n,r,i,a,o={})=>{let s=`/apis/notification.halo.run/v1alpha1/notifierDescriptors`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchNotifierDescriptor:async(t,n,r={})=>{h(`patchNotifierDescriptor`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateNotifierDescriptor:async(t,n,r={})=>{h(`updateNotifierDescriptor`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Zt=function(t){let n=Xt(t);return{async createNotifierDescriptor(r,i){let a=await n.createNotifierDescriptor(r,i),o=t?.serverIndex??0,s=p[`NotifierDescriptorV1alpha1Api.createNotifierDescriptor`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteNotifierDescriptor(r,i){let a=await n.deleteNotifierDescriptor(r,i),o=t?.serverIndex??0,s=p[`NotifierDescriptorV1alpha1Api.deleteNotifierDescriptor`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getNotifierDescriptor(r,i){let a=await n.getNotifierDescriptor(r,i),o=t?.serverIndex??0,s=p[`NotifierDescriptorV1alpha1Api.getNotifierDescriptor`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listNotifierDescriptor(r,i,a,o,s,c){let l=await n.listNotifierDescriptor(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`NotifierDescriptorV1alpha1Api.listNotifierDescriptor`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchNotifierDescriptor(r,i,a){let o=await n.patchNotifierDescriptor(r,i,a),s=t?.serverIndex??0,c=p[`NotifierDescriptorV1alpha1Api.patchNotifierDescriptor`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateNotifierDescriptor(r,i,a){let o=await n.updateNotifierDescriptor(r,i,a),s=t?.serverIndex??0,c=p[`NotifierDescriptorV1alpha1Api.updateNotifierDescriptor`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Qt=function(e,t,n){let r=Zt(e);return{createNotifierDescriptor(e={},i){return r.createNotifierDescriptor(e.notifierDescriptor,i).then(e=>e(n,t))},deleteNotifierDescriptor(e,i){return r.deleteNotifierDescriptor(e.name,i).then(e=>e(n,t))},getNotifierDescriptor(e,i){return r.getNotifierDescriptor(e.name,i).then(e=>e(n,t))},listNotifierDescriptor(e={},i){return r.listNotifierDescriptor(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchNotifierDescriptor(e,i){return r.patchNotifierDescriptor(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateNotifierDescriptor(e,i){return r.updateNotifierDescriptor(e.name,e.notifierDescriptor,i).then(e=>e(n,t))}}};var $t=class extends d{createNotifierDescriptor(e={},t){return Zt(this.configuration).createNotifierDescriptor(e.notifierDescriptor,t).then(e=>e(this.axios,this.basePath))}deleteNotifierDescriptor(e,t){return Zt(this.configuration).deleteNotifierDescriptor(e.name,t).then(e=>e(this.axios,this.basePath))}getNotifierDescriptor(e,t){return Zt(this.configuration).getNotifierDescriptor(e.name,t).then(e=>e(this.axios,this.basePath))}listNotifierDescriptor(e={},t){return Zt(this.configuration).listNotifierDescriptor(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchNotifierDescriptor(e,t){return Zt(this.configuration).patchNotifierDescriptor(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateNotifierDescriptor(e,t){return Zt(this.configuration).updateNotifierDescriptor(e.name,e.notifierDescriptor,t).then(e=>e(this.axios,this.basePath))}};const en=function(e){return{fetchSenderConfig:async(t,n={})=>{h(`fetchSenderConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},saveSenderConfig:async(t,n,r={})=>{h(`saveSenderConfig`,`name`,t),h(`saveSenderConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},verifyEmailSenderConfig:async(t,n={})=>{h(`verifyEmailSenderConfig`,`emailConfigValidationRequest`,t);let r=`/apis/console.api.notification.halo.run/v1alpha1/notifiers/default-email-notifier/verify-connection`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}}}},tn=function(t){let n=en(t);return{async fetchSenderConfig(r,i){let a=await n.fetchSenderConfig(r,i),o=t?.serverIndex??0,s=p[`NotifierV1alpha1ConsoleApi.fetchSenderConfig`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async saveSenderConfig(r,i,a){let o=await n.saveSenderConfig(r,i,a),s=t?.serverIndex??0,c=p[`NotifierV1alpha1ConsoleApi.saveSenderConfig`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async verifyEmailSenderConfig(r,i){let a=await n.verifyEmailSenderConfig(r,i),o=t?.serverIndex??0,s=p[`NotifierV1alpha1ConsoleApi.verifyEmailSenderConfig`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)}}},nn=function(e,t,n){let r=tn(e);return{fetchSenderConfig(e,i){return r.fetchSenderConfig(e.name,i).then(e=>e(n,t))},saveSenderConfig(e,i){return r.saveSenderConfig(e.name,e.body,i).then(e=>e(n,t))},verifyEmailSenderConfig(e,i){return r.verifyEmailSenderConfig(e.emailConfigValidationRequest,i).then(e=>e(n,t))}}};var rn=class extends d{fetchSenderConfig(e,t){return tn(this.configuration).fetchSenderConfig(e.name,t).then(e=>e(this.axios,this.basePath))}saveSenderConfig(e,t){return tn(this.configuration).saveSenderConfig(e.name,e.body,t).then(e=>e(this.axios,this.basePath))}verifyEmailSenderConfig(e,t){return tn(this.configuration).verifyEmailSenderConfig(e.emailConfigValidationRequest,t).then(e=>e(this.axios,this.basePath))}};const an=function(e){return{fetchReceiverConfig:async(t,n={})=>{h(`fetchReceiverConfig`,`name`,t);let r=`/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},saveReceiverConfig:async(t,n,r={})=>{h(`saveReceiverConfig`,`name`,t),h(`saveReceiverConfig`,`body`,n);let i=`/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},on=function(t){let n=an(t);return{async fetchReceiverConfig(r,i){let a=await n.fetchReceiverConfig(r,i),o=t?.serverIndex??0,s=p[`NotifierV1alpha1UcApi.fetchReceiverConfig`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async saveReceiverConfig(r,i,a){let o=await n.saveReceiverConfig(r,i,a),s=t?.serverIndex??0,c=p[`NotifierV1alpha1UcApi.saveReceiverConfig`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},sn=function(e,t,n){let r=on(e);return{fetchReceiverConfig(e,i){return r.fetchReceiverConfig(e.name,i).then(e=>e(n,t))},saveReceiverConfig(e,i){return r.saveReceiverConfig(e.name,e.body,i).then(e=>e(n,t))}}};var cn=class extends d{fetchReceiverConfig(e,t){return on(this.configuration).fetchReceiverConfig(e.name,t).then(e=>e(this.axios,this.basePath))}saveReceiverConfig(e,t){return on(this.configuration).saveReceiverConfig(e.name,e.body,t).then(e=>e(this.axios,this.basePath))}};const ln=function(e){return{createPersonalAccessToken:async(t,n={})=>{let r=`/apis/security.halo.run/v1alpha1/personalaccesstokens`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deletePersonalAccessToken:async(t,n={})=>{h(`deletePersonalAccessToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getPersonalAccessToken:async(t,n={})=>{h(`getPersonalAccessToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listPersonalAccessToken:async(t,n,r,i,a,o={})=>{let s=`/apis/security.halo.run/v1alpha1/personalaccesstokens`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchPersonalAccessToken:async(t,n,r={})=>{h(`patchPersonalAccessToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updatePersonalAccessToken:async(t,n,r={})=>{h(`updatePersonalAccessToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},un=function(t){let n=ln(t);return{async createPersonalAccessToken(r,i){let a=await n.createPersonalAccessToken(r,i),o=t?.serverIndex??0,s=p[`PersonalAccessTokenV1alpha1Api.createPersonalAccessToken`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deletePersonalAccessToken(r,i){let a=await n.deletePersonalAccessToken(r,i),o=t?.serverIndex??0,s=p[`PersonalAccessTokenV1alpha1Api.deletePersonalAccessToken`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getPersonalAccessToken(r,i){let a=await n.getPersonalAccessToken(r,i),o=t?.serverIndex??0,s=p[`PersonalAccessTokenV1alpha1Api.getPersonalAccessToken`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listPersonalAccessToken(r,i,a,o,s,c){let l=await n.listPersonalAccessToken(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`PersonalAccessTokenV1alpha1Api.listPersonalAccessToken`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchPersonalAccessToken(r,i,a){let o=await n.patchPersonalAccessToken(r,i,a),s=t?.serverIndex??0,c=p[`PersonalAccessTokenV1alpha1Api.patchPersonalAccessToken`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updatePersonalAccessToken(r,i,a){let o=await n.updatePersonalAccessToken(r,i,a),s=t?.serverIndex??0,c=p[`PersonalAccessTokenV1alpha1Api.updatePersonalAccessToken`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},dn=function(e,t,n){let r=un(e);return{createPersonalAccessToken(e={},i){return r.createPersonalAccessToken(e.personalAccessToken,i).then(e=>e(n,t))},deletePersonalAccessToken(e,i){return r.deletePersonalAccessToken(e.name,i).then(e=>e(n,t))},getPersonalAccessToken(e,i){return r.getPersonalAccessToken(e.name,i).then(e=>e(n,t))},listPersonalAccessToken(e={},i){return r.listPersonalAccessToken(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchPersonalAccessToken(e,i){return r.patchPersonalAccessToken(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updatePersonalAccessToken(e,i){return r.updatePersonalAccessToken(e.name,e.personalAccessToken,i).then(e=>e(n,t))}}};var fn=class extends d{createPersonalAccessToken(e={},t){return un(this.configuration).createPersonalAccessToken(e.personalAccessToken,t).then(e=>e(this.axios,this.basePath))}deletePersonalAccessToken(e,t){return un(this.configuration).deletePersonalAccessToken(e.name,t).then(e=>e(this.axios,this.basePath))}getPersonalAccessToken(e,t){return un(this.configuration).getPersonalAccessToken(e.name,t).then(e=>e(this.axios,this.basePath))}listPersonalAccessToken(e={},t){return un(this.configuration).listPersonalAccessToken(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchPersonalAccessToken(e,t){return un(this.configuration).patchPersonalAccessToken(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePersonalAccessToken(e,t){return un(this.configuration).updatePersonalAccessToken(e.name,e.personalAccessToken,t).then(e=>e(this.axios,this.basePath))}};const pn=function(e){return{deletePat:async(t,n={})=>{h(`deletePat`,`name`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},generatePat:async(t,n={})=>{h(`generatePat`,`personalAccessToken`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},obtainPat:async(t,n={})=>{h(`obtainPat`,`name`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},obtainPats:async(t={})=>{let n=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},restorePat:async(t,n={})=>{h(`restorePat`,`name`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/restoration`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},revokePat:async(t,n={})=>{h(`revokePat`,`name`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}/actions/revocation`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}}}},mn=function(t){let n=pn(t);return{async deletePat(r,i){let a=await n.deletePat(r,i),o=t?.serverIndex??0,s=p[`PersonalAccessTokenV1alpha1UcApi.deletePat`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async generatePat(r,i){let a=await n.generatePat(r,i),o=t?.serverIndex??0,s=p[`PersonalAccessTokenV1alpha1UcApi.generatePat`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async obtainPat(r,i){let a=await n.obtainPat(r,i),o=t?.serverIndex??0,s=p[`PersonalAccessTokenV1alpha1UcApi.obtainPat`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async obtainPats(r){let i=await n.obtainPats(r),a=t?.serverIndex??0,o=p[`PersonalAccessTokenV1alpha1UcApi.obtainPats`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async restorePat(r,i){let a=await n.restorePat(r,i),o=t?.serverIndex??0,s=p[`PersonalAccessTokenV1alpha1UcApi.restorePat`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async revokePat(r,i){let a=await n.revokePat(r,i),o=t?.serverIndex??0,s=p[`PersonalAccessTokenV1alpha1UcApi.revokePat`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)}}},hn=function(e,t,n){let r=mn(e);return{deletePat(e,i){return r.deletePat(e.name,i).then(e=>e(n,t))},generatePat(e,i){return r.generatePat(e.personalAccessToken,i).then(e=>e(n,t))},obtainPat(e,i){return r.obtainPat(e.name,i).then(e=>e(n,t))},obtainPats(e){return r.obtainPats(e).then(e=>e(n,t))},restorePat(e,i){return r.restorePat(e.name,i).then(e=>e(n,t))},revokePat(e,i){return r.revokePat(e.name,i).then(e=>e(n,t))}}};var gn=class extends d{deletePat(e,t){return mn(this.configuration).deletePat(e.name,t).then(e=>e(this.axios,this.basePath))}generatePat(e,t){return mn(this.configuration).generatePat(e.personalAccessToken,t).then(e=>e(this.axios,this.basePath))}obtainPat(e,t){return mn(this.configuration).obtainPat(e.name,t).then(e=>e(this.axios,this.basePath))}obtainPats(e){return mn(this.configuration).obtainPats(e).then(e=>e(this.axios,this.basePath))}restorePat(e,t){return mn(this.configuration).restorePat(e.name,t).then(e=>e(this.axios,this.basePath))}revokePat(e,t){return mn(this.configuration).revokePat(e.name,t).then(e=>e(this.axios,this.basePath))}};const _n=function(e){return{createPlugin:async(t,n={})=>{let r=`/apis/plugin.halo.run/v1alpha1/plugins`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deletePlugin:async(t,n={})=>{h(`deletePlugin`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getPlugin:async(t,n={})=>{h(`getPlugin`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listPlugin:async(t,n,r,i,a,o={})=>{let s=`/apis/plugin.halo.run/v1alpha1/plugins`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchPlugin:async(t,n,r={})=>{h(`patchPlugin`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updatePlugin:async(t,n,r={})=>{h(`updatePlugin`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},vn=function(t){let n=_n(t);return{async createPlugin(r,i){let a=await n.createPlugin(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1Api.createPlugin`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deletePlugin(r,i){let a=await n.deletePlugin(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1Api.deletePlugin`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getPlugin(r,i){let a=await n.getPlugin(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1Api.getPlugin`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listPlugin(r,i,a,o,s,c){let l=await n.listPlugin(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`PluginV1alpha1Api.listPlugin`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchPlugin(r,i,a){let o=await n.patchPlugin(r,i,a),s=t?.serverIndex??0,c=p[`PluginV1alpha1Api.patchPlugin`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updatePlugin(r,i,a){let o=await n.updatePlugin(r,i,a),s=t?.serverIndex??0,c=p[`PluginV1alpha1Api.updatePlugin`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},yn=function(e,t,n){let r=vn(e);return{createPlugin(e={},i){return r.createPlugin(e.plugin,i).then(e=>e(n,t))},deletePlugin(e,i){return r.deletePlugin(e.name,i).then(e=>e(n,t))},getPlugin(e,i){return r.getPlugin(e.name,i).then(e=>e(n,t))},listPlugin(e={},i){return r.listPlugin(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchPlugin(e,i){return r.patchPlugin(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updatePlugin(e,i){return r.updatePlugin(e.name,e.plugin,i).then(e=>e(n,t))}}};var bn=class extends d{createPlugin(e={},t){return vn(this.configuration).createPlugin(e.plugin,t).then(e=>e(this.axios,this.basePath))}deletePlugin(e,t){return vn(this.configuration).deletePlugin(e.name,t).then(e=>e(this.axios,this.basePath))}getPlugin(e,t){return vn(this.configuration).getPlugin(e.name,t).then(e=>e(this.axios,this.basePath))}listPlugin(e={},t){return vn(this.configuration).listPlugin(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchPlugin(e,t){return vn(this.configuration).patchPlugin(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePlugin(e,t){return vn(this.configuration).updatePlugin(e.name,e.plugin,t).then(e=>e(this.axios,this.basePath))}};const xn=function(e){return{changePluginRunningState:async(t,n,r={})=>{h(`changePluginRunningState`,`name`,t),h(`changePluginRunningState`,`pluginRunningStateRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},fetchCssBundle:async(t={})=>{let n=`/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},fetchJsBundle:async(t={})=>{let n=`/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.js`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},fetchPluginJsonConfig:async(t,n={})=>{h(`fetchPluginJsonConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},fetchPluginSetting:async(t,n={})=>{h(`fetchPluginSetting`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},installPlugin:async(t,n,r,i={})=>{let a=`/apis/api.console.halo.run/v1alpha1/plugins/install`,o=new URL(a,m),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...i},l={},u={},d=new(e&&e.formDataCtor||FormData);g(c,e),await _(l,e),t!==void 0&&d.append(`file`,t),n!==void 0&&d.append(`presetName`,n),r!==void 0&&d.append(`source`,r),l[`Content-Type`]=`multipart/form-data`,y(o,u);let f=s&&s.headers?s.headers:{};return c.headers={...l,...f,...i.headers},c.data=d,{url:x(o),options:c}},installPluginFromUri:async(t,n={})=>{h(`installPluginFromUri`,`installFromUriRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},listPlugins:async(t,n,r,i,a,o,s,c={})=>{let l=`/apis/api.console.halo.run/v1alpha1/plugins`,u=new URL(l,m),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...c},p={},h={};g(f,e),await _(p,e),t!==void 0&&(h.page=t),n!==void 0&&(h.size=n),r&&(h.labelSelector=r),i&&(h.fieldSelector=i),a&&(h.sort=a),o!==void 0&&(h.keyword=o),s!==void 0&&(h.enabled=s),y(u,h);let v=d&&d.headers?d.headers:{};return f.headers={...p,...v,...c.headers},{url:x(u),options:f}},reloadPlugin:async(t,n={})=>{h(`reloadPlugin`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},resetPluginConfig:async(t,n={})=>{h(`resetPluginConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},updatePluginJsonConfig:async(t,n,r={})=>{h(`updatePluginJsonConfig`,`name`,t),h(`updatePluginJsonConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},upgradePlugin:async(t,n,r,i,a={})=>{h(`upgradePlugin`,`name`,t);let o=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade`.replace(`{name}`,encodeURIComponent(String(t))),s=new URL(o,m),c;e&&(c=e.baseOptions);let l={method:`POST`,...c,...a},u={},d={},f=new(e&&e.formDataCtor||FormData);g(l,e),await _(u,e),n!==void 0&&f.append(`file`,n),r!==void 0&&f.append(`presetName`,r),i!==void 0&&f.append(`source`,i),u[`Content-Type`]=`multipart/form-data`,y(s,d);let p=c&&c.headers?c.headers:{};return l.headers={...u,...p,...a.headers},l.data=f,{url:x(s),options:l}},upgradePluginFromUri:async(t,n,r={})=>{h(`upgradePluginFromUri`,`name`,t),h(`upgradePluginFromUri`,`upgradeFromUriRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade-from-uri`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},q=function(t){let n=xn(t);return{async changePluginRunningState(r,i,a){let o=await n.changePluginRunningState(r,i,a),s=t?.serverIndex??0,c=p[`PluginV1alpha1ConsoleApi.changePluginRunningState`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async fetchCssBundle(r){let i=await n.fetchCssBundle(r),a=t?.serverIndex??0,o=p[`PluginV1alpha1ConsoleApi.fetchCssBundle`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async fetchJsBundle(r){let i=await n.fetchJsBundle(r),a=t?.serverIndex??0,o=p[`PluginV1alpha1ConsoleApi.fetchJsBundle`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async fetchPluginJsonConfig(r,i){let a=await n.fetchPluginJsonConfig(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1ConsoleApi.fetchPluginJsonConfig`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async fetchPluginSetting(r,i){let a=await n.fetchPluginSetting(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1ConsoleApi.fetchPluginSetting`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async installPlugin(r,i,a,o){let s=await n.installPlugin(r,i,a,o),c=t?.serverIndex??0,l=p[`PluginV1alpha1ConsoleApi.installPlugin`]?.[c]?.url;return(n,r)=>S(s,e,u,t)(n,l||r)},async installPluginFromUri(r,i){let a=await n.installPluginFromUri(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1ConsoleApi.installPluginFromUri`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listPlugins(r,i,a,o,s,c,l,d){let f=await n.listPlugins(r,i,a,o,s,c,l,d),m=t?.serverIndex??0,h=p[`PluginV1alpha1ConsoleApi.listPlugins`]?.[m]?.url;return(n,r)=>S(f,e,u,t)(n,h||r)},async reloadPlugin(r,i){let a=await n.reloadPlugin(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1ConsoleApi.reloadPlugin`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async resetPluginConfig(r,i){let a=await n.resetPluginConfig(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1ConsoleApi.resetPluginConfig`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async updatePluginJsonConfig(r,i,a){let o=await n.updatePluginJsonConfig(r,i,a),s=t?.serverIndex??0,c=p[`PluginV1alpha1ConsoleApi.updatePluginJsonConfig`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async upgradePlugin(r,i,a,o,s){let c=await n.upgradePlugin(r,i,a,o,s),l=t?.serverIndex??0,d=p[`PluginV1alpha1ConsoleApi.upgradePlugin`]?.[l]?.url;return(n,r)=>S(c,e,u,t)(n,d||r)},async upgradePluginFromUri(r,i,a){let o=await n.upgradePluginFromUri(r,i,a),s=t?.serverIndex??0,c=p[`PluginV1alpha1ConsoleApi.upgradePluginFromUri`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Sn=function(e,t,n){let r=q(e);return{changePluginRunningState(e,i){return r.changePluginRunningState(e.name,e.pluginRunningStateRequest,i).then(e=>e(n,t))},fetchCssBundle(e){return r.fetchCssBundle(e).then(e=>e(n,t))},fetchJsBundle(e){return r.fetchJsBundle(e).then(e=>e(n,t))},fetchPluginJsonConfig(e,i){return r.fetchPluginJsonConfig(e.name,i).then(e=>e(n,t))},fetchPluginSetting(e,i){return r.fetchPluginSetting(e.name,i).then(e=>e(n,t))},installPlugin(e={},i){return r.installPlugin(e.file,e.presetName,e.source,i).then(e=>e(n,t))},installPluginFromUri(e,i){return r.installPluginFromUri(e.installFromUriRequest,i).then(e=>e(n,t))},listPlugins(e={},i){return r.listPlugins(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,e.enabled,i).then(e=>e(n,t))},reloadPlugin(e,i){return r.reloadPlugin(e.name,i).then(e=>e(n,t))},resetPluginConfig(e,i){return r.resetPluginConfig(e.name,i).then(e=>e(n,t))},updatePluginJsonConfig(e,i){return r.updatePluginJsonConfig(e.name,e.body,i).then(e=>e(n,t))},upgradePlugin(e,i){return r.upgradePlugin(e.name,e.file,e.presetName,e.source,i).then(e=>e(n,t))},upgradePluginFromUri(e,i){return r.upgradePluginFromUri(e.name,e.upgradeFromUriRequest,i).then(e=>e(n,t))}}};var Cn=class extends d{changePluginRunningState(e,t){return q(this.configuration).changePluginRunningState(e.name,e.pluginRunningStateRequest,t).then(e=>e(this.axios,this.basePath))}fetchCssBundle(e){return q(this.configuration).fetchCssBundle(e).then(e=>e(this.axios,this.basePath))}fetchJsBundle(e){return q(this.configuration).fetchJsBundle(e).then(e=>e(this.axios,this.basePath))}fetchPluginJsonConfig(e,t){return q(this.configuration).fetchPluginJsonConfig(e.name,t).then(e=>e(this.axios,this.basePath))}fetchPluginSetting(e,t){return q(this.configuration).fetchPluginSetting(e.name,t).then(e=>e(this.axios,this.basePath))}installPlugin(e={},t){return q(this.configuration).installPlugin(e.file,e.presetName,e.source,t).then(e=>e(this.axios,this.basePath))}installPluginFromUri(e,t){return q(this.configuration).installPluginFromUri(e.installFromUriRequest,t).then(e=>e(this.axios,this.basePath))}listPlugins(e={},t){return q(this.configuration).listPlugins(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,e.enabled,t).then(e=>e(this.axios,this.basePath))}reloadPlugin(e,t){return q(this.configuration).reloadPlugin(e.name,t).then(e=>e(this.axios,this.basePath))}resetPluginConfig(e,t){return q(this.configuration).resetPluginConfig(e.name,t).then(e=>e(this.axios,this.basePath))}updatePluginJsonConfig(e,t){return q(this.configuration).updatePluginJsonConfig(e.name,e.body,t).then(e=>e(this.axios,this.basePath))}upgradePlugin(e,t){return q(this.configuration).upgradePlugin(e.name,e.file,e.presetName,e.source,t).then(e=>e(this.axios,this.basePath))}upgradePluginFromUri(e,t){return q(this.configuration).upgradePluginFromUri(e.name,e.upgradeFromUriRequest,t).then(e=>e(this.axios,this.basePath))}};const wn={File:`FILE`,Preset:`PRESET`,Url:`URL`},Tn={File:`FILE`,Preset:`PRESET`,Url:`URL`},En=function(e){return{queryPluginAvailableByName:async(t,n={})=>{h(`queryPluginAvailableByName`,`name`,t);let r=`/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}}}},Dn=function(t){let n=En(t);return{async queryPluginAvailableByName(r,i){let a=await n.queryPluginAvailableByName(r,i),o=t?.serverIndex??0,s=p[`PluginV1alpha1PublicApi.queryPluginAvailableByName`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)}}},On=function(e,t,n){let r=Dn(e);return{queryPluginAvailableByName(e,i){return r.queryPluginAvailableByName(e.name,i).then(e=>e(n,t))}}};var kn=class extends d{queryPluginAvailableByName(e,t){return Dn(this.configuration).queryPluginAvailableByName(e.name,t).then(e=>e(this.axios,this.basePath))}};const An=function(e){return{getPolicyConfigByGroup:async(t,n,r={})=>{h(`getPolicyConfigByGroup`,`name`,t),h(`getPolicyConfigByGroup`,`group`,n);let i=`/apis/console.api.storage.halo.run/v1alpha1/policies/{name}/configs/{group}`.replace(`{name}`,encodeURIComponent(String(t))).replace(`{group}`,encodeURIComponent(String(n))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};g(s,e),await _(c,e),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},updatePolicyConfigByGroup:async(t,n,r,i={})=>{h(`updatePolicyConfigByGroup`,`name`,t),h(`updatePolicyConfigByGroup`,`group`,n),h(`updatePolicyConfigByGroup`,`body`,r);let a=`/apis/console.api.storage.halo.run/v1alpha1/policies/{name}/configs/{group}`.replace(`{name}`,encodeURIComponent(String(t))).replace(`{group}`,encodeURIComponent(String(n))),o=new URL(a,m),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};g(c,e),await _(l,e),l[`Content-Type`]=`application/json`,y(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},c.data=b(r,c,e),{url:x(o),options:c}}}},jn=function(t){let n=An(t);return{async getPolicyConfigByGroup(r,i,a){let o=await n.getPolicyConfigByGroup(r,i,a),s=t?.serverIndex??0,c=p[`PolicyAlpha1ConsoleApi.getPolicyConfigByGroup`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updatePolicyConfigByGroup(r,i,a,o){let s=await n.updatePolicyConfigByGroup(r,i,a,o),c=t?.serverIndex??0,l=p[`PolicyAlpha1ConsoleApi.updatePolicyConfigByGroup`]?.[c]?.url;return(n,r)=>S(s,e,u,t)(n,l||r)}}},Mn=function(e,t,n){let r=jn(e);return{getPolicyConfigByGroup(e,i){return r.getPolicyConfigByGroup(e.name,e.group,i).then(e=>e(n,t))},updatePolicyConfigByGroup(e,i){return r.updatePolicyConfigByGroup(e.name,e.group,e.body,i).then(e=>e(n,t))}}};var Nn=class extends d{getPolicyConfigByGroup(e,t){return jn(this.configuration).getPolicyConfigByGroup(e.name,e.group,t).then(e=>e(this.axios,this.basePath))}updatePolicyConfigByGroup(e,t){return jn(this.configuration).updatePolicyConfigByGroup(e.name,e.group,e.body,t).then(e=>e(this.axios,this.basePath))}};const Pn=function(e){return{createPolicyTemplate:async(t,n={})=>{let r=`/apis/storage.halo.run/v1alpha1/policytemplates`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deletePolicyTemplate:async(t,n={})=>{h(`deletePolicyTemplate`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getPolicyTemplate:async(t,n={})=>{h(`getPolicyTemplate`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listPolicyTemplate:async(t,n,r,i,a,o={})=>{let s=`/apis/storage.halo.run/v1alpha1/policytemplates`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchPolicyTemplate:async(t,n,r={})=>{h(`patchPolicyTemplate`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updatePolicyTemplate:async(t,n,r={})=>{h(`updatePolicyTemplate`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Fn=function(t){let n=Pn(t);return{async createPolicyTemplate(r,i){let a=await n.createPolicyTemplate(r,i),o=t?.serverIndex??0,s=p[`PolicyTemplateV1alpha1Api.createPolicyTemplate`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deletePolicyTemplate(r,i){let a=await n.deletePolicyTemplate(r,i),o=t?.serverIndex??0,s=p[`PolicyTemplateV1alpha1Api.deletePolicyTemplate`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getPolicyTemplate(r,i){let a=await n.getPolicyTemplate(r,i),o=t?.serverIndex??0,s=p[`PolicyTemplateV1alpha1Api.getPolicyTemplate`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listPolicyTemplate(r,i,a,o,s,c){let l=await n.listPolicyTemplate(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`PolicyTemplateV1alpha1Api.listPolicyTemplate`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchPolicyTemplate(r,i,a){let o=await n.patchPolicyTemplate(r,i,a),s=t?.serverIndex??0,c=p[`PolicyTemplateV1alpha1Api.patchPolicyTemplate`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updatePolicyTemplate(r,i,a){let o=await n.updatePolicyTemplate(r,i,a),s=t?.serverIndex??0,c=p[`PolicyTemplateV1alpha1Api.updatePolicyTemplate`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},In=function(e,t,n){let r=Fn(e);return{createPolicyTemplate(e={},i){return r.createPolicyTemplate(e.policyTemplate,i).then(e=>e(n,t))},deletePolicyTemplate(e,i){return r.deletePolicyTemplate(e.name,i).then(e=>e(n,t))},getPolicyTemplate(e,i){return r.getPolicyTemplate(e.name,i).then(e=>e(n,t))},listPolicyTemplate(e={},i){return r.listPolicyTemplate(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchPolicyTemplate(e,i){return r.patchPolicyTemplate(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updatePolicyTemplate(e,i){return r.updatePolicyTemplate(e.name,e.policyTemplate,i).then(e=>e(n,t))}}};var Ln=class extends d{createPolicyTemplate(e={},t){return Fn(this.configuration).createPolicyTemplate(e.policyTemplate,t).then(e=>e(this.axios,this.basePath))}deletePolicyTemplate(e,t){return Fn(this.configuration).deletePolicyTemplate(e.name,t).then(e=>e(this.axios,this.basePath))}getPolicyTemplate(e,t){return Fn(this.configuration).getPolicyTemplate(e.name,t).then(e=>e(this.axios,this.basePath))}listPolicyTemplate(e={},t){return Fn(this.configuration).listPolicyTemplate(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchPolicyTemplate(e,t){return Fn(this.configuration).patchPolicyTemplate(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePolicyTemplate(e,t){return Fn(this.configuration).updatePolicyTemplate(e.name,e.policyTemplate,t).then(e=>e(this.axios,this.basePath))}};const Rn=function(e){return{createPolicy:async(t,n={})=>{let r=`/apis/storage.halo.run/v1alpha1/policies`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deletePolicy:async(t,n={})=>{h(`deletePolicy`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getPolicy:async(t,n={})=>{h(`getPolicy`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listPolicy:async(t,n,r,i,a,o={})=>{let s=`/apis/storage.halo.run/v1alpha1/policies`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchPolicy:async(t,n,r={})=>{h(`patchPolicy`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updatePolicy:async(t,n,r={})=>{h(`updatePolicy`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},zn=function(t){let n=Rn(t);return{async createPolicy(r,i){let a=await n.createPolicy(r,i),o=t?.serverIndex??0,s=p[`PolicyV1alpha1Api.createPolicy`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deletePolicy(r,i){let a=await n.deletePolicy(r,i),o=t?.serverIndex??0,s=p[`PolicyV1alpha1Api.deletePolicy`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getPolicy(r,i){let a=await n.getPolicy(r,i),o=t?.serverIndex??0,s=p[`PolicyV1alpha1Api.getPolicy`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listPolicy(r,i,a,o,s,c){let l=await n.listPolicy(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`PolicyV1alpha1Api.listPolicy`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchPolicy(r,i,a){let o=await n.patchPolicy(r,i,a),s=t?.serverIndex??0,c=p[`PolicyV1alpha1Api.patchPolicy`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updatePolicy(r,i,a){let o=await n.updatePolicy(r,i,a),s=t?.serverIndex??0,c=p[`PolicyV1alpha1Api.updatePolicy`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Bn=function(e,t,n){let r=zn(e);return{createPolicy(e={},i){return r.createPolicy(e.policy,i).then(e=>e(n,t))},deletePolicy(e,i){return r.deletePolicy(e.name,i).then(e=>e(n,t))},getPolicy(e,i){return r.getPolicy(e.name,i).then(e=>e(n,t))},listPolicy(e={},i){return r.listPolicy(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchPolicy(e,i){return r.patchPolicy(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updatePolicy(e,i){return r.updatePolicy(e.name,e.policy,i).then(e=>e(n,t))}}};var Vn=class extends d{createPolicy(e={},t){return zn(this.configuration).createPolicy(e.policy,t).then(e=>e(this.axios,this.basePath))}deletePolicy(e,t){return zn(this.configuration).deletePolicy(e.name,t).then(e=>e(this.axios,this.basePath))}getPolicy(e,t){return zn(this.configuration).getPolicy(e.name,t).then(e=>e(this.axios,this.basePath))}listPolicy(e={},t){return zn(this.configuration).listPolicy(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchPolicy(e,t){return zn(this.configuration).patchPolicy(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePolicy(e,t){return zn(this.configuration).updatePolicy(e.name,e.policy,t).then(e=>e(this.axios,this.basePath))}};const Hn=function(e){return{createPost:async(t,n={})=>{let r=`/apis/content.halo.run/v1alpha1/posts`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deletePost:async(t,n={})=>{h(`deletePost`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getPost:async(t,n={})=>{h(`getPost`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listPost:async(t,n,r,i,a,o={})=>{let s=`/apis/content.halo.run/v1alpha1/posts`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchPost:async(t,n,r={})=>{h(`patchPost`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updatePost:async(t,n,r={})=>{h(`updatePost`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Un=function(t){let n=Hn(t);return{async createPost(r,i){let a=await n.createPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1Api.createPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deletePost(r,i){let a=await n.deletePost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1Api.deletePost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getPost(r,i){let a=await n.getPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1Api.getPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listPost(r,i,a,o,s,c){let l=await n.listPost(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`PostV1alpha1Api.listPost`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchPost(r,i,a){let o=await n.patchPost(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1Api.patchPost`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updatePost(r,i,a){let o=await n.updatePost(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1Api.updatePost`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Wn=function(e,t,n){let r=Un(e);return{createPost(e={},i){return r.createPost(e.post,i).then(e=>e(n,t))},deletePost(e,i){return r.deletePost(e.name,i).then(e=>e(n,t))},getPost(e,i){return r.getPost(e.name,i).then(e=>e(n,t))},listPost(e={},i){return r.listPost(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchPost(e,i){return r.patchPost(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updatePost(e,i){return r.updatePost(e.name,e.post,i).then(e=>e(n,t))}}};var Gn=class extends d{createPost(e={},t){return Un(this.configuration).createPost(e.post,t).then(e=>e(this.axios,this.basePath))}deletePost(e,t){return Un(this.configuration).deletePost(e.name,t).then(e=>e(this.axios,this.basePath))}getPost(e,t){return Un(this.configuration).getPost(e.name,t).then(e=>e(this.axios,this.basePath))}listPost(e={},t){return Un(this.configuration).listPost(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchPost(e,t){return Un(this.configuration).patchPost(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePost(e,t){return Un(this.configuration).updatePost(e.name,e.post,t).then(e=>e(this.axios,this.basePath))}};const Kn=function(e){return{deletePostContent:async(t,n,r={})=>{h(`deletePostContent`,`name`,t),h(`deletePostContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};g(s,e),await _(c,e),n!==void 0&&(l.snapshotName=n),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},draftPost:async(t,n={})=>{h(`draftPost`,`postRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},fetchPostContent:async(t,n,r={})=>{h(`fetchPostContent`,`name`,t),h(`fetchPostContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};g(s,e),await _(c,e),n!==void 0&&(l.snapshotName=n),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},fetchPostHeadContent:async(t,n={})=>{h(`fetchPostHeadContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/head-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},fetchPostReleaseContent:async(t,n={})=>{h(`fetchPostReleaseContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/release-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listPostSnapshots:async(t,n={})=>{h(`listPostSnapshots`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/snapshot`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listPosts:async(t,n,r,i,a,o,s,c,l={})=>{let u=`/apis/api.console.halo.run/v1alpha1/posts`,d=new URL(u,m),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...l},h={},v={};g(p,e),await _(h,e),t!==void 0&&(v.page=t),n!==void 0&&(v.size=n),r&&(v.labelSelector=r),i&&(v.fieldSelector=i),a&&(v.sort=a),o!==void 0&&(v.publishPhase=o),s!==void 0&&(v.keyword=s),c!==void 0&&(v.categoryWithChildren=c),y(d,v);let b=f&&f.headers?f.headers:{};return p.headers={...h,...b,...l.headers},{url:x(d),options:p}},publishPost:async(t,n,r,i={})=>{h(`publishPost`,`name`,t);let a=`/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,m),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};g(c,e),await _(l,e),n!==void 0&&(u.headSnapshot=n),r!==void 0&&(u.async=r),y(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:x(o),options:c}},recyclePost:async(t,n={})=>{h(`recyclePost`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},revertToSpecifiedSnapshotForPost:async(t,n,r={})=>{h(`revertToSpecifiedSnapshotForPost`,`name`,t),h(`revertToSpecifiedSnapshotForPost`,`revertSnapshotForPostParam`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/revert-content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},unpublishPost:async(t,n={})=>{h(`unpublishPost`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},updateDraftPost:async(t,n,r={})=>{h(`updateDraftPost`,`name`,t),h(`updateDraftPost`,`postRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updatePostContent:async(t,n,r={})=>{h(`updatePostContent`,`name`,t),h(`updatePostContent`,`content`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},J=function(t){let n=Kn(t);return{async deletePostContent(r,i,a){let o=await n.deletePostContent(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1ConsoleApi.deletePostContent`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async draftPost(r,i){let a=await n.draftPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1ConsoleApi.draftPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async fetchPostContent(r,i,a){let o=await n.fetchPostContent(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1ConsoleApi.fetchPostContent`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async fetchPostHeadContent(r,i){let a=await n.fetchPostHeadContent(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1ConsoleApi.fetchPostHeadContent`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async fetchPostReleaseContent(r,i){let a=await n.fetchPostReleaseContent(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1ConsoleApi.fetchPostReleaseContent`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listPostSnapshots(r,i){let a=await n.listPostSnapshots(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1ConsoleApi.listPostSnapshots`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listPosts(r,i,a,o,s,c,l,d,f){let m=await n.listPosts(r,i,a,o,s,c,l,d,f),h=t?.serverIndex??0,g=p[`PostV1alpha1ConsoleApi.listPosts`]?.[h]?.url;return(n,r)=>S(m,e,u,t)(n,g||r)},async publishPost(r,i,a,o){let s=await n.publishPost(r,i,a,o),c=t?.serverIndex??0,l=p[`PostV1alpha1ConsoleApi.publishPost`]?.[c]?.url;return(n,r)=>S(s,e,u,t)(n,l||r)},async recyclePost(r,i){let a=await n.recyclePost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1ConsoleApi.recyclePost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async revertToSpecifiedSnapshotForPost(r,i,a){let o=await n.revertToSpecifiedSnapshotForPost(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1ConsoleApi.revertToSpecifiedSnapshotForPost`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async unpublishPost(r,i){let a=await n.unpublishPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1ConsoleApi.unpublishPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async updateDraftPost(r,i,a){let o=await n.updateDraftPost(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1ConsoleApi.updateDraftPost`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updatePostContent(r,i,a){let o=await n.updatePostContent(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1ConsoleApi.updatePostContent`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},qn=function(e,t,n){let r=J(e);return{deletePostContent(e,i){return r.deletePostContent(e.name,e.snapshotName,i).then(e=>e(n,t))},draftPost(e,i){return r.draftPost(e.postRequest,i).then(e=>e(n,t))},fetchPostContent(e,i){return r.fetchPostContent(e.name,e.snapshotName,i).then(e=>e(n,t))},fetchPostHeadContent(e,i){return r.fetchPostHeadContent(e.name,i).then(e=>e(n,t))},fetchPostReleaseContent(e,i){return r.fetchPostReleaseContent(e.name,i).then(e=>e(n,t))},listPostSnapshots(e,i){return r.listPostSnapshots(e.name,i).then(e=>e(n,t))},listPosts(e={},i){return r.listPosts(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.publishPhase,e.keyword,e.categoryWithChildren,i).then(e=>e(n,t))},publishPost(e,i){return r.publishPost(e.name,e.headSnapshot,e.async,i).then(e=>e(n,t))},recyclePost(e,i){return r.recyclePost(e.name,i).then(e=>e(n,t))},revertToSpecifiedSnapshotForPost(e,i){return r.revertToSpecifiedSnapshotForPost(e.name,e.revertSnapshotForPostParam,i).then(e=>e(n,t))},unpublishPost(e,i){return r.unpublishPost(e.name,i).then(e=>e(n,t))},updateDraftPost(e,i){return r.updateDraftPost(e.name,e.postRequest,i).then(e=>e(n,t))},updatePostContent(e,i){return r.updatePostContent(e.name,e.content,i).then(e=>e(n,t))}}};var Jn=class extends d{deletePostContent(e,t){return J(this.configuration).deletePostContent(e.name,e.snapshotName,t).then(e=>e(this.axios,this.basePath))}draftPost(e,t){return J(this.configuration).draftPost(e.postRequest,t).then(e=>e(this.axios,this.basePath))}fetchPostContent(e,t){return J(this.configuration).fetchPostContent(e.name,e.snapshotName,t).then(e=>e(this.axios,this.basePath))}fetchPostHeadContent(e,t){return J(this.configuration).fetchPostHeadContent(e.name,t).then(e=>e(this.axios,this.basePath))}fetchPostReleaseContent(e,t){return J(this.configuration).fetchPostReleaseContent(e.name,t).then(e=>e(this.axios,this.basePath))}listPostSnapshots(e,t){return J(this.configuration).listPostSnapshots(e.name,t).then(e=>e(this.axios,this.basePath))}listPosts(e={},t){return J(this.configuration).listPosts(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.publishPhase,e.keyword,e.categoryWithChildren,t).then(e=>e(this.axios,this.basePath))}publishPost(e,t){return J(this.configuration).publishPost(e.name,e.headSnapshot,e.async,t).then(e=>e(this.axios,this.basePath))}recyclePost(e,t){return J(this.configuration).recyclePost(e.name,t).then(e=>e(this.axios,this.basePath))}revertToSpecifiedSnapshotForPost(e,t){return J(this.configuration).revertToSpecifiedSnapshotForPost(e.name,e.revertSnapshotForPostParam,t).then(e=>e(this.axios,this.basePath))}unpublishPost(e,t){return J(this.configuration).unpublishPost(e.name,t).then(e=>e(this.axios,this.basePath))}updateDraftPost(e,t){return J(this.configuration).updateDraftPost(e.name,e.postRequest,t).then(e=>e(this.axios,this.basePath))}updatePostContent(e,t){return J(this.configuration).updatePostContent(e.name,e.content,t).then(e=>e(this.axios,this.basePath))}};const Yn={Draft:`DRAFT`,PendingApproval:`PENDING_APPROVAL`,Published:`PUBLISHED`,Failed:`FAILED`},Xn=function(e){return{queryPostByName:async(t,n={})=>{h(`queryPostByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},queryPostNavigationByName:async(t,n={})=>{h(`queryPostNavigationByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},queryPosts:async(t,n,r,i,a,o={})=>{let s=`/apis/api.content.halo.run/v1alpha1/posts`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}}}},Zn=function(t){let n=Xn(t);return{async queryPostByName(r,i){let a=await n.queryPostByName(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1PublicApi.queryPostByName`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async queryPostNavigationByName(r,i){let a=await n.queryPostNavigationByName(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1PublicApi.queryPostNavigationByName`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async queryPosts(r,i,a,o,s,c){let l=await n.queryPosts(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`PostV1alpha1PublicApi.queryPosts`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)}}},Qn=function(e,t,n){let r=Zn(e);return{queryPostByName(e,i){return r.queryPostByName(e.name,i).then(e=>e(n,t))},queryPostNavigationByName(e,i){return r.queryPostNavigationByName(e.name,i).then(e=>e(n,t))},queryPosts(e={},i){return r.queryPosts(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))}}};var $n=class extends d{queryPostByName(e,t){return Zn(this.configuration).queryPostByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryPostNavigationByName(e,t){return Zn(this.configuration).queryPostNavigationByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryPosts(e={},t){return Zn(this.configuration).queryPosts(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};const er=function(e){return{createMyPost:async(t,n={})=>{let r=`/apis/uc.api.content.halo.run/v1alpha1/posts`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},getMyPost:async(t,n={})=>{h(`getMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getMyPostDraft:async(t,n,r={})=>{h(`getMyPostDraft`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};g(s,e),await _(c,e),n!==void 0&&(l.patched=n),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},listMyPosts:async(t,n,r,i,a,o,s,c,l={})=>{let u=`/apis/uc.api.content.halo.run/v1alpha1/posts`,d=new URL(u,m),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...l},h={},v={};g(p,e),await _(h,e),t!==void 0&&(v.page=t),n!==void 0&&(v.size=n),r&&(v.labelSelector=r),i&&(v.fieldSelector=i),a&&(v.sort=a),o!==void 0&&(v.publishPhase=o),s!==void 0&&(v.keyword=s),c!==void 0&&(v.categoryWithChildren=c),y(d,v);let b=f&&f.headers?f.headers:{};return p.headers={...h,...b,...l.headers},{url:x(d),options:p}},publishMyPost:async(t,n={})=>{h(`publishMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},recycleMyPost:async(t,n={})=>{h(`recycleMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/recycle`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},unpublishMyPost:async(t,n={})=>{h(`unpublishMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},updateMyPost:async(t,n,r={})=>{h(`updateMyPost`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateMyPostDraft:async(t,n,r={})=>{h(`updateMyPostDraft`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Y=function(t){let n=er(t);return{async createMyPost(r,i){let a=await n.createMyPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1UcApi.createMyPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getMyPost(r,i){let a=await n.getMyPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1UcApi.getMyPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getMyPostDraft(r,i,a){let o=await n.getMyPostDraft(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1UcApi.getMyPostDraft`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async listMyPosts(r,i,a,o,s,c,l,d,f){let m=await n.listMyPosts(r,i,a,o,s,c,l,d,f),h=t?.serverIndex??0,g=p[`PostV1alpha1UcApi.listMyPosts`]?.[h]?.url;return(n,r)=>S(m,e,u,t)(n,g||r)},async publishMyPost(r,i){let a=await n.publishMyPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1UcApi.publishMyPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async recycleMyPost(r,i){let a=await n.recycleMyPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1UcApi.recycleMyPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async unpublishMyPost(r,i){let a=await n.unpublishMyPost(r,i),o=t?.serverIndex??0,s=p[`PostV1alpha1UcApi.unpublishMyPost`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async updateMyPost(r,i,a){let o=await n.updateMyPost(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1UcApi.updateMyPost`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateMyPostDraft(r,i,a){let o=await n.updateMyPostDraft(r,i,a),s=t?.serverIndex??0,c=p[`PostV1alpha1UcApi.updateMyPostDraft`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},tr=function(e,t,n){let r=Y(e);return{createMyPost(e={},i){return r.createMyPost(e.post,i).then(e=>e(n,t))},getMyPost(e,i){return r.getMyPost(e.name,i).then(e=>e(n,t))},getMyPostDraft(e,i){return r.getMyPostDraft(e.name,e.patched,i).then(e=>e(n,t))},listMyPosts(e={},i){return r.listMyPosts(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.publishPhase,e.keyword,e.categoryWithChildren,i).then(e=>e(n,t))},publishMyPost(e,i){return r.publishMyPost(e.name,i).then(e=>e(n,t))},recycleMyPost(e,i){return r.recycleMyPost(e.name,i).then(e=>e(n,t))},unpublishMyPost(e,i){return r.unpublishMyPost(e.name,i).then(e=>e(n,t))},updateMyPost(e,i){return r.updateMyPost(e.name,e.post,i).then(e=>e(n,t))},updateMyPostDraft(e,i){return r.updateMyPostDraft(e.name,e.snapshot,i).then(e=>e(n,t))}}};var nr=class extends d{createMyPost(e={},t){return Y(this.configuration).createMyPost(e.post,t).then(e=>e(this.axios,this.basePath))}getMyPost(e,t){return Y(this.configuration).getMyPost(e.name,t).then(e=>e(this.axios,this.basePath))}getMyPostDraft(e,t){return Y(this.configuration).getMyPostDraft(e.name,e.patched,t).then(e=>e(this.axios,this.basePath))}listMyPosts(e={},t){return Y(this.configuration).listMyPosts(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.publishPhase,e.keyword,e.categoryWithChildren,t).then(e=>e(this.axios,this.basePath))}publishMyPost(e,t){return Y(this.configuration).publishMyPost(e.name,t).then(e=>e(this.axios,this.basePath))}recycleMyPost(e,t){return Y(this.configuration).recycleMyPost(e.name,t).then(e=>e(this.axios,this.basePath))}unpublishMyPost(e,t){return Y(this.configuration).unpublishMyPost(e.name,t).then(e=>e(this.axios,this.basePath))}updateMyPost(e,t){return Y(this.configuration).updateMyPost(e.name,e.post,t).then(e=>e(this.axios,this.basePath))}updateMyPostDraft(e,t){return Y(this.configuration).updateMyPostDraft(e.name,e.snapshot,t).then(e=>e(this.axios,this.basePath))}};const rr={Draft:`DRAFT`,PendingApproval:`PENDING_APPROVAL`,Published:`PUBLISHED`,Failed:`FAILED`},ir=function(e){return{createReasonType:async(t,n={})=>{let r=`/apis/notification.halo.run/v1alpha1/reasontypes`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteReasonType:async(t,n={})=>{h(`deleteReasonType`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getReasonType:async(t,n={})=>{h(`getReasonType`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listReasonType:async(t,n,r,i,a,o={})=>{let s=`/apis/notification.halo.run/v1alpha1/reasontypes`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchReasonType:async(t,n,r={})=>{h(`patchReasonType`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateReasonType:async(t,n,r={})=>{h(`updateReasonType`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},ar=function(t){let n=ir(t);return{async createReasonType(r,i){let a=await n.createReasonType(r,i),o=t?.serverIndex??0,s=p[`ReasonTypeV1alpha1Api.createReasonType`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteReasonType(r,i){let a=await n.deleteReasonType(r,i),o=t?.serverIndex??0,s=p[`ReasonTypeV1alpha1Api.deleteReasonType`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getReasonType(r,i){let a=await n.getReasonType(r,i),o=t?.serverIndex??0,s=p[`ReasonTypeV1alpha1Api.getReasonType`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listReasonType(r,i,a,o,s,c){let l=await n.listReasonType(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ReasonTypeV1alpha1Api.listReasonType`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchReasonType(r,i,a){let o=await n.patchReasonType(r,i,a),s=t?.serverIndex??0,c=p[`ReasonTypeV1alpha1Api.patchReasonType`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateReasonType(r,i,a){let o=await n.updateReasonType(r,i,a),s=t?.serverIndex??0,c=p[`ReasonTypeV1alpha1Api.updateReasonType`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},or=function(e,t,n){let r=ar(e);return{createReasonType(e={},i){return r.createReasonType(e.reasonType,i).then(e=>e(n,t))},deleteReasonType(e,i){return r.deleteReasonType(e.name,i).then(e=>e(n,t))},getReasonType(e,i){return r.getReasonType(e.name,i).then(e=>e(n,t))},listReasonType(e={},i){return r.listReasonType(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchReasonType(e,i){return r.patchReasonType(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateReasonType(e,i){return r.updateReasonType(e.name,e.reasonType,i).then(e=>e(n,t))}}};var sr=class extends d{createReasonType(e={},t){return ar(this.configuration).createReasonType(e.reasonType,t).then(e=>e(this.axios,this.basePath))}deleteReasonType(e,t){return ar(this.configuration).deleteReasonType(e.name,t).then(e=>e(this.axios,this.basePath))}getReasonType(e,t){return ar(this.configuration).getReasonType(e.name,t).then(e=>e(this.axios,this.basePath))}listReasonType(e={},t){return ar(this.configuration).listReasonType(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchReasonType(e,t){return ar(this.configuration).patchReasonType(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateReasonType(e,t){return ar(this.configuration).updateReasonType(e.name,e.reasonType,t).then(e=>e(this.axios,this.basePath))}};const cr=function(e){return{createReason:async(t,n={})=>{let r=`/apis/notification.halo.run/v1alpha1/reasons`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteReason:async(t,n={})=>{h(`deleteReason`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getReason:async(t,n={})=>{h(`getReason`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listReason:async(t,n,r,i,a,o={})=>{let s=`/apis/notification.halo.run/v1alpha1/reasons`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchReason:async(t,n,r={})=>{h(`patchReason`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateReason:async(t,n,r={})=>{h(`updateReason`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},lr=function(t){let n=cr(t);return{async createReason(r,i){let a=await n.createReason(r,i),o=t?.serverIndex??0,s=p[`ReasonV1alpha1Api.createReason`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteReason(r,i){let a=await n.deleteReason(r,i),o=t?.serverIndex??0,s=p[`ReasonV1alpha1Api.deleteReason`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getReason(r,i){let a=await n.getReason(r,i),o=t?.serverIndex??0,s=p[`ReasonV1alpha1Api.getReason`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listReason(r,i,a,o,s,c){let l=await n.listReason(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ReasonV1alpha1Api.listReason`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchReason(r,i,a){let o=await n.patchReason(r,i,a),s=t?.serverIndex??0,c=p[`ReasonV1alpha1Api.patchReason`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateReason(r,i,a){let o=await n.updateReason(r,i,a),s=t?.serverIndex??0,c=p[`ReasonV1alpha1Api.updateReason`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},ur=function(e,t,n){let r=lr(e);return{createReason(e={},i){return r.createReason(e.reason,i).then(e=>e(n,t))},deleteReason(e,i){return r.deleteReason(e.name,i).then(e=>e(n,t))},getReason(e,i){return r.getReason(e.name,i).then(e=>e(n,t))},listReason(e={},i){return r.listReason(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchReason(e,i){return r.patchReason(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateReason(e,i){return r.updateReason(e.name,e.reason,i).then(e=>e(n,t))}}};var dr=class extends d{createReason(e={},t){return lr(this.configuration).createReason(e.reason,t).then(e=>e(this.axios,this.basePath))}deleteReason(e,t){return lr(this.configuration).deleteReason(e.name,t).then(e=>e(this.axios,this.basePath))}getReason(e,t){return lr(this.configuration).getReason(e.name,t).then(e=>e(this.axios,this.basePath))}listReason(e={},t){return lr(this.configuration).listReason(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchReason(e,t){return lr(this.configuration).patchReason(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateReason(e,t){return lr(this.configuration).updateReason(e.name,e.reason,t).then(e=>e(this.axios,this.basePath))}};const fr=function(e){return{createRememberMeToken:async(t,n={})=>{let r=`/apis/security.halo.run/v1alpha1/remembermetokens`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteRememberMeToken:async(t,n={})=>{h(`deleteRememberMeToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getRememberMeToken:async(t,n={})=>{h(`getRememberMeToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listRememberMeToken:async(t,n,r,i,a,o={})=>{let s=`/apis/security.halo.run/v1alpha1/remembermetokens`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchRememberMeToken:async(t,n,r={})=>{h(`patchRememberMeToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateRememberMeToken:async(t,n,r={})=>{h(`updateRememberMeToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},pr=function(t){let n=fr(t);return{async createRememberMeToken(r,i){let a=await n.createRememberMeToken(r,i),o=t?.serverIndex??0,s=p[`RememberMeTokenV1alpha1Api.createRememberMeToken`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteRememberMeToken(r,i){let a=await n.deleteRememberMeToken(r,i),o=t?.serverIndex??0,s=p[`RememberMeTokenV1alpha1Api.deleteRememberMeToken`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getRememberMeToken(r,i){let a=await n.getRememberMeToken(r,i),o=t?.serverIndex??0,s=p[`RememberMeTokenV1alpha1Api.getRememberMeToken`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listRememberMeToken(r,i,a,o,s,c){let l=await n.listRememberMeToken(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`RememberMeTokenV1alpha1Api.listRememberMeToken`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchRememberMeToken(r,i,a){let o=await n.patchRememberMeToken(r,i,a),s=t?.serverIndex??0,c=p[`RememberMeTokenV1alpha1Api.patchRememberMeToken`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateRememberMeToken(r,i,a){let o=await n.updateRememberMeToken(r,i,a),s=t?.serverIndex??0,c=p[`RememberMeTokenV1alpha1Api.updateRememberMeToken`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},mr=function(e,t,n){let r=pr(e);return{createRememberMeToken(e={},i){return r.createRememberMeToken(e.rememberMeToken,i).then(e=>e(n,t))},deleteRememberMeToken(e,i){return r.deleteRememberMeToken(e.name,i).then(e=>e(n,t))},getRememberMeToken(e,i){return r.getRememberMeToken(e.name,i).then(e=>e(n,t))},listRememberMeToken(e={},i){return r.listRememberMeToken(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchRememberMeToken(e,i){return r.patchRememberMeToken(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateRememberMeToken(e,i){return r.updateRememberMeToken(e.name,e.rememberMeToken,i).then(e=>e(n,t))}}};var hr=class extends d{createRememberMeToken(e={},t){return pr(this.configuration).createRememberMeToken(e.rememberMeToken,t).then(e=>e(this.axios,this.basePath))}deleteRememberMeToken(e,t){return pr(this.configuration).deleteRememberMeToken(e.name,t).then(e=>e(this.axios,this.basePath))}getRememberMeToken(e,t){return pr(this.configuration).getRememberMeToken(e.name,t).then(e=>e(this.axios,this.basePath))}listRememberMeToken(e={},t){return pr(this.configuration).listRememberMeToken(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchRememberMeToken(e,t){return pr(this.configuration).patchRememberMeToken(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateRememberMeToken(e,t){return pr(this.configuration).updateRememberMeToken(e.name,e.rememberMeToken,t).then(e=>e(this.axios,this.basePath))}};const gr=function(e){return{createReply:async(t,n={})=>{let r=`/apis/content.halo.run/v1alpha1/replies`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteReply:async(t,n={})=>{h(`deleteReply`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getReply:async(t,n={})=>{h(`getReply`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listReply:async(t,n,r,i,a,o={})=>{let s=`/apis/content.halo.run/v1alpha1/replies`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchReply:async(t,n,r={})=>{h(`patchReply`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateReply:async(t,n,r={})=>{h(`updateReply`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},_r=function(t){let n=gr(t);return{async createReply(r,i){let a=await n.createReply(r,i),o=t?.serverIndex??0,s=p[`ReplyV1alpha1Api.createReply`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteReply(r,i){let a=await n.deleteReply(r,i),o=t?.serverIndex??0,s=p[`ReplyV1alpha1Api.deleteReply`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getReply(r,i){let a=await n.getReply(r,i),o=t?.serverIndex??0,s=p[`ReplyV1alpha1Api.getReply`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listReply(r,i,a,o,s,c){let l=await n.listReply(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ReplyV1alpha1Api.listReply`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchReply(r,i,a){let o=await n.patchReply(r,i,a),s=t?.serverIndex??0,c=p[`ReplyV1alpha1Api.patchReply`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateReply(r,i,a){let o=await n.updateReply(r,i,a),s=t?.serverIndex??0,c=p[`ReplyV1alpha1Api.updateReply`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},vr=function(e,t,n){let r=_r(e);return{createReply(e={},i){return r.createReply(e.reply,i).then(e=>e(n,t))},deleteReply(e,i){return r.deleteReply(e.name,i).then(e=>e(n,t))},getReply(e,i){return r.getReply(e.name,i).then(e=>e(n,t))},listReply(e={},i){return r.listReply(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchReply(e,i){return r.patchReply(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateReply(e,i){return r.updateReply(e.name,e.reply,i).then(e=>e(n,t))}}};var yr=class extends d{createReply(e={},t){return _r(this.configuration).createReply(e.reply,t).then(e=>e(this.axios,this.basePath))}deleteReply(e,t){return _r(this.configuration).deleteReply(e.name,t).then(e=>e(this.axios,this.basePath))}getReply(e,t){return _r(this.configuration).getReply(e.name,t).then(e=>e(this.axios,this.basePath))}listReply(e={},t){return _r(this.configuration).listReply(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchReply(e,t){return _r(this.configuration).patchReply(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateReply(e,t){return _r(this.configuration).updateReply(e.name,e.reply,t).then(e=>e(this.axios,this.basePath))}};const br=function(e){return{listReplies:async(t,n,r,i,a,o,s={})=>{h(`listReplies`,`commentName`,t);let c=`/apis/api.console.halo.run/v1alpha1/replies`,l=new URL(c,m),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};g(d,e),await _(f,e),n!==void 0&&(p.page=n),r!==void 0&&(p.size=r),i&&(p.labelSelector=i),a&&(p.fieldSelector=a),o&&(p.sort=o),t!==void 0&&(p.commentName=t),y(l,p);let v=u&&u.headers?u.headers:{};return d.headers={...f,...v,...s.headers},{url:x(l),options:d}}}},xr=function(t){let n=br(t);return{async listReplies(r,i,a,o,s,c,l){let d=await n.listReplies(r,i,a,o,s,c,l),f=t?.serverIndex??0,m=p[`ReplyV1alpha1ConsoleApi.listReplies`]?.[f]?.url;return(n,r)=>S(d,e,u,t)(n,m||r)}}},Sr=function(e,t,n){let r=xr(e);return{listReplies(e,i){return r.listReplies(e.commentName,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))}}};var Cr=class extends d{listReplies(e,t){return xr(this.configuration).listReplies(e.commentName,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};const wr=function(e){return{createReverseProxy:async(t,n={})=>{let r=`/apis/plugin.halo.run/v1alpha1/reverseproxies`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteReverseProxy:async(t,n={})=>{h(`deleteReverseProxy`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getReverseProxy:async(t,n={})=>{h(`getReverseProxy`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listReverseProxy:async(t,n,r,i,a,o={})=>{let s=`/apis/plugin.halo.run/v1alpha1/reverseproxies`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchReverseProxy:async(t,n,r={})=>{h(`patchReverseProxy`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateReverseProxy:async(t,n,r={})=>{h(`updateReverseProxy`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Tr=function(t){let n=wr(t);return{async createReverseProxy(r,i){let a=await n.createReverseProxy(r,i),o=t?.serverIndex??0,s=p[`ReverseProxyV1alpha1Api.createReverseProxy`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteReverseProxy(r,i){let a=await n.deleteReverseProxy(r,i),o=t?.serverIndex??0,s=p[`ReverseProxyV1alpha1Api.deleteReverseProxy`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getReverseProxy(r,i){let a=await n.getReverseProxy(r,i),o=t?.serverIndex??0,s=p[`ReverseProxyV1alpha1Api.getReverseProxy`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listReverseProxy(r,i,a,o,s,c){let l=await n.listReverseProxy(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ReverseProxyV1alpha1Api.listReverseProxy`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchReverseProxy(r,i,a){let o=await n.patchReverseProxy(r,i,a),s=t?.serverIndex??0,c=p[`ReverseProxyV1alpha1Api.patchReverseProxy`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateReverseProxy(r,i,a){let o=await n.updateReverseProxy(r,i,a),s=t?.serverIndex??0,c=p[`ReverseProxyV1alpha1Api.updateReverseProxy`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Er=function(e,t,n){let r=Tr(e);return{createReverseProxy(e={},i){return r.createReverseProxy(e.reverseProxy,i).then(e=>e(n,t))},deleteReverseProxy(e,i){return r.deleteReverseProxy(e.name,i).then(e=>e(n,t))},getReverseProxy(e,i){return r.getReverseProxy(e.name,i).then(e=>e(n,t))},listReverseProxy(e={},i){return r.listReverseProxy(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchReverseProxy(e,i){return r.patchReverseProxy(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateReverseProxy(e,i){return r.updateReverseProxy(e.name,e.reverseProxy,i).then(e=>e(n,t))}}};var Dr=class extends d{createReverseProxy(e={},t){return Tr(this.configuration).createReverseProxy(e.reverseProxy,t).then(e=>e(this.axios,this.basePath))}deleteReverseProxy(e,t){return Tr(this.configuration).deleteReverseProxy(e.name,t).then(e=>e(this.axios,this.basePath))}getReverseProxy(e,t){return Tr(this.configuration).getReverseProxy(e.name,t).then(e=>e(this.axios,this.basePath))}listReverseProxy(e={},t){return Tr(this.configuration).listReverseProxy(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchReverseProxy(e,t){return Tr(this.configuration).patchReverseProxy(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateReverseProxy(e,t){return Tr(this.configuration).updateReverseProxy(e.name,e.reverseProxy,t).then(e=>e(this.axios,this.basePath))}};const Or=function(e){return{createRoleBinding:async(t,n={})=>{let r=`/api/v1alpha1/rolebindings`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteRoleBinding:async(t,n={})=>{h(`deleteRoleBinding`,`name`,t);let r=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getRoleBinding:async(t,n={})=>{h(`getRoleBinding`,`name`,t);let r=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listRoleBinding:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/rolebindings`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchRoleBinding:async(t,n,r={})=>{h(`patchRoleBinding`,`name`,t);let i=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateRoleBinding:async(t,n,r={})=>{h(`updateRoleBinding`,`name`,t);let i=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},kr=function(t){let n=Or(t);return{async createRoleBinding(r,i){let a=await n.createRoleBinding(r,i),o=t?.serverIndex??0,s=p[`RoleBindingV1alpha1Api.createRoleBinding`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteRoleBinding(r,i){let a=await n.deleteRoleBinding(r,i),o=t?.serverIndex??0,s=p[`RoleBindingV1alpha1Api.deleteRoleBinding`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getRoleBinding(r,i){let a=await n.getRoleBinding(r,i),o=t?.serverIndex??0,s=p[`RoleBindingV1alpha1Api.getRoleBinding`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listRoleBinding(r,i,a,o,s,c){let l=await n.listRoleBinding(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`RoleBindingV1alpha1Api.listRoleBinding`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchRoleBinding(r,i,a){let o=await n.patchRoleBinding(r,i,a),s=t?.serverIndex??0,c=p[`RoleBindingV1alpha1Api.patchRoleBinding`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateRoleBinding(r,i,a){let o=await n.updateRoleBinding(r,i,a),s=t?.serverIndex??0,c=p[`RoleBindingV1alpha1Api.updateRoleBinding`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Ar=function(e,t,n){let r=kr(e);return{createRoleBinding(e={},i){return r.createRoleBinding(e.roleBinding,i).then(e=>e(n,t))},deleteRoleBinding(e,i){return r.deleteRoleBinding(e.name,i).then(e=>e(n,t))},getRoleBinding(e,i){return r.getRoleBinding(e.name,i).then(e=>e(n,t))},listRoleBinding(e={},i){return r.listRoleBinding(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchRoleBinding(e,i){return r.patchRoleBinding(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateRoleBinding(e,i){return r.updateRoleBinding(e.name,e.roleBinding,i).then(e=>e(n,t))}}};var jr=class extends d{createRoleBinding(e={},t){return kr(this.configuration).createRoleBinding(e.roleBinding,t).then(e=>e(this.axios,this.basePath))}deleteRoleBinding(e,t){return kr(this.configuration).deleteRoleBinding(e.name,t).then(e=>e(this.axios,this.basePath))}getRoleBinding(e,t){return kr(this.configuration).getRoleBinding(e.name,t).then(e=>e(this.axios,this.basePath))}listRoleBinding(e={},t){return kr(this.configuration).listRoleBinding(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchRoleBinding(e,t){return kr(this.configuration).patchRoleBinding(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateRoleBinding(e,t){return kr(this.configuration).updateRoleBinding(e.name,e.roleBinding,t).then(e=>e(this.axios,this.basePath))}};const Mr=function(e){return{createRole:async(t,n={})=>{let r=`/api/v1alpha1/roles`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteRole:async(t,n={})=>{h(`deleteRole`,`name`,t);let r=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getRole:async(t,n={})=>{h(`getRole`,`name`,t);let r=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listRole:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/roles`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchRole:async(t,n,r={})=>{h(`patchRole`,`name`,t);let i=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateRole:async(t,n,r={})=>{h(`updateRole`,`name`,t);let i=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Nr=function(t){let n=Mr(t);return{async createRole(r,i){let a=await n.createRole(r,i),o=t?.serverIndex??0,s=p[`RoleV1alpha1Api.createRole`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteRole(r,i){let a=await n.deleteRole(r,i),o=t?.serverIndex??0,s=p[`RoleV1alpha1Api.deleteRole`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getRole(r,i){let a=await n.getRole(r,i),o=t?.serverIndex??0,s=p[`RoleV1alpha1Api.getRole`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listRole(r,i,a,o,s,c){let l=await n.listRole(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`RoleV1alpha1Api.listRole`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchRole(r,i,a){let o=await n.patchRole(r,i,a),s=t?.serverIndex??0,c=p[`RoleV1alpha1Api.patchRole`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateRole(r,i,a){let o=await n.updateRole(r,i,a),s=t?.serverIndex??0,c=p[`RoleV1alpha1Api.updateRole`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Pr=function(e,t,n){let r=Nr(e);return{createRole(e={},i){return r.createRole(e.role,i).then(e=>e(n,t))},deleteRole(e,i){return r.deleteRole(e.name,i).then(e=>e(n,t))},getRole(e,i){return r.getRole(e.name,i).then(e=>e(n,t))},listRole(e={},i){return r.listRole(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchRole(e,i){return r.patchRole(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateRole(e,i){return r.updateRole(e.name,e.role,i).then(e=>e(n,t))}}};var Fr=class extends d{createRole(e={},t){return Nr(this.configuration).createRole(e.role,t).then(e=>e(this.axios,this.basePath))}deleteRole(e,t){return Nr(this.configuration).deleteRole(e.name,t).then(e=>e(this.axios,this.basePath))}getRole(e,t){return Nr(this.configuration).getRole(e.name,t).then(e=>e(this.axios,this.basePath))}listRole(e={},t){return Nr(this.configuration).listRole(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchRole(e,t){return Nr(this.configuration).patchRole(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateRole(e,t){return Nr(this.configuration).updateRole(e.name,e.role,t).then(e=>e(this.axios,this.basePath))}};const Ir=function(e){return{createSecret:async(t,n={})=>{let r=`/api/v1alpha1/secrets`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteSecret:async(t,n={})=>{h(`deleteSecret`,`name`,t);let r=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getSecret:async(t,n={})=>{h(`getSecret`,`name`,t);let r=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listSecret:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/secrets`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchSecret:async(t,n,r={})=>{h(`patchSecret`,`name`,t);let i=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateSecret:async(t,n,r={})=>{h(`updateSecret`,`name`,t);let i=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Lr=function(t){let n=Ir(t);return{async createSecret(r,i){let a=await n.createSecret(r,i),o=t?.serverIndex??0,s=p[`SecretV1alpha1Api.createSecret`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteSecret(r,i){let a=await n.deleteSecret(r,i),o=t?.serverIndex??0,s=p[`SecretV1alpha1Api.deleteSecret`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getSecret(r,i){let a=await n.getSecret(r,i),o=t?.serverIndex??0,s=p[`SecretV1alpha1Api.getSecret`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listSecret(r,i,a,o,s,c){let l=await n.listSecret(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`SecretV1alpha1Api.listSecret`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchSecret(r,i,a){let o=await n.patchSecret(r,i,a),s=t?.serverIndex??0,c=p[`SecretV1alpha1Api.patchSecret`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateSecret(r,i,a){let o=await n.updateSecret(r,i,a),s=t?.serverIndex??0,c=p[`SecretV1alpha1Api.updateSecret`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Rr=function(e,t,n){let r=Lr(e);return{createSecret(e={},i){return r.createSecret(e.secret,i).then(e=>e(n,t))},deleteSecret(e,i){return r.deleteSecret(e.name,i).then(e=>e(n,t))},getSecret(e,i){return r.getSecret(e.name,i).then(e=>e(n,t))},listSecret(e={},i){return r.listSecret(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchSecret(e,i){return r.patchSecret(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateSecret(e,i){return r.updateSecret(e.name,e.secret,i).then(e=>e(n,t))}}};var zr=class extends d{createSecret(e={},t){return Lr(this.configuration).createSecret(e.secret,t).then(e=>e(this.axios,this.basePath))}deleteSecret(e,t){return Lr(this.configuration).deleteSecret(e.name,t).then(e=>e(this.axios,this.basePath))}getSecret(e,t){return Lr(this.configuration).getSecret(e.name,t).then(e=>e(this.axios,this.basePath))}listSecret(e={},t){return Lr(this.configuration).listSecret(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchSecret(e,t){return Lr(this.configuration).patchSecret(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSecret(e,t){return Lr(this.configuration).updateSecret(e.name,e.secret,t).then(e=>e(this.axios,this.basePath))}};const Br=function(e){return{createSetting:async(t,n={})=>{let r=`/api/v1alpha1/settings`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteSetting:async(t,n={})=>{h(`deleteSetting`,`name`,t);let r=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getSetting:async(t,n={})=>{h(`getSetting`,`name`,t);let r=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listSetting:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/settings`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchSetting:async(t,n,r={})=>{h(`patchSetting`,`name`,t);let i=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateSetting:async(t,n,r={})=>{h(`updateSetting`,`name`,t);let i=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Vr=function(t){let n=Br(t);return{async createSetting(r,i){let a=await n.createSetting(r,i),o=t?.serverIndex??0,s=p[`SettingV1alpha1Api.createSetting`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteSetting(r,i){let a=await n.deleteSetting(r,i),o=t?.serverIndex??0,s=p[`SettingV1alpha1Api.deleteSetting`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getSetting(r,i){let a=await n.getSetting(r,i),o=t?.serverIndex??0,s=p[`SettingV1alpha1Api.getSetting`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listSetting(r,i,a,o,s,c){let l=await n.listSetting(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`SettingV1alpha1Api.listSetting`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchSetting(r,i,a){let o=await n.patchSetting(r,i,a),s=t?.serverIndex??0,c=p[`SettingV1alpha1Api.patchSetting`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateSetting(r,i,a){let o=await n.updateSetting(r,i,a),s=t?.serverIndex??0,c=p[`SettingV1alpha1Api.updateSetting`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Hr=function(e,t,n){let r=Vr(e);return{createSetting(e={},i){return r.createSetting(e.setting,i).then(e=>e(n,t))},deleteSetting(e,i){return r.deleteSetting(e.name,i).then(e=>e(n,t))},getSetting(e,i){return r.getSetting(e.name,i).then(e=>e(n,t))},listSetting(e={},i){return r.listSetting(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchSetting(e,i){return r.patchSetting(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateSetting(e,i){return r.updateSetting(e.name,e.setting,i).then(e=>e(n,t))}}};var Ur=class extends d{createSetting(e={},t){return Vr(this.configuration).createSetting(e.setting,t).then(e=>e(this.axios,this.basePath))}deleteSetting(e,t){return Vr(this.configuration).deleteSetting(e.name,t).then(e=>e(this.axios,this.basePath))}getSetting(e,t){return Vr(this.configuration).getSetting(e.name,t).then(e=>e(this.axios,this.basePath))}listSetting(e={},t){return Vr(this.configuration).listSetting(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchSetting(e,t){return Vr(this.configuration).patchSetting(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSetting(e,t){return Vr(this.configuration).updateSetting(e.name,e.setting,t).then(e=>e(this.axios,this.basePath))}};const Wr=function(e){return{createSinglePage:async(t,n={})=>{let r=`/apis/content.halo.run/v1alpha1/singlepages`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteSinglePage:async(t,n={})=>{h(`deleteSinglePage`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getSinglePage:async(t,n={})=>{h(`getSinglePage`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listSinglePage:async(t,n,r,i,a,o={})=>{let s=`/apis/content.halo.run/v1alpha1/singlepages`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchSinglePage:async(t,n,r={})=>{h(`patchSinglePage`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateSinglePage:async(t,n,r={})=>{h(`updateSinglePage`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Gr=function(t){let n=Wr(t);return{async createSinglePage(r,i){let a=await n.createSinglePage(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1Api.createSinglePage`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteSinglePage(r,i){let a=await n.deleteSinglePage(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1Api.deleteSinglePage`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getSinglePage(r,i){let a=await n.getSinglePage(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1Api.getSinglePage`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listSinglePage(r,i,a,o,s,c){let l=await n.listSinglePage(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`SinglePageV1alpha1Api.listSinglePage`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchSinglePage(r,i,a){let o=await n.patchSinglePage(r,i,a),s=t?.serverIndex??0,c=p[`SinglePageV1alpha1Api.patchSinglePage`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateSinglePage(r,i,a){let o=await n.updateSinglePage(r,i,a),s=t?.serverIndex??0,c=p[`SinglePageV1alpha1Api.updateSinglePage`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Kr=function(e,t,n){let r=Gr(e);return{createSinglePage(e={},i){return r.createSinglePage(e.singlePage,i).then(e=>e(n,t))},deleteSinglePage(e,i){return r.deleteSinglePage(e.name,i).then(e=>e(n,t))},getSinglePage(e,i){return r.getSinglePage(e.name,i).then(e=>e(n,t))},listSinglePage(e={},i){return r.listSinglePage(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchSinglePage(e,i){return r.patchSinglePage(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateSinglePage(e,i){return r.updateSinglePage(e.name,e.singlePage,i).then(e=>e(n,t))}}};var qr=class extends d{createSinglePage(e={},t){return Gr(this.configuration).createSinglePage(e.singlePage,t).then(e=>e(this.axios,this.basePath))}deleteSinglePage(e,t){return Gr(this.configuration).deleteSinglePage(e.name,t).then(e=>e(this.axios,this.basePath))}getSinglePage(e,t){return Gr(this.configuration).getSinglePage(e.name,t).then(e=>e(this.axios,this.basePath))}listSinglePage(e={},t){return Gr(this.configuration).listSinglePage(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchSinglePage(e,t){return Gr(this.configuration).patchSinglePage(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSinglePage(e,t){return Gr(this.configuration).updateSinglePage(e.name,e.singlePage,t).then(e=>e(this.axios,this.basePath))}};const Jr=function(e){return{deleteSinglePageContent:async(t,n,r={})=>{h(`deleteSinglePageContent`,`name`,t),h(`deleteSinglePageContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};g(s,e),await _(c,e),n!==void 0&&(l.snapshotName=n),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},draftSinglePage:async(t,n={})=>{h(`draftSinglePage`,`singlePageRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},fetchSinglePageContent:async(t,n,r={})=>{h(`fetchSinglePageContent`,`name`,t),h(`fetchSinglePageContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};g(s,e),await _(c,e),n!==void 0&&(l.snapshotName=n),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}},fetchSinglePageHeadContent:async(t,n={})=>{h(`fetchSinglePageHeadContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/head-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},fetchSinglePageReleaseContent:async(t,n={})=>{h(`fetchSinglePageReleaseContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/release-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listSinglePageSnapshots:async(t,n={})=>{h(`listSinglePageSnapshots`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/snapshot`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listSinglePages:async(t,n,r,i,a,o,s,c,l,u={})=>{let d=`/apis/api.console.halo.run/v1alpha1/singlepages`,f=new URL(d,m),p;e&&(p=e.baseOptions);let h={method:`GET`,...p,...u},v={},b={};g(h,e),await _(v,e),t!==void 0&&(b.page=t),n!==void 0&&(b.size=n),r&&(b.labelSelector=r),i&&(b.fieldSelector=i),a&&(b.sort=a),o&&(b.contributor=o),s!==void 0&&(b.publishPhase=s),c!==void 0&&(b.visible=c),l!==void 0&&(b.keyword=l),y(f,b);let S=p&&p.headers?p.headers:{};return h.headers={...v,...S,...u.headers},{url:x(f),options:h}},publishSinglePage:async(t,n={})=>{h(`publishSinglePage`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},revertToSpecifiedSnapshotForSinglePage:async(t,n,r={})=>{h(`revertToSpecifiedSnapshotForSinglePage`,`name`,t),h(`revertToSpecifiedSnapshotForSinglePage`,`revertSnapshotForSingleParam`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/revert-content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateDraftSinglePage:async(t,n,r={})=>{h(`updateDraftSinglePage`,`name`,t),h(`updateDraftSinglePage`,`singlePageRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateSinglePageContent:async(t,n,r={})=>{h(`updateSinglePageContent`,`name`,t),h(`updateSinglePageContent`,`content`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},X=function(t){let n=Jr(t);return{async deleteSinglePageContent(r,i,a){let o=await n.deleteSinglePageContent(r,i,a),s=t?.serverIndex??0,c=p[`SinglePageV1alpha1ConsoleApi.deleteSinglePageContent`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async draftSinglePage(r,i){let a=await n.draftSinglePage(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1ConsoleApi.draftSinglePage`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async fetchSinglePageContent(r,i,a){let o=await n.fetchSinglePageContent(r,i,a),s=t?.serverIndex??0,c=p[`SinglePageV1alpha1ConsoleApi.fetchSinglePageContent`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async fetchSinglePageHeadContent(r,i){let a=await n.fetchSinglePageHeadContent(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1ConsoleApi.fetchSinglePageHeadContent`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async fetchSinglePageReleaseContent(r,i){let a=await n.fetchSinglePageReleaseContent(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1ConsoleApi.fetchSinglePageReleaseContent`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listSinglePageSnapshots(r,i){let a=await n.listSinglePageSnapshots(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1ConsoleApi.listSinglePageSnapshots`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listSinglePages(r,i,a,o,s,c,l,d,f,m){let h=await n.listSinglePages(r,i,a,o,s,c,l,d,f,m),g=t?.serverIndex??0,_=p[`SinglePageV1alpha1ConsoleApi.listSinglePages`]?.[g]?.url;return(n,r)=>S(h,e,u,t)(n,_||r)},async publishSinglePage(r,i){let a=await n.publishSinglePage(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1ConsoleApi.publishSinglePage`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async revertToSpecifiedSnapshotForSinglePage(r,i,a){let o=await n.revertToSpecifiedSnapshotForSinglePage(r,i,a),s=t?.serverIndex??0,c=p[`SinglePageV1alpha1ConsoleApi.revertToSpecifiedSnapshotForSinglePage`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateDraftSinglePage(r,i,a){let o=await n.updateDraftSinglePage(r,i,a),s=t?.serverIndex??0,c=p[`SinglePageV1alpha1ConsoleApi.updateDraftSinglePage`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateSinglePageContent(r,i,a){let o=await n.updateSinglePageContent(r,i,a),s=t?.serverIndex??0,c=p[`SinglePageV1alpha1ConsoleApi.updateSinglePageContent`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Yr=function(e,t,n){let r=X(e);return{deleteSinglePageContent(e,i){return r.deleteSinglePageContent(e.name,e.snapshotName,i).then(e=>e(n,t))},draftSinglePage(e,i){return r.draftSinglePage(e.singlePageRequest,i).then(e=>e(n,t))},fetchSinglePageContent(e,i){return r.fetchSinglePageContent(e.name,e.snapshotName,i).then(e=>e(n,t))},fetchSinglePageHeadContent(e,i){return r.fetchSinglePageHeadContent(e.name,i).then(e=>e(n,t))},fetchSinglePageReleaseContent(e,i){return r.fetchSinglePageReleaseContent(e.name,i).then(e=>e(n,t))},listSinglePageSnapshots(e,i){return r.listSinglePageSnapshots(e.name,i).then(e=>e(n,t))},listSinglePages(e={},i){return r.listSinglePages(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.contributor,e.publishPhase,e.visible,e.keyword,i).then(e=>e(n,t))},publishSinglePage(e,i){return r.publishSinglePage(e.name,i).then(e=>e(n,t))},revertToSpecifiedSnapshotForSinglePage(e,i){return r.revertToSpecifiedSnapshotForSinglePage(e.name,e.revertSnapshotForSingleParam,i).then(e=>e(n,t))},updateDraftSinglePage(e,i){return r.updateDraftSinglePage(e.name,e.singlePageRequest,i).then(e=>e(n,t))},updateSinglePageContent(e,i){return r.updateSinglePageContent(e.name,e.content,i).then(e=>e(n,t))}}};var Xr=class extends d{deleteSinglePageContent(e,t){return X(this.configuration).deleteSinglePageContent(e.name,e.snapshotName,t).then(e=>e(this.axios,this.basePath))}draftSinglePage(e,t){return X(this.configuration).draftSinglePage(e.singlePageRequest,t).then(e=>e(this.axios,this.basePath))}fetchSinglePageContent(e,t){return X(this.configuration).fetchSinglePageContent(e.name,e.snapshotName,t).then(e=>e(this.axios,this.basePath))}fetchSinglePageHeadContent(e,t){return X(this.configuration).fetchSinglePageHeadContent(e.name,t).then(e=>e(this.axios,this.basePath))}fetchSinglePageReleaseContent(e,t){return X(this.configuration).fetchSinglePageReleaseContent(e.name,t).then(e=>e(this.axios,this.basePath))}listSinglePageSnapshots(e,t){return X(this.configuration).listSinglePageSnapshots(e.name,t).then(e=>e(this.axios,this.basePath))}listSinglePages(e={},t){return X(this.configuration).listSinglePages(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.contributor,e.publishPhase,e.visible,e.keyword,t).then(e=>e(this.axios,this.basePath))}publishSinglePage(e,t){return X(this.configuration).publishSinglePage(e.name,t).then(e=>e(this.axios,this.basePath))}revertToSpecifiedSnapshotForSinglePage(e,t){return X(this.configuration).revertToSpecifiedSnapshotForSinglePage(e.name,e.revertSnapshotForSingleParam,t).then(e=>e(this.axios,this.basePath))}updateDraftSinglePage(e,t){return X(this.configuration).updateDraftSinglePage(e.name,e.singlePageRequest,t).then(e=>e(this.axios,this.basePath))}updateSinglePageContent(e,t){return X(this.configuration).updateSinglePageContent(e.name,e.content,t).then(e=>e(this.axios,this.basePath))}};const Zr={Draft:`DRAFT`,PendingApproval:`PENDING_APPROVAL`,Published:`PUBLISHED`,Failed:`FAILED`},Qr={Public:`PUBLIC`,Internal:`INTERNAL`,Private:`PRIVATE`},$r=function(e){return{querySinglePageByName:async(t,n={})=>{h(`querySinglePageByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},querySinglePages:async(t,n,r,i,a,o={})=>{let s=`/apis/api.content.halo.run/v1alpha1/singlepages`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}}}},ei=function(t){let n=$r(t);return{async querySinglePageByName(r,i){let a=await n.querySinglePageByName(r,i),o=t?.serverIndex??0,s=p[`SinglePageV1alpha1PublicApi.querySinglePageByName`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async querySinglePages(r,i,a,o,s,c){let l=await n.querySinglePages(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`SinglePageV1alpha1PublicApi.querySinglePages`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)}}},ti=function(e,t,n){let r=ei(e);return{querySinglePageByName(e,i){return r.querySinglePageByName(e.name,i).then(e=>e(n,t))},querySinglePages(e={},i){return r.querySinglePages(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))}}};var ni=class extends d{querySinglePageByName(e,t){return ei(this.configuration).querySinglePageByName(e.name,t).then(e=>e(this.axios,this.basePath))}querySinglePages(e={},t){return ei(this.configuration).querySinglePages(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};const ri=function(e){return{createSnapshot:async(t,n={})=>{let r=`/apis/content.halo.run/v1alpha1/snapshots`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteSnapshot:async(t,n={})=>{h(`deleteSnapshot`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getSnapshot:async(t,n={})=>{h(`getSnapshot`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listSnapshot:async(t,n,r,i,a,o={})=>{let s=`/apis/content.halo.run/v1alpha1/snapshots`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchSnapshot:async(t,n,r={})=>{h(`patchSnapshot`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateSnapshot:async(t,n,r={})=>{h(`updateSnapshot`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},ii=function(t){let n=ri(t);return{async createSnapshot(r,i){let a=await n.createSnapshot(r,i),o=t?.serverIndex??0,s=p[`SnapshotV1alpha1Api.createSnapshot`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteSnapshot(r,i){let a=await n.deleteSnapshot(r,i),o=t?.serverIndex??0,s=p[`SnapshotV1alpha1Api.deleteSnapshot`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getSnapshot(r,i){let a=await n.getSnapshot(r,i),o=t?.serverIndex??0,s=p[`SnapshotV1alpha1Api.getSnapshot`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listSnapshot(r,i,a,o,s,c){let l=await n.listSnapshot(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`SnapshotV1alpha1Api.listSnapshot`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchSnapshot(r,i,a){let o=await n.patchSnapshot(r,i,a),s=t?.serverIndex??0,c=p[`SnapshotV1alpha1Api.patchSnapshot`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateSnapshot(r,i,a){let o=await n.updateSnapshot(r,i,a),s=t?.serverIndex??0,c=p[`SnapshotV1alpha1Api.updateSnapshot`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},ai=function(e,t,n){let r=ii(e);return{createSnapshot(e={},i){return r.createSnapshot(e.snapshot,i).then(e=>e(n,t))},deleteSnapshot(e,i){return r.deleteSnapshot(e.name,i).then(e=>e(n,t))},getSnapshot(e,i){return r.getSnapshot(e.name,i).then(e=>e(n,t))},listSnapshot(e={},i){return r.listSnapshot(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchSnapshot(e,i){return r.patchSnapshot(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateSnapshot(e,i){return r.updateSnapshot(e.name,e.snapshot,i).then(e=>e(n,t))}}};var oi=class extends d{createSnapshot(e={},t){return ii(this.configuration).createSnapshot(e.snapshot,t).then(e=>e(this.axios,this.basePath))}deleteSnapshot(e,t){return ii(this.configuration).deleteSnapshot(e.name,t).then(e=>e(this.axios,this.basePath))}getSnapshot(e,t){return ii(this.configuration).getSnapshot(e.name,t).then(e=>e(this.axios,this.basePath))}listSnapshot(e={},t){return ii(this.configuration).listSnapshot(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchSnapshot(e,t){return ii(this.configuration).patchSnapshot(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSnapshot(e,t){return ii(this.configuration).updateSnapshot(e.name,e.snapshot,t).then(e=>e(this.axios,this.basePath))}};const si=function(e){return{getSnapshotForPost:async(t,n,r,i={})=>{h(`getSnapshotForPost`,`name`,t),h(`getSnapshotForPost`,`postName`,n);let a=`/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,m),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};g(c,e),await _(l,e),n!==void 0&&(u.postName=n),r!==void 0&&(u.patched=r),y(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:x(o),options:c}}}},ci=function(t){let n=si(t);return{async getSnapshotForPost(r,i,a,o){let s=await n.getSnapshotForPost(r,i,a,o),c=t?.serverIndex??0,l=p[`SnapshotV1alpha1UcApi.getSnapshotForPost`]?.[c]?.url;return(n,r)=>S(s,e,u,t)(n,l||r)}}},li=function(e,t,n){let r=ci(e);return{getSnapshotForPost(e,i){return r.getSnapshotForPost(e.name,e.postName,e.patched,i).then(e=>e(n,t))}}};var ui=class extends d{getSnapshotForPost(e,t){return ci(this.configuration).getSnapshotForPost(e.name,e.postName,e.patched,t).then(e=>e(this.axios,this.basePath))}};const di=function(e){return{createSubscription:async(t,n={})=>{let r=`/apis/notification.halo.run/v1alpha1/subscriptions`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteSubscription:async(t,n={})=>{h(`deleteSubscription`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getSubscription:async(t,n={})=>{h(`getSubscription`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listSubscription:async(t,n,r,i,a,o={})=>{let s=`/apis/notification.halo.run/v1alpha1/subscriptions`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchSubscription:async(t,n,r={})=>{h(`patchSubscription`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateSubscription:async(t,n,r={})=>{h(`updateSubscription`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},fi=function(t){let n=di(t);return{async createSubscription(r,i){let a=await n.createSubscription(r,i),o=t?.serverIndex??0,s=p[`SubscriptionV1alpha1Api.createSubscription`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteSubscription(r,i){let a=await n.deleteSubscription(r,i),o=t?.serverIndex??0,s=p[`SubscriptionV1alpha1Api.deleteSubscription`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getSubscription(r,i){let a=await n.getSubscription(r,i),o=t?.serverIndex??0,s=p[`SubscriptionV1alpha1Api.getSubscription`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listSubscription(r,i,a,o,s,c){let l=await n.listSubscription(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`SubscriptionV1alpha1Api.listSubscription`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchSubscription(r,i,a){let o=await n.patchSubscription(r,i,a),s=t?.serverIndex??0,c=p[`SubscriptionV1alpha1Api.patchSubscription`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateSubscription(r,i,a){let o=await n.updateSubscription(r,i,a),s=t?.serverIndex??0,c=p[`SubscriptionV1alpha1Api.updateSubscription`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},pi=function(e,t,n){let r=fi(e);return{createSubscription(e={},i){return r.createSubscription(e.subscription,i).then(e=>e(n,t))},deleteSubscription(e,i){return r.deleteSubscription(e.name,i).then(e=>e(n,t))},getSubscription(e,i){return r.getSubscription(e.name,i).then(e=>e(n,t))},listSubscription(e={},i){return r.listSubscription(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchSubscription(e,i){return r.patchSubscription(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateSubscription(e,i){return r.updateSubscription(e.name,e.subscription,i).then(e=>e(n,t))}}};var mi=class extends d{createSubscription(e={},t){return fi(this.configuration).createSubscription(e.subscription,t).then(e=>e(this.axios,this.basePath))}deleteSubscription(e,t){return fi(this.configuration).deleteSubscription(e.name,t).then(e=>e(this.axios,this.basePath))}getSubscription(e,t){return fi(this.configuration).getSubscription(e.name,t).then(e=>e(this.axios,this.basePath))}listSubscription(e={},t){return fi(this.configuration).listSubscription(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchSubscription(e,t){return fi(this.configuration).patchSubscription(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSubscription(e,t){return fi(this.configuration).updateSubscription(e.name,e.subscription,t).then(e=>e(this.axios,this.basePath))}};const hi=function(e){return{getSystemConfigByGroup:async(t,n={})=>{h(`getSystemConfigByGroup`,`group`,t);let r=`/apis/console.api.halo.run/v1alpha1/systemconfigs/{group}`.replace(`{group}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},updateSystemConfigByGroup:async(t,n,r={})=>{h(`updateSystemConfigByGroup`,`group`,t);let i=`/apis/console.api.halo.run/v1alpha1/systemconfigs/{group}`.replace(`{group}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},gi=function(t){let n=hi(t);return{async getSystemConfigByGroup(r,i){let a=await n.getSystemConfigByGroup(r,i),o=t?.serverIndex??0,s=p[`SystemConfigV1alpha1ConsoleApi.getSystemConfigByGroup`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async updateSystemConfigByGroup(r,i,a){let o=await n.updateSystemConfigByGroup(r,i,a),s=t?.serverIndex??0,c=p[`SystemConfigV1alpha1ConsoleApi.updateSystemConfigByGroup`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},_i=function(e,t,n){let r=gi(e);return{getSystemConfigByGroup(e,i){return r.getSystemConfigByGroup(e.group,i).then(e=>e(n,t))},updateSystemConfigByGroup(e,i){return r.updateSystemConfigByGroup(e.group,e.body,i).then(e=>e(n,t))}}};var vi=class extends d{getSystemConfigByGroup(e,t){return gi(this.configuration).getSystemConfigByGroup(e.group,t).then(e=>e(this.axios,this.basePath))}updateSystemConfigByGroup(e,t){return gi(this.configuration).updateSystemConfigByGroup(e.group,e.body,t).then(e=>e(this.axios,this.basePath))}};const yi=function(e){return{getStats:async(t={})=>{let n=`/apis/api.console.halo.run/v1alpha1/stats`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}}}},bi=function(t){let n=yi(t);return{async getStats(r){let i=await n.getStats(r),a=t?.serverIndex??0,o=p[`SystemV1alpha1ConsoleApi.getStats`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)}}},xi=function(e,t,n){let r=bi(e);return{getStats(e){return r.getStats(e).then(e=>e(n,t))}}};var Si=class extends d{getStats(e){return bi(this.configuration).getStats(e).then(e=>e(this.axios,this.basePath))}};const Ci=function(e){return{jumpToSetupPage:async(t={})=>{let n=`/system/setup`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},queryStats:async(t={})=>{let n=`/apis/api.halo.run/v1alpha1/stats/-`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}}}},wi=function(t){let n=Ci(t);return{async jumpToSetupPage(r){let i=await n.jumpToSetupPage(r),a=t?.serverIndex??0,o=p[`SystemV1alpha1PublicApi.jumpToSetupPage`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async queryStats(r){let i=await n.queryStats(r),a=t?.serverIndex??0,o=p[`SystemV1alpha1PublicApi.queryStats`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)}}},Ti=function(e,t,n){let r=wi(e);return{jumpToSetupPage(e){return r.jumpToSetupPage(e).then(e=>e(n,t))},queryStats(e){return r.queryStats(e).then(e=>e(n,t))}}};var Ei=class extends d{jumpToSetupPage(e){return wi(this.configuration).jumpToSetupPage(e).then(e=>e(this.axios,this.basePath))}queryStats(e){return wi(this.configuration).queryStats(e).then(e=>e(this.axios,this.basePath))}};const Di=function(e){return{createTag:async(t,n={})=>{let r=`/apis/content.halo.run/v1alpha1/tags`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteTag:async(t,n={})=>{h(`deleteTag`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getTag:async(t,n={})=>{h(`getTag`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listTag:async(t,n,r,i,a,o={})=>{let s=`/apis/content.halo.run/v1alpha1/tags`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchTag:async(t,n,r={})=>{h(`patchTag`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateTag:async(t,n,r={})=>{h(`updateTag`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Z=function(t){let n=Di(t);return{async createTag(r,i){let a=await n.createTag(r,i),o=t?.serverIndex??0,s=p[`TagV1alpha1Api.createTag`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteTag(r,i){let a=await n.deleteTag(r,i),o=t?.serverIndex??0,s=p[`TagV1alpha1Api.deleteTag`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getTag(r,i){let a=await n.getTag(r,i),o=t?.serverIndex??0,s=p[`TagV1alpha1Api.getTag`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listTag(r,i,a,o,s,c){let l=await n.listTag(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`TagV1alpha1Api.listTag`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchTag(r,i,a){let o=await n.patchTag(r,i,a),s=t?.serverIndex??0,c=p[`TagV1alpha1Api.patchTag`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateTag(r,i,a){let o=await n.updateTag(r,i,a),s=t?.serverIndex??0,c=p[`TagV1alpha1Api.updateTag`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Oi=function(e,t,n){let r=Z(e);return{createTag(e={},i){return r.createTag(e.tag,i).then(e=>e(n,t))},deleteTag(e,i){return r.deleteTag(e.name,i).then(e=>e(n,t))},getTag(e,i){return r.getTag(e.name,i).then(e=>e(n,t))},listTag(e={},i){return r.listTag(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchTag(e,i){return r.patchTag(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateTag(e,i){return r.updateTag(e.name,e.tag,i).then(e=>e(n,t))}}};var ki=class extends d{createTag(e={},t){return Z(this.configuration).createTag(e.tag,t).then(e=>e(this.axios,this.basePath))}deleteTag(e,t){return Z(this.configuration).deleteTag(e.name,t).then(e=>e(this.axios,this.basePath))}getTag(e,t){return Z(this.configuration).getTag(e.name,t).then(e=>e(this.axios,this.basePath))}listTag(e={},t){return Z(this.configuration).listTag(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchTag(e,t){return Z(this.configuration).patchTag(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateTag(e,t){return Z(this.configuration).updateTag(e.name,e.tag,t).then(e=>e(this.axios,this.basePath))}};const Ai=function(e){return{listPostTags:async(t,n,r,i,a,o,s={})=>{let c=`/apis/api.console.halo.run/v1alpha1/tags`,l=new URL(c,m),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};g(d,e),await _(f,e),t!==void 0&&(p.page=t),n!==void 0&&(p.size=n),r&&(p.labelSelector=r),i&&(p.fieldSelector=i),a&&(p.sort=a),o!==void 0&&(p.keyword=o),y(l,p);let h=u&&u.headers?u.headers:{};return d.headers={...f,...h,...s.headers},{url:x(l),options:d}}}},ji=function(t){let n=Ai(t);return{async listPostTags(r,i,a,o,s,c,l){let d=await n.listPostTags(r,i,a,o,s,c,l),f=t?.serverIndex??0,m=p[`TagV1alpha1ConsoleApi.listPostTags`]?.[f]?.url;return(n,r)=>S(d,e,u,t)(n,m||r)}}},Mi=function(e,t,n){let r=ji(e);return{listPostTags(e={},i){return r.listPostTags(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,i).then(e=>e(n,t))}}};var Ni=class extends d{listPostTags(e={},t){return ji(this.configuration).listPostTags(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,t).then(e=>e(this.axios,this.basePath))}};const Pi=function(e){return{queryPostsByTagName:async(t,n,r,i,a,o,s={})=>{h(`queryPostsByTagName`,`name`,t);let c=`/apis/api.content.halo.run/v1alpha1/tags/{name}/posts`.replace(`{name}`,encodeURIComponent(String(t))),l=new URL(c,m),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};g(d,e),await _(f,e),n!==void 0&&(p.page=n),r!==void 0&&(p.size=r),i&&(p.labelSelector=i),a&&(p.fieldSelector=a),o&&(p.sort=o),y(l,p);let v=u&&u.headers?u.headers:{};return d.headers={...f,...v,...s.headers},{url:x(l),options:d}},queryTagByName:async(t,n={})=>{h(`queryTagByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},queryTags:async(t,n,r,i,a,o={})=>{let s=`/apis/api.content.halo.run/v1alpha1/tags`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}}}},Fi=function(t){let n=Pi(t);return{async queryPostsByTagName(r,i,a,o,s,c,l){let d=await n.queryPostsByTagName(r,i,a,o,s,c,l),f=t?.serverIndex??0,m=p[`TagV1alpha1PublicApi.queryPostsByTagName`]?.[f]?.url;return(n,r)=>S(d,e,u,t)(n,m||r)},async queryTagByName(r,i){let a=await n.queryTagByName(r,i),o=t?.serverIndex??0,s=p[`TagV1alpha1PublicApi.queryTagByName`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async queryTags(r,i,a,o,s,c){let l=await n.queryTags(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`TagV1alpha1PublicApi.queryTags`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)}}},Ii=function(e,t,n){let r=Fi(e);return{queryPostsByTagName(e,i){return r.queryPostsByTagName(e.name,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},queryTagByName(e,i){return r.queryTagByName(e.name,i).then(e=>e(n,t))},queryTags(e={},i){return r.queryTags(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))}}};var Li=class extends d{queryPostsByTagName(e,t){return Fi(this.configuration).queryPostsByTagName(e.name,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}queryTagByName(e,t){return Fi(this.configuration).queryTagByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryTags(e={},t){return Fi(this.configuration).queryTags(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};const Ri=function(e){return{createTheme:async(t,n={})=>{let r=`/apis/theme.halo.run/v1alpha1/themes`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteTheme:async(t,n={})=>{h(`deleteTheme`,`name`,t);let r=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getTheme:async(t,n={})=>{h(`getTheme`,`name`,t);let r=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listTheme:async(t,n,r,i,a,o={})=>{let s=`/apis/theme.halo.run/v1alpha1/themes`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchTheme:async(t,n,r={})=>{h(`patchTheme`,`name`,t);let i=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateTheme:async(t,n,r={})=>{h(`updateTheme`,`name`,t);let i=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},zi=function(t){let n=Ri(t);return{async createTheme(r,i){let a=await n.createTheme(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1Api.createTheme`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteTheme(r,i){let a=await n.deleteTheme(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1Api.deleteTheme`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getTheme(r,i){let a=await n.getTheme(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1Api.getTheme`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listTheme(r,i,a,o,s,c){let l=await n.listTheme(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ThemeV1alpha1Api.listTheme`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchTheme(r,i,a){let o=await n.patchTheme(r,i,a),s=t?.serverIndex??0,c=p[`ThemeV1alpha1Api.patchTheme`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateTheme(r,i,a){let o=await n.updateTheme(r,i,a),s=t?.serverIndex??0,c=p[`ThemeV1alpha1Api.updateTheme`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Bi=function(e,t,n){let r=zi(e);return{createTheme(e={},i){return r.createTheme(e.theme,i).then(e=>e(n,t))},deleteTheme(e,i){return r.deleteTheme(e.name,i).then(e=>e(n,t))},getTheme(e,i){return r.getTheme(e.name,i).then(e=>e(n,t))},listTheme(e={},i){return r.listTheme(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchTheme(e,i){return r.patchTheme(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateTheme(e,i){return r.updateTheme(e.name,e.theme,i).then(e=>e(n,t))}}};var Vi=class extends d{createTheme(e={},t){return zi(this.configuration).createTheme(e.theme,t).then(e=>e(this.axios,this.basePath))}deleteTheme(e,t){return zi(this.configuration).deleteTheme(e.name,t).then(e=>e(this.axios,this.basePath))}getTheme(e,t){return zi(this.configuration).getTheme(e.name,t).then(e=>e(this.axios,this.basePath))}listTheme(e={},t){return zi(this.configuration).listTheme(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchTheme(e,t){return zi(this.configuration).patchTheme(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateTheme(e,t){return zi(this.configuration).updateTheme(e.name,e.theme,t).then(e=>e(this.axios,this.basePath))}};const Hi=function(e){return{activateTheme:async(t,n={})=>{h(`activateTheme`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/activation`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},fetchActivatedTheme:async(t={})=>{let n=`/apis/api.console.halo.run/v1alpha1/themes/-/activation`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},fetchThemeJsonConfig:async(t,n={})=>{h(`fetchThemeJsonConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},fetchThemeSetting:async(t,n={})=>{h(`fetchThemeSetting`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/setting`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},installTheme:async(t={})=>{let n=`/apis/api.console.halo.run/v1alpha1/themes/install`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},installThemeFromUri:async(t,n={})=>{h(`installThemeFromUri`,`installFromUriRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},invalidateCache:async(t,n={})=>{h(`invalidateCache`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/invalidate-cache`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listThemes:async(t,n,r,i,a,o={})=>{let s=`/apis/api.console.halo.run/v1alpha1/themes`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a!==void 0&&(f.uninstalled=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},reload:async(t,n={})=>{h(`reload`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},resetThemeConfig:async(t,n={})=>{h(`resetThemeConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},updateThemeJsonConfig:async(t,n,r={})=>{h(`updateThemeJsonConfig`,`name`,t),h(`updateThemeJsonConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/themes/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},upgradeTheme:async(t,n,r={})=>{h(`upgradeTheme`,`name`,t),h(`upgradeTheme`,`file`,n);let i=`/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={},u=new(e&&e.formDataCtor||FormData);g(s,e),await _(c,e),n!==void 0&&u.append(`file`,n),c[`Content-Type`]=`multipart/form-data`,y(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=u,{url:x(a),options:s}},upgradeThemeFromUri:async(t,n,r={})=>{h(`upgradeThemeFromUri`,`name`,t),h(`upgradeThemeFromUri`,`upgradeFromUriRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade-from-uri`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Q=function(t){let n=Hi(t);return{async activateTheme(r,i){let a=await n.activateTheme(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1ConsoleApi.activateTheme`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async fetchActivatedTheme(r){let i=await n.fetchActivatedTheme(r),a=t?.serverIndex??0,o=p[`ThemeV1alpha1ConsoleApi.fetchActivatedTheme`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async fetchThemeJsonConfig(r,i){let a=await n.fetchThemeJsonConfig(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1ConsoleApi.fetchThemeJsonConfig`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async fetchThemeSetting(r,i){let a=await n.fetchThemeSetting(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1ConsoleApi.fetchThemeSetting`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async installTheme(r){let i=await n.installTheme(r),a=t?.serverIndex??0,o=p[`ThemeV1alpha1ConsoleApi.installTheme`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async installThemeFromUri(r,i){let a=await n.installThemeFromUri(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1ConsoleApi.installThemeFromUri`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async invalidateCache(r,i){let a=await n.invalidateCache(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1ConsoleApi.invalidateCache`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listThemes(r,i,a,o,s,c){let l=await n.listThemes(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ThemeV1alpha1ConsoleApi.listThemes`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async reload(r,i){let a=await n.reload(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1ConsoleApi.reload`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async resetThemeConfig(r,i){let a=await n.resetThemeConfig(r,i),o=t?.serverIndex??0,s=p[`ThemeV1alpha1ConsoleApi.resetThemeConfig`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async updateThemeJsonConfig(r,i,a){let o=await n.updateThemeJsonConfig(r,i,a),s=t?.serverIndex??0,c=p[`ThemeV1alpha1ConsoleApi.updateThemeJsonConfig`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async upgradeTheme(r,i,a){let o=await n.upgradeTheme(r,i,a),s=t?.serverIndex??0,c=p[`ThemeV1alpha1ConsoleApi.upgradeTheme`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async upgradeThemeFromUri(r,i,a){let o=await n.upgradeThemeFromUri(r,i,a),s=t?.serverIndex??0,c=p[`ThemeV1alpha1ConsoleApi.upgradeThemeFromUri`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Ui=function(e,t,n){let r=Q(e);return{activateTheme(e,i){return r.activateTheme(e.name,i).then(e=>e(n,t))},fetchActivatedTheme(e){return r.fetchActivatedTheme(e).then(e=>e(n,t))},fetchThemeJsonConfig(e,i){return r.fetchThemeJsonConfig(e.name,i).then(e=>e(n,t))},fetchThemeSetting(e,i){return r.fetchThemeSetting(e.name,i).then(e=>e(n,t))},installTheme(e){return r.installTheme(e).then(e=>e(n,t))},installThemeFromUri(e,i){return r.installThemeFromUri(e.installFromUriRequest,i).then(e=>e(n,t))},invalidateCache(e,i){return r.invalidateCache(e.name,i).then(e=>e(n,t))},listThemes(e={},i){return r.listThemes(e.page,e.size,e.labelSelector,e.fieldSelector,e.uninstalled,i).then(e=>e(n,t))},reload(e,i){return r.reload(e.name,i).then(e=>e(n,t))},resetThemeConfig(e,i){return r.resetThemeConfig(e.name,i).then(e=>e(n,t))},updateThemeJsonConfig(e,i){return r.updateThemeJsonConfig(e.name,e.body,i).then(e=>e(n,t))},upgradeTheme(e,i){return r.upgradeTheme(e.name,e.file,i).then(e=>e(n,t))},upgradeThemeFromUri(e,i){return r.upgradeThemeFromUri(e.name,e.upgradeFromUriRequest,i).then(e=>e(n,t))}}};var Wi=class extends d{activateTheme(e,t){return Q(this.configuration).activateTheme(e.name,t).then(e=>e(this.axios,this.basePath))}fetchActivatedTheme(e){return Q(this.configuration).fetchActivatedTheme(e).then(e=>e(this.axios,this.basePath))}fetchThemeJsonConfig(e,t){return Q(this.configuration).fetchThemeJsonConfig(e.name,t).then(e=>e(this.axios,this.basePath))}fetchThemeSetting(e,t){return Q(this.configuration).fetchThemeSetting(e.name,t).then(e=>e(this.axios,this.basePath))}installTheme(e){return Q(this.configuration).installTheme(e).then(e=>e(this.axios,this.basePath))}installThemeFromUri(e,t){return Q(this.configuration).installThemeFromUri(e.installFromUriRequest,t).then(e=>e(this.axios,this.basePath))}invalidateCache(e,t){return Q(this.configuration).invalidateCache(e.name,t).then(e=>e(this.axios,this.basePath))}listThemes(e={},t){return Q(this.configuration).listThemes(e.page,e.size,e.labelSelector,e.fieldSelector,e.uninstalled,t).then(e=>e(this.axios,this.basePath))}reload(e,t){return Q(this.configuration).reload(e.name,t).then(e=>e(this.axios,this.basePath))}resetThemeConfig(e,t){return Q(this.configuration).resetThemeConfig(e.name,t).then(e=>e(this.axios,this.basePath))}updateThemeJsonConfig(e,t){return Q(this.configuration).updateThemeJsonConfig(e.name,e.body,t).then(e=>e(this.axios,this.basePath))}upgradeTheme(e,t){return Q(this.configuration).upgradeTheme(e.name,e.file,t).then(e=>e(this.axios,this.basePath))}upgradeThemeFromUri(e,t){return Q(this.configuration).upgradeThemeFromUri(e.name,e.upgradeFromUriRequest,t).then(e=>e(this.axios,this.basePath))}};const Gi=function(e){return{createThumbnail:async(t,n={})=>{let r=`/apis/storage.halo.run/v1alpha1/thumbnails`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteThumbnail:async(t,n={})=>{h(`deleteThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getThumbnail:async(t,n={})=>{h(`getThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listThumbnail:async(t,n,r,i,a,o={})=>{let s=`/apis/storage.halo.run/v1alpha1/thumbnails`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchThumbnail:async(t,n,r={})=>{h(`patchThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateThumbnail:async(t,n,r={})=>{h(`updateThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},Ki=function(t){let n=Gi(t);return{async createThumbnail(r,i){let a=await n.createThumbnail(r,i),o=t?.serverIndex??0,s=p[`ThumbnailV1alpha1Api.createThumbnail`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteThumbnail(r,i){let a=await n.deleteThumbnail(r,i),o=t?.serverIndex??0,s=p[`ThumbnailV1alpha1Api.deleteThumbnail`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getThumbnail(r,i){let a=await n.getThumbnail(r,i),o=t?.serverIndex??0,s=p[`ThumbnailV1alpha1Api.getThumbnail`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listThumbnail(r,i,a,o,s,c){let l=await n.listThumbnail(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`ThumbnailV1alpha1Api.listThumbnail`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchThumbnail(r,i,a){let o=await n.patchThumbnail(r,i,a),s=t?.serverIndex??0,c=p[`ThumbnailV1alpha1Api.patchThumbnail`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateThumbnail(r,i,a){let o=await n.updateThumbnail(r,i,a),s=t?.serverIndex??0,c=p[`ThumbnailV1alpha1Api.updateThumbnail`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},qi=function(e,t,n){let r=Ki(e);return{createThumbnail(e={},i){return r.createThumbnail(e.thumbnail,i).then(e=>e(n,t))},deleteThumbnail(e,i){return r.deleteThumbnail(e.name,i).then(e=>e(n,t))},getThumbnail(e,i){return r.getThumbnail(e.name,i).then(e=>e(n,t))},listThumbnail(e={},i){return r.listThumbnail(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchThumbnail(e,i){return r.patchThumbnail(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateThumbnail(e,i){return r.updateThumbnail(e.name,e.thumbnail,i).then(e=>e(n,t))}}};var Ji=class extends d{createThumbnail(e={},t){return Ki(this.configuration).createThumbnail(e.thumbnail,t).then(e=>e(this.axios,this.basePath))}deleteThumbnail(e,t){return Ki(this.configuration).deleteThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}getThumbnail(e,t){return Ki(this.configuration).getThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}listThumbnail(e={},t){return Ki(this.configuration).listThumbnail(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchThumbnail(e,t){return Ki(this.configuration).patchThumbnail(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateThumbnail(e,t){return Ki(this.configuration).updateThumbnail(e.name,e.thumbnail,t).then(e=>e(this.axios,this.basePath))}};const Yi=function(e){return{getThumbnailByUri:async(t,n,r={})=>{h(`getThumbnailByUri`,`uri`,t),h(`getThumbnailByUri`,`size`,n);let i=`/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri`,a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};g(s,e),await _(c,e),t!==void 0&&(l.uri=t),n!==void 0&&(l.size=n),y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:x(a),options:s}}}},Xi=function(t){let n=Yi(t);return{async getThumbnailByUri(r,i,a){let o=await n.getThumbnailByUri(r,i,a),s=t?.serverIndex??0,c=p[`ThumbnailV1alpha1PublicApi.getThumbnailByUri`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},Zi=function(e,t,n){let r=Xi(e);return{getThumbnailByUri(e,i){return r.getThumbnailByUri(e.uri,e.size,i).then(e=>e(n,t))}}};var Qi=class extends d{getThumbnailByUri(e,t){return Xi(this.configuration).getThumbnailByUri(e.uri,e.size,t).then(e=>e(this.axios,this.basePath))}};const $i=function(e){return{configurerTotp:async(t,n={})=>{let r=`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteTotp:async(t,n={})=>{let r=`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/-`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},disableTwoFactor:async(t,n={})=>{let r=`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/disabled`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},enableTwoFactor:async(t,n={})=>{let r=`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/enabled`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},getTotpAuthLink:async(t={})=>{let n=`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/auth-link`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},getTwoFactorAuthenticationSettings:async(t={})=>{let n=`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}}}},ea=function(t){let n=$i(t);return{async configurerTotp(r,i){let a=await n.configurerTotp(r,i),o=t?.serverIndex??0,s=p[`TwoFactorAuthV1alpha1UcApi.configurerTotp`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteTotp(r,i){let a=await n.deleteTotp(r,i),o=t?.serverIndex??0,s=p[`TwoFactorAuthV1alpha1UcApi.deleteTotp`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async disableTwoFactor(r,i){let a=await n.disableTwoFactor(r,i),o=t?.serverIndex??0,s=p[`TwoFactorAuthV1alpha1UcApi.disableTwoFactor`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async enableTwoFactor(r,i){let a=await n.enableTwoFactor(r,i),o=t?.serverIndex??0,s=p[`TwoFactorAuthV1alpha1UcApi.enableTwoFactor`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getTotpAuthLink(r){let i=await n.getTotpAuthLink(r),a=t?.serverIndex??0,o=p[`TwoFactorAuthV1alpha1UcApi.getTotpAuthLink`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async getTwoFactorAuthenticationSettings(r){let i=await n.getTwoFactorAuthenticationSettings(r),a=t?.serverIndex??0,o=p[`TwoFactorAuthV1alpha1UcApi.getTwoFactorAuthenticationSettings`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)}}},ta=function(e,t,n){let r=ea(e);return{configurerTotp(e={},i){return r.configurerTotp(e.totpRequest,i).then(e=>e(n,t))},deleteTotp(e={},i){return r.deleteTotp(e.passwordRequest,i).then(e=>e(n,t))},disableTwoFactor(e={},i){return r.disableTwoFactor(e.passwordRequest,i).then(e=>e(n,t))},enableTwoFactor(e={},i){return r.enableTwoFactor(e.passwordRequest,i).then(e=>e(n,t))},getTotpAuthLink(e){return r.getTotpAuthLink(e).then(e=>e(n,t))},getTwoFactorAuthenticationSettings(e){return r.getTwoFactorAuthenticationSettings(e).then(e=>e(n,t))}}};var na=class extends d{configurerTotp(e={},t){return ea(this.configuration).configurerTotp(e.totpRequest,t).then(e=>e(this.axios,this.basePath))}deleteTotp(e={},t){return ea(this.configuration).deleteTotp(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}disableTwoFactor(e={},t){return ea(this.configuration).disableTwoFactor(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}enableTwoFactor(e={},t){return ea(this.configuration).enableTwoFactor(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}getTotpAuthLink(e){return ea(this.configuration).getTotpAuthLink(e).then(e=>e(this.axios,this.basePath))}getTwoFactorAuthenticationSettings(e){return ea(this.configuration).getTwoFactorAuthenticationSettings(e).then(e=>e(this.axios,this.basePath))}};const ra=function(e){return{createUserConnection:async(t,n={})=>{let r=`/apis/auth.halo.run/v1alpha1/userconnections`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteUserConnection:async(t,n={})=>{h(`deleteUserConnection`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getUserConnection:async(t,n={})=>{h(`getUserConnection`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listUserConnection:async(t,n,r,i,a,o={})=>{let s=`/apis/auth.halo.run/v1alpha1/userconnections`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchUserConnection:async(t,n,r={})=>{h(`patchUserConnection`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateUserConnection:async(t,n,r={})=>{h(`updateUserConnection`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},ia=function(t){let n=ra(t);return{async createUserConnection(r,i){let a=await n.createUserConnection(r,i),o=t?.serverIndex??0,s=p[`UserConnectionV1alpha1Api.createUserConnection`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteUserConnection(r,i){let a=await n.deleteUserConnection(r,i),o=t?.serverIndex??0,s=p[`UserConnectionV1alpha1Api.deleteUserConnection`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getUserConnection(r,i){let a=await n.getUserConnection(r,i),o=t?.serverIndex??0,s=p[`UserConnectionV1alpha1Api.getUserConnection`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listUserConnection(r,i,a,o,s,c){let l=await n.listUserConnection(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`UserConnectionV1alpha1Api.listUserConnection`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchUserConnection(r,i,a){let o=await n.patchUserConnection(r,i,a),s=t?.serverIndex??0,c=p[`UserConnectionV1alpha1Api.patchUserConnection`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateUserConnection(r,i,a){let o=await n.updateUserConnection(r,i,a),s=t?.serverIndex??0,c=p[`UserConnectionV1alpha1Api.updateUserConnection`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},aa=function(e,t,n){let r=ia(e);return{createUserConnection(e={},i){return r.createUserConnection(e.userConnection,i).then(e=>e(n,t))},deleteUserConnection(e,i){return r.deleteUserConnection(e.name,i).then(e=>e(n,t))},getUserConnection(e,i){return r.getUserConnection(e.name,i).then(e=>e(n,t))},listUserConnection(e={},i){return r.listUserConnection(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchUserConnection(e,i){return r.patchUserConnection(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateUserConnection(e,i){return r.updateUserConnection(e.name,e.userConnection,i).then(e=>e(n,t))}}};var oa=class extends d{createUserConnection(e={},t){return ia(this.configuration).createUserConnection(e.userConnection,t).then(e=>e(this.axios,this.basePath))}deleteUserConnection(e,t){return ia(this.configuration).deleteUserConnection(e.name,t).then(e=>e(this.axios,this.basePath))}getUserConnection(e,t){return ia(this.configuration).getUserConnection(e.name,t).then(e=>e(this.axios,this.basePath))}listUserConnection(e={},t){return ia(this.configuration).listUserConnection(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchUserConnection(e,t){return ia(this.configuration).patchUserConnection(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateUserConnection(e,t){return ia(this.configuration).updateUserConnection(e.name,e.userConnection,t).then(e=>e(this.axios,this.basePath))}};const sa=function(e){return{disconnectMyConnection:async(t,n={})=>{h(`disconnectMyConnection`,`registerId`,t);let r=`/apis/uc.api.auth.halo.run/v1alpha1/user-connections/{registerId}/disconnect`.replace(`{registerId}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}}}},ca=function(t){let n=sa(t);return{async disconnectMyConnection(r,i){let a=await n.disconnectMyConnection(r,i),o=t?.serverIndex??0,s=p[`UserConnectionV1alpha1UcApi.disconnectMyConnection`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)}}},la=function(e,t,n){let r=ca(e);return{disconnectMyConnection(e,i){return r.disconnectMyConnection(e.registerId,i).then(e=>e(n,t))}}};var ua=class extends d{disconnectMyConnection(e,t){return ca(this.configuration).disconnectMyConnection(e.registerId,t).then(e=>e(this.axios,this.basePath))}};const da=function(e){return{getMyPreference:async(t,n={})=>{h(`getMyPreference`,`group`,t);let r=`/apis/uc.api.halo.run/v1alpha1/user-preferences/{group}`.replace(`{group}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},updateMyPreference:async(t,n,r={})=>{h(`updateMyPreference`,`group`,t),h(`updateMyPreference`,`body`,n);let i=`/apis/uc.api.halo.run/v1alpha1/user-preferences/{group}`.replace(`{group}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},fa=function(t){let n=da(t);return{async getMyPreference(r,i){let a=await n.getMyPreference(r,i),o=t?.serverIndex??0,s=p[`UserPreferenceV1alpha1UcApi.getMyPreference`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async updateMyPreference(r,i,a){let o=await n.updateMyPreference(r,i,a),s=t?.serverIndex??0,c=p[`UserPreferenceV1alpha1UcApi.updateMyPreference`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},pa=function(e,t,n){let r=fa(e);return{getMyPreference(e,i){return r.getMyPreference(e.group,i).then(e=>e(n,t))},updateMyPreference(e,i){return r.updateMyPreference(e.group,e.body,i).then(e=>e(n,t))}}};var ma=class extends d{getMyPreference(e,t){return fa(this.configuration).getMyPreference(e.group,t).then(e=>e(this.axios,this.basePath))}updateMyPreference(e,t){return fa(this.configuration).updateMyPreference(e.group,e.body,t).then(e=>e(this.axios,this.basePath))}};const ha=function(e){return{createUser:async(t,n={})=>{let r=`/api/v1alpha1/users`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteUser:async(t,n={})=>{h(`deleteUser`,`name`,t);let r=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getUser:async(t,n={})=>{h(`getUser`,`name`,t);let r=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},listUser:async(t,n,r,i,a,o={})=>{let s=`/api/v1alpha1/users`,c=new URL(s,m),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...o},d={},f={};g(u,e),await _(d,e),t!==void 0&&(f.page=t),n!==void 0&&(f.size=n),r&&(f.labelSelector=r),i&&(f.fieldSelector=i),a&&(f.sort=a),y(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...o.headers},{url:x(c),options:u}},patchUser:async(t,n,r={})=>{h(`patchUser`,`name`,t);let i=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json-patch+json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},updateUser:async(t,n,r={})=>{h(`updateUser`,`name`,t);let i=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}}}},ga=function(t){let n=ha(t);return{async createUser(r,i){let a=await n.createUser(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1Api.createUser`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteUser(r,i){let a=await n.deleteUser(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1Api.deleteUser`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getUser(r,i){let a=await n.getUser(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1Api.getUser`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async listUser(r,i,a,o,s,c){let l=await n.listUser(r,i,a,o,s,c),d=t?.serverIndex??0,f=p[`UserV1alpha1Api.listUser`]?.[d]?.url;return(n,r)=>S(l,e,u,t)(n,f||r)},async patchUser(r,i,a){let o=await n.patchUser(r,i,a),s=t?.serverIndex??0,c=p[`UserV1alpha1Api.patchUser`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async updateUser(r,i,a){let o=await n.updateUser(r,i,a),s=t?.serverIndex??0,c=p[`UserV1alpha1Api.updateUser`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)}}},_a=function(e,t,n){let r=ga(e);return{createUser(e={},i){return r.createUser(e.user,i).then(e=>e(n,t))},deleteUser(e,i){return r.deleteUser(e.name,i).then(e=>e(n,t))},getUser(e,i){return r.getUser(e.name,i).then(e=>e(n,t))},listUser(e={},i){return r.listUser(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,i).then(e=>e(n,t))},patchUser(e,i){return r.patchUser(e.name,e.jsonPatchInner,i).then(e=>e(n,t))},updateUser(e,i){return r.updateUser(e.name,e.user,i).then(e=>e(n,t))}}};var va=class extends d{createUser(e={},t){return ga(this.configuration).createUser(e.user,t).then(e=>e(this.axios,this.basePath))}deleteUser(e,t){return ga(this.configuration).deleteUser(e.name,t).then(e=>e(this.axios,this.basePath))}getUser(e,t){return ga(this.configuration).getUser(e.name,t).then(e=>e(this.axios,this.basePath))}listUser(e={},t){return ga(this.configuration).listUser(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}patchUser(e,t){return ga(this.configuration).patchUser(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateUser(e,t){return ga(this.configuration).updateUser(e.name,e.user,t).then(e=>e(this.axios,this.basePath))}};const ya=function(e){return{changeAnyonePassword:async(t,n,r={})=>{h(`changeAnyonePassword`,`name`,t),h(`changeAnyonePassword`,`changePasswordRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/password`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},changeOwnPassword:async(t,n={})=>{h(`changeOwnPassword`,`changeOwnPasswordRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/-/password`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},createUser:async(t,n={})=>{h(`createUser`,`createUserRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/users`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},deleteUserAvatar:async(t,n={})=>{h(`deleteUserAvatar`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}/avatar`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},disableUser:async(t,n={})=>{h(`disableUser`,`username`,t);let r=`/apis/console.api.security.halo.run/v1alpha1/users/{username}/disable`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},enableUser:async(t,n={})=>{h(`enableUser`,`username`,t);let r=`/apis/console.api.security.halo.run/v1alpha1/users/{username}/enable`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getCurrentUserDetail:async(t={})=>{let n=`/apis/api.console.halo.run/v1alpha1/users/-`,r=new URL(n,m),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...t},o={},s={};g(a,e),await _(o,e),y(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...t.headers},{url:x(r),options:a}},getPermissions:async(t,n={})=>{h(`getPermissions`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},getUserDetail:async(t,n={})=>{h(`getUserDetail`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={},c={};g(o,e),await _(s,e),y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},{url:x(i),options:o}},grantPermission:async(t,n,r={})=>{h(`grantPermission`,`name`,t),h(`grantPermission`,`grantRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={};g(s,e),await _(c,e),c[`Content-Type`]=`application/json`,y(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},s.data=b(n,s,e),{url:x(a),options:s}},listUsers:async(t,n,r,i,a,o,s,c={})=>{let l=`/apis/api.console.halo.run/v1alpha1/users`,u=new URL(l,m),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...c},p={},h={};g(f,e),await _(p,e),t!==void 0&&(h.page=t),n!==void 0&&(h.size=n),r&&(h.labelSelector=r),i&&(h.fieldSelector=i),a&&(h.sort=a),o!==void 0&&(h.keyword=o),s!==void 0&&(h.role=s),y(u,h);let v=d&&d.headers?d.headers:{};return f.headers={...p,...v,...c.headers},{url:x(u),options:f}},sendEmailVerificationCode:async(t,n={})=>{h(`sendEmailVerificationCode`,`emailVerifyRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},updateCurrentUser:async(t,n={})=>{h(`updateCurrentUser`,`user`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/-`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}},uploadUserAvatar:async(t,n,r={})=>{h(`uploadUserAvatar`,`name`,t),h(`uploadUserAvatar`,`file`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/avatar`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,m),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={},u=new(e&&e.formDataCtor||FormData);g(s,e),await _(c,e),n!==void 0&&u.append(`file`,n),c[`Content-Type`]=`multipart/form-data`,y(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=u,{url:x(a),options:s}},verifyEmail:async(t,n={})=>{h(`verifyEmail`,`verifyCodeRequest`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/-/verify-email`,i=new URL(r,m),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={},c={};g(o,e),await _(s,e),s[`Content-Type`]=`application/json`,y(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...n.headers},o.data=b(t,o,e),{url:x(i),options:o}}}},$=function(t){let n=ya(t);return{async changeAnyonePassword(r,i,a){let o=await n.changeAnyonePassword(r,i,a),s=t?.serverIndex??0,c=p[`UserV1alpha1ConsoleApi.changeAnyonePassword`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async changeOwnPassword(r,i){let a=await n.changeOwnPassword(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.changeOwnPassword`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async createUser(r,i){let a=await n.createUser(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.createUser`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async deleteUserAvatar(r,i){let a=await n.deleteUserAvatar(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.deleteUserAvatar`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async disableUser(r,i){let a=await n.disableUser(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.disableUser`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async enableUser(r,i){let a=await n.enableUser(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.enableUser`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getCurrentUserDetail(r){let i=await n.getCurrentUserDetail(r),a=t?.serverIndex??0,o=p[`UserV1alpha1ConsoleApi.getCurrentUserDetail`]?.[a]?.url;return(n,r)=>S(i,e,u,t)(n,o||r)},async getPermissions(r,i){let a=await n.getPermissions(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.getPermissions`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async getUserDetail(r,i){let a=await n.getUserDetail(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.getUserDetail`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async grantPermission(r,i,a){let o=await n.grantPermission(r,i,a),s=t?.serverIndex??0,c=p[`UserV1alpha1ConsoleApi.grantPermission`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async listUsers(r,i,a,o,s,c,l,d){let f=await n.listUsers(r,i,a,o,s,c,l,d),m=t?.serverIndex??0,h=p[`UserV1alpha1ConsoleApi.listUsers`]?.[m]?.url;return(n,r)=>S(f,e,u,t)(n,h||r)},async sendEmailVerificationCode(r,i){let a=await n.sendEmailVerificationCode(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.sendEmailVerificationCode`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async updateCurrentUser(r,i){let a=await n.updateCurrentUser(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.updateCurrentUser`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)},async uploadUserAvatar(r,i,a){let o=await n.uploadUserAvatar(r,i,a),s=t?.serverIndex??0,c=p[`UserV1alpha1ConsoleApi.uploadUserAvatar`]?.[s]?.url;return(n,r)=>S(o,e,u,t)(n,c||r)},async verifyEmail(r,i){let a=await n.verifyEmail(r,i),o=t?.serverIndex??0,s=p[`UserV1alpha1ConsoleApi.verifyEmail`]?.[o]?.url;return(n,r)=>S(a,e,u,t)(n,s||r)}}},ba=function(e,t,n){let r=$(e);return{changeAnyonePassword(e,i){return r.changeAnyonePassword(e.name,e.changePasswordRequest,i).then(e=>e(n,t))},changeOwnPassword(e,i){return r.changeOwnPassword(e.changeOwnPasswordRequest,i).then(e=>e(n,t))},createUser(e,i){return r.createUser(e.createUserRequest,i).then(e=>e(n,t))},deleteUserAvatar(e,i){return r.deleteUserAvatar(e.name,i).then(e=>e(n,t))},disableUser(e,i){return r.disableUser(e.username,i).then(e=>e(n,t))},enableUser(e,i){return r.enableUser(e.username,i).then(e=>e(n,t))},getCurrentUserDetail(e){return r.getCurrentUserDetail(e).then(e=>e(n,t))},getPermissions(e,i){return r.getPermissions(e.name,i).then(e=>e(n,t))},getUserDetail(e,i){return r.getUserDetail(e.name,i).then(e=>e(n,t))},grantPermission(e,i){return r.grantPermission(e.name,e.grantRequest,i).then(e=>e(n,t))},listUsers(e={},i){return r.listUsers(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,e.role,i).then(e=>e(n,t))},sendEmailVerificationCode(e,i){return r.sendEmailVerificationCode(e.emailVerifyRequest,i).then(e=>e(n,t))},updateCurrentUser(e,i){return r.updateCurrentUser(e.user,i).then(e=>e(n,t))},uploadUserAvatar(e,i){return r.uploadUserAvatar(e.name,e.file,i).then(e=>e(n,t))},verifyEmail(e,i){return r.verifyEmail(e.verifyCodeRequest,i).then(e=>e(n,t))}}};var xa=class extends d{changeAnyonePassword(e,t){return $(this.configuration).changeAnyonePassword(e.name,e.changePasswordRequest,t).then(e=>e(this.axios,this.basePath))}changeOwnPassword(e,t){return $(this.configuration).changeOwnPassword(e.changeOwnPasswordRequest,t).then(e=>e(this.axios,this.basePath))}createUser(e,t){return $(this.configuration).createUser(e.createUserRequest,t).then(e=>e(this.axios,this.basePath))}deleteUserAvatar(e,t){return $(this.configuration).deleteUserAvatar(e.name,t).then(e=>e(this.axios,this.basePath))}disableUser(e,t){return $(this.configuration).disableUser(e.username,t).then(e=>e(this.axios,this.basePath))}enableUser(e,t){return $(this.configuration).enableUser(e.username,t).then(e=>e(this.axios,this.basePath))}getCurrentUserDetail(e){return $(this.configuration).getCurrentUserDetail(e).then(e=>e(this.axios,this.basePath))}getPermissions(e,t){return $(this.configuration).getPermissions(e.name,t).then(e=>e(this.axios,this.basePath))}getUserDetail(e,t){return $(this.configuration).getUserDetail(e.name,t).then(e=>e(this.axios,this.basePath))}grantPermission(e,t){return $(this.configuration).grantPermission(e.name,e.grantRequest,t).then(e=>e(this.axios,this.basePath))}listUsers(e={},t){return $(this.configuration).listUsers(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,e.role,t).then(e=>e(this.axios,this.basePath))}sendEmailVerificationCode(e,t){return $(this.configuration).sendEmailVerificationCode(e.emailVerifyRequest,t).then(e=>e(this.axios,this.basePath))}updateCurrentUser(e,t){return $(this.configuration).updateCurrentUser(e.user,t).then(e=>e(this.axios,this.basePath))}uploadUserAvatar(e,t){return $(this.configuration).uploadUserAvatar(e.name,e.file,t).then(e=>e(this.axios,this.basePath))}verifyEmail(e,t){return $(this.configuration).verifyEmail(e.verifyCodeRequest,t).then(e=>e(this.axios,this.basePath))}},Sa=class{apiKey;username;password;accessToken;basePath;serverIndex;baseOptions;formDataCtor;constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){let t=RegExp(`^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$`,`i`);return e!==null&&(t.test(e)||e.toLowerCase()===`application/json-patch+json`)}};const Ca={Add:`add`},wa={Form:`FORM`,Oauth2:`OAUTH2`},Ta={Pending:`PENDING`,Running:`RUNNING`,Succeeded:`SUCCEEDED`,Failed:`FAILED`},Ea={True:`TRUE`,False:`FALSE`,Unknown:`UNKNOWN`},Da={Copy:`copy`},Oa={Singleton:`SINGLETON`,MultiInstance:`MULTI_INSTANCE`},ka={Form:`FORM`,Oauth2:`OAUTH2`},Aa={S:`S`,M:`M`,L:`L`,Xl:`XL`},ja={Pending:`PENDING`,Succeeded:`SUCCEEDED`,Failed:`FAILED`},Ma={Blank:`_blank`,Self:`_self`,Parent:`_parent`,Top:`_top`},Na={Move:`move`},Pa={Created:`CREATED`,Disabled:`DISABLED`,Resolved:`RESOLVED`,Started:`STARTED`,Stopped:`STOPPED`,Failed:`FAILED`,Unloaded:`UNLOADED`},Fa={Pending:`PENDING`,Starting:`STARTING`,Created:`CREATED`,Disabling:`DISABLING`,Disabled:`DISABLED`,Resolved:`RESOLVED`,Started:`STARTED`,Stopped:`STOPPED`,Failed:`FAILED`,Unknown:`UNKNOWN`},Ia={Public:`PUBLIC`,Internal:`INTERNAL`,Private:`PRIVATE`},La={Remove:`remove`},Ra={Replace:`replace`},za={Public:`PUBLIC`,Internal:`INTERNAL`,Private:`PRIVATE`},Ba={Test:`test`},Va={Ready:`READY`,Failed:`FAILED`,Unknown:`UNKNOWN`},Ha={S:`S`,M:`M`,L:`L`,Xl:`XL`};var Ua=s((exports,t)=>{t.exports=Error}),Wa=s((exports,t)=>{t.exports=EvalError}),Ga=s((exports,t)=>{t.exports=RangeError}),Ka=s((exports,t)=>{t.exports=ReferenceError}),qa=s((exports,t)=>{t.exports=SyntaxError}),Ja=s((exports,t)=>{t.exports=TypeError}),Ya=s((exports,t)=>{t.exports=URIError}),Xa=s((exports,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(t in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==r||a.enumerable!==!0)return!1}return!0}}),Za=s((exports,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Xa();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}}),Qa=s((exports,t)=>{var n={__proto__:null,foo:{}},r=Object;t.exports=function(){return{__proto__:n}.foo===n.foo&&!(n instanceof r)}}),$a=s((exports,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}}),eo=s((exports,t)=>{var n=$a();t.exports=Function.prototype.bind||n}),to=s((exports,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty,i=eo();t.exports=i.call(n,r)}),no=s((exports,t)=>{var n,r=Ua(),i=Wa(),a=Ga(),o=Ka(),s=qa(),c=Ja(),l=Ya(),u=Function,d=function(e){try{return u(`"use strict"; return (`+e+`).constructor;`)()}catch{}},f=Object.getOwnPropertyDescriptor;if(f)try{f({},``)}catch{f=null}var p=function(){throw new c},m=f?function(){try{return arguments.callee,p}catch{try{return f(arguments,`callee`).get}catch{return p}}}():p,h=Za()(),g=Qa()(),_=Object.getPrototypeOf||(g?function(e){return e.__proto__}:null),v={},y=typeof Uint8Array>`u`||!_?n:_(Uint8Array),b={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&_?_([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":v,"%AsyncGenerator%":v,"%AsyncGeneratorFunction%":v,"%AsyncIteratorPrototype%":v,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":i,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":v,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&_?_(_([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!h||!_?n:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":a,"%ReferenceError%":o,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!h||!_?n:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&_?_(``[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":m,"%TypedArray%":y,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet};if(_)try{null.error}catch(e){var x=_(_(e));b[`%Error.prototype%`]=x}var S=function e(t){var n;if(t===`%AsyncFunction%`)n=d(`async function () {}`);else if(t===`%GeneratorFunction%`)n=d(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=d(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&_&&(n=_(i.prototype))}return b[t]=n,n},C={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},w=eo(),T=to(),E=w.call(Function.call,Array.prototype.concat),ee=w.call(Function.apply,Array.prototype.splice),D=w.call(Function.call,String.prototype.replace),O=w.call(Function.call,String.prototype.slice),k=w.call(Function.call,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g,j=function(e){var t=O(e,0,1),n=O(e,-1);if(t===`%`&&n!==`%`)throw new s("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return D(e,te,function(e,t,n,i){r[r.length]=n?D(i,A,`$1`):t||e}),r},ne=function(e,t){var n=e,r;if(T(C,n)&&(r=C[n],n=`%`+r[0]+`%`),T(b,n)){var i=b[n];if(i===v&&(i=S(n)),i===void 0&&!t)throw new c(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new s(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new c(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new c(`"allowMissing" argument must be a boolean`);if(k(/^%?[^%]*%?$/,e)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=j(e),r=n.length>0?n[0]:``,i=ne(`%`+r+`%`,t),a=i.name,o=i.value,l=!1,u=i.alias;u&&(r=u[0],ee(n,E([0,1],u)));for(var d=1,p=!0;d<n.length;d+=1){var m=n[d],h=O(m,0,1),g=O(m,-1);if((h===`"`||h===`'`||h==="`"||g===`"`||g===`'`||g==="`")&&h!==g)throw new s(`property names with quotes must have matching quotes`);if((m===`constructor`||!p)&&(l=!0),r+=`.`+m,a=`%`+r+`%`,T(b,a))o=b[a];else if(o!=null){if(!(m in o)){if(!t)throw new c(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(f&&d+1>=n.length){var _=f(o,m);p=!!_,o=p&&`get`in _&&!(`originalValue`in _.get)?_.get:o[m]}else p=T(o,m),o=o[m];p&&!l&&(b[a]=o)}}return o}}),ro=s((exports,t)=>{var n=no(),r=n(`%Object.defineProperty%`,!0)||!1;if(r)try{r({},`a`,{value:1})}catch{r=!1}t.exports=r}),io=s((exports,t)=>{var n=no(),r=n(`%Object.getOwnPropertyDescriptor%`,!0);if(r)try{r([],`length`)}catch{r=null}t.exports=r}),ao=s((exports,t)=>{var n=ro(),r=qa(),i=Ja(),a=io();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6?arguments[6]:!1,d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}}),oo=s((exports,t)=>{var n=ro(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r}),so=s((exports,t)=>{var n=no(),r=ao(),i=oo()(),a=io(),o=Ja(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}}),co=s((exports,t)=>{var n=eo(),r=no(),i=so(),a=Ja(),o=r(`%Function.prototype.apply%`),s=r(`%Function.prototype.call%`),c=r(`%Reflect.apply%`,!0)||n.call(s,o),l=ro(),u=r(`%Math.max%`);t.exports=function(e){if(typeof e!=`function`)throw new a(`a function is required`);var t=c(n,s,arguments);return i(t,1+u(0,e.length-(arguments.length-1)),!0)};var d=function(){return c(n,o,arguments)};l?l(t.exports,`apply`,{value:d}):t.exports.apply=d}),lo=s((exports,t)=>{var n=no(),r=co(),i=r(n(`String.prototype.indexOf`));t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r(a):a}}),uo=s(()=>{}),fo=s((exports,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype,d=u?WeakMap.prototype.has:null,f=typeof WeakSet==`function`&&WeakSet.prototype,p=f?WeakSet.prototype.has:null,m=typeof WeakRef==`function`&&WeakRef.prototype,h=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,_=Object.prototype.toString,v=Function.prototype.toString,y=String.prototype.match,b=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,C=String.prototype.toLowerCase,w=RegExp.prototype.test,T=Array.prototype.concat,E=Array.prototype.join,ee=Array.prototype.slice,D=Math.floor,O=typeof BigInt==`function`?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,te=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,A=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,j=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A||`symbol`)?Symbol.toStringTag:null,ne=Object.prototype.propertyIsEnumerable,re=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-D(-e):D(e);if(r!==e){var i=String(r),a=b.call(t,i.length+1);return x.call(i,n,`$&_`)+`.`+x.call(x.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return x.call(t,n,`$&_`)}var ie=uo(),N=ie.custom,ae=pe(N)?N:null;t.exports=function e(t,n,r,o){var s=n||{};if(I(s,`quoteStyle`)&&s.quoteStyle!==`single`&&s.quoteStyle!==`double`)throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(I(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=I(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(I(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(I(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return Ce(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?M(t,f):f}if(typeof t==`bigint`){var p=String(t)+`n`;return d?M(t,p):p}var m=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=m&&m>0&&typeof t==`object`)return se(t)?`[Array]`:`[Object]`;var h=B(s,r);if(o===void 0)o=[];else if(_e(o,t)>=0)return`[Circular]`;function _(t,n,i){if(n&&(o=ee.call(o),o.push(n)),i){var a={depth:s.depth};return I(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!le(t)){var v=ge(t),y=ke(t,_);return`[Function`+(v?`: `+v:` (anonymous)`)+`]`+(y.length>0?` { `+E.call(y,`, `)+` }`:``)}if(pe(t)){var S=A?x.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):te.call(t);return typeof t==`object`&&!A?z(S):S}if(Se(t)){for(var w=`<`+C.call(String(t.nodeName)),D=t.attributes||[],k=0;k<D.length;k++)w+=` `+D[k].name+`=`+P(oe(D[k].value),`double`,s);return w+=`>`,t.childNodes&&t.childNodes.length&&(w+=`...`),w+=`</`+C.call(String(t.nodeName))+`>`,w}if(se(t)){if(t.length===0)return`[]`;var N=ke(t,_);return h&&!De(N)?`[`+Oe(N,h)+`]`:`[ `+E.call(N,`, `)+` ]`}if(ue(t)){var he=ke(t,_);return!(`cause`in Error.prototype)&&`cause`in t&&!ne.call(t,`cause`)?`{ [`+String(t)+`] `+E.call(T.call(`[cause]: `+_(t.cause),he),`, `)+` }`:he.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+E.call(he,`, `)+` }`}if(typeof t==`object`&&u){if(ae&&typeof t[ae]==`function`&&ie)return ie(t,{depth:m-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(ve(t)){var we=[];return a&&a.call(t,function(e,n){we.push(_(n,t,!0)+` => `+_(e,t))}),Ee(`Map`,i.call(t),we,h)}if(xe(t)){var Ae=[];return l&&l.call(t,function(e){Ae.push(_(e,t))}),Ee(`Set`,c.call(t),Ae,h)}if(ye(t))return Te(`WeakMap`);if(R(t))return Te(`WeakSet`);if(be(t))return Te(`WeakRef`);if(fe(t))return z(_(Number(t)));if(me(t))return z(_(O.call(t)));if(F(t))return z(g.call(t));if(de(t))return z(_(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(t===global)return`{ [object globalThis] }`;if(!ce(t)&&!le(t)){var V=ke(t,_),je=re?re(t)===Object.prototype:t instanceof Object||t.constructor===Object,Me=t instanceof Object?``:`null prototype`,Ne=!je&&j&&Object(t)===t&&j in t?b.call(L(t),8,-1):Me?`Object`:``,H=je||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``,Pe=H+(Ne||Me?`[`+E.call(T.call([],Ne||[],Me||[]),`: `)+`] `:``);return V.length===0?Pe+`{}`:h?Pe+`{`+Oe(V,h)+`}`:Pe+`{ `+E.call(V,`, `)+` }`}return String(t)};function P(e,t,n){var r=(n.quoteStyle||t)===`double`?`"`:`'`;return r+e+r}function oe(e){return x.call(String(e),/"/g,`"`)}function se(e){return L(e)===`[object Array]`&&(!j||!(typeof e==`object`&&j in e))}function ce(e){return L(e)===`[object Date]`&&(!j||!(typeof e==`object`&&j in e))}function le(e){return L(e)===`[object RegExp]`&&(!j||!(typeof e==`object`&&j in e))}function ue(e){return L(e)===`[object Error]`&&(!j||!(typeof e==`object`&&j in e))}function de(e){return L(e)===`[object String]`&&(!j||!(typeof e==`object`&&j in e))}function fe(e){return L(e)===`[object Number]`&&(!j||!(typeof e==`object`&&j in e))}function F(e){return L(e)===`[object Boolean]`&&(!j||!(typeof e==`object`&&j in e))}function pe(e){if(A)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!te)return!1;try{return te.call(e),!0}catch{}return!1}function me(e){if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}var he=Object.prototype.hasOwnProperty||function(e){return e in this};function I(e,t){return he.call(e,t)}function L(e){return _.call(e)}function ge(e){if(e.name)return e.name;var t=y.call(v.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _e(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ve(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ye(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{p.call(e,p)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function be(e){if(!h||!e||typeof e!=`object`)return!1;try{return h.call(e),!0}catch{}return!1}function xe(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function R(e){if(!p||!e||typeof e!=`object`)return!1;try{p.call(e,p);try{d.call(e,d)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Se(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function Ce(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return Ce(b.call(e,0,t.maxStringLength),t)+r}var i=x.call(x.call(e,/(['\\])/g,`\\$1`),/[\x00-\x1f]/g,we);return P(i,`single`,t)}function we(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+S.call(t.toString(16))}function z(e){return`Object(`+e+`)`}function Te(e){return e+` { ? }`}function Ee(e,t,n,r){var i=r?Oe(n,r):E.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function De(e){for(var t=0;t<e.length;t++)if(_e(e[t],`
|
|
2
|
-
`)>=0)return!1;return!0}function B(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=E.call(Array(e.indent+1),` `);else return null;return{base:n,prev:E.call(Array(t+1),n)}}function Oe(e,t){if(e.length===0)return``;var n=`
|
|
3
|
-
`+t.prev+t.base;return n+E.call(e,`,`+n)+`
|
|
4
|
-
`+t.prev}function ke(e,t){var n=se(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=I(e,i)?t(e[i],e):``}var a=typeof k==`function`?k(e):[],o;if(A){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e){if(!I(e,c)||n&&String(Number(c))===c&&c<e.length||A&&o[`$`+c]instanceof Symbol)continue;w.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))}if(typeof k==`function`)for(var l=0;l<a.length;l++)ne.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}}),po=s((exports,t)=>{var n=no(),r=lo(),i=fo(),a=Ja(),o=n(`%WeakMap%`,!0),s=n(`%Map%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`Map.prototype.get`,!0),f=r(`Map.prototype.set`,!0),p=r(`Map.prototype.has`,!0),m=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},h=function(e,t){var n=m(e,t);return n&&n.value},g=function(e,t,n){var r=m(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},_=function(e,t){return!!m(e,t)};t.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new a(`Side channel does not contain `+i(e))},get:function(r){if(o&&r&&(typeof r==`object`||typeof r==`function`)){if(e)return c(e,r)}else if(s){if(t)return d(t,r)}else if(n)return h(n,r)},has:function(r){if(o&&r&&(typeof r==`object`||typeof r==`function`)){if(e)return u(e,r)}else if(s){if(t)return p(t,r)}else if(n)return _(n,r);return!1},set:function(r,i){o&&r&&(typeof r==`object`||typeof r==`function`)?(e||=new o,l(e,r,i)):s?(t||=new s,f(t,r,i)):(n||={key:{},next:null},g(n,r,i))}};return r}}),mo=s((exports,t)=>{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}}),ho=s((exports,t)=>{var n=mo(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push(`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],a=0;a<n.length;++a)n[a]!==void 0&&r.push(n[a]);t.obj[t.prop]=r}}},s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},c=function e(t,n,a){if(!n)return t;if(typeof n!=`object`){if(i(t))t.push(n);else if(t&&typeof t==`object`)(a&&(a.plainObjects||a.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`)return[t].concat(n);var o=t;return i(t)&&!i(n)&&(o=s(t,a)),i(t)&&i(n)?(n.forEach(function(n,i){if(r.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,a):t.push(n)}else t[i]=n}),t):Object.keys(n).reduce(function(t,i){var o=n[i];return r.call(t,i)?t[i]=e(t[i],o,a):t[i]=o,t},o)},l=function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},u=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},d=1024,f=function(e,t,r,i,o){if(e.length===0)return e;var s=e;if(typeof e==`symbol`?s=Symbol.prototype.toString.call(e):typeof e!=`string`&&(s=String(e)),r===`iso-8859-1`)return escape(s).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var c=``,l=0;l<s.length;l+=d){for(var u=s.length>=d?s.slice(l,l+d):s,f=[],p=0;p<u.length;++p){var m=u.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||o===n.RFC1738&&(m===40||m===41)){f[f.length]=u.charAt(p);continue}if(m<128){f[f.length]=a[m];continue}if(m<2048){f[f.length]=a[192|m>>6]+a[128|m&63];continue}if(m<55296||m>=57344){f[f.length]=a[224|m>>12]+a[128|m>>6&63]+a[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|u.charCodeAt(p)&1023),f[f.length]=a[240|m>>18]+a[128|m>>12&63]+a[128|m>>6&63]+a[128|m&63]}c+=f.join(``)}return c},p=function(e){for(var t=[{obj:{o:e},prop:`o`}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];typeof u==`object`&&u&&n.indexOf(u)===-1&&(t.push({obj:a,prop:l}),n.push(u))}return o(t),e},m=function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},h=function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},g=function(e,t){return[].concat(e,t)},_=function(e,t){if(i(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)};t.exports={arrayToObject:s,assign:l,combine:g,compact:p,decode:u,encode:f,isBuffer:h,isRegExp:m,maybeMap:_,merge:c}}),go=s((exports,t)=>{var n=po(),r=ho(),i=mo(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset:`utf-8`,charsetSentinel:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,ee=T,D=0,O=!1;(ee=ee.get(m))!==void 0&&!O;){var k=ee.get(t);if(D+=1,k!==void 0){if(k===D)throw RangeError(`Cyclic object value`);O=!0}ee.get(m)===void 0&&(D=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return g&&!C?g(i,f.encoder,w,`key`,x):i;E=``}if(p(E)||r.isBuffer(E)){if(g){var te=C?i:g(i,f.encoder,w,`key`,x);return[S(te)+`=`+S(g(E,f.encoder,w,`value`,x))]}return[S(i)+`=`+S(String(E))]}var A=[];if(E===void 0)return A;var j;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),j=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))j=_;else{var ne=Object.keys(E);j=v?ne.sort(v):ne}var re=h?i.replace(/\./g,`%2E`):i,M=o&&s(E)&&E.length===1?re+`[]`:re;if(c&&s(E)&&E.length===0)return M+`[]`;for(var ie=0;ie<j.length;++ie){var N=j[ie],ae=typeof N==`object`&&N.value!==void 0?N.value:E[N];if(!(d&&ae===null)){var P=y&&h?N.replace(/\./g,`%2E`):N,oe=s(E)?typeof a==`function`?a(M,P):M:M+(y?`.`+P:`[`+P+`]`);T.set(t,D);var se=n();se.set(m,T),l(A,e(ae,oe,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,se))}}return A},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l;if(l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat,`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m];i.skipNulls&&r[_]===null||l(u,h(r[_],_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}var v=u.join(i.delimiter),y=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?y+=`utf8=%26%2310003%3B&`:y+=`utf8=%E2%9C%93&`),v.length>0?y+v:``}}),_o=s((exports,t)=>{var n=ho(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t){return e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1?e.split(`,`):e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,f),m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),x=n.maybeMap(s(_.slice(y+1),t),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(x)),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x);var S=r.call(u,b);S&&t.duplicates===`combine`?u[b]=n.combine(u[b],x):(!S||t.duplicates===`last`)&&(u[b]=x)}return u},d=function(e,t,n,r){for(var i=r?t:s(t,n),a=e.length-1;a>=0;--a){var o,c=e[a];if(c===`[]`&&n.parseArrays)o=n.allowEmptyArrays&&(i===``||n.strictNullHandling&&i===null)?[]:[].concat(i);else{o=n.plainObjects?Object.create(null):{};var l=c.charAt(0)===`[`&&c.charAt(c.length-1)===`]`?c.slice(1,-1):c,u=n.decodeDotInKeys?l.replace(/%2E/g,`.`):l,d=parseInt(u,10);!n.parseArrays&&u===``?o={0:i}:!isNaN(d)&&c!==u&&String(d)===u&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(o=[],o[d]=i):u!==`__proto__`&&(o[u]=i)}i=o}return i},f=function(e,t,n,i){if(e){var a=n.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,c=n.depth>0&&o.exec(a),l=c?a.slice(0,c.index):a,u=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var f=0;n.depth>0&&(c=s.exec(a))!==null&&f<n.depth;){if(f+=1,!n.plainObjects&&r.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(c[1])}if(c){if(n.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+n.depth+` and strictDepth is true`);u.push(`[`+a.slice(c.index)+`]`)}return d(u,t,n,i)}},p=function(e){if(!e)return a;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);var i=e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?Object.create(null):{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?Object.create(null):{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=f(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}}),vo=s((exports,t)=>{var n=go(),r=_o(),i=mo();t.exports={formats:i,parse:r,stringify:n}}),yo=l(vo());const bo=e.create({baseURL:``,withCredentials:!0,paramsSerializer:e=>yo.default.stringify(e,{arrayFormat:`repeat`})});bo.defaults.headers.common[`X-Requested-With`]=`XMLHttpRequest`;function xo(e){let t=e.defaults.baseURL;return{annotationSetting:new E(void 0,t,e),menu:new xt(void 0,t,e),menuItem:new _t(void 0,t,e),setting:new Ur(void 0,t,e),configMap:new Me(void 0,t,e),secret:new zr(void 0,t,e),user:new va(void 0,t,e),role:new Fr(void 0,t,e),roleBinding:new jr(void 0,t,e),content:{category:new ge(void 0,t,e),comment:new Ce(void 0,t,e),post:new Gn(void 0,t,e),reply:new yr(void 0,t,e),singlePage:new qr(void 0,t,e),snapshot:new oi(void 0,t,e),tag:new ki(void 0,t,e)},auth:{authProvider:new se(void 0,t,e),userConnection:new oa(void 0,t,e)},storage:{attachment:new k(void 0,t,e),group:new tt(void 0,t,e),policy:new Vn(void 0,t,e),policyTemplate:new Ln(void 0,t,e)},plugin:{extensionDefinition:new Ye(void 0,t,e),extensionPointDefinition:new Qe(void 0,t,e),plugin:new bn(void 0,t,e),reverseProxy:new Dr(void 0,t,e)},metrics:{counter:new Fe(void 0,t,e)},theme:{theme:new Vi(void 0,t,e)},notification:{notification:new Vt(void 0,t,e),notificationTemplate:new Lt(void 0,t,e),notifierDescriptor:new $t(void 0,t,e),reason:new dr(void 0,t,e),reasonType:new sr(void 0,t,e),subscription:new mi(void 0,t,e)},migration:{backup:new me(void 0,t,e)},security:{personalAccessToken:new fn(void 0,t,e)}}}function So(e){let t=e.defaults.baseURL;return{user:new xa(void 0,t,e),system:new Si(void 0,t,e),migration:new Nt(void 0,t,e),storage:{attachment:new ne(void 0,t,e),policy:new Nn(void 0,t,e)},auth:{authProvider:new de(void 0,t,e)},content:{comment:new Ee(void 0,t,e),reply:new Cr(void 0,t,e),indices:new lt(void 0,t,e),post:new Jn(void 0,t,e),singlePage:new Xr(void 0,t,e),tag:new Ni(void 0,t,e)},notification:{notifier:new rn(void 0,t,e)},plugin:{plugin:new Cn(void 0,t,e)},theme:{theme:new Wi(void 0,t,e)},configMap:{system:new vi(void 0,t,e)}}}function Co(e){let t=e.defaults.baseURL;return{storage:{attachment:new N(void 0,t,e)},content:{post:new nr(void 0,t,e),snapshot:new ui(void 0,t,e)},security:{twoFactor:new na(void 0,t,e),personalAccessToken:new gn(void 0,t,e),device:new Ke(void 0,t,e)},notification:{notification:new Yt(void 0,t,e)},user:{preference:new ma(void 0,t,e)}}}function wo(e){let t=e.defaults.baseURL;return{menu:new Tt(void 0,t,e),stats:new Ei(void 0,t,e),content:{post:new $n(void 0,t,e),comment:new ke(void 0,t,e)},metrics:{metrics:new kt(void 0,t,e)},notification:new Gt(void 0,t,e)}}const To=xo(bo),Eo=So(bo),Do=Co(bo),Oo=wo(bo);export{Ca as AddOperationOpEnum,E as AnnotationSettingV1alpha1Api,C as AnnotationSettingV1alpha1ApiAxiosParamCreator,T as AnnotationSettingV1alpha1ApiFactory,w as AnnotationSettingV1alpha1ApiFp,k as AttachmentV1alpha1Api,ee as AttachmentV1alpha1ApiAxiosParamCreator,O as AttachmentV1alpha1ApiFactory,D as AttachmentV1alpha1ApiFp,ne as AttachmentV1alpha1ConsoleApi,te as AttachmentV1alpha1ConsoleApiAxiosParamCreator,j as AttachmentV1alpha1ConsoleApiFactory,A as AttachmentV1alpha1ConsoleApiFp,N as AttachmentV1alpha1UcApi,re as AttachmentV1alpha1UcApiAxiosParamCreator,ie as AttachmentV1alpha1UcApiFactory,M as AttachmentV1alpha1UcApiFp,wa as AuthProviderSpecAuthTypeEnum,se as AuthProviderV1alpha1Api,ae as AuthProviderV1alpha1ApiAxiosParamCreator,oe as AuthProviderV1alpha1ApiFactory,P as AuthProviderV1alpha1ApiFp,de as AuthProviderV1alpha1ConsoleApi,ce as AuthProviderV1alpha1ConsoleApiAxiosParamCreator,ue as AuthProviderV1alpha1ConsoleApiFactory,le as AuthProviderV1alpha1ConsoleApiFp,Ta as BackupStatusPhaseEnum,me as BackupV1alpha1Api,fe as BackupV1alpha1ApiAxiosParamCreator,pe as BackupV1alpha1ApiFactory,F as BackupV1alpha1ApiFp,ge as CategoryV1alpha1Api,he as CategoryV1alpha1ApiAxiosParamCreator,L as CategoryV1alpha1ApiFactory,I as CategoryV1alpha1ApiFp,be as CategoryV1alpha1PublicApi,_e as CategoryV1alpha1PublicApiAxiosParamCreator,ye as CategoryV1alpha1PublicApiFactory,ve as CategoryV1alpha1PublicApiFp,Ce as CommentV1alpha1Api,xe as CommentV1alpha1ApiAxiosParamCreator,Se as CommentV1alpha1ApiFactory,R as CommentV1alpha1ApiFp,Ee as CommentV1alpha1ConsoleApi,we as CommentV1alpha1ConsoleApiAxiosParamCreator,Te as CommentV1alpha1ConsoleApiFactory,z as CommentV1alpha1ConsoleApiFp,ke as CommentV1alpha1PublicApi,De as CommentV1alpha1PublicApiAxiosParamCreator,Oe as CommentV1alpha1PublicApiFactory,B as CommentV1alpha1PublicApiFp,Ea as ConditionStatusEnum,Me as ConfigMapV1alpha1Api,Ae as ConfigMapV1alpha1ApiAxiosParamCreator,je as ConfigMapV1alpha1ApiFactory,V as ConfigMapV1alpha1ApiFp,Sa as Configuration,Da as CopyOperationOpEnum,Fe as CounterV1alpha1Api,Ne as CounterV1alpha1ApiAxiosParamCreator,Pe as CounterV1alpha1ApiFactory,H as CounterV1alpha1ApiFp,ze as DefaultApi,Ie as DefaultApiAxiosParamCreator,Re as DefaultApiFactory,Le as DefaultApiFp,He as DeviceV1alpha1Api,Be as DeviceV1alpha1ApiAxiosParamCreator,Ve as DeviceV1alpha1ApiFactory,U as DeviceV1alpha1ApiFp,Ke as DeviceV1alpha1UcApi,Ue as DeviceV1alpha1UcApiAxiosParamCreator,Ge as DeviceV1alpha1UcApiFactory,We as DeviceV1alpha1UcApiFp,Ye as ExtensionDefinitionV1alpha1Api,qe as ExtensionDefinitionV1alpha1ApiAxiosParamCreator,Je as ExtensionDefinitionV1alpha1ApiFactory,W as ExtensionDefinitionV1alpha1ApiFp,Qe as ExtensionPointDefinitionV1alpha1Api,Xe as ExtensionPointDefinitionV1alpha1ApiAxiosParamCreator,Ze as ExtensionPointDefinitionV1alpha1ApiFactory,G as ExtensionPointDefinitionV1alpha1ApiFp,Oa as ExtensionPointSpecTypeEnum,tt as GroupV1alpha1Api,$e as GroupV1alpha1ApiAxiosParamCreator,et as GroupV1alpha1ApiFactory,K as GroupV1alpha1ApiFp,at as IndexV1alpha1PublicApi,nt as IndexV1alpha1PublicApiAxiosParamCreator,it as IndexV1alpha1PublicApiFactory,rt as IndexV1alpha1PublicApiFp,lt as IndicesV1alpha1ConsoleApi,ot as IndicesV1alpha1ConsoleApiAxiosParamCreator,ct as IndicesV1alpha1ConsoleApiFactory,st as IndicesV1alpha1ConsoleApiFp,wn as InstallPluginSourceEnum,rr as ListMyPostsPublishPhaseEnum,Yn as ListPostsPublishPhaseEnum,Zr as ListSinglePagesPublishPhaseEnum,Qr as ListSinglePagesVisibleEnum,ka as ListedAuthProviderAuthTypeEnum,Aa as LocalThumbnailSpecSizeEnum,ja as LocalThumbnailStatusPhaseEnum,pt as LocalThumbnailV1alpha1Api,ut as LocalThumbnailV1alpha1ApiAxiosParamCreator,ft as LocalThumbnailV1alpha1ApiFactory,dt as LocalThumbnailV1alpha1ApiFp,Ma as MenuItemSpecTargetEnum,_t as MenuItemV1alpha1Api,mt as MenuItemV1alpha1ApiAxiosParamCreator,gt as MenuItemV1alpha1ApiFactory,ht as MenuItemV1alpha1ApiFp,xt as MenuV1alpha1Api,vt as MenuV1alpha1ApiAxiosParamCreator,bt as MenuV1alpha1ApiFactory,yt as MenuV1alpha1ApiFp,Tt as MenuV1alpha1PublicApi,St as MenuV1alpha1PublicApiAxiosParamCreator,wt as MenuV1alpha1PublicApiFactory,Ct as MenuV1alpha1PublicApiFp,kt as MetricsV1alpha1PublicApi,Et as MetricsV1alpha1PublicApiAxiosParamCreator,Ot as MetricsV1alpha1PublicApiFactory,Dt as MetricsV1alpha1PublicApiFp,Nt as MigrationV1alpha1ConsoleApi,At as MigrationV1alpha1ConsoleApiAxiosParamCreator,Mt as MigrationV1alpha1ConsoleApiFactory,jt as MigrationV1alpha1ConsoleApiFp,Na as MoveOperationOpEnum,Lt as NotificationTemplateV1alpha1Api,Pt as NotificationTemplateV1alpha1ApiAxiosParamCreator,It as NotificationTemplateV1alpha1ApiFactory,Ft as NotificationTemplateV1alpha1ApiFp,Vt as NotificationV1alpha1Api,Rt as NotificationV1alpha1ApiAxiosParamCreator,Bt as NotificationV1alpha1ApiFactory,zt as NotificationV1alpha1ApiFp,Gt as NotificationV1alpha1PublicApi,Ht as NotificationV1alpha1PublicApiAxiosParamCreator,Wt as NotificationV1alpha1PublicApiFactory,Ut as NotificationV1alpha1PublicApiFp,Yt as NotificationV1alpha1UcApi,Kt as NotificationV1alpha1UcApiAxiosParamCreator,Jt as NotificationV1alpha1UcApiFactory,qt as NotificationV1alpha1UcApiFp,$t as NotifierDescriptorV1alpha1Api,Xt as NotifierDescriptorV1alpha1ApiAxiosParamCreator,Qt as NotifierDescriptorV1alpha1ApiFactory,Zt as NotifierDescriptorV1alpha1ApiFp,rn as NotifierV1alpha1ConsoleApi,en as NotifierV1alpha1ConsoleApiAxiosParamCreator,nn as NotifierV1alpha1ConsoleApiFactory,tn as NotifierV1alpha1ConsoleApiFp,cn as NotifierV1alpha1UcApi,an as NotifierV1alpha1UcApiAxiosParamCreator,sn as NotifierV1alpha1UcApiFactory,on as NotifierV1alpha1UcApiFp,fn as PersonalAccessTokenV1alpha1Api,ln as PersonalAccessTokenV1alpha1ApiAxiosParamCreator,dn as PersonalAccessTokenV1alpha1ApiFactory,un as PersonalAccessTokenV1alpha1ApiFp,gn as PersonalAccessTokenV1alpha1UcApi,pn as PersonalAccessTokenV1alpha1UcApiAxiosParamCreator,hn as PersonalAccessTokenV1alpha1UcApiFactory,mn as PersonalAccessTokenV1alpha1UcApiFp,Pa as PluginStatusLastProbeStateEnum,Fa as PluginStatusPhaseEnum,bn as PluginV1alpha1Api,_n as PluginV1alpha1ApiAxiosParamCreator,yn as PluginV1alpha1ApiFactory,vn as PluginV1alpha1ApiFp,Cn as PluginV1alpha1ConsoleApi,xn as PluginV1alpha1ConsoleApiAxiosParamCreator,Sn as PluginV1alpha1ConsoleApiFactory,q as PluginV1alpha1ConsoleApiFp,kn as PluginV1alpha1PublicApi,En as PluginV1alpha1PublicApiAxiosParamCreator,On as PluginV1alpha1PublicApiFactory,Dn as PluginV1alpha1PublicApiFp,Nn as PolicyAlpha1ConsoleApi,An as PolicyAlpha1ConsoleApiAxiosParamCreator,Mn as PolicyAlpha1ConsoleApiFactory,jn as PolicyAlpha1ConsoleApiFp,Ln as PolicyTemplateV1alpha1Api,Pn as PolicyTemplateV1alpha1ApiAxiosParamCreator,In as PolicyTemplateV1alpha1ApiFactory,Fn as PolicyTemplateV1alpha1ApiFp,Vn as PolicyV1alpha1Api,Rn as PolicyV1alpha1ApiAxiosParamCreator,Bn as PolicyV1alpha1ApiFactory,zn as PolicyV1alpha1ApiFp,Ia as PostSpecVisibleEnum,Gn as PostV1alpha1Api,Hn as PostV1alpha1ApiAxiosParamCreator,Wn as PostV1alpha1ApiFactory,Un as PostV1alpha1ApiFp,Jn as PostV1alpha1ConsoleApi,Kn as PostV1alpha1ConsoleApiAxiosParamCreator,qn as PostV1alpha1ConsoleApiFactory,J as PostV1alpha1ConsoleApiFp,$n as PostV1alpha1PublicApi,Xn as PostV1alpha1PublicApiAxiosParamCreator,Qn as PostV1alpha1PublicApiFactory,Zn as PostV1alpha1PublicApiFp,nr as PostV1alpha1UcApi,er as PostV1alpha1UcApiAxiosParamCreator,tr as PostV1alpha1UcApiFactory,Y as PostV1alpha1UcApiFp,sr as ReasonTypeV1alpha1Api,ir as ReasonTypeV1alpha1ApiAxiosParamCreator,or as ReasonTypeV1alpha1ApiFactory,ar as ReasonTypeV1alpha1ApiFp,dr as ReasonV1alpha1Api,cr as ReasonV1alpha1ApiAxiosParamCreator,ur as ReasonV1alpha1ApiFactory,lr as ReasonV1alpha1ApiFp,hr as RememberMeTokenV1alpha1Api,fr as RememberMeTokenV1alpha1ApiAxiosParamCreator,mr as RememberMeTokenV1alpha1ApiFactory,pr as RememberMeTokenV1alpha1ApiFp,La as RemoveOperationOpEnum,Ra as ReplaceOperationOpEnum,yr as ReplyV1alpha1Api,gr as ReplyV1alpha1ApiAxiosParamCreator,vr as ReplyV1alpha1ApiFactory,_r as ReplyV1alpha1ApiFp,Cr as ReplyV1alpha1ConsoleApi,br as ReplyV1alpha1ConsoleApiAxiosParamCreator,Sr as ReplyV1alpha1ConsoleApiFactory,xr as ReplyV1alpha1ConsoleApiFp,Dr as ReverseProxyV1alpha1Api,wr as ReverseProxyV1alpha1ApiAxiosParamCreator,Er as ReverseProxyV1alpha1ApiFactory,Tr as ReverseProxyV1alpha1ApiFp,jr as RoleBindingV1alpha1Api,Or as RoleBindingV1alpha1ApiAxiosParamCreator,Ar as RoleBindingV1alpha1ApiFactory,kr as RoleBindingV1alpha1ApiFp,Fr as RoleV1alpha1Api,Mr as RoleV1alpha1ApiAxiosParamCreator,Pr as RoleV1alpha1ApiFactory,Nr as RoleV1alpha1ApiFp,zr as SecretV1alpha1Api,Ir as SecretV1alpha1ApiAxiosParamCreator,Rr as SecretV1alpha1ApiFactory,Lr as SecretV1alpha1ApiFp,Ur as SettingV1alpha1Api,Br as SettingV1alpha1ApiAxiosParamCreator,Hr as SettingV1alpha1ApiFactory,Vr as SettingV1alpha1ApiFp,za as SinglePageSpecVisibleEnum,qr as SinglePageV1alpha1Api,Wr as SinglePageV1alpha1ApiAxiosParamCreator,Kr as SinglePageV1alpha1ApiFactory,Gr as SinglePageV1alpha1ApiFp,Xr as SinglePageV1alpha1ConsoleApi,Jr as SinglePageV1alpha1ConsoleApiAxiosParamCreator,Yr as SinglePageV1alpha1ConsoleApiFactory,X as SinglePageV1alpha1ConsoleApiFp,ni as SinglePageV1alpha1PublicApi,$r as SinglePageV1alpha1PublicApiAxiosParamCreator,ti as SinglePageV1alpha1PublicApiFactory,ei as SinglePageV1alpha1PublicApiFp,oi as SnapshotV1alpha1Api,ri as SnapshotV1alpha1ApiAxiosParamCreator,ai as SnapshotV1alpha1ApiFactory,ii as SnapshotV1alpha1ApiFp,ui as SnapshotV1alpha1UcApi,si as SnapshotV1alpha1UcApiAxiosParamCreator,li as SnapshotV1alpha1UcApiFactory,ci as SnapshotV1alpha1UcApiFp,mi as SubscriptionV1alpha1Api,di as SubscriptionV1alpha1ApiAxiosParamCreator,pi as SubscriptionV1alpha1ApiFactory,fi as SubscriptionV1alpha1ApiFp,vi as SystemConfigV1alpha1ConsoleApi,hi as SystemConfigV1alpha1ConsoleApiAxiosParamCreator,_i as SystemConfigV1alpha1ConsoleApiFactory,gi as SystemConfigV1alpha1ConsoleApiFp,Si as SystemV1alpha1ConsoleApi,yi as SystemV1alpha1ConsoleApiAxiosParamCreator,xi as SystemV1alpha1ConsoleApiFactory,bi as SystemV1alpha1ConsoleApiFp,Ei as SystemV1alpha1PublicApi,Ci as SystemV1alpha1PublicApiAxiosParamCreator,Ti as SystemV1alpha1PublicApiFactory,wi as SystemV1alpha1PublicApiFp,ki as TagV1alpha1Api,Di as TagV1alpha1ApiAxiosParamCreator,Oi as TagV1alpha1ApiFactory,Z as TagV1alpha1ApiFp,Ni as TagV1alpha1ConsoleApi,Ai as TagV1alpha1ConsoleApiAxiosParamCreator,Mi as TagV1alpha1ConsoleApiFactory,ji as TagV1alpha1ConsoleApiFp,Li as TagV1alpha1PublicApi,Pi as TagV1alpha1PublicApiAxiosParamCreator,Ii as TagV1alpha1PublicApiFactory,Fi as TagV1alpha1PublicApiFp,Ba as TestOperationOpEnum,Va as ThemeStatusPhaseEnum,Vi as ThemeV1alpha1Api,Ri as ThemeV1alpha1ApiAxiosParamCreator,Bi as ThemeV1alpha1ApiFactory,zi as ThemeV1alpha1ApiFp,Wi as ThemeV1alpha1ConsoleApi,Hi as ThemeV1alpha1ConsoleApiAxiosParamCreator,Ui as ThemeV1alpha1ConsoleApiFactory,Q as ThemeV1alpha1ConsoleApiFp,Ha as ThumbnailSpecSizeEnum,Ji as ThumbnailV1alpha1Api,Gi as ThumbnailV1alpha1ApiAxiosParamCreator,qi as ThumbnailV1alpha1ApiFactory,Ki as ThumbnailV1alpha1ApiFp,Qi as ThumbnailV1alpha1PublicApi,Yi as ThumbnailV1alpha1PublicApiAxiosParamCreator,Zi as ThumbnailV1alpha1PublicApiFactory,Xi as ThumbnailV1alpha1PublicApiFp,na as TwoFactorAuthV1alpha1UcApi,$i as TwoFactorAuthV1alpha1UcApiAxiosParamCreator,ta as TwoFactorAuthV1alpha1UcApiFactory,ea as TwoFactorAuthV1alpha1UcApiFp,Tn as UpgradePluginSourceEnum,oa as UserConnectionV1alpha1Api,ra as UserConnectionV1alpha1ApiAxiosParamCreator,aa as UserConnectionV1alpha1ApiFactory,ia as UserConnectionV1alpha1ApiFp,ua as UserConnectionV1alpha1UcApi,sa as UserConnectionV1alpha1UcApiAxiosParamCreator,la as UserConnectionV1alpha1UcApiFactory,ca as UserConnectionV1alpha1UcApiFp,ma as UserPreferenceV1alpha1UcApi,da as UserPreferenceV1alpha1UcApiAxiosParamCreator,pa as UserPreferenceV1alpha1UcApiFactory,fa as UserPreferenceV1alpha1UcApiFp,va as UserV1alpha1Api,ha as UserV1alpha1ApiAxiosParamCreator,_a as UserV1alpha1ApiFactory,ga as UserV1alpha1ApiFp,xa as UserV1alpha1ConsoleApi,ya as UserV1alpha1ConsoleApiAxiosParamCreator,ba as UserV1alpha1ConsoleApiFactory,$ as UserV1alpha1ConsoleApiFp,bo as axiosInstance,Eo as consoleApiClient,To as coreApiClient,So as createConsoleApiClient,xo as createCoreApiClient,wo as createPublicApiClient,Co as createUcApiClient,Oo as publicApiClient,Do as ucApiClient};
|